TOF and structured light fused depth camera and depth detection method thereof, and sweeper

By using a fusion depth camera of TOF and structured light in the TOF module, combined with a large horizontal field of view and a staggered baseline design, the problems of channeling light and multipath effects are solved, and the accuracy of depth detection of the sweeping robot is improved.

WO2024193131A1PCT designated stage expired Publication Date: 2024-09-26SHENZHEN ORBBEC CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/139211
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2023-12-15
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

The TOF module in the sweeping robot has low depth accuracy due to the light channeling phenomenon and the multi-path effect of optical path propagation. Especially in the short range, the measurement accuracy decreases.

Method used

A fusion depth camera using TOF and structured light sets the first extension direction of the linear emission beam projected by the emitter to the horizontal direction parallel to the ground, and sets the second extension of the baseline between the collector and the emitter The direction is set to intersect with the first extension direction to reduce the impact of light channeling. The structured light depth calculation principle is used in the near range, and the TOF depth calculation principle is used in the medium and long range to separate the depth detection of close and medium distances. .

Benefits of technology

It effectively reduces the baseline size of the TOF module, reduces the impact of light channeling on depth accuracy, avoids the multipath effect, and improves the accuracy of depth detection, especially in the short range, which significantly improves the measurement accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139211_26092024_PF_FP
    Figure CN2023139211_26092024_PF_FP
Patent Text Reader

Abstract

Provided in the present application are a TOF and structured light fused depth camera and a depth detection method thereof, and a sweeper. The fused depth camera comprises an emitter, a collector and a controller / processor, wherein a first extension direction of a linear emitted light beam projected by the emitter is a horizontal direction parallel to the ground; a second extension direction of a baseline between the emitter and the collector intersects the first extension direction; and a large field-of-view angle direction of a TOF module is in the horizontal direction parallel to the ground, such that the baseline size of the TOF module can be effectively reduced, thereby facilitating a reduction in the impact of a light channeling phenomenon on the depth precision. In addition, the controller / processor calculates, within a short-distance range, corresponding depth information according to a structured light principle, and calculates, within a medium-long distance range, corresponding depth information according to a TOF principle, thereby perfectly preventing a multi-path effect of propagation of various optical paths during TOF-based depth detection within a short-distance range in a traditional scheme, and improving the depth precision of the TOF module.
Need to check novelty before this filing date? Find Prior Art

Description

TOF and structured light fusion depth camera and depth detection method thereof, sweeper Technical Field

[0001] The present application relates to the field of optical detection technology, and in particular to a TOF and structured light fusion depth camera, a depth detection method thereof, and a sweeper. Background Art

[0002] The TOF (Time of Flight) module on a sweeping robot includes a transmitter, a collector, and a control and processor. The transmitter projects a linear array light field onto the object being measured. The linear array light field is reflected by the object and then collected by the collector, causing the collector to generate a corresponding electrical signal. The control and processor synchronizes the trigger signals of the transmitter and collector, and receives the electrical signal generated by the collector for processing to obtain depth information of the object being measured. Because the sweeping robot's operating environment is near the ground, the light field projected by the transmitter has a high light intensity after being reflected from the ground, while the light intensity reflected from the far-ground area is lower. This results in overexposure of pixels in the near-ground area, causing errors in the measurement of the near-ground area. This also has a very serious impact on the measurement accuracy of other far-ground areas with lower light intensity. To solve this problem, some practices are to project a linear array light field from the emitter, and set the extension direction of the linear array light field to the horizontal direction (i.e., parallel to the ground), while increasing the field of view of the TOF module in the horizontal direction (usually greater than 100 degrees, and the larger the better), and reducing the field of view of the TOF module in the vertical direction (perpendicular to the horizontal direction) (usually between 5 and 50 degrees). In this case, the extension direction of the baseline of the TOF module (i.e., the line between the optical centers of the emitter and the collector) is consistent with the extension direction of the linear array light field, which is also horizontal. The purpose is to reduce the impact of parallax caused by different distances on the calibration of the TOF module.

[0003] In related technologies, in addition to the above-mentioned structure, the TOF module is also equipped with a cover plate that serves as a dustproof, waterproof, and protective function. The setting of the cover plate will cause light crosstalk, that is, the linear array light field projected by the transmitter will enter the collector after passing through the surface of the cover plate and internal reflection. This has a great impact on the depth detection accuracy of the TOF module. The main influencing factor of the light crosstalk phenomenon is the baseline length of the TOF module (related to the field of view angle of the TOF module in the horizontal direction). In addition, at close range (especially within 500mm), the depth detection accuracy of the TOF module (including absolute accuracy and relative accuracy) is seriously reduced due to the multipath effect of various optical paths propagated by the TOF module.

[0004] Therefore, it is necessary to improve the structure and depth detection method of the above-mentioned TOF module. Technical issues

[0005] The present application provides a TOF and structured light fusion depth camera, a depth detection method thereof, and a sweeper, aiming to solve the problem of low depth accuracy of the TOF module in related technologies caused by light crosstalk and multipath effects of various optical propagation paths. Technical Solutions

[0006] In order to solve the above-mentioned technical problems existing in the related art, the first aspect of the embodiment of the present application provides a TOF and structured light fusion depth camera, including: a transmitter, for projecting a linear emission light beam to the target space, the first extension direction of the linear emission light beam is a horizontal direction parallel to the ground; a collector, the collector includes at least one acquisition unit, each acquisition unit includes at least two taps, the collector is used to collect the linear reflection light beam reflected by the target space in a single frame period and generate a corresponding rawphase map; a control and processor, for calculating the structured light depth value of each first acquisition unit according to the rawphase map and the structured light depth calculation principle as the depth value of each first acquisition unit. A final depth value of a collection unit, where the linear reflected light beam collected by the first collection unit is reflected from a close-range position; and, the TOF depth value of each second collection unit is calculated according to the rawphase diagram and the TOF depth calculation principle as the final depth value of each second collection unit, where the linear reflected light beam collected by the second collection unit is reflected from a medium- and long-range position; and, a depth map of the target space is generated according to the final depth values ​​of all the collection units; wherein the optical center of the collector is aligned with the optical center of the emitter, the second extension direction of the baseline between the collector and the emitter is staggered with the first extension direction, and the field of view of the collector and the emitter in the second extension direction is smaller than the field of view in the first extension direction.

[0007] A second aspect of an embodiment of the present application provides a depth detection method, including: projecting a linear emission light beam into a target space; collecting the linear reflection light beam reflected by the target space within a single frame period and generating a corresponding rawphase map; calculating the structured light depth value of each first acquisition unit according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit, and calculating the TOF depth value of each second acquisition unit according to the rawphase map and the TOF depth calculation principle as the final depth value of each second acquisition unit; generating a depth map of the target space according to the final depth values ​​of all the acquisition units; wherein, the linear reflection light beam collected by the first acquisition unit is reflected from a close position, and the linear reflection light beam collected by the second acquisition unit is reflected from a medium and long distance position.

[0008] A third aspect of an embodiment of the present application provides a sweeping robot, comprising the fusion-type depth camera described in the first aspect of an embodiment of the present application. Beneficial effects

[0009] From the above description, it can be seen that compared with the related art, the beneficial effect of the present application is that: the optical center of the emitter is aligned with the optical center of the collector, the first extension direction of the linear emission light beam projected by the emitter to the target space is set to a horizontal direction parallel to the ground, and the second extension direction of the baseline between the emitter and the collector is set to be staggered with the first extension direction (that is, not consistent with the first extension direction). This is different from the traditional solution in which the extension direction of the baseline of the TOF module is set to be consistent with the extension direction of the linear array light field. However, similar to the traditional solution, the field of view angle of the TOF module in the second extension direction is still set to be smaller than the field of view angle in the first extension direction, that is, the direction of the large field of view angle of the TOF module is still along the horizontal direction parallel to the ground. This can effectively reduce the baseline size of the TOF module, making the TOF module more miniaturized, and is also more conducive to reducing the impact of the light crosstalk phenomenon on depth accuracy. In the actual depth detection process, the present application divides the acquisition units included in the collector into two categories, namely, a first acquisition unit corresponding to close-range depth detection (the linear reflected light beam collected by it is reflected by a close-range position in the target space) and a second acquisition unit corresponding to medium and long-range depth detection (the linear reflected light beam collected by it is reflected by a medium and long-range position in the target space), and calculates the structured light depth value of the first acquisition unit by the structured light depth calculation principle, and calculates the TOF depth value of the second acquisition unit by the TOF depth calculation principle. That is to say, the corresponding depth information is calculated according to the structured light depth calculation principle within the close range, and the corresponding depth information is calculated according to the TOF depth calculation principle within the medium and long range, thereby perfectly avoiding the multi-path effects of various optical path propagation when performing depth detection based on TOF within the close range in the traditional scheme, thereby improving the depth accuracy of the TOF module. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the relevant technologies or the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the relevant technologies or the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, not all embodiments. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0011] FIG1 is a working optical path diagram of a sweeping machine in the related art provided by this application;

[0012] FIG2 is a schematic diagram of the structure of a TOF module in the related art provided by this application;

[0013] FIG3 is a schematic diagram of a linear array light field projected by a TOF module in the related art provided by this application;

[0014] FIG4 is a schematic diagram of the acquisition of a TOF module in a continuous frame period in the related art provided by this application;

[0015] FIG5 is a diagram illustrating the light channeling phenomenon in a TOF module according to the related art provided by this application;

[0016] FIG6 is a diagram illustrating the multipath effects of various optical propagation paths of a TOF module in the related art provided by this application;

[0017] FIG7 is a schematic diagram of the structure of a fusion depth camera provided in an embodiment of the present application;

[0018] FIG8 is a diagram showing the relationship between depth value and depth accuracy provided by an embodiment of the present application;

[0019] FIG9 is a diagram showing the correspondence between pixels in a rawphase image and an IR image provided by an embodiment of the present application;

[0020] FIG10 is a flow chart of the depth detection method provided in an embodiment of the present application. Modes for Carrying Out the Invention

[0021] In order to make the purpose, technical solutions and advantages of the present application more obvious and easy to understand, the present application will be clearly and completely described below in conjunction with the embodiments of the present application and the corresponding drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. It should be understood that the various embodiments of the present application described below are only used to explain the present application and are not used to limit the present application, that is, based on the various embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0022] Figure 1 is a working optical path diagram of a sweeper in the related technology provided by this application. When the sweeper is performing ground cleaning work, it will perform depth detection through the TOF module it carries. Since the working space of the sweeper is near the ground, it needs to obtain depth information with a larger field of view angle, that is, the outgoing light field projected outward by the TOF module (that is, the solid line with an arrow in Figure 1) requires a larger field of view angle; within the range of the outgoing light field, since the distance between the near-ground position x and the TOF module is much smaller than the distance between the far-ground position y and the TOF module, the reflected light intensity at the near-ground position x is much greater than the reflected light intensity at the far-ground position y, which causes the corresponding pixels of the near-ground data detected in the TOF module to be overexposed. It is precisely because there is such a large difference in the reflected light intensity between the near-ground position x and the far-ground position y that the depth detection data finally obtained by the TOF module deviates greatly from the real data, which seriously affects the measurement accuracy of the TOF module.

[0023] FIG2 is a schematic diagram of the structure of the TOF module in the related art provided by this application. The TOF module includes a control and processor 13 and a transmitter 11 and a collector 12 connected to the control and processor 13. In the actual depth detection process, the transmitter 11 is used to continuously transmit a pulsed emission light beam 30 with amplitude modulated in time sequence to a target 20 in space, and at least part of the pulsed emission light beam 30 is reflected by the target 20 to form a pulsed reflection light beam 40, and at least part of the pulsed reflection light beam 40 is received by the collector 12 and converted into a corresponding electrical signal. After that, the control and processor 13 synchronizes the trigger signals of the transmitter 11 and the collector 12, and receives and processes the electrical signal generated by the collector 12 to calculate the flight time of the pulsed reflection light beam 40 relative to the pulsed emission light beam 30, and then the depth information of the target 20 can be calculated based on the calculated flight time. For ease of understanding, this application defines three directions, namely the horizontal direction H parallel to the ground, the vertical direction V perpendicular to the ground, and the connection direction U between the TOF module and the target 20. The connection direction U is actually also the optical path propagation direction of the pulse emission beam 30 and the pulse reflection beam 40. In the TOF module, the pulsed emission light beam 30 projected by the emitter 11 is usually linear. When there is more than one pulsed emission light beam 30, a linear array light field as shown in Figure 3 will be projected on the target 20. In order to solve the problem of overexposure of corresponding pixels of near-ground data detected in the TOF module mentioned above, some practices are to set the extension direction of the linear array light field projected by the emitter 11 to the horizontal direction H, while increasing the field of view of the TOF module in the horizontal direction H (usually greater than 100 degrees and the larger the better), and reducing the field of view of the TOF module in the vertical direction V (usually between 5 and 50 degrees). In this case, the extension direction of the baseline BL of the TOF module (i.e., the line connecting the optical centers of the emitter 11 and the collector 12) is consistent with the extension direction of the linear array light field, which is also the horizontal direction H. The purpose is to reduce the impact of parallax caused by different distances on the TOF module calibration.

[0024] As for the transmitter 11, it includes a light source 111, an emitting optical element 112 and a driver 113. In the actual depth detection process, the light source 111 can project an amplitude-modulated pulsed emission light beam 30 to the emitting optical element 112 at a certain timing under the control of the driver 113 (which can be further controlled by the processor 13). For example, the light source 111 projects a pulsed modulated light beam, a square wave modulated light beam, a sine wave modulated light beam, etc. to the emitting optical element 112 at a certain frequency under the control of the driver 113; after receiving the pulsed emission light beam 30 projected by the light source 111, the emitting optical element 112 will project the received pulsed emission light beam 30 to the target 20 in space, and at the same time, it can perform some modulation operations on the pulsed emission light beam 30, such as at least one of collimation, beam expansion, diffraction and shaping. The light source 111 may be a single light source such as a light emitting diode (LED), an edge emitting laser (EEL), or a vertical cavity surface emitting laser (VCSEL), or may be a VCSEL array light source chip formed by generating multiple VCSELs on a single semiconductor substrate; the emitting optical element 112 may be a combination of one or more lenses, a microlens array, a diffractive optical element (DOE), a diffuser, a wave plate, etc. In addition, the emitting optical element 112 may be split into multiple optical elements according to the different modulation operations performed by the emitting optical element 112. For example, the emitting optical element 112 may be set as a collimating lens and a wave plate arranged in sequence. In this case, the collimating lens can collimate the light beam emitted by the light source 111, and the wave plate can shape the collimated light beam so that the pulsed emission light beam 30 directed to the target 20 is a linear beam.

[0025] The collector 12 includes an image sensor 121, a filter unit 122, and a lens unit 123. During the actual depth detection process, the lens unit 123 is used to receive at least a portion of the pulsed reflected light beam 40 reflected by the target 20 in space and image it on at least a portion of the image sensor 121. The filter unit 122 is configured as a narrowband filter that matches the wavelength of the light source 111, which is used to suppress background light noise in other bands. The image sensor 121 can be an array-type image sensor composed of a charge-coupled device (CCD), a complementary metal oxide semiconductor (CMOS), an avalanche photodiode (APD), a single-photon avalanche photodiode (SPAD), etc. The size of the array represents the resolution of the TOF module, such as 320×240. In addition, the collector 12 can also include other structures commonly used in the art, such as a readout circuit (not shown) electrically connected to the image sensor 121, which generally includes a combination of one or more components such as a signal amplifier, a time-to-digital converter (TDC), and an analog-to-digital converter (ADC).

[0026] Furthermore, the image sensor 121 includes at least one acquisition unit. Unlike conventional image sensors used only for photographing, each acquisition unit here includes at least two taps, each of which is used to store and read or discharge the charge signal generated by the acquisition of the pulsed reflected light beam 40 (or ambient light) under the control of a corresponding electrode. During actual depth detection, the image sensor 121 can sequentially switch the taps in a certain order within a single frame period (or a single exposure time) to acquire the corresponding pulsed reflected light beam 40, and convert the acquired pulsed reflected light beam 40 into a corresponding electrical signal, so that the image sensor 121 can output a rawphase map within each frame period. The pixel value (referred to as raw value) of each pixel (referred to as raw pixel) in the rawphase map is the amount of charge accumulated by each tap due to the acquisition of the pulsed reflected light beam 40 (or ambient light). The rawphase map also includes phase difference information of the pulsed reflected light beam 40 relative to the pulsed transmitted light beam 30. As an example, when the image sensor 121 includes 100*100 acquisition units and each acquisition unit includes 3 taps, the rawphase map includes 300*100 raw pixels.

[0027] Furthermore, Figure 4 is a schematic diagram of the acquisition of the TOF module in a continuous frame period in the related technology provided by this application. The entire frame period T is divided into two time periods Ta and Tb, wherein Ta represents the time period in which each tap in the acquisition unit acquires the pulse reflection light beam 40 and stores the corresponding charge, and Tb represents the time period in which the charge signal generated by each tap in the acquisition unit due to the acquisition of the pulse reflection light beam 40 is read out. As an example, each acquisition unit in the image sensor 121 includes three taps, represented by s1, s2 and s3, respectively, where s1 and s2 are used to collect the pulse reflection light beam 40, and s3 is used to collect ambient light. In general modulation and demodulation, the exposure time of each tap in a continuous frame period T is fixed. That is, assuming that the pulse reflection light beam 40 is collected by taps s1 and taps s2 (tap s1 and tap s2 will also collect ambient light) and accumulate charges Q1 and Q2 respectively, tap s3 is used to collect ambient light and accumulate charge Q3. At this time, the image sensor 121 outputs a rawphase map in each frame period T. Thereafter, the control and processor 13 can calculate the depth information of the target 20 based on the rawphase map output by the image sensor 121. The depth detection range D of the TOF module is also limited to a single pulse width time Th, which can be expressed by the following formula (c is the speed of light):

[0028] The control and processor 13 can provide the modulation signal (transmission signal) required for the light source 111 to project the pulsed emission light beam 30. Under the control of the modulation signal, the light source 111 will project the pulsed emission light beam 30 toward the target 20 in space. For example, the modulation signal provided by the control and processor 13 is a square wave signal or a pulse signal. The light source 111 will perform temporal amplitude modulation under the modulation of the modulation signal to generate a square wave modulated light beam or a pulsed modulated light beam and emit it outward. In addition, the control and processor 13 can also provide the demodulation signal (acquisition signal) of each tap in each acquisition unit of the image sensor 121. Under the control of the demodulation signal, each tap will collect the pulsed reflection light beam 40 reflected back from the target 20 in space and convert the collected pulsed reflection light beam 40 into a corresponding electrical signal. After the acquisition is completed, a rawphase map can be output. Furthermore, after receiving the rawphase map from the image sensor 121, the control and processor 13 can process the received rawphase map to calculate the depth information of the target 20 (equivalent to generating a depth image of the target 20). Among them, the control and processor 13 can adopt an independent dedicated circuit, such as a dedicated SOC chip, FPGA chip, ASIC chip, etc. composed of a central processing unit (CPU), memory, bus, etc., or a general processing circuit. For example, when the TOF module is integrated into a smart terminal such as a mobile phone, TV, computer, etc., the processing circuit in the smart terminal can serve as at least a part of the control and processor 13.

[0029] Figure 5 is a demonstration diagram of the light crosstalk phenomenon in the TOF module in the related technology provided by this application. In addition to the transmitter 11, the collector 12 and the control and processor 13, the TOF module is usually also provided with a cover 14 that plays a dust-proof, waterproof and protective role. The setting of the cover 14 will cause light crosstalk, that is, the linear light beam projected by the transmitter 11 will enter the collector 12 after passing through the surface of the cover and internal reflection, which has a great impact on the depth accuracy of the TOF module. The main influencing factor of the light crosstalk phenomenon is the length of the baseline BL of the TOF module, and the length of the baseline BL is related to the field of view angle of the TOF module in the horizontal direction H. In addition, within the close range (especially within 500mm), the depth accuracy (including absolute accuracy and relative accuracy) of the TOF module is seriously reduced due to the multipath effect of the various optical paths of the TOF module. The multipath effect of the various optical paths of the TOF module can be seen in the demonstration diagram given in Figure 6. As shown in Figure 6 (1), the light emitted by the transmitter 11 is reflected by the target 20 to the TOF module or other attached objects, and then reflected back to the target 20 by the TOF module or other attached objects, and finally reflected by the target 20 to the collector 12, which interferes with the Measurement results; As shown in Figure 6 (2), under the conditions of close distance and relatively large aperture, the light emitted by the transmitter 11 is a diffuse reflection or a Lambert reflector, and the same point on the target 20 will reflect light at different angles. These lights at different angles can all be received by the collector 12 and focused on the same pixel, thus forming a multipath effect; As shown in Figure 6 (3), under close distance conditions, the energy of the light received by the lens unit 123 in the collector 12 is stronger, the receivable angle is also larger, and the stray light inside the lens unit 123 is also stronger, that is, the multipath effect inside the lens unit 123 is also stronger. In order to solve the problem of low depth accuracy of the TOF module due to the light channeling phenomenon and the multipath effect of various light path propagation, the embodiment of the present application improves the layout of the baseline BL of the TOF module and the depth calculation logic of the TOF module, thereby obtaining a TOF and structured light fusion depth camera.

[0030] FIG7 is a schematic diagram of the structure of a fusion depth camera provided in an embodiment of the present application. In some embodiments, the fusion depth camera includes an emitter 11, a collector 12, and a control and processor 13 connected to the emitter 11 and the collector 12. The emitter 11 is used to project a linear emission beam into the target space. The first extension direction of the linear emission beam is a horizontal direction H parallel to the ground. The number of linear emission beams can include one or more, as long as it does not affect the subsequent parallax matching of the structured light. Specifically, when the number of linear emission beams is one, the subsequent depth calculation is simplest, but the detection field of view is limited. When the number of linear emission beams is multiple, a linear array light field as shown in FIG3 is formed. In this case, the distance between adjacent linear emission beams needs to be controlled to prevent crosstalk caused by the offset of the linear emission beams. Alternatively, the linear array light field can be partitioned, that is, the linear array light field is divided into multiple regions, and each region projects at least one linear emission beam at a time. The optical center of the collector 12 is aligned with the optical center of the emitter 11. The second extension direction of the baseline BL between the collector 12 and the emitter 11 intersects the first extension direction (e.g., at angles of 90°, 45°, etc.). The field of view of the collector 12 and the emitter 11 in the second extension direction is smaller than the field of view in the first extension direction. The collector 12 includes at least one collection unit, each of which includes at least two taps. The collector 12 is configured to collect linear reflected light beams reflected from the target space within a single frame period and generate a corresponding rawphase map. The control and processor 13 is configured to calculate a structured light depth value for each first collection unit based on the rawphase map and a structured light depth calculation principle, as a final depth value for each first collection unit. The linear reflected light beam collected by the first collection unit is reflected from a near-range position. The control and processor 13 is configured to calculate a time-of-flight depth value for each second collection unit based on the rawphase map and a time-of-flight depth calculation principle, as a final depth value for each second collection unit. The linear reflected light beam collected by the second collection unit is reflected from a medium- to long-range position. The depth map of the target space is generated based on the final depth values ​​of all collection units.

[0031] In the embodiment of the present application, the first extension direction of the linear emission light beam projected by the emitter 11 to the target space is set to be parallel to the horizontal direction H of the ground, and the second extension direction of the baseline BL between the emitter 11 and the collector 12 is set to be staggered with the first extension direction (that is, not consistent with the first extension direction). This is different from the traditional solution in which the extension direction of the baseline BL of the TOF module is set to be consistent with the extension direction of the linear array light field. However, similar to the traditional solution, the field of view angle of the depth camera in the second extension direction is still set to be smaller than the field of view angle in the first extension direction, that is, the direction of the large field of view angle of the depth camera is still along the horizontal direction. The horizontal direction H parallel to the ground can effectively reduce the size of the baseline BL, making the depth camera more compact and reducing the impact of light crosstalk on depth accuracy. The layout of the baseline BL can be determined based on light crosstalk requirements (for example, the field of view angle in the vertical direction V, the gap between the cover 14 and the emitter 11 and collector 12, the refractive index and thickness of the cover 14, etc.), product ID requirements, and close-range depth accuracy requirements (similar to the monocular structured light accuracy evaluation method). If better close-range accuracy is desired, the length of the baseline BL can be increased based on actual needs. In the actual depth detection process, the embodiment of the present application divides the acquisition units included in the collector 12 into two categories, namely, a first acquisition unit corresponding to close-range depth detection (the linear reflected light beam collected by it is reflected by a close-range position in the target space) and a second acquisition unit corresponding to medium and long-range depth detection (the linear reflected light beam collected by it is reflected by a medium and long-range position in the target space), and calculates the structured light depth value of the first acquisition unit by the structured light depth calculation principle, and calculates the TOF depth value of the second acquisition unit by the TOF depth calculation principle. That is to say, the corresponding depth information is calculated according to the structured light depth calculation principle within the close range, and the corresponding depth information is calculated according to the TOF depth calculation principle within the medium and long range, thereby perfectly avoiding the multi-path effects of various optical path propagations when performing depth detection based on TOF within the close range in the traditional scheme, thereby improving the depth accuracy of the depth camera.

[0032] As one embodiment, the control and processor 13 is specifically used to: calculate the TOF depth value of each acquisition unit according to the rawphase map and the TOF depth calculation principle; compare the TOF depth value of each acquisition unit with a preset depth critical value respectively; for each first acquisition unit whose TOF depth value is less than or equal to the depth critical value, calculate the structured light depth value of each first acquisition unit again according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit; for each second acquisition unit whose TOF depth value is greater than the depth critical value, use the corresponding TOF depth value as the final depth value of each second acquisition unit; and generate a depth map of the target space based on all the final depth values.

[0033] As shown in Figure 8, this embodiment determines which of the numerous acquisition units belong to the first acquisition unit and which belong to the second acquisition unit based on the comparison results of the TOF depth value of each acquisition unit and the depth threshold value. That is, it determines which acquisition units receive linear reflected light beams reflected from close-range positions and which acquisition units receive linear reflected light beams reflected from medium- and long-range positions. This can further clarify which acquisition units need to use structured light depth values ​​and which acquisition units need to use TOF depth values. In this embodiment, when the TOF depth value of a certain acquisition unit is less than or equal to the depth threshold value, it indicates that the acquisition unit is the first acquisition unit corresponding to close-range depth detection, and the depth is calculated using the structured light depth calculation principle; when the TOF depth value of a certain acquisition unit is greater than the depth threshold value, it indicates that the acquisition unit is the second acquisition unit corresponding to medium- and long-range depth detection, and the depth is calculated using the TOF depth calculation principle.

[0034] For the calculation of the structured light depth value, the rawphase map is actually first converted into an IR map, and then the structured light depth value is calculated based on the IR map and the structured light depth calculation principle; wherein, the pixel value (referred to as IR value) of each pixel (referred to as IR pixel) in the IR map respectively represents the amount of charge generated by each acquisition unit when collecting the linear reflected light beam and / or ambient light. It can be understood that there is a corresponding relationship between each raw pixel in the rawphase map and each IR pixel in the corresponding IR map. From the foregoing description, it can be found that each acquisition unit in the image sensor 121 includes at least two taps, and the raw value of each raw pixel in the rawphase map respectively represents the amount of charge generated by each tap when collecting the linear reflected light beam and / or ambient light, and the IR value of each IR pixel in the IR map respectively represents the amount of charge generated by each acquisition unit when collecting the linear reflected light beam and / or ambient light (that is, respectively represents the amount of charge generated by all taps of each acquisition unit when collecting the linear reflected light beam and / or ambient light). The sum of the loads), then taking the target acquisition unit including two target taps as an example, in this case, the raw values ​​of the two target raw pixels in the rawphase map are summed to obtain the IR value of the target IR pixel in the IR map. This is the correspondence between each raw pixel in the rawphase map and each IR pixel in the corresponding IR map. Then, the raw values ​​of multiple raw pixels corresponding to each acquisition unit in the rawphase map are summed separately to obtain the IR value of each IR pixel in the corresponding IR map. Then, an IR map corresponding to the rawphase map can be generated according to all the IR values. For example, the corresponding relationship between the rawphase diagram and the pixels in the IR diagram shown in FIG9 can be referred. There are 8 IR pixels in the IR diagram, which respectively represent the charge generated by the 8 acquisition units A, B, C, D, E, F, G and H respectively collecting the corresponding linear reflected light beams and / or ambient light. Each of the 8 acquisition units includes two taps (for example, acquisition unit A includes taps a1 and a2, acquisition unit B includes taps b1 and b2, acquisition unit C includes taps c1 and c2, and so on). In this case, rawphase There are a total of 16 raw pixels in Figure e, which respectively represent the amount of charge generated by the 16 taps of the 8 acquisition units when collecting the corresponding linear reflected light beams and / or ambient light. Taking the acquisition unit A and its taps a1 and a2 as an example, the raw values ​​of the two raw pixels in the rawphase diagram representing the amount of charge generated by the taps a1 and a2 when collecting the corresponding linear reflected light beams and / or ambient light can be summed to obtain the IR value of the IR pixel in the IR diagram representing the amount of charge generated by the acquisition unit A when collecting the corresponding linear reflected light beams and / or ambient light.

[0035] As another embodiment, the control and processor 13 is specifically used to: calculate the TOF depth value of each acquisition unit according to the rawphase image and the TOF depth calculation principle, and calculate the structured light depth value of each acquisition unit according to the rawphase image and the structured light depth calculation principle; respectively calculate the depth average of the TOF depth value and the structured light depth value of each acquisition unit; respectively compare the depth average of each acquisition unit with a preset depth critical value; using the comparison result as a reference, select one from the corresponding TOF depth value and structured light depth value of each acquisition unit as the final depth value of each acquisition unit; and generate a depth map of the target space based on all the final depth values.

[0036] As shown in Figure 8, this embodiment determines which of the numerous acquisition units belong to the first acquisition unit and which belong to the second acquisition unit based on the comparison results of the depth average value of each acquisition unit and the depth threshold value. That is, it determines which acquisition units receive linear reflected light beams reflected from a close-range position and which acquisition units receive linear reflected light beams reflected from a medium-to-long-range position. This can further clarify which acquisition units need to use structured light depth values ​​and which acquisition units need to use TOF depth values. In this embodiment, when the depth average value of a certain acquisition unit is less than or equal to the depth threshold value, it indicates that the acquisition unit is the first acquisition unit corresponding to close-range depth detection, and the depth is calculated using the structured light depth calculation principle, that is, the corresponding structured light depth value is selected as its final depth value; when the depth average value of a certain acquisition unit is greater than the depth threshold value, it indicates that the acquisition unit is the second acquisition unit corresponding to medium-to-long-range depth detection, and the depth is calculated using the TOF depth calculation principle, that is, the corresponding TOF depth value is selected as its final depth value. It can be understood that this embodiment is different from the previous embodiment in that the structured light depth value and the TOF depth value in this embodiment are calculated in parallel, which can effectively improve the calculation efficiency and also increase the frame rate.

[0037] Based on the several embodiments and Figure 8 given above, this application is based on system parameter evaluation (theoretical simulation or measured accuracy), and takes the point where the absolute accuracy + relative accuracy calculated by the structured light principle is better than the absolute accuracy + relative accuracy calculated by the TOF principle as the critical point of the depth value, that is, a depth critical value is determined, and for depths less than this point, the depth of the monocular linear array structured light solution is used as the final depth value of the corresponding acquisition unit, and for depths greater than this point, the depth of the TOF solution is used as the final depth value of the corresponding acquisition unit. It can be understood that the embodiment of the present application adopts the structured light principle to calculate the depth for close-range depth detection, and adopts the TOF principle to calculate the depth for medium and long-range depth detection; in the embodiment of the present application, the depth calculation scheme based on the TOF principle is the same as the conventional iTOF (indirect-ToF, indirect time of flight) scheme in the related art, and the depth calculation scheme based on the structured light principle is the same as the conventional monocular structured light scheme using parallax matching in the related art; for the structured light principle, the reference image used can reuse the close-range IR image during iTOF depth calibration. Since the positions of each linear light beam in the linear array light field are separated from each other, and the offsets generated at different depths in the structured light calculation are along the same line, the distance between the two images is greater than the distance between the two images. Along the extension direction of the baseline BL, the mask can be used in the algorithm to divide the area, and the offset of each linear light beam will not exceed the divided area. In the case of multiple linear light beams, there will be no crosstalk between adjacent light beams, and the amount of calculation can be reduced; in depth measurement, the depth disparity of each row is calculated and then converted into depth information. The matching algorithm with low computing power requirements can refer to the single-line structured light module, that is, each linear light beam in the IR image is matched with each linear light beam in the reference image. Simply, the disparity of each acquisition unit of the linear light beam imaging can be calculated one by one, or divided into multiple blocks, and the coordinates of the center position of each block are selected to calculate the disparity; the embodiments of the present application will not be described in detail.

