Night three-dimensional reconstruction method and system based on self-supervised reflection perception depth estimation
By employing a self-supervised reflection-based depth estimation method, a depth estimation model is trained using daytime and nighttime image samples. Combined with reflection extraction and feature consistency loss function, the challenges of nighttime depth estimation and 3D reconstruction are solved, achieving efficient 3D reconstruction under low-light conditions.
Patent Information
- Application Number
- CN202311359534.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-18
AI Technical Summary
In low-light or dark environments, existing technologies struggle to accurately estimate depth and reconstruct 3D structures, especially due to the lack of effective supervision methods and high-quality labeled data, resulting in insufficient accuracy of deep learning methods in nighttime scenes.
A self-supervised reflection perception depth estimation method is adopted. By acquiring daytime and nighttime image sample pairs, a depth estimation model is trained using a reflection extraction network and a feature consistency loss function to generate a nighttime depth map. The depth map is then combined with the depth map for 3D reconstruction, including the application of reflection extraction, multi-level reflection depth network and feature consistency loss function.
It improves the accuracy and stability of nighttime depth estimation, enables high-quality 3D reconstruction under low-light conditions, and solves the problems of depth estimation and 3D reconstruction in nighttime scenes.
Smart Images

Figure CN117576305B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a nighttime 3D reconstruction method and system based on self-supervised reflection perception depth estimation. Background Technology
[0002] 3D reconstruction technology is a technique that uses sensors, image processing, and computational methods to reconstruct three-dimensional objects, scenes, or environments from one or more sets of two-dimensional images or sensor data. It acquires spatial information such as the shape, structure, and texture of the target object and transforms it into a mathematical model or 3D point cloud representation, thereby achieving accurate 3D modeling and visualization of the object or scene. This technology has wide applications in many fields, including computer vision, robotics, virtual reality, medical imaging, cultural heritage preservation, and architectural design, and is of great significance for understanding and analyzing the complex three-dimensional world. Nighttime 3D reconstruction technology refers to the technical field of 3D reconstruction and modeling of scenes in low-light or dark environments using sensors and computer vision technology.
[0003] Currently, the main methods used for nighttime 3D reconstruction include: using LiDAR to accurately measure object distances and create point cloud data for 3D reconstruction; using infrared imaging technology to acquire scene information in low-light environments for 3D reconstruction; and combining multiple sensors for 3D reconstruction. Compared to these methods, using depth maps for nighttime 3D reconstruction has wider applicability, can use standard RGB-D cameras to acquire scene information, and has higher real-time performance and information richness. Compared to daytime environments, nighttime environments typically have lower illumination conditions, resulting in lower brightness and contrast in nighttime images. This makes it difficult to capture object features and observe surface texture details, affecting the accuracy of depth perception and object recognition. When using depth maps for nighttime 3D reconstruction, it is necessary to acquire nighttime data from different viewpoints, which may include multiple nighttime images. In this case, for each viewpoint, nighttime depth estimation is required to obtain object depth information. This estimated depth information can then be used in the nighttime 3D reconstruction process to determine the position and shape of objects. However, due to the imaging limitations of visible light cameras, accurately performing nighttime depth estimation and 3D reconstruction in nighttime scenes with large lighting variations and missing object textures is a complex challenge. The task of depth estimation is to estimate pixel-aligned depth maps in an image. While significant progress has been made in depth estimation over the past few decades, nighttime depth estimation remains challenging due to the imaging limitations of visible light cameras. Supervised methods struggle to work well due to the lack of accurate ground-based nighttime depth labels. Therefore, self-supervised methods have shown their superiority because they do not require a large amount of accurate ground-based depth labels as supervision. Some works utilize additional data to achieve dense nighttime depth estimation, such as simultaneously fusing radar data and RGB images. Others propose event vision based on RGB and event data. The significant advantages of event data include very high dynamic range, high temporal resolution, less motion blur, and low power consumption. However, additional data is not always available. According to Tesla's theory, visual problems can always be well solved using visual data without requiring other types of data. Therefore, it is generally believed that only nighttime visual image data can solve the problem of nighttime depth estimation. To address this issue, some works utilize end-to-end methods to infer the depth of nighttime images, with carefully designed network structures achieving some success. Still other works use generative adversarial networks (GANs) to generate more texture-rich training samples from a small number of textured images to improve model performance in cases of missing texture. While these methods have produced some satisfactory depth estimates, they introduce complex network structures to estimate depth information and lack strong theoretical proof.
[0004] After obtaining the depth map of an image through depth estimation, 3D reconstruction of nighttime scenes is needed based on the depth map, aiming to reconstruct the 3D geometry and texture of objects at night from the depth information. Currently, researchers mostly use motion estimation and 3D reconstruction (Structure from Motion) and multi-view stereo vision methods for 3D reconstruction. These methods typically require large-scale input images and are computationally intensive, but they can obtain high-quality 3D models. Deep learning-based 3D reconstruction algorithms can learn complex feature representations, improving reconstruction accuracy. However, deep learning methods often lack large amounts of labeled data for training, and obtaining high-quality labeled data under low-light conditions is quite difficult, thus making them unsuitable for applications with high real-time requirements. Summary of the Invention
[0005] This invention provides a nighttime 3D reconstruction method and system based on self-supervised reflection perception depth estimation, which addresses the shortcomings of existing technologies in depth estimation for nighttime scenes and nighttime 3D reconstruction based on depth maps.
[0006] In a first aspect, the present invention provides a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation, comprising:
[0007] Obtain original daytime image samples, and convert the original daytime image samples to obtain nighttime image samples for the corresponding scene;
[0008] The daytime image samples and the nighttime image samples are used to form an image sample pair. The image sample pair is input into the self-supervised reflection perception depth estimation network for training. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model, and a nighttime depth map is output.
[0009] The nighttime depth map is processed using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model;
[0010] The nighttime image to be reconstructed is input into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0011] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation is provided. The method uses daytime image samples and nighttime image samples to form image sample pairs. These image sample pairs are input into a self-supervised reflection sensing depth estimation network for training. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model, and a nighttime depth map is output. The method includes:
[0012] The image samples are input into a reflection extraction network to obtain the daytime image reflection portion and the nighttime image reflection portion;
[0013] The daytime image reflection portion and the nighttime image reflection portion are input into a multi-level reflection depth network and trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map.
[0014] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection-sensing depth estimation is provided, wherein the image sample pairs are input into a reflection extraction network to obtain daytime image reflection parts and nighttime image reflection parts, including:
[0015] The daytime image reflection texture information and the nighttime image reflection texture information of the image sample pairs are extracted by the reflection extraction branch in the reflection extraction network, respectively;
[0016] The illumination information of the image sample pairs is extracted by the illumination extraction branch in the reflection extraction network;
[0017] The daytime image reflection portion is obtained based on the daytime image reflection texture information and the illumination information, and the nighttime image reflection portion is obtained based on the nighttime reflection texture information and the illumination information.
[0018] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection perception depth estimation is provided. The reflection portions of the daytime image and the nighttime image are input into a multi-level reflection depth network and trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map, including:
[0019] Obtain the daytime feature space vector of the daytime image reflection portion, and obtain the nighttime feature space vector of the nighttime image reflection portion;
[0020] The feature space distance between the daytime feature space vector and the nighttime feature space vector is minimized using the feature consistency loss function. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map.
[0021] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation is provided, which processes the nighttime depth map through a depth map-based nighttime 3D reconstruction network to obtain a nighttime 3D reconstruction model, including:
[0022] Generate a nighttime 3D point cloud based on the nighttime depth map;
[0023] The nighttime 3D point cloud is reconstructed in 3D to obtain a basic 3D structural model;
[0024] Texture mapping is performed on the basic 3D structural model to output the nighttime 3D reconstruction model.
[0025] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation is provided, which generates a nighttime 3D point cloud based on the nighttime depth map, comprising:
[0026] Obtain nighttime depth maps from different perspectives;
[0027] The spatial triangulation method is used to register the nighttime depth maps from different perspectives to generate the nighttime 3D point cloud.
[0028] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation is provided, which performs 3D reconstruction on the nighttime 3D point cloud to obtain a basic 3D structural model, including:
[0029] The nighttime 3D point cloud is sequentially filtered, reconstructed, and optimized to obtain an optimized nighttime 3D point cloud.
[0030] By using the point cloud reconstruction triangulation method, the optimized nighttime 3D point cloud is connected into a continuous 3D surface or voxel representation to obtain the basic 3D structural model.
[0031] According to the present invention, a nighttime 3D reconstruction method based on self-supervised reflection-sensing depth estimation is provided, which performs texture mapping on the basic 3D structure model and outputs the nighttime 3D reconstruction model, including:
[0032] The texture information of the original image sample is mapped to the basic three-dimensional structure model, and two-dimensional texture slices are obtained through a transformation function to form a texture space;
[0033] Camera pose information is obtained by using bundle adjustment to estimate camera pose. Based on the texture information of the original image sample and the camera pose information, the image pixel information is mapped onto the surface of the basic three-dimensional structure model to obtain the nighttime three-dimensional reconstruction model.
[0034] Secondly, the present invention also provides a nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation, comprising:
[0035] The image acquisition module is used to acquire raw daytime image samples and convert them to obtain nighttime image samples for the corresponding scene.
[0036] The depth estimation module is used to form image sample pairs with the daytime image samples and the nighttime image samples, input the image sample pairs into the self-supervised reflection perception depth estimation network for training, and after training, obtain the nighttime depth estimation model. Input a single nighttime image sample into the nighttime depth estimation model and output a nighttime depth map.
[0037] The 3D reconstruction module is used to process the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model.
[0038] The processing module is used to input the nighttime image to be reconstructed into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0039] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation as described above.
[0040] The present invention provides a nighttime 3D reconstruction method and system based on self-supervised reflection perception depth estimation, which realizes 3D reconstruction and modeling of scenes under low light or dark conditions, solves the problems of depth estimation and depth map-based nighttime 3D reconstruction in nighttime scenes, and makes up for the shortcomings of existing methods. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0042] Figure 1 This is a flowchart illustrating the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation provided by the present invention.
[0043] Figure 2 This is an overall framework diagram of the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation provided by the present invention;
[0044] Figure 3 This is a diagram illustrating the training process of the self-supervised reflection perception depth estimation framework provided by this invention.
[0045] Figure 4 This is a diagram illustrating the process of generating a depth map from a single nighttime image based on a self-supervised reflection sensing depth estimation framework provided by the present invention.
[0046] Figure 5This is a framework diagram of nighttime 3D reconstruction based on depth maps provided by the present invention;
[0047] Figure 6 This is a schematic diagram of the nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation provided by the present invention;
[0048] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0050] Figure 1 This is a flowchart illustrating the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation provided in an embodiment of the present invention, as shown below. Figure 1 As shown, it includes:
[0051] Step 100: Obtain original daytime image samples, and convert them to obtain nighttime image samples for the corresponding scene.
[0052] Step 200: Use the daytime image samples and the nighttime image samples to form an image sample pair, input the image sample pair into the self-supervised reflection perception depth estimation network for training, after training, obtain the nighttime depth estimation model, input a single nighttime image sample into the nighttime depth estimation model, and output the nighttime depth map;
[0053] Step 300: Process the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model;
[0054] Step 400: Input the nighttime image to be reconstructed into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0055] Specifically, such as Figure 2 The overall framework diagram shown is divided into two parts: self-supervised reflection sensing depth estimation and depth map-based nighttime 3D reconstruction. The nighttime image is input into the self-supervised reflection sensing depth estimation and the output is a depth map. The depth map is then processed by the depth map-based nighttime 3D reconstruction to output a 3D reconstruction model.
[0056] Based on Retinex theory, the self-supervised reflection-aware depth estimation algorithm improves the nighttime depth estimation performance of this invention by strengthening two main factors: the reflection extraction network and the feature consistency loss. By introducing a reflection extraction network to acquire texture information, it is found that texture is more beneficial for depth estimation. Then, the feature consistency loss function is used to help the baseline network learn the intrinsic features of the reflection layer containing texture information, which are common to both nighttime and daytime images, rather than learning image lighting information irrelevant to depth estimation.
[0057] According to classical retinex theory, the reflectance portion of an image primarily contains texture information, while the illumination portion often contains information easily affected by ambient light. Therefore, to extract the reflectance layer for nighttime depth estimation, this invention employs a Reflectance Extraction Network (REN) to extract common textures Ra from both daytime and nighttime images. t To fully utilize the shared information from both daytime and nighttime images, daytime images and their corresponding nighttime images are paired and input into the Reflectance Extraction Network (REN). It's important to note that the Reflectance Extraction Network is image-layer based; therefore, the size of the extracted reflective portion remains the same as the original image.
[0058] After extracting the reflection layer, a multilevel reflection depth network with feature consistency loss is used to extract effective features and estimate the depth map. This network includes a reflection encoder and a depth decoder. In this process, this embodiment of the invention utilizes two loss functions: a feature consistency loss function and a photometric loss function. The feature consistency loss drives the learning of a dense depth feature space, thereby matching the texture features of daytime and nighttime images. Then, the photometric loss is used to constrain the consistency of the depth map, making the estimated depth image smoother. High-quality nighttime depth maps can be obtained through reflection network extraction and reflection-based depth estimation. The combination of the two loss functions improves the accuracy and stability of nighttime depth estimation.
[0059] The depth map-based nighttime 3D reconstruction method does not require explicit 3D modeling of the scene, thus enabling it to handle complex nighttime scenes. The depth map generated in the previous step naturally handles complex lighting effects. The depth map-based nighttime 3D reconstruction method mainly includes the following steps: establishing a 3D point cloud, 3D reconstruction, and texture mapping, thereby obtaining a 3D reconstructed model.
[0060] Finally, the nighttime image to be reconstructed is input into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0061] This invention achieves 3D reconstruction and modeling of scenes under low light or dark conditions, solving the problems of depth estimation and depth map-based 3D reconstruction in nighttime scenes and making up for the shortcomings of existing methods.
[0062] Based on the above embodiments, an image sample pair is constructed using the daytime image sample and the nighttime image sample. The image sample pair is input into a self-supervised reflection perception depth estimation network to output a nighttime depth map, including:
[0063] The image samples are input into a reflection extraction network to obtain the daytime image reflection portion and the nighttime image reflection portion;
[0064] The daytime image reflection portion and the nighttime image reflection portion are input into a multi-level reflection depth network and trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map.
[0065] The image samples are input into a reflection extraction network to obtain daytime image reflection components and nighttime image reflection components, including:
[0066] The daytime image reflection texture information and the nighttime image reflection texture information of the image sample pairs are extracted by the reflection extraction branch in the reflection extraction network, respectively;
[0067] The illumination information of the image sample pairs is extracted by the illumination extraction branch in the reflection extraction network;
[0068] The daytime image reflection portion is obtained based on the daytime image reflection texture information and the illumination information, and the nighttime image reflection portion is obtained based on the nighttime reflection texture information and the illumination information.
[0069] Specifically, the daytime image reflectance portion and the nighttime image reflectance portion are input into a multi-level reflectance depth network, trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map, including:
[0070] Obtain the daytime feature space vector of the daytime image reflection portion, and obtain the nighttime feature space vector of the nighttime image reflection portion;
[0071] The feature space distance between the daytime feature space vector and the nighttime feature space vector is minimized using the feature consistency loss function. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map.
[0072] Specifically, the depth estimation unit comprises a reflection extraction network and a multi-level reflection depth network with feature consistency loss. To ensure that daytime and nighttime images of real-world scenes contain the same depth estimation information, the network input during training requires pairs of daytime and nighttime images. The nighttime images are converted from daytime images by CycleGAN. The reflection extraction network first extracts the reflection portion, which contains basic depth estimation information. Then, the multi-level reflection depth network with feature consistency loss estimates a reasonable depth map.
[0073] like Figure 3 As shown, during training, a dual-branch fully convolutional neural network is used to estimate reflectance and illuminance. The reflectance extraction branch extracts texture information from nighttime images, while the illuminance extraction branch extracts information that is easily affected by lighting conditions. Therefore, the dual-branch approach effectively extracts texture and removes interfering information, thereby improving the accuracy of nighttime depth estimation.
[0074] To ensure the continuity and consistency between nighttime depth maps and daytime depth maps of the same scene, this invention proposes a feature consistency loss function L. fc To minimize the distance between daytime and nighttime images in the feature space, the extracted features are expanded into one-dimensional feature vectors due to their large size, and the mean squared error between daytime and nighttime features is calculated. in, and Let represent the one-dimensional feature vectors of the daytime and nighttime images, respectively. Therefore, the feature consistency loss can minimize the distance between the daytime and nighttime images in the feature space. When daytime and nighttime images are input, both the reflection extraction network and the multi-level reflection depth network with feature consistency loss share weights.
[0075] like Figure 4 As shown, the network parameters of the reflection extraction network and the reflection-based multilayer depth estimation network remain unchanged during the generation of a depth map from a single nighttime image. Given a nighttime image as input, the reflection extraction branch of the reflection extraction network can directly extract nighttime texture information. The obtained reflection portion is then input into the multilayer depth estimation network to obtain the final estimated depth map. The entire process does not require paired daytime and nighttime image inputs, thus improving the efficiency of nighttime depth estimation.
[0076] Based on the above embodiments, the nighttime depth map is processed through a depth map-based nighttime 3D reconstruction network to obtain a nighttime 3D reconstruction model, including:
[0077] Generate a nighttime 3D point cloud based on the nighttime depth map;
[0078] The nighttime 3D point cloud is reconstructed in 3D to obtain a basic 3D structural model;
[0079] Texture mapping is performed on the basic 3D structural model to output the nighttime 3D reconstruction model.
[0080] The process of generating a nighttime 3D point cloud based on the nighttime depth map includes:
[0081] Obtain nighttime depth maps from different perspectives;
[0082] The spatial triangulation method is used to register the nighttime depth maps from different perspectives to generate the nighttime 3D point cloud.
[0083] Specifically, the nighttime 3D point cloud is reconstructed to obtain a basic 3D structural model, including:
[0084] The nighttime 3D point cloud is sequentially filtered, reconstructed, and optimized to obtain an optimized nighttime 3D point cloud.
[0085] By using the point cloud reconstruction triangulation method, the optimized nighttime 3D point cloud is connected into a continuous 3D surface or voxel representation to obtain the basic 3D structural model.
[0086] The process of performing texture mapping on the basic 3D structural model to output the nighttime 3D reconstruction model includes:
[0087] The texture information of the original image sample is mapped to the basic three-dimensional structure model, and two-dimensional texture slices are obtained through a transformation function to form a texture space;
[0088] Camera pose information is obtained by using bundle adjustment to estimate camera pose. Based on the texture information of the original image sample and the camera pose information, the image pixel information is mapped onto the surface of the basic three-dimensional structure model to obtain the nighttime three-dimensional reconstruction model.
[0089] Specifically, building a 3D point cloud is the first step in 3D reconstruction, and its purpose is to convert the depth map into a 3D point cloud. A 3D point cloud is a collection of points, where each point contains its spatial coordinate information and corresponding depth value. The method for building a 3D point cloud typically treats each pixel of the depth map as a point, with its depth value used as the Z-axis coordinate, and the pixel's 2D coordinates used as the X and Y-axis coordinates. After building the 3D point cloud, subsequent 3D reconstruction and texture mapping operations can be performed.
[0090] 3D reconstruction is the core step in 3D modeling, and its purpose is to reconstruct the 3D model of an object from a 3D point cloud. This patent uses the moving least squares method for surface reconstruction, fitting point cloud data to generate the surface model of the object.
[0091] Texture mapping is the final step in 3D reconstruction. Its purpose is to map the texture information of an image onto a 3D model, making the 3D model more realistic and lifelike. This invention uses bilinear texture interpolation to directly map the texture of an image onto a 3D model, while avoiding problems such as texture distortion.
[0092] like Figure 5 As shown, after obtaining a high-quality nighttime image depth map, accurate 3D reconstruction is performed by the 3D reconstruction module. The 3D reconstruction processing unit is a crucial component of this invention, achieving the generation of a high-quality 3D reconstruction model through a series of intricate and complex steps. First, 3D point cloud generation is one of the key steps in 3D reconstruction. It transforms each pixel into a point in 3D space using scene depth data obtained from depth estimation. The goal of this step is to accurately project each point in the scene onto its corresponding 3D coordinates and form a point cloud. In this invention, spatial triangulation is used to register depth images from different viewpoints, thereby generating the point cloud. Through this step, rich 3D information in the scene can be obtained, laying the foundation for subsequent 3D reconstruction.
[0093] Next, the 3D reconstruction further refines the acquired point cloud data and recovers a more detailed 3D structure. In this step, the invention performs filtering, reconstruction, and optimization operations on the point cloud to eliminate noise, fill holes, and improve reconstruction accuracy. Specifically, the point cloud filtering uses adaptive statistical filtering, which adaptively filters based on the local statistical characteristics of the point cloud to remove outliers and noise, thus improving reconstruction accuracy. In adaptive statistical filtering, the value of each point is replaced with the statistics of its neighboring points, such as the median or mean. This statistic can vary with time and space to adapt to different noise levels and texture features. Therefore, it can handle different types of noise and textures and performs well in various applications. Then, through point cloud reconstruction triangulation, the discrete point cloud is connected into a continuous 3D surface or voxel representation to improve the quality and consistency of the geometric structure.
[0094] Texture mapping, based on 3D reconstruction, maps the texture information of the original image to the reconstructed 3D model, placing the object's texture into a texture space coordinate system and establishing a mapping relationship from points on the object's surface to points in the texture space. Based on a 2D image input, a transformation function is used to establish the correspondence between grayscale and opacity / color, transforming the original image sequence into a 2D texture slice sequence, thus forming the texture space. The purpose of texture mapping is to apply the colors and textures of the 2D image to the 3D model, increasing the model's realism and detail. In this step, embodiments of the invention use bundle adjustment for camera pose estimation to obtain the camera's position and pose in 3D space. Using the camera's pose information and the texture information of the original image, pixels on the image can be mapped to the corresponding 3D model surface, thereby forming an accurate texture mapping.
[0095] Through three key steps—3D point cloud generation, 3D reconstruction, and texture mapping—the 3D reconstruction processing unit can transform the original depth estimation results into a high-quality 3D reconstruction model, recovering the geometry and structure of the scene while preserving its texture information and details.
[0096] The nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation provided by the present invention is described below. The nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation described below can be referred to in correspondence with the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation described above.
[0097] Figure 6 This is a schematic diagram of the structure of a nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation provided in an embodiment of the present invention, as shown below. Figure 6 As shown, it includes: an image acquisition module 61, a depth estimation module 62, a 3D reconstruction module 63, and a processing module 64, wherein:
[0098] Image acquisition module 61 is used to acquire original daytime image samples and convert them into nighttime image samples for the corresponding scene. Depth estimation module 62 is used to form image sample pairs with the daytime image samples and the nighttime image samples, input the image sample pairs into a self-supervised reflection perception depth estimation network for training, and obtain a nighttime depth estimation model after training. A single nighttime image sample is input into the nighttime depth estimation model to output a nighttime depth map. 3D reconstruction module 63 is used to process the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model. Processing module 64 is used to input the nighttime image to be reconstructed into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0099] Figure 7 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 7 As shown, the electronic device may include a processor 710, a communication interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a nighttime 3D reconstruction method based on self-supervised reflection perception depth estimation. This method includes: acquiring original daytime image samples; converting the original daytime image samples to obtain nighttime image samples for the corresponding scene; forming image sample pairs using the daytime image samples and the nighttime image samples; inputting the image sample pairs into a self-supervised reflection perception depth estimation network for training; obtaining a nighttime depth estimation model after training; inputting a single nighttime image sample into the nighttime depth estimation model; outputting a nighttime depth map; processing the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model; and inputting the nighttime image to be reconstructed into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
[0100] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0101] On the other hand, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation provided by the above methods. The method includes: acquiring original daytime image samples; converting the original daytime image samples to obtain nighttime image samples in the corresponding scene; forming image sample pairs with the daytime image samples and the nighttime image samples; inputting the image sample pairs into a self-supervised reflection sensing depth estimation network for training; obtaining a nighttime depth estimation model after training; inputting a single nighttime image sample into the nighttime depth estimation model; outputting a nighttime depth map; processing the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model; and inputting the nighttime image to be reconstructed into the 3D reconstruction model to obtain a nighttime 3D reconstruction result.
[0102] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation, characterized in that, include: Obtain original daytime image samples, and convert them to obtain nighttime image samples for the corresponding scene. Image sample pairs are constructed using the original daytime image samples and the nighttime image samples. These image sample pairs are then input into a self-supervised reflection perception depth estimation network for training. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model, and the nighttime depth map is output, including: The image samples are input into a reflection extraction network to obtain the daytime image reflection portion and the nighttime image reflection portion; The daytime image reflection portion and the nighttime image reflection portion are input into a multi-level reflection depth network and trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map. The image samples are input into a reflection extraction network to obtain daytime image reflection components and nighttime image reflection components, including: The daytime image reflection texture information and the nighttime image reflection texture information of the image sample pairs are extracted by the reflection extraction branch in the reflection extraction network, respectively; The illumination information of the image sample pairs is extracted by the illumination extraction branch in the reflection extraction network; The daytime image reflection portion is obtained based on the daytime image reflection texture information and the illumination information; the nighttime image reflection portion is obtained based on the nighttime reflection texture information and the illumination information. The daytime image reflectance and the nighttime image reflectance are input into a multi-level reflectance depth network and trained using a feature consistency loss function. After training, the nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map, including: Obtain the daytime feature space vector of the daytime image reflection portion, and obtain the nighttime feature space vector of the nighttime image reflection portion; The feature space distance between the daytime feature space vector and the nighttime feature space vector is minimized using the feature consistency loss function. After training, a nighttime depth estimation model is obtained. A single nighttime image sample is input into the nighttime depth estimation model to obtain the nighttime depth map. The nighttime depth map is processed using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model; The nighttime image to be reconstructed is input into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
2. The nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation according to claim 1, characterized in that, The nighttime depth map is processed using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model, including: Generate a nighttime 3D point cloud based on the nighttime depth map; The nighttime 3D point cloud is reconstructed in 3D to obtain a basic 3D structural model; Texture mapping is performed on the basic three-dimensional structural model to output the three-dimensional reconstructed model.
3. The nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation according to claim 2, characterized in that, Generating a nighttime 3D point cloud based on the nighttime depth map includes: Obtain nighttime depth maps from different perspectives; The spatial triangulation method is used to register the nighttime depth maps from different perspectives to generate the nighttime 3D point cloud.
4. The nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation according to claim 2, characterized in that, The nighttime 3D point cloud is reconstructed to obtain a basic 3D structural model, including: The nighttime 3D point cloud is sequentially filtered, reconstructed, and optimized to obtain an optimized nighttime 3D point cloud. By using the point cloud reconstruction triangulation method, the optimized nighttime 3D point cloud is connected into a continuous 3D surface or voxel representation to obtain the basic 3D structural model.
5. The nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation according to claim 2, characterized in that, Texture mapping is performed on the basic 3D structural model to output the 3D reconstructed model, including: The texture information of the original daytime image sample is mapped to the basic three-dimensional structure model, and two-dimensional texture slices are obtained through a transformation function to form a texture space. Camera pose information is obtained by using bundle adjustment to estimate camera pose. Based on the texture information of the original daytime image sample and the camera pose information, the image pixel information is mapped onto the surface of the basic three-dimensional structure model to obtain the three-dimensional reconstruction model.
6. A nighttime 3D reconstruction system based on self-supervised reflection sensing depth estimation, based on the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation as described in any one of claims 1 to 5, characterized in that, include: The image acquisition module is used to acquire raw daytime image samples and convert them to obtain nighttime image samples for the corresponding scene. The depth estimation module is used to form image sample pairs with the original daytime image samples and the nighttime image samples, input the image sample pairs into the self-supervised reflection perception depth estimation network for training, and obtain the nighttime depth estimation model after training. A single nighttime image sample is input into the nighttime depth estimation model to output the nighttime depth map. The 3D reconstruction module is used to process the nighttime depth map using a depth map-based nighttime 3D reconstruction method to obtain a 3D reconstruction model. The processing module is used to input the nighttime image to be reconstructed into the 3D reconstruction model to obtain the nighttime 3D reconstruction result.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the nighttime 3D reconstruction method based on self-supervised reflection sensing depth estimation as described in any one of claims 1 to 5.
