CN118334096A - Measurement method, intelligent terminal and storage medium - Google Patents

Measurement method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN118334096A
CN118334096A CN202310033858.7A CN202310033858A CN118334096A CN 118334096 A CN118334096 A CN 118334096A CN 202310033858 A CN202310033858 A CN 202310033858A CN 118334096 A CN118334096 A CN 118334096A
Authority
CN
China
Prior art keywords
measurement
information
depth
mode
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310033858.7A
Other languages
Chinese (zh)
Inventor
徐保仑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Publication of CN118334096A publication Critical patent/CN118334096A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a measurement method, an intelligent terminal and a storage medium, wherein the measurement method comprises the following steps: in response to the triggering operation, starting a measurement application; determining or generating measurement parameters according to a measurement mode of a measurement application program; and measuring the target object according to the measurement parameters to obtain a measurement result. By adopting the technical scheme, the user can measure the distance between objects in different planes, and the operation is simple and convenient.

Description

Measurement method, intelligent terminal and storage medium
Technical Field
The application relates to the technical field of augmented reality, in particular to a measurement method, an intelligent terminal and a storage medium.
Background
At present, the intelligent terminal can provide various application programs to realize various functions. For example, the measurement application may measure objects in space in real time, which may be practical during actual use.
In the course of conception and implementation of the present application, the inventors found that at least the following problems exist: current measurement applications must determine a spatial plane when in use, and can only measure information such as the length of an object in the spatial plane, which is more limited when in use.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
Aiming at the technical problems, the application provides a measuring method, an intelligent terminal and a storage medium, a user can measure the distance between objects in different planes, and the operation is simple and convenient.
The application provides a measurement method which can be applied to an intelligent terminal and comprises the following steps:
s10: in response to the triggering operation, starting a measurement application;
S20: determining or generating measurement parameters according to the measurement mode of the measurement application program;
s30: and measuring the target object according to the measurement parameters to obtain a measurement result.
Optionally, the measurement mode is a depth mode or a non-depth mode.
Optionally, if the measurement mode is a depth mode, the step S20 includes:
acquiring first depth information and/or track information;
the first depth information and/or the track information is determined or generated as the measurement parameter.
Optionally, the first depth information characterizes measurement start point information in a depth mode.
Optionally, the track information is edge information of the target object or movement information of the intelligent terminal.
Optionally, the acquiring the first depth information includes:
Acquiring video frame information;
and reading second depth information of a focus aperture in the video frame information, and taking the second depth information as first depth information.
Optionally, if the measurement mode is a non-depth mode, the step S20 includes:
Acquiring space plane information;
acquiring intersection point information of rays and the space plane information;
and determining or generating the measurement parameters according to the intersection point information.
Optionally, the acquiring spatial plane information includes:
acquiring identification information of the space plane information;
and if the identification information exists in the preset module, locking the space plane information.
Optionally, before the acquiring the intersection information of the ray and the spatial plane information, the method further includes:
In response to the touch operation, a measurement type is determined or generated.
Optionally, the measurement type includes at least one of: height, length, area, volume, three-dimensional space, or curve.
Optionally, the measurement parameter comprises an auxiliary parameter.
Optionally, the auxiliary parameters include an edge parameter and/or a focus parameter.
Optionally, the method further comprises:
determining or generating a display result according to the measurement result;
And displaying the display result on an intelligent terminal interface.
In a second aspect, the present application provides a target object measuring device, the device comprising:
A starting unit for starting the measurement application program in response to the triggering operation;
A determining unit, configured to determine or generate a measurement parameter according to a measurement mode of the measurement application program;
And the measuring unit is used for measuring the target object according to the measuring parameters so as to obtain a measuring result.
Optionally, the measurement mode is a depth mode or a non-depth mode.
Optionally, if the measurement mode is a depth mode, the determining unit includes:
the first acquisition module is used for acquiring first depth information and/or track information;
and the first determining module is used for determining or generating the measurement parameters from the first depth information and/or the track information.
Optionally, the first depth information characterizes measurement start point information in a depth mode.
Optionally, the track information is edge information of the target object or movement information of the intelligent terminal.
Optionally, the first acquisition module includes:
the first acquisition sub-module is used for acquiring video frame information;
and the reading sub-module is used for reading second depth information of the focus aperture in the video frame information and taking the second depth information as first depth information.
Optionally, if the measurement mode is a non-depth mode, the determining unit includes:
the second acquisition module is used for acquiring the space plane information;
The third acquisition module is used for acquiring intersection point information of the rays and the space plane information;
And the second determining module is used for determining or generating the measurement parameters from the intersection point information.
Optionally, the second acquisition module includes:
the second acquisition sub-module is used for acquiring the identification information of the space plane information;
and the locking sub-module is used for locking the space plane information if the identification information exists in the preset module.
Optionally, the apparatus comprises:
and the third determining module is used for determining or generating a measurement type in response to the touch operation.
Optionally, the measurement type includes at least one of: height, length, area, volume, three-dimensional space, or curve.
Optionally, the measurement parameter comprises an auxiliary parameter.
Optionally, the auxiliary parameters include an edge parameter and/or a focus parameter.
Optionally, the apparatus further comprises:
The generating unit is used for generating a display result according to the measurement result;
and the display unit is used for displaying the display result on an intelligent terminal interface.
The application also provides an intelligent terminal, which comprises: a memory, a processor, the memory having stored thereon a measurement program which when executed by the processor performs the steps of the method as described in any of the preceding claims.
The application also provides a storage medium storing a computer program which, when executed by a processor, implements the steps of the method as described in any of the preceding claims.
As described above, the measurement method of the present application can be applied to an intelligent terminal, and includes the steps of: in response to the triggering operation, starting a measurement application; determining or generating measurement parameters according to the measurement mode of the measurement application program; and measuring the target object according to the measurement parameters to obtain a measurement result. According to the technical scheme, the distance between objects in different planes can be measured by a user, the operation is simple and convenient, and the user experience is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure diagram of an intelligent terminal for implementing various embodiments of the present application;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application;
FIG. 3 is a flow chart of a measurement method according to a first embodiment of the present application;
FIG. 4 is a flow chart of a measurement method according to a second embodiment of the present application;
fig. 5 is a schematic diagram of a display result of an interface of an intelligent terminal according to a second embodiment of the present application;
FIG. 6 is a schematic view of a measuring device according to a third embodiment of the present application;
fig. 7 is a schematic structural view of a measuring device according to a fourth embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S10 and S20 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S20 first and then execute S10 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The intelligent terminal may be implemented in various forms. For example, the smart terminals described in the present application may include smart terminals such as mobile phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal DIGITAL ASSISTANT, PDA), portable media players (Portable MEDIA PLAYER, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
In the following description, an intelligent terminal will be described as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for a mobile purpose.
Referring to fig. 1, which is a schematic hardware structure of an intelligent terminal for implementing various embodiments of the present application, the intelligent terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. It will be appreciated by those skilled in the art that the configuration of the intelligent terminal shown in fig. 1 is not limiting of the intelligent terminal, and the intelligent terminal may include more or less components than those illustrated, or may combine certain components, or may have a different arrangement of components.
The following describes the components of the intelligent terminal in detail with reference to fig. 1:
The radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (GENERAL PACKET Radio Service), CDMA2000 (Code Division Multiple Access, code Division multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), 5G, and the like.
WiFi belongs to a short-distance wireless transmission technology, and the intelligent terminal can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the essential constitution of the intelligent terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the intelligent terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the smart terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The intelligent terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor, optionally, the ambient light sensor may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the smart terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the intelligent terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects the touch azimuth of the user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. Alternatively, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Alternatively, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and the processor 110 then provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the smart terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the intelligent terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the smart terminal 100 or may be used to transmit data between the smart terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, and alternatively, the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the intelligent terminal, connects various parts of the entire intelligent terminal using various interfaces and lines, and performs various functions of the intelligent terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the intelligent terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, the application processor optionally handling mainly an operating system, a user interface, an application program, etc., the modem processor handling mainly wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The intelligent terminal 100 may further include a power source 111 (such as a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, etc. through the power management system.
Although not shown in fig. 1, the intelligent terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the intelligent terminal of the present application is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Alternatively, the UE201 may be the terminal 100 described above, which is not described here again.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. Alternatively, the eNodeB2021 may connect with other enodebs 2022 over a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access for the UE201 to the EPC 203.
EPC203 may include MME (Mobility MANAGEMENT ENTITY ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (SERVING GATE WAY ) 2034, pgw (PDN GATE WAY, packet data network gateway) 2035, PCRF (Policy AND CHARGING Rules Function) 2036, and so on. Optionally, MME2031 is a control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present application is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G, and future new network systems (e.g., 6G), etc.
Based on the intelligent terminal hardware structure and the communication network system, various embodiments of the application are provided.
First embodiment
Fig. 3 is a flow chart of a measurement method according to a first embodiment of the present application, where the measurement method can be applied to an intelligent terminal, and the first embodiment includes the following steps:
S10: in response to the triggering operation, a measurement application is started.
In this embodiment, the measurement application is an application configured in the intelligent terminal, and the measurement application may be a ranging application. The triggering operation is a user start operation of the measurement application program, and the operation may be a double-click measurement application program, or a preset gesture operation, for example, the gesture operation may be input "Z". After the measurement application is started, the measurement application may start the camera so that the measurement application measures objects within the camera's frame.
S20: the measurement parameters are determined or generated according to the measurement mode of the measurement application.
In this embodiment, the measurement application includes different measurement modes, the measurement modes are different, and the measurement parameters to be adopted are different.
S30: and measuring the target object according to the measurement parameters to obtain a measurement result.
In this embodiment, the target object may be a physical object in the camera frame, or may be a virtual object currently constructed in space, where the virtual object may not be on a plane. After the measurement parameters are acquired, the target object is measured through the measurement parameters, and the measurement result is marked in a preset range of the target object, wherein the measurement result optionally comprises a measurement value and/or a measurement unit. Optionally, the labeling mode for labeling the measurement result may be preset, and fonts, transparency, shape and the like may be set.
The embodiment of the application provides a measuring method, which comprises the following steps: responding to the triggering operation of the user to the measurement application program, and starting the measurement application program; determining or generating measurement parameters according to a measurement mode of a measurement application program; and measuring the target object according to the measurement parameters to obtain a measurement result. According to the technical scheme provided by the embodiment of the application, the user can measure the distance between objects in different planes, the operation is simple and convenient, and the user experience is further improved.
Second embodiment
Fig. 4 is a flow chart of a measurement method according to a second embodiment of the present application, where the measurement method can be applied to an intelligent terminal, and the second embodiment includes the following steps:
S401: in response to the triggering operation, a measurement application is started.
For example, this step may refer to step S10 described above, and will not be described in detail.
S402: if the measurement mode is a depth mode, acquiring first depth information and/or track information; optionally, the first depth information characterizes measurement start point information in the depth mode; optionally, the track information is edge information of the target object or movement information of the intelligent terminal.
In this embodiment, the measurement mode is a depth mode or a non-depth mode. The first depth information is obtained from a depth information buffer. Optionally, the first depth information characterizes measurement start point information in the depth mode. The trajectory information is edge information of the target object, for example, the edge information is a circumference or a side length of the target object. Optionally, the track information is movement information of the intelligent terminal, for example, when the intelligent terminal moves from the point a to the point B, a path between the points AB through which the intelligent terminal passes is the track information.
Optionally, acquiring the first depth information includes:
Acquiring video frame information;
And reading second depth information of the focus aperture in the video frame information, and taking the second depth information as the first depth information.
In this embodiment, the video frame information is obtained in real time by the camera of the measurement application. Alternatively, the video frame information may be augmented reality video frame information, alternatively, the number of video frame information may be at least one frame. The focus aperture is a circle which takes the position of the video frame information center as the center of a circle, and the radius of the focus aperture can be automatically adjusted. The second depth information is three-dimensional information of a focus aperture in the video frame information, the second depth information is stored in a depth information buffer, and the first depth information is generated after the second depth information is called from the depth information buffer.
S403: the first depth information and/or the trajectory information is determined or generated as measurement parameters.
In this embodiment, when the measurement mode is the depth mode, the first depth information and/or the track information is determined or generated to be a measurement parameter.
S404: and if the measurement mode is a non-depth mode, acquiring space plane information.
In this embodiment, the spatial plane information refers to plane information that can be formed in space, and if the spatial plane information is acquired, a plane pattern can be displayed in a camera of the measurement application program.
Optionally, acquiring the spatial plane information includes:
acquiring identification information of the space plane information;
and if the identification information exists in the preset module, locking the space plane information.
In this embodiment, after the spatial plane information is obtained, the identification information of the spatial plane information is identified, and if the identification information exists in the preset module, it is determined that the spatial plane information exists, and the spatial plane information can be used. If the identification information does not exist in the preset module, step S404 is re-executed until the found identification information of the spatial plane information exists in the preset module, and the spatial plane information is locked.
S405: and acquiring intersection point information of the rays and the space plane information.
In this embodiment, the ray is sent by the intelligent terminal, and when the intersection point information exists between the ray and the space plane information, the intelligent terminal moves in the space shown by the camera, and the track information can be measured.
Optionally, before acquiring the intersection information of the ray and the spatial plane information, the method further includes:
Determining or generating a measurement type in response to the touch operation; optionally, the measurement type includes at least one of: height, length, area, volume, three-dimensional space, or curve.
In this embodiment, the touch operation may be an operation that a user clicks on a screen of the intelligent terminal, so as to determine or generate a measurement type. The measurement type is not limited to the following: height, length, area, volume, three-dimensional space, or curve. If the measurement type is area, the measurement result is displayed as the result of the area; if the measurement type is volume, the measurement result is displayed as a result of the volume; and so on.
S406: the intersection point information is determined or generated as a measurement parameter.
In this embodiment, when the measurement mode is the non-depth mode, the intersection point information is determined or the measurement parameter is generated.
S407: and measuring the target object according to the measurement parameters to obtain a measurement result.
In this embodiment, according to the measurement parameters, measurement is completed on the target object, and a measurement result is obtained.
Optionally, the measurement parameter comprises an auxiliary parameter.
Optionally, the auxiliary parameters include an edge parameter and/or a focus parameter.
In this embodiment, the edge parameter may be obtained by an algorithm of edge detection, and the focus parameter may be obtained by an algorithm of focus detection. By means of the auxiliary parameters, better measurement results can be obtained. The method has the advantages that after the auxiliary parameters are started, object boundaries and Mesh grids of the objects are automatically drawn, and a user is helped to measure irregular objects more accurately.
S408: and determining or generating a display result according to the measurement result.
In this embodiment, after the measurement result is obtained, a visual display result is generated from the measurement result. In this embodiment, a plurality of collision and line drawing effect materials can be preset by using a loader technology, so that various measurement effects are added, interactive interests are increased, and operation difficulty is reduced.
S409: and displaying the display result on an intelligent terminal interface.
In this embodiment, for example, reference may be made to a schematic illustration of a display result of an intelligent terminal interface shown in fig. 5. From fig. 5, it can be seen that the measurement result of the circumference of one sheet of paper in the space shown by the camera is 67.6cm. Optionally, the circled portion of the figure is a focus aperture. In this embodiment, after the display result is displayed on the interface of the intelligent terminal, the user may save or capture a screenshot of the display result, so that the user may use the display result.
The measuring method provided by the embodiment of the application comprises the following steps: in response to the triggering operation, starting a measurement application; if the measurement mode is a depth mode, acquiring first depth information and/or track information; determining or generating measurement parameters from the first depth information and/or the track information; and if the measurement mode is a non-depth mode, acquiring space plane information. Acquiring intersection point information of rays and space plane information; and determining or generating the measurement parameters according to the intersection point information, determining or generating a display result according to the measurement result, and displaying the display result on an intelligent terminal interface. By adopting the technical scheme of the embodiment of the application, different measurement modes can be adopted without selecting space plane information, and the operation is convenient.
Third embodiment
Fig. 6 is a schematic structural view of a measuring device according to a third embodiment of the present application. The apparatus 60 of the third embodiment includes:
A starting unit 601, configured to start the measurement application in response to the trigger operation.
A determining unit 602, configured to determine or generate a measurement parameter according to a measurement mode of the measurement application.
The measuring unit 603 is configured to measure the target object according to the measurement parameter to obtain a measurement result.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fourth embodiment
Fig. 7 is a schematic structural view of a measuring device according to a fourth embodiment of the present application. The apparatus 70 of the fourth embodiment includes:
A starting unit 701, configured to start the measurement application in response to the trigger operation.
A determining unit 702 is configured to determine or generate a measurement parameter according to a measurement mode of the measurement application.
A measurement unit 703 for measuring the target object according to the measurement parameters to obtain a measurement result.
Optionally, the measurement mode is a depth mode or a non-depth mode, and if the measurement mode is a depth mode, the determining unit 702 includes:
A first acquisition module 7021, configured to acquire first depth information and/or track information; optionally, the first depth information characterizes measurement start point information in the depth mode; optionally, the track information is edge information of the target object or movement information of the intelligent terminal.
The first determining module 7022 is configured to determine or generate a measurement parameter from the first depth information and/or the track information.
Optionally, the first acquisition module 7021 includes:
A first acquisition submodule 70211 is used for acquiring video frame information.
And the reading submodule 70212 is used for reading the second depth information of the focus aperture in the video frame information and taking the second depth information as the first depth information.
Alternatively, if the measurement mode is a non-depth mode, the determining unit 702 includes:
The second obtaining module 7023 is configured to obtain spatial plane information.
The third acquiring module 7024 is configured to acquire intersection information of the ray and the spatial plane information.
A second determining module 7025 is configured to determine or generate the measurement parameter from the intersection point information.
Optionally, the second acquisition module 7023 includes:
the second obtaining sub-module 70231 is configured to obtain identification information of the spatial plane information.
And a locking submodule 70232, configured to lock the spatial plane information if the identification information exists in the preset module.
Optionally, the apparatus comprises:
A third determining module 7026, configured to determine or generate a measurement type in response to a touch operation; optionally, the measurement type includes at least one of: height, length, area, volume, three-dimensional space, or curve.
Optionally, the measurement parameter comprises an auxiliary parameter; optionally, the auxiliary parameters include an edge parameter and/or a focus parameter.
Optionally, the apparatus further comprises:
and a generating unit 704, configured to determine or generate a display result according to the measurement result.
And the display unit 705 is used for displaying the display result on the intelligent terminal interface.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides an intelligent terminal which comprises a memory and a processor, wherein the memory stores a measurement program, and the measurement program is executed by the processor to realize the steps of the measurement method in any embodiment.
The embodiment of the application also provides a storage medium, and a measurement program is stored on the storage medium, and when the measurement program is executed by a processor, the steps of the measurement method in any embodiment are realized.
The embodiments of the intelligent terminal and the storage medium provided by the application can comprise all technical characteristics of any one of the embodiments of the measurement method, and the expansion and explanation contents of the description are basically the same as those of each embodiment of the method, and are not repeated here.
Embodiments of the present application also provide a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method as in the various possible embodiments described above.
The embodiment of the application also provides a chip, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the device provided with the chip executes the method in the various possible implementation manners.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a storage medium or transmitted from one storage medium to another storage medium, for example, from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage media may be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state storage disk Solid STATE DISK (SSD)), etc.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method of measurement comprising the steps of:
s10: in response to the triggering operation, starting a measurement application;
S20: determining or generating measurement parameters according to the measurement mode of the measurement application program;
s30: and measuring the target object according to the measurement parameters to obtain a measurement result.
2. The method according to claim 1, wherein the measurement mode is a depth mode or a non-depth mode, and if the measurement mode is a depth mode, the step S20 includes:
acquiring first depth information and/or track information;
the first depth information and/or the track information is determined or generated as the measurement parameter.
3. The method of claim 2, wherein the acquiring the first depth information comprises:
Acquiring video frame information;
and reading second depth information of a focus aperture in the video frame information, and taking the second depth information as first depth information.
4. A method according to any one of claims 1 to 3, wherein if the measurement mode is a non-depth mode, the step S20 comprises:
Acquiring space plane information;
acquiring intersection point information of rays and the space plane information;
and determining or generating the measurement parameters according to the intersection point information.
5. The method of claim 4, wherein the acquiring spatial plane information comprises:
acquiring identification information of the space plane information;
and if the identification information exists in the preset module, locking the space plane information.
6. The method of claim 4, further comprising, prior to the acquiring intersection information of the ray and the spatial plane information:
In response to the touch operation, a measurement type is determined or generated.
7. A method according to any one of claims 1 to 3, characterized in that the measured parameter comprises an auxiliary parameter.
8. A method according to any one of claims 1 to 3, further comprising:
determining or generating a display result according to the measurement result;
And displaying the display result on an intelligent terminal interface.
9. An intelligent terminal, characterized by comprising: a memory, a processor, on which a measurement program is stored which, when executed by the processor, implements the steps of the measurement method according to any one of claims 1 to 8.
10. A storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the measurement method according to any of claims 1 to 8.
CN202310033858.7A 2023-01-10 Measurement method, intelligent terminal and storage medium Pending CN118334096A (en)

Publications (1)

Publication Number Publication Date
CN118334096A true CN118334096A (en) 2024-07-12

Family

ID=

Similar Documents

Publication Publication Date Title
CN113805700A (en) Voice control method, mobile terminal and storage medium
CN113867586A (en) Icon display method, intelligent terminal and storage medium
CN113867588A (en) Icon processing method, intelligent terminal and storage medium
CN118334096A (en) Measurement method, intelligent terminal and storage medium
CN114125151B (en) Image processing method, mobile terminal and storage medium
CN110110138B (en) Preservation method, mobile terminal and computer readable storage medium
CN218630769U (en) Light distance sensing module and intelligent terminal with same
CN109639931B (en) Photographing noise reduction method, mobile terminal and computer readable storage medium
CN117075831A (en) Interaction method, intelligent terminal and storage medium
CN117151139A (en) Information processing method, intelligent terminal and storage medium
CN118317018A (en) Screenshot method, intelligent terminal and storage medium
CN118175417A (en) Control method, intelligent terminal and storage medium
CN115914697A (en) Screen projection control method, intelligent terminal and storage medium
CN115633200A (en) Screen projection method, intelligent terminal and storage medium
CN117492624A (en) Switching method, intelligent terminal and storage medium
CN117111806A (en) Display method, intelligent terminal and storage medium
CN114139492A (en) Image processing method, intelligent terminal and storage medium
CN116643817A (en) Translation display method, intelligent terminal and storage medium
CN115756239A (en) Display method, intelligent terminal and storage medium
CN116048702A (en) Display method, intelligent terminal and storage medium
CN117135265A (en) Display method, intelligent terminal and storage medium
CN116880686A (en) Control method, intelligent terminal and storage medium
CN116301397A (en) Switching method, intelligent terminal and storage medium
CN114302124A (en) Image processing method, mobile terminal and storage medium
CN115167959A (en) Information processing method, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication