Image reconstruction method, system, device and medium based on sparse and dense depth maps

By acquiring and fusing depth images with different pixel densities in a TOF depth camera, and using infrared images to determine confidence and fusion coefficients, the problem of insufficient accuracy of traditional TOF depth cameras is solved, and depth images with higher precision and finer edges are generated. .

CN112446842BActive Publication Date: 2024-09-06SHENZHEN GUANGJIAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN201910799288.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-28
Publication Date
2024-09-06
Estimated Expiration
2039-08-28

AI Technical Summary

Technical Problem

Traditional TOF depth cameras have problems with poor accuracy and missing depth information when acquiring depth maps. Especially in two depth images with different pixel densities, it is difficult to generate accurate edge information.

Method used

By acquiring the first depth image and the second depth image of the target object, and determining the confidence and fusion coefficient of each pixel based on the infrared image, pixels with high confidence and high fusion coefficient are screened out for fusion to generate a target depth image.

Benefits of technology

It improves the accuracy and edge fineness of the depth map, removes pixel information with poor accuracy and weak influence, improves the robustness of the model, and is suitable for 3D cameras with flood light projection and lattice light projection, achieving It achieves high-precision depth information acquisition with low energy consumption and low cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446842B
    Figure CN112446842B
Patent Text Reader

Abstract

The present invention provides an image reconstruction method, system, device and medium based on sparse and dense depth maps, including determining a first confidence level for the depth information of each pixel in the first depth image based on the first infrared image, and determining a second confidence level for the depth information of each pixel in the second depth image based on the second infrared image; extracting the depth information of the edge contour area of ​​the target object in the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located; fusing the pixels selected in the first depth image based on the first confidence level, the first fusion coefficient and the second fusion coefficient and the pixels selected in the second depth image based on the second confidence level to generate a target depth image. The present invention selects multiple pixels in two depth images to generate a target depth image, and obtains a depth map with higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The device that uses TOF technology to form images is called a TOF camera (or TOF camera). The TOF camera is similar to the ordinary machine vision imaging process, and is composed of several units such as light source, optical components, sensor (TOF chip), control circuit and processing circuit. The TOF technology is basically similar to the principle of 3D laser sensor, except that 3D laser sensor scans point by point, while TOF camera obtains the depth information of the entire image at the same time.

[0003] TOF technology has a wide range of application scenarios, and is used in many fields such as automobiles, industry, face recognition, logistics, comfort monitoring, health, games, entertainment, movie special effects, 3D printing, and robots. In the automotive field, TOF sensors can be used for autonomous driving. Through TOF technology, the driving environment is perceived to obtain environmental information to increase safety. In addition, TOF can also be used for passenger departure detection in the car. In the industrial field, TOF sensors can be used as HMI (Human Machine Interface). In highly automated factories, workers and robots need to work together at a very close distance. TOF devices can be used to control the safe distance in various situations. In the face recognition system, the brightness image and depth information of the TOF camera can be connected through the model to quickly and accurately complete face matching and detection.

[0004] However, traditional TOF depth cameras transmit surface light source signals, receive the returned light signals at the sensor end, and then calculate the distance of the target to obtain the depth map of the target. However, due to signal energy constraints, imaging characteristics and limitations, the depth map obtained has problems such as poor accuracy and missing depth information. Summary of the invention

[0005] In view of the defects in the prior art, an object of the present invention is to provide an image reconstruction method, system, device and medium based on sparse and dense depth maps.

[0006] The image reconstruction method based on sparse and dense depth maps provided by the present invention comprises the following steps:

[0007] Step S1: acquiring a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein the pixel density of the first depth image is greater than the pixel density of the second depth image;

[0008] Step S2: determining a first confidence level for depth information of each pixel in the first depth image based on the first infrared image, and determining a second confidence level for depth information of each pixel in the second depth image based on the second infrared image;

[0009] Step S3: extracting the depth information of the edge contour area of ​​the target object from the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located;

[0010] Step S4: generating a target depth image by fusing pixel points selected from the first depth image based on the first confidence level, the first fusion coefficient, and the second fusion coefficient and pixel points selected from the second depth image based on the second confidence level.

[0011] Preferably, the method further comprises the following steps:

[0012] Step S5: Acquire the target depth image, and perform depth reconstruction on the target object according to the target depth image.

