A method and system for estimating surface normal of a transparent object

Through a network framework combining deep learning and polarization information, the physical prior and polarization information are integrated, and the multivalued and transmission impact problems in the surface normal estimation of transparent objects are solved, achieving high-precision surface normal recovery and complex transparent objects handling.

CN114972464BActive Publication Date: 2024-11-01TSINGHUA SHENZHEN INTERNATIONAL GRADUATE SCHOOL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210594057.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-11-01
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

The existing deep learning architecture is difficult to effectively estimate the surface normals of transparent objects, especially due to the complex interaction of transmitted light and the multivalued nature of polarization information. The existing deep learning architecture has not been able to directly migrate to transparent objects. , and existing methods are difficult to deal with complex transparent objects.

Method used

Using a combination of deep learning and polarization information, a network framework consisting of physical prior branches, original polarization branches and physical prior confidence branches are used to estimate surface normals using single-shot polarization images to fuse features to improve predictions. Accuracy and mitigate the credibility decline of Fresnel specular reflection model through the concept of physical prior confidence.

Benefits of technology

It realizes the recovery of the surface normal information of transparent objects under a single shooting condition, improves the prediction accuracy, can effectively process complex transparent objects, and reduces errors under the influence of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114972464B_ABST
    Figure CN114972464B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for estimating the surface normal of a transparent object. The method comprises: using a network framework to estimate the surface normal of a transparent object to be estimated, constructing a network framework including three encoders and a decoder; the encoders are respectively a physical prior branch, an original polarization branch, and a physical prior confidence branch; using a polarization camera to obtain images of four different polarization angles of the transparent object to be estimated by single shooting, obtaining the original linear polarization degree map, the original linear polarization angle map, and physical prior information of each pixel in the image; inputting the network framework respectively, extracting the features between the physical prior branch and the original polarization branch, and fusing them under the guidance of the features of the physical prior confidence branch to obtain the fused features; the fused features are input into the decoder to predict the surface normal map of the transparent object to be estimated. The concept of physical prior confidence is used to improve the accuracy of the prediction of the surface normal of the transparent object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision and 3D shape estimation, and in particular to a method and system for estimating the surface normal of a transparent object. Background Art

[0002] Transparent objects are common in life. Due to their unique visual characteristics, the 3D reconstruction methods commonly used in computer vision are difficult to apply directly to transparent objects.

[0003] The surface normal of an object can provide detailed information about the surface of the object. Methods based on photometric information can recover pixel-level surface normals from images, such as shape from shading (SfS), photometric stereo (PS), etc. These methods perform well in non-transparent objects, but due to the complex refraction and reflection between transparent objects and light, these methods cannot be used for surface estimation of transparent objects. Compared with SfS and PS methods, imaging from polarization information (SfP) can establish the relationship between the polarization information of the surface of a transparent object and its surface geometry. When a beam of unpolarized light (natural light) hits the surface of a transparent object, reflection and refraction will occur. The reflected light and the refracted light will be polarized, thus becoming partially polarized light with polarization information. The change in the polarization information of the reflected light is related to the surface normal and the incident direction of the point. This relationship can be described by the Fresnel equation. By observing the polarization information of the reflected light, the surface normal information of the point can be analyzed.

[0004] The current difficulties in restoring the surface of transparent objects using the SfP method are as follows:

[0005] First, there is π ambiguity and π / 2 ambiguity in the polarization information of surface reflected light, which results in a one-to-many relationship between the polarization state of the reflected light and the surface normal of the object, rather than a one-to-one relationship. One polarization state corresponds to four possible surface normals.

[0006] Second, due to the complex interactions of light inside transparent objects, existing transparent object SfP methods follow the assumption that specular reflection light dominates, but background transmission and light refraction will destroy this assumption, resulting in larger errors.

[0007] 3. Data-driven deep learning methods can solve the first problem, but existing deep learning architectures do not consider the interference caused by background transmission of transparent objects, making it difficult to directly migrate to transparent objects.

[0008] In order to ensure that the transparent object satisfies the assumption of specular reflection dominance as much as possible, Saito et al. placed the transparent object in an optical diffuse sphere to ensure that the intensity of the incident light in all directions is uniform, and strong specular reflection light can be obtained when observing the transparent object from any direction.

[0009] In order to solve the multi-value problem of polarization information and surface normals, Japanese scholar Miyazaki used the method of rotating target measurement to match the feature points of the two polarization states before and after rotation, and then solve the normal. Since the polarization information on the surface of transparent objects will be affected by background transmission and internal refraction, Miyazaki et al. used the method of reverse polarization ray tracing to optimize the shape of transparent objects. However, the objects studied by these methods are simple transparent spheres or transparent glass plates, which are difficult to apply to the restoration of complex transparent object surfaces.

[0010] The combination of deep learning and SfP method greatly improves the accuracy of SfP method. Ba et al. combined deep learning with SfP method for the first time and established the first real-world object-level dataset. The experimental results show that deep learning method can solve the multi-value problem well. Deschaintre et al. combined deep learning with polarization information to simultaneously predict the surface shape of an object and the bidirectional reflectance distribution function of the surface. In addition, polarization information and deep learning have been extended to other tasks, such as scene-level normal estimation, human body shape estimation, etc.

[0011] deepSfP is the first deep learning framework that directly processes point clouds. However, the transmission effect of transparent objects reduces the reliability of physical prior information. Directly inputting physical prior information into the network cannot achieve good results on transparent objects.

[0012] Inverse Polaization Raytracing (IPR) is a method that uses polarization information to perform 3D reconstruction of transparent objects. However, it has the following shortcomings:

[0013] 1. High dependence on the initial model: The IDR optimization algorithm requires an initial model of the target object, and the final optimization effect depends on the accuracy of the initial model. However, in most cases, it is costly to obtain a rough model of a transparent object.

[0014] 2. The optimization time is long. The optimization algorithm adopted by IDR needs to run the polarization ray tracing algorithm every time, and the number of optimization steps is also large, which leads to a long time for the overall optimization algorithm.

[0015] 3. It is difficult to use for complex transparent objects. The IDR algorithm only considers the problem of a flat back, and does not consider objects with a complex back shape. Therefore, the IDR algorithm is difficult to apply to more complex transparent objects.

[0016] In the prior art, the polarization data sets used for deep learning are all for non-transparent objects, and there is a lack of polarization data sets for transparent objects. In addition, the existing deep learning architectures directly use polarization information as input and surface normals as output. This architecture is more suitable for non-transparent objects, but the transmission of transparent objects will cause greater interference. Therefore, this architecture with original polarization information input is difficult to directly migrate to transparent objects.

[0017] In the existing technology, the deep learning polarization framework has difficulty in dealing with the reduced reliability of physical prior information caused by the characteristics of transparent objects themselves.

[0018] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention

[0019] In order to solve the existing problems, the present invention provides a surface normal estimation method and system for a transparent object.

[0020] In order to solve the above problems, the technical solution adopted by the present invention is as follows:

[0021] A method for estimating the surface normal of a transparent object adopts a network framework to estimate the surface normal of the transparent object to be estimated, comprising the following steps: S1: constructing a network framework, the network framework comprising three encoders and a decoder; the three encoders are respectively a physical prior branch, an original polarization branch and a physical prior confidence branch; S2: using a polarization camera to obtain images of four different polarization angles of the transparent object to be estimated by single shooting, and obtaining the original linear polarization degree map, the original linear polarization angle map and physical prior information of each pixel point in the image; S3: the physical prior branch of the network framework takes the physical prior information as input, the original linear polarization degree map and the original angular polarization angle map as input, the physical prior confidence branch takes the physical prior confidence as input, the features between the physical prior branch and the original polarization branch are extracted, and the features of the physical prior confidence branch are used as guidance for fusion to obtain the fused features; S4: the fused features are input into the decoder to predict the surface normal map of the transparent object to be estimated.

[0022] Preferably, the structure of the encoder is a modified ResNet50 with added channel attention, and a dilated spatial pyramid pooling layer is added to the last layer of the encoder.

[0023] Preferably, the intermediate features derived from the four stages of the encoder will be fused element by element: Let x prior ,x c ,x orig are the features of the physical prior branch, the physical prior confidence branch and the original polarization branch respectively, and the fused features are:

[0024] x fusion =x orig +Sigmoid(x c )·x prior

[0025] Wherein, Sigmoid(·) is used to convert the intermediate features of the physical prior confidence branch into the range of (0,1).

[0026] Preferably, the decoder is composed of five identical upsampling modules, gradually converting high-dimensional features of small size and large number of channels into target normal information of large size and small number of channels;

[0027] The fused feature x fusion The upsampling module of the encoder at the same level will be connected using a skip connection.

[0028] Preferably, when the features connected from the encoder are inconsistent with the input required by the upsampling module, the features connected from the encoder pass through a calibrator module;

[0029] The calibrator module has the same main structure as the upsampling module, and the size and number of channels of the features are adjusted through a bilinear upsampling layer and a 1×1 convolution layer; the features after passing through the calibrator module are concatenated with the features x transmitted from the upper layer in the feature dimension, and then the size and number of channels are adjusted through the main structure.

[0030] Preferably, a polarization camera is used to obtain four images of the transparent object to be estimated at different polarization angles: I0, I 45 ,I 90 , I 135 , run the fitting algorithm on each pixel of the image to fit the following function:

[0031]

[0032] Among them, θ pol The pixels in the images corresponding to the four different polarization angles are 0°, 45°, 90° and 135°, respectively. ρ is the linear polarization degree of the light at the pixel point, and φ is the linear polarization angle of the light at the pixel point.

[0033] The linear polarization degree value and angular polarization angle value of each pixel point are obtained by fitting the function, and the corresponding linear polarization degree map and angular polarization angle map are obtained;

[0034] Substituting the linear polarization degree map and the angular polarization angle map into a mirror reflection model based on the Fresnel equation, four surface normal maps of the transparent object are calculated, and the four surface normal maps of the transparent object are used as the physical prior information.

[0035] Preferably, the physical prior confidence is defined by the distance between pixels in the angle polarization angle map, specifically:

[0036] By defining the distance of each pixel to the surrounding pixels in the angular polarization angle map:

[0037]

[0038] Among them, P i,j Represents the set of pixels in the K×K area around the pixel point (i, j), Denotes the set P i,j The average value of pixels, m is the exponential smoothing term, and the value of K is a positive integer;

[0039] After obtaining the distance of each pixel point, the physical prior confidence can be obtained by normalization:

[0040]

[0041] Where W and H are the width and height of the AoLP image, respectively, and n and l represent the pixel coordinate values ​​in the width and height directions, respectively.

[0042] Preferably, the physical prior confidence is defined by an indicator measuring the noise in the angular polarization angle map.

[0043] A surface normal estimation system for a transparent object comprises a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least any of the above methods when executing the computer program.

[0044] A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above methods.

[0045] The beneficial effects of the present invention are: providing a method and system for estimating the surface normal of a transparent object, which can restore the surface normal information of the transparent object by combining deep learning with polarization information using only a single-shot polarization image.

[0046] Furthermore, the present invention alleviates the problem of decreased credibility of physical prior information calculated by the Fresnel specular reflection model through the concept of physical prior confidence, and improves the accuracy of network prediction of surface normals of transparent objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of a surface normal estimation method for a transparent object in an embodiment of the present invention.

[0048] Figure 2 It is a schematic diagram of a process of estimating the surface normal of a transparent object in an embodiment of the present invention.

[0049] Figure 3 Schematic diagram of the structure of the encoder in the embodiment of the present invention.

[0050] Figure 4 Schematic diagram of the structure of the up-sampling module in an embodiment of the present invention.

[0051] Figure 5 It is a schematic diagram of the linear polarization angle diagram containing transmission strength information in an embodiment of the present invention.

[0052] Figure 6 Schematic diagram of the effect of physical prior confidence in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0054] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.

[0055] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0056] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0057] At present, most methods for surface shape estimation using polarization information are based on the Fresnel equation, which provides a quantitative form of the change in polarization state when the reflection is specular reflection and diffuse reflection. In the polarization shape estimation of transparent objects, the most commonly used model is the specular reflection model. Through the specular reflection model, multiple normal vector orientations containing ambiguity can be calculated. However, since transparent objects are affected by background transmission, the applicable conditions of the specular reflection model are violated, resulting in a decrease in the reliability of the physical prior information calculated using the specular reflection model.

[0058] like Figure 1 As shown, the present invention provides a method for estimating the surface normal of a transparent object, which uses a network framework to estimate the surface normal of the transparent object to be estimated, including the following steps:

[0059] S1: construct a network framework, the network framework comprising three encoders and one decoder; the three encoders are a physical prior branch, an original polarization branch, and a physical prior confidence branch;

[0060] S2: using a polarization camera to obtain four images of the transparent object to be estimated at different polarization angles by single shooting, and obtaining an original linear polarization degree map, an original linear polarization angle map and physical prior information of each pixel point in the image;

[0061] S3: The physical prior branch of the network framework takes the physical prior information as input, the original polarization branch takes the original linear polarization degree map and the original angular polarization angle map as input, and the physical prior confidence branch takes the physical prior confidence as input. Features between the physical prior branch and the original polarization branch are extracted, and fused under the guidance of the features of the physical prior confidence branch to obtain fused features;

[0062] S4: The fused features are input into the decoder to predict the surface normal map of the transparent object to be estimated.

[0063] The present invention combines deep learning with polarization information and can restore the surface normal information of a transparent object using only a single-shot polarization image.

[0064] Furthermore, the present invention alleviates the problem of decreased credibility of physical prior information calculated by the Fresnel specular reflection model through the concept of physical prior confidence, and improves the accuracy of network prediction of surface normals of transparent objects.

[0065] The present invention mainly solves the problem of decreased credibility of polarization physical prior information of transparent objects and designs a network for imaging problems in polarization information of transparent objects, which can effectively solve the problem of decreased credibility of polarization physical prior information caused by background transmission and interaction of transparent objects; the network of the present invention can estimate the surface normal of complex transparent objects in a single shot.

[0066] like Figure 2 As shown, the network framework of the present invention includes three encoders and one decoder, and the multi-encoder architecture is used to process information from different sources; the concept of physical prior confidence is defined through a linear polarization angle diagram, and this concept is used for weighted feature fusion.

[0067] In one embodiment of the present invention, the structure of the encoder is a linearly improved ResNet50 with added channel attention, and a dilated spatial pyramid pooling layer is added to the last layer of the encoder.

[0068] The physical prior confidence reflects the reliability of the physical prior information. In order to fully utilize the concept of physical prior confidence in all stages of normal prediction instead of simply weighting the physical prior information in the input stage, the present invention sets a separate encoder branch for the physical prior confidence. Through the physical prior confidence branch, the physical prior confidence will be transformed into the same dimension and hierarchical space as the physical prior branch and the original polarization branch, and the features will be fused in these spaces, which can better utilize the concept of physical prior confidence and improve the accuracy of the overall network normal prediction.

[0069] like Figure 3 As shown in the figure, the structures of the three encoders are the same, but the parameters are independent of each other. The basic structure of the encoder is a modified ResNet50 with channel attention added. In the last layer of the encoder, an atrous spatial pyramid pooling layer (ASPP) is added to enhance the network's ability to extract features of different scales. The intermediate features derived from the four stages of the encoder will be fused element by element: Let x prior ,x c ,x orig are the features of the physical prior branch, the physical prior confidence branch and the original polarization branch respectively, and the fused features are:

[0070] x fusion =x orig +Sigmoid(x c )·x prior

[0071] Among them, Sigmoid (·) is used to convert the intermediate features of the physical prior confidence branch into the range of (0, 1). The fused feature x fusion The skip connection will be used to connect to the upsampling module at the same level.

[0072] like Figure 4 As shown, the decoder is composed of five identical upsampling modules, which gradually convert the high-dimensional features with small size and large number of channels into the target normal information with large size and small number of channels;

[0073] The fused feature x fusion The upsampling module of the encoder at the same level will be connected using a skip connection. skip This is x obtained after fusion in the Encoder stage fusion Since the features connected by the encoder may not be consistent with the input required by the upsampling module, it needs to pass through a calibrator module. The Calibrator module has the same main structure as the upsampling module, and adjusts the size and number of channels of the features through a bilinear upsampling layer and a 1×1 convolution layer. The features after the Calibrator are concatenated with the features x from the previous layer of the network in the feature dimension, and then the size and number of channels are adjusted through the main structure. The entire decoder is composed of five identical upsampling modules, which gradually convert high-dimensional features with small size and large number of channels into target normal information with large size and small number of channels.

[0074] Specifically, when the features connected from the encoder are inconsistent with the input required by the upsampling module, the features connected from the encoder pass through a calibrator module;

[0075] The calibrator module has the same main structure as the upsampling module, and the size and number of channels of the features are adjusted through a bilinear upsampling layer and a 1×1 convolution layer; the features after passing through the calibrator module are concatenated with the features x transmitted from the upper layer in the feature dimension, and then the size and number of channels are adjusted through the main structure.

[0076] In the present invention, a polarization camera is used to obtain four images of the transparent object to be estimated at different polarization angles: I0, I 45 ,I 90 , I 135 , run the fitting algorithm on each pixel of the image to fit the following function:

[0077]

[0078] Among them, θ pol The pixels in the images corresponding to the four different polarization angles are 0°, 45°, 90° and 135°, respectively. ρ is the linear polarization degree of the light at the pixel point, and φ is the linear polarization angle of the light at the pixel point.

[0079] The linear polarization degree value and angular polarization angle value of each pixel point are obtained by fitting the function, and the corresponding linear polarization degree map and angular polarization angle map are obtained;

[0080] The linear polarization degree map and the angular polarization angle map are substituted into the mirror reflection model based on the Fresnel equation, and four surface normal maps of the transparent object are calculated (there are two possibilities for the zenith angle and two possibilities for the azimuth angle, with a total of 2×2=4 possibilities). The four surface normal maps of the transparent object are used as the physical prior information.

[0081] The inherent high transmittance of transparent objects means that the observed polarization information will be greatly affected by the background transmitted light. Directly using the observed polarization information to apply the Fresnel specular reflection model to obtain the normal map will have a large error, that is, the credibility of the physical prior information will be reduced.

[0082] The problem of finding areas with low credibility is converted into the problem of areas with high transmission intensity. The observed AoLP map contains information about the strength of the transmission intensity. This information is caused by the uncertainty of whether the specular reflection or diffuse reflection in the area with strong transmission is dominant: when the transmission intensity is high, the observed polarization information is largely determined by the reflected light of the background, and the material of the background is usually not as smooth as the surface of a transparent object, so there is both specular reflection and diffuse reflection, and which of the two is dominant is accompanied by a certain degree of randomness. From the Fresnel equation, it can be seen that the AoLP values ​​of specular reflection and diffuse reflection will differ by 90°, so in the AoLP map of the area with strong transmission light, there will be "noise" with a difference of 90°.

[0083] like Figure 5 As shown, the transmission from the background is strong in the middle area of ​​the frame, and the dominance of specular reflection and diffuse reflection is random. Adjacent pixels may be dominated by specular reflection or diffuse reflection, resulting in a 90° jump in the AoLP value, which will be reflected in the appearance of more "noise" on a macro scale.

[0084] Based on the clues in the above AoLP diagram, the concept of physical prior confidence can be defined.

[0085] In one embodiment of the present invention, the physical prior confidence is defined by the distance between pixels in the angle polarization angle map, specifically:

[0086] By defining the distance of each pixel to the surrounding pixels in the angular polarization angle map:

[0087]

[0088] Among them, P i,j Represents the set of pixels in the K×K area around the pixel point (i, j), Denotes the set P i,j The average value of pixels, m is the exponential smoothing term, and the value of K is a positive integer;

[0089] After obtaining the distance of each pixel point, the physical prior confidence can be obtained by normalization:

[0090]

[0091] Where W and H are the width and height of the AoLP image, respectively, and n and l represent the pixel coordinate values ​​in the width and height directions, respectively.

[0092] The confidence defined by the above formula will be lower in the area with higher transmission intensity. In addition to the transmission area, the value of the area switching between AoLP values ​​0° and 180° will also be lower ( Figure 5 The middle black line area along the vertical direction in the right confidence map is caused by this situation. The noise caused by this situation is that the period of the polarization angle is 180°. 0° and 180° are equivalent in physical terms, but they are represented as black and white extremes in the AoLP map. This situation is allowed because there are also jumps in the area where 0° and 180° intersect in the physical prior, and the reliability of the physical prior in these areas will also be significantly reduced.

[0093] By using the Fresnel specular reflection model, the observed DoLP and AoLP information can be converted into four normal maps, that is, physical prior information. This process requires a large amount of calculation and there are no parameters that need to be adjusted. Therefore, the calculation of the physical prior is completed in the data preprocessing stage to avoid repeated calculations during the training process.

[0094] The calculation process of the physical prior confidence as shown above only uses AoLP information. The calculation of the distance between pixels can be easily converted to a convolution calculation method, and there are parameters such as K and m that need to be adjusted according to the situation, so the calculation of the physical prior confidence is calculated in real time in the form of convolution during network training. The physical prior confidence will be input into a separate encoder branch, the physical prior confidence branch, and the characteristics of this branch will be used to determine the contribution of the physical prior calculated using the Fresnel specular reflection model to the final surface normal prediction.

[0095] In another embodiment of the present invention, the physical prior confidence is defined by measuring an index of noise in the angular polarization angle map. Because the concept of physical prior confidence is based on the fact that there are more noise points in the transmission area of ​​the AoLP map of a transparent object, all concepts that can describe the strength of image noise can be used to define physical prior confidence. The present invention adopts the concept of domain pixel distance. There are other commonly used indicators in the image, such as peak signal-to-noise ratio, which can be used to define physical prior confidence.

[0096] The method and system of the present invention are used to conduct experiments on the TransSfP dataset, and the results are shown in Table 1, where DeepSfP, Kondo, and SPW are all data-driven SfP methods.

[0097] Table 1 Comparative experimental results with other methods on the TransSfP dataset

[0098]

[0099]

[0100] As can be seen from the table above, the proposed method has the smallest error on all test objects. The best performing method among other methods is the deepSfP method, which has an average error of 19.00° on all objects, while the proposed method has an average error of 16.72° on all objects, which verifies the effectiveness of the proposed method.

[0101] like Figure 6 As shown in the figure, the importance of the concept of physical prior confidence proposed by the present invention is shown. The leftmost column is the real normal map of the transparent hemisphere and the confidence map calculated by AoLP, the middle column is the normal map and error map predicted after using the confidence, and the rightmost column is the normal map and error map predicted without using the confidence. It can be seen that after adding the physical prior confidence, the error in the area with smaller confidence is significantly reduced.

[0102] An embodiment of the present application also provides a surface normal estimation system for a transparent object, comprising a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least the method described above when executing the computer program.

[0103] An embodiment of the present application also provides a storage medium for storing a computer program, which at least performs the method described above when executed.

[0104] An embodiment of the present application further provides a processor, which executes a computer program and at least performs the method described above.

[0105] The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAMEnhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.

[0106] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0107] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0108] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0109] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.