[0038] FIG10 is a flow chart of a depth detection method provided in an embodiment of the present application. The embodiment of the present application further provides a depth detection method. In some embodiments, the depth detection method includes the following steps 1001 to 1004 .

[0039] Step 1001: Project a linear emission light beam toward a target space.

[0040] In these embodiments, when performing depth detection on a target space, the emitter 11 projects a linear emission light beam toward the target space.

[0041] Step 1002: Collect the linear reflected light beam reflected by the target space within a single frame period and generate a corresponding rawphase diagram.

[0042] In these embodiments, the collector 12 collects the linear reflected light beam reflected by the target space within a single frame period and generates a corresponding rawphase map.

[0043] Step 1003: Calculate the structured light depth value of each first acquisition unit according to the rawphase diagram and the structured light depth calculation principle as the final depth value of each first acquisition unit, and calculate the TOF depth value of each second acquisition unit according to the rawphase diagram and the TOF depth calculation principle as the final depth value of each second acquisition unit.

[0044] In these embodiments, the control and processor 13 calculates the structured light depth value of each first acquisition unit according to the rawphase diagram and the structured light depth calculation principle as the final depth value of each first acquisition unit, and the linear reflected light beam collected by the first acquisition unit is reflected from a close position; and calculates the TOF depth value of each second acquisition unit according to the rawphase diagram and the TOF depth calculation principle as the final depth value of each second acquisition unit, and the linear reflected light beam collected by the second acquisition unit is reflected from a medium or long distance position.

[0045] As one embodiment, the logic of the control and processor 13 to determine the final depth value of each acquisition unit is: calculate the TOF depth value of each acquisition unit according to the rawphase map and the TOF depth calculation principle; compare the TOF depth value of each acquisition unit with the preset depth critical value respectively; for each first acquisition unit whose TOF depth value is less than or equal to the depth critical value, calculate the structured light depth value of each first acquisition unit again according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit; for each second acquisition unit whose TOF depth value is greater than the depth critical value, use the corresponding TOF depth value as the final depth value of each second acquisition unit.

[0046] As another embodiment, the logic for the control and processor 13 to determine the final depth value of each acquisition unit is: calculating the TOF depth value of each acquisition unit based on the rawphase image and the TOF depth calculation principle, and calculating the structured light depth value of each acquisition unit based on the rawphase image and the structured light depth calculation principle; respectively calculating the depth average of the TOF depth value and the structured light depth value of each acquisition unit; respectively comparing the depth average of each acquisition unit with a preset depth critical value; using the comparison result as a reference, selecting one from the corresponding TOF depth value and structured light depth value of each acquisition unit as the final depth value of each acquisition unit.

[0047] Step 1004: Generate a depth map of the target space according to the final depth values ​​of all acquisition units.

[0048] In these embodiments, the control and processor 13 may further generate a depth map of the target space according to the final depth values ​​of all acquisition units.

[0049] In summary, the present application combines the close-range high-precision of the line structured light of triangulation with the medium- and long-range high-precision depth measurement characteristics of TOF. The extension direction of the baseline BL is set to the direction of the small field of view angle, which can reduce the size of the baseline BL, making the depth camera smaller, convenient for product ID design, and more conducive to the reduction of the light channeling phenomenon. The depth calibration of TOF can be carried out simultaneously with the depth calibration of the line structured light. The reference image used by the line structured light only needs to reuse the close-range IR image during the TOF depth calibration. TOF uses the Rawphase image of different distances for depth calculation, and the line structured light uses the rawphase image to convert the IR image and performs parallax matching with the reference image to complete the depth calculation. The present application circumvents the multipath problem of the close-range TOF solution well, while utilizing the close-range high-precision characteristics of the line structured light solution based on the triangulation principle (which is relatively insensitive to multipath and stray light). It has great application value in the field of robots, especially in sweepers, and greatly improves the close-range measurement accuracy. It can be used as a wall sensor, navigation and obstacle avoidance integrated sensor, etc.

[0050] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0051] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, hard disk, tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive).

[0052] It should be noted that the various embodiments in this application are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similarities between the various embodiments can be referred to in conjunction with each other. For product-related embodiments, since they are similar to method-related embodiments, their description is relatively simple. For relevant details, refer to the description of the method-related embodiments.

[0053] It should also be noted that, in the present application, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article, or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0054] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present disclosure. 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 present disclosure. Therefore, the present disclosure is not limited to the embodiments shown herein but is intended to be applied in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A TOF and structured light fusion depth camera, It is characterized in that include: An emitter, used for projecting a linear emission light beam to a target space, wherein a first extension direction of the linear emission light beam is a horizontal direction parallel to the ground; A collector, the collector comprising at least one collection unit, each of which comprises at least two taps, the collector being used to collect a linear reflected light beam reflected by the target space within a single frame period and generate a corresponding rawphase diagram; A control and processor, configured to calculate the structured light depth value of each first acquisition unit according to the rawphase diagram and the structured light depth calculation principle as the final depth value of each first acquisition unit, wherein the linear reflected light beam acquired by the first acquisition unit is reflected from a close position; and, calculating the TOF depth value of each second acquisition unit according to the rawphase diagram and the TOF depth calculation principle as the final depth value of each second acquisition unit, wherein the linear reflected light beam collected by the second acquisition unit is reflected from a mid-to-long-distance position; And, generating a depth map of the target space according to the final depth values ​​of all the acquisition units; The optical center of the collector is aligned with the optical center of the emitter, the second extension direction of the baseline between the collector and the emitter is staggered with the first extension direction, and the field of view angles of the collector and the emitter in the second extension direction are smaller than the field of view angles in the first extension direction.