[0013] Preferably, the first depth image is a depth image generated by performing flood light projection onto the target object, and the second depth image is a depth image generated by performing dot light projection onto the target object;

[0014] The first infrared image is an infrared image generated by performing flood light projection onto the target object, and the second infrared image is an infrared image generated by performing dot light projection onto the target object.

[0015] Preferably, step S2 comprises the following steps:

[0016] Step S201: acquiring the amplitude of each area in the first infrared image and the second infrared image;

[0017] Step S202: comparing the first infrared image with the first depth image to determine the amplitude corresponding to each pixel in the first depth image, and comparing the second infrared image with the second depth image to determine the amplitude corresponding to each pixel in the second depth image;

[0018] Step S203: Determine a first confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the first depth image, and determine a second confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the second depth image.

[0019] Preferably, step S3 comprises the following steps:

[0020] Step S301: extracting the area where the target object is located and the edge contour area of ​​the scene area where the target object is located in the first depth image;

[0021] Step S302: determining the area where the target object is located and the scene area in the first depth image according to the edge contour area;

[0022] Step S303: determining a first fusion coefficient based on the depth information of the edge contour area, and determining a second fusion coefficient based on the depth information of the area where the target object is located and the scene area.

[0023] Preferably, step S4 comprises the following steps:

[0024] Step S401: generating a first screening coefficient according to the first confidence level and the first fusion coefficient, and generating a second screening coefficient according to the first confidence level and the second fusion coefficient;

[0025] Step S402: selecting a plurality of pixel points in the edge contour area of ​​the target object and the scene area in the first depth image according to the first filtering coefficient, and selecting a plurality of pixel points in the area where the target object is located and the scene area in the first depth image according to the second filtering coefficient;

[0026] Step S403: generating a third screening coefficient according to the second confidence level, and selecting a plurality of pixel points in the second depth image according to the third screening coefficient;

[0027] Step S404: generating the target depth image by fusing a plurality of pixels selected from the first depth image and a plurality of pixels selected from the second depth image.

[0028] Preferably, in step S301, an edge detection algorithm is used to determine the area where the target object is located and the edge contour area of ​​the scene area where the target object is located in the first depth image.

[0029] The image reconstruction system based on sparse and dense depth maps provided by the present invention is used to implement the image reconstruction method based on sparse and dense depth maps, including:

[0030] An image acquisition module, configured to acquire a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein a pixel density of the first depth image is greater than a pixel density of the second depth image;

[0031] a confidence determination module, configured to determine a first confidence for depth information of each pixel in the first depth image based on the first infrared image, and to determine a second confidence for depth information of each pixel in the second depth image based on the second infrared image;

[0032] A fusion coefficient generating module, used for extracting the depth information of the edge contour area of ​​the target object in the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located;

[0033] An image fusion module is used to fuse the pixel points screened out in the first depth image based on the first confidence level, the first fusion coefficient and the second fusion coefficient and the pixel points screened out in the second depth image based on the second confidence level to generate a target depth image.

[0034] An image reconstruction device based on sparse and dense depth maps provided by the present invention includes:

[0035] processor;

[0036] a memory storing executable instructions of the processor;

[0037] The processor is configured to perform the steps of the image reconstruction method based on sparse and dense depth maps by executing the executable instructions.

[0038] The computer-readable storage medium provided by the present invention is used to store a program, and when the program is executed, the steps of the image reconstruction method based on sparse and dense depth maps are implemented.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] 1. The present invention selects a plurality of pixels from two depth images with different pixel density by using a first confidence level, a second confidence level, a first fusion coefficient, and a second fusion coefficient, and then generates a target depth image, thereby obtaining a depth map with higher accuracy and finer edges;

[0041] 2. In the present invention, the confidence level is determined by comparing the infrared image and the depth image, and different fusion coefficients are set for the edge contour area and the area where the target object is located in the first depth image with a higher pixel density, so that the depth information of the pixels with poor accuracy and weak influence in the depth image can be removed, thereby improving the robustness of the model;

[0042] 3. The present invention can be applied to a 3D camera with flood light projection and dot light projection. The 3D camera can improve the projection distance and depth information accuracy under low energy consumption and low cost conditions. The present invention can fuse the first depth image based on flood light projection and the second depth image based on dot light projection obtained by the 3D camera through the TOF depth sensor to generate a depth map with higher accuracy and finer edges. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings in the following descriptions are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present invention will become more obvious:

[0044] Figure 1 A flowchart of the steps of an image reconstruction method based on sparse and dense depth maps in an embodiment of the present invention;

[0045] Figure 2 is a flowchart of the steps of an image reconstruction method based on sparse and dense depth maps in a modified example of the present invention;

[0046] Figure 3 A schematic diagram of a 3D camera projecting dot matrix light onto a target in an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of a 3D camera projecting flood light onto a target in an embodiment of the present invention;

[0048] Figure 5 is a flow chart of the steps of generating confidence based on infrared images in an embodiment of the present invention;

[0049] Figure 6 A flowchart of the steps of determining different fusion coefficients for different areas in a depth image in an embodiment of the present invention;

[0050] Figure 7 A flowchart of the steps of fusing the first depth image and the second depth image to generate a target depth image in an embodiment of the present invention;

[0051] Figure 8 It is a module schematic diagram of an image reconstruction system based on sparse and dense depth maps in an embodiment of the present invention;

[0052] Fig. 9 is a schematic structural diagram of an image reconstruction device based on sparse and dense depth maps in an embodiment of the present invention; and

[0053] Fig.10 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention.

[0054] In the figure:

[0055] 1 is a dot matrix projection module;

[0056] 2 is the spatial distribution of the dot light;

[0057] 3 is a floodlight projection module;

[0058] 4 is the spatial distribution of floodlight. DETAILED DESCRIPTION

[0059] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0060] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0061] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0062] The image reconstruction method based on sparse and dense depth maps provided by the present invention is intended to solve the problems existing in the prior art.

[0063] The following specific embodiments are used to describe in detail the technical solution of the present invention and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0064] The image reconstruction method based on sparse and dense depth maps provided by the embodiment of the present invention can be applicable to a 3D camera with flood projection and dot light projection. The 3D camera can improve the projection distance and depth information accuracy under low energy consumption and low cost conditions. The present invention can fuse the depth image based on flood projection and the depth image based on dot light projection obtained by the 3D camera through the TOF depth sensor to generate a depth map with higher accuracy and finer edges.

[0065] Figure 1 FIG. 1 is a flowchart of the steps of an image reconstruction method based on sparse and dense depth maps in an embodiment of the present invention. Figure 1 As shown, the image reconstruction method based on sparse and dense depth maps provided by the present invention comprises the following steps:

[0066] Step S1: acquiring a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein a pixel density of the first depth image is greater than a pixel density of the second depth image.

[0067] In practical applications, the execution subject of the embodiment of the present invention can be a computer, a central processing unit, a microcontroller MCU, a single chip microcomputer, a microprocessor, etc., which have data processing capabilities. In this embodiment, a central processing unit is used as an example for detailed description, but the specific device type for executing the method in this embodiment is not limited.

[0068] In an embodiment of the present invention, the first depth image corresponds to the first infrared image, that is, the first depth image and the first infrared image are collected under the same type of light; the second depth image corresponds to the second infrared image, that is, the second depth image and the second infrared image are collected under the same type of light.

[0069] Step S2: determining a first confidence level for depth information of each pixel in the first depth image based on the first infrared image, and determining a second confidence level for depth information of each pixel in the second depth image based on the second infrared image.

[0070] In the embodiment of the present invention, a first confidence level is determined for the depth information of each pixel in the first depth image based on the amplitude of each area in the first infrared image. When the amplitude of an area in the first infrared image is high, a higher confidence level is assigned to the pixels in the same area corresponding to the first depth image. When the amplitude of an area in the first infrared image is low, a lower confidence level is assigned to the pixels in the same area corresponding to the first depth image. Similarly, for the second depth image, when the amplitude of an area in the second infrared image is high, a higher confidence level is assigned to the pixels in the same area corresponding to the second depth image. When the amplitude of an area in the second infrared image is low, a lower confidence level is assigned to the pixels in the same area corresponding to the second depth image.

[0071] More specifically, when the amplitude of an area in the first infrared image is 300, the confidence level of 3 is assigned to the pixels in the same area corresponding to the first depth image; when the amplitude of an area in the first infrared image is 100, the confidence level of 1 is assigned to the pixels in the same area corresponding to the first depth image.

