Light spot position adaptive search method, time-of-flight ranging system and ranging method
By calculating and calibrating the coordinates and number of the offset light spot, the problem of inaccurate ranging caused by the change of light spot position after impact deformation of the time-of-flight ranging system is solved, and the system can still accurately measure after impact.
Patent Information
- Application Number
- CN202110227556.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-03-01
AI Technical Summary
When a ranging system based on the time-of-flight principle encounters thermal shock or force shock, the position of the light spot changes, resulting in inaccurate ranging and inability to effectively restore the three-dimensional point cloud accurately.
By calculating the coordinates and number of the offset light spot in the processing circuit, the system is recalibrated, a new spatial emission angle factor is obtained, and the adaptive search and calibration of the light spot position is realized to ensure that the ranging system can still measure accurately after impact deformation.
The accuracy of the ranging system is improved, ensuring that the system can still accurately measure distance information despite impact deformation, and reducing errors in three-dimensional point cloud restoration.
Smart Images

Figure CN113176579B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of time-of-flight ranging, and in particular to a light spot position adaptive search method, a time-of-flight ranging system and a ranging method. Background Art
[0002] The time of flight principle (TOF) can be used to measure the distance of the target to obtain a depth image containing the target depth value. The ranging system based on the time of flight principle has been widely used in various fields such as consumer electronics, unmanned vehicles, AR / VR, etc.
[0003] The distance measurement system based on the time-of-flight principle usually includes a transmitter and a collector. The transmitter emits a pulse light beam to illuminate the target field of view and the collector collects the reflected light beam. The flight time of the light beam from emission to reflection back to be received is calculated to calculate the distance of the object. Among them, the transmitter includes a light source, a transmitting optical element, etc. The pulse light beam emitted by the light source is projected onto the object space through the transmitting optical element (including a lens, a diffractive optical element, etc.) to form a light spot with a fixed spatial template. The fixed spatial template of the light spot on the object space will determine the specific measurement point on the surface of the object to be measured, and the specific parameters that determine the position of the light spot include the spatial position of the light source, the distortion of the lens, the spatial position of the lens, the diffraction parameters of the diffractive optical element, the spatial position of the diffractive optical element, etc.
[0004] The light spot with a fixed spatial template projected onto the surface of the object to be measured in the object space will be reflected to the collector of the ranging system, forming a reflected light spot with another spatial template on the pixel unit of the collector. The pixel unit in the collector collects the photons in the reflected light spot to form a photon detection signal. The fixed spatial template distribution of the light spot in the object space and on the sensor needs to be calibrated before leaving the factory to obtain the emission angle of the light spot in the object space and the imaging position of the reflected light spot on the pixel unit; the emission angle and imaging position will be related to whether the ranging system can accurately restore the three-dimensional point cloud map and whether it can accurately select pixels to collect photons in the reflected light spot.
[0005] Although the fixed template distribution of the light spot in the object space and the fixed template distribution of the light spot on the pixel unit have been calibrated when the system leaves the factory, in actual applications, the occurrence of thermal shock or force shock will cause the device parameters that determine the fixed template distribution of the light spot to change, thereby changing the fixed template distribution of the light spot in the object space and on the pixel unit; ultimately resulting in the ranging system being unable to measure the light flight time information, or the 3D point cloud restored by the light flight time being inaccurate.
[0006] The disclosure of the above-mentioned background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above-mentioned content has been disclosed on the filing date of this patent application, the above-mentioned background technology should not be used to evaluate the novelty and creativity of this application. Summary of the invention
[0007] The object of the present invention is to provide a light spot position adaptive search method, a time-of-flight ranging system and a ranging method to solve at least one of the above-mentioned background technical problems.
[0008] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:
[0009] A time-of-flight ranging system, comprising:
[0010] A transmitter, used for projecting a pulse beam to a target area to form a light spot;
[0011] A collector, comprising a pixel unit composed of a plurality of pixels, for receiving the light spot reflected back from the target area;
[0012] A processing circuit synchronizes the trigger signals of the transmitter and the collector, processes the photon signal in the light spot, and calculates the distance information of the target to be measured;
[0013] Among them, the collector also includes a memory and a first processing circuit; the memory is used to store the number of the light spot when the system is calibrated and the spatial emission angle factor of the light spots with different numbers; the first processing circuit is used to calculate the coordinates of the offset light spot after the system is impact deformed, and obtain the number of the offset light spot; the processing circuit calibrates the system after the impact deformation according to the coordinates of the offset light spot and the number of the offset light spot to obtain a new spatial emission angle factor.
[0014] In some embodiments, the first processing circuit calculates the coordinates (u') of the offset light spot according to the following formula: i ,v' i ),in:
[0015]
[0016]
[0017] (u i ,v i ) is the coordinate of the initial spot when the ranging system does not undergo impact deformation, i is the number of the spot, R mn is a positional parameter.
[0018] In some embodiments, a processing circuit is used to control some light sources of the transmitter to turn on, determine the position of the offset light spot on the pixel unit, and the first processing circuit obtains the number of the offset light spot based on the correspondence between the number of the light spot and the light source.
[0019] In some embodiments, the processing circuit includes a second processing circuit for controlling a bias voltage of a pixel corresponding to the position of the offset light spot, activating the pixel to collect photons in the light spot and outputting a photon detection signal.
[0020] In some embodiments, the light source is a VCSEL array light source.
[0021] Another technical solution of the embodiment of the present invention is:
[0022] A method for adaptively searching a light spot position comprises the following steps:
[0023] S1. Calibrate the spatial template distribution of the light spot in the object space of the initial ranging system and the spatial emission angle factor of the light spot;
[0024] S2, obtaining the coordinates of the offset light spot on the collector pixel unit after the distance measurement system is impact-deformed, and obtaining the number of the offset light spot;
[0025] S3. Calibrate the distance measurement system after the impact deformation according to the coordinates of the offset light spot on the collector pixel unit and the number, and obtain a new spatial emission angle factor to complete the adaptive search of the light spot position.
[0026] In some embodiments, in step S1, a calibration plate is placed in front of the initial ranging system, and the transmitter is controlled to project a pulse light beam onto the calibration plate to form a light spot. An independent camera is used to photograph the calibration plate, identify the light spot, and number the light spot. The spatial emission angle factors of light spots with different numbers and the spatial template distribution of the light spot in the object space are calculated.
[0027] In some embodiments, in step S2, the coordinates (u') of the offset light spot on the collector pixel unit are calculated according to the following formula: i ,v' i ),in:
[0028]
[0029]
[0030] u i ,v i is the coordinate of the initial light spot when no impact deformation occurs, i is the number of the light spot, R mn is a positional parameter.
[0031] In some embodiments, in step S2, part of the light sources of the transmitter are controlled to be turned on, and the coordinates of the offset light spot on the pixel unit are determined, and the first processing circuit obtains the number of the offset light spot according to the correspondence between the number of the light spot and the light source.
[0032] Another technical solution of the embodiment of the present invention is:
[0033] A distance measurement method comprises the following steps:
[0034] S60, controlling the emitter to emit a pulse light beam toward the target area, and a portion of the pulse light beam is reflected and incident on a sensing area of the collector to form a light spot; wherein the sensing area includes at least one pixel unit, and the pixel unit includes a plurality of pixels;
[0035] S61, controlling a sensing area in the collector to collect photons in the light spot and output a photon detection signal; wherein the sensing area is a pre-calibrated initial sensing area;
[0036] S62, determining whether the center position of the light spot is the same as the position of the initial sensing area; if not, determining the corresponding measurement sensing area position according to the light spot adaptive search method described in any of the technical solutions of the aforementioned embodiments, activating the measurement sensing area to collect photons in the light spot, and outputting a photon detection signal;
[0037] S63, receiving the photon detection signal and forming a photon detection event signal, forming a histogram based on the photon detection event signal, and further calculating distance information according to the histogram.
[0038] The beneficial effects of the technical solution of the present invention are:
[0039] Compared with the prior art, the present invention obtains accurate light spot emission angle factor and imaging position by searching the light spot position, so that the system is not affected by impact deformation such as thermal shock and force shock, thereby improving the accuracy of ranging. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 is a principle block diagram of a distance measurement system according to an embodiment of the present invention;
[0042] Figure 2is a structural diagram of a pixel unit of a distance measurement system according to an embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of a flow chart of a method for adaptively searching a light spot position according to an embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of initial system calibration of a ranging system according to an embodiment of the present invention;
[0045] Figure 5 is a schematic diagram of light spots before and after the distance measurement system is impact-deformed according to an embodiment of the present invention;
[0046] Figure 6 It is a flowchart of a distance measurement method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0048] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for fixing or for circuit connection.
[0049] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0050] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0051] Figure 1The figure shows a schematic diagram of a time-of-flight ranging system according to an embodiment of the present invention. The time-of-flight ranging system 10 includes a transmitter 11, a collector 12, and a processing circuit 13. The transmitter 11 includes a light source 111 composed of one or more lasers, which is used to emit a pulse light beam 30 to a target 20, and at least part of the pulse light beam is reflected by the target to form a reflected light beam 40 and return to the collector 12; the collector 12 includes a pixel unit 121 composed of a plurality of pixels, which is used to collect photons in the reflected light beam 40 and output a photon detection signal; the processing circuit 13 synchronizes the trigger signals of the transmitter 11 and the collector 12 to calculate the flight time required for the photons in the light beam from emission to reflection back to be received and the distance value of the target to be measured.
[0052] The transmitter 11 includes a light source 111, an emission optical element 112, and a driver 113. In one embodiment, the light source 111 is a VCSEL array light source chip formed by generating multiple VCSEL (vertical cavity surface emitting laser) light sources on a single semiconductor substrate. The light source 111 can emit a pulse light beam at a certain frequency (pulse period) under the control of the processing circuit 13, and the pulse light beam is projected onto the target scene through the emission optical element 112 to form an illumination spot (i.e., a light spot), wherein the frequency is set according to the measurement distance.
[0053] The collector 12 includes a pixel unit 121, a filter unit 122, and a receiving optical element 123, etc., wherein the receiving optical element 123 images the spot light beam reflected by the target onto the pixel unit 121. The pixel unit 121 includes a plurality of pixels for collecting photons, and the pixels may be one of single-photon devices for collecting photons, such as APD (avalanche photodiode), SPAD (single-photon avalanche diode), SiPM (silicon photomultiplier tube), etc. The event that the pixel unit 121 collects photons is regarded as a photon detection event and outputs a photon detection signal.
[0054] In one embodiment, the pixel unit 121 is composed of a plurality of SPADs, which can respond to a single incident photon and output a photon detection signal indicating the corresponding arrival time of the received photon at each SPAD. Generally, the collector 12 also includes a readout circuit (not shown in the figure) composed of one or more devices such as a signal amplifier, a time-to-digital converter (TDC), and a digital-to-analog converter (ADC) connected to the pixel unit. The readout circuit can be integrated with the pixel as part of the collector, or as part of the processing circuit 13.
[0055] The processing circuit 13 synchronizes the trigger signals of the emitter 11 and the collector 12, and is used to process the photon detection signal output by the pixel collecting photons, calculate the flight time of the photons from emission to reflection back to reception, and further calculate the distance information of the target. In some embodiments, the processing circuit 13 can be an independent dedicated circuit, such as a dedicated SOC chip, FPGA chip, ASIC chip, etc., or it can also include a general processing circuit.
[0056] Figure 2 FIG. 1 is an exemplary illustration of the light spot shift on the pixel unit of the collector; wherein the pixel unit 121 includes a plurality of pixels 201. When the ranging system is affected by factors such as thermal shock or force shock (hereinafter collectively referred to as impact deformation), the position of the light spot on the pixel unit changes, and the light spot shifts, such as Figure 2 As shown in the dotted circle in the figure, the light spot no longer enters the pre-calibrated sensing area 203, but enters the sensing area 202 which is in an inactive state. Then, the pixels in the sensing area 203 cannot collect the photons in the reflected light spot reflected from the field of view and output invalid interference signals, resulting in a deviation in the distance value of the point in the target field of view corresponding to the sensing area 203 finally calculated by the processing circuit.
[0057] In one embodiment, the readout circuit of the collector includes a memory and a first processing circuit; wherein the memory is used to store the number of the light spot during system calibration and the spatial emission angle factor (η) of the light spot with different numbers x,i ,η y,i ,η z,i ) (i.e., storing the corresponding relationship between the number of the light spot and the light source of the transmitter); the first processing circuit is used to calculate the coordinates of the light spot that is offset after the system is impact-deformed, and obtain the position of the light spot after the offset.
[0058] Specifically, the first processing circuit calculates the coordinates (u') of the offset light spot according to the following formula: i ,v' i ),in:
[0059]
[0060] (u i ,v i ) is the coordinate of the initial spot when the ranging system does not undergo impact deformation, i is the number of the spot, R mn is a positional parameter.
[0061] Among them, the location parameter R mn The correspondence between the offset spot and the initial spot can be obtained by multiple point pairs (i takes different values) according to the above formula (1). Determine the position parameter R mn After that, the coordinates of all initial light spots (ui ,v i ) into the above formula, we can get the coordinates of all offset light spots (u' i ,v' i ).
[0062] In one embodiment, the processing circuit controls part of the light sources of the emitter to turn on (for example, one column or one row), and the first processing circuit is further used to determine the position of the offset light spot on the pixel unit according to the corresponding relationship between the number of the light spot and the light source to obtain the number of the offset light spot. It can be understood that when impact deformation occurs, the light spot offset in the same column or the same row is basically the same.
[0063] In one embodiment, the processing circuit calculates the coordinates (u') of the offset light spot according to the coordinates (u') of the offset light spot. i ,v' i ) and the number of the spot i, the ranging system after the impact deformation is calibrated to obtain the new spatial emission angle factor (η' x,i ,η' y,i ,η' z ,i).
[0064] In one embodiment, the processing circuit includes a second processing circuit. After the position of the offset light spot is determined, the second processing circuit is used to control the bias voltage of the pixel corresponding to the position of the offset light spot, activate the pixel to collect photons in the light spot and output a photon detection signal. When the bias voltage of the pixel is greater than the avalanche voltage, it is in an activated state and can be used to receive photons in the reflected light beam.
[0065] In one embodiment, the second processing circuit can be configured as an excess bias control circuit. According to the position of the offset light spot, the second processing circuit adjusts the excess bias voltage on the pixel corresponding to the position of the offset light spot to be greater than zero until the bias voltage is greater than the avalanche voltage so that the pixel is in an activated state, so as to collect photons in the light spot and output a photon detection signal.
[0066] In one embodiment, a special pixel structure may be provided to control the activation and deactivation of pixels. For example, a storage unit may be configured within the pixel to store control logic for controlling the activation or deactivation of each pixel. According to the position of the offset light spot, the processing circuit controls the execution of the control logic within the storage unit on the corresponding pixel to adjust the bias voltage applied to the pixel.
[0067] Reference Figure 3 As shown, as another embodiment of the present invention, a method for adaptively searching a light spot position includes the following steps:
[0068] S1. Calibrate the spatial template distribution of the light spot in the object space of the initial ranging system and the spatial emission angle factor of the light spot;
[0069] Specifically, refer to Figure 4 As shown in FIG. 1 , a calibration plate is placed at a fixed distance (e.g., Depth=400 (mm)) in front of the initial ranging system, and the transmitter is controlled to project a pulse beam onto the calibration plate to form a light spot. The calibration plate is photographed using an independent camera. The image processing method is used to automatically identify the light spot and number the light spots one by one to determine the spatial template position dot matrix (x i ,y i ,Depth) (i.e., the position coordinates of each light spot on the calibration plate), thereby calculating the spatial emission angle factor (η) of each numbered light spot x,i ,η y,i ,η z,i ).
[0070] In some embodiments, the position of the light spot can be obtained by restoring the captured image; and the relationship between the spatial emission angle factor of the light spot and the position coordinates of the light spot is:
[0071]
[0072] Where i is the number of the light spot, and the coordinate system is defined as Figure 4 As shown, (x i ,y i ,Depth) represents the coordinates of the spot position in the object space, (η x,i ,η y,i ,η z,i ) represents the spatial emission angle factor of the light spots with different numbers. Then the relationship between the time flight distance Distance and the position coordinates of the light spots in space satisfies:
[0073]
[0074] According to the measured time flight distance Distance i and the calibrated spatial emission angle factor (η x,i ,η y,i ,η z,i ), the spatial coordinates of the corresponding light spot position (x i ,y i ,Depth i ).
[0075] In step S1, after each light spot is numbered, the number of the light spot and the spatial emission angle factor of the light spot with the corresponding number are stored, and a corresponding relationship between the number of the light spot and the emitter light source is established.
[0076] S2, obtaining the coordinates of the offset light spot on the collector pixel unit after the distance measurement system is impact-deformed, and obtaining the number of the offset light spot;
[0077] Specifically, after the ranging system is impact-deformed in actual use, the calibrated spatial emission angle factor (η x,i ,η y,i ,η z,i ) cannot reflect the spatial position of the light spot after the change, and the new spatial emission angle factor (η' x,i ,η' y,i ,η' z,i ) for recalibration. At the same time, generally speaking, the position of the light spot on the collector pixel unit will also shift. At this time, it is necessary to correct the position of the activated pixel so that the turned-on pixel can accurately collect the photon signal in the reflected light spot, and reduce the amount of ambient light received by the redundant turned-on pixels, thereby enhancing the signal-to-noise ratio of the signal received.
[0078] After impact deformation occurs, refer to Figure 5 As shown, the distribution of the spatial template of the light spot on the pixel unit of the collector changes. Taking the automatic search mode of the light spot as an example, after the distribution of the spatial template of the light spot changes, the collector cannot normally obtain sufficient signals and start the automatic search mode of the light spot based on this. During the measurement process, the automatic search mode of the light spot is usually centered on the pixel that is turned on when no impact deformation occurs, and multiple pixels are turned on in sequence around it to detect pixels with sufficient signal-to-noise ratio. The pixels with sufficient signal-to-noise ratio are the corresponding pixels where the light spot is incident after the impact deformation occurs. However, the pixels that are turned on after the impact deformation found by the automatic search mode are random and time-consuming, and often only some pixels can be searched. In order to obtain the positions of all pixels that need to be turned on after the impact deformation occurs, it is necessary to obtain the coordinates of the offset light spot on the pixel unit (u' i ,v' i ) to determine the position of the offset light spot on the pixel unit after the impact deformation occurs.
[0079] In step S2, the coordinates (u') of the offset light spot on the pixel unit are calculated according to the following formula: i ,v' i ),in:
[0080]
[0081]
[0082] (u i ,v i ) is the coordinate of the initial spot when no impact deformation occurs, i is the number of the spot, R mn is the position parameter. Among them, the position parameter R mn The correspondence between the offset spot and the initial spot can be obtained by multiple point pairs (i takes different values) according to the above formula. Determine the position parameter R mn After that, the coordinates of all initial light spots (ui ,v i ) into the above formula, we can get the coordinates of all offset light spots on the pixel unit (u' i ,v' i ).
[0083] In some embodiments, part of the light sources of the emitter are controlled to turn on (such as a column or a row), and the number of the offset light spot can be determined according to the position of the offset light spot on the pixel unit based on the correspondence between the number of the light spot obtained in step S1 and the light source, thereby obtaining the number of the offset light spot.
[0084] S3, according to the coordinates and numbers of the offset light spot on the pixel unit obtained in step S2, calibrate the distance measurement system after the impact deformation, and obtain a new spatial emission angle factor (η' x,i ,η' y,i ,η' z,i ) to complete the adaptive search of the spot position.
[0085] Specifically, based on the spatial coordinates of the spot position in the object space of the initial ranging system (x i ,y i ,Depth i ) and the coordinates of the initial spot (u i ,v i ), obtain the corresponding relationship model of the object space and image space point pairs of the initial ranging system,
[0086]
[0087]
[0088] Through the correspondence between multiple point pairs (i takes different values, that is, different numbers), the position parameter R' of the above equation can be obtained mn , where m and n represent different numerical subscripts. The coordinates (u' i ,v' i ) and the number of the light spot are brought into the above-mentioned determined position parameter R' mn The formula is used to obtain the spatial coordinates (x' i ,y' i ,Depth' i ),in, Get the new space launch angle factor (η' x,i ,η' y,i ,η' z,i )for:
[0089]
[0090] Based on the new spatial emission angle factor (η' x,i ,η' y,i ,η' z,i ) and the time flight distance Distance' measured by the ranging system after the impact deformation occurs i , accurate point cloud restoration can be performed.
[0091] In some embodiments, the spatial coordinates (x i ,y i ,Depth i ) and the initial spot coordinates (u i ,v i ) is the following corresponding relationship model, and the spatial coordinates of the light spot position in the object space after the impact deformation (x' i ,y' i ,Depth' i ), and then obtain the new spatial emission angle factor (η' x,i ,η' y,i ,η' z,i ),in:
[0092]
[0093] z i is the spatial coordinate of the light spot position in the object space after the impact deformation occurs (x' i ,y' i ,Depth' i ).
[0094] Reference Figure 6 As shown, as another embodiment of the present invention, a distance measurement method includes the following steps:
[0095] S60, controlling the emitter to emit a pulse light beam toward the target area, and the pulse light beam is reflected and incident on the sensing area of the collector to form a light spot; wherein the sensing area includes at least one pixel unit, and the pixel unit includes a plurality of pixels;
[0096] S61, controlling a sensing area in the collector to collect photons in the light spot and output a photon detection signal; wherein the sensing area is a pre-calibrated initial sensing area;
[0097] Specifically, an event in which a pixel in the sensing area collects a photon is regarded as a photon detection event.
[0098] S62, determining whether the center position of the light spot is the same as the position of the initial sensing area; if not, determining the corresponding measurement sensing area position according to the light spot adaptive search method of any of the aforementioned embodiments, and activating the measurement sensing area to collect photons in the light spot to output a photon detection signal;
[0099] S63, receiving the photon detection signal and forming a photon detection event signal, forming a histogram based on the photon detection event signal, and further calculating distance information according to the histogram.
[0100] The present invention also proposes a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the light spot adaptive search method or ranging method of the above-mentioned embodiment scheme is implemented. The storage medium can be implemented by any type of volatile or non-volatile storage device, or a combination thereof.
[0101] Embodiments of the present invention may include or utilize a special or general-purpose computer including computer hardware, as discussed in more detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. Such computer-readable media can be any available media that can be accessed by a general or special-purpose computer system. The computer-readable medium that stores computer-executable instructions is a physical storage medium. The computer-readable medium that carries computer-executable instructions is a transmission medium. Therefore, by way of example and not limitation, embodiments of the present invention may include at least two distinct computer-readable media: a physical computer-readable storage medium and a transmission computer-readable medium.
[0102] An embodiment of the present application also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, at least the adaptive spot search method or ranging method described in the aforementioned embodiment is implemented.
[0103] It is to be understood that the above content is a further detailed description of the present invention in conjunction with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be deemed to belong to the protection scope of the present invention. In the description of this specification, the description of reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention.
[0104] In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradicting each other. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope defined by the appended claims.
[0105] Furthermore, the scope of the present invention is not intended to be limited to the particular embodiments of the processes, machines, manufactures, compositions of matter, means, methods, and steps described in the specification. One of ordinary skill in the art will readily appreciate that the above disclosures, processes, machines, manufactures, compositions of matter, means, methods, or steps, currently existing or to be developed, may be utilized to perform substantially the same functions as the corresponding embodiments described herein or to obtain substantially the same results as the embodiments described herein. Therefore, the appended claims are intended to include within their scope such processes, machines, manufactures, compositions of matter, means, methods, or steps.
Claims
1. A time-of-flight ranging system, characterized in that: include: A transmitter, used for projecting a pulse beam to a target area to form a light spot; A collector, comprising a pixel unit composed of a plurality of pixels, for receiving the light spot reflected back from the target area; A processing circuit synchronizes the trigger signals of the transmitter and the collector, processes the photon signal in the light spot, and calculates the distance information of the target to be measured; The collector further includes a memory and a first processing circuit; the memory is used to store the number of the light spot during system calibration and the spatial emission angle factor of the light spots with different numbers; the first processing circuit is used to calculate the coordinates of the offset light spot after the system is impact-deformed, and obtain the number of the offset light spot; the processing circuit calibrates the system after the impact deformation according to the coordinates of the offset light spot and the number of the offset light spot, and obtains a new spatial emission angle factor; The method of calibrating the system after the impact deformation according to the coordinates of the offset light spot and the number of the offset light spot to obtain a new spatial emission angle factor includes: According to the correspondence model of the object space and image space point pairs of the initial ranging system, the coordinates of the offset light spots and the numbers of the offset light spots, the position spatial coordinates of all light spots in the object space after the system is impact deformed are calculated, and the corresponding new spatial emission angle factors are obtained based on the position spatial coordinates of all light spots.
2. The time-of-flight ranging system as claimed in claim 1, characterized in that: The first processing circuit calculates the coordinates (u′) of the offset light spot according to the following formula: i , v′ i ),in: (u i , v i ) is the coordinate of the initial spot when the ranging system does not undergo impact deformation, i is the number of the spot, R mn is a position parameter, and the corresponding relationship between the offset light spot and the initial light spot is obtained according to the above formula through multiple points.
3. The time-of-flight ranging system as claimed in claim 1, characterized in that: The processing circuit controls part of the light sources of the transmitter to turn on, determines the position of the offset light spot on the pixel unit, and obtains the number of the offset light spot according to the correspondence between the number of the light spot and the light source by the first processing circuit.
4. The time-of-flight ranging system as claimed in claim 3, characterized in that: The processing circuit includes a second processing circuit for controlling the bias voltage of the pixel corresponding to the position of the offset light spot, activating the pixel to collect photons in the light spot and outputting a photon detection signal.
5. The time-of-flight ranging system as claimed in claim 3, characterized in that: The light source is a VCSEL array light source.
6. A method for adaptively searching a light spot position, characterized in that: The steps include: S1. Calibrate the spatial template distribution of the light spot in the object space of the initial ranging system and the spatial emission angle factor of the light spot; S2, obtaining the coordinates of the offset light spot on the collector pixel unit after the distance measurement system is impact-deformed, and obtaining the number of the offset light spot; S3, calibrating the distance measurement system after the impact deformation according to the coordinates of the offset light spot on the pixel unit of the collector and the number, and obtaining a new spatial emission angle factor to complete the adaptive search of the light spot position; Step S3 includes: calculating the position spatial coordinates of all light spots in the object space after the system is impact-deformed according to the correspondence model of the object space and image space point pairs of the initial ranging system, the coordinates of the offset light spots, and the numbers of the offset light spots, and obtaining the corresponding new spatial emission angle factors based on the position spatial coordinates of all light spots.
7. The method for adaptively searching for light spot position according to claim 6, characterized in that: In step S1, a calibration plate is placed in front of the initial ranging system, the transmitter is controlled to project a pulse light beam onto the calibration plate to form a light spot, an independent camera is used to photograph the calibration plate, the light spot is identified and numbered, and the spatial emission angle factor of the light spot with different numbers and the spatial template distribution of the light spot in the object space are calculated.
8. The method for adaptively searching the light spot position according to claim 6, characterized in that: In step S2, the coordinates (u′) of the offset light spot on the collector pixel unit are calculated according to the following formula: i , v′ i ),in: u i , v i is the coordinate of the initial light spot when no impact deformation occurs, i is the number of the light spot, R mn is a position parameter, and the corresponding relationship between the offset light spot and the initial light spot is obtained according to the above formula through multiple points.
9. The method for adaptively searching for light spot position according to claim 7, characterized in that: In step S2, part of the light sources of the transmitter are controlled to be turned on, and the coordinates of the offset light spot on the pixel unit are determined, and the first processing circuit of the collector obtains the number of the offset light spot according to the corresponding relationship between the number of the light spot and the light source.
10. A distance measurement method, characterized in that: The steps include: S60, controlling the emitter to emit a pulse light beam toward the target area, and a portion of the pulse light beam is reflected and incident on a sensing area of the collector to form a light spot; wherein the sensing area includes at least one pixel unit, and the pixel unit includes a plurality of pixels; S61, controlling a sensing area in the collector to collect photons in the light spot and output a photon detection signal; wherein the sensing area is a pre-calibrated initial sensing area; S62, determining whether the center position of the light spot is the same as the position of the initial sensing area; if not, determining the corresponding measurement sensing area position according to the light spot adaptive search method according to any one of claims 6 to 9, activating the measurement sensing area to collect photons in the light spot, so as to output a photon detection signal; S63, receiving the photon detection signal and forming a photon detection event signal, forming a histogram based on the photon detection event signal, and further calculating distance information according to the histogram.