2. The fusion depth camera according to claim 1, It is characterized in that The control and processor is specifically used to: calculate the TOF depth value of each acquisition unit according to the rawphase diagram and the TOF depth calculation principle; Comparing the TOF depth value of each acquisition unit with a preset depth threshold value respectively; For each first acquisition unit whose TOF depth value is less than or equal to the depth threshold, the structured light depth value of each first acquisition unit is calculated again according to the rawphase map and the structured light depth calculation principle to serve as the final value of each first acquisition unit. Depth value; For each second acquisition unit whose TOF depth value is greater than the depth critical value, the corresponding TOF depth value is used as the final depth value of each second acquisition unit; and a depth map of the target space is generated according to all the final depth values.

3. The fusion depth camera according to claim 1, It is characterized in that The control and processor is specifically used to: calculate the TOF depth value of each acquisition unit according to the rawphase map and the TOF depth calculation principle, and calculate the structured light depth value of each acquisition unit according to the rawphase map and the structured light depth calculation principle; Calculate the depth average of the TOF depth value and the structured light depth value of each acquisition unit respectively; Comparing the depth average value of each acquisition unit with a preset depth critical value respectively; Taking the comparison result as a reference, selecting one from the TOF depth value and the structured light depth value corresponding to each acquisition unit as the final depth value of each acquisition unit; A depth map of the target space is generated according to all the final depth values.

4. The fusion depth camera according to claim 3, It is characterized in that When the depth average value of the acquisition unit is less than or equal to the depth critical value, selecting the corresponding structured light depth value as the final depth value of the acquisition unit; When the depth average value of the acquisition unit is greater than the depth critical value, the corresponding TOF depth value is selected as the final depth value of the acquisition unit.

5. The fusion depth camera according to claim 1, It is characterized in that The second extension direction is perpendicular to the first extension direction; or, the second extension direction forms an angle of 45° with the first extension direction.

6. A depth detection method, It is characterized in that include: Projecting a linear emission beam into the target space; In a single frame period, a linear reflected light beam reflected by the target space is collected and generated. Into the corresponding rawphase diagram; Calculate the structured light depth value of each first acquisition unit according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit, and calculate the TOF depth value of each second acquisition unit according to the rawphase map and the TOF depth calculation principle as the final depth value of each second acquisition unit; Generate a depth map of the target space according to the final depth values ​​of all the acquisition units; The linear reflected light beam collected by the first collecting unit is reflected from a short-distance position, and the linear reflected light beam collected by the second collecting unit is reflected from a medium-distance position.

7. The depth detection method according to claim 6, It is characterized in that The step of calculating the structured light depth value of each first acquisition unit according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit, and calculating the TOF depth value of each second acquisition unit according to the rawphase map and the TOF depth calculation principle as the final depth value of each second acquisition unit, includes: Calculate the TOF depth value of each acquisition unit according to the rawphase diagram and the TOF depth calculation principle; Comparing the TOF depth value of each acquisition unit with a preset depth threshold value respectively; For each first acquisition unit whose TOF depth value is less than or equal to the depth critical value, the structured light depth value of each first acquisition unit is calculated again according to the rawphase diagram and the structured light depth calculation principle to serve as the final depth value of each first acquisition unit; For each second acquisition unit whose TOF depth value is greater than the depth critical value, the corresponding TOF depth value is used as the final depth value of each second acquisition unit.

8. The depth detection method according to claim 6, It is characterized in that The step of calculating the structured light depth value of each first acquisition unit according to the rawphase map and the structured light depth calculation principle as the final depth value of each first acquisition unit, and calculating the TOF depth value of each second acquisition unit according to the rawphase map and the TOF depth calculation principle as the final depth value of each second acquisition unit, includes: Calculating the TOF depth value of each acquisition unit according to the rawphase diagram and the TOF depth calculation principle, and calculating the structured light depth value of each acquisition unit according to the rawphase diagram and the structured light depth calculation principle; Calculate the depth average of the TOF depth value and the structured light depth value of each acquisition unit respectively; Comparing the depth average value of each acquisition unit with a preset depth critical value respectively; With the comparison result as a reference, one of the TOF depth value and the structured light depth value corresponding to each acquisition unit is selected as the final depth value of each acquisition unit.

9. The depth detection method according to claim 8, It is characterized in that The step of taking the comparison result as a reference and selecting one of the TOF depth value and the structured light depth value corresponding to each acquisition unit as the final depth value of each acquisition unit includes: When the depth average value of the acquisition unit is less than or equal to the depth critical value, selecting the corresponding structured light depth value as the final depth value of the acquisition unit; When the depth average value of the acquisition unit is greater than the depth critical value, the corresponding TOF depth value is selected as the final depth value of the acquisition unit.

10. A sweeping machine, It is characterized in that It comprises a fusion type depth camera as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Depth camera module, depth camera, depth map obtaining method, and depth camera module forming method

    CN109889809A

  • Fused depth measuring device and distance measuring method

    CN110456379A

  • Depth calculation chip architecture

    CN110488240A

  • Depth sensing device and method

    CN112799080A

  • TOF and structured light fused depth camera, depth detection method thereof and sweeper

    CN116482708A