Three-dimensional sensing methods, systems, apparatus, computer devices, and storage media

By using non-uniform illumination of surface structured light and a multi-match triangulation algorithm, depth information is fused to solve the problem of limited resolution and accuracy of structured light projection method, thus realizing high-resolution and high-precision three-dimensional sensing.

CN117848231BActive Publication Date: 2026-11-24TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311822498.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2026-11-24
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

Existing structured light projection-based 3D sensing methods have low resolution and cannot achieve both high resolution and high precision.

Method used

By employing non-uniform surface structured light illumination and combining it with a multi-matching triangulation algorithm, the first depth information and scene modulation pattern of the target scene are obtained. By fusing the multi-matching triangulation algorithm and the first depth information, the accuracy and resolution of the depth information are improved.

Benefits of technology

Without increasing the coding space, the resolution and accuracy of 3D sensing are improved, the robustness of the system in low-light and weak-texture environments is enhanced, the computation time is reduced, and the efficiency and accuracy of 3D sensing are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117848231B_ABST
    Figure CN117848231B_ABST
Patent Text Reader

Abstract

This application relates to a three-dimensional sensing method, system, device, computer equipment, storage medium, and computer program product. The method includes: acquiring first depth information of a target scene; acquiring a scene modulation pattern obtained by projecting a preset target pattern onto the target scene using a structured light projection device; the target pattern having anchor points that can be processed by a visual algorithm; the structured light providing non-uniform illumination; determining second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; ensuring that the accuracy of the second depth information is greater than the accuracy of the first depth information within a preset target measurement distance range; and fusing the first depth information and the second depth information to obtain target depth information of the target scene. This method can improve the resolution of three-dimensional sensing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of machine vision technology, and in particular to a three-dimensional sensing method, system, device, computer equipment, storage medium, and computer program product. Background Technology

[0002] 3D sensing technology involves detecting the spatial 3D coordinates of each sampling point on an object in a scene to obtain the 3D shape and depth information of the object. Compared with 2D images acquired by traditional cameras, the 3D information collected by 3D sensing systems provides a more accurate and reliable description of object shapes, is more robust to low-light environments and objects with weak textures, and can be widely used in scenarios requiring positioning, recognition, and interaction. It has broad application prospects in security systems, smart homes, smart manufacturing, aerospace, virtual and augmented reality, vehicles, and robotics.

[0003] The relevant 3D sensing method is structured light projection. Structured light projection projects structured light with specific encoded information onto the target scene using a projection device. By receiving the encoded pattern modulated by the scene, decoding it, and calculating the depth, the depth information of objects in the scene is determined. It has high accuracy in detecting the depth of objects at close range.

[0004] However, structured light projection requires encoding the anchor points of the projected pattern, and encoding requires space, which contradicts the requirement for high resolution. Therefore, the resolution of related 3D sensing methods is relatively low. Summary of the Invention

[0005] Therefore, it is necessary to provide a three-dimensional sensing method, system, device, computer equipment, computer-readable storage medium, and computer program product that can improve resolution in response to the above-mentioned technical problems.

[0006] In a first aspect, this application provides a three-dimensional sensing method, including:

[0007] Obtain the first depth information of the target scene;

[0008] A scene modulation pattern is obtained by projecting a preset target pattern onto the target scene using a surface structured light projection device; the target pattern has anchor points that can be processed by visual algorithms; the surface structured light is non-uniform illumination.

[0009] Based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information, the second depth information is determined; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information.

[0010] The first depth information and the second depth information are fused to obtain the target depth information of the target scene.

[0011] In one embodiment, determining the second depth information based on a preset multi-match triangulation algorithm, the scene modulation pattern, and the first depth information includes:

[0012] Based on a preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern, the doping depth information is calculated; the doping depth information includes real depth information generated based on true matching and pseudo depth information generated based on false matching.

[0013] The second depth information is determined based on the first depth information and the doping depth information.

[0014] In one embodiment, calculating the doping depth information based on a preset triangulation algorithm based on multiple matching and the scene modulation pattern includes:

[0015] Based on the machine vision algorithm and the scene modulation pattern, the coordinate information of each anchor point in the scene modulation pattern is calculated;

[0016] Based on the baseline direction of the projection device of the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern.

[0017] The doping depth information is calculated based on the triangulation method, the coordinate information of each anchor point, the at least one set of matching projection information, and the calibration results of the projection device.

[0018] In one embodiment, determining the second depth information based on the first depth information and the doping depth information includes:

[0019] Based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, the first depth information and the doping depth information are established in the same coordinate system to obtain the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point.

[0020] For each second sampling point, a first sampling point corresponding to the second sampling point is determined, and among the converted doping depth values ​​corresponding to the second sampling point, the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point is determined as the second depth value corresponding to the second sampling point.

[0021] The second depth information is formed by taking the second depth value corresponding to each of the second sampling points.

[0022] In one embodiment, the target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval. The step of fusing the first depth information and the second depth information to obtain the target depth information of the target scene includes:

[0023] Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, target sampling points that are different from the second sampling points corresponding to the second depth information are determined. Then, a point cloud transformation algorithm is used to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval.

[0024] Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

[0025] Secondly, this application also provides a three-dimensional sensing system, comprising:

[0026] The first depth sensing unit is used to collect the first depth information of the target scene;

[0027] The second depth sensing unit is used to project a preset target pattern onto the target scene using surface structured light, and to receive a scene modulation pattern corresponding to the target scene; the target pattern has anchor points that can be processed by visual algorithms; the surface structured light is non-uniformly illuminated;

[0028] The control and processing unit is configured to determine second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information; and fuse the first depth information and the second depth information to obtain the target depth information of the target scene.

[0029] Thirdly, this application also provides a three-dimensional sensing device, comprising:

[0030] The first acquisition module is used to acquire the first depth information of the target scene;

[0031] The second acquisition module is used to acquire a scene modulation pattern obtained after a preset target pattern is projected onto the target scene through a surface structured light projection device; the target pattern has anchor points that can be processed by a visual algorithm; the surface structured light is non-uniform illumination.

[0032] The determining module is used to determine the second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information.

[0033] The fusion module is used to fuse the first depth information and the second depth information to obtain the target depth information of the target scene.

[0034] In one embodiment, the determining module is specifically used for:

[0035] Based on a preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern, the doping depth information is calculated; the doping depth information includes real depth information generated based on true matching and pseudo depth information generated based on false matching.

[0036] The second depth information is determined based on the first depth information and the doping depth information.

[0037] In one embodiment, the determining module is specifically used for:

[0038] Based on the machine vision algorithm and the scene modulation pattern, the coordinate information of each anchor point in the scene modulation pattern is calculated;

[0039] Based on the baseline direction of the projection device of the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern.

[0040] The doping depth information is calculated based on the triangulation method, the coordinate information of each anchor point, the at least one set of matching projection information, and the calibration results of the projection device.

[0041] In one embodiment, the determining module is specifically used for:

[0042] Based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, the first depth information and the doping depth information are established in the same coordinate system to obtain the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point.

[0043] For each second sampling point, a first sampling point corresponding to the second sampling point is determined, and among the converted doping depth values ​​corresponding to the second sampling point, the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point is determined as the second depth value corresponding to the second sampling point.

[0044] The second depth information is formed by taking the second depth value corresponding to each of the second sampling points.

[0045] In one embodiment, the target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval, and the fusion module is specifically used for:

[0046] Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, target sampling points that are different from the second sampling points corresponding to the second depth information are determined. Then, a point cloud transformation algorithm is used to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval.

[0047] Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

[0048] Fourthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps described in the first aspect above.

[0049] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps described in the first aspect above.

[0050] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps described in the first aspect above.

[0051] The aforementioned three-dimensional sensing method, system, device, computer equipment, storage medium, and computer program product acquire first depth information of a target scene; acquire a scene modulation pattern obtained by projecting a preset target pattern onto the target scene through a surface structured light projection device; the target pattern has anchor points that can be processed by a visual algorithm; the surface structured light is non-uniformly illuminated; determine second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information; and fuse the first depth information and the second depth information to obtain the target depth information of the target scene. In this way, when measuring the depth information of the target scene, a lower-precision method or acquisition device is used to collect the basic depth information of the target scene, and a higher-precision surface structured light method is used to obtain the scene modulation pattern. Based on the basic depth information and the scene modulation pattern, a multi-match triangulation algorithm is used to determine the high-precision depth information. The basic depth information and the high-precision depth information are fused to obtain the target precision information. The target pattern projected onto the target scene by this method only requires that it has anchor points that can be processed by the vision algorithm and has a pattern. It does not need to be an encoded pattern, and it does not need to encode the anchor points of the projected pattern and occupy space, which can improve the resolution of 3D sensing. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a three-dimensional sensing method in one embodiment;

[0054] Figure 2 This is a schematic diagram of the target pattern in one embodiment;

[0055] Figure 3 This is a flowchart illustrating the step of determining second depth information based on a preset triangulation algorithm based on multiple matching, a scene modulation pattern, and first depth information in one embodiment.

[0056] Figure 4 This is a flowchart illustrating the steps for calculating doping depth information in one embodiment;

[0057] Figure 5 This is a schematic diagram illustrating the principle of triangulation.

[0058] Figure 6This is a flowchart illustrating the step of determining the second depth information based on the first depth information and the doping depth information in one embodiment.

[0059] Figure 7 This is a flowchart illustrating the steps of fusing first depth information and second depth information in one embodiment;

[0060] Figure 8 This is a structural block diagram of a three-dimensional sensing system in one embodiment;

[0061] Figure 9 This is a schematic diagram of the structure of a three-dimensional sensing system in another embodiment;

[0062] Figure 10 This is a structural block diagram of a three-dimensional sensing device in one embodiment;

[0063] Figure 11 This is an internal structural diagram of a computer device in one embodiment;

[0064] The reference numerals in the figure represent the following: 50, structured light pattern; 501, a ray in the structured light pattern; 910, first depth sensing unit; 920, transmitting unit; 921, semiconductor laser source; 922, collimating lens; 923, diffractive optical element; 930, receiving unit; 931, image sensor; 932, bandpass filter; 933, imaging lens; 940, control and processing unit. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0066] In one embodiment, such as Figure 1 As shown, a three-dimensional sensing method is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. The server can be implemented using a standalone server or a server cluster consisting of multiple servers. In this embodiment, the method includes the following steps:

