Depth image processing method and device

By preprocessing and regional classification filling of RGB images and deleted depth images, and inputting the depth map completion neural network, the problem of high computational complexity in the existing technology is solved, and efficient sparse depth map completion is achieved, which is suitable for automatic Dense depth imaging requirements for scenarios such as driving and augmented reality.

CN118537634APending Publication Date: 2024-08-23INST OF SEMICONDUCTORS - CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410593975.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Although existing depth map completion methods based on deep learning improve prediction accuracy, their high computational complexity hinders practical applications, especially in scenarios with intensive depth image requirements such as autonomous driving and augmented reality. The depth sensor cannot provide a dense depth image.

Method used

By obtaining the RGB image and the initial sparse depth image, perform preprocessing to obtain the intermediate dense depth image, and input it into the preset depth map completion neural network for training. Clustering algorithms and regional classification are used to fill in the hole depth information and reduce the network Scale and uptime for edge hardware deployments.

Benefits of technology

It achieves sparse depth map completion with fewer learnable parameters and inference time, is suitable for image processing with different input sizes and features, reduces the hardware resource consumption of neural networks, is suitable for edge hardware deployment, and improves computing speed and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537634A
    Figure CN118537634A
Patent Text Reader

Abstract

The invention provides a depth image processing method and device, and the method comprises the steps: obtaining an RGB image and an initial sparse depth image, and enabling the RGB image to correspond to the initial sparse depth image; preprocessing the RGB image and the initial sparse depth image to obtain an intermediate dense depth image; and inputting the RGB image and the intermediate dense depth image into a preset depth image completion neural network and training to obtain a target dense depth image. According to the method, the initial sparse depth image is processed based on the sparse depth image completion algorithm guided by RGB, so that the accurate and dense depth image is obtained, the method has less learnable parameters and reasoning time, and computing resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a depth image processing method and device. Background Art

[0002] Acquiring accurate and dense depth images plays an important role in various applications such as autonomous driving and augmented reality. However, existing depth sensors cannot provide dense depth images.

[0003] The purpose of depth completion is to predict dense depth images from sparse images captured by depth sensors. Currently, deep learning-based methods have shown convincing performance in this task and have led the development. RGB images (images composed of three channels: red, green, and blue) provide structural information about the scene, including textures, lines, and edges, to supplement the missing clues in sparse depth images. Therefore, RGB-guided sparse depth map completion algorithms have gradually become dominant in deep learning.

[0004] Existing RGB-guided depth completion methods usually tend to use complex network structures and sophisticated learning strategies to predict dense depth maps from sparse input data. Although these methods improve prediction accuracy, they are also accompanied by huge computational complexity, which hinders practical applications. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the above shortcomings, the main purpose of the present invention is to provide a depth image processing method and device.

[0007] (II) Technical solution

[0008] In order to achieve the above-mentioned objectives, in a first aspect, the present invention provides a depth image processing method, which includes: acquiring an RGB image and an initial sparse depth image, wherein the RGB image corresponds to the initial sparse depth image; preprocessing the RGB image and the initial sparse depth image to obtain an intermediate dense depth image; inputting the RGB image and the intermediate dense depth image into a preset depth map completion neural network and training them to obtain a target dense depth image.

[0009] In the above scheme, the RGB image and the initial sparse depth image are preprocessed to obtain an intermediate dense depth image, including: segmenting the RGB image to obtain multiple segmentation labels corresponding to the RGB image; classifying the initial sparse depth image according to a preset initial processing area size and the segmentation labels corresponding to the initial processing area to obtain multiple initial sparse depth image areas; filling the hole depth information of the multiple initial sparse depth image areas to obtain an intermediate dense depth image.

[0010] In the above scheme, the initial sparse depth image is regionally classified according to the preset initial processing area size and the segmentation label corresponding to the initial processing area to obtain multiple initial sparse depth image areas, including: establishing a corresponding relationship between the segmentation label corresponding to the initial processing area and the initial sparse depth image according to the preset initial processing area size; and regionally classifying the initial sparse depth image according to the indication of the segmentation label to obtain multiple initial sparse depth image areas.