[0072] In a variation of the present invention, the amplitude of an area in the infrared image can also be expressed by temperature. When the amplitude of an area in the first infrared image is 30°C, the pixel points in the same area corresponding to the first depth image are assigned a confidence level of 3; when the amplitude of an area in the first infrared image is 10°C, the pixel points in the same area corresponding to the first depth image are assigned a confidence level of 1.

[0073] Step S3: extracting the depth information of the edge contour area of ​​the target object from the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located.

[0074] In an embodiment of the present invention, the first fusion coefficient is greater than the second fusion coefficient. For example, the first fusion coefficient can be set to 0.8, thereby selecting more pixel points for the edge contour area, and the second fusion coefficient is 0.2, thereby selecting smaller pixel points for the area where the target object is located, thereby making the edge of the generated target depth map more refined.

[0075] Step S4: generating a target depth image by fusing pixel points selected from the first depth image based on the first confidence level, the first fusion coefficient, and the second fusion coefficient and pixel points selected from the second depth image based on the second confidence level.

[0076] In an embodiment of the present invention, pixels with higher precision are respectively screened out in different areas of the first depth image according to the first confidence level, the first fusion coefficient, and the second fusion coefficient, and pixels with higher precision are respectively screened out in different areas of the second depth image according to the second confidence level, thereby excluding depth information of pixels with poor precision and weak influence in the depth map.

[0077] In an embodiment of the present invention, the present invention respectively selects multiple pixels from two depth images with different pixel density by using a first confidence level, a second confidence level, a first fusion coefficient and a second fusion coefficient, and then generates a target depth image, thereby obtaining a depth map with higher accuracy and finer edges.

[0078] Figure 2 is a flowchart of the steps of an image reconstruction method based on sparse and dense depth maps in a modified example of the present invention, such as Figure 2 As shown, the image reconstruction method based on sparse and dense depth maps provided by the present invention also includes the following steps:

[0079] Step S5: Acquire the target depth image, and perform depth reconstruction on the target object according to the target depth image.

[0080] In a variation of the present invention, the depth of the target object can be reconstructed by filtering interpolation and other algorithms, by a Markov Random Field model (MRF), or by a compressed sensing algorithm (CS).

[0081] In a variation of the present invention, multiple pixel points selected from the multiple depth images are fused to generate a target depth image. Specifically, the confidence levels of the pixel points at each corresponding position of the multiple depth images are compared, and the depth value corresponding to the maximum confidence level is selected. That is, the confidence levels of the multiple pixel points selected from each depth image are compared according to the positions of the light detector matrix, and the depth value corresponding to the maximum confidence level is selected for fusion.

[0082] Figure 3 A schematic diagram of a 3D camera projecting dot matrix light onto a target in an embodiment of the present invention; Figure 4 FIG. 3 is a schematic diagram of a 3D camera projecting floodlight to a target in an embodiment of the present invention. Figure 3 , Figure 4 As shown, the first depth image is a depth image generated by performing flood light projection to the target object, and the second depth image is a depth image generated by performing dot light projection to the target object;

[0083] The first infrared image is an infrared image generated by performing flood light projection onto the target object, and the second infrared image is an infrared image generated by performing dot light projection onto the target object.

[0084] In an embodiment of the present invention, the 3D camera projects dot matrix light and flood light to the target by switching alternately between frames. The 3D camera obtains the first depth image and the second depth image through a TOF depth sensor. The number of beams of the dot matrix light is between a few and tens of thousands, and preferably, the number of beams of the dot matrix light is between one thousand and 100,000.

[0085] Figure 5 FIG. 1 is a flow chart of the steps of generating confidence based on infrared images in an embodiment of the present invention. Figure 5 As shown, step S2 includes the following steps:

[0086] Step S201: acquiring the amplitude of each area in the first infrared image and the second infrared image;

[0087] Step S202: comparing the first infrared image with the first depth image to determine the amplitude corresponding to each pixel in the first depth image, and comparing the second infrared image with the second depth image to determine the amplitude corresponding to each pixel in the second depth image;

[0088] Step S203: Determine a first confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the first depth image, and determine a second confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the second depth image.

