Distance measurement device and method, computer readable medium and electronic device
By using optical elements with the same structure in the transmitting and receiving modules in DTOF technology, the measurement problem caused by the speckle array distortion of the light source array is solved, achieving more efficient distance measurement and lower power consumption, and simplifying the hardware design.
Patent Information
- Application Number
- CN202011359950.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-27
AI Technical Summary
In the existing DTOF technology, the optical path of the light source array is diffracted by the diffractive optical element, causing the distortion of the speckle array, resulting in poor pixel array measurement results, waste of power consumption, and low image frame rate.
The first and second optical elements with the same structure are used in the transmitting and receiving modules, and the optical path reversibility principle is used to make the reflection speckle array consistent with the light source array structure to ensure complete reception, and the flight time is calculated through the control module to measure the distance.
It improves the measurement accuracy of the pixel array, avoids waste of power consumption, simplifies the hardware structure, reduces the manufacturing cost, and improves the assembly yield and measurement efficiency.
Smart Images

Figure CN112505713B
Abstract
Description
Background Art
[0002] With the rapid development of science and technology, Time of Flight (TOF) technology has attracted more and more attention. TOF technology can be divided into direct time of flight technology (Direct TOF, DTOF) and indirect time of flight technology (Indirect TOF, ITOF).
[0003] At present, in the relevant DTOF technology, the transmitting module diffracts the light path of the light source array through the diffractive optical elements (DOE) to obtain a speckle array, and then the speckle array is reflected back to the receiving module, so that the pixel array receives the reflected speckle array. However, in this scheme, on the one hand, the light path of the light source array will be distorted by the diffractive optical element diffraction, and the distorted speckle array will lead to poor measurement results or imaging effects of the pixel array. At the same time, the distorted speckle array cannot be fully received by the pixel array, that is, some speckle spots fall outside the pixel array, resulting in waste of power consumption of the light source array; on the other hand, due to the number of time to digital converter circuits (TDC) in the DTOF technology, it is not possible to ensure that each pixel can be connected to a TDC circuit. Therefore, when the distorted speckle array is irradiated to the pixel array, speckle tracking cannot be achieved, resulting in the TDC circuit needing to traverse the data of each pixel, which affects the output frame rate of the pixel array. Summary of the invention
[0004] The purpose of the present disclosure is to provide a distance measurement device, a distance measurement method, a computer-readable medium and an electronic device, thereby at least to a certain extent avoiding the problems of poor measurement results, waste of power consumption and low output frame rate of the pixel array in the related technical solutions.
[0005] According to a first aspect of the present disclosure, there is provided a distance measuring device, comprising:
[0006] A transmitting module, comprising a light source array and a first optical element, wherein the first optical element is arranged on an optical path of the light source array and is used to transmit a speckle projection array to a target area, so that the speckle projection array is reflected at the target area to generate a reflected speckle array;
[0007] A receiving module, comprising a pixel array and a second optical element, wherein the second optical element and the first optical element are optical elements of the same structure, and the second optical element is arranged on an optical path where the reflection speckle array reaches the pixel array, and is used to receive and restore the reflection speckle array, so that the reflection speckle array can be completely received by the pixel array;
[0008] a control module, electrically connected to the transmitting module and the receiving module, configured to start timing when the transmitting module transmits the speckle projection array, stop timing when the receiving module receives the reflected speckle array, and output a flight time, so as to calculate a real distance to the target area according to the flight time.
[0009] According to a second aspect of the present disclosure, a distance measurement method is provided, including:
[0010] Transmitting a speckle projection array to a target area through a transmitting module including a first optical element, so that the speckle projection array is reflected at the target area to generate a reflected speckle array;
[0011] Receiving and restoring the reflection speckle array through a receiving module comprising a second optical element; wherein the second optical element and the first optical element are optical elements with the same structure;
[0012] By means of a control module connected to the transmitting module and the receiving module, timing is started when the transmitting module transmits the speckle projection array, and timing is stopped when the receiving module receives the reflected speckle array, and a flight time is output;
[0013] The actual distance to the target area is calculated according to the flight time.
[0014] According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0015] According to a fourth aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:
[0016] Processor; and
[0017] The memory is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the above method.
[0018] An embodiment of the present disclosure provides a distance measuring device, which is configured to emit a speckle projection array to a target area by providing a transmitting module including a first optical element and a light source array, and to receive and restore a reflected speckle array generated by the speckle projection array, so that the reflected speckle array can be completely received by the pixel array; and to output a flight time through a control module electrically connected to the transmitting module and the receiving module, and to calculate a real distance to the target area according to the flight time. On the one hand, based on the principle of reversible optical path, the speckle array emitted by the first optical element is received and restored by the second optical element with the same structure. At this time, the shape structure of the reflected speckle array reaching the pixel array is the same as the light source array. Through a simple light source array design, the reflected speckle array can be completely received by the pixel array, thereby improving the accuracy of the measurement result of the pixel array and avoiding the waste of power consumption (energy); on the other hand, since the shape structure of the reflected speckle array received by the pixel array is the same as the light source array, it is easier to track the speckle without traversing the data of each pixel, thereby improving the measurement efficiency of the pixel array; on the other hand, distance measurement is achieved by the first optical element and the second optical element with the same structure, and no diffractive optical element is needed, thereby reducing manufacturing costs and simplifying hardware structure, thereby simplifying module production and assembly accuracy and improving assembly yield.
[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 A schematic diagram showing an electronic device to which the embodiments of the present disclosure can be applied;
[0022] Figure 2 A schematic diagram of the structure of a transmitting module in a related technical solution in an exemplary embodiment of the present disclosure is shown;
[0023] Figure 3 A schematic diagram of the structure of a distance measuring device in an exemplary embodiment of the present disclosure is schematically shown;
[0024] Figure 4The structure diagram of a transmitting module and a receiving module in a distance measuring device in an exemplary embodiment of the present disclosure is schematically shown;
[0025] Figure 5 A schematic diagram of a structure for grouping a light source array in a transmitting module in an exemplary embodiment of the present disclosure is schematically shown;
[0026] Figure 6 A schematic diagram of the structure of a pixel array in a receiving module in an exemplary embodiment of the present disclosure is schematically shown;
[0027] Figure 7 A schematic diagram showing the structure of a transmitting module and a receiving module in another distance measuring device in an exemplary embodiment of the present disclosure is shown;
[0028] Figure 8 The structure diagram of a transmitting module and a receiving module in another distance measuring device in an exemplary embodiment of the present disclosure is schematically shown;
[0029] Fig. 9 The flowchart of a distance measurement method in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0031] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0032] An exemplary embodiment of the present disclosure provides an electronic device using a distance measurement device or for implementing a distance measurement method. The electronic device includes at least a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the distance measurement method by executing the executable instructions.
[0033] Below Figure 1Taking the mobile terminal 100 in FIG. 1 as an example, the structure of the electronic device is exemplarily described. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Figure 1 The structure in the figure can also be applied to fixed type devices. In other embodiments, the mobile terminal 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the components is only shown schematically and does not constitute a structural limitation on the mobile terminal 100. In other embodiments, the mobile terminal 100 may also adopt the same Figure 1 Different interface connection methods, or a combination of multiple interface connection methods.
[0034] like Figure 1 As shown, the mobile terminal 100 may specifically include: a processor 110, an internal memory 121, an external memory interface 122, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 171, a receiver 172, a microphone 173, an earphone interface 174, a sensor module 180, a display screen 190, a camera module 191, an indicator 192, a motor 193, a button 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a depth sensor 1801, a pressure sensor 1802, a gyroscope sensor 1803, etc.
[0035] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0036] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the mobile terminal 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0037] The processor 110 is provided with a memory which can store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transmission instructions and notification instructions, and the execution is controlled by the processor 110 .
[0038] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 190, the camera module 191 and the wireless communication module 160.
[0039] The wireless communication function of the mobile terminal 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Among them, antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals; mobile communication module 150 can provide solutions for wireless communication including 2G / 3G / 4G / 5G applied on mobile terminal 100; modulation and demodulation processor can include modulator and demodulator; wireless communication module 160 can provide solutions for wireless communication including wireless local area network (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT) and the like applied on mobile terminal 100. In some embodiments, antenna 1 of mobile terminal 100 is coupled with mobile communication module 150, and antenna 2 is coupled with wireless communication module 160, so that mobile terminal 100 can communicate with network and other devices through wireless communication technology.
[0040] The mobile terminal 100 implements the display function through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0041] The mobile terminal 100 can realize the shooting function through the ISP, the camera module 191, the video codec, the GPU, the display screen 190 and the application processor, etc. Among them, the ISP is used to process the data fed back by the camera module 191; the camera module 191 is used to capture static images or videos; the digital signal processor is used to process digital signals, and can process other digital signals in addition to digital image signals; the video codec is used to compress or decompress digital videos, and the mobile terminal 100 can also support one or more video codecs.
[0042] The external memory interface 122 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100. The external memory card communicates with the processor 110 through the external memory interface 122 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0043] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile terminal 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS), etc. The processor 110 executes various functional applications and data processing of the mobile terminal 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0044] The mobile terminal 100 can implement audio functions such as music playing and recording through the audio module 170 , the speaker 171 , the receiver 172 , the microphone 173 , the earphone interface 174 and the application processor.
[0045] The depth sensor 1801 is used to obtain the depth information of the scene. In some embodiments, the depth sensor can be provided in the camera module 191. The depth sensor 1801 can be a DToF lens, which can measure the real distance according to the flight time of the pulsed laser. Specifically, the DToF lens can include a single-photon avalanche diode (SPAD) pixel array, which is used to receive the photons of the reflected light to generate current and count through the TDC circuit. Of course, this exemplary embodiment is not limited to this.
[0046] The pressure sensor 1802 is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 1802 can be arranged on the display screen 190. There are many types of pressure sensors 1802, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
[0047] The gyro sensor 1803 may be used to determine the motion posture of the mobile terminal 100. In some embodiments, the angular velocity of the mobile terminal 100 around three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 1803. The gyro sensor 1803 may be used for shooting anti-shake, navigation, somatosensory game scenes, and the like.
[0048] In addition, sensors with other functions may be set in the sensor module 180 according to actual needs, such as an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0049] The mobile terminal 100 may also include other devices that provide auxiliary functions. For example, the key 194 includes a power key, a volume key, etc., and the user can generate key signal input related to the user settings and function control of the mobile terminal 100 through key input. For example, the indicator 192, the motor 193, the SIM card interface 195, etc.
[0050] In the related DTOF technology, refer to Figure 2 As shown, the transmitting module in the related DTOF technology transmits the light path through the vertical-cavity surface laser (Vertical-Cavity Surface-Emitting Laser, VCSEL) 201. After the light path is collimated by the collimator 202, it is incident on the diffractive optical element 203 for deflection at different diffraction angles to obtain a speckle array 204 with pincushion distortion. However, since the transmitting module diffracts the light path of the vertical-cavity surface laser 201 through the diffractive optical element 203 to obtain a speckle array, and then the speckle array is returned to the receiving module by reflection, so that the pixel array receives the reflected speckle array. However, the light path of the vertical-cavity surface laser 201 will be distorted when diffracted by the diffractive optical element, and the distorted speckle array 204 will cause the measurement result or imaging effect of the pixel array to be poor. At the same time, the distorted speckle array 204 cannot be completely received by the pixel array, that is, some of the speckle spots fall outside the pixel array, resulting in waste of power consumption of the light source array.
[0051] Secondly, due to the difficulty and complexity of the design of the pixel array and time-to-digital conversion circuit in DTOF, the current SPAD array solution cannot guarantee that each SPAD pixel can be connected to a time-to-digital conversion circuit. Therefore, the entire SPAD pixel array will be divided into M*N micro-pixel units (Micro Pixels, MP). Each micro-pixel unit shares a time-to-digital conversion circuit for timing. Therefore, for the DTOF solution, if the floodlight source continues to be used for illumination, then even if the floodlight source can be imaged onto each pixel in each micro-pixel unit, since there is only one time-to-digital conversion circuit in a micro-pixel unit, at most one pixel of depth data can be output in each micro-pixel unit per frame. Due to the serious shortage of the number of time-to-digital conversion circuits, the frame rate of the pixel array is affected, and the depth data of each pixel in the micro-pixel unit is traversed by time-sharing multiplexing of the time-to-digital conversion circuit, resulting in waste of power consumption of the light source array and a decrease in the frame rate of the DTOF image.
[0052] Based on one or more of the above problems, in this exemplary embodiment, a distance measuring device is first provided. Figure 3 A schematic diagram of the structure of a distance measuring device in this exemplary embodiment is shown. Figure 3 As shown, the distance measurement device 300 in this example implementation may include a transmitting module 310, a receiving module 320 and a control module 330. Among them:
[0053] The transmitting module 310 may include a light source array 311 and a first optical element 312. The first optical element 312 may be arranged on the optical path of the light source array 311, and is used to transmit a speckle projection array to a target area, so that the speckle projection array is reflected at the target area to generate a reflection speckle array. The receiving module 320 may include a pixel array 321 and a second optical element 322. The second optical element 322 and the first optical element 312 may be optical elements with the same structure. The second optical element 322 may be arranged on the optical path from the reflection speckle array to the pixel array 321, and is used to receive and restore the reflection speckle array, so that the reflection speckle array can be completely received by the pixel array 321. The control module 330 may be electrically connected to the transmitting module 310 and the receiving module 320, and is used to start timing when the transmitting module 310 transmits the speckle projection array, and stop timing when the receiving module 320 receives the reflection speckle array, and output the flight time, so as to calculate the real distance to the target area according to the flight time.
[0054] In an exemplary embodiment, the light source array 311 can be an array composed of various types of lasers. For example, the light source array can be an array composed of emitting holes of vertical cavity surface lasers, or it can be edge emitting lasers (EdgeEmitting Lasers, EEL), such as distributed feedback lasers (Distributed Feedback Laser, DFB), etc. Of course, the light source array can also be an array composed of other types of lasers, and this exemplary embodiment does not specifically limit this.
[0055] The first optical element 312 and the second optical element 322 can be light source elements of non-diffractive optical elements DOE with the same structure. For example, the first optical element 312 and the second optical element 322 can include but are not limited to flat-field focusing lenses (i.e., F-θ lenses, also referred to as field lenses for short). Of course, the first optical element 312 and the second optical element 322 can also be light source elements of other non-diffractive optical elements DOE with the same structure, and this example embodiment does not make any special limitation on this.
[0056] The pixel array 321 may be an array composed of photosensitive pixels for receiving a reflected speckle array. For example, the pixel array 321 may be a SPAD pixel array composed of single-photon avalanche diodes (SPAD) (mainly used in DTOF solutions), or a photodetection array composed of CMOS image sensors (mainly used in ITOF solutions). Of course, it may also be an array composed of other photosensitive pixels that can be used to receive a reflected speckle array, and this example embodiment does not specifically limit this.
[0057] Specifically, taking the case where the first optical element and the second optical element are flat-field focusing lenses (i.e., F-θ lenses) as an example, Figure 4 The structure diagram of a transmitting module and a receiving module in a distance measurement device in an exemplary embodiment of the present disclosure is schematically shown.
[0058] refer to Figure 4 As shown, the distance measuring device in this exemplary embodiment may include a transmitting module 410 and a receiving module 420 (it should be noted that in actual applications, a control module should also be included, but since the main part of this exemplary embodiment is less related to the control module, Figure 4 The control module is not described in detail here. Figure 3The description of the control module in is not repeated here. The transmitting module 410 may include a light source array 411 composed of transmitting holes of vertical cavity surface lasers, and a pre-designed flat-field focusing mirror 412; the receiving module 420 may include a pixel array 421 composed of SPAD pixels, and a pre-designed flat-field focusing mirror 422, which is a flat-field focusing mirror with the same design, structure, focal length and other parameters as the flat-field focusing mirror 412.
[0059] The light path can be emitted through the light source array 411 in the transmitting module 410, and the light path passes through the flat-field focusing lens 412 to obtain a speckle projection array. When the speckle projection array is reflected at the target area to obtain a reflected speckle array and returns to the receiving module 420, the reflected speckle array is restored (based on the principle of reversible light path) through the flat-field focusing lens 422 to obtain a speckle array with the same structure as the light source array 411 and is incident on the pixel array 421. When the size of the light source array 411 is consistent with that of the pixel array 421 (or slightly smaller than that of the pixel array 421), the pixel array 421 can completely receive the reflected speckle array, thereby avoiding wasting speckles (energy) and improving the power consumption conversion rate of the light source array 411.
[0060] Among them, after the optical elements in the transmitting module 410 and the receiving module 420 are designed to be completely the same flat-field focusing mirror, according to the relationship between the field of view angle and the focal length of the lens, the size of the light source array 411 can be designed to be the same size as the size of the pixel array 421, so as to ensure that the pixel array 421 can completely receive the speckle projection array emitted by the transmitting module 410. Preferably, the focal length of the flat-field focusing mirror 422 and the flat-field focusing mirror 412 can be set to 1.5 mm to 3 mm, and the field of view angle can be set to 45°*60°, or 50°*64°. Of course, this is only a schematic example, and the specific value can be determined according to the size of the pixel array 421, and this exemplary embodiment does not specifically limit this.
[0061] Of course, the focal length of the flat-field focusing mirror 422 and the flat-field focusing mirror 412 cannot be too large. If it is too large, it may cause the module volume to increase, the baseline of the transmitting module 410 and the receiving module 420 to become longer, and the parallax to become larger; at the same time, the focal length cannot be too small. The size of the pixel array 421 determines the lower limit of the focal length of the flat-field focusing mirror 422 and the flat-field focusing mirror 412.
[0062] The reason why the lenses of the transmitting module 410 and the receiving module 420 are set as flat-field focusing lenses in this example embodiment is that the TOF transmitting module in the conventional scheme generally has a diffuser and a diffractive optical element DOE, and the light uniformity characteristics and diffraction energy distribution characteristics of the diffuser and the diffractive optical element generally require energy compensation according to the field of view angle. By increasing the energy of the edge field of view, the illumination consistency of the VCSEL light spot projected on the target area can be guaranteed. Different from the conventional TOF transmitting module design, the transmitting module used in this example embodiment does not require a diffuser and a diffractive optical element, but only requires a flat-field focusing lens (F-θ lens), the relative illumination of which is very low, which can ensure the consistency of the illumination of the edge field of view and the illumination of the center field of view. Through this design, the diffuser and the diffractive optical element can be omitted, which greatly simplifies the accuracy of module production and assembly and improves the assembly yield.
[0063] Furthermore, the emission holes in the light source array 311, such as the vertical cavity surface laser, can be divided into a plurality of different groups of laser emission holes (laser emitters). For example, they can be divided into 4 groups of laser emission holes (laser emitters) or 6 groups of laser emission holes (laser emitters). The specific settings can be customized according to the size of the pixel array 321, and this example embodiment does not specifically limit this.
[0064] Figure 5 A schematic diagram of a structure for grouping a light source array in a transmitting module in an exemplary embodiment of the present disclosure is schematically shown.
[0065] refer to Figure 5 As shown, the light source array 311 can be divided into four groups, including a group 501 of laser emitting holes (the group represented by the number "1"), a group 502 of laser emitting holes (the group represented by the number "2"), a group 503 of laser emitting holes (the group represented by the number "3") and a group 504 of laser emitting holes (the group represented by the number "4"). The laser emitting holes (laser emitters) of each group can generally be connected to the same switch, through which the laser emitting holes of the same group can be simultaneously lit at the same time.
[0066] Furthermore, after the laser emitters in the light source array 311 are grouped, the pixel array 321 can be divided into a plurality of micro pixel units (Micro Pixels, MP) according to the grouping design of the light source array 311, wherein each micro pixel unit shares a time-to-digital conversion circuit TDC to ensure that there is one and only one speckle in each MP of the pixel array 321 at each moment, thereby completing the speckle tracking function and avoiding the problem of image frame rate reduction due to the need to traverse each pixel in the pixel array 321 due to the limitation of the number of time-to-digital conversion circuits TDC.
[0067] Figure 6 A schematic diagram of the structure of a pixel array in a receiving module in an exemplary embodiment of the present disclosure is schematically shown.
[0068] refer to Figure 6 As shown, the grid in the figure can represent the size of a micro pixel unit 601, and the pixel array 321 can be divided into M*N micro pixel units 601, and each micro pixel unit 601 is connected to a time-to-digital conversion circuit 602. The four scattered spots 603 in the micro pixel unit 601 correspond to Figure 5 In the light source array 311 in FIG. 3 , the scattered spots are formed by the adjacent laser emitters of “1”, “2”, “3” and “4”. Figure 5 When the laser emission holes in different groups are lit in a cross-time sharing manner, it is ensured that each micro-pixel unit 601 of the pixel array 321 has one and only one scattered spot at each moment, so that the time-to-digital conversion circuit 602 connected to the micro-pixel unit 601 can lock the pixel of the scattered spot imaging and perform speckle tracking without traversing all pixels, thereby improving the measurement efficiency and the imaging efficiency of the depth image.
[0069] Of course, one row and one column or two rows and two columns of micro pixel units 601 may be reserved at the edge of the pixel array 321, in order to take into account the speckle shift caused by the baseline, parallax and assembly tolerance of the transmitting module 310 and the receiving module 320, and effectively ensure that all speckle arrays are received by the pixel array 321.
[0070] The simplified distance measurement scheme in this example embodiment has a simpler module design, fewer optical devices, and relatively loose control over the module assembly tolerance. Secondly, through the principle of reverse imaging of the optical path, the optical paths of the transmitting module and the receiving module are designed to be similar structures. Two consistent optical elements (such as a flat-field focusing mirror) are used to achieve precise projection and precise imaging of the speckle, and to realize the speckle addressing scheme. The entire speckle addressing optical scheme is simpler, cheaper, and the assembly accuracy and control threshold are looser than those of competing products, thereby improving the assembly yield.
[0071] In another exemplary embodiment, the size of the pixel array 321 and the parameters of the second optical element 322 are related by the following equation (1):
[0072] 2*EFL*tan(FOV / 2)=SPAD Size (1)
[0073] Among them, SPAD Size can represent the size of the pixel array 321 (or the corresponding chip), FOV can represent the field of view of the second optical element 322, and EFL can represent the effective focal length (EffectiveFocal Length) of the second optical element 322. It can be seen that from the perspective of shortening the module baseline, module size and module cost, since the size of the pixel array 321 of the receiving module 320 and the corresponding chip size are fixed, and the field of view of the second optical element 322 is fixed, the effective focal length of the second optical element 322 can be determined. However, the size (or effective focal length) of the first optical element 312 in the transmitting module 310 can be scaled in proportion to the size (or effective focal length) of the second optical element 322 in the receiving module 320; similarly, the size of the light source array 311 can also be scaled in the same proportion according to the scaling ratio of the size of the first optical element 312. Finally, the miniaturization of the transmitting module 310 can be achieved, which not only reduces the module size and cost, but also reduces the baseline, and reduces the impact of baseline parallax on DTOF depth imaging.
[0074] Figure 7 The structure diagram of a transmitting module and a receiving module in another distance measurement device in an exemplary embodiment of the present disclosure is schematically shown.
[0075] refer to Figure 7 As shown, the distance measuring device in this exemplary embodiment may include a proportionally scaled transmitting module 710 and a receiving module 720 (it should be noted that in actual applications, a control module should also be included, but since the main part of this exemplary embodiment is less associated with the control module, Figure 7 The control module is not described in detail here. Figure 3 The description of the control module in is not repeated here. Wherein, the scaled transmitting module 710 may include a light source array 711 composed of the emitting holes of the scaled vertical cavity surface laser, and a scaled flat field focusing mirror 712; the receiving module 720 may include a pixel array 721 composed of SPAD pixels, and a pre-designed flat field focusing mirror 722, and the flat field focusing mirror 722 and the flat field focusing mirror 712 are flat field focusing mirrors with the same proportion of design, structure and parameters.
[0076] The light path can be transmitted through the proportionally scaled light source array 711 in the proportionally scaled transmitting module 710, and the light path passes through the proportionally scaled flat-field focusing lens 712 to obtain a speckle projection array. The speckle projection array is reflected at the target area to obtain a reflected speckle array. When the reflected speckle array is returned to the receiving module 720, the reflected speckle array is restored (based on the reversible principle of the light path) by the flat-field focusing lens 722 having the same proportional parameters to obtain a speckle array having the same structure as the light source array 711 and corresponding to the size ratio of the flat-field focusing lens 722, and is incident on the pixel array 721. When the sizes of the light source array 711 and the pixel array 721 have the same proportional relationship, the pixel array 721 can completely receive the reflected speckle array, thereby avoiding wasting speckles (energy) and improving the power consumption conversion rate of the proportionally scaled light source array 711.
[0077] Of course, in this example embodiment, the light source array 711 and the pixel array 721 are also designed to be grouped in the same way. When the laser emission holes in different groups are lit in a cross-time sharing manner, it is ensured that each micro-pixel unit of the pixel array 721 has one and only one scattered spot at each moment, so that the time-to-digital conversion circuit connected to the micro-pixel unit can lock the pixel of the scattered spot imaging and perform speckle tracking without traversing all the pixels, thereby improving the measurement efficiency and the depth image imaging efficiency. For details, please refer to the above description, which will not be repeated here.
[0078] In another exemplary embodiment, the first optical element 312 and the second optical element 322 may be ordinary distortion-free lenses. Projection and imaging by the distortion-free lenses can ensure that the scattered spots in the speckle projection array are not distorted, and the scattered spot images imaged by the pixel array will not be distorted either. Subsequent precise distortion correction and calibration processes are not required to map the precise speckle projection points in the physical space, thereby reducing the generation of measurement errors and improving the accuracy of the measurement results. At the same time, relative illumination (Shading) calibration can be performed in the image signal processing (ISP) process of the pixel array to avoid the problem of low illumination of scattered spots in the edge field of view of ordinary distortion-free lenses.
[0079] Figure 8 The structure diagram of a transmitting module and a receiving module in another distance measurement device in an exemplary embodiment of the present disclosure is schematically shown.
[0080] refer to Figure 8 As shown, the distance measuring device in this exemplary embodiment may include a transmitting module 810 and a receiving module 820 (it should be noted that in actual applications, a control module should also be included, but since the main part of this exemplary embodiment is less related to the control module, Figure 8 The control module is not described in detail here. Figure 3 The description of the control module in is not repeated here). Among them, the transmitting module 810 may include a light source array 811 composed of emitting holes of proportionally scaled vertical cavity surface lasers, and an ordinary distortion-free lens 812; the receiving module 820 may include a pixel array 821 composed of SPAD pixels, and an ordinary distortion-free lens 822, and the distortion-free lens 822 is a distortion-free lens with the same design, structure, and parameters as the distortion-free lens 812.
[0081] The light path can be emitted through the light source array 811 in the transmitting module 810, and the light path passes through the distortion-free lens 812 to obtain a speckle projection array. The speckle projection array is reflected at the target area to obtain a reflected speckle array. When the reflected speckle array returns to the receiving module 820, the reflected speckle array is restored (based on the principle of reversibility of the light path) through the distortion-free lens 822 to obtain a speckle array with the same structure as the light source array 811 and is incident on the pixel array 821. When the size of the light source array 811 is consistent with that of the pixel array 821 (or slightly smaller than that of the pixel array 821), the pixel array 821 can completely receive the reflected speckle array, thereby avoiding wasting speckles (energy) and improving the power consumption conversion rate of the light source array 811.
[0082] Of course, in this example embodiment, the same grouping design is also performed on the light source array 811 and the pixel array 821. When the laser emission holes of different groups are lighted in a cross-time sharing manner, it is ensured that each micro-pixel unit of the pixel array 821 has one and only one scattered spot at each moment, so that the time-to-digital conversion circuit connected to the micro-pixel unit can lock the pixel of the scattered spot imaging and perform speckle tracking without traversing all the pixels, thereby improving the measurement efficiency and the depth image imaging efficiency. For details, please refer to the above description, which will not be repeated here.
[0083] In summary, in this exemplary embodiment, a transmitting module including a first optical element and a light source array is provided to transmit a speckle projection array to a target area, and a receiving module including a second optical element having the same structure as the first optical element and a pixel array is provided to receive and restore a reflected speckle array generated by the speckle projection array, so that the reflected speckle array can be completely received by the pixel array; and a control module electrically connected to the transmitting module and the receiving module is used to output the flight time and calculate the real distance to the target area according to the flight time. On the one hand, based on the principle of reversible optical path, the speckle array emitted by the first optical element is received and restored by the second optical element with the same structure. At this time, the shape structure of the reflected speckle array reaching the pixel array is the same as the light source array. Through a simple light source array design, the reflected speckle array can be completely received by the pixel array, thereby improving the accuracy of the measurement result of the pixel array and avoiding the waste of power consumption (energy); on the other hand, since the shape structure of the reflected speckle array received by the pixel array is the same as the light source array, it is easier to track the speckle without traversing the data of each pixel, thereby improving the measurement efficiency of the pixel array; on the other hand, distance measurement is achieved by the first optical element and the second optical element with the same structure, and no diffractive optical element is needed, thereby reducing manufacturing costs and simplifying hardware structure, thereby simplifying module production and assembly accuracy and improving assembly yield.
[0084] For further reference, Fig. 9 As shown, in the implementation of this example, a distance measurement method is also provided, which may specifically include steps S910 to S940. Among them:
[0085] Step S910, emitting a speckle projection array to a target area through a transmitting module including a first optical element, so that the speckle projection array is reflected at the target area to generate a reflected speckle array;
[0086] Step S920, receiving and restoring the reflection speckle array by a receiving module including a second optical element; wherein the second optical element and the first optical element are optical elements with the same structure;
[0087] Step S930, starting timing when the transmitting module transmits the speckle projection array and stopping timing when the receiving module receives the reflected speckle array by means of a control module connected to the transmitting module and the receiving module, and outputting a flight time;
[0088] Step S940: Calculate the actual distance to the target area according to the flight time.
[0089] In an exemplary embodiment, the receiving module may include a pixel array, which may include a plurality of micro-pixel units, and the transmitting module may include laser emission holes in different groups; specifically, the laser emission holes in different groups may be cross-time-sharingly illuminated to ensure that the micro-pixel unit receives only one speckle in the reflective speckle array at each moment to achieve speckle tracking.
[0090] The specific details of each step in the above method have been described in detail in the implementation method of the device part. The undisclosed details can be found in the implementation method of the device part, so they will not be repeated here.
[0091] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0092] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0093] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification, for example, it can execute Fig. 9 Any one or more steps in .
[0094] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0095] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0096] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0097] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0098] It should be understood that the present disclosure is not limited to the exact structures that have been 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 present disclosure is limited only by the appended claims.
Claims
1. A distance measuring device, It is characterized in that include: A transmitting module, comprising a light source array and a first optical element, wherein the first optical element is arranged on an optical path of the light source array and is used to transmit a speckle projection array to a target area, so that the speckle projection array is reflected at the target area to generate a reflected speckle array; A receiving module, comprising a pixel array and a second optical element, wherein the second optical element and the first optical element are optical elements of the same structure, and the second optical element is arranged on an optical path from the reflection speckle array to the pixel array, and is used to receive and restore the reflection speckle array, so that the reflection speckle array can be completely received by the pixel array, the size of the first optical element is scaled in proportion to the size of the second optical element, and the size of the light source array is scaled in proportion to the size of the first optical element based on the same proportion, so as to reduce the baseline; a control module, electrically connected to the transmitting module and the receiving module, configured to start timing when the transmitting module transmits the speckle projection array, stop timing when the receiving module receives the reflected speckle array, and output a flight time, so as to calculate a real distance to the target area according to the flight time.
2. The device according to claim 1, It is characterized in that The second optical element and the first optical element are flat-field focusing lenses.
3. The device according to claim 1, It is characterized in that The second optical element and the first optical element are distortion-free lenses.
4. The device according to any one of claims 1 to 3, It is characterized in that The pixel array includes a plurality of micro pixel units, and each of the micro pixel units shares a time-to-digital conversion circuit.
5. The device according to claim 4, It is characterized in that The light source array comprises laser emission holes in different groups, and the laser emission holes in different groups are used to ensure that only one speckle in the reflective speckle array is received at the micro-pixel unit at each moment when the laser emission holes are lit in a cross-time-sharing manner.
6. The device according to claim 1, It is characterized in that The distance measuring device comprises a proportionally scaled transmitting module, which is used to replace the transmitting module.
7. A distance measurement method, It is characterized in that include: Transmitting a speckle projection array to a target area through a transmitting module including a first optical element, so that the speckle projection array is reflected at the target area to generate a reflected speckle array; The reflected speckle array is received and restored by a receiving module including a second optical element; wherein the second optical element and the first optical element are optical elements with the same structure, the size of the first optical element is scaled in proportion to the size of the second optical element, and the size of the light source array of the transmitting module is scaled in proportion to the size of the first optical element based on the same ratio, so as to reduce the baseline; By means of a control module connected to the transmitting module and the receiving module, timing is started when the transmitting module transmits the speckle projection array, and timing is stopped when the receiving module receives the reflected speckle array, and a flight time is output; The actual distance to the target area is calculated according to the flight time.
8. The method according to claim 7, It is characterized in that The receiving module includes a pixel array, the pixel array includes a plurality of micro pixel units, and the transmitting module includes laser emitting holes in different groups; the method further includes: The laser emission holes in different groups are cross-lit in time-sharing to ensure that the micro-pixel unit receives only one speckle in the reflective speckle array at each moment, so as to achieve speckle tracking.
9. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 7 or 8 is implemented.
10. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 7 or 8 by executing the executable instructions.