[0011] In the above solution, the initial sparse depth image region includes a smooth image region and a jump image region.

[0012] In the above solution, when the segmentation labels corresponding to the initial processing area belong to the same category and the initial sparse depth image has only one depth value, the initial sparse depth image area is determined to be a smooth area.

[0013] In the above solution, when the segmentation labels corresponding to the initial processing area belong to the same category and the initial sparse depth image has multiple depth values, the initial sparse depth image area is determined to be a jump area.

[0014] In the above solution, the hole depth information is filled for a plurality of initial sparse depth image regions, including: when the initial sparse depth image region is a smooth region, all other hole depth information in the smooth region is filled with the same depth value.

[0015] In the above scheme, the hole depth information of multiple initial sparse depth image regions is filled, and it also includes: when the initial sparse depth image region is a jump region, the size of the initial processing region is reduced to obtain the target processing region; according to the target processing region, a corresponding relationship between the segmentation label corresponding to the target processing region and the initial sparse depth image is established; according to the indication of the segmentation label corresponding to the target processing region, the initial sparse depth image is again classified into regions, and the hole depth information is filled.

[0016] In the above scheme, the RGB image is segmented to obtain multiple segmentation labels corresponding to the RGB image, including: segmenting the RGB image into multiple clusters through a clustering algorithm, wherein each cluster includes a sub-RGB image, and each RGB image corresponds to a segmentation label.

[0017] In a second aspect of the present invention, a depth image processing device is provided, which includes an initial image acquisition module, a preprocessing module and an image training module, wherein; the initial image acquisition module is used to acquire an RGB image and an initial sparse depth image, wherein the RGB image corresponds to the initial sparse depth image; the preprocessing module is used to preprocess the RGB image and the initial sparse depth image to obtain an intermediate dense depth image; the image training module is used to input the RGB image and the intermediate dense depth image into a preset depth map completion neural network and perform training to obtain a target dense depth image.

[0018] In the above scheme, the preprocessing module includes a segmentation unit, an image area classification unit and a depth information filling unit, wherein; the segmentation unit is used to segment the RGB image to obtain multiple segmentation labels corresponding to the RGB image; the image area classification unit is used to perform area classification on the initial sparse depth image according to a preset initial processing area size and the segmentation label corresponding to the initial processing area to obtain multiple initial sparse depth image areas; the depth information filling unit is used to fill the hole depth information of the multiple initial sparse depth image areas to obtain an intermediate dense depth image.

[0019] (III) Beneficial effects

[0020] The technical solution of the embodiment of the present invention has at least the following beneficial effects:

[0021] (1) This method processes the initial sparse depth image based on the RGB-guided sparse depth map completion algorithm to obtain an accurate and dense depth image. This method has fewer learnable parameters and inference time, which helps to alleviate the burden of directly regressing dense depth images from sparse depth images.

[0022] (2) When this method fills the hole depth information in the initial sparse depth image area, the size of the initial processing area can be set to meet the needs of images with different input sizes or different input features.

[0023] (3) This method reduces the network size and running time of the neural network of the RGB-guided sparse depth map completion algorithm by preprocessing the initial sparse depth image, which is more conducive to the edge hardware deployment of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A flowchart schematically shows a depth image processing method according to an embodiment of the present invention;

[0025] Figure 2 A flowchart of preprocessing an RGB image and an initial sparse depth image according to an embodiment of the present invention is schematically shown;

[0026] Figure 3 Schematically shows a smoothing area diagram of an embodiment of the present invention;

[0027] Figure 4 A transition region diagram of an embodiment of the present invention is schematically shown;

[0028] Figure 5 A diagram schematically shows a process of filling a smooth area according to an embodiment of the present invention;

[0029] Figure 6 A schematic diagram of a process of filling a transition region according to an embodiment of the present invention is shown;

[0030] Figure 7 The structure block diagram of the depth image processing device according to the embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0031] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0032] Figure 1 The flowchart of the depth image processing method according to the embodiment of the present invention is schematically shown.