[0067] Step 101: Obtain the first depth information of the target scene.

[0068] In this embodiment, the terminal can acquire first depth information of the target scene through a first depth sensing unit. The target scene is the scene whose depth information is to be determined, including the flat panel (i.e., the reference plane) used to calibrate the projection pattern information and the specific scene to which this method is applied (i.e., the object whose depth information is to be determined). The first depth information is the scene depth information measured by the first depth sensing unit. The first depth sensing unit is a depth sensing unit that stably acquires scene depth information with a known accuracy. The first depth sensing unit can be one or more combinations of binocular vision cameras, time-of-flight (ToF) cameras, lidar, multi-dimensional millimeter-wave radar, machine learning-based monocular 3D cameras, monocular multi-channel acquisition 3D cameras (such as those based on polarization imaging), point-scan structured light cameras, line-scan structured light cameras, and general surface structured light cameras.

[0069] Step 102: Obtain the scene modulation pattern obtained after projecting a preset target pattern onto the target scene using a surface structured light projection device.

[0070] The target pattern has anchor points that can be processed by visual algorithms. The surface structured light uses non-uniform illumination.

[0071] In this embodiment, the terminal acquires a scene modulation pattern obtained by projecting a preset target pattern onto the target scene using surface structured light through a second depth sensing unit. Specifically, the second depth sensing unit projects the preset target pattern onto the target scene using surface structured light and receives the scene modulation pattern corresponding to the target scene. Then, the terminal receives the scene modulation pattern sent by the second depth sensing unit.

[0072] The scene modulation pattern is the pattern generated after the target pattern projected onto the target scene is modulated by the target scene. The target pattern is a pattern projected onto the target scene using a surface structured light projection device. It can be an uncoded pattern, meaning the anchor points of the target pattern do not need to have a coded form, or it can be a coded pattern. The coordinates of a specific region of the target pattern after projection and reception can be extracted using algorithms, i.e., it has anchor points that can be processed by visual algorithms. The structured light of the surface structured light can be dense. The target pattern can be one or more combinations of dot matrix, line matrix, grid, square array, triangular array, corner array, binary stripe, and sinusoidal stripe. Preferably, the surface structured light is an uncoded surface structured light with a uniform dot matrix distribution, and the target pattern is a uniform dot matrix, such as... Figure 2 As shown. This makes the generation of structured light or target patterns more convenient and facilitates the anchoring of each light spot using algorithms. The second sensing unit can be a structured light transmitting and receiving unit, which may include a transmitting subunit and a receiving subunit.

[0073] Step 103: Determine the second depth information based on the preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information.

[0074] Among them, the accuracy of the second depth information is greater than the accuracy of the first depth information within the preset target measurement distance range.

[0075] In this embodiment, the accuracy of the second depth information outside the preset target measurement distance interval may be less than the accuracy of the first depth information. The target measurement distance interval is the measurement distance interval where the accuracy of the second depth information is greater than the accuracy of the first depth information. The measurement distance is the distance between the detected point and the depth information measuring device. The detected point is a point on the detected object. The depth information measuring device includes a first depth sensing unit and a second depth sensing unit.

[0076] Step 104: Fuse the first depth information and the second depth information to obtain the target depth information of the target scene.

[0077] In this embodiment of the application, the target depth information includes the target depth value corresponding to each sampling point in the target scene.

[0078] In one example, the terminal uses a point cloud transformation algorithm to fuse the first depth information and the second depth information based on the target measurement distance range to obtain the target depth information of the target scene.

[0079] In one example, the target depth information includes first target depth information and second target depth information. Within the target measurement distance interval, the terminal uses the second depth information within the target measurement distance interval as the first target depth information within the target measurement distance interval. Outside the target measurement distance interval, the terminal uses the first depth information outside the target measurement distance interval as the second target depth information outside the target measurement distance interval.

[0080] In one embodiment, prior to step 101, the method further includes: the terminal calibrating the parameters of the first depth sensing unit and the second depth sensing unit. Specifically, the terminal calibrates the intrinsic and extrinsic parameters of the first depth sensing unit, the intrinsic and extrinsic parameters of the second depth sensing unit, and the target pattern projected by the second depth sensing unit, respectively, to obtain the calibration results of the intrinsic and extrinsic parameters of the first depth sensing unit, the calibration results of the intrinsic and extrinsic parameters of the second depth sensing unit, and the calibration result of the target pattern.