[0089] In the embodiment of the present invention, since the infrared image senses and reflects the difference in outward amplitude between the target and the background, the amplitude of each area in the first infrared image and the second infrared image can be determined;

[0090] Since the first depth image and the first infrared image are images of the same target object, each pixel on the first depth image corresponds to an area of ​​the first infrared image, so that the amplitude corresponding to each pixel on the first depth image can be determined. Similarly, for the second depth image, the amplitude corresponding to each pixel can also be determined.

[0091] In a variation of the present invention, the first confidence level may be determined by comprehensively considering the value of the depth information of each pixel.

[0092] Figure 6 FIG. 1 is a flowchart of the steps of determining different fusion coefficients for different regions in a depth image in an embodiment of the present invention. Figure 6 As shown, step S3 includes the following steps:

[0093] Step S301: extracting depth information of the area where the target object is located and the edge contour area of ​​the scene area where the target object is located in the first depth image;

[0094] Step S302: Acquire depth information of the area where the target object is located and the scene area in the first depth image;

[0095] Step S303: determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located and the scene area.

[0096] In the embodiment of the present invention, in step S301, the area where the target object is located and the edge contour area of ​​the scene area where the target object is located are determined in the first depth image by using the CANNY edge detection algorithm.

[0097] Figure 7FIG. 1 is a flowchart of steps for fusing the first depth image and the second depth image to generate a target depth image in an embodiment of the present invention. Figure 7 As shown, step S4 includes the following steps:

[0098] Step S401: generating a first screening coefficient according to the first confidence level and the first fusion coefficient, and generating a second screening coefficient according to the first confidence level and the second fusion coefficient;

[0099] Step S402: selecting a plurality of pixel points in the edge contour area of ​​the target object and the scene area in the first depth image according to the first filtering coefficient, and selecting a plurality of pixel points in the area where the target object is located and the scene area in the first depth image according to the second filtering coefficient;

[0100] Step S403: generating a third screening coefficient according to the second confidence level, and selecting a plurality of pixel points in the second depth image according to the third screening coefficient;

[0101] Step S404: generating the target depth image by fusing a plurality of pixels selected from the first depth image and a plurality of pixels selected from the second depth image.

[0102] In the embodiment of the present invention, the first filtering coefficient, the second filtering coefficient and the third filtering coefficient are all greater than 0 and less than 1; for example, when the first confidence of a region of the first depth image is 3, the first fusion coefficient is 0.7, when the first confidence of a region of the first depth image is 1, the first fusion coefficient is 0.2, and the confidence value range is [0,5], then the first filtering coefficient can be The second screening coefficient can be taken as When the second confidence level is 4, the third screening coefficient is

[0103] In a variation of the present invention, a coefficient may be added to the first screening coefficient, the second screening coefficient and the third screening coefficient, such as adding 0.2 to each of them, and then screening may be performed. A coefficient may be added to the first screening coefficient and the second screening coefficient, and another coefficient may be added to the third screening coefficient, such as adding 0.2 to each of the first screening coefficient and the second screening coefficient, and adding 0.1 to the first screening coefficient.

[0104] Figure 8 FIG. 1 is a schematic diagram of a module of an image reconstruction system based on sparse and dense depth maps in an embodiment of the present invention. Figure 8 As shown, the image reconstruction system 100 based on sparse and dense depth maps provided by the present invention is used to implement the image reconstruction method based on sparse and dense depth maps, including:

[0105] An image acquisition module 101 is used to acquire a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein the pixel density of the first depth image is greater than the pixel density of the second depth image;

[0106] A confidence determination module 102, configured to determine a first confidence for depth information of each pixel in the first depth image based on the first infrared image, and to determine a second confidence for depth information of each pixel in the second depth image based on the second infrared image;

[0107] A fusion coefficient generating module 103 is used to extract the depth information of the edge contour area of ​​the target object in the first depth image, determine a first fusion coefficient for the depth information of the edge contour area, and determine a second fusion coefficient for the depth information of the area where the target object is located;

[0108] The image fusion module 104 is used to fuse the pixel points selected in the first depth image based on the first confidence, the first fusion coefficient and the second fusion coefficient and the pixel points selected in the second depth image based on the second confidence to generate a target depth image.

