Photometric three-dimensional reconstruction system based on neural network fusion light field information

By using a dense connection structure combining neural networks and light field cameras in photometric stereo reconstruction, the problem of insufficient utilization of traditional methods in reconstructing moving objects and features is solved, high-precision and robust normal recovery is achieved, and the application scenarios are broadened and Simplified process.

CN118735982APending Publication Date: 2024-10-01XITONG (TIANJIN) OPTOELECTRONICS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411055647.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional photometric stereo methods have limitations in reconstructing moving objects, and deep learning methods have complex network structures, insufficient feature utilization, and require the direction of the light source as input, resulting in inconvenient application in actual scenes.

Method used

Using a dense connection structure based on neural networks, combined with light field camera information, the network is built through the dense connection idea of ​​DenseNet to improve feature utilization without the need for light source vector input. Light field cameras are used to improve the resolution of light field information, and algorithms are designed to process images. Achieve high-precision normal recovery.

Benefits of technology

It achieves higher accuracy and robust normal recovery effects, broadens application scenarios, simplifies the device and process, avoids errors caused by inaccurate light source vectors, and provides a good solution for low-frequency reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735982A_ABST
    Figure CN118735982A_ABST
Patent Text Reader

Abstract

The invention provides a photometric three-dimensional reconstruction system based on neural network fusion light field information. The photometric three-dimensional reconstruction system comprises a light field information acquisition device, a neural network-photometric three-dimensional surface normal recovery module, a light field information surface normal recovery module and a data fusion output module. The light field information acquisition device inputs acquired data into a neural network structure, the utilization rate of details is improved by adopting a feature reuse mode, and a photometric three-dimensional surface normal graph is obtained without taking a light source vector as input; meanwhile, inputting the light field information into a light field information surface normal recovery module to obtain a light field information surface normal graph; multi-source surface normal images are fused in the data fusion output module, the utilization rate of light field information is improved through a light field camera with a micro-lens array, then an algorithm is designed to process shot images, a good low-frequency reconstruction effect is obtained, higher precision is achieved, and a more stable normal recovery effect is achieved. Meanwhile, the experiment scene is widened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a photometric stereo 3D reconstruction system based on neural network fusion of light field information, belonging to the technical field of 3D reconstruction. Background Art

[0002] In the early 1980s, Professor Woodham first proposed the concept of photometric stereo. He believed that by using the light and dark information of multiple images under different lighting conditions, the surface normal of an object can be solved, and by integrating the gradient field of the depth of the object surface, the three-dimensional shape of the object can be finally obtained. Traditional photometric stereo algorithms usually require placing the object in a dark room for shooting in a laboratory environment, and using a specific calibration method to control the direction of the light source to avoid interference from ambient light.

[0003] Traditional photometric stereo methods require different light sources to illuminate the object in turn, which has certain limitations when reconstructing moving objects. In order to solve this problem, multispectral photometric stereo methods have been proposed. However, these methods require a one-to-one correspondence between the light source and the image, that is, the direction of the light source needs to be known in advance, which brings inconvenience. Thanks to the rapid development of deep learning technology, the application of deep learning in the field of photometric stereo has increased in recent years. CN110060212B provides a multispectral photometric stereo surface normal recovery method based on deep learning. The initial surface normal is estimated by a traditional algorithm, and then it is input into the network together with the captured image for training, so that an accurate surface normal can be obtained. However, the network structure provided by this method does not make sufficient use of the input features, resulting in a more complex or difficult to understand network setting, and the computing power cost cannot match the improved accuracy; at the same time, the light source direction is required as input for network training, which is more demanding for actual scenes with many light sources or inconvenient to obtain the light source direction.

[0004] Light field cameras are an advanced imaging technology that can capture additional information about the direction and intensity of light. Compared to traditional cameras that only record the position and color of light passing through the lens, light field cameras can record the direction and intensity of light at these positions, thus providing richer and more comprehensive light information. However, due to the limitations of the microlens array, the resolution is reduced, affecting some high-frequency detail effects. Summary of the invention

[0005] The present invention proposes a photometric stereo 3D reconstruction system based on neural network fusion of light field information, which aims to solve the problem of insufficient utilization of captured image features. The network is built through the dense connection idea of ​​DenseNet, and the connection between each convolution module is established in a feature reuse manner, so as to improve the utilization rate of details. No light source vector is required as input. All training inputs are only the captured object pictures. The utilization rate of light field information is improved by a light field camera with a microlens array, and an algorithm is designed to process the captured pictures to obtain a good low-frequency reconstruction effect, achieve higher accuracy, realize a more robust normal recovery effect, and broaden the experimental scene.

[0006] The technical solution of the present invention: A photometric stereo 3D reconstruction system based on neural network fusion of light field information includes the following parts: a light field information acquisition device, a neural network-photometric stereo surface normal recovery module, a light field information surface normal recovery module and a data fusion output module.

[0007] Among them, the light field information acquisition device is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; the data fusion output module is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; After the light field information acquisition device takes a picture, it performs image decoding, exports and demodulates the refocusable picture, and inputs them into the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module respectively; the neural network-photometric stereo surface normal recovery module outputs a multispectral photometric stereo reconstructed depth map; the light field information surface normal recovery module outputs a light field camera depth map; the data fusion output module fuses the multispectral photometric stereo depth map and the light field camera depth map and outputs them.

[0008] Furthermore, the light field information acquisition device includes a light shield, a slide rail, a light source, and a light field camera; the slide rail is arranged on the light shield; the light source is an RGB three-color light source, which is installed on the slide rail; the acquisition camera is installed on the top of the light shield, and the light field camera is provided with a microlens array between the imaging lens and the image sensor.

[0009] As a preferred solution, the microlens array is placed on the imaging plane of the main lens of the light field camera; the microlens array is arranged in parallel with the image sensor, and the spacing is equal to the focal length of the microlens array; As a preferred solution, the microlens array adopts a hexagonal arrangement, contains 15×15 microlenses, and can capture and demodulate 225 viewing angle images at a time.

[0010] Furthermore, in the neural network-photometric stereo surface normal restoration module, a densely connected network structure design is adopted: the densely connected network structure includes a preprocessing convolution layer, a dense block, a transition layer and a regression layer, which contains several dense blocks.

[0011] Furthermore, the preprocessing convolution layer is located before the initial dense block, the regression layer is located after the final dense block, and several dense blocks are connected through transition layers.

[0012] As a preferred solution, the convolution kernel of the preprocessing convolution layer is 1×1.

[0013] As a preferred solution, a batch normalization layer, an activation function, a convolution layer and a pooling layer are sequentially arranged in the transition layer; the convolution kernel of the convolution layer of the transition layer is 1×1, and the activation function of the transition layer is ReLU.

[0014] As a preferred solution, multiple deconvolution layers and one convolution layer are sequentially arranged in the regression layer; the convolution kernel of the deconvolution layer is 4×4 and the step size is 2; the convolution kernel of the convolution layer of the regression layer is 3×3.

[0015] Furthermore, the dense block includes several dense layers, which are sequentially distributed in the dense block; the dense layer is provided with a channel-increasing convolution layer and an operation convolution layer, and the channel-increasing convolution layer is before the operation convolution layer.

[0016] As a preferred solution, the convolution kernel of the channel-added convolution layer is 1×1, and a batch normalization layer and an activation function are sequentially set before the channel-added convolution layer, and the activation function is LeakyReLU.

[0017] As a preferred solution, the convolution kernel of the convolution layer is 3×3, and a batch normalization layer and an activation function are set in sequence before the convolution layer, and the activation function is LeakyReLU.

[0018] As a preferred solution, the optimization algorithm used in the densely connected network structure is the Adam algorithm, and the loss function used is the cosine similarity loss function.

[0019] Furthermore, after the light field information acquisition device captures the image, the channels are separated to obtain multiple single-channel grayscale images, which are respectively input into the neural network-photometric stereo surface normal recovery module to obtain multiple single-channel normal vector recovery results; the multiple single-channel normal vector recovery results are averaged to obtain the final reconstructed object surface normal map.

[0020] Furthermore, the light field information surface normal recovery module specifically includes the following steps: (1) Perform camera calibration by processing the files provided by the light field information acquisition device; (2) Analyze the sub-aperture image and perform distortion correction; (3) A sub-pixel displacement method based on phase shift is used to estimate the depth map. A cost function is set for optimization, and subsequent visual optimization and enhancement are performed to obtain the corresponding depth map.

[0021] As a preferred solution, the fusion method adopted by the data fusion output module is filtering fusion: the multispectral photometric stereo depth map and the light field camera depth map are respectively mapped in the frequency domain by forward Fourier transform to obtain frequency domain images, and the low-frequency part of the light field camera depth map and the high-frequency part of the multispectral photometric stereo depth map are fused with the weight coefficient through the frequency domain filter, and then the mixed frequency domain image is inverse Fourier transformed to obtain the final depth map.

[0022] Furthermore, the frequency domain filter uses an algorithm to adaptively set thresholds for different objects. Specifically, the threshold of the multispectral photometric stereo depth map is automatically adjusted by identifying the proportion of high-frequency details on the frequency domain image; the weight coefficient is adaptively adjusted according to the composition of high- and low-frequency details in the input image.

[0023] As a preferred solution, the fusion method adopted by the data fusion output module is wavelet transform: discrete wavelet transform is performed on the multispectral photometric stereo depth map and the light field camera depth map respectively to obtain wavelet coefficients respectively; the high-frequency part is extracted from the wavelet coefficients of the multispectral photometric stereo depth map, specifically, the wavelet coefficients of the higher level are set to zero, and the detail information of the lower level is retained; the low-frequency part is extracted from the wavelet coefficients of the light field camera depth map, specifically, the wavelet coefficients of the lower level are set to zero, and the smooth information of the higher level is retained; the above-mentioned retained information is fused by weighted average to obtain the fused wavelet coefficients; the fused wavelet coefficients are inversely transformed to obtain the final depth map.

[0024] Beneficial effects of the present invention: 1) The application scenarios are wider and can be applied to larger image input sizes; 2) The device is simple, and only needs to input the picture of the surface of the object, while introducing the light field advantage, and no other operations are required. The process is relatively simple and easy to implement; 3) Compared with the cumbersome multi-input calibration of photometric stereo tasks, the network design provided by this application is simpler and has good reconstruction effect, while also avoiding some errors caused by inaccurate light source vectors; 4) Based on the idea of ​​hybrid reconstruction, the utilization rate of light field information is improved, and the captured images are processed by algorithms to obtain good low-frequency reconstruction effects, providing a highly robust solution to the low-frequency distortion problem of photometric stereo 3D reconstruction technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Attached Figure 1 It is a schematic diagram of the structure of the system of the present invention.

[0026] Attached Figure 2 It is a schematic flow chart of the multi-spectral photometric stereo surface normal restoration method of the present invention.

[0027] Attached Figure 3 It is a flow chart of a densely connected network.

[0028] Attached Figure 4 It is a structural diagram of a dense block.

[0029] Attached Figure 5 It is a schematic diagram of the structure of the dense layer.

[0030] Attached Figure 6 It is a structural diagram of the transition layer.

[0031] Attached Figure 7 It is a schematic diagram of the structure of the regression layer.

[0032] Attached Figure 8 It is a structural schematic diagram of a light field information acquisition device.

[0033] Attached Fig. 9 It is a schematic diagram of the layout of the light field camera microlens array.

[0034] Attached Fig.10 It is a flowchart of depth map filtering fusion. DETAILED DESCRIPTION

[0035] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings.

[0036] Compare with Figure 1 , a photometric stereo 3D reconstruction system based on neural network fusion of light field information, including the following parts: a light field information acquisition device, a neural network-photometric stereo surface normal recovery module, a light field information surface normal recovery module and a data fusion output module. Among them, the light field information acquisition device is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; the data fusion output module is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; After the light field information acquisition device takes a picture, it performs image decoding, exports and demodulates the refocusable picture, and inputs them into the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module respectively; the neural network-photometric stereo surface normal recovery module outputs a multispectral photometric stereo reconstructed depth map; the light field information surface normal recovery module outputs a light field camera depth map; the data fusion output module fuses the multispectral photometric stereo depth map and the light field camera depth map and outputs them.

[0037] Compare with Figure 2After the light field information acquisition device captures the image, the channels are separated to obtain multiple single-channel grayscale images, which are respectively input into the neural network-photometric stereo surface normal recovery module to obtain multiple single-channel normal vector recovery results; the multiple single-channel normal vector recovery results are averaged to obtain the final reconstructed object surface normal map.

[0038] The network design of this application only inputs pictures of objects from different perspectives. The color pictures obtained by shooting are obtained by channel separation, and the output is the normal vector map corresponding to the object. The overall process is an image-to-image restoration process. Using the built light field information acquisition device, control the intensity of the RGB three-color light source to be the same, use the camera on the top of the system to take pictures, and then separate the channels of the obtained color pictures to obtain three single-channel grayscale images, corresponding to the three light sources, and input them into the densely connected network structure. Figure 3 The number of dense layers in the dense block used in the figure is 6, 6, 6, and 6, respectively. Therefore, the number of channels after the last dense block is 183. In the regression layer, the number of channels of the three deconvolution layers are 128, 96, and 64, respectively, to achieve upsampling of the size and gradually reduce the number of channels. The number of channels of the convolution layer in the regression layer is 3, which is restored to the three channels corresponding to RGB as the output.