[0081] In the aforementioned 3D sensing method, when measuring the depth information of the target scene, a lower-precision method or acquisition device is used to collect the basic depth information of the target scene, and a higher-precision surface structured light method is used to obtain high-precision depth information. The basic depth information and high-precision depth information are then fused to obtain high-resolution, high-precision target high-precision information. Specifically, a scene modulation pattern is acquired, and based on the basic depth information and the scene modulation pattern, a multi-matching triangulation algorithm is used to determine the high-precision depth information. This method only requires the target pattern projected onto the target scene to have anchor points that can be processed by the vision algorithm and to have a pattern; it does not need to be an coded pattern, nor does it require encoding the anchor points of the projected pattern and occupy space, thus improving the resolution of 3D sensing. Furthermore, while some related surface structured light methods improve resolution by reducing the encoding space, the depth accuracy of the sensing system decreases as the encoding space shrinks; that is, both the resolution and depth accuracy of the structured light projection method are limited. Compared to related structured light methods that have to sacrifice accuracy due to encoding the projection pattern, this method does not require an encoded projection pattern. This solves the problem of resolution and depth accuracy being limited by encoding in structured light projection methods, while simultaneously improving the accuracy of 3D sensing. Furthermore, this method uses an active projection device in conjunction with a corresponding receiving device for detection, ensuring strong robustness of the system and method to various environments such as low light and weak textures. Its projection pattern is more resistant to strong light interference than floodlight projectors, has a higher tolerance for the properties of objects in the target scene, and a longer working distance. In addition, this method uses a first depth sensing unit to stably acquire scene depth information at a certain accuracy, exhibiting a wide range of adaptability and strong compatibility.

[0082] In one embodiment, such as Figure 3 As shown, the specific process of determining the second depth information based on the preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information includes the following steps:

[0083] Step 301: Calculate the doping depth information based on the preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern.

[0084] The doping depth information includes true depth information generated based on true matching and pseudo depth information generated based on false matching.

[0085] In this embodiment, the terminal calculates doping depth information based on a preset triangulation algorithm based on multiple matching, a machine vision algorithm, the calibration results of the target pattern, and the scene modulation pattern.

[0086] Step 302: Determine the second depth information based on the first depth information and the doping depth information.

[0087] In this embodiment, the terminal filters true depth information from the doped depth information based on the first depth information, and determines second depth information based on the true depth information. The second depth information can be the true depth information or a transformed true depth information located in the same coordinate system as the first depth information.

[0088] In one example, the terminal establishes the first depth information and the doping depth information in the same coordinate system to obtain the transformed first depth information and the transformed doping depth information. Then, based on a preset sampling nearest neighbor algorithm, the transformed first depth information, and the transformed doping depth information, the terminal filters the transformed true depth information from the transformed doping depth information. Finally, the terminal uses the transformed true depth information as the second depth information.

[0089] In the aforementioned 3D sensing method, doping depth information is calculated based on a preset triangulation algorithm based on multiple matching and a scene modulation pattern; second depth information is determined based on the first depth information and the doping depth information. Thus, when measuring the second depth information of the target scene, to address the potential for additional mismatches caused by not encoding the projection pattern, the less precise first depth information is used as a reference. The second depth information is then filtered from the doping depth information generated by multiple matching, improving the accuracy of the second depth information. This eliminates the need for the projection pattern to be an encoded pattern, thereby improving the resolution and accuracy of 3D sensing.

[0090] In one embodiment, such as Figure 4 As shown, the specific process of calculating doping depth information based on a preset triangulation algorithm based on multiple matching and a scene modulation pattern includes the following steps:

[0091] Step 401: Calculate the coordinate information of each anchor point in the scene modulation pattern based on the machine vision algorithm and the scene modulation pattern.

[0092] In the embodiments of this application, it is understood that any method that can calculate the coordinate information of each anchor point in the scene modulation pattern based on the machine vision algorithm and the scene modulation pattern can be used in step 401, and this application does not limit it.

[0093] Step 402: Based on the baseline direction of the projection device that projects the preset target pattern, obtain at least one set of matching projection information that forms a matching relationship with each anchor point from the calibration results of the target pattern.

[0094] In this embodiment, the projection device can be a second depth sensing unit. The matching relationship can be the matching relationship between each anchor point (also called the first anchor point for easy distinction) in the calibration result of the target pattern and each anchor point (also called the second anchor point for easy distinction) in the scene modulation pattern. It is understood that any method that can obtain at least one set of matching projection information that forms a matching relationship with each anchor point from the calibration result of the target pattern based on the baseline direction of the projection device that projects a preset target pattern can be used in step 402, and this application does not limit it. When the target pattern is an uncoded pattern, there will be mismatches because the target pattern is uncoded. The terminal obtains at least one set of matching projection information that forms a matching relationship with each anchor point from the calibration result of the target pattern. When the target pattern is a coded pattern, there are no mismatches. The terminal obtains a set of matching projection information that forms a matching relationship with each anchor point from the calibration result of the target pattern.

[0095] Step 403: Calculate the doping depth information based on triangulation, the coordinate information of each anchor point, at least one set of matching projection information, and the calibration results of the projection device.

[0096] In this embodiment, the doping depth information includes multiple matching depth information sets. For each set of matching projection information, the terminal calculates the matching depth information corresponding to that set of matching projection information based on triangulation, the coordinate information of each anchor point, the set of matching projection information, and the calibration results of the projection device. Then, the terminal combines the matching depth information corresponding to each set of matching projection information to form the doping depth information.