[0033] Please refer to Figure 1 The depth image processing method of the embodiment of the present invention specifically includes operations S110 to S130.

[0034] In operation S110, an RGB image and an initial sparse depth image are acquired, wherein the RGB image corresponds to the initial sparse depth image.

[0035] In operation S120 , the RGB image and the initial sparse depth image are preprocessed to obtain an intermediate dense depth image.

[0036] In operation S130, the RGB image and the intermediate dense depth image are input into a preset depth map completion neural network and trained to obtain a target dense depth image.

[0037] Through the embodiments of the present invention, the sparse depth map completion algorithm based on RGB guidance does not need to add other input features, and uses the RGB image that provides feature information for the neural network to process the initial sparse depth image, thereby obtaining an accurate and dense depth image. This method helps to reduce the burden of directly regressing dense depth images from sparse depth images, reducing learning parameters and inference time; in addition, it is more convenient to subsequently deploy the neural network to hardware (FPGA, ASIC, etc.), which can reduce the consumption of hardware resources, improve the computing speed, and meet the low power consumption and real-time requirements of edge hardware deployment.

[0038] According to the following Figure 2-Figure 6 The depth image processing method according to the embodiment of the present invention is further described in detail.

[0039] In operation S110, an RGB image and an initial sparse depth image are acquired, wherein the RGB image corresponds to the initial sparse depth image.

[0040] Specifically, RGB images and initial sparse depth images are obtained through a depth sensor. These initial sparse depth images have problems such as sparseness and missing pixels in some areas. They are not reliable and are difficult to be directly applied in actual tasks.

[0041] Figure 2 The flowchart of preprocessing an RGB image and an initial sparse depth image according to an embodiment of the present invention is schematically shown.

[0042] Please refer to Figure 2 In the embodiment of the present invention, the process of preprocessing the RGB image and the initial sparse depth image specifically includes S210 to S230.

[0043] In operation S210, the RGB image is segmented to obtain a plurality of segmentation labels corresponding to the RGB image.

[0044] Specifically, the RGB image is segmented by the K-Means clustering algorithm, which regards each object as having a position in space. It divides the object into several partitions so that the objects in each cluster are as close to each other as possible and as far away from the objects in other clusters as possible. The RGB image is segmented into k clusters by executing the K-Means clustering algorithm, where each cluster includes a sub-RGB image, each RGB image corresponds to a segmentation label, and finally returns the segmented labeled output.

[0045] Through the embodiments of the present invention, in the process of preprocessing the initial sparse depth image, an efficient clustering algorithm is used to facilitate verification and implementation.

[0046] In operation S220, the initial sparse depth image is region-classified according to a preset initial processing region size and a segmentation label corresponding to the initial processing region to obtain a plurality of initial sparse depth image regions.

[0047] In an embodiment of the present invention, according to a preset initial processing area size, a correspondence between a segmentation label corresponding to the initial processing area and an initial sparse depth image is established; and the initial sparse depth image is regionally classified according to the indication of the segmentation label to obtain multiple initial sparse depth image regions.

[0048] Specifically, for example, a certain large processing area can be set and according to the set processing area size, a corresponding relationship is established between the segmentation label corresponding to the processing area and the initial sparse depth image, and the corresponding initial sparse depth image area is classified according to the instructions of the segmentation label in the set area.

[0049] Figure 3 A smoothing area diagram of an embodiment of the present invention is schematically shown. Figure 4 The figure schematically shows a transition region diagram of an embodiment of the present invention.

[0050] In an embodiment of the present invention, the categories for classifying the initial sparse depth image region include smooth image regions and jump image regions.

[0051] like Figure 3 As shown, when the segmentation labels corresponding to the initial processing area belong to the same category, for example, all are 2, and the initial sparse depth image has only one depth value 1, it is determined that the initial sparse depth image area is a smooth area.

[0052] like Figure 4 As shown, for example, when the segmentation labels corresponding to the initial processing area belong to the same category, for example, all are 2, and the initial sparse depth image has multiple depth values, for example, 1 and 2, the initial sparse depth image area is determined to be a jump area.

