Low motion blur high dynamic range tof camera and smart device
By reducing the number of exposure frames and combining parallax calculation and high-confidence point de-winding, the imaging process of the CW-iToF sensor is optimized, solving the problems of power consumption and motion blur in high dynamic range imaging, and achieving low-power, high-precision imaging results.
Patent Information
- Application Number
- CN202510646392.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-20
AI Technical Summary
Existing CW-iToF sensors require multiple exposures in high dynamic range imaging, resulting in high power consumption and image quality affected by motion blur, failing to meet the requirements of low power consumption and high precision.
By reducing the number of exposure frames from 4 to 3, and combining parallax calculation and high-confidence point unwinding, the imaging process is optimized through an algorithmic scheme to reduce exposure time and improve imaging accuracy.
It achieves high dynamic range imaging with low power consumption and low motion blur, and is suitable for fields such as cleaning and service robots. The imaging time is shorter and the accuracy is comparable to traditional methods.
Smart Images

Figure CN123145494A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high dynamic range (ToF) camera technology, specifically to a high dynamic range ToF camera with low motion blur and a smart device. Background Technology
[0002] The CW-iToF sensor achieves high dynamic range (HDR) imaging primarily through multi-frame fusion technology, as detailed below:
[0003] Combining long and short exposures: The CW-iToF sensor performs multiple exposures in HDR mode. First, a long exposure is used to ensure that objects in low-reflectivity areas are correctly imaged and that sufficient signal strength is obtained. Then, a short exposure is used to avoid overexposure of high-reflectivity objects. The short exposure time is typically 1 / 8 to 1 / 10 of the long exposure time.
[0004] Image fusion: This process combines two images captured with long and short exposures. An algorithm combines the relevant information from the two images to generate a high dynamic range image that contains all the depth details of objects.
[0005] In the traditional CW-iToF sensor operating mode, to achieve high-precision measurement of long-distance scenes, eight exposures at two frequencies are typically required (four exposures at each frequency, with a 90-degree phase difference between each window). To meet the requirements of high dynamic range (HDR) imaging, the number of exposures needs to be increased to 16 (two frequencies, high exposure and low exposure). This classic exposure mode leads to increased system power consumption, and the image quality is significantly affected by motion blur. In practical applications, alternative solutions need to be found to reduce the number of exposures to lower power consumption and shorten imaging time, while ensuring imaging accuracy through software processing.
[0006] The above background information is provided only to aid in understanding the inventive concept and technical solution of this invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above information was disclosed on the filing date of this patent application, the above background information should not be used to evaluate the novelty and inventiveness of this application. Summary of the Invention
[0007] To address this, this invention reduces the number of exposure frames from the original four to three, significantly decreasing exposure time. At close range, parallax calculation is introduced to preliminarily estimate the depth range using parallax information, thereby achieving decoupling. At long range, the traditional decoupling strategy is adjusted; instead of removing decoupling pixel by pixel, a high-confidence point is selected and used as the center of the region to complete decoupling of that area. Finally, the number of exposure frames is reduced at the hardware level, and the corresponding loss is compensated for by an algorithmic scheme, resulting in an imaging scheme with low power consumption, accuracy comparable to traditional cw-itof, and better imaging performance in motion.
[0008] In a first aspect, the present invention provides a high dynamic range (ToF) camera with low motion blur, characterized in that it comprises:
[0009] Projector, used to project speckle;
[0010] A receiver is configured to receive the speckle reflection signal at a first exposure time and a second exposure time to obtain a near-field exposure frame and a far-field exposure frame, respectively; wherein, within one exposure cycle, the first exposure frame is obtained at the first exposure time; the second exposure frame is obtained at the second exposure time, and the third exposure frame is obtained by exposing at a third exposure time; wherein, the third exposure time is shorter than the second exposure time;
[0011] The processor is configured to: perform parallax calculation on the first exposure frame to obtain structured light depth; perform depth calculation on the first exposure frame using a time-of-flight algorithm to obtain a first near-field depth; de-wrap the first near-field depth based on the structured light depth to obtain a second near-field depth; perform depth calculation on the second exposure frame using a time-of-flight algorithm to obtain a first far-field depth; perform depth calculation on the third exposure frame using a time-of-flight algorithm to obtain a second far-field depth; de-wrap the first far-field depth based on high-confidence points in the second far-field depth to obtain a third far-field depth; and integrate the second near-field depth and the third far-field depth to obtain a final depth map.
[0012] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the processor is further configured to dynamically adjust the first exposure time, the second exposure time, and the third exposure time according to the scene brightness, and shorten the corresponding values of the first exposure time, the second exposure time, and the third exposure time when the scene brightness is higher than a preset threshold.
[0013] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the receiver sequentially exposes the image at a first exposure time, a third exposure time, and a second exposure time.
[0014] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the ratio coefficient of the third exposure time and the second exposure time is dynamically adjusted according to the ambient light intensity, and the ratio adjustment range is from 1:1 to 1:10.
[0015] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the projector employs a wavelength-modulated laser array, the modulation frequency of which is synchronously locked with the exposure timing of the receiver, and the synchronization error is less than 5% of the exposure time.
[0016] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the processor determines the high confidence points in the second distant depth by: determining points whose depth values are within a preset error range and whose depth values are highly consistent in the neighborhood as high confidence points.
[0017] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that, the step of dewinding the first depth of view based on the high confidence points in the second depth of view to obtain the third depth of view includes:
[0018] Step S1: Evaluate the second distant depth to obtain high confidence points;
[0019] Step S2: Expand based on the high confidence points to obtain the fourth distant depth;
[0020] Step S3: Compare the fourth distance depth with the first distance depth, and correct the values in the first distance depth that deviate from the fourth distance depth by more than a distance threshold to obtain the third distance depth.
[0021] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the step of dewinding the first near depth of field based on the parallax data to obtain the second near depth of field includes:
[0022] Step S4: Calculate the third near depth based on the parallax data;
[0023] Step S5: Compare the third near-field depth with the first near-field depth, and correct the values in the first near-field depth that deviate from the third near-field depth by more than a near-field threshold to obtain the second near-field depth.
[0024] Optionally, the high dynamic range ToF camera with low motion blur is characterized in that the processor, when integrating the second near-field depth and the third far-field depth, employs a weighted average method or a depth map fusion algorithm to generate a smooth and continuous final depth map.
[0025] In a second aspect, the present invention provides a smart device, characterized in that it includes a high dynamic range ToF camera with low motion blur as described in any of the preceding claims.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] For cw-itof sensors, when considering HDR requirements, this invention reduces the number of exposure frames from the original 4 to 3, significantly reducing exposure time; with fewer exposure frames, the overall normal processing time is reduced, and the motion blur time in imaging is reduced.
[0028] Under this frame structure setting, the traditional cw-itof imaging algorithm exhibits significant flying spot phenomena and temporal accuracy degradation. However, this invention, through a reasonable data processing method, can stably optimize the data, thereby restoring accurate data.
[0029] This invention also considers introducing parallax calculation at close range to make a preliminary estimate of the depth range using parallax information, thereby achieving decoupling. At long range, the traditional decoupling strategy is adjusted, no longer removing the decoupling pixel by pixel, but instead selecting a high-confidence point and using it as the center of the region to complete the decoupling of this area.
[0030] This invention ultimately reduces the number of exposure frames at the hardware level, and the corresponding loss is compensated by an algorithmic solution, resulting in an imaging scheme with low power consumption, accuracy comparable to traditional cw-itof, and better imaging performance in motion.
[0031] This invention features low power consumption and minimal heat generation; shorter imaging time and less susceptibility to motion blur; it is universally applicable to existing CW-ITOF systems with virtually zero adaptation costs, making it suitable for various types of robots, such as cleaning and service robots, including commercial low-speed robots like sweeping robots, lawnmowers, and food delivery robots. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort. Other features, objects, and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0033] Figure 1 This is a schematic diagram of the structure of a high dynamic range ToF camera with low motion blur in an embodiment of the present invention;
[0034] Figure 2 This is a flowchart illustrating one step in obtaining a third field depth according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating one step in obtaining a second near-field depth according to an embodiment of the present invention.
[0036] 1-Projector;
[0037] 2- Receiver;
[0038] 3-Processor; Detailed Implementation
[0039] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.
[0040] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0041] The present invention provides a high dynamic range ToF camera with low motion blur, which aims to solve the problems existing in the prior art.
[0042] The technical solutions of the present invention and how they solve the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0043] Traditional cw-itof imaging requires two sets of exposure frames to capture a large scene; in HDR mode, it requires four sets of exposure frames to simultaneously capture both near and far scenes. This invention adjusts the HDR mode by retaining one set of low-exposure frames for near-scene imaging; retaining one set of high-exposure frames for far-scene imaging; and retaining one set of high-exposure frames for even lower exposure for de-wrap calculations.
[0044] For near-view imaging data, parallax is calculated; for far-view imaging data, depth is calculated; for decoupling data, depth is calculated, and then high-confidence points are extracted to obtain a sparse depth map, which is then expanded into a dense depth map for decoupling.
[0045] Decoiling of near-field data: Using near-field depth, parallax data, and far-field depth that include curl, the near-field depth is decoiled, resulting in a decoiled near-field depth map.
[0046] Decoupling of distant view data: Using the distant view depth and the depth map used for decoupling, the distant view depth is decoupled, and then a decoupled distant view depth map is obtained.
[0047] Finally, the depth data from the near and far views are combined to generate a full-scene depth map.
[0048] The above is the core idea of the present invention. The following is a detailed description based on specific embodiments.
[0049] Figure 1 This is a schematic diagram of the structure of a high dynamic range (ToF) camera with low motion blur according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a high dynamic range (ToF) camera with low motion blur, comprising:
[0050] Projector 1 is used to project speckle.
[0051] Specifically, speckle is a randomly distributed pattern of light spots. In Time-of-Flight (ToF) cameras, the speckle projected by the projector provides the necessary signal basis for subsequent depth calculations. After being reflected by objects in the scene, the projected speckle carries relevant scene information, allowing the camera to obtain depth information by processing the reflected signals. The projector typically uses a laser or other suitable light source to generate the speckle pattern and projects it onto the target scene using optical elements. For example, a laser diode can be used as the light source, along with diffractive optical elements (DOEs), to convert the laser beam into the desired speckle pattern and project it.
[0052] Receiver 2 is configured to receive the speckle reflection signal at a first exposure time and a second exposure time to obtain a near-field exposure frame and a far-field exposure frame, respectively; wherein, within one exposure cycle, the first exposure frame is obtained at the first exposure time; the second exposure frame is obtained at the second exposure time, and the third exposure frame is obtained at a third exposure time; wherein, the third exposure time is less than the second exposure time.
[0053] Specifically, the receiver receives the speckle reflection signals at different exposure times, thus obtaining different exposure frames such as close-up exposure frames and long-distance exposure frames. Within one exposure cycle, the first exposure frame is obtained with the first exposure time, the second exposure frame is obtained with the second exposure time, and the third exposure frame is obtained with the third exposure time. By setting different exposure times, the camera can capture the reflection signals of objects at different distances, thereby obtaining depth information at different distances.
[0054] Receivers typically consist of a light sensor (such as a CMOS image sensor), which converts the received light signal into an electrical signal, forming an exposure frame. Different exposure times determine the accumulation time of light by the light sensor, thus affecting the intensity of the received reflected signal and the corresponding distance information. For example, shorter exposure times are suitable for receiving reflected signals from nearby objects, while longer exposure times are used for receiving reflected signals from distant objects.
[0055] Processor 3 is configured to perform parallax calculation on the first exposure frame to obtain structured light depth; perform depth calculation on the first exposure frame using a time-of-flight algorithm to obtain a first near-field depth; de-wrap the first near-field depth based on the structured light depth to obtain a second near-field depth; perform depth calculation on the second exposure frame using a time-of-flight algorithm to obtain a first far-field depth; perform depth calculation on the third exposure frame using a time-of-flight algorithm to obtain a second far-field depth; de-wrap the first far-field depth based on high-confidence points in the second far-field depth to obtain a third far-field depth; and integrate the second near-field depth and the third far-field depth to obtain a final depth map.
[0056] Specifically, the processor performs disparity calculation on the first exposure frame to obtain disparity data. Disparity calculation determines the relative position of an object in the scene by comparing image information from different locations, thus providing auxiliary information for depth calculation. The structured light depth is calculated based on the disparity data. Since structured light depth does not have a curling problem, the first near-field depth can be de-curled to obtain the second near-field depth. The first near-field depth is calculated using a time-of-flight algorithm on the first exposure frame, corresponding to nearby objects. The first far-field depth, corresponding to distant objects, is calculated using the time-of-flight algorithm on the second exposure frame. The second far-field depth is calculated using the time-of-flight algorithm on the third exposure frame. Based on the high-confidence points in the second far-field depth, the first far-field depth is de-curled to obtain the third far-field depth. The de-curling operation is to eliminate depth errors or inconsistencies that may occur during signal propagation and processing, improving the accuracy of the depth information. Finally, the second near-field depth and the third far-field depth are integrated to obtain the final depth map, which integrates the depth information of objects at different distances in the scene and fully presents the three-dimensional structure of the scene.
[0057] Time-of-flight algorithms measure the time it takes for light to travel from the projector to the receiver after being reflected by an object, and combine this with the speed of light to calculate the distance between the object and the camera, thus obtaining depth information. Parallax calculation, based on triangulation principles, determines the object's parallax by comparing image information from different viewpoints, and then calculates the depth. Decoupling typically involves analyzing and processing depth data, eliminating depth winding errors by selecting high-confidence points and adjusting the depth data. Depth integration fuses depth information obtained from different exposure times, comprehensively considering the depth information of both near and far scenes to obtain an accurate final depth map.
[0058] In some embodiments, the processor is further configured to dynamically adjust the first exposure time, the second exposure time, and the third exposure time according to the scene brightness, and shorten the corresponding values of the first exposure time, the second exposure time, and the third exposure time when the scene brightness is higher than a preset threshold.
[0059] In Time-of-Flight (ToF) depth imaging, exposure time directly affects the intensity of the reflected signal. If the scene brightness is too high (such as direct sunlight or a bright environment), an excessively long exposure time will cause sensor saturation, resulting in motion blur or signal distortion, affecting the accuracy of depth calculation. Therefore, dynamically adjusting the exposure time according to the scene brightness is a key mechanism to improve image quality.
[0060] The processor achieves dynamic exposure time adjustment through the following steps:
[0061] Scene brightness detection: The processor first analyzes the signal strength or statistical characteristics (such as average gray value) of the current frame to evaluate the overall brightness of the scene.
[0062] Threshold Comparison: The detected scene brightness is compared with a preset threshold (e.g., 1000 lux). This threshold is an empirical value preset based on camera hardware characteristics and application scenarios. There can be one threshold or multiple thresholds, each used for different levels of brightness adjustment.
[0063] Exposure time adjustment:
[0064] In high-brightness scenes (brightness > threshold): shorten the corresponding exposure time (first exposure time, second exposure time, or third exposure time) to reduce the amount of light received by the sensor and avoid saturation. For example:
[0065] The original first exposure time was 100μs, which has been shortened to 50μs after adjustment.
[0066] The original second exposure time was 300μs, which has been shortened to 150μs after adjustment.
[0067] The original third exposure time was 200μs, which has been shortened to 100μs after adjustment.
[0068] Low-light scenes (brightness ≤ threshold): Maintain or extend the exposure time to increase signal strength and enhance the ability to capture reflected signals from distant objects.
[0069] Different images are judged separately and adjusted accordingly.
[0070] This embodiment has the following advantages:
[0071] Reduce motion blur: In high-brightness scenes, shortening the exposure time reduces motion blur caused by moving objects, which is especially suitable for depth imaging of fast-moving targets.
[0072] Improved dynamic range: The camera can adapt to both bright and dark environments, expanding its applicable scenarios.
[0073] Optimize depth accuracy: Avoid signal saturation, ensure a linear relationship between reflected light intensity and exposure time, and improve the calculation accuracy of the time-of-flight algorithm.
[0074] Through this dynamic adjustment mechanism, ToF cameras can maintain low motion blur and high-precision depth imaging performance under different lighting conditions.
[0075] In some embodiments, the receiver exposes the device sequentially at a first exposure time, a third exposure time, and a second exposure time.
[0076] Within one exposure cycle, the receiver performs exposures at a first exposure time, a third exposure time, and a second exposure time, respectively. The first exposure time is relatively short, the second exposure time is relatively long, and the third exposure time is in between. This sequence allows the receiver's exposure time to increase sequentially, making it more hardware-friendly, achieving better accuracy, and improving image quality.
[0077] In some embodiments, the ratio coefficient of the third exposure time and the second exposure time is dynamically adjusted according to the ambient light intensity, with the ratio adjustment range being 1:1 to 1:10.
[0078] Ambient light (such as natural light and artificial light sources) can interfere with the reflected signals received by a ToF camera. Strong ambient light may overwhelm the faint reflected light from distant objects, leading to depth data errors; in weak ambient light, extending the exposure time can enhance the signal, but may exacerbate motion blur. Dynamically adjusting the ratio of the second and third exposure times can find a balance between ambient light interference and signal capture, improving the stability of long-distance depth measurements.
[0079] Logic for adjusting proportional coefficient
[0080] Ambient light intensity detection: The processor quantifies the current ambient light intensity by analyzing the intensity of the ambient light signal received by the receiver (e.g., using the background light suppression module of the sensor) or by statistically analyzing the average brightness value of the image.
[0081] Scale factor calculation: The scale factor is dynamically adjusted according to the ambient light intensity, ranging from 1:1 to 1:10, with the specific rules as follows:
[0082] In strong ambient light scenarios: When the ambient light intensity exceeds the threshold, increase the proportion of the third exposure time (e.g., adjust it to 1:10). Because the third exposure time is shorter, it can reduce the accumulation of ambient light and reduce signal interference, making it suitable for capturing weak reflection signals from distant objects.
[0083] In low ambient light scenarios: When the ambient light intensity is low, reduce the proportion of the third exposure time (e.g., adjust it to 1:1). Extend the second exposure time to increase the accumulation of light signals and improve the intensity of the reflected signals from distant objects.
[0084] This embodiment has the following advantages:
[0085] Enhanced anti-interference capability: Shortens the second exposure time under high ambient light conditions, reduces the impact of ambient light on long-distance reflection signals, and reduces depth data errors.
[0086] Enhanced scene adaptability: The camera can flexibly adjust the scale according to lighting conditions, enabling it to stably acquire long-distance depth information in different scenes such as indoors and outdoors, day and night.
[0087] Motion blur optimization: By controlling the proportion of the third exposure time, the total exposure time is shortened when the light is sufficient, reducing the blur caused by the movement of objects, which is suitable for dynamic scene applications.
[0088] This embodiment enables the ToF camera to accurately capture long-distance depth information in complex lighting conditions by dynamically adjusting the ratio coefficients of the second and third exposure times, thereby improving the overall performance of the system.
[0089] In some embodiments, the projector employs a wavelength-modulated laser array whose modulation frequency is synchronized with the exposure timing of the receiver, with a synchronization error of less than 5% of the exposure time.
[0090] In Time-of-Flight (ToF) depth imaging, the synchronization accuracy between the laser projection and the receiver directly affects the accuracy of the time-of-flight measurement. Excessive synchronization error can lead to:
[0091] Depth calculation deviation: Inaccurate signal time-of-flight measurement causes a deviation in depth value.
[0092] Motion blur: In dynamic scenes, asynchrony can cause the same object to be positioned differently in different exposure frames, resulting in blur when synthesizing depth maps.
[0093] Ambient light interference: Asynchronous ambient light may be misinterpreted as reflected signals, reducing the signal-to-noise ratio.
[0094] Therefore, achieving high-precision synchronization is one of the core technologies of ToF cameras.
[0095] Wavelength modulation technology:
[0096] The projector uses an array of multiple laser emitters, each of which can be independently modulated with wavelengths (such as 850nm, 940nm, and other near-infrared bands).
[0097] Wavelength modulation can achieve the following:
[0098] Multi-channel parallel measurement: Lasers of different wavelengths can be projected simultaneously for multi-area depth measurement or anti-interference coding.
[0099] Ambient light suppression: Select a specific wavelength (such as 940nm) to avoid ambient light peaks (such as when sunlight is strong around 850nm) and reduce background noise.
[0100] Modulation frequency synchronization:
[0101] The modulation frequency of the laser array (e.g., 10MHz-100MHz) is strictly synchronized with the exposure timing of the receiver. For example, when the receiver turns on exposure, the laser immediately emits pulses; when the receiver turns off, the laser stops emitting.
[0102] The synchronization error should be controlled within 5% of the exposure time (e.g., if the exposure time is 100μs, the synchronization error should be less than 5μs) to ensure that the laser pulse is aligned with the exposure window.
[0103] Synchronization locking mechanism
[0104] Hardware synchronization circuit:
[0105] A dedicated clock signal generator is used to provide a unified time reference for the projector and receiver.
[0106] Frequency synchronization is achieved through phase-locked loop (PLL) technology to ensure a stable phase difference between the laser modulation frequency and the exposure timing.
[0107] Software calibration algorithm:
[0108] When the system starts up, the inherent delay between the projector and receiver (such as circuit transmission delay) is measured and compensated through a calibration procedure.
[0109] During operation, the synchronization error is monitored in real time and dynamically adjusted, for example, by fine-tuning the laser emission time to compensate for the delay drift caused by temperature changes.
[0110] Advantages of this embodiment:
[0111] High-precision depth measurement: The smaller the synchronization error, the more accurate the time-of-flight measurement, and the depth resolution can be improved to the millimeter level.
[0112] Strong anti-interference capability: The laser signal synchronized with the exposure time can effectively distinguish ambient light and improve the signal-to-noise ratio.
[0113] Dynamic scene adaptability: When an object moves quickly, the synchronization mechanism ensures the consistency of the same object's position in different exposure frames, reducing motion blur.
[0114] This embodiment enables the ToF camera to achieve high-precision, low-blur depth imaging in complex environments through precise synchronization between the wavelength-modulated laser array and the receiver, meeting the needs of various industrial and consumer applications.
[0115] In some embodiments, the processor determines high-confidence points in the second distant depth by identifying points whose depth values are within a preset error range and whose depth values are highly consistent in their neighborhood as high-confidence points.
[0116] During the depth calculation process of a ToF camera, the obtained second-field depth data may contain noise and errors due to environmental interference, measurement errors, and other factors. To improve the accuracy and reliability of the depth data, it is necessary to select points with high confidence from the second-field depth data. These high-confidence points will serve as important bases for subsequent depth data processing (such as dewinding and depth map integration), helping to generate more accurate depth information and thus improving the imaging performance of the ToF camera in distant scenes.
[0117] The criteria for determining high confidence points include:
[0118] Depth values within a preset error range: The processor pre-sets an error range (e.g., an acceptable range of depth fluctuation centered on a reference depth value). For each point in the second depth range, its depth value is compared to this preset error range. If a point's depth value falls within the preset error range, it indicates that the measured depth at that point is close to the expected value and is more likely to be accurate depth data. For example, assuming a reference depth value of 10 meters and a preset error range of ±0.5 meters, points with depth values between 9.5 meters and 10.5 meters are more likely to be high-confidence points. This method of judgment based on a preset error range can effectively eliminate points with large depth value deviations, reducing erroneous depth data caused by measurement errors.
[0119] High consistency of depth values within the neighborhood: In addition to judging the depth value of an individual point, the processor also considers the consistency of depth values within that point's neighborhood. A neighborhood typically refers to a local area centered on that point (e.g., a 3x3 or 5x5 pixel area). Within this neighborhood, the processor counts the depth values of each point and calculates consistency metrics (such as variance, standard deviation, etc.) for the depth values within the neighborhood. If the depth values within the neighborhood are relatively similar, it indicates that the depth variation in the area where that point is located is relatively gradual, better reflecting the depth distribution patterns in real-world scenarios. For example, in a relatively flat wall area, the depth values within the neighborhood should be relatively consistent. When the consistency of depth values within the neighborhood is high, the point is more reliable as a high-confidence point.
[0120] Advantages of this embodiment:
[0121] Improving the accuracy of depth data: By combining the two conditions of depth values being within a preset error range and high consistency of depth values within the neighborhood, more accurate depth data can be effectively filtered out, reducing the impact of noise and errors on depth measurement.
[0122] Enhancing the reliability of depth data: Identifying high-confidence points provides a more reliable foundation for subsequent depth data processing. During operations such as depth decoiling and depth map integration, data based on high-confidence points can better reflect the true depth information of the scene, thereby generating more accurate depth maps.
[0123] Adaptable to different scenarios: This judgment method has a certain degree of flexibility. It can adjust parameters such as preset error range and neighborhood size according to different application scenarios and needs to adapt to different environmental conditions and measurement accuracy requirements.
[0124] This embodiment provides an important basis for ToF camera depth data processing by comprehensively considering depth value error and neighborhood depth consistency, which helps to improve the imaging quality and depth measurement accuracy of the camera in long-distance scenes.
[0125] Figure 2 This is a flowchart illustrating one step in obtaining a third field depth according to an embodiment of the present invention. Figure 2 As shown, one step in obtaining a third field depth in an embodiment of the present invention includes:
[0126] Step S1: Evaluate the second depth of vision to obtain a high confidence point.
[0127] In this step, reliable depth points are selected from the second distant depth (calculated from the third exposure frame) as the benchmark for subsequent correction. First, signal quality is assessed, and then high-confidence points are selected.
[0128] When conducting signal quality assessment:
[0129] Calculate the signal-to-noise ratio (SNR) for each pixel: the ratio of signal strength to the standard deviation of noise.
[0130] Check phase consistency: whether the phase difference of the four received signals conforms to the theoretical value of 90 degrees.
[0131] Assess signal saturation: Avoid saturated pixels (signal values exceeding the detector's upper limit).
[0132] When selecting high-confidence points:
[0133] Set a threshold (e.g., SNR>10dB, phase deviation<15 degrees), and mark pixels that meet the conditions as high confidence points.
[0134] The second depth of field uses a short exposure time (to avoid strong light saturation), and its high confidence points are mainly distributed in distant strong light areas (such as reflective objects and direct light areas). The depth values of these points are accurate and reliable and can be used as a calibration benchmark.
[0135] Step S2: Expand based on the high confidence points to obtain the fourth distant depth.
[0136] In this step, discrete high-confidence points are expanded into continuous regions, covering more pixels and improving the correction coverage. During expansion, the values of the high-confidence points can be directly copied to the blank areas, or other algorithms can be used. For example, a region growing algorithm can be employed, followed by hole filling.
[0137] When applying the region growing algorithm, high-confidence points are used as seeds to expand to neighboring pixels. Expansion is carried out when the difference between the depth value of a neighboring pixel and the seed point is less than a set threshold (e.g., 0.5 meters).
[0138] When filling holes, bilateral filtering or morphological operations are used to fill small holes within the extended area. The extended fourth depth of field covers more mid-to-long-range areas, especially continuous surfaces (such as walls and tabletops) around high-confidence points, providing richer references for subsequent global correction.
[0139] Step S3: Compare the fourth distance depth with the first distance depth, and correct the values in the first distance depth that deviate from the fourth distance depth by more than a distance threshold to obtain the third distance depth.
[0140] In this step, the fourth depth of field (the expanded high-confidence region) is used to correct the winding error in the first depth of field (calculated from the long exposure frame).
[0141] First, calculate the depth difference for the overlapping area of the fourth depth of vision and the first depth of vision: delta = fourth_depth - first_depth.
[0142] Further analysis of the depth difference distribution identifies possible winding periods (usually the modulation period of the ToF system, such as T = 2π).
[0143] Then calculate the number of windings, and apply winding correction to pixels whose deviation exceeds the distance threshold (e.g., 1 meter).
[0144] The first depth of field (long exposure frame) has good signal quality in low-light areas at a distance, but is prone to winding errors; while the fourth depth of field (short exposure extension) is more accurate in bright light areas. By fusing the two, the corrected third depth of field combines the high signal-to-noise ratio of long exposure with the anti-winding capability of short exposure.
[0145] This embodiment effectively solves the saturation problem in distant, strong light areas while preserving depth information in low-light areas. In typical scenarios, the depth error can be reduced from ±2 meters due to winding to within ±5 centimeters. It has stronger adaptability to complex lighting environments (such as the coexistence of direct sunlight and shadows). By intelligently filtering and expanding high-confidence points, unnecessary global processing is reduced, thus lowering system power consumption.
[0146] Through these three-step depth dewinding algorithms, the ToF camera significantly improves the reliability of depth measurement in complex lighting environments while maintaining low power consumption.
[0147] Figure 3 This is a flowchart illustrating one step in obtaining a second near-field depth according to an embodiment of the present invention. Figure 3 As shown, one step in obtaining a second near-field depth in an embodiment of the present invention includes:
[0148] Step S4: Calculate the third near depth based on the parallax data.
[0149] In this step, an independent depth reference is generated using disparity data (calculated through speckle matching) to provide a baseline for subsequent correction. The disparity calculation includes:
[0150] Feature extraction: Extract feature points (such as corner points and spot centers) of the speckle pattern from the first exposure frame.
[0151] Feature matching: Find corresponding feature points in the left and right views (or different time frames) through block matching or descriptor matching.
[0152] Parallax calculation: Calculate the pixel offset (parallax) of the corresponding point.
[0153] Then, based on the principle of triangulation, parallax is converted into depth: depth = (baseline × focal_length) / disparity. Where, baseline is the distance to the camera baseline, and focal_length is the camera focal length.
[0154] Parallax calculation is based on the principle of speckle structured light and is not affected by ToF phase winding. It can provide more accurate depth reference in close-range scenes, and is especially suitable for highly reflective surfaces or areas with strong light.
[0155] Step S5: Compare the third near-field depth with the first near-field depth, and correct the values in the first near-field depth that deviate from the third near-field depth by more than a near-field threshold to obtain the second near-field depth.
[0156] In this step, the third near depth calculated using parallax is used to correct the winding error in the first near depth measured directly by ToF.
[0157] Calculate the difference between the third depth of view (parallax method) and the first depth of view (ToF method): delta = third_depth - first_depth.
[0158] Statistical deviation distribution identifies possible winding periods (typically integer multiples of the ToF modulation period).
[0159] For areas where the deviation exceeds the near-field threshold (e.g., 0.3 meters), determine the number of windings:
[0160] wrap_count=round(delta / modulation_period).
[0161] Correcting the first depth of field:
[0162] corrected_depth=first_depth+wrap_count×modulation_period.
[0163] Use bilateral filtering or median filtering to smooth the corrected depth map and eliminate possible boundary artifacts.
[0164] The parallax method provides high accuracy in depth calculations at close range, but is limited by the robustness of the matching algorithm; while the depth measured directly by Time-of-Flight (ToF) is more complete over continuous surface areas. By combining the two, the second near-field depth measurement combines the anti-winding capability of the parallax method with the continuity of the ToF method.
[0165] Parallax estimation overcomes the roll-up limitation of Time-of-Flight (ToF) on highly reflective surfaces (such as glass and metal), while ToF complements ToF in depth estimation in areas lacking texture. In typical close-range scenes (0.5-2 meters), the depth error can be reduced from ±0.5 meters due to roll-up to within ±5 centimeters.
[0166] By combining the complementary characteristics of parallax data and ToF depth, this algorithm effectively solves the depth wrapping problem in close-range scenes, providing a more reliable close-range depth measurement solution for low-power, high dynamic range ToF cameras.
[0167] In some embodiments, the processor uses a weighted average method or a depth map fusion algorithm when integrating the second near-field depth and the third far-field depth to generate a smooth and continuous final depth map.
[0168] During the depth measurement process using a ToF camera, second near-field depth and third far-field depth data were obtained through different exposure times and calculation methods. Because the sources and characteristics of near-field and far-field depth information differ—for example, near-field depth may be more accurate but has a limited range, while far-field depth may have some errors but can cover a wider scene—it is necessary to integrate these two types of depth data to obtain complete and accurate depth information. The ultimate goal of this integration is to generate a smooth and continuous final depth map, providing high-quality depth data support for subsequent applications (such as object recognition and scene understanding).
[0169] Weighted average method
[0170] Principle: The weighted average method assigns different weights to the second near-field depth and the third far-field depth data based on their reliability or importance, and then calculates a weighted average to obtain the integrated depth value. For example, if the near-field depth data is considered more reliable, a higher weight can be assigned to the second near-field depth and a lower weight to the third far-field depth. The specific weight assignment can be determined based on factors such as camera characteristics, scene features, and the statistical characteristics of the depth data.
[0171] Advantages: The weighted average method is simple and intuitive, has high computational efficiency, and can flexibly adjust the weights according to different needs. It can balance the contributions of near-field and far-field depth data to a certain extent, so that the integrated depth data is more in line with the depth distribution of the actual scene.
[0172] Depth map fusion algorithm
[0173] Principle: Depth map fusion algorithms are typically based on more complex mathematical models and algorithms, taking into account factors such as spatial correlation and texture information of depth data, to fuse the second near-field depth and the third far-field depth. For example, techniques such as image filtering and multi-scale analysis may be used to process the depth map to eliminate noise and inconsistencies, achieving a smooth and continuous depth map.
[0174] Specific method examples: A common depth map fusion algorithm is based on energy minimization. This method transforms the depth map fusion problem into an energy function minimization problem. By defining a suitable energy function (considering factors such as depth value differences and neighborhood consistency), optimization algorithms (such as gradient descent and simulated annealing) are used to solve for the minimum value of the energy function, thus obtaining the fused depth map. Another method is a fusion algorithm based on multi-scale analysis. By analyzing and processing the depth map at different scales, it can better capture scene details and global information, improving the quality of the depth map.
[0175] Advantages: Depth map fusion algorithms can make fuller use of the characteristics of depth data and scene information to generate more accurate, smooth and continuous depth maps, and have better adaptability to complex scenes and high-precision depth measurements.
[0176] In practical applications, the choice between weighted averaging and depth map fusion algorithms depends on the specific application scenario and requirements. If computational efficiency is critical and the scenario is relatively simple, weighted averaging may be a better choice; however, for complex scenarios and high-precision depth measurements, depth map fusion algorithms can provide more accurate depth information, but their computational complexity is higher. By appropriately selecting the fusion method, the depth measurement performance of ToF cameras can be effectively improved, meeting the depth data requirements of different applications.
[0177] This invention also provides a smart device, characterized in that it includes a low-motion-blur, high-dynamic-range ToF camera as described in any of the preceding claims. This specification provides an exemplary description of the smart device. It will be understood by those skilled in the art that the description of the smart device in this specification is for illustrative purposes only, to facilitate a better understanding of the role of the adaptive depth camera in the smart device, and should not constitute a limitation on the scope of protection.
[0178] Components of smart devices
[0179] Central Processing Unit (CPU): This is the core component of intelligent devices, responsible for executing various instructions and computational tasks, processing and analyzing data from various sensors, controlling the overall operation of the device, and coordinating the work between various components. For example, in intelligent robots, the CPU can perform path planning and decision-making based on depth information collected by a ToF camera.
[0180] Storage unit: Used to store the device's operating system, applications, user data, and images and depth data acquired by the ToF camera. The storage unit includes random access memory (RAM) and read-only memory (ROM). RAM is used to temporarily store running programs and data, while ROM is used to store fixed programs and data, such as the device's boot code.
[0181] Input / output devices
[0182] Input devices include keyboards, mice, touchscreens, microphones, etc., used to receive user input commands and information. For example, users can use the touchscreen to input commands to control the operating mode of the ToF camera or view the captured images.
[0183] Output devices, such as displays, speakers, and printers, are used to present the processed results and information to the user. Depth images captured by a ToF camera and the processed results can be displayed to the user on a screen.
[0184] Power module: Provides power to all components of the smart device, ensuring its normal operation. The power module can be a battery or powered by an external power adapter.
[0185] Communication module: Supports communication between smart devices and other devices or networks. Common communication methods include Wi-Fi, Bluetooth, Ethernet, 4G / 5G, etc. Through the communication module, smart devices can transmit data collected by the ToF camera to other devices or the cloud for further processing and analysis, and can also receive instructions and data from other devices.
[0186] Sensors: In addition to ToF cameras, smart devices may also be equipped with other sensors, such as accelerometers, gyroscopes, ambient light sensors, and temperature sensors. These sensors can provide additional environmental and device status information, which, combined with data from the ToF camera, helps smart devices better perceive and understand their surroundings.
[0187] The role of a high dynamic range ToF camera with low motion blur
[0188] Precise Depth Perception: ToF cameras measure the distance between objects and the camera by emitting and receiving light signals, providing high-precision depth information. Their low motion blur characteristic allows for accurate depth data acquisition even when the device or the subject is moving, providing intelligent devices with precise spatial perception capabilities. For example, in intelligent security monitoring, it can accurately monitor changes in the distance to moving targets, enabling more precise behavior analysis and early warning.
[0189] 3D Scene Reconstruction: Based on depth information and 2D image information acquired by a ToF camera, smart devices can construct 3D scene models. High dynamic range (HDR) ToF cameras with low motion blur can stably acquire data during motion, contributing to more accurate and complete 3D scene reconstruction results. This has important applications in virtual reality (VR), augmented reality (AR), and robot navigation, helping devices better understand their surroundings and achieve more natural interaction and more precise navigation.
[0190] Object Recognition and Tracking: Depth information provided by ToF cameras can serve as a crucial feature for object recognition and tracking. The low motion blur characteristic allows the camera to continuously and stably acquire depth information even when an object is moving. Combined with other image features, this improves the accuracy and stability of object recognition and tracking. For example, in intelligent transportation systems, it can be used to accurately identify and track moving vehicles, supporting traffic management and autonomous driving.
[0191] Human-Computer Interaction: In smart devices, ToF cameras can be used to enable gesture- and motion-based human-computer interaction. Low-motion-blur cameras can quickly and accurately capture user movements and gestures, providing a smooth and natural interactive experience. For example, users can control the power on / off of a smart TV, change channels, or perform game operations using body movements on a smart gaming device.
[0192] The various embodiments described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0193] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A high dynamic range (ToF) camera with low motion blur, characterized in that, include: Projector, used to project speckle; A receiver is configured to receive the speckle reflection signal at a first exposure time and a second exposure time to obtain a near-field exposure frame and a far-field exposure frame, respectively; wherein, within one exposure cycle, the first exposure frame is obtained at the first exposure time; the second exposure frame is obtained at the second exposure time, and the third exposure frame is obtained by exposing at a third exposure time; wherein, the third exposure time is shorter than the second exposure time; The processor is configured to: perform parallax calculation on the first exposure frame to obtain structured light depth; perform depth calculation on the first exposure frame using a time-of-flight algorithm to obtain a first near-field depth; de-wrap the first near-field depth based on the structured light depth to obtain a second near-field depth; perform depth calculation on the second exposure frame using a time-of-flight algorithm to obtain a first far-field depth; perform depth calculation on the third exposure frame using a time-of-flight algorithm to obtain a second far-field depth; de-wrap the first far-field depth based on high-confidence points in the second far-field depth to obtain a third far-field depth; and integrate the second near-field depth and the third far-field depth to obtain a final depth map.
2. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The processor is also configured to dynamically adjust the first exposure time, the second exposure time, and the third exposure time according to the scene brightness, and shorten the corresponding values of the first exposure time, the second exposure time, and the third exposure time when the scene brightness is higher than a preset threshold.
3. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The receiver is exposed sequentially at a first exposure time, a third exposure time, and a second exposure time.
4. A high dynamic range ToF camera with low motion blur according to claim 3, characterized in that, The ratio of the third exposure time to the second exposure time is dynamically adjusted according to the ambient light intensity, with the adjustment range being 1:1 to 1:
10.
5. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The projector employs a wavelength-modulated laser array, whose modulation frequency is synchronized with the exposure timing of the receiver, with a synchronization error of less than 5% of the exposure time.
6. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The processor determines high-confidence points in the second distant depth by identifying points whose depth values are within a preset error range and whose depth values are highly consistent within their neighborhood as high-confidence points.
7. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The step of dewinding the first distance depth based on the high-confidence points in the second distance depth to obtain the third distance depth includes: Step S1: Evaluate the second distant depth to obtain high confidence points; Step S2: Expand based on the high confidence points to obtain the fourth distant depth; Step S3: Compare the fourth distance depth with the first distance depth, and correct the values in the first distance depth that deviate from the fourth distance depth by more than a distance threshold to obtain the third distance depth.
8. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, The step of decoupling the first near depth based on the parallax data to obtain the second near depth includes: Step S4: Calculate the third near depth based on the parallax data; Step S5: Compare the third near-field depth with the first near-field depth, and correct the values in the first near-field depth that deviate from the third near-field depth by more than a near-field threshold to obtain the second near-field depth.
9. A high dynamic range ToF camera with low motion blur according to claim 1, characterized in that, When integrating the second near-field depth and the third far-field depth, the processor uses a weighted average method or a depth map fusion algorithm to generate a smooth and continuous final depth map.
10. A smart device, characterized in that, Includes the low motion blur high dynamic range ToF camera as described in any one of claims 1 to 9.