[0097] In one embodiment, a schematic diagram of the principle of triangulation is shown below. Figure 5 As shown. The projection device (i.e., light source) of the second depth sensing unit projects a structured light pattern 50 onto the target scene. For one of the light rays 501, it projects onto a reference plane A1. A1 is imaged onto point A2 on the camera sensor via the camera lens of the receiving device of the second depth sensing unit. When an object in the scene blocks the projected light ray, ray 501 projects onto point B1 on the object. B1 is imaged onto point B2 on the camera sensor via the camera lens. The straight line B1B2 intersects the reference plane at point B3. Based on the pixel difference between A1 and B1 in the image captured by the camera... Given the camera sensor pixel size d, the distance between A2 and B2 can be calculated. : Among them, pixel difference The distance between A1 and B3 is calculated based on the matching relationship obtained in step 402. Since the camera sensor plane is parallel to the reference plane, the distance between A1 and B3 can be calculated based on triangle similarity. :

[0098]

[0099] Where f is the focal length of the camera lens, and H is the distance from the optical center C of the camera lens to the reference plane. Since the line connecting the optical center C of the camera lens to the center D of the optical element in the projection device is parallel to the reference plane, the distance Dis of B1 relative to the reference plane can be further calculated based on triangle similarity.

[0100]

[0101] Where L is the distance from the optical center C of the camera lens to the center D of the optical element in the projection device, which is the baseline of the second depth sensing unit. The depth information of point B1 on the object can be obtained based on the depth H of the reference plane and the distance Dis of point B1 relative to the reference plane.

[0102] In the aforementioned 3D sensing method, the coordinate information of each anchor point in the scene modulation pattern is calculated based on machine vision algorithms and the scene modulation pattern. Based on the baseline direction of the projection device projecting the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern. Doping depth information is calculated based on triangulation, the coordinate information of each anchor point, at least one set of matching projection information, and the calibration results of the projection device. Thus, when measuring the second depth information of the target scene, the projection pattern is not encoded. Potentially additional mismatched projection information is used as alternative information. For each alternative information, a triangulation algorithm is used to calculate the depth information, resulting in doping depth information that includes both true and false depth information, avoiding information omissions. This allows the projection pattern to be independent of the encoded pattern, thereby improving the resolution of 3D sensing. Furthermore, the multi-match-based triangulation algorithm proposed in this method solves the problem of decoding or partitioning calculations required by traditional surface structured light algorithms when facing depth detection needs, reducing computation time and computational requirements, and improving the efficiency of 3D sensing.

[0103] In one embodiment, such as Figure 6 As shown, the specific process of determining the second depth information based on the first depth information and the doping depth information includes the following steps:

[0104] Step 601: Based on the calibration results of the first depth information acquisition device, the calibration results of the projection device, and the calibration results of the receiving device for the receiving scene modulation pattern, the first depth information and the doping depth information are established in the same coordinate system to obtain the converted first depth information and the converted doping depth information.

[0105] The converted first depth information includes the converted first depth value corresponding to each first sampling point. The converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point.

[0106] In this embodiment, the terminal establishes the first depth information and the doped depth information in the same coordinate system based on the calibration results of the extrinsic parameters of the first depth information acquisition device, the projection device, and the receiving device for the scene modulation pattern, thus obtaining the converted first depth information and the converted doped depth information. The first sampling point is the sampling point of the target scene from the first depth information acquisition device. The second sampling point is the sampling point of the scene modulation pattern.

[0107] Step 602: For each second sampling point, determine the first sampling point corresponding to the second sampling point, and determine the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point from the converted doping depth values ​​corresponding to the second sampling point, and use it as the second depth value corresponding to the second sampling point.

[0108] In this embodiment, for each second sampling point, the terminal determines the corresponding straight line based on the coordinates of the second sampling point excluding the depth value. For example, the three-dimensional coordinates of the sampling point are (x, y, z), the depth value is z, and the other coordinates are (x, y). Then, the terminal calculates the distance between each first sampling point and the straight line based on the coordinates of each first sampling point excluding the depth value. If the minimum distance between the first sampling point and the straight line is within a preset range, the terminal selects the first sampling point with the shortest distance from the straight line as the first sampling point corresponding to the second sampling point. Then, the terminal selects the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point from the converted doping depth values ​​corresponding to the second sampling point, and selects it as the second depth value corresponding to the second sampling point.

[0109] Step 603: The second depth values ​​corresponding to each second sampling point are used to form the second depth information.

[0110] In the aforementioned 3D sensing method, based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for the received scene modulation pattern, the first depth information and the doping depth information are established in the same coordinate system to obtain the converted first depth information and the converted doping depth information. For each second sampling point, the corresponding first sampling point is determined, and among the converted doping depth values ​​corresponding to the second sampling point, the converted doping depth value closest to the converted first depth value corresponding to the first sampling point is determined as the second depth value corresponding to the second sampling point. The second depth values ​​corresponding to each second sampling point constitute the second depth information. In this way, since the depth error caused by mismatch is related to the anchor point interval, and this error can be designed to be much higher than the error of the first depth information, this method uses the sampling neighbor point screening to obtain high-precision depth information based on true matching, which can improve the accuracy of the second depth information, realize that the projection pattern does not need to be an encoded pattern, and improve the resolution and accuracy of 3D sensing.

[0111] In one embodiment, such as Figure 7 As shown, the target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval. The specific process of fusing the first depth information and the second depth information to obtain the target depth information of the target scene includes the following steps:

[0112] Step 701: Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, determine the target sampling points that are different from the second sampling points corresponding to the second depth information, and use a point cloud transformation algorithm to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval.

[0113] In this embodiment, within the target measurement distance range, the terminal triangulates the second point cloud data corresponding to the second depth information, establishing it as a patch plus point cloud to obtain a point cloud patch. Then, the terminal maps the point cloud patch border and the first point cloud data corresponding to the first depth information onto the image sensor plane coordinate system in the second depth sensing unit. Then, the terminal uses the mapped edges of the point cloud patch border as segmentation edges. Then, the terminal segments the first point cloud data into multiple point cloud regions according to the segmentation edges. The terminal uses the point with the closest Euclidean distance between the first and second point cloud data after mapping as the matching point. Then, for each point cloud region, the terminal calculates the three-dimensional transformation matrix from the first point cloud data to the point cloud patch within that region based on the matching point. Then, the terminal performs a three-dimensional coordinate transformation on the first point cloud data within that region based on the three-dimensional transformation matrix, and superimposes it with the second point cloud data to obtain a point cloud fusion result. Finally, the terminal obtains the first target depth information within the target measurement distance range from the point cloud fusion result.

[0114] Step 702: Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

[0115] In the aforementioned 3D sensing method, within the target measurement distance interval, a target sampling point different from the second sampling point corresponding to the second depth information is determined among the first sampling points corresponding to the first depth information. A point cloud transformation algorithm is then used to fuse the first depth information corresponding to the target sampling point with the second depth information, based on the second depth information, to obtain the first target depth information within the target measurement distance interval. Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval. Thus, only within the target measurement distance interval where the accuracy of the second depth information is higher than that of the first depth information, the point cloud transformation method is used to fuse the lower-precision first depth information with the higher-precision second depth information. Outside the target measurement distance interval, only the lower-precision but higher-resolution first depth information is retained, simultaneously improving both the accuracy and resolution of the depth information. Since 3D sensing based on surface structured light can greatly improve depth detection accuracy by adjusting system parameters under single-frame shooting conditions, and uncoded surface structured light can form images with much higher resolution in space than general structured light, this method, a 3D sensing system based on uncoded surface structured light, can significantly improve both depth detection accuracy and resolution simultaneously compared to traditional systems.

[0116] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0117] Based on the same inventive concept, this application also provides a three-dimensional sensing system for implementing the three-dimensional sensing method described above. The solution provided by this system is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more three-dimensional sensing system embodiments provided below can be found in the limitations of the three-dimensional sensing method described above, and will not be repeated here.

[0118] In one exemplary embodiment, such as Figure 8 As shown, a three-dimensional sensing system 800 is provided, the system comprising:

[0119] The first depth sensing unit 810 is used to collect the first depth information of the target scene;

[0120] The second depth sensing unit 820 is used to project a preset target pattern onto the target scene using surface structured light, and to receive the scene modulation pattern corresponding to the target scene; the target pattern has anchor points that can be processed by visual algorithms; the surface structured light is non-uniformly illuminated;

[0121] The control and processing unit 830 is used to determine the second depth information based on a preset triangulation algorithm based on multiple matching, a scene modulation pattern and the first depth information; the accuracy of the second depth information is greater than the accuracy of the first depth information within a preset target measurement distance range; and the first depth information and the second depth information are fused to obtain the target depth information of the target scene.

[0122] In this embodiment, the second depth sensing unit may include a transmitting subunit and a receiving subunit. The transmitting subunit is used to project a preset target pattern onto the target scene using surface structured light, and the receiving subunit is used to receive a scene modulation pattern corresponding to the target scene. The first depth sensing unit is also used to send first depth information of the target scene to the control and processing unit. The second depth sensing unit is also used to send the scene modulation pattern corresponding to the target scene to the control and processing unit. The control and processing unit is also used to control the first depth sensing unit to collect the first depth information of the target scene, control the second depth sensing unit to project the preset target pattern onto the target scene using surface structured light, and receive the scene modulation pattern corresponding to the target scene. The control and processing unit is also used to store the intrinsic parameter calibration results and extrinsic parameter calibration results of the first depth sensing unit, the target pattern, and the anchor point coordinate information of the projected pattern at different depths.

[0123] The emitting subunit includes: a light source for emitting light; and a modulation device for modulating the emitted light into a target pattern. The light source can be a laser, an LED, a laser array, or an LED array. The laser can be a gas laser, a solid-state laser, or a semiconductor laser, etc. The modulation device structure includes one or more combinations of diffusers, corrugated sheets, galvanometers, diffractive optical elements, diffraction gratings, metasurfaces, microlens arrays, refractive-diffractive hybrid elements, lenses, and lens groups.

[0124] The receiving subunit includes: a camera for acquiring scene modulation patterns; and a filter whose wavelength matches the wavelength emitted by the light source in the transmitting subunit, used to extract the emitted signal from the transmitting subunit in the target scene and filter out ambient light in the target scene. It is understood that various types of cameras used for acquiring scene image information can be used in this invention. The basic camera structure can be an imaging lens and an image sensor, and the selection of camera parameters tends to favor wide-angle, high resolution, small pixel units, and high frame rate.

