This application relates to technical fields of time-of-flight distance measurement, and in particular, to a method for adaptive search of light spot positions, a time-of-flight distance measurement system, and a distance measurement method.
The time-of-flight (TOF) principle can be used to measure the distance from the target to obtain a depth image containing a target depth value, and the distance measurement system based on the time-of-flight principle has been widely applied to fields such as consumer electronics, autonomous vehicles, and AR/VR.
The distance measurement system based on the time-of-flight principle generally includes an emitter and a collector. The emitter is used for emitting pulsed beams to illuminate a target field of view, and the collector is used for collecting reflected beams. The time of flight of the beams from the emission to the received reflection is calculated to calculate the distance from the object. The emitter includes a light source, an emission optical element, and the like. The pulsed beams emitted by the light source are transmitted through the emission optical element (including a lens, a diffractive optical element, or the like) and projected onto the object space to form light spots with a fixed spatial template. The fixed spatial template of the light spots in the object space determines the specific measurement points on the surface of the measured object, and the specific parameters that determine the positions of the light spots include a spatial position of the light source, distortion of the lens, a spatial position of the lens, diffraction parameters of the diffractive optical element, a spatial position of the diffractive optical element, and the like.
The light spots with a fixed spatial template projected onto the surface of the measured object in the object space are reflected to the collector of the distance measurement system, the reflected light spots with another spatial template are formed on a pixel unit of the collector, and the pixel unit in the collector collects photons in the reflected light spots to form a photon detection signal. The fixed spatial template distribution of the light spots in the object space and on the pixel unit needs to be calibrated before leaving the factory, to obtain emission angles of the light spots in the object space and imaging positions of the reflected light spots on the pixel unit. The emission angles and the imaging positions determine whether the distance measurement system can accurately restore the three-dimensional point cloud image and accurately gate the pixels to collect the photons in the reflected light spots.
Although the fixed template distribution of the light spots in the object space and the fixed template distribution of the reflected light spots on the pixel unit have been calibrated when the system leaves the factory, in practical applications, the occurrence of thermal impact or force impact causes changes in the device parameters that determine the fixed template distribution of the light spots, and then the fixed template distribution of the light spot in the object space and on the pixel unit is changed. Finally, the distance measurement system fails to measure the information about a time of flight of light, or the three-dimensional point cloud restored by the time of flight of light is inaccurate.
This application provides an adaptive search method for light spot positions, a time-of-flight distance measurement system, and a distance measurement method, to resolve at least one of the problems in BACKGROUND.
To achieve the foregoing objective, the technical solutions in embodiments of this application are implemented as follows.
In a first aspect, a system for time-of-flight distance measurement includes: an emitter, configured to project pulsed beams to a target region that are reflected by the target region to form light spots; a collector, including a pixel unit including a plurality of pixels, and configured to receive the light spots; and a processing circuit, synchronizing trigger signals of the emitter and the collector, and processing photonic signals in the light spots, to calculate distance information of a target in the target region, where the collector further includes a memory and a first processing circuit; the memory is configured to store serial numbers of the light spots during system calibration, and spatial emission angle factors of the light spots with different serial numbers; the first processing circuit is configured to calculate coordinates of offset light spots after impact deformation occurs in the system, and obtain serial numbers of the offset light spots; and the processing circuit calibrates the system after the impact deformation occurs, according to the coordinates of the offset light spots and the serial numbers of the offset light spots, to obtain new spatial emission angle factors.
In some embodiments, the first processing circuit is configured to calculate the coordinates of the offset light spots after the impact deformation occurs according to the following formulas,
where (ui, vi) are coordinates of the light spots before the impact deformation occurs in the system, (u′i, v′i) are coordinates of the offset light spots after the impact deformation occurs, i is the serial number of the light spots or the offset light spots, Rmn is a positional parameter, and m and n are integers.
In some embodiments, the processing circuit is configured to turn on a portion of light sources of the emitter, and determine coordinates of offset light spots on the pixel unit, and the first processing circuit is configured to obtain serial numbers of the offset light spots on the pixel unit according to a correspondence between the serial numbers of the light spots and the light sources.
In some embodiments, the processing circuit includes a second processing circuit, configured to control a bias voltage of pixels corresponding to the coordinates of the offset light spots on the pixel unit, activate the pixels to collect photons in the offset light spots on the pixel unit, and to output a photon detection signal.
In some embodiments, the light source includes a VCSEL array light source.
Another technical solution of the embodiments of this application are as follows.
In a second aspect, a method for search of light spot positions includes the following steps. S1: Calibrate spatial template distribution of light spots in an object space of a distance measurement system and spatial emission angle factors of the light spots. S2: Calculate coordinates of offset light spots on a pixel unit of a collector after impact deformation occurs in the distance measurement system, and obtain serial numbers of the offset light spots. S3: According to the coordinates of the offset light spots on the pixel unit of the collector and the serial numbers, calibrate the distance measurement system after the impact deformation occurs to obtain new spatial emission angle factors, and complete the search of light spot positions.
In some embodiments, in step S1, a calibration plate is placed in front of the distance measurement system, an emitter is controlled to project pulsed beams onto the calibration plate that are reflected by the calibration plate to form light spots, and a camera is used to photograph the calibration plate. The method further includes identifying and numbering the light spots, and calculating the spatial emission angle factors of the light spots with different serial numbers and the spatial template distribution of the light spots in the object space.
In some embodiments, in step S2, coordinates of the offset light spots on the pixel unit of the collector are calculated according to the following formulas,
where (ui, vi) are coordinates of the light spots before the impact deformation occurs, (u′i, v′i) are coordinates of the offset light spots after the impact deformation occurs, i is the serial number of the light spots or the offset light spots, Rmn is a positional parameter, and m and n are integers.
In some embodiments, in step S2, a portion of light sources of the emitter is controlled to be turned on, and coordinates of the offset light spots on the pixel unit are determined, for the first processing circuit to obtain the serial numbers of the offset light spots according to a correspondence between the serial numbers of the light spots and the light sources.
Another technical solution of the embodiments of this application are as follows.
In a third aspect, a method for distance measurement includes the following steps: S60. Control an emitter to emit pulsed beams towards a target region, and a portion of the pulsed beams is reflected and incident on a sensing region in a collector to form light spots, where the sensing region includes at least one pixel unit, and the pixel unit includes a plurality of pixels. S61. Control the sensing region in the collector to collect photons in the light spots and output a photon detection signal, where the sensing region is a pre-calibrated initial sensing region. S62. Determine whether a center position of the light spots is the same as a position of the pre-calibrated initial sensing region, and if determining that the center position of the light spots is not the same as the position of the initial sensing region, determine a position of a second sensing region corresponding to the light spots through the search method for light spots according to the foregoing embodiments, and activate the second sensing region to collect the photons in the light spots, to output the photon detection signal. S63. Receive the photon detection signal to form a photon detection event signal, form a histogram based on the photon detection event signal, and further calculate distance information according to the histogram.
A time-of-flight distance measurement provided in an embodiment of this application includes: an emitter, configured to project pulsed beams to a target region that are reflected by the target region to form light spots; a collector, including a pixel unit composed of a plurality of pixels, and configured to receive the light spots; and a processing circuit, synchronizing trigger signals of the emitter and the collector, and processing photonic signals in the light spots, to calculate distance information of a target in the target region, where the collector further includes a memory and a first processing circuit; the memory is configured to store serial numbers of light spots during system calibration, and spatial emission angle factors of the light spots with different serial numbers; the first processing circuit is configured to calculate coordinates of offset light spots after impact deformation occurs in the system, and obtain serial numbers of the offset light spots; and the processing circuit calibrates the system after the impact deformation occurs, according to the coordinates of the offset light spots and the serial numbers of the offset light spots, to obtain new spatial emission angle factors. According to this application, an accurate light spot emission angle factor and an accurate imaging position are obtained by searching the light spot positions, so that the system is not affected by impact deformation such as thermal impact and force impact, thereby improving distance measurement accuracy.
To describe the technical solutions in the embodiments of this application or the existing technologies more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the existing technologies. Apparently, the accompanying drawings in the following description show only some embodiments of this application, and a person of ordinary skill in the art may derive other drawings from the accompanying drawings without creative efforts.
To make the technical problems to be resolved by the technical solutions, and the advantageous effects of the embodiments of this application clearer and more comprehensible, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It is to be understood that the embodiments described herein are merely used for explaining this application but do not limit this application.
It is to be noted that, when an element is described as being “fixed on” or “disposed on” another element, the element may be directly located on the another element, or indirectly located on the another element. When an element is described as being “connected to” another element, the element may be directly connected to the another element, or indirectly connected to the another element. In addition, the connection may be used for fixation or circuit connection.
It should be understood that orientation or position relationships indicated by the terms such as “length”, “width”, “above”, “below”, “front”, “back,” “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, and “outside” are based on orientation or position relationships shown in the accompanying drawings, and are used only for ease and brevity of illustration and description of embodiments of this application, rather than indicating or implying that the mentioned apparatus or component needs to have a particular orientation or needs to be constructed and operated in a particular orientation. Therefore, such terms should not be construed as limiting this application.
In addition, the terms “first” and “second” are used merely for the purpose of description, and shall not be construed as indicating or implying relative importance or implying a quantity of indicated technical features. In view of this, a feature defined by “first” or “second” may explicitly or implicitly include one or more features. In descriptions of the embodiments of this application, “a plurality of” means two or more, unless otherwise definitely and specifically limited.
The emitter 11 includes the light source 111, an emission optical element 112, a driver 113, and the like. In an embodiment, the light source 111 is a VCSEL array light source chip formed by generating a plurality of VCSEL (Vertical Cavity Surface Emitting Laser) light sources on a single semiconductor substrate. The light source 111 can emit pulsed beams at a certain frequency (pulse period) under control of the processing circuit 13, and the pulsed beams are projected onto a target scene through the emission optical element 112 to form illumination spots (that is, light spots), where the frequency is set according to a measured distance.
The collector 12 includes the pixel unit 121, a filter unit 122, a receiving optical element 123, and the like. The receiving optical element 123 images the spot beams reflected by the target onto the pixel unit 121. The pixel unit 121 includes a plurality of pixels for collecting photons, and the pixel may be one of single photon devices for collecting photons, such as an APD (avalanche photodiode), an SPAD (single photon avalanche diode), and an SiPM (silicon photomultiplier tube). An event that the pixel unit 121 collects photons is regarded as occurrence of a photon detection event and a photon detection signal is outputted.
In an embodiment, the pixel unit 121 includes a plurality of SPADs, and the SPADs can respond to an incident single photon and output a photon detection signal indicating a corresponding the time of arrival of received photons at each SPAD. Generally, the collector 12 further includes a readout circuit (not shown in the figure) includes one or more of devices such as a signal amplifier, a time-to-digital converter (TDC), and an analog-to-digital converter (ADC) connected to the pixel unit. The readout circuit can be integrated with the pixels as a part of the collector or as a part of the processing circuit 13.
The processing circuit 13 synchronizes trigger signals of the emitter 11 and the collector 12, and is configured to process the photon detection signal outputted by the pixels collecting the photons, calculate a time of flight of the photons from the emission to the received reflection back, and further calculate distance information of the target. In some embodiments, the processing circuit 13 may be an independent dedicated circuit, such as a dedicated SOC chip, FPGA chip, or ASIC chip, or may include a general purpose processing circuit.
In an embodiment, the readout circuit of the collector includes a memory and a first processing circuit. The memory is configured to store serial numbers of light spots during system calibration and spatial emission angle factors (nx,i, ny,i, nz,i) of the light spots with different serial numbers (that is, store a correspondence between the serial numbers of the light spots and the light sources of the emitter), and the first processing circuit is configured to calculate coordinates of the offset light spots after the impact deformation occurs in the system, to obtain positions of the offset light spots.
For example, the first processing circuit calculates coordinates (u′i, v′i) of the offset light spots according to the following formulas, where
where (ui, vi) are coordinates of the initial light spots before the impact deformation occurs in the distance measurement system, i is the serial number of the light spot, and Rmn is a positional parameter.
The positional parameter Rmn can be calculated according to the above formula (1) through a plurality of point pairs of correspondences between the offset light spots and the initial light spots (i takes different values). After the positional parameter Rmn is determined, coordinates (ui, vi) of all the initial light spots are substituted into the above formula, and the coordinates (u′i, v′i) of all the offset light spots can be obtained.
In an embodiment, the processing circuit controls a portion of the light sources of the emitter to be turned on (for example a column or a row), and the first processing circuit is further configured to determine positions of the offset light spots on the pixel unit according to the correspondence between the serial numbers of the light spots and the light sources to obtain serial numbers of the offset light spots. It may be understood that when impact deformation occurs, offsets of the light spots in the same column or row are basically the same.
In an embodiment, the processing circuit calibrates the distance measurement system in which the impact deformation occurs, according to the coordinates (u′i, v′i) of the offset light spot and the serial number i of the light spot to obtain new spatial emission angle factors (n′x,i, n′y,i, n′z,i).
In an embodiment, the processing circuit includes a second processing circuit. After the positions of the offset light spots are determined, the second processing circuit is configured to control a bias voltage of the pixels corresponding to the positions of the offset light spots, and activate the pixels to collect photons in the light spots, to output a photon detection signal. When the bias voltage of the pixels is greater than an avalanche voltage, the pixels are in an active state, and may be used for receiving photons in the reflected beams.
In an embodiment, the second processing circuit may be configured as an excess bias control circuit. According to the positions of the offset light spots, the second processing circuit adjusts the excess bias voltage on the pixels corresponding to the positions of the offset light spots to be greater than zero until the bias voltage is greater than the avalanche voltage, so that the pixels are in an active state, to collect photons in the light spots output a photon detection signal.
In an embodiment, a special pixel structure can also be set to control activation and deactivation of the pixels. For example, a storage unit is arranged in the pixels to store a control logic that controls the activation or deactivation of each pixel. According to the positions of the offset light spots, the processing circuit adjusts the execution of the control logic in the storage unit on the corresponding pixels to adjust the bias voltage applied to the pixels.
S1: Calibrate spatial template distribution of light spots in an object space of the distance measurement system at an initial state, and spatial emission angle factors of the light spots.
For example, referring to
In some embodiments, the positions of the light spots can be obtained by restoring the photographed image. A relational expression of the spatial emission angle factors of the light spots and the position coordinates of the light spots is as follows:
where i is the serial number of the light spot. The definition of a coordinate system is shown in
According to a measured time-of-flight distance Distancei and calibrated spatial emission angle factors (nx,i, ny,i, nz,i), position space coordinates (xi, yi, Depthi) of the corresponding light spots can be calculated in real time.
In step S1, after each light spot is numbered, the serial numbers of the light spots and the spatial emission angle factors of the corresponding numbered light spots are stored, and a correspondence between the serial numbers of the light spots and the light sources of the emitter is established.
S2: Calculate coordinates of offset light spots on a pixel unit of a collector after impact deformation occurs in the distance measurement system, and obtain serial numbers of the offset light spots.
For example, after the impact deformation occurs in the distance measurement system in the actual use, calibrated spatial emission angle factors (nx,i, ny,i, nz,i) cannot reflect the spatial positions of the offset light spots, and new spatial emission angle factors (n′x,i, n′y,i, n′z,i) need to be recalibrated. In addition, generally, the positions of the light spots on the pixel unit of the collector also offset. In this case, positions of activated pixels need to be corrected, so that enabled pixels can accurately collect a photonic signal in the reflected light spots, reduce the reception of ambient light received by excess enabled pixels, and enhance a signal-to-noise ratio of the signal reception.
After the impact deformation occurs, referring to
In step S2, coordinates (u′i, v′i) of the offset light spots on the pixel unit are calculated according to the following formulas, where
where (ui, vi) are coordinates of the initial light spots before the impact deformation occurs, i is the serial number of the light spot, and Rmn is a positional parameter. The positional parameter Rmn can be calculated according to the above formula through a plurality of point pairs of correspondences between the offset light spots and the initial light spots (i takes different values). After the positional parameter Rmn is determined, coordinates (ui, vi) of all the initial light spots are substituted into the above formula, and the coordinates (u′i, v′i) of all the offset light spots on the pixel unit can be obtained.
In some embodiments, a portion of the light sources of the emitter is controlled to be turned on (for example a column or a row), and the correspondence between the serial numbers of the light spots and the light sources can be obtained in step S1. That is, the serial numbers of the offset light spots can be determined according to the positions of the offset light spots on the pixel unit, thereby obtaining the serial numbers of the offset light spots.
S3: According to the coordinates of the offset light spots on the pixel unit and the serial numbers obtained in step S2, calibrate the distance measurement system in which the impact deformation occurs, to obtain new spatial emission angle factors (n′x,i, n′y,i, n′z,i), so as to complete adaptive search of light spot positions.
For example, based on the position space coordinates (xi, yi, Depthi) of the light spots and the coordinates (ui, vi) of the initial light spots in the object space of the distance measurement system at the initial state, a model of the correspondence between point pairs of the object space and the image space of the initial distance measurement system is obtained,
The positional parameter R′mn of the above formula can be obtained through the correspondence of the plurality of point pairs (i takes different values, that is, different serial numbers), where m and n respectively represent different numerical subscripts. The coordinates (u′i, v′i) of the offset light spots on the pixel unit and the serial numbers of the light spots obtained in step S2 are substituted into the above formula of the determined positional parameter R′mn to obtain the position space coordinates (x′i, y′i, Depth′i) of all light spots in the object space after the impact deformation occurs, where
and new spatial emission angle factors (n′x,i, n′y,i, n′z,i) are obtained as:
Based on the new spatial emission angle factors (n′x,i, n′y,i, n′z,i) and the time-of-flight distance Distance′i measured by the distance measurement system after the impact deformation occurs, a point cloud can be restored accurately.
In some embodiments, according to the following model of the correspondence between the position space coordinates (xi, yi, Depthi) of the light spots in the object space of the initial distance measurement system and the coordinates (ui, vi) of the initial light spots, the position space coordinates (x′i, y′i, Depth′i) of the light spots in the object space after the impact deformation occurs can be calculated to obtain the new spatial emission angle factors (n′x,i, n′y,i, n′z,i), where
and zi represents the position space coordinates (x′i, y′i, Depth′i) of the light spots in the object space after the impact deformation occurs.
S60: Control an emitter to emit pulsed beams towards a target region, and the pulsed beams are reflected and then incident on a sensing region in the collector to form light spots, where the sensing region includes at least one pixel unit, and the pixel unit includes a plurality of pixels.
S61: Control the sensing region in the collector to collect photons in the light spots and output a photon detection signal, where the sensing region is a pre-calibrated initial sensing region.
For example, an event that the pixels of the sensing region collect photons is regarded as occurrence of a photon detection event.
S62: Determine whether a center position of the light spots is the same as a position of the initial sensing region, and if not, determine a position of a corresponding sensing region according to the light spots through the adaptive search method for light spots according to any one of the foregoing embodiments, and activate the corresponding sensing region to collect the photons in the light spots, to output the photon detection signal.
S63: Receive the photon detection signal to form a photon detection event signal, form a histogram based on the photon detection event signal, and further calculate distance information according to the histogram.
This application further provides a computer-readable storage medium storing a computer program, and the program, when executed by a processor, implements the adaptive search method for light spots and the distance measurement method according to the solutions of the foregoing embodiments. The storage medium may be implemented by using any type of volatile or non-volatile storage device or a combination thereof.
Embodiments of this application may include or utilize a dedicated or general-purpose computer including computer hardware, as discussed in more detail below. Embodiments within the scope of this application also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. The computer-readable storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer system. The computer-readable storage medium storing the computer-executable instructions is a physical storage medium. The computer-readable storage medium carrying the computer-executable instructions is a transmission medium. Therefore, for example, but not limitation, the embodiments of this application may include at least two different computer-readable media: a physical computer-readable storage medium and a transmission computer-readable storage medium.
An embodiment of this application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and run on the processor, and the processor, when executing the computer program, implementing at least the adaptive search method for light spots and the distance measurement method according to the solutions of the foregoing embodiments.
It may be understood that, the foregoing contents are detailed descriptions of this application in conjunction with some embodiments, and the implementation of this application is not limited to these descriptions. A person of ordinary skill in the art, to which this application belong, may make various replacements or variations on the described implementations without departing from the principle of this application, and the replacements or variations should fall within the protection scope of this application. In the descriptions of this specification, descriptions using reference terms “an embodiment,” “some embodiments,” “an exemplary embodiment,” “an example,” “a specific example,” or “some examples” mean that characteristics, structures, materials, or features described with reference to the embodiment or example are included in at least one embodiment or example of this application.
In this specification, schematic descriptions of the foregoing terms are not necessarily directed at the same embodiment or example. Besides, the features, the structures, the materials or the characteristics that are described may be combined in proper manners in any one or more embodiments or examples. In addition, different embodiments or examples described this specification, as well as features of different embodiments or examples, may be integrated and combined by those skilled in the art without contradicting each other. Although the embodiments of this application and advantages thereof have been described in detail, it should be understood that various changes, substitutions, and alterations can be made herein without departing from the scope defined by the appended claims.
In addition, the scope of this application is not limited to the embodiments of the processes, machines, manufacturing, material composition, means, methods, and steps described in the specification. A person of ordinary skill in the art can easily understand and use the above disclosures, processes, machines, manufacturing, material composition, means, methods, and steps that currently exist or will be developed later and that perform substantially the same functions as the corresponding embodiments described herein or obtain substantially the same results as the embodiments described herein. Therefore, the appended claims include such processes, machines, manufacturing, material compositions, means, methods, or steps within the scope thereof.
Number | Date | Country | Kind |
---|---|---|---|
202110227556.4 | Mar 2021 | CN | national |
This application is a Continuation Application of International Patent Application No. PCT/CN2021/106030 filed with the China National Intellectual Property Administration (CNIPA) on Jul. 13, 2021, which is based on and claims priority to and benefits of Chinese Patent Application No. 202110227556.4, filed on Mar. 1, 2021. The entire content of all of the above-referenced applications is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2021/106030 | Jul 2021 | WO |
Child | 18202498 | US |