[0039] Compare with Figure 4-7 The densely connected network structure includes a preprocessing convolution layer (Conv0), a dense block (Denseblock), a transition layer (Transition) and a regression layer (Regressor). It establishes a dense connection between all the previous layers and the subsequent layers, and realizes feature reuse through the connection of features on the channel; each Denseblock includes several dense layers (Denselayer), each Denselayer contains two convolution layers, one convolution kernel is 1×1, which preprocesses the image and increases its number of channels, and the other convolution kernel is 3×3, which performs convolution operations on the image. The two activation functions use the variant of ReLU, LeakyReLU, and two BN layers, that is, regularization is applied to avoid overfitting. Transition is a transition layer, which is between several Denseblocks. It mainly plays a connecting role. It downsamples and changes the number of channels through pooling to improve the efficiency of training. Regressor is a regression layer, which mainly realizes the reduction of the number of image channels and the upsampling of the size. The downsampling in the corresponding transition layer restores the image to its original size.

[0040] In addition, the optimization algorithm for densely connected networks is the Adam algorithm, and the loss function used is the cosine similarity loss function.

[0041] Compare with Figure 8 , 9The light field information acquisition device includes a light shield, a slide rail, a light source, and a light field camera; the slide rail is set on the light shield; the light source is an RGB three-color light source, which is installed on the slide rail; the acquisition camera is installed on the top of the light shield. The light field camera sets a microlens array between the imaging lens and the sensor, and the microlens array is placed on the imaging plane of the main lens of the light field camera; the microlens array is arranged parallel to the sensor, and the spacing is equal to the focal length of the microlens array; the microlens array adopts a hexagonal arrangement, contains 15×15 microlenses, and takes and demodulates 225 perspective images at a time.

[0042] The light field camera used is that of Lytro, and the image decoding after shooting is performed using Lytro's software. The specific steps of the light field camera 3D reconstruction are: calibrating the camera by processing the files that come with the camera, such as white images; analyzing the sub-aperture image for distortion correction; estimating the depth map using the phase-shift-based sub-pixel displacement method, setting the cost function for optimization, and performing subsequent visual optimization and enhancement to obtain the corresponding depth map.

[0043] Attached Fig.10 The process of the filtering fusion method is represented as follows: the multispectral photometric stereo depth map and the light field camera depth map are respectively mapped in the frequency domain by forward Fourier transform to obtain frequency domain images, the low-frequency part of the light field camera depth map and the high-frequency part of the multispectral photometric stereo depth map are fused with the weight coefficient through the frequency domain filter, and then the mixed frequency domain image is inverse Fourier transformed to obtain the final depth map.

[0044] The frequency domain filter uses an algorithm to adaptively set thresholds for different objects. Specifically, it automatically adjusts the threshold of the multispectral photometric stereo depth map by identifying the proportion of high-frequency details on the frequency domain image; the weight coefficient is adaptively adjusted according to the composition of high- and low-frequency details in the input image.

[0045] The fusion strategy and weight selection of the depth images restored by the two methods can be manually set according to actual needs, or can be adaptively adjusted according to the composition of high- and low-frequency details in the input image. Different weight allocations and fusion strategies can be tried to obtain the best fusion effect.

[0046] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A photometric stereo 3D reconstruction system based on neural network fusion of light field information, characterized in that: It includes the following parts: a light field information acquisition device, a neural network-photometric stereo surface normal recovery module, a light field information surface normal recovery module and a data fusion output module; the light field information acquisition device is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; the data fusion output module is respectively connected to the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module; After the light field information acquisition device takes a picture, it performs image decoding, exports and demodulates the refocusable picture, and inputs them into the neural network-photometric stereo surface normal recovery module and the light field information surface normal recovery module respectively; the neural network-photometric stereo surface normal recovery module outputs a multispectral photometric stereo reconstruction depth map; the light field information surface normal recovery module outputs a light field camera depth map; the data fusion output module fuses the multispectral photometric stereo depth map and the light field camera depth map and then outputs them.

2. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that The light field information acquisition device includes a light shield, a slide rail, a light source, and a light field camera; the slide rail is arranged on the light shield; the light source is an RGB three-color light source, which is installed on the slide rail; the acquisition camera is installed on the top of the light shield, and the light field camera is provided with a microlens array between the imaging lens and the image sensor.

3. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 2 is characterized in that The microlens array is placed on the imaging plane of the main lens of the light field camera; the microlens array is arranged in parallel with the image sensor, and the spacing is equal to the focal length of the microlens array; The microlens array is arranged in a hexagonal shape, includes 15×15 microlenses, and can capture and demodulate 225 viewing angle images at one time.

4. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that In the neural network-photometric stereo surface normal recovery module, a densely connected network structure design is adopted: The densely connected network structure includes a preprocessing convolution layer, a dense block, a transition layer and a regression layer; The densely connected network structure includes several dense blocks, the preprocessing convolution layer is located before the initial dense block, the regression layer is located after the final dense block, and the several dense blocks are connected by transition layers; The convolution kernel of the preprocessing convolution layer is 1×1; A batch normalization layer, an activation function, a convolution layer, and a pooling layer are sequentially arranged in the transition layer; the convolution kernel of the convolution layer of the transition layer is 1×1, and the activation function of the transition layer is ReLU; A plurality of deconvolution layers and a convolution layer are sequentially arranged in the regression layer; the convolution kernel of the deconvolution layer is 4×4 and the step size is 2; the convolution kernel of the convolution layer of the regression layer is 3×3; The optimization algorithm of the densely connected network is the Adam algorithm, and the loss function used is the cosine similarity loss function.

5. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 4, characterized in that The dense block contains several dense layers, which are distributed sequentially in the dense block; a channel-added convolution layer and an operation convolution layer are provided in the dense layer, and the channel-added convolution layer is before the operation convolution layer; the convolution kernel of the channel-added convolution layer is 1×1, and a batch normalization layer and an activation function are sequentially arranged before the channel-added convolution layer, and the activation function is LeakyReLU; the convolution kernel of the operation convolution layer is 3×3, and a batch normalization layer and an activation function are sequentially arranged before the operation convolution layer, and the activation function is LeakyReLU.

6. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 5, characterized in that The number of dense blocks in the densely connected network is 4, and the number of dense layers in each dense block is 6, 6, 6, and 6 respectively; the color image is separated through the channels to obtain 3 single-channel grayscale images, and the number of channels after the last dense block is 183; in the regression layer, 3 deconvolution layers are provided, and the number of channels of each layer is 128, 96, and 64; the number of channels of the convolution layer of the regression layer is 3, corresponding to the 3 channels of RGB.

7. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that After the light field information acquisition device captures an image, the channels are separated to obtain a plurality of single-channel grayscale images, which are respectively input into the neural network-photometric stereo surface normal recovery module to obtain a plurality of single-channel normal vector recovery results; the plurality of single-channel normal vector recovery results are averaged to obtain a final reconstructed object surface normal map.

8. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that The light field information surface normal recovery module specifically includes the following steps: (1) Processing the files provided by the light field information acquisition device to perform camera calibration; (2) Analyze the sub-aperture image and perform distortion correction; (3) A sub-pixel displacement method based on phase shift is used to estimate the depth map, and a cost function is set for optimization, and subsequent inspection optimization and enhancement are performed to obtain the corresponding depth map.

9. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that The fusion method adopted by the data fusion output module is filtering fusion: the multi-spectral photometric stereo depth map and the light field camera depth map are respectively mapped in the frequency domain by forward Fourier transform to obtain a frequency domain image, the low-frequency part of the light field camera depth map and the high-frequency part of the multi-spectral photometric stereo depth map are fused according to the weight coefficient by the frequency domain filter, and then the mixed frequency domain image is inversely Fourier transformed to obtain the final depth map; The frequency domain filter uses an algorithm to adaptively set thresholds for different objects, specifically by identifying the proportion of high-frequency details on the frequency domain image and automatically adjusting the threshold of the multispectral photometric stereo depth map; the weight coefficient is adaptively adjusted according to the composition of high- and low-frequency details in the input image.

10. The photometric stereo 3D reconstruction system based on neural network fusion of light field information according to claim 1, characterized in that The fusion method adopted by the data fusion output module is wavelet transform: discrete wavelet transform is performed on the multispectral photometric stereo depth map and the light field camera depth map respectively to obtain wavelet coefficients respectively; high-frequency parts are extracted from the wavelet coefficients of the multispectral photometric stereo depth map, specifically, the wavelet coefficients of the higher level are set to zero, and the detail information of the lower level is retained; low-frequency parts are extracted from the wavelet coefficients of the light field camera depth map, specifically, the wavelet coefficients of the lower level are set to zero, and the smooth information of the higher level is retained; the above-mentioned retained information is fused by weighted average to obtain fused wavelet coefficients; the fused wavelet coefficients are inversely transformed to obtain the final depth map.

Citation Information

Cited By

  • Multispectral photometric three-dimensional imaging system based on nanocrystalline color conversion

    CN122053811A