[0109] An embodiment of the present invention further provides an image reconstruction device based on sparse and dense depth maps, comprising a processor and a memory in which executable instructions of the processor are stored. The processor is configured to execute the steps of the image reconstruction method based on sparse and dense depth maps by executing the executable instructions.

[0110] As described above, in this embodiment, multiple pixels can be screened out from two depth images with different pixel density using the first confidence level, the second confidence level, the first fusion coefficient and the second fusion coefficient, thereby generating a target depth image, and a depth map with higher accuracy and finer edges can be obtained.

[0111] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".

[0112] Fig. 9 Schematic diagram of the structure of an image reconstruction device based on sparse and dense depth maps in an embodiment of the present invention. Fig. 9 The electronic device 600 according to this embodiment of the present invention is described. Fig. 9The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0113] like Fig. 9 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0114] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps of various exemplary embodiments of the present invention described in the image reconstruction method based on sparse and dense depth maps in the above description of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 Follow the steps shown in .

[0115] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0116] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0117] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0118] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through the bus 630. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0119] In an embodiment of the present invention, a computer-readable storage medium is also provided for storing a program, and the steps of the image reconstruction method based on sparse and dense depth maps are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned image reconstruction method based on sparse and dense depth maps of this specification.

[0120] As shown above, when the program of the computer-readable storage medium of this embodiment is executed, the present invention can respectively filter out multiple pixels in two depth images with different pixel density through the first confidence, the second confidence, the first fusion coefficient and the second fusion coefficient, and then generate a target depth image, so as to obtain a depth map with higher accuracy and finer edges.

[0121] Fig.10 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Fig.10 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0122] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0123] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0124] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0125] In this embodiment, the present invention selects multiple pixels from two depth images with different pixel density by using the first confidence, the second confidence, the first fusion coefficient and the second fusion coefficient, and then generates a target depth image, so as to obtain a depth map with higher accuracy and finer edges. In the present invention, the confidence is determined by comparing the infrared image and the depth image, and different fusion coefficients are set for the edge contour area and the area where the target object is located in the first depth image with higher pixel density, so as to remove the depth information of the pixels with poor accuracy and weak influence in the depth map, thereby improving the robustness of the model. The present invention can be applied to a 3D camera with flood projection and dot light projection. The 3D camera can improve the projection distance and depth information accuracy under low energy consumption and low cost conditions. The present invention can fuse the first depth image based on flood projection and the first depth image based on dot light projection obtained by the 3D camera through the TOF depth sensor together to generate a depth map with higher accuracy and finer edges.