[0110] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0111] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0112] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0113] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0114] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A method for estimating a surface normal of a transparent object, characterized in that: The network framework is used to estimate the surface normal of the transparent object to be estimated, including the following steps: S1: construct a network framework, the network framework comprising three encoders and one decoder; the three encoders are a physical prior branch, an original polarization branch, and a physical prior confidence branch; S2: using a polarization camera to obtain four images of the transparent object to be estimated at different polarization angles by single shooting, and obtaining an original linear polarization degree map, an original linear polarization angle map and physical prior information of each pixel point in the image; S3: The physical prior branch of the network framework takes the physical prior information as input, the original polarization branch takes the original linear polarization degree map and the original angular polarization angle map as input, and the physical prior confidence branch takes the physical prior confidence as input. Features between the physical prior branch and the original polarization branch are extracted, and fused under the guidance of the features of the physical prior confidence branch to obtain fused features; S4: The fused features are input into the decoder to predict the surface normal map of the transparent object to be estimated.

2. The method for estimating the surface normal of a transparent object according to claim 1, wherein: The structure of the encoder is a modified ResNet50 with channel attention added, and a dilated spatial pyramid pooling layer is added to the last layer of the encoder.

3. The method for estimating the surface normal of a transparent object according to claim 2, wherein: The intermediate features derived from the four stages of the encoder will be fused element by element: Let x prior ,x c ,x orig are the features of the physical prior branch, the physical prior confidence branch and the original polarization branch respectively, and the fused features are: x fusion =x orig +Sigmoid(x c )·x prior Wherein, Sigmoid(·) is used to convert the intermediate features of the physical prior confidence branch into the range of (0,1).

4. The method for estimating the surface normal of a transparent object according to claim 3, wherein: The decoder is composed of five identical upsampling modules, which gradually convert the high-dimensional features with small size and large number of channels into the target normal information with large size and small number of channels; The fused feature x fusion The upsampling module of the encoder at the same level will be connected using a skip connection.

5. The method for estimating the surface normal of a transparent object according to claim 4, wherein: When the features connected from the encoder are inconsistent with the input required by the upsampling module, the features connected from the encoder pass through a calibrator module; The calibrator module has the same main structure as the upsampling module, and the size and number of channels of the features are adjusted through a bilinear upsampling layer and a 1×1 convolution layer; the features after passing through the calibrator module are concatenated with the features x transmitted from the upper layer in the feature dimension, and then the size and number of channels are adjusted through the main structure.

6. The method for estimating the surface normal of a transparent object according to claim 1, wherein: Use a polarization camera to take a single shot to obtain four images of the transparent object to be estimated at different polarization angles: I0, I 45 ,I 90 , I 135 , run the fitting algorithm on each pixel of the image to fit the following function: Among them, θ pol The pixels in the images corresponding to the four different polarization angles are 0°, 45°, 90° and 135°, respectively. ρ is the linear polarization degree of the light at the pixel point, and φ is the linear polarization angle of the light at the pixel point. The linear polarization degree value and angular polarization angle value of each pixel point are obtained by fitting the function, and the corresponding linear polarization degree map and angular polarization angle map are obtained; Substituting the linear polarization degree map and the angular polarization angle map into a mirror reflection model based on the Fresnel equation, four surface normal maps of the transparent object are calculated, and the four surface normal maps of the transparent object are used as the physical prior information.

7. The method for estimating the surface normal of a transparent object according to claim 6, wherein: The physical prior confidence is defined by the distance between pixels in the angle polarization angle map, specifically: By defining the distance of each pixel to the surrounding pixels in the angular polarization angle map: Among them, P i,j Represents the set of pixels in the K×K area around the pixel point (i, j), Denotes the set P i,j The average value of pixels, m is the exponential smoothing term, and the value of K is a positive integer; After obtaining the distance of each pixel point, the physical prior confidence can be obtained by normalization: Where W and H are the width and height of the AoLP image, respectively, and n and l represent the pixel coordinate values ​​in the width and height directions, respectively.

8. The method for estimating the surface normal of a transparent object according to claim 7, wherein: The physical prior confidence is defined by an indicator that measures the noise in the angular polarization angle map.

9. A surface normal estimation system for a transparent object, characterized in that: It comprises a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least any method according to claims 1-8 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.