CN112824933A - Distance measuring method, distance measuring device and electronic equipment - Google Patents

Distance measuring method, distance measuring device and electronic equipment Download PDF

Info

Publication number
CN112824933A
CN112824933A CN201911136904.6A CN201911136904A CN112824933A CN 112824933 A CN112824933 A CN 112824933A CN 201911136904 A CN201911136904 A CN 201911136904A CN 112824933 A CN112824933 A CN 112824933A
Authority
CN
China
Prior art keywords
distance
terminal
image
preview image
distance value
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
CN201911136904.6A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911136904.6A priority Critical patent/CN112824933A/en
Publication of CN112824933A publication Critical patent/CN112824933A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging
    • G01S17/8943D imaging with simultaneous measurement of time-of-flight at a 2D array of receiver pixels, e.g. time-of-flight cameras or flash lidar

Abstract

The disclosure relates to a distance measuring method, a distance measuring device and an electronic device. The ranging method is applied to the terminal and comprises the following steps: acquiring a preview image through camera equipment of a terminal; displaying the preview image, and marking the image center position of the preview image; acquiring a distance value between a terminal and a to-be-detected distance position corresponding to the central position of an image; the distance value is displayed through the terminal screen. By using the distance measuring method provided by the disclosure, the terminal camera equipment acquires the preview image of the position to be measured, and marks the position point of the laser distance measuring position distance to be measured on the preview interface, so that the laser distance measurement is visual. When the user uses the terminal to measure the distance, the position point of the distance can be clearly measured, and the distance value between the terminal and the distance to be measured can be quickly obtained.

Description

