Method, system and medium for high-resolution image 3D reconstruction based on deep learning
Through user-marked areas to be reconstructed and feature extraction of deep learning networks, combined with multi-view cost map fusion and visibility algorithms, the problem of high GPU memory consumption and slow speed in the existing technology is solved, and high efficiency is achieved on consumer-grade GPUs. 3D point cloud reconstruction.
Patent Information
- Application Number
- CN202410765434.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The existing multi-view stereo matching 3D reconstruction algorithm based on deep learning consumes a lot of GPU memory and is slow. It cannot effectively utilize the information in high-resolution images, and it is difficult to quickly perform 3D point cloud reconstruction on consumer-grade GPUs.
The user marks the area to be reconstructed, uses the VGG network and the UNet network improved by ResNet for feature extraction and multi-view cost map fusion, gradually decodes the depth map from low resolution to high resolution, and combines the visibility fusion algorithm to generate dense three-dimensional point cloud data. , reduce the amount of data and calculations.
It effectively reduces GPU memory usage and 3D reconstruction time, improves the efficiency and accuracy of 3D point cloud reconstruction, and can quickly process high-resolution images on consumer-grade GPUs.
Smart Images

Figure CN118334255B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional reconstruction technology, and in particular to a method, system and medium for high-resolution image three-dimensional reconstruction based on deep learning. Background Art
[0002] 3D reconstruction technology is a process of recovering the 3D structure of an object from a 2D image, rendering it, and finally expressing the virtual reality of the objective world in a computer. The 3D reconstruction process of multiple views requires the camera to be calibrated first, that is, the relationship between the camera's image coordinate system and the world coordinate system is calculated, and then the 3D information, such as point clouds, meshes, or textures, is reconstructed using the information in multiple 2D images. Among them, MVSNet (multi-view stereo matching) is a way to reconstruct 3D point clouds through deep learning using images captured by multiple calibrated cameras. Its essence is a depth estimation method based on binocular stereo matching of two image cost volumes. It is extended to multiple images for depth estimation, and the depth estimation corresponding to multiple views is obtained through the differentiable homography transformation cost volume.
[0003] The current deep learning-based 3D reconstruction algorithm based on multi-view stereo matching of high-resolution images from different angles consumes a lot of GPU memory and is slow, and cannot utilize the rich information in high-resolution images. With the gradual popularization of high-resolution cameras, an efficient deep learning network structure is needed that can quickly reconstruct 3D point cloud data using rich image information on consumer-grade GPUs. Summary of the invention
[0004] In view of the problems and shortcomings of the prior art, the purpose of the present invention is to provide a method for reconstructing three-dimensional point clouds of high-resolution images based on deep learning, thereby reducing the amount of data and calculation required for reconstruction, and effectively reducing the usage of GPU video memory and the reconstruction time.
[0005] According to a first aspect of the present invention, a high-resolution image 3D reconstruction method based on deep learning is proposed, comprising the following steps:
[0006] For the high-resolution original images acquired by cameras at different angles, the position of the marked object to be reconstructed is compared with the position of the object recognized based on the VGG network to complete the calibration of the area to be reconstructed and segment the area of the object to be reconstructed;
[0007] Based on the calibrated area to be reconstructed, a three-dimensional cost volume is obtained by feature extraction and fusion of cost maps between multiple perspectives, wherein multiple cost maps are generated corresponding to multiple sampling depths, and a three-dimensional cost volume is obtained by stacking multiple cost maps;
[0008] Based on the form from low resolution to high resolution, the 3D cost volume is decoded, and the decoded output is fused with the original feature volume of the higher resolution image to obtain the cost volume and predicted depth map corresponding to the highest resolution scale space;
[0009] Through the visibility-based fusion algorithm, the depth maps of different perspectives are fused into a unified point cloud representation, so that the depth occlusion and conflict between different perspectives are minimized. The fused depth map is projected into the 3D space to obtain dense 3D point cloud data and a 3D reconstructed model.
[0010] According to a second aspect of the present invention, a computer system is also provided, comprising:
[0011] one or more processors;
[0012] A memory storing operable instructions, wherein when the instructions are executed by the one or more processors, the one or more processors perform operations, wherein the operations include executing the aforementioned process of the deep learning-based high-resolution image three-dimensional reconstruction method.
[0013] According to the third aspect of the purpose of the present invention, a computer-readable medium storing software is also proposed, wherein the software includes instructions that can be executed by one or more computers, and when the instructions are executed by the one or more computers, the process of the aforementioned high-resolution image three-dimensional reconstruction method based on deep learning is performed.
[0014] According to the high-resolution image 3D reconstruction method based on deep learning proposed by the present invention, for relatively high-resolution images acquired from calibrated cameras at different angles, the user can mark the area to be reconstructed in the image, and the objects and corresponding areas marked by the user are identified through the UNet network, and all non-selected object areas are switched to a black background; then, downsampling at four different scales is performed through the convolutional network and the pooling layer, and the corresponding features are extracted in different scale spaces through the UNet network improved based on ResNet (residual network), and the three-dimensional cost volume is obtained through a differentiable homography transformation; then, the depth map corresponding to each high-resolution image is predicted in a coarse-to-fine manner through the cascade cost volume formula; finally, after checking the geometric consistency of the pixels in the depth map, it is projected into the three-dimensional space to generate dense point cloud data.
[0015] Compared with the prior art, the high-resolution image 3D reconstruction method based on deep learning of the present invention has the following significant advantages:
[0016] 1. Before 3D reconstruction, the user selects the area to be reconstructed according to the needs, and the feature matching algorithm is used to perform matching calibration on all the images to be reconstructed. All non-selected areas are set to black, thereby reducing the amount of data for reconstruction;
[0017] 2. Through the convolutional neural network of the multi-scale encoder-decoder structure, the image features are encoded to a relatively small resolution in the initial processing stage, thereby reducing memory requirements;
[0018] 3. In the pyramid hierarchy from low-resolution scale space to high-resolution scale space, the depth correspondence is gradually searched from coarse to fine, and the coarsely predicted depth map is used as the prior for the next resolution prediction, thereby reducing the processing time of the algorithm.
[0019] It should be understood that all combinations of the aforementioned concepts and the additional concepts described in more detail below can be considered as part of the inventive subject matter of the present disclosure as long as such concepts are not mutually inconsistent. In addition, all combinations of the claimed subject matter are considered as part of the inventive subject matter of the present disclosure.
[0020] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are not intended to be drawn to scale. In the accompanying drawings, each identical or nearly identical component shown in each figure may be represented by the same reference numeral. For clarity, not every component is labeled in each figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings.
[0022] Figure 1 4 is a flowchart of a method for high-resolution image three-dimensional reconstruction based on deep learning according to an exemplary embodiment of the present invention.
[0023] Figure 2 4 is a module schematic diagram of a high-resolution image three-dimensional reconstruction device based on deep learning according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.
[0025] Various aspects of the present invention are described in this disclosure with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present disclosure are not necessarily intended to include all aspects of the present invention. It should be understood that the various concepts and embodiments introduced above, as well as those described in more detail below, can be implemented in any of many ways, because the concepts and embodiments disclosed by the present invention are not limited to any implementation. In addition, some aspects disclosed by the present invention can be used alone or in any appropriate combination with other aspects disclosed by the present invention.
[0026] Combination Figure 1 As shown, the high-resolution image 3D reconstruction method based on deep learning according to an embodiment of the present invention includes the following process:
[0027] S101: For high-resolution original images acquired by cameras at different angles, the position of the marked object to be reconstructed is compared with the position of the object recognized based on the VGG network, the calibration of the area to be reconstructed is completed, and the area of the object to be reconstructed is segmented;
[0028] S102: Based on the calibrated area to be reconstructed, a three-dimensional cost volume is obtained by extracting features and fusing cost maps between multiple perspectives, wherein multiple cost maps are generated corresponding to multiple sampling depths, and the three-dimensional cost volume is obtained by stacking multiple cost maps;
[0029] S103: decoding the three-dimensional cost volume in a form from low resolution to high resolution, fusing the decoded output with the original feature volume of the higher resolution image, and obtaining the cost volume and predicted depth map corresponding to the highest resolution scale space;
[0030] S104: Through a visibility-based fusion algorithm, depth maps from different perspectives are fused into a unified point cloud representation, so that depth occlusion and conflict between different perspectives are minimized, and the fused depth map is projected into a 3D space to obtain dense three-dimensional point cloud data and a three-dimensional reconstructed model.
[0031] As an optional example, for the high-resolution original images acquired by cameras at different angles, the position of the marked object to be reconstructed is compared with the position of the object recognized based on the VGG network, the calibration of the area to be reconstructed is completed, and the area of the object to be reconstructed is segmented, including:
[0032] For high-resolution images acquired by cameras at different angles, each image is marked to indicate the location of the object to be reconstructed, i.e., the area to be reconstructed; for unmarked images, the entire image is considered to be the area to be reconstructed;
[0033] The VGG network is used to identify the positions of all objects in the high-resolution image, and the identified object positions are compared with the positions of the marked objects to be reconstructed, and the objects containing the marked positions are determined as the objects to be reconstructed;
[0034] The area of the object to be reconstructed in the image is segmented, and the other areas are directly transformed into a black background without any processing;
[0035] According to the above position comparison method, each high-resolution original image is processed, and the processed image and camera calibration data are used as input data for the next step of processing.
[0036] As an optional example, the calibrated area to be reconstructed is used to obtain a three-dimensional cost volume by extracting features and fusing cost maps between multiple perspectives, wherein multiple cost maps are generated corresponding to multiple sampling depths, and the three-dimensional cost volume is obtained by stacking multiple cost maps, including:
[0037] According to the image processed by position contrast, the image to be estimated is used as the reference image, and the corresponding N source images are found according to the camera parameters. All source images are downsampled to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the original image, respectively, to obtain images in different resolution scale spaces from high resolution to low resolution.
[0038] The UNet network improved by ResNet is used to extract image features in different resolution scale spaces, and the last convolution layer of feature extraction is used to map the features to a low-dimensional space.
[0039] Assume that the depth range measured at the camera position corresponding to the reference image is from d min arrive d max , the 3D cost volume of the reference image is constructed by uniformly sampling m positive parallel planes in the entire depth range, where the differentiable homography matrix between the first source image with sampling depth d and the reference image is described as:
[0040]
[0041] The pixels of the reference image perspective are transformed into the pixels of the source image perspective through the differentiable homography matrix, so as to obtain the feature volume after the homography transformation. , the more accurate the depth value estimation is, and The closer;
[0042] Through homography transformation measurement Calculate the cost map, for a reference image I 0 And n source images , get n cost graphs ;
[0043] The cost maps between multiple views are fused by variance measurement to explicitly measure the differences in features between multiple views. The variance-based cost measurement method is as follows:
[0044]
[0045] Among them, n sampling depths correspond to the generation of n cost maps, and the n cost maps are stacked to obtain a three-dimensional cost volume; the cost volume of the reference image is calculated through different resolution scale spaces to obtain the three-dimensional cost volume of the reference image in 4 resolution scale spaces.
[0046] As an optional example, the three-dimensional cost volume is decoded based on the form from low resolution to high resolution, and the decoded output is fused with the original feature volume of the higher resolution image to obtain the cost volume and predicted depth map corresponding to the highest resolution scale space, wherein:
[0047] The decoder contains four decoder blocks of different scales of 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the original image. It is first classified through a 3D convolutional layer, then passed through a ReLU linear correction layer and another 3D convolutional layer that maps each feature to 1 channel, and then output to a flexible maximum calculation layer to obtain the probability of each depth hypothesis;
[0048] Among them, for the lowest resolution scale, the decoder only generates a preliminary depth estimate based on the corresponding original 3D cost volume, which only covers the entire depth range of the input scene in the initial hypothetical plane. The 3D cost volume and depth estimate obtained by the decoder of the lowest resolution scale will be used as the prior input of the decoder of the higher resolution scale after upsampling;
[0049] At a high-resolution scale, based on the output of the previous resolution scale space, a search is performed on a similar depth plane, and the cost volume and predicted depth map corresponding to the highest resolution scale space are calculated by cascading scales step by step.
[0050] As an optional example, the depth maps of different perspectives are fused into a unified point cloud representation through a visibility-based fusion algorithm, so that the depth occlusion and conflict between different perspectives are minimized, the fused depth map is projected into a 3D space, dense three-dimensional point cloud data is obtained, and a three-dimensional reconstruction model is obtained, including:
[0051] Before projecting into 3D space, the depth map is checked for geometric consistency to determine whether the depth estimation of the pixel is valid, and only the depth maps that meet the preset requirements are retained;
[0052] Through a visibility-based fusion algorithm, depth maps from different perspectives are fused into a unified point cloud representation, minimizing depth occlusion and conflict between different perspectives. During the fusion process, the visible view of each pixel is determined, and the average of all reprojected depths is used as the final depth estimate of the pixel; the fused depth map is projected into 3D space to obtain dense three-dimensional point cloud data.
[0053] As an optional example, in step S104, performing a geometric consistency check on the depth map includes:
[0054] First, a pixel with correlation p ref Through its depth estimation d ref Projecting to a different perspective;
[0055] Then, through the pixels p ref Depth estimation at this viewpoint d i Get the pixel after back projection p reproj and depth estimation d reproj , and determine whether the depth estimation meets the following conditions:
[0056]
[0057] in, α and β They represent loss thresholds respectively. If a pixel can meet the above conditions at least from three viewing angles at the same time, the depth estimation of this pixel is considered valid, otherwise the depth estimation of this pixel is considered invalid.
[0058] Among them, the aforementioned loss threshold α and β is pre-set and can be adjusted α and β The value of controls the accuracy and completeness of the fused point cloud.
[0059] [Example 1]
[0060] 1. Calibration of the area to be reconstructed
[0061] A: For high-resolution images acquired by cameras at different angles, when inputting the deep learning network, the user needs to mark the location of the object to be reconstructed with a red plus sign on each image, and then input the image and the coordinates marked by the user into the network. If the user does not mark the image, the entire image is considered to be the area to be reconstructed;
[0062] B: Use the VGG network to identify the positions of all objects in the entire image, compare the identified object positions with the coordinate positions marked by the user, and all objects including the marked positions are the objects to be reconstructed;
[0063] C: The area of the object to be reconstructed is segmented, and the other areas are directly turned into a black background without any processing. Feature extraction and matching are performed on all processed images. The camera pose information is obtained through the SFM (Structure from Motion) camera pose estimation algorithm, including the camera's internal and external parameters and the position matching data between cameras. The position matching data refers to the position information between different cameras, including the distance between the two cameras and the change in angle.
[0064] All processed images and the corresponding camera pose information are used as input for the next step of network processing.
[0065] 2.3D Cost Volume Generation
[0066] A: Select the first image from the images processed in the previous step as the reference image, and find its nearest neighbor based on the camera pose information. N images are used as source images, and all images are downsampled simultaneously to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the original images, respectively, as a pyramid model from high resolution to low resolution.
[0067] Since reconstruction requires calculation of depth maps of all images, it is necessary to start from the first image, use each image as a reference image, and find the corresponding source image for calculation; as an optional implementation, the value of N can be selected to balance processing speed and accuracy, that is, the larger the value of N, the faster the processing speed but the lower the accuracy; conversely, the smaller the value of N, the slower the processing speed (longer time-consuming) but the higher the accuracy. In this embodiment, the value of N is 3 as an example for explanation.
[0068] B: Use the UNet network improved by ResNet to extract image features in different resolution scale spaces and map the features to low-dimensional subspaces.
[0069] As an optional example, the process of feature mapping and dimension processing includes:
[0070] First, perform three convolution operations with a stride of 2 on the image, and then perform a pooling operation and a convolution operation with a stride of 2, which reduces the input feature size to 1 / 8; then do a 4-fold upsampling of the feature value and fuse it with the previously cropped low-level feature map, thereby mapping the feature to a low-dimensional subspace.
[0071] C: Assume that the depth range measured at the camera position corresponding to the reference image is fromd min arrive d max Based on this assumption, the three-dimensional cost volume of the reference image can be constructed by uniformly sampling m positive parallel planes in the entire depth range; the sampling depth is d The differentiable homography matrix between the first source image and the reference image can be described as:
[0072]
[0073] in H i (d) Indicates the depth value d Department, i The homography matrix that projects the feature maps of the source images onto the reference image. K i , R i , t i Respectively represent i The intrinsic parameter matrix, rotation matrix and translation matrix of the image are the camera pose information. i =0 indicates the reference image, i When ≠0, it indicates the source image of the corresponding number. n 0 Indicates the main axis direction of the camera corresponding to the reference image.
[0074] The feature map under the source image perspective can be obtained through the homography matrix , i =0, it indicates the feature map corresponding to the reference image. i ≠0 indicates the feature map corresponding to the source image. The feature cost converted to the reference image perspective , i =1, indicating the feature cost corresponding to the reference image. i ≠0 indicates the feature cost corresponding to the source image.
[0075] For the feature maps of n source images F i ( i ≠0), can be obtained by Get n feature costs V i ( i ≠0), where x Indicates that in the source image coordinates, at the depth value d The corresponding eigenvalue at It represents the feature cost corresponding to the reference image coordinate system after homography transformation. The more accurate the depth value estimation is, Vi and V 0 The closer.
[0076] D: The cost map between the source image and the reference view is fused by variance measurement, which explicitly measures the difference in features between multiple views. The variance-based cost measurement is as follows:
[0077]
[0078] in C represents the three-dimensional cost volume, M Represents a variance-based cost indicator, which is used to describe N The similarity between Zhang Yuan images, where V i For the i The cost volume corresponding to the source image is To pass The average feature volume calculated.
[0079] At a certain feature point in the reference image, the smaller the value corresponding to the cost volume is, the more likely the true depth of the point is d .
[0080] N The sampling depth will generate N By stacking these cost maps, we can get a 3D cost volume; by calculating the cost volume of the reference image in different scale spaces, we can get 4 cost volumes of the reference image.
[0081] 3. Depth Estimation
[0082] A: Decode the 3D cost volume from low resolution to high resolution, and fuse the decoded output with the original feature volume of the higher resolution image.
[0083] As mentioned above, the decoder contains four decoder blocks of different scales to ensure that enough image details are obtained. First, classification is performed through a 3D convolutional layer, and then through a ReLU (linear correction) layer and another 3D convolutional layer that maps each feature to 1 channel, and then output to a flexible maximum calculation layer to obtain the probability of each depth hypothesis. The depth corresponding to the feature point is determined according to the probability, and a depth estimate corresponding to the reference image is formed.
[0084] It should be understood that the cost volume in this step is the cost volume calculated in the previous step. The depth hypothesis is the depth information of the corresponding scene estimated for each pixel of the reference image. The depth estimation is the same as the depth estimation, which is the estimated depth information corresponding to the reference image. The corresponding depth map can be drawn based on this information.
[0085] B: At the lowest resolution scale, the decoder generates a preliminary depth estimate based only on the corresponding original 3D cost volume, which covers the entire depth range of the input scene only in the initial hypothetical plane; the 3D cost volume and depth estimate obtained by the decoder at this scale are upsampled and used as a priori input to the decoder at a higher resolution scale.
[0086] C: At a high-resolution scale, based on the output of the previous scale space, search on the depth plane close to it. Based on the previous prediction results, the subsequent cost volume can be constructed in a smaller depth range, and the cost volume and predicted depth map corresponding to the highest resolution scale space can be calculated in a cascade manner.
[0087] 4. Depth Map Optimization and Fusion
[0088] A: Because pixels may belong to the background or be in an occluded area, the depth map estimated for each image may have certain outliers. Before each pixel is projected into 3D space, a geometric consistency check is required.
[0089] First, a pixel with correlation p ref Through its depth estimation d ref Projecting to a different perspective;
[0090] Then, through the pixels p ref Depth estimation at this viewpoint d i Get the pixel after back projection p reproj and depth estimation d reproj , and determine whether the depth estimation meets the following conditions:
[0091]
[0092] in, α and β They represent loss thresholds respectively. If a pixel can meet the above conditions at least from three viewing angles at the same time, the depth estimation of this pixel is considered valid, otherwise the depth estimation of this pixel is considered invalid.
[0093] B: Through the visibility-based fusion algorithm, the depth maps of different perspectives are fused into a unified point cloud representation, so that the depth occlusion and conflict between different perspectives are minimized; in the fusion process, the visible view of each pixel is determined, and the average value of all reprojected depths is used as the final depth estimate of this pixel; the fused depth map is projected into 3D space to obtain dense 3D point cloud data and complete the 3D reconstruction process.
[0094] {Example 2}
[0095] In combination with the human posture detection method based on image processing of the above embodiment, the present invention also proposes a computer system, comprising: one or more processors and a memory. The aforementioned memory is used to store operable instructions, and when the instructions are executed by the one or more processors, the one or more processors perform operations, and the operations include the process of executing the high-resolution image three-dimensional reconstruction method based on deep learning of the above embodiment.
[0096] {Example 3}
[0097] In combination with the human posture detection method based on image processing of the above embodiment, the present invention also proposes a computer-readable medium storing software, wherein the software includes instructions that can be executed by one or more computers, and when the instructions are executed by the one or more computers, the process of the high-resolution image three-dimensional reconstruction method based on deep learning of the above embodiment is executed.
[0098] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A high-resolution image 3D reconstruction method based on deep learning, characterized in that: The following steps are involved: For the high-resolution original images acquired by cameras at different angles, the position of the marked object to be reconstructed is compared with the position of the object recognized based on the VGG network to complete the calibration of the area to be reconstructed and segment the area of the object to be reconstructed; Based on the calibrated area to be reconstructed, a three-dimensional cost volume is obtained by feature extraction and fusion of cost maps between multiple perspectives, wherein multiple cost maps are generated corresponding to multiple sampling depths, and a three-dimensional cost volume is obtained by stacking multiple cost maps; Based on the form from low resolution to high resolution, the 3D cost volume is decoded, and the decoded output is fused with the original feature volume of the higher resolution image to obtain the cost volume and predicted depth map corresponding to the highest resolution scale space; Through the visibility-based fusion algorithm, the depth maps of different perspectives are fused into a unified point cloud representation, so that the depth occlusion and conflict between different perspectives are minimized. The fused depth map is projected into the 3D space to obtain dense 3D point cloud data and a 3D reconstruction model. Among them, for the high-resolution original images acquired by cameras at different angles, the position of the marked object to be reconstructed is compared with the position of the object recognized based on the VGG network, the calibration of the area to be reconstructed is completed, and the area of the object to be reconstructed is segmented, including: For high-resolution images acquired by cameras at different angles, each image is marked to indicate the location of the object to be reconstructed, i.e., the area to be reconstructed; for unmarked images, the entire image is considered to be the area to be reconstructed; The VGG network is used to identify the positions of all objects in the high-resolution image, and the identified object positions are compared with the positions of the marked objects to be reconstructed, and the objects containing the marked positions are determined as the objects to be reconstructed; The area of the object to be reconstructed in the image is segmented, and the other areas are directly transformed into a black background without any processing; According to the above position comparison method, each high-resolution original image is processed, and the processed image and camera calibration data are used as input data for the next step of processing; The calibrated area to be reconstructed is subjected to feature extraction and fusion of cost maps between multiple perspectives to obtain a three-dimensional cost volume, wherein multiple cost maps are generated corresponding to multiple sampling depths, and the three-dimensional cost volume is obtained by stacking multiple cost maps, including: According to the image processed by position contrast, the image to be estimated is used as the reference image, and the corresponding N source images are found according to the camera parameters. All source images are downsampled to 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the original image, respectively, to obtain images in different resolution scale spaces from high resolution to low resolution. The UNet network improved by ResNet is used to extract image features in different resolution scale spaces, and the last convolution layer of feature extraction is used to map the features to a low-dimensional space. Assume that the depth range measured at the camera position corresponding to the reference image is from d min arrive d max , the 3D cost volume of the reference image is constructed by uniformly sampling m positive parallel planes in the entire depth range, where the differentiable homography matrix between the first source image with sampling depth d and the reference image is described as: ; The pixels of the reference image perspective are transformed into the pixels of the source image perspective through the differentiable homography matrix, so as to obtain the feature volume after the homography transformation. , the more accurate the depth value estimation is, and The closer; Through homography transformation measurement Calculate the cost map, for a reference image I 0 And n source images , get n cost graphs ; The cost maps between multiple views are fused by variance measurement to explicitly measure the differences in features between multiple views. The variance-based cost measurement method is as follows: , where n sampling depths correspond to n cost maps, and n cost maps are stacked to obtain a three-dimensional cost volume; the cost volume of the reference image is calculated by different resolution scale spaces to obtain the three-dimensional cost volume of the reference image in four resolution scale spaces; The decoding of the three-dimensional cost volume based on the form from low resolution to high resolution, fusing the decoded output with the original feature volume of the higher resolution image, and obtaining the cost volume and predicted depth map corresponding to the highest resolution scale space includes the following specific operations: The decoder contains four decoder blocks of different scales of 1 / 4, 1 / 8, 1 / 16, and 1 / 32 of the original image. It is first classified through a 3D convolutional layer, then passed through a ReLU linear correction layer and another 3D convolutional layer that maps each feature to 1 channel, and then output to a flexible maximum calculation layer to obtain the probability of each depth hypothesis; Among them, for the lowest resolution scale, the decoder only generates a preliminary depth estimate based on the corresponding original 3D cost volume, which only covers the entire depth range of the input scene in the initial hypothetical plane. The 3D cost volume and depth estimate obtained by the decoder of the lowest resolution scale will be used as the prior input of the decoder of the higher resolution scale after upsampling; At the high-resolution scale, based on the output of the previous resolution scale space, a search is performed on the similar depth plane, and the cost volume and predicted depth map corresponding to the highest resolution scale space are calculated by cascading the scales step by step. The method comprises: fusing depth maps of different perspectives into a unified point cloud representation through a visibility-based fusion algorithm, minimizing depth occlusion and conflict between different perspectives, projecting the fused depth map into a 3D space, obtaining dense 3D point cloud data, and obtaining a 3D reconstruction model, including: Before projecting into 3D space, the depth map is checked for geometric consistency to determine whether the depth estimation of the pixel is valid, and only the depth maps that meet the preset requirements are retained; Through the visibility-based fusion algorithm, the depth maps of different perspectives are fused into a unified point cloud representation, so that the depth occlusion and conflict between different perspectives are minimized. In the fusion process, the visible view of each pixel is determined, and the average value of all reprojected depths is used as the final depth estimate of the pixel; the fused depth map is projected into 3D space to obtain dense 3D point cloud data; The geometric consistency check on the depth map includes: First, a pixel with correlation p ref Through its depth estimation d ref Projecting to a different perspective; Then, through the pixels p ref Depth estimation at this viewpoint d i Get the pixel after back projection p reproj and depth estimation d reproj , and determine whether the depth estimation meets the following conditions: ,in, α and β They represent loss thresholds respectively. If a pixel can meet the above conditions at least from three viewing angles at the same time, the depth estimation of this pixel is considered valid, otherwise the depth estimation of this pixel is considered invalid.
2. The high-resolution image 3D reconstruction method based on deep learning according to claim 1, characterized in that: Said α and β is pre-set and can be adjusted α and β The value of controls the accuracy and completeness of the fused point cloud.
3. A computer system, characterized in that: include: one or more processors; A memory storing operable instructions, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations, wherein the operations include executing the process of the high-resolution image three-dimensional reconstruction method based on deep learning as described in claim 1 or 2.
4. A computer-readable medium storing software, characterized in that: The software includes instructions that can be executed by one or more computers, and when the instructions are executed by the one or more computers, they perform the process of the high-resolution image three-dimensional reconstruction method based on deep learning as described in claim 1 or 2.
Citation Information
Patent Citations
Multi-view stereoscopic vision three-dimensional scene reconstruction method based on deep learning
CN112734915A
Multi-view three-dimensional network three-dimensional reconstruction method and system
CN113066168A
Underwater target three-dimensional reconstruction method based on deep learning
CN115147709A
Three-dimensional reconstruction method and system based on deep learning
CN115330935A
Visible light multi-view image three-dimensional reconstruction method based on deep learning
CN115564888A
