This application is a continuation of and claims priority to Chinese Patent Application No. CN202311256347.8, filed on Sep. 26, 2023, which is incorporated herein in its entirety.
The present invention relates generally to the field of optical measurement technology.
ToF (Time of flight) includes dToF (direct Time-of-Flight) and iToF (indirect Time-of-Flight). Such ranging systems are typically used with RGB lenses, such as in focusing, AR (Augmented Reality), and obstacle avoidance application scenarios.
In the related technology, the ToF ranging system lens may be fixed-focus. If the RGB lens is a zoom lens, when the focal length of the RGB lens is increased, the angular resolution of the ToF ranging system lens remains unchanged, and the effective resolution left under the corresponding visual angle may be insufficient, resulting in reduced depth pixel resolution and inadequate depth information, which affect the accuracy of the target identification. For example, in an interchangeable lens camera equipped with a ToF-assisted focusing element, adjusting the focus ring while enlarging the field of view does not enhance angular resolution. In mobile phone photography, switching ToF focus from main to telephoto lenses results in insufficient angular resolution due to the fixed pixel size of the ToF sensor within relatively enlarged fields of view. Attempts to overcome resolution deficiencies by increasing pixel count in ToF devices necessitate enlarging the photosensitive area, thereby escalating chip and optical system costs and reducing spatial efficiency, rendering such solutions impractical.
Embodiments of the present invention that are described hereinbelow provide a dTOF ranging method and a dTOF ranging system, which can change the angular resolution with low cost and high efficiency.
An aspect of the present application provides A dTOF (direct Time-of-Flight) ranging method, comprising: setting a first mode and a second mode, wherein in the first mode, selected SPADs (Single Photon Avalanche Diodes) are activated based on first area position information, and pixel data is output through a TDC (Time-to-Digital Converter) array according to a number of SPADs in each pixel, and wherein in the second mode, the selected SPADs are activated based on second area position information, and pixel data is output through the TDC array according to the number of SPADs in each pixel; switching between the first mode and the second mode based on a user-input; generating a histogram from the TDC data of each pixel to determine the depth value of each pixel; wherein the first area position information includes a block size of a first area of an SPAD array and positions of the SPADs within the first area; the second area position information includes a block size of a second area of the SPAD array and positions of the SPADs within that area; the first area is larger than the second area, and the number of SPADs per pixel in the first area is greater than the number of SPADs per pixel in the second area.
In a disclosed embodiment, the first area and the second area include the same or different SPADs.
In another embodiment, the number of components in the first pixel is the number of SPADs contained in each pixel in the first mode; the number of components in the second pixel is the number of SPADs contained in each pixel in the second mode; The first number of pixels being different from the second number of pixels.
In another embodiment, the block area of the first area is greater than the block area of the second area, and the number of components in the first pixel is greater than the number of components in the second pixel.
In an alternative embodiment, before the user-input, the method further includes obtaining the user-input through the I2C interface of the dTOF device.
In an alternative embodiment, the block area of the first area is twice of the block area of the second area.
In an alternative embodiment, wherein the step of switching the first mode and the second mode according to user-input command, further includes setting a third mode; switching the first mode, the second mode and the third mode according to user-input command; wherein the third mode activates the corresponding SPADs according to the third area position information; outputting the data of each pixel through the TDC array according to the number of components in the third pixel; the third area information comprises a block size of the third area of the SPAD array and SPAD positions; The second area is larger than the third area, and the number of components in the second pixel is larger than the number of components in the third pixel.
There is also provided, in accordance with an embodiment of the invention, A dTOF (direct Time-of-Flight) ranging system, comprising: an SPAD array (Single Photon Avalanche Diode array); a TDC array (Time-to-Digital Converter array); a register for storing configuration information, including the number of SPADs per pixel; an I2C interface; and a controller; Wherein the I2C interface is connected to the register and the controller; the controller is connected to the SPAD array and the TDC array; the controller is configured to execute the steps of the dTOF ranging method as described in any one of preceding embodiments, by running a computer program stored in a memory.
In an alternative embodiment, the invention further includes an area array emitting end and an optical signal driver; the optical signal driver is connected with the area array emitting end; the area array emitting end is used for outputting the area array optical signal; It includes a vertical cavity surface emitting laser and a diffusion element; the vertical cavity surface emitting laser includes at least two laser signal output channels; the diffusion element is used for diffusing the optical signals output by the vertical cavity surface emitting laser to achieve uniform distribution of the laser; the optical signal driver adjusts the power consumption frame by frame through the I2C interface to match with the frame by frame adjustment of the angular resolution.
In addition to the aspects and embodiments described above, further aspects and embodiments will become apparent by reference to the drawings and by study of the following description.
The disclosure will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements.
Reference will now be made in detail to representative embodiments illustrated in the accompanying drawings. It should be understood that the following descriptions are not intended to limit the embodiments to one preferred embodiment. To the contrary, it is intended to cover alternatives, modifications, and equivalents as can be included within the spirit and scope of the described embodiments as defined by the appended claims.
These and other embodiments are described with reference to
The terms “first”, “second” etc., used in the specification, claims and the aforementioned drawings are intended to distinguish different objects, rather than to describe a particular order. In addition, the terms “including” and “having” and any variations thereof are intended to include non-exclusive inclusion. For example, a process, method, system, product or device incorporating a series of steps or units is not limited to listed steps or units, but may include unlisted steps or units. Various non-limiting embodiments of the present application will be described in detail below.
Referring first to
In this embodiment, the first mode activates corresponding SPADs according to first area position information, the first area position information includes block size of the first area of the SPAD array and SPAD positions, which outputs data of each pixel through the TDC array according to the number of components in the first pixel. The second mode activates corresponding SPADs according to the second area position information, and outputs the data of each pixel through the TDC array according to the number of components in the second pixel, and the second area information comprises the block size of the second area of the SPAD array and the SPAD positions. Related data of the first mode and the second mode can be stored in the SRAM (Static Random-Access Memory), and switched according to the required mode carried in the user-input command. The block size of the first area and the block size of the second area equal to the size of ROI (region of interest), i.e. the number of pixels for binning, the block size of the first area and the SPAD positions, the block size of the second area and the SPAD positions are determined according to the size of the ROI (region of interest), i.e. the number of pixels for binning. The SPAD position in the first area position information refers to the position where the SPADs to be activated in the first mode, and the SPAD position in the second area position information refers to the position where the SPADs to be activated in the second mode. The first area and the second area may include the same or different or partially overlapping SPADs, which does not affect the implementation of the present application, and those skilled in the art may make flexible adjustments according to actual requirements. The number of components in the first pixel is the number of SPADs contained in each pixel in the first mode; the number of components in the second pixel is the number of SPADs contained in each pixel in the second mode; The number of components in the first pixel may be one pixel including one SPAD, and the number of components in the second pixel may be one pixel including 2*2 SPAD. Since the first mode and the second mode correspond to different angular resolutions, the number of components in the first pixel being different from the number of components in the second pixel. In order to facilitate description and embody different resolutions corresponding to different modes, the embodiment defines that the area of the first area is greater than the area of the second area, and the number of components in the the first pixel is greater than that of the second pixel.
S102: Switch between the first mode and the second mode according to user-input command.
When S101 is configured with the first mode and the second mode, in the actual application process, as shown in
S103: Generate the corresponding histogram according to the TDC data of each pixel to obtain the depth value of each pixel.
After the optical signal of the SPAD in the corresponding mode in the SPAD array is input to the corresponding TDC in the last step, according to the TDC detection record, after N times of emission and reception, the TDC can record n times of optical flight time, so as to generate a histogram about the flight time distribution, according to the maximum flying time value of the appearing frequency in the histogram, it is the target value, namely the depth value.
In the technical solution provided by the application, the photosensitive pixel number and the photosensitive pixel position can be adjusted by setting different modes, the user can select the mode matched with the needed angular resolution by issuing the instruction according to the actual requirement, the effective change of the angular resolution can be realized by switching the instruction, The whole realizing process does not need to increase the photosensitive area, which can realize changing the angular resolution with low cost and high efficiency.
Further, in order to realize the switching with different resolutions frame by frame, the size of the ROI can be configured through the I2C (Inter-Integrated Circuit) interface of the dTOF device. The switching of different modes can also be implemented through the IC interface, that is, the instruction input by the user can be obtained through the I2C interface of the dTOF device, and the dTOF device refers to any hardware device used in the method of the embodiment or internally provided with the method. By using the I2C configuration mode, the whole angular resolution can be improved and the switching speed can be switched frame by frame.
The above embodiments do not limit the parameter configuration in different modes and the switching in different modes, and based on this, the present application also provides various embodiments, which may include the following contents.
As an alternative embodiment, if the block area of the first area is greater than the block area of the second area, the number of components in the first pixels is greater than the number of components in the second pixel. As shown in
Considering that the angular resolving power required by different application scenes is different, it is realized by configuring different SPAD positions and different binning. An exemplary block area of the first area is larger than a block area of the second area, and the number of pixels opened in the first area is equal to the number of pixels opened in the second area. In an alternative embodiment, the block area of the first area can be set to be 2 times of the block area of the second area, when the original image is 1 times, the whole SPAD is activated, when the image is amplified by 2 times, only half of the SPAD is activated fixedly, so the angular resolution can be ensured to be increased, and the calculation is relatively good.
According to the size of the total number of SPAD, a plurality of types of conversion can be achieved, taking
It can be seen from the above, the embodiment provides switching situations of various angular resolutions, which can realize improvement of different angular resolutions, and has better flexibility; and when the angular resolution is improved, under the small fov, there can be more pixels so as to improve the precision of the depth information.
Further, in order to improve the practicability, based on the above embodiments, it is also possible to configure a plurality of modes according to the actual situation to implement the corresponding switching of different resolutions, and the present embodiment may include the following contents: setting a third mode, and switching the first mode, the second mode and the third mode based on the instruction input by the user.
In this embodiment, the third mode activates the corresponding SPAD according to the third area position information; according to the number of components in the third pixel, outputting the data of each pixel through the TDC array; the third area information comprises the block size of the third area of the SPAD array and SPAD positions; The area of the first area is greater than the area of the second area, the area of the second area is greater than the area of the third area, the number of components in the first pixel is greater than the number of components in the second pixel, and the number of components in the second pixel is greater than the number of components in the third pixel.
It should be noted that there is no strict sequence of execution among the steps in the present application, so long as the logical sequence is satisfied, the steps can be executed at the same time, and also can be executed according to a certain set sequence,
The application also provides a corresponding device for the dTOF ranging method, further making the method more practical. The device can be respectively explained from the angle of the functional module and the angle of the hardware. The dTOF ranging device provided by the present application will be described below, and the device is used to implement the ranging method provided by the present application. The ranging method disclosed in the first embodiment has been completed by one or more processors. The program module referred to in this application refers to a series of computer program instruction segments capable of completing specific functions, which are more suitable for describing the execution process of the ranging device in the storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment, and the dTOF ranging apparatus described below and the dTOF ranging method described above can be referred to each other correspondingly.
Based on the angle of the functional module, referring to
In an alternative embodiment, the first area and the second area include the same or different SPAD.
In an alternative embodiment, the number of components in the first pixel is the number of SPADs included in each pixel in the first mode; the number of components in the second pixel is the number of SPADs contained in each pixel in the second mode; The first number of pixels being different from the second number of pixels.
In an alternative embodiment, the block area of the first area is greater than the block area of the second area, and the number of components in the first pixel is greater than the number of components in the second pixel.
As an alternative embodiment, the above mode switching module 102 is further configured to: user-input is obtained through the I2C interface of the dTOF device.
In an alternative embodiment, the block area of the first area is larger than a block area of the second area, and the number of pixels opened in the first region is equal to the number of pixels opened in the second region.
In an alternative embodiment, the block area of the first area is 2 times the block area of the second area.
As another alternative embodiment, the above mode switching module 102 may be further configured to switch the first mode, the second mode and the third mode according to user-input command; wherein the third mode is set, and the third mode activates the corresponding SPAD according to the third area position information; according to the number of components in the third pixel, outputting the data of each pixel through the TDC array; the third area information comprises the block size of the third area of the SPAD array and SPAD positions; The second area is larger than the third area, and the number of components in the second pixel is larger than the number of components in the third pixel.
The functions of each functional module of the dTOF ranging device of the present application can be specifically implemented according to the method in the above embodiments of the method, and the specific implementation process can be described with reference to the above embodiments of the method, and will not be described here.
From the above, it can be seen that the present embodiment can change the angular resolution with low cost and high efficiency . . . .
The dTOF ranging device mentioned above is described from the perspective of the functional module, and further, the present application also provides an electronic device, which is described from the perspective of hardware.
The processor 111 may include one or more processing cores, such as a four-core processor and an eight-core processor. The processor 111 may also be a controller, a microcontroller, a microprocessor or other data processing chips. The processor 111 may use DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array), at least one hardware form is implemented. The processor 111 may also include a main processor and a coprocessor, the main processor being a processor for processing the data in the awake state, also called a Central Processing Unit (CPU); The coprocessor is a low power consumption processor for processing data in a standby state. In some embodiments, the processor 111 may be integrated with a GPU (Graphics Processing Unit) for rendering of the content to be displayed on the display screen. In some embodiments, the processor 111 may also include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 110 may include one or more computer-readable storage media, which may be non-temporary. The memory 110 may also include a high speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. The memory 110 may, in some embodiments, be an internal storage unit of an electronic device, such as a hard disk of a server. The memory 110 may, in other embodiments, also be an external storage device of an electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, Flash Card and so on. Further, the memory 110 may include both the internal storage unit of the electronic device and the external storage device. The memory 110 may not only be used to store application software and various types of data installed in the electronic device, for example: The code or the like of the program during the execution of the dTOF ranging method may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 110 is at least used for storing the following computer program 1101, wherein the computer program is loaded and executed by the processor 111, and then the related steps of the dTOF ranging method disclosed in any one of the above embodiments can be implemented. In addition, the resources stored in the memory 110 may also include an operating system 1102 and data 1103 and the like, and may be stored temporarily or permanently. The operating system 1102 may include Windows, Unix, Linux and so on. The data 1103 may include, but are not limited to, data corresponding to the ranging result.
In some embodiments, the electronic device described above may also include a display screen 112, an input-output interface 113, a communication interface 114, or a network interface, a power supply 115, and a communication bus 116. Wherein, the display screen 112 and the input/output interface 113, such as the Keyboard, belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, and so on. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display may also suitably be referred to as a display screen or a display unit for displaying information processed in the electronic device and for displaying a visual user interface. The communication interface 114 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a Bluetooth interface, or the like, typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 116 may be a peripheral component interconnect standard. (PCI) bus or extended industrial standard structure (EISA) bus and so on. The bus can be divided into address bus, data bus, control bus and so on. In order to facilitate the presentation, only one thick line is used in
It will be understood by those skilled in the art that the structure shown in
The functions of each functional module of the electronic device according to the present application can be specifically implemented according to the method in the above embodiments of the method, and the specific implementation process can be described with reference to the above embodiments of the method, and will not be described herein.
From the above, it can be seen that the present embodiment can change the angular resolution with low cost and high efficiency.
It will be understood that if the dTOF ranging method in the above embodiments is implemented in the form of software functional units and sold or used as a separate product, it may be stored in a computer readable storage medium. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which is stored in a storage medium, in essence or in part or all of the technical solution or in part contributing to the related technology, All or part of the steps of the method of each embodiment of the present application are performed. The aforementioned storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a multimedia card, Various media that can store program codes, such as a card-type memory (e.g., SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk, or optical disk.
Based on this, the present application also provides a readable storage medium in which a computer program is stored, the computer program being executed by a processor the steps of the dTOF ranging method as described in any of the above embodiments.
Finally, the present application also provides a dTOF ranging system, see
The I2C interface 124 is connected to the register 123 and the controller 125, respectively, and the controller 125 is connected to the SPAD array 121 and the TDC array 122, respectively, the register 123 is configured to store configuration information including the number of SPAD components included in a single pixel; The controller 124 is used to implement the steps of the dTOF ranging method as described in any of the embodiments above when executing the computer program stored in the memory.
It can be understood that the dTOF ranging system further comprises an area array emitting end (such as VCSEL, LED infrared light emitting device), an optical signal driver, the SPAD array image sensor. The optical signal driver is connected with the area array emitting end; the SPAD array image sensor is connected with the TDC array. The VCSEL driver and the SPAD array image sensor can be combined together. In order to realize that the energy can be adjusted frame by frame, the area array emitting end adopts the area array illumination, that is, the area array emitting end of the embodiment is used for outputting the area array optical signal, which can comprise a vertical cavity surface emitting laser and a diffusion element; The diffusing element is used for diffusing the optical signal output by the vertical cavity surface emitting laser so that the laser is uniformly distributed. the vertical cavity surface emitting laser comprises at least two laser signal output channels; A channel can be used for the middle region and another channel can be used for the edge, which is matched with the switching of the angular resolution so as to realize the illumination with higher efficiency; Further, while increasing the angular resolution (i.e., reducing the angular resolving power), the number of SPAD contained by each depth pixel is reduced. When it is detected that the light intensity of the outdoor environment is large, the laser intensity at the emitting end of the area array needs to be increased to maintain enough signal-to-noise ratio, that is, enough detection distance.
Further, since it may be necessary to expand the power consumption to see a long distance after expanding the resolution, in order to cooperate with the function of subsequent frame-by-frame adjustment of angular resolution, the optical signal driver can perform frame-by-frame adjustment of power consumption through the I2C interface, to support multi-channel output of EN (enable) signal, to match with the frame-by-frame adjustment of the angular resolution.
A using scene based on the dTOF ranging system recorded by the embodiment is a ToF auxiliary focusing tool aiming at an interchangeable lens camera, with the user continuously rotating the focusing ring, amplifying to a certain degree, it needs to expand the resolution of the ToF focusing tool, which can set a certain threshold value, amplifying to a certain angle, and then starting. the other using scene is aiming at the mobile phone, the mobile phone is switched from the main to the telephoto in the shooting process, because the mobile phone has such a switching button for the portrait or long-distance object, so the interaction judgment is simple; In addition, after the telephoto is used, there will naturally be an amplification step, and then the viewing angle in the red frame will just fill the viewing angle of the camera.
The function of each functional module of the dTOF ranging system according to the embodiment of the present invention can be specifically implemented according to the method in the embodiment of the above method, and the specific implementation process can be described with reference to the related description of the embodiment of the above method, and will not be described here.
From the above, it can be seen that the present embodiment can change the angular resolution with low cost and high efficiency.
The various embodiments in the present specification are described in a progressive manner, and each embodiment is focused on the differences from other embodiments, and the same or similar parts of the various embodiments are referred to each other. For the hardware including devices and electronic devices disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and reference is made to the method part for description.
It will be further appreciated by those skilled in the art that various exemplary units and algorithm steps described in connection with the embodiments disclosed herein can be implemented in electronic hardware. In order to clearly illustrate the interchangeability of hardware and software, various exemplary compositions and steps have been generally described in the above description in accordance with the functions. Whether these functions are performed in hardware or software depends on the particular application and design constraints of the technical solution. Those skilled in the art can use different methods for each particular application to implement the described functions, but such implementation should not be considered to be outside the scope of this application.
The dTOF ranging method and the dTOF ranging system provided by the present application are described in detail above. The principles and embodiments of the present application are illustrated by specific examples applied herein, and the description of the above embodiments is only used to assist in understanding the method of the present application and the core idea thereof. It should be noted that, for those skilled in the art, the present application can be improved and modified without departing from the principle of the present application, and these improvements and modifications are also within the protection scope of the Claims of the present application.
Number | Date | Country | Kind |
---|---|---|---|
202311256347.8 | Sep 2023 | CN | national |