[0053] In operation S230 , hole depth information is filled in a plurality of initial sparse depth image regions to obtain an intermediate dense depth image.

[0054] Figure 5 The diagram schematically shows a process diagram of filling a smooth area according to an embodiment of the present invention.

[0055] In an embodiment of the present invention, when the initial sparse depth image region is a smooth region, all other hole depth information in the smooth region is filled with the same depth value.

[0056] See also Figure 5 ,According to the region classification category, the corresponding depth image region is filled with hole depth information. If it is classified as a smooth region, all other hole depth information in the region is filled with the unique depth value, for example Figure 5 The depth value of the filled area depth information is 1.

[0057] Figure 6 The diagram schematically shows a process diagram of filling a transition region according to an embodiment of the present invention.

[0058] In an embodiment of the present invention, when the initial sparse depth image area is a jump area, the size of the initial processing area is reduced to obtain the target processing area; based on the target processing area, a correspondence between the segmentation label corresponding to the target processing area and the initial sparse depth image is established; the initial sparse depth image is again regionally classified according to the indication of the segmentation label corresponding to the target processing area, and the hole depth information is filled.

[0059] See also Figure 6 ,If the depth image area is classified as a jump area, the set processing area is halved to obtain multiple new target ,processing areas, and reclassified and filled until the set processing area reaches the minimum, and the final accurate ,dense depth image is obtained.

[0060] Through the embodiments of the present invention, in the process of filling the hole depth information of the initial sparse depth image area, the size of the initial processing area can be set to meet the needs of images with different input sizes or different input features. In addition, the method reduces the network scale and running time of the neural network of the sparse depth map completion algorithm based on RGB guidance, which is more conducive to the edge hardware deployment of the network.

[0061] Based on the above-mentioned depth image processing method, the present invention also provides a depth image processing device.

[0062] Figure 7 The structure block diagram of the depth image processing device according to the embodiment of the present invention is schematically shown.

[0063] like Figure 7 As shown, the depth image processing device of this embodiment includes an initial image acquisition module 710 , a preprocessing module 720 and an image training module 730 .

[0064] The initial image acquisition module 710 is used to acquire an RGB image and an initial sparse depth image, wherein the RGB image corresponds to the initial sparse depth image. In one embodiment, the initial image acquisition module 710 can be used to perform the operation S110 described above, which will not be described in detail here.

[0065] The preprocessing module 720 is used to preprocess the RGB image and the initial sparse depth image to obtain an intermediate dense depth image. In one embodiment, the preprocessing module 720 can be used to perform the operation S120 described above, which will not be described in detail here.

[0066] The image training module 730 is used to input the RGB image and the intermediate dense depth image into a preset depth map completion neural network and perform training to obtain a target dense depth image. In one embodiment, the image training module 730 can be used to perform the operation S130 described above, which will not be repeated here.

[0067] According to an embodiment of the present invention, any multiple modules of the initial image acquisition module 710, the preprocessing module 720 and the image training module 730 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the initial image acquisition module 710, the preprocessing module 720 and the image training module 730 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the initial image acquisition module 710, the preprocessing module 720 and the image training module 730 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0068] In the embodiment of the present invention, the pre-processing module 720 includes a segmentation unit, an image region classification unit, and a depth information filling unit.

[0069] The segmentation unit is used to segment the RGB image to obtain a plurality of segmentation labels corresponding to the RGB image. In one embodiment, the segmentation unit can be used to perform the operation S210 described above, which will not be described in detail here.

[0070] The image region classification unit is used to classify the initial sparse depth image into regions according to the preset initial processing region size and the segmentation label corresponding to the initial processing region to obtain multiple initial sparse depth image regions. In one embodiment, the image region classification unit can be used to perform the operation S220 described above, which will not be repeated here.

[0071] The depth information filling unit is used to fill the hole depth information of the multiple initial sparse depth image regions to obtain an intermediate dense depth image. In one embodiment, the depth information filling unit can be used to perform the operation S230 described above, which will not be repeated here.

[0072] The above specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A depth image processing method, characterized in that: The method comprises: Acquire an RGB image and an initial sparse depth image, wherein the RGB image corresponds to the initial sparse depth image; Preprocessing the RGB image and the initial sparse depth image to obtain an intermediate dense depth image; The RGB image and the intermediate dense depth image are input into a preset depth map completion neural network and trained to obtain a target dense depth image.

2. The depth image processing method according to claim 1, characterized in that: The preprocessing of the RGB image and the initial sparse depth image to obtain an intermediate dense depth image includes: Segmenting the RGB image to obtain a plurality of segmentation labels corresponding to the RGB image; According to a preset initial processing region size and a segmentation label corresponding to the initial processing region, the initial sparse depth image is subjected to region classification to obtain a plurality of initial sparse depth image regions; Filling the hole depth information of a plurality of the initial sparse depth image regions to obtain an intermediate dense depth image.

3. The depth image processing method according to claim 2, characterized in that: The initial sparse depth image is subjected to region classification according to a preset initial processing region size and a segmentation label corresponding to the initial processing region to obtain a plurality of initial sparse depth image regions, including: According to a preset initial processing area size, establishing a corresponding relationship between a segmentation label corresponding to the initial processing area and an initial sparse depth image; The initial sparse depth image is regionally classified according to the instructions of the segmentation labels to obtain a plurality of initial sparse depth image regions.

4. The depth image processing method according to claim 3, characterized in that: The initial sparse depth image region includes a smooth image region and a jump image region.

5. The depth image processing method according to claim 4, characterized in that: When the segmentation labels corresponding to the initial processing area belong to the same category, and the initial sparse depth image has only one depth value, it is determined that the initial sparse depth image area is a smooth area.

6. The depth image processing method according to claim 4, characterized in that: When the segmentation labels corresponding to the initial processing area belong to the same category and the initial sparse depth image has multiple depth values, it is determined that the initial sparse depth image area is a jump area.

7. The depth image processing method according to claim 5 or 6, characterized in that: The filling of hole depth information for the plurality of initial sparse depth image regions comprises: When the initial sparse depth image region is a smooth region, all other hole depth information in the smooth region is filled with the same depth value.

8. The depth image processing method according to claim 5 or 6, characterized in that: The filling of hole depth information for the plurality of initial sparse depth image regions further comprises: When the initial sparse depth image region is a jump region, reducing the size of the initial processing region to obtain a target processing region; According to the target processing area, a corresponding relationship between the segmentation label corresponding to the target processing area and the initial sparse depth image is established; The initial sparse depth image is reclassified according to the instructions of the segmentation label corresponding to the target processing area, and the hole depth information is filled.

9. The depth image processing method according to claim 2, characterized in that: The step of segmenting the RGB image to obtain a plurality of segmentation labels corresponding to the RGB image includes: The RGB image is segmented into multiple clusters by a clustering algorithm, wherein each cluster includes a sub-RGB image, and each of the RGB images corresponds to a segmentation label.

10. A depth image processing device, characterized in that: The device comprises an initial image acquisition module, a preprocessing module and an image training module, wherein; An initial image acquisition module, used to acquire an RGB image and an initial sparse depth image, wherein the RGB image corresponds to the initial sparse depth image; A preprocessing module, used for preprocessing the RGB image and the initial sparse depth image to obtain an intermediate dense depth image; The image training module is used to input the RGB image and the intermediate dense depth image into a preset depth map completion neural network and perform training to obtain a target dense depth image.

11. The processing device according to claim 10, characterized in that The preprocessing module includes a segmentation unit, an image region classification unit and a depth information filling unit, wherein; A segmentation unit, used to segment the RGB image to obtain a plurality of segmentation labels corresponding to the RGB image; An image region classification unit, configured to classify the initial sparse depth image into regions according to a preset initial processing region size and a segmentation label corresponding to the initial processing region, so as to obtain a plurality of initial sparse depth image regions; The depth information filling unit is used to fill the hole depth information of the multiple initial sparse depth image regions to obtain an intermediate dense depth image.