[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. The above description of the disclosed embodiments enables professionals and technicians in this field to implement or use the present invention. Various modifications to these embodiments will be obvious to professionals and technicians in this field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown in this article, but will comply with the widest range consistent with the principles and novel features disclosed herein.

[0127] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. An image reconstruction method based on sparse and dense depth maps, characterized in that: The steps include: Step S1: acquiring a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein the pixel density of the first depth image is greater than the pixel density of the second depth image; Step S2: determining a first confidence level for depth information of each pixel in the first depth image based on the first infrared image, and determining a second confidence level for depth information of each pixel in the second depth image based on the second infrared image; wherein the first depth image is a depth image generated by performing floodlight projection onto the target object, and the second depth image is a depth image generated by performing dot-matrix light projection onto the target object; the first infrared image is an infrared image generated by performing floodlight projection onto the target object, and the second infrared image is an infrared image generated by performing dot-matrix light projection onto the target object; Step S3: extracting the depth information of the edge contour area of ​​the target object from the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located; Step S4: fusing the pixel points selected in the first depth image based on the first confidence level, the first fusion coefficient, and the second fusion coefficient and the pixel points selected in the second depth image based on the second confidence level to generate a target depth image; The step S4 comprises the following steps: Step S401: generating a first screening coefficient according to the first confidence level and the first fusion coefficient, and generating a second screening coefficient according to the first confidence level and the second fusion coefficient; Step S402: selecting a plurality of pixel points in the edge contour area of ​​the target object and the scene area in the first depth image according to the first filtering coefficient, and selecting a plurality of pixel points in the area where the target object is located and the scene area in the first depth image according to the second filtering coefficient; Step S403: generating a third screening coefficient according to the second confidence level, and selecting a plurality of pixel points in the second depth image according to the third screening coefficient; Step S404: generating the target depth image by fusing a plurality of pixels selected from the first depth image and a plurality of pixels selected from the second depth image.

2. The image reconstruction method based on sparse and dense depth maps according to claim 1, characterized in that: The following steps are also included: Step S5: Acquire the target depth image, and perform depth reconstruction on the target object according to the target depth image.

3. The image reconstruction method based on sparse and dense depth maps according to claim 1, characterized in that: The step S2 comprises the following steps: Step S201: acquiring the amplitude of each area in the first infrared image and the second infrared image; Step S202: comparing the first infrared image with the first depth image to determine the amplitude corresponding to each pixel in the first depth image, and comparing the second infrared image with the second depth image to determine the amplitude corresponding to each pixel in the second depth image; Step S203: Determine a first confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the first depth image, and determine a second confidence level for the depth information of each pixel at least based on the amplitude corresponding to each pixel in the second depth image.

4. The image reconstruction method based on sparse and dense depth maps according to claim 1, characterized in that: The step S3 comprises the following steps: Step S301: extracting the area where the target object is located and the edge contour area of ​​the scene area where the target object is located in the first depth image; Step S302: determining the area where the target object is located and the scene area in the first depth image according to the edge contour area; Step S303: determining a first fusion coefficient based on the depth information of the edge contour area, and determining a second fusion coefficient based on the depth information of the area where the target object is located and the scene area.

5. The image reconstruction method based on sparse and dense depth maps according to claim 4, characterized in that: In step S301, an edge detection algorithm is used to determine the area where the target object is located and the edge contour area of ​​the scene area where the target object is located in the first depth image.

6. An image reconstruction system based on sparse and dense depth maps, used to implement the image reconstruction method based on sparse and dense depth maps according to any one of claims 1 to 5, characterized in that: include: An image acquisition module, configured to acquire a first depth image, a second depth image, a first infrared image, and a second infrared image of a target object, wherein a pixel density of the first depth image is greater than a pixel density of the second depth image; a confidence determination module, configured to determine a first confidence for depth information of each pixel in the first depth image based on the first infrared image, and to determine a second confidence for depth information of each pixel in the second depth image based on the second infrared image; wherein the first depth image is a depth image generated by performing floodlight projection onto the target object, and the second depth image is a depth image generated by performing dot-matrix light projection onto the target object; the first infrared image is an infrared image generated by performing floodlight projection onto the target object, and the second infrared image is an infrared image generated by performing dot-matrix light projection onto the target object; A fusion coefficient generating module, used for extracting the depth information of the edge contour area of ​​the target object in the first depth image, determining a first fusion coefficient for the depth information of the edge contour area, and determining a second fusion coefficient for the depth information of the area where the target object is located; An image fusion module, configured to fuse pixel points selected from the first depth image based on the first confidence level, the first fusion coefficient, and the second fusion coefficient, and pixel points selected from the second depth image based on the second confidence level, to generate a target depth image; The image fusion module includes the following steps during processing: Step S401: generating a first screening coefficient according to the first confidence and the first fusion coefficient, and generating a second screening coefficient according to the first confidence and the second fusion coefficient; Step S402: selecting a plurality of pixel points in the edge contour area of ​​the target object and the scene area in the first depth image according to the first filtering coefficient, and selecting a plurality of pixel points in the area where the target object is located and the scene area in the first depth image according to the second filtering coefficient; Step S403: generating a third screening coefficient according to the second confidence level, and selecting a plurality of pixel points in the second depth image according to the third screening coefficient; Step S404: generating the target depth image by fusing a plurality of pixels selected from the first depth image and a plurality of pixels selected from the second depth image.

7. An image reconstruction device based on sparse and dense depth maps, characterized in that: include: processor; a memory storing executable instructions of the processor; The processor is configured to perform the steps of the image reconstruction method based on sparse and dense depth maps as described in any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium for storing a program, characterized in that: When the program is executed, the steps of the image reconstruction method based on sparse and dense depth maps described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Human body tracking method, human body tracking device and electronic device

    CN106991688A

  • Image fusion method and apparatus of depth image and infrared image

    CN108830819A

  • Depth estimation method, device and system, and computer readable storage medium

    CN108876836A

  • Depth-based control method, depth-based control device and electronic device

    CN110168562A

  • Tracking body parts by combined color image and depth processing

    US20110211754A1