[0125] The selection of parameters, including the baseline between the transmitting and receiving subunits, the target pattern resolution, the focal length of the receiving subunit, and the pixel size of the receiving subunit, needs to be calculated and designed based on the accuracy of the triangulation principle. The depth accuracy of the designed second depth sensing unit is higher than that of the first depth sensing unit in all or part of the working range. The working range is the measurement distance range.

[0126] In one embodiment, such as Figure 9As shown, a three-dimensional sensing system 900 is provided, comprising: a first depth sensing unit 910, a transmitting unit 920, a receiving unit 930, and a control and processing unit 940. The transmitting unit 920 includes: a semiconductor laser source 921, a collimating lens 922, and a diffractive optical element 923. The wavelength of the laser source 921 can be selected within the infrared band, such as 850nm or 940nm, which falls within the atmospheric absorption window. The collimating lens 922 is used to collimate the emitted light from the laser source into a parallel beam. The diffractive optical element 923 is used to modulate the phase of the incident light, thereby generating a special projection pattern, or to arrange and replicate laser sources arranged in a certain pattern, so that the pattern is repeatedly distributed in space over a larger area. The receiving unit 930 includes: an image sensor 931, a bandpass filter 932, and an imaging lens 933. The filter 932, by matching its wavelength to the laser light source wavelength, filters out stray light of other wavelengths in the environment, resulting in a higher proportion of projected signal intensity in the signal acquired by the receiving unit, which facilitates subsequent image processing and decoding. The imaging lens 933 and the image sensor 931 form a basic imaging unit, which acquires the projected pattern projected onto the scene and modulated by scene depth. In terms of parameter selection, it tends to choose wide-angle, high-resolution, small pixel units, and high frame rate, so as to acquire scene images with better results.

[0127] Based on the same inventive concept, this application also provides a three-dimensional sensing device for implementing the three-dimensional sensing method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the three-dimensional sensing device provided below can be found in the limitations of the three-dimensional sensing method described above, and will not be repeated here.

[0128] In one exemplary embodiment, such as Figure 10 As shown, a three-dimensional sensing device 1000 is provided, including: a first acquisition module 1010, a second acquisition module 1020, a determination module 1030, and a fusion module 1040, wherein:

[0129] The first acquisition module 1010 is used to acquire the first depth information of the target scene;

[0130] The second acquisition module 1020 is used to acquire a scene modulation pattern obtained after a preset target pattern is projected onto the target scene through a surface structured light projection device; the target pattern has anchor points that can be processed by a visual algorithm; the surface structured light is non-uniform illumination.

[0131] The determining module 1030 is used to determine the second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information.

[0132] The fusion module 1040 is used to fuse the first depth information and the second depth information to obtain the target depth information of the target scene.

[0133] Optionally, the determining module 1030 is specifically used for:

[0134] Based on a preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern, the doping depth information is calculated; the doping depth information includes real depth information generated based on true matching and pseudo depth information generated based on false matching.

[0135] The second depth information is determined based on the first depth information and the doping depth information.

[0136] Optionally, the determining module 1030 is specifically used for:

[0137] Based on the machine vision algorithm and the scene modulation pattern, the coordinate information of each anchor point in the scene modulation pattern is calculated;

[0138] Based on the baseline direction of the projection device of the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern.

[0139] The doping depth information is calculated based on the triangulation method, the coordinate information of each anchor point, the at least one set of matching projection information, and the calibration results of the projection device.

[0140] Optionally, the determining module 1030 is specifically used for:

[0141] Based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, the first depth information and the doping depth information are established in the same coordinate system to obtain the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point.

[0142] For each second sampling point, a first sampling point corresponding to the second sampling point is determined, and among the converted doping depth values ​​corresponding to the second sampling point, the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point is determined as the second depth value corresponding to the second sampling point.

[0143] The second depth information is formed by taking the second depth value corresponding to each of the second sampling points.

[0144] Optionally, the target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval. The fusion module 1040 is specifically used for:

[0145] Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, target sampling points that are different from the second sampling points corresponding to the second depth information are determined. Then, a point cloud transformation algorithm is used to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval.

[0146] Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

[0147] Each module in the aforementioned three-dimensional sensing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0148] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a three-dimensional sensing method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0149] Those skilled in the art will understand that Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0150] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0151] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0152] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0154] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0155] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0156] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A three-dimensional sensing method, characterized by, The method includes: Obtain the first depth information of the target scene; A scene modulation pattern is obtained by projecting a preset target pattern onto the target scene using a surface structured light projection device; the target pattern has anchor points that can be processed by visual algorithms; the surface structured light is non-uniform illumination. Based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information, the second depth information is determined; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information. The first depth information and the second depth information are fused to obtain the target depth information of the target scene. The step of determining the second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information includes: calculating doping depth information based on the preset triangulation algorithm based on multiple matching and the scene modulation pattern; the doping depth information includes real depth information generated based on true matching and pseudo depth information generated based on false matching; and determining the second depth information based on the first depth information and the doping depth information. The step of determining the second depth information based on the first depth information and the doping depth information includes: establishing the first depth information and the doping depth information in the same coordinate system based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, to obtain the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point; for each second sampling point, determining the first sampling point corresponding to the second sampling point, and determining the converted doping depth value closest to the converted first depth value corresponding to the first sampling point among the converted doping depth values ​​corresponding to the second sampling point, as the second depth value corresponding to the second sampling point; and constructing the second depth information from the second depth values ​​corresponding to each second sampling point.

2. The method of claim 1, wherein, The step of calculating the doping depth information based on a preset triangulation algorithm based on multiple matching and the scene modulation pattern includes: Based on the machine vision algorithm and the scene modulation pattern, the coordinate information of each anchor point in the scene modulation pattern is calculated; Based on the baseline direction of the projection device of the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern. The doping depth information is calculated based on the triangulation method, the coordinate information of each anchor point, the at least one set of matching projection information, and the calibration results of the projection device.

3. The method according to claim 1, characterized in that, The target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval. The step of fusing the first depth information and the second depth information to obtain the target depth information of the target scene includes: Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, target sampling points that are different from the second sampling points corresponding to the second depth information are determined. Then, a point cloud transformation algorithm is used to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval. Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

4. A three-dimensional sensing system, characterized in that, The system includes: The first depth sensing unit is used to collect the first depth information of the target scene; The second depth sensing unit is used to project a preset target pattern onto the target scene through a surface structured light projection device, and to receive a scene modulation pattern corresponding to the target scene; the target pattern has anchor points that can be processed by visual algorithms; the surface structured light is non-uniformly illuminated; The control and processing unit is configured to determine second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information; and fuse the first depth information and the second depth information to obtain the target depth information of the target scene. The control and processing unit is further configured to calculate doping depth information based on a preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern; the doping depth information includes real depth information generated based on real matching and pseudo depth information generated based on mismatch; and determine the second depth information based on the first depth information and the doping depth information. The control and processing unit is further configured to establish the first depth information and the doping depth information in the same coordinate system based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, thereby obtaining the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point; for each second sampling point, a first sampling point corresponding to the second sampling point is determined, and among the converted doping depth values ​​corresponding to the second sampling point, the converted doping depth value closest to the converted first depth value corresponding to the first sampling point is determined as the second depth value corresponding to the second sampling point; the second depth values ​​corresponding to each second sampling point constitute the second depth information.

5. A three-dimensional sensing device, characterized in that, The device includes: The first acquisition module is used to acquire the first depth information of the target scene; The second acquisition module is used to acquire a scene modulation pattern obtained after a preset target pattern is projected onto the target scene through a surface structured light projection device; the target pattern has anchor points that can be processed by a visual algorithm; the surface structured light is non-uniform illumination. The determining module is used to determine the second depth information based on a preset triangulation algorithm based on multiple matching, the scene modulation pattern, and the first depth information; within a preset target measurement distance range, the accuracy of the second depth information is greater than the accuracy of the first depth information. A fusion module is used to fuse the first depth information and the second depth information to obtain the target depth information of the target scene; The determining module is specifically used to: calculate doping depth information according to a preset triangulation measurement algorithm based on multiple matching and the scene modulation pattern; the doping depth information includes real depth information generated based on real matching and pseudo depth information generated based on mismatch; and determine the second depth information according to the first depth information and the doping depth information. The determining module is specifically configured to: establish the first depth information and the doping depth information in the same coordinate system based on the calibration results of the acquisition device for the first depth information, the calibration results of the projection device, and the calibration results of the receiving device for receiving the scene modulation pattern, to obtain the converted first depth information and the converted doping depth information; the converted first depth information includes the converted first depth value corresponding to each first sampling point; the converted doping depth information includes multiple converted doping depth values ​​corresponding to each second sampling point; for each second sampling point, determine the first sampling point corresponding to the second sampling point, and among the converted doping depth values ​​corresponding to the second sampling point, determine the converted doping depth value that is closest to the converted first depth value corresponding to the first sampling point, and use it as the second depth value corresponding to the second sampling point; and construct the second depth information using the second depth values ​​corresponding to each second sampling point.

6. The apparatus according to claim 5, characterized in that, The determining module is specifically used for: Based on the machine vision algorithm and the scene modulation pattern, the coordinate information of each anchor point in the scene modulation pattern is calculated; Based on the baseline direction of the projection device of the preset target pattern, at least one set of matching projection information that forms a matching relationship with each anchor point is obtained from the calibration results of the target pattern. The doping depth information is calculated based on the triangulation method, the coordinate information of each anchor point, the at least one set of matching projection information, and the calibration results of the projection device.

7. The apparatus according to claim 5, characterized in that, The target depth information includes first target depth information within the target measurement distance interval and second target depth information outside the target measurement distance interval. The fusion module is specifically used for: Within the target measurement distance interval, among the first sampling points corresponding to the first depth information, target sampling points that are different from the second sampling points corresponding to the second depth information are determined. Then, a point cloud transformation algorithm is used to fuse the first depth information corresponding to the target sampling points with the second depth information based on the second depth information to obtain the first target depth information within the target measurement distance interval. Outside the target measurement distance interval, the first depth information outside the target measurement distance interval is used as the second target depth information outside the target measurement distance interval.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Dual-energy focus stack three-dimensional reconstruction method for realizing element space positioning

    CN110389140A

  • Efficient scene depth information acquisition method and system

    CN110657785A