Distance measuring method, distance measuring device and electronic equipment
Technical Field
The present disclosure relates to the field of laser ranging technologies, and in particular, to a ranging method, a ranging device, and an electronic device.
Background
In the related art, with the development of technologies, personalized functions and applications of terminals gradually bring various convenience to users. The camera of the terminal is used for photographing and recording video, which becomes the basic function of the terminal. In some scenarios, a user needs to perform ranging to meet his or her own needs, but generally people do not carry a measurement tool with them, and therefore a ranging method capable of providing convenience for the user by using a terminal is needed.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a distance measuring method, a distance measuring device and an electronic device.
According to an aspect of the embodiments of the present disclosure, there is provided a ranging method applied to a terminal, including: acquiring a preview image through camera equipment of a terminal; displaying the preview image, and marking the image center position of the preview image; acquiring a distance value between a terminal and a to-be-detected distance position corresponding to the central position of an image; the distance value is displayed through the terminal screen.
In one embodiment, acquiring a distance value between an image pickup apparatus and a distance measurement position corresponding to an image center position includes: and obtaining a distance value between the camera device and a position to be measured corresponding to the image center position through laser ranging.
In another embodiment, laser ranging, comprising: and carrying out laser ranging through any one ranging device of a laser ranging sensor of the terminal, a 3D flight time camera or a 3D structure optical camera.
In an embodiment, obtaining a distance value between a terminal and a distance to be measured corresponding to a center position of an image includes: acquiring a distance value between the camera equipment and a to-be-measured distance position corresponding to the image center position based on a distance measuring instruction input by a user; or, acquiring a distance value between the camera device and a position to be measured corresponding to the image center position in real time.
In one embodiment, marking the image center position of the preview image comprises: through image processing, the position coordinates of each pixel in the preview image are acquired. And determining the center point of the preview image displayed on the terminal according to the position coordinates of each pixel. Based on the center point, the image center position of the preview image is marked.
According to another aspect of the embodiments of the present disclosure, there is provided a ranging apparatus applied to a terminal, including: and the first acquisition module is used for acquiring the preview image through the camera equipment of the terminal. And the display module is used for displaying the preview image and displaying the distance value. And the marking module is used for marking the image center position of the preview image. And the second acquisition module is used for acquiring a distance value between the terminal and the position to be measured corresponding to the image center position.
In an embodiment, the second obtaining module is further configured to: and obtaining a distance value between the camera device and a position to be measured corresponding to the image center position through laser ranging.
In another embodiment, the second obtaining module is further configured to: and carrying out laser ranging through any one ranging device of a laser ranging sensor of the terminal, a 3D flight time camera or a 3D structure optical camera.
In an embodiment, the second obtaining module is further configured to: acquiring a distance value between the camera equipment and a to-be-measured distance position corresponding to the image center position based on a distance measuring instruction input by a user; or, acquiring a distance value between the camera device and a position to be measured corresponding to the image center position in real time.
In one embodiment, the display module is further configured to: through image processing, the position coordinates of each pixel in the preview image are acquired. And determining the center point of the preview image displayed on the terminal according to the position coordinates of each pixel. Based on the center point, the image center position of the preview image is marked.
According to still another aspect of an embodiment of the present disclosure, there is provided an electronic device including: a memory to store instructions; and the processor is used for calling the instruction stored in the memory to execute any one of the ranging methods.
According to yet another aspect of an embodiment of the present disclosure, there is provided a non-transitory computer-readable storage medium including: a non-transitory computer-readable storage medium stores computer-executable instructions that, when executed by a processor, perform any of the ranging methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the preview image of the position to be measured is obtained through the terminal camera equipment, and the position point of the distance to be measured of the laser measurement is marked on the preview interface, so that the laser ranging is visual. When the user uses the terminal to measure the distance, the position point of the distance can be clearly measured, and the distance value between the terminal and the distance to be measured can be quickly obtained.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a ranging method according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a backside of a terminal according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a front side of a terminal according to an exemplary embodiment.
FIG. 4 is an analytic graph illustrating a measured distance according to an exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a front side of another terminal according to an example embodiment.
FIG. 6 is a block diagram illustrating a ranging device according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating another ranging device in accordance with an exemplary embodiment.
Fig. 8 is a block diagram illustrating yet another ranging apparatus according to an example embodiment.
Fig. 9 is a block diagram illustrating yet another ranging apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
At present, in the related art, a laser ranging sensor in a terminal can assist a user to measure a distance by using the terminal, but the practicability of laser ranging of the terminal is limited because a laser point cannot be seen by human eyes. Therefore, the user cannot determine a specific ranging position corresponding to the obtained distance value.
The embodiment of the disclosure provides a distance measurement method, which marks an image center position of a preview image acquired by a terminal, so that a user is prompted to keep an actual distance measurement position and the acquired image center position at one point during distance measurement, and a distance measurement point is visualized, so that the user can clearly obtain a distance value which is a distance between the actual terminal and the distance measurement position.
Fig. 1 is a flowchart illustrating a ranging method according to an exemplary embodiment, where as shown in fig. 1, a ranging method 10 is applied to a terminal, and the terminal may include: any one or more of a mobile phone, a tablet, a computer, etc., which are not limited in this disclosure. The ranging method 10 may include the following steps S11 to S14.
In step S11, a preview image is acquired by the image pickup apparatus of the terminal.
The camera preview area of the camera equipment of the terminal is aligned to the object or the position to be measured, so that the terminal screen can obtain a preview image of the object or the position to be measured, and a user can conveniently determine the specific position to be measured.
In step S12, the preview image is displayed, and the image center position of the preview image is marked.
And displaying the acquired preview image through a display area of the terminal screen. The preview image is the projection of an actual scene in the terminal, and is reduced in equal proportion and presented in a terminal screen according to the distance between the terminal and an object or position to be detected. The center point of the mark display area is the image center position of the mark preview image, and for example, a special figure such as a pentagram, a circle or a square can be adopted for marking, so that the user can clearly obtain the actual measurement point of the object to be measured or the position to be measured by the terminal by marking the image center position of the preview image.
For example: as shown in fig. 2, the front face 2 of the terminal 1 includes a display area 3, and the acquired preview image is displayed in the display area 3. The center position of the display area 3 is the image center position of the acquired preview image, the preview image is the projection of the actual scene in the terminal, and the image center position of the preview image corresponds to the actual measurement point of the object or position to be measured. The image center position is marked, so that the image center position in the terminal display area 3 is aligned with the distance to be measured of the camera preview area when a user measures the distance, the distance to be measured which needs to be measured is determined, and the user can use the distance to be measured conveniently. The marking may include: dots, pentagons, semi-transparent circular areas, and are not limiting in this disclosure.
In an embodiment, the position coordinates of each pixel in the preview image may be acquired in advance through image processing; and determining the position coordinates of the central point pixel in the display area according to the position coordinates of each pixel, thereby determining the central position of the preview image in the display area of the terminal. And marking the position of the central point pixel in the display area, which is equal to marking the image central position of the preview image, so that a user can clearly obtain the actual measuring point of the object or the position to be measured through the terminal.
In step S13, a distance value between the terminal and the distance measurement position corresponding to the image center position is acquired.
And after aligning the position of the distance to be measured in the camera preview area with the image center position, the user acquires the distance value between the terminal and the position of the distance to be measured.
In one embodiment, a distance value between the camera device and a to-be-measured position corresponding to the image center position is acquired based on a distance measurement instruction input by a user; or, acquiring a distance value between the camera device and a position to be measured corresponding to the image center position in real time.
In one example, after the terminal acquires the preview image, the distance value between the terminal and the distance measurement position corresponding to the image center position is acquired according to the distance measurement instruction input by the user. The distance measuring command input by the user can be understood as that the user confirms the position to be measured. The distance value is obtained according to the distance measurement instruction confirmed by the user, so that the hardware cost is saved, meanwhile, the simplicity of the display area is kept, and the user is not influenced to align the position of the distance to be measured.
In another example, after the terminal acquires the preview image, the distance value is acquired in real time, so that a user can conveniently acquire the distance between the terminal and the camera preview area corresponding to the image center position in real time.
In one embodiment, the distance value between the camera device and the distance to be measured corresponding to the image center position is obtained through laser ranging.
And (4) using a laser in the terminal as a light source to carry out ranging, and carrying out filtering processing on the received return value. For example, filtering processing such as median filtering or average filtering is adopted to eliminate random errors generated in the distance measurement process, so that the accuracy of the distance value between the measured terminal and the distance measurement position corresponding to the image center position is higher and the distance value is more stable.
In another embodiment, laser ranging is performed by a laser ranging sensor of the terminal. As shown in fig. 3, the rear face 4 of the terminal 1 contains a camera 5 and a laser ranging sensor 6. The camera 5 is a general camera and is used for acquiring a preview image of a camera preview area. The laser ranging sensor 6 is located in the back face 4 of the terminal 1, adjacent to the camera 5, and may be located right below or above the camera 5, or may be located on the left side or right side. In the present disclosure, the positional relationship between the laser distance measuring sensor and the camera is not limited, but the closer the distance between the laser distance measuring sensor and the camera, the more accurate the obtained distance value. And the transmitting hole of the laser distance sensor 6 transmits laser to the position to be measured, and the distance between the terminal and the position to be measured is determined according to the time for the receiving hole of the laser distance sensor 6 to receive the reflected laser.
In an application scenario, as shown in fig. 4, the laser distance measuring sensor 6 is located below the camera 5, a distance between a center point of the laser distance measuring sensor 6 and a center point of the camera 5 is d, and in practical applications, the distance range of d is generally 1cm to 2 cm. The length distance of the camera preview area plane 7 is D, and the central point is A. The projection of the point measured by the laser ray emitted by the laser distance sensor 6 on the camera preview area plane 7 is B. The camera optical center normal is parallel to the laser ray, so the projection distance between projections AB is also equal to d. The shooting view angle of the camera 5 is fixed, and the farther the distance L between the terminal and the distance measuring position is, the larger the range of the camera preview area plane 7 corresponding to the preview image is, and the longer the length distance D of the preview area plane 7 is. When a preview image is acquired, the projection distance D between the normal of the optical center of the camera and the laser ray on the preview area plane 7 is not changed, and the proportion of the projection distance D in the length distance D is gradually reduced in equal proportion along with the increase of the length distance D. Because the length of the camera preview area D in practical application is far greater than the distance D between the points AB, when the terminal previews, the projection distance D is ignored, the point A and the point B can be considered to be overlapped, and therefore the point A can be regarded as a target test point for laser ranging, and the distance between the terminal and a distance to be measured is obtained. In one example, only the area between the projections AB can be obtained because the distance between the terminal and the distance to be measured is measured. When the distance between the terminal and the distance to be measured is measured, the circular area with the target test point as the circle center and the radius d as the plane needs to be kept, which is beneficial to obtaining more accurate distance value in distance measurement.
In another example, laser ranging is performed by a 3D time-of-flight camera or a 3D structured light camera of the terminal. In ranging, the image pickup apparatus receives return values of a plurality of discrete ranging points. Through filtering processing, only the return value of the center position of the preview image is reserved, and then the distance value between the terminal and the position to be measured is obtained.
In step S14, the distance value is displayed through the terminal screen.
And displaying the acquired distance value between the terminal and the position to be measured in the terminal screen. In one example, the distance value is displayed on the preview image, and the position is near the center position of the image, so that a user can quickly acquire the distance between the position to be measured corresponding to the center position of the image and the terminal. In another example, as shown in fig. 6, the display area 3 includes two portions, one portion is a preview area 8 for previewing the acquired preview image, and the other portion is a distance value display area 10 for displaying the distance value between the distance measurement position corresponding to the image center position 9 and the terminal. The preview image and the distance value are displayed in an area, so that when a user changes the position of the distance to be measured, the distance value does not influence the user to preview the preview image of the position of the distance to be measured by using the terminal.
In another example, the length unit of the displayed distance value in the terminal screen is adjusted according to the user instruction, and the displayed distance value can be adjusted according to the conversion of the length unit so as to meet the requirement of the user on the actual acquisition distance. For example: the length unit of the distance value displayed at present is centimeter, and the length unit of the distance value displayed is changed into millimeter according to the instruction of the user, so that the acquired distance value is displayed more accurately.
In one embodiment, the displayed distance value and the currently acquired preview image can be stored in the form of screenshot and the like, and the screenshot contains the marked distance measuring points, so that a user can conveniently view measured historical data at any time, convenience is brought to the user, and the trouble of reacquiring the data is reduced.
Through the embodiment, the user can align the image center position of the acquired preview image to the position to be measured according to the mark. By visualizing the ranging target point, a user can determine the position relation between the image center position in the camera equipment and the position to be measured, and the obtained distance value is the distance between the terminal and the position with the ranging function.
Based on an inventive concept, the present disclosure also provides a work flow chart of the terminal application software ranging method.
FIG. 6 is a block diagram illustrating a ranging device according to an exemplary embodiment. Referring to fig. 6, the ranging apparatus includes: a first acquisition module 110, a display module 120, a marking module 130, and a second acquisition module 140.
The first obtaining module 110 is configured to obtain a preview image through a camera device of the terminal.
And a display module 120 for displaying the preview image and displaying the distance value.
A marking module 130, configured to mark an image center position of the preview image.
A second obtaining module 140, configured to obtain a distance value between the terminal and a to-be-measured distance position corresponding to the image center position
In one embodiment, the second obtaining module 140 is configured to: and obtaining a distance value between the camera device and a position to be measured corresponding to the image center position through laser ranging.
In another embodiment, the second obtaining module 140 is further configured to: any distance measuring equipment of a laser distance measuring sensor, a 3D flight time camera or a 3D structure optical camera of the terminal.
In an embodiment, the second obtaining module 140 is further configured to: acquiring a distance value between the camera equipment and a to-be-measured distance position corresponding to the image center position based on a distance measuring instruction input by a user; or, acquiring a distance value between the camera device and a position to be measured corresponding to the image center position in real time.
In one embodiment, the display module 120 is further configured to: through image processing, the position coordinates of each pixel in the preview image are acquired. And determining the center point of the preview image displayed on the terminal according to the position coordinates of each pixel. Based on the center point, the image center position of the preview image is marked.
FIG. 7 is a block diagram illustrating another ranging device in accordance with an exemplary embodiment. Referring to fig. 7, the ranging apparatus 200 includes: a central processing module 210, a memory module 220, a control module 230, and a power supply 240.
And the central processing module 210 is used for taking charge of computing and running of the ranging application software.
And a storage module 220 for storing data.
And a control module 230 for controlling the display and recording.
And a power supply 240 for supplying power to the respective modules.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating yet another apparatus 300 for ranging according to an example embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 306 provide power to the various components of device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 includes a screen that provides an output interface between the device 300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of apparatus 300, the change in position of apparatus 300 or a component of apparatus 300, the presence or absence of user contact with apparatus 300, the orientation or acceleration/deceleration of apparatus 300, and the change in temperature of apparatus 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The apparatus 300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the apparatus 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a ranging method.
Fig. 9 is a block diagram illustrating yet another apparatus 400 for ranging according to an example embodiment. For example, the apparatus 400 may be provided as a server. Referring to fig. 9, apparatus 400 includes a processing component 422, which further includes one or more processors, and memory resources, represented by memory 432, for storing instructions, such as applications, that are executable by processing component 422. The application programs stored in memory 432 may include one or more modules that each correspond to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the above-described methods.
The apparatus 400 may also include a power component 426 configured to perform power management of the apparatus 400, a wired or wireless network interface 450 configured to connect the apparatus 400 to a network, and an input output (I/O) interface 458. The apparatus 400 may operate based on an operating system stored in the memory 432, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A ranging method is applied to a terminal, and is characterized by comprising the following steps:
acquiring a preview image through camera equipment of the terminal;
displaying the preview image and marking the image center position of the preview image;
acquiring a distance value between the terminal and a to-be-measured distance position corresponding to the image center position;
and displaying the distance value through a terminal screen.
2. The method according to claim 1, wherein the obtaining of the distance value between the distance measurement positions corresponding to the image center positions and the image capturing apparatus comprises:
and obtaining the distance value between the camera equipment and the position to be measured corresponding to the image center position through laser ranging.
3. The method of claim 2, wherein the laser ranging comprises:
and carrying out laser ranging through any one ranging device in a laser ranging sensor, a 3D flight time camera or a 3D structure optical camera of the terminal.
4. The method according to claim 1, wherein the obtaining a distance value between the terminal and a distance measurement position corresponding to the image center position comprises:
acquiring the distance value between the camera equipment and a distance to be measured position corresponding to the image center position based on a distance measuring instruction input by a user; or the like, or, alternatively,
and acquiring the distance value between the camera equipment and the position to be measured corresponding to the image center position in real time.
5. The method of claim 1, wherein the marking the image center position of the preview image comprises:
acquiring the position coordinates of each pixel in the preview image through image processing;
determining the center point of the preview image displayed on the terminal according to the position coordinates of each pixel;
marking an image center position of the preview image based on the center point.
6. A distance measuring device applied to a terminal is characterized by comprising:
the first acquisition module is used for acquiring a preview image through the camera equipment of the terminal;
the display module is used for displaying the preview image and displaying the distance value;
the marking module is used for marking the image center position of the preview image;
and the second acquisition module is used for acquiring the distance value between the terminal and the position to be measured corresponding to the image center position.
7. The apparatus of claim 6, wherein the second obtaining module is configured to:
and obtaining the distance value between the camera equipment and the position to be measured corresponding to the image center position through laser ranging.
8. The apparatus of claim 7, wherein the second obtaining module is further configured to obtain the second data from the second data source
And carrying out laser ranging through any one ranging device in a laser ranging sensor, a 3D flight time camera or a 3D structure optical camera of the terminal.
9. The apparatus of claim 6, wherein the second obtaining module is further configured to:
acquiring the distance value between the camera equipment and a distance to be measured position corresponding to the image center position based on a distance measuring instruction input by a user; or the like, or, alternatively,
and acquiring the distance value between the camera equipment and the position to be measured corresponding to the image center position in real time.
10. The apparatus of claim 6, wherein the display module is further configured to:
acquiring the position coordinates of each pixel in the preview image through image processing;
determining the center point of the preview image displayed on the terminal according to the position coordinates of each pixel;
marking an image center position of the preview image based on the center point.
11. An electronic device, wherein the electronic device comprises:
a memory to store instructions; and
a processor for invoking the memory-stored instructions to perform the ranging method of any of claims 1-4.
12. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the ranging method of any of claims 1-4.
CN201911136904.6A 2019-11-19 2019-11-19 Distance measuring method, distance measuring device and electronic equipment Pending CN112824933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911136904.6A CN112824933A (en) 2019-11-19 2019-11-19 Distance measuring method, distance measuring device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911136904.6A CN112824933A (en) 2019-11-19 2019-11-19 Distance measuring method, distance measuring device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112824933A true CN112824933A (en) 2021-05-21

Family

ID=75906764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911136904.6A Pending CN112824933A (en) 2019-11-19 2019-11-19 Distance measuring method, distance measuring device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112824933A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113380243A (en) * 2021-05-27 2021-09-10 广州广电运通智能科技有限公司 Method and system for assisting voice interaction and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111748A (en) * 2004-12-03 2008-01-23 红外线解决方案公司 Visible light and ir combined image camera with a laser pointer
CN103403493A (en) * 2010-12-13 2013-11-20 勘测研究室集团有限公司 Mobile measurement devices, instruments and methods
CN104155006A (en) * 2014-08-27 2014-11-19 湖北久之洋红外系统股份有限公司 Handheld thermal infrared imager and method for same to carry out quick locking and ranging on small target
CN104613816A (en) * 2015-01-30 2015-05-13 杭州硕数信息技术有限公司 Digital optical sight and method for achieving target tracking, locking and precise shooting through same
US20160061586A1 (en) * 2014-08-29 2016-03-03 Blackberry Limited Method to Determine Length and Area Measurements Within a Smartphone Camera Image
CN106231189A (en) * 2016-08-02 2016-12-14 乐视控股(北京)有限公司 Take pictures treating method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111748A (en) * 2004-12-03 2008-01-23 红外线解决方案公司 Visible light and ir combined image camera with a laser pointer
CN103403493A (en) * 2010-12-13 2013-11-20 勘测研究室集团有限公司 Mobile measurement devices, instruments and methods
CN104155006A (en) * 2014-08-27 2014-11-19 湖北久之洋红外系统股份有限公司 Handheld thermal infrared imager and method for same to carry out quick locking and ranging on small target
US20160061586A1 (en) * 2014-08-29 2016-03-03 Blackberry Limited Method to Determine Length and Area Measurements Within a Smartphone Camera Image
CN104613816A (en) * 2015-01-30 2015-05-13 杭州硕数信息技术有限公司 Digital optical sight and method for achieving target tracking, locking and precise shooting through same
CN106231189A (en) * 2016-08-02 2016-12-14 乐视控股(北京)有限公司 Take pictures treating method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113380243A (en) * 2021-05-27 2021-09-10 广州广电运通智能科技有限公司 Method and system for assisting voice interaction and storage medium

Similar Documents

Publication Publication Date Title
US11516377B2 (en) Terminal, focusing method and apparatus, and computer readable storage medium
US20160352661A1 (en) Video communication method and apparatus
EP3220615A1 (en) Method and device for setting screen brightness
US20160027191A1 (en) Method and device for adjusting skin color
EP3173970A1 (en) Image processing method and apparatus
US10178379B2 (en) Method and apparatus for testing virtual reality head display device
US9491371B2 (en) Method and device for configuring photographing parameters
CN110059547B (en) Target detection method and device
CN107202574B (en) Motion trail information correction method and device
US10439660B2 (en) Method and device for adjusting frequencies of intercom apparatuses
CN107885016B (en) Holographic projection method and device
CN112202962A (en) Screen brightness adjusting method and device and storage medium
CN108133181B (en) Method for acquiring indication information, AR device and storage medium
CN112950712B (en) Positioning method and device, electronic equipment and storage medium
CN106878654B (en) Video communication method and device
CN112188089A (en) Distance acquisition method and device, focal length adjustment method and device, and distance measurement assembly
US20200241572A1 (en) Drone control method and device, drone and core network device
CN112824933A (en) Distance measuring method, distance measuring device and electronic equipment
US10516849B2 (en) Video call method, apparatus and system
CN112019895A (en) Function operation control method, function operation control device, and storage medium
CN109726611B (en) Biological feature recognition method and device, readable storage medium and electronic equipment
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN111538543B (en) Lost article searching method, lost article searching device and storage medium
CN113538700A (en) Augmented reality device calibration method and device, electronic device and storage medium
CN108769513B (en) Camera photographing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination