A 3D model reconstruction method based on multi-angle projection GAN

By projecting the GAN model from multiple angles, the problem of errors and noise effects in 3D model reconstruction in the existing technology is solved. A more accurate 3D model is generated through multi-angle image input, which significantly improves the reconstruction accuracy and completeness of the 3D model.

CN114241137BActive Publication Date: 2024-10-08CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111573600.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-10-08
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

Existing 3D model reconstruction methods based on deep learning are prone to problems such as occlusion when acquiring target 2D images, making it difficult to learn useful details during the training process. The generated 3D model is easily affected by errors and noise, and the reconstruction accuracy is poor.

Method used

A three-dimensional model reconstruction method based on multi-angle projection GAN is adopted. By establishing a multi-angle projection GAN model formed by splicing multiple sets of generators and discriminators, the model is trained to generate a three-dimensional model extracted from multiple angle images, weakening or eliminating a single Errors and noise brought by data improve reconstruction accuracy.

Benefits of technology

By projecting the GAN model from multiple angles, the input data of the 3D model is enriched, and the accuracy of the 3D model reconstruction is effectively improved. Model defects caused by factors such as occlusion and light can be automatically filled in, significantly improving the reconstruction effect of the 3D model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241137B_ABST
    Figure CN114241137B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of model reconstruction technology, and in particular to a three-dimensional model reconstruction method based on multi-angle projection GAN, comprising: establishing a multi-angle projection GAN model formed by splicing multiple groups of generators and discriminators, and training the multi-angle projection GAN model; acquiring images of multiple angles of a target to be reconstructed; inputting the images of multiple angles of the target to be reconstructed into the trained multi-angle projection GAN model, and outputting corresponding predicted three-dimensional models by each group of generators of the multi-angle projection GAN model; and using the predicted three-dimensional model as a three-dimensional model reconstruction result corresponding to the target to be reconstructed. The three-dimensional model reconstruction method based on multi-angle projection GAN in the present invention can effectively reduce the influence of errors and noise, thereby improving the accuracy of three-dimensional model reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model reconstruction technology, and in particular to a three-dimensional model reconstruction method based on multi-angle projection GAN. Background Art

[0002] In computer vision and computer graphics, 3D reconstruction is the process of capturing the shape and appearance of real objects. As data of points and other information collections, 3D models can be generated manually or by algorithms. 3D models can be widely used anywhere 3D graphics are used. For example, in the field of manufacturing, distributed management and control have begun to be implemented. In the management process, how to efficiently and accurately monitor and control product quality has become crucial. At this time, it is particularly important to accurately reconstruct the 3D model of the product. Based on the 3D (visualization) model, it can assist and control the production of high-quality products from multiple different angles. Technicians can intuitively observe the status and quality of the product through the 3D model, which is convenient for technicians to adjust the production line in a timely and effective manner.

[0003] The powerful generation capability of deep learning models makes it one of the main methods for establishing three-dimensional visualization models. For example, the Chinese patent with publication number CN110223387A discloses "A three-dimensional model reconstruction technology based on deep learning". It uses sensors to shoot objects in all directions, obtain depth images and color images of objects, perform image enhancement on depth images, obtain two-dimensional information of depth images, perform point cloud computing on depth images, align depth images in sequence based on the common parts of the scene, superimpose multiple frames of images obtained at different times, angles, and illuminations into a unified coordinate system, and fuse point cloud data to obtain a more sophisticated reconstructed model. Computer vision knowledge is deduced to produce three-dimensional information of real objects.

[0004] The three-dimensional model reconstruction method in the above-mentioned existing scheme generates a three-dimensional model by acquiring a product image and combining it with deep learning. However, most of the existing three-dimensional reconstruction methods based on deep learning compare the predicted shape with the real three-dimensional model, and then improve the prediction accuracy of the three-dimensional model by minimizing the loss function. However, due to the multidimensionality of the three-dimensional model, occlusion and other problems are prone to occur when acquiring the target two-dimensional image, making it difficult for the network to directly learn useful details from the two-dimensional image during training, making the generated three-dimensional model susceptible to errors and noise, which in turn leads to poor reconstruction accuracy of the three-dimensional model. The applicant found that the generative adversarial network (GAN) has the advantages of strong learning and image generation capabilities, which is more conducive to the reconstruction of the three-dimensional model. Therefore, how to design a three-dimensional model reconstruction method based on a generative adversarial network that can effectively reduce the influence of errors and noise is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of the above-mentioned deficiencies of the prior art, the technical problem to be solved by the present invention is: how to provide a three-dimensional model reconstruction method based on a generative adversarial network and effectively reduce the influence of errors and noise, thereby improving the accuracy of three-dimensional model reconstruction.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] A three-dimensional model reconstruction method based on multi-angle projection GAN includes the following steps:

[0008] S1: establishing a multi-angle projection GAN model formed by splicing multiple groups of generators and discriminators, and training the multi-angle projection GAN model;

[0009] S2: Acquire images of the target to be reconstructed at multiple angles;

[0010] S3: inputting images of the target to be reconstructed at multiple angles into the trained multi-angle projection GAN model, and each group of generators of the multi-angle projection GAN model outputs a corresponding predicted three-dimensional model;

[0011] S4: Using the predicted three-dimensional model as a three-dimensional model reconstruction result corresponding to the target to be reconstructed.

[0012] Preferably, multiple groups of generators are connected by group stacking, so that the output of the previous group of generators can be used as the input of the next group of generators, and the output of the last group of generators is used as the predicted three-dimensional model output by the multi-angle projection GAN model.

[0013] Preferably, in step S1, the multi-angle projection GAN model is trained by the following steps:

[0014] S101: construct a set of generative adversarial networks based on each set of generators and the corresponding generated discriminators;

[0015] S102: training each group of generative adversarial networks using training data;

[0016] S103: splicing the trained generative adversarial networks of each group to generate a corresponding multi-angle projection GAN model;

[0017] S104: Train the generated multi-angle projection GAN model using training data.

[0018] Preferably, when training a generative adversarial network: the training data and the corresponding noise variable z are input into the generator, and the corresponding generation result is output; then the generation result and the corresponding real sample are input into the discriminator to determine the authenticity of the generation result; finally, the model parameters of the generator and the discriminator are updated according to the authenticity determination result.

[0019] Preferably, the model parameters of the generator and the discriminator between each group of generative adversarial networks are kept consistent; during training, the generation results output by the generator of each group of generative adversarial networks need to be authenticated by the discriminator of each group of generative adversarial networks, and the parameters of the generator and the discriminator between each group of generative adversarial networks are synchronously updated based on the authenticity authentication results.

[0020] Preferably, when updating parameters, the gradient of the generator is expressed as: The gradient of the discriminator is expressed as: in, means The jth coefficient of ;

[0021] Where: D represents the discriminator function; G represents the generator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; x represents sample data; z represents the noise variable of initial training; z i is the initial noise variable for the ith iteration.

[0022] Preferably, the discriminator is generated by the following formula:

[0023]

[0024] Where: P d Represents the distribution probability of real data; P g Represents the distribution probability of the data generated by the generator.

[0025] Preferably, the objective function of the generative adversarial network is expressed by the following formula:

[0026]

[0027] Where: D represents the discriminator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; z represents the noise variable of the initial training; z i is the initial noise variable of the i-th iteration; P d Represents the distribution probability of real data; Pg represents the distribution probability of the data generated by the generator; k represents the number of samples; x represents the sample data; P zi Represents the distribution probability of the noise variable z.

[0028] Preferably, each group of generative adversarial networks is spliced ​​into a multi-angle projection GAN model by the following formula:

[0029]

[0030] in,

[0031] Where: D represents the discriminator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; z represents the noise variable of the initial training; z i is the initial noise variable of the i-th iteration; P d Represents the distribution probability of real data; P g represents the distribution probability of the data generated by the generator; k represents the number of samples; x represents the sample data; P zi Represents the distribution probability of the noise variable z.

[0032] Preferably, when training the multi-angle projection GAN model, the optimal solution is obtained by the following formula:

[0033]

[0034] in,

[0035] when When , the optimal solution is -(k+1)log(k+1)+k log k.

[0036] Where: KL represents KullbackLeibler (KL) divergence; P d Represents the distribution probability of real data; P g represents the distribution probability of the generator generating data; k represents the number of samples; p avg Represents the distribution probability of the real data and the average distribution probability of the data generated by the generator on all data.

[0037] Compared with the prior art, the three-dimensional model reconstruction method of the present invention has the following beneficial effects:

[0038] The multi-angle projection GAN model in the present invention can generate corresponding three-dimensional models based on images at multiple angles, and then enrich the input data of the three-dimensional model by introducing multiple images taken at different angles, so that the errors and noise caused by single data can be effectively weakened or eliminated, and the true shape of the object can be presented more clearly, thereby improving the accuracy of three-dimensional model reconstruction. At the same time, for more complex targets, the present invention can automatically associate and fill in the model defects caused by factors such as occlusion and light through two-dimensional images at multiple different angles, thereby further improving the accuracy of three-dimensional model reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:

[0040] Figure 1 It is a logic block diagram of the three-dimensional model reconstruction method;

[0041] Figure 2 This is a schematic diagram of the network structure of the multi-angle projection GAN model;

[0042] Figure 3 Comparison chart for quality monitoring accuracy;

[0043] Figure 4 This is the ROC curve of the MapGANs model;

[0044] Figure 5 Schematic diagram of the impact of different shooting angles. DETAILED DESCRIPTION

[0045] The following is a further detailed description through specific implementation methods:

[0046] Example:

[0047] This embodiment discloses a three-dimensional model reconstruction method based on multi-angle projection GAN.

[0048] like Figure 1 As shown, the 3D model reconstruction method based on multi-angle projection GAN includes the following steps:

[0049] A three-dimensional model reconstruction method based on multi-angle projection GAN includes the following steps:

[0050] S1: establishing a multi-angle projection GAN model formed by splicing multiple groups of generators and discriminators, and training the multi-angle projection GAN model;

[0051] S2: Acquire images of the target to be reconstructed at multiple angles;

[0052] S3: Input images of multiple angles of the target to be reconstructed into the trained multi-angle projection GAN model, and each group of generators of the multi-angle projection GAN model outputs a corresponding predicted three-dimensional model; multiple groups of generators are connected in a group stacking manner, so that the output of the previous group of generators can be used as the input of the next group of generators, and the output of the last group of generators is used as the predicted three-dimensional model output by the multi-angle projection GAN model.

[0053] S4: Using the predicted three-dimensional model as a three-dimensional model reconstruction result corresponding to the target to be reconstructed.

[0054] The multi-angle projection GAN model in the present invention can generate corresponding three-dimensional models based on images at multiple angles, and then enrich the input data of the three-dimensional model by introducing multiple images taken at different angles, so that the errors and noise caused by single data can be effectively weakened or eliminated, and the true shape of the object can be presented more clearly, thereby improving the accuracy of three-dimensional model reconstruction. At the same time, for more complex targets, the present invention can automatically associate and fill in the model defects caused by factors such as occlusion and light through two-dimensional images at multiple different angles, thereby further improving the accuracy of three-dimensional model reconstruction.

[0055] In the specific implementation process, Figure 2 As shown, the multi-angle projection GAN model is trained through the following steps:

[0056] S101: construct a set of generative adversarial networks based on each set of generators and the corresponding generated discriminators;

[0057] S102: training each group of generative adversarial networks using training data;

[0058] S103: splicing the trained generative adversarial networks of each group to generate a corresponding multi-angle projection GAN model;

[0059] S104: Train the generated multi-angle projection GAN model using training data.

[0060] In the present invention, by grouping and splicing the generative adversarial network, the optimal parameter values ​​of the multi-angle projection GAN model can be effectively trained to achieve rapid convergence of the model to ensure the three-dimensional model reconstruction effect of the target.

[0061] During the specific implementation process, when training the generative adversarial network: the training data and the corresponding noise variable z are input into the generator, and the corresponding generation result is output; then the generation result and the corresponding real sample are input into the discriminator to determine the authenticity of the generation result; finally, the model parameters of the generator and the discriminator are updated according to the authenticity judgment result.

[0062] Specifically, the model parameters of the generator and discriminator between each group of generative adversarial networks remain consistent; during training, the generation results output by the generator of each group of generative adversarial networks need to be authenticated by the discriminator of each group of generative adversarial networks, and the parameters of the generator and discriminator between each group of generative adversarial networks are synchronously updated based on the authenticity judgment results.

[0063] When updating the parameters, the gradient of the generator is expressed as:

[0064]

[0065] The gradient of the discriminator is expressed as:

[0066] in, means The jth coefficient of .

[0067] The discriminator is generated by the following formula:

[0068]

[0069] The objective function of the generative adversarial network is expressed by the following formula (objective function):

[0070]

[0071] Each group of generative adversarial networks is spliced ​​into a multi-angle projection GAN model using the following formula:

[0072]

[0073] in,

[0074] When training the multi-angle projection GAN model, the optimal solution is obtained through the following formula:

[0075]

[0076] in,

[0077] when When , the optimal solution is -(k+1)log(k+1)+k log k.

[0078] The objective function of the multi-angle projection GAN model is expressed as:

[0079]

[0080] Given two probability distributions p(x) and q(x), the Kullback-Leibler (KL) divergence and Jensen-Shannon (JS) divergence are defined as:

[0081]

[0082]

[0083] Finally, the objective function of the multi-angle projection GAN model is obtained:

[0084]

[0085] It can be seen that the objective function of the multi-angle projection GAN model is related to both KL divergence and JS divergence.

[0086] At the same time, the following theorem analysis is performed in this embodiment:

[0087] Theorem 1:

[0088] Given an optimal discriminator, the objective function of training the generator can be formulated as minimizing the following formula:

[0089]

[0090] in, when When , the above objective function will achieve the global minimum value -(k+1)log(k+1)+k log k.

[0091] Theorem 1 shows that the objective function can actually allow the generators to form a mixture model, where each group of generators represents a mixture component, and When , the global optimal solution is -(k+1)log(k+1)+k log k.

[0092] When k=1, that is, when only one generator is included, the model will obtain the optimal value of -log4.

[0093] prove:

[0094] The joint goal of all generators is to minimize the following formula:

[0095]

[0096] Using Corollary 1 below, we can use the above equation to replace the optimal discriminator and obtain

[0097]

[0098] in, when When , the KL (KullbackLeibler divergence) term will be 0 and the global minimum will be obtained.

[0099] Corollary 1:

[0100] For a given generator, the optimal distribution obtained from the discriminator is

[0101]

[0102]

[0103] Among them, D i (x) refers to D(x; θ d )The i-th coefficient, p d represents the distribution of real data; p gi is the distribution generated from the i-th generator.

[0104] prove:

[0105] For a given generator, the objective function of the discriminator is to maximize

[0106]

[0107] in, and

[0108] It can be expressed as:

[0109]

[0110] Among them, p k+1 (x): = p d (x),

[0111] and,

[0112] Therefore, given an x, its constraints can be obtained by the following property 1.

[0113] Nature 1:

[0114] Given y=(y1,...,y n ),y i ≥0,

[0115] when hour,

[0116] prove:

[0117] Convert the objective function into a Lagrangian function:

[0118]

[0119] Distribution of y i and λ, we get

[0120] Solving the equation yields

[0121] In the above formulas: D represents the discriminator function; G represents the generator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; x represents sample data; z represents the noise variable of initial training; z i is the initial noise variable of the i-th iteration; P d Represents the distribution probability of real data; P g represents the distribution probability of the data generated by the generator; k represents the number of samples; x represents the sample data; P zi represents the distribution probability of the noise variable z; p avg Represents the distribution probability of the real data and the average distribution probability of the data generated by the generator on all data.

[0122] In order to better illustrate the advantages of the three-dimensional model reconstruction method in the present invention, this embodiment also discloses the following experiment.

[0123] 1. Data Collection

[0124] In order to reconstruct (build) a 3D visualization model, this experiment installs multiple cameras on a certain workshop assembly line. The cameras take photos of the products from different angles and positions. In this experiment, 8 cameras were installed on the workshop assembly line. All cameras were installed based on the years of work experience of professionals to ensure that each camera can shoot from the best position. At the same time, the angle of the camera will be adjusted according to the characteristics of different parts. These 8 cameras will take photos of each product and part produced respectively. Each photo will be numbered according to the time of shooting and the number of the camera to facilitate the classification of which photos belong to the same product. All photos taken will be uploaded to the server through the wireless or wired network of the workshop.

[0125] This experiment was conducted on a desktop computer with an Intel i7 3.4G CPU, 8G RAM, and a GeForce GTX Titan X 8GB GPU. The programming language used was Python, and the deep learning framework was TensorFlow.

[0126] Table 1 Comparison of Intersection over Union (IoU) results on PASCAL VOC 2012 data

[0127]

[0128] In order to train a high-precision deep learning model, we need a large amount of labeled data. Before that, this experiment first established a standard to label products: qualified products and unqualified products. In fact, in different manufacturing industries, different products will specify different quality requirements. For example, Table 1 lists some of the metering holes of gasoline engine carburetor parts and the nozzle aperture sizes on the carburetor body and their limit deviations. Within the limit deviation range, it will be marked as a qualified product; if it exceeds the deviation range, it will be marked as an unqualified product.

[0129] Different products are labeled differently according to industry standards. In traditional manufacturing, the qualified rate or good rate of products is obtained through random sampling inspection. Those products randomly selected for inspection will be marked with different quality levels by professionals. These sampled products will be used as training data for this experiment, and the marked levels will be used as labels for the training data.

[0130] 2. Evaluation Indicators

[0131] (1)Intersection over Union

[0132] In addition to using industry standards as indicators to measure deep learning algorithms, this experiment also uses IoU (Intersection over Union) as another evaluation indicator. IoU is a common object detection evaluation indicator used to measure the accuracy of object detectors on specific data sets. The specific calculation formula of IoU is as follows:

[0133]

[0134] (2)F-Score

[0135] In order to evaluate the accuracy of the algorithm in product quality monitoring and compare the predicted level of the algorithm with the actual level of the product, this experiment uses the ROC indicator for analysis:

[0136] True Positive (TP): The true value is qualified and the predicted value is also qualified;

[0137] False Positive (FP): The true value is unqualified and the predicted value is qualified;

[0138] True Negative (TN): The true value is qualified and the predicted value is unqualified;

[0139] False Negative (FN): The true value is unqualified and the predicted value is also unqualified.

[0140] Based on these four indicators, we can calculate the Precision, which is the probability that the predicted result is qualified and the actual result is qualified:

[0141]

[0142] And Recall, which indicates the probability that the true value of a qualified product is accurately predicted:

[0143]

[0144] The corresponding F-Score calculation formula is defined as:

[0145]

[0146] (3) ROC curve

[0147] ROC (Receiver Operating Characteristic) is a graph comparing signal (True Positive Rate) and noise (False Positive Rate). The performance of the model is determined by looking at the area under the ROC curve (AUC). When AUC is equal to 1, the model works best, while AUC equals 0.5, which indicates the worst model (e.g. Figure 4 The 45-degree dashed line in the graph represents a random value). Any value less than 0.5 means that we performed the exact opposite of what the model suggested. The True Positive Rate (TPR) can be expressed as:

[0148]

[0149] False Positive Rate (FPR) can be expressed as:

[0150]

[0151] 3. Analysis of 3D Visualization Model Reconstruction Results

[0152] 1. PASCAL VOC 2012 Data

[0153] First, PASCAL VOC 2012 data is used to verify the proposed model.

[0154] The PASCAL VOC 2012 dataset (referring to the dataset published in M. Everingham, JJ P A Winn, "Statistical Modelling, and TR Computational Learning") contains objects in 10 rigid object categories. This experiment will compare Kar et al., 3D-LSTM-1, 3D-GRU-1, 3D-LSTM-3, 3D-GRU-3, Res3D-GRU-3 and MapGANs (referring to the multi-angle projection GAN model in the present invention).

[0155] The core of Kar et al. (referring to the model disclosed in A.Kar, S.Tulsiani, J.Carreira, and J.Malik, "Category-specific object reconstruction from a single image") is to learn a deformable 3D model from 2D annotations in existing object detection datasets. The model can be driven by noisy automatic object segmentation and supplemented by bottom-up modules to recover high-frequency shape details. 3D-LSTM-1, 3D-GRU-1, 3D-LSTM-3, 3D-GRU-3 and Res3D-GRU-3 (referring to the model disclosed in CBChoy, D.Xu, J.Gwak, K.Chen, and S.Savarese, "3D-R2N2: A unified approach for single and multi-view 3d objectreconstruction") are neural networks that learn the generation of a mapping from an object image to its underlying 3D shape.

[0156] Table 1 shows the comparison results of the MapGANs model and the other five algorithms. In general, the Kar et al. algorithm has the worst effect, followed by the 3D-LSTM-1 and Res3D-GRU-3 algorithms, while the MapGANs model of the present invention achieves the highest accuracy for 6 out of 10 objects. At the same time, a trend can also be seen that for some relatively diverse objects, such as chairs and sofas, all algorithms cannot achieve high accuracy. In contrast, for objects with fixed styles such as cars and buses, the algorithms can easily identify them. The MapGANs model proposed in the present invention has a good reconstruction effect and has a high accuracy in generating object edges and details.

[0157] 2. Parts quality inspection experiment analysis

[0158] This experiment also verifies whether the MapGANs model can effectively and accurately detect quality problems of products and parts. Based on the 3D visualization model generated by the MapGANs model, product information, including dimensions, size, and shape, will be automatically output. This information will be used to automatically assess the quality level of the product. This experiment only discusses two quality levels: qualified and unqualified. Finally, the quality level generated by the algorithm will be compared with the quality level assessed by professionals to calculate the accuracy of the MapGANs model for quality detection judgment.

[0159] This experiment will be conducted on seven parts from real workshops. All parts are numbered from LJ01 to LJ07. LJ01 to LJ04 are relatively simple parts, while LJ05 to LJ07 are more complex parts. For each part, the test is repeated 1000 times to minimize the test error.

[0160] (1) Comparison of quality monitoring accuracy

[0161] This experiment collects a large number of product pictures from different angles and positions, namely two-dimensional images. MapGAN is compared with methods based on two-dimensional images, as well as 3D-GRU-3 and Res3D-GRU-3.

[0162] This experiment establishes a convolutional neural network (2D-CNNs, 2D Convolutional Neural Networks) based on two-dimensional images to analyze the photos taken. 2D-CNNs will also generate different parameter indicators about the product, and based on the analyzed indicators, a prediction result of whether the product quality meets the standard will be given. At the same time, since 3D-GRU-3 and Res3D-GRU-3 cannot process multiple images taken from multiple angles at the same time, these two algorithms will process multiple images of the same part separately, and finally take their average value as the final prediction result.

[0163] Figure 3The comparison of MapGANs, 3D-GRU-3, Res3D-GRU-3 and 2D-CNNs in quality monitoring accuracy is demonstrated. The results show that the performance of the MapGANs model of the present invention is far superior to that of several other methods. Especially on some complex components (LJ05, LJ06 and LJ07), the accuracy of the other three algorithms is very low, among which 2D-CNNs performs the worst. On the contrary, the MapGANs model of the present invention can well judge whether the product quality is up to standard. The main reason is that in two-dimensional images, due to the shooting angle and the shape of the product, it is difficult to accurately judge the parameter indicators of the product from a picture taken at a single angle, while the MapGANs model of the present invention can clearly display the dimensions, size and shape of the product in different dimensions and angles. Therefore, the MapGANs model of the present invention can achieve a very high quality detection accuracy.

[0164] (2) MapGANs F-Score

[0165] This experiment calculated the Precision, Recall and F-Score indicators of MapGANs. Table 2 lists the specific experimental results. It can be seen that the MapGANs model achieved a very high prediction accuracy (the average F-Score on relatively simple parts reached 0.87). Especially on the three parts LJ02, LJ03, and LJ04, the accuracy is higher than 0.90. On relatively complex parts, the accuracy of the MapGANs model will decrease.

[0166] Table 2 Quality test results of MapGANs model

[0167]

[0168] This experiment draws the ROC curve of the MapGANs model to compare the True Positive Rate and False Positive Rate. Figure 4 The dotted line in represents random values, which is the worst case of the model. The steeper the curve, the better the model effect. It can be seen that the result is very consistent with the F-Score result in Table 2. Especially on the first four components, the MapGANs model has the best effect and the highest accuracy. In general, the MapGANs model can achieve very high accuracy to automatically detect the quality of product components, etc.

[0169] 3. Analysis of different camera installation methods

[0170] The camera installation method plays a vital role in the process of generating 3D visualization models. Now we discuss the impact of different camera installation methods on the generation of 3D visualization models by MapGANs.

[0171] This experiment tested the accuracy of the MapGANs model with 2, 4, 6 and 8 cameras. Table 3 lists the detailed test results. The results show that with 6 cameras, the MapGANs model can achieve an accuracy of more than 80%, and with 8 cameras it can reach 85%. Specifically, for some simpler parts, 4 cameras can already achieve a higher accuracy. Some more complex parts require more cameras so that MapGANs can use multiple 2D images to fill in the incomplete 3D model caused by occlusion and other factors, and ultimately generate a more accurate 3D visualization model.

[0172] Table 3 F-Score of MapGANs model with different number of cameras

[0173]

[0174] The experimental results are as follows Figure 5 As shown in the figure, MapGANs-Best Angle refers to the MapGANs model under the best shooting angle, MapGANs-Fixed Angle refers to the fixed shooting angle, and 2D-CNNs refers to the use of the CNN algorithm on a single two-dimensional image. It can be seen that different shooting angles will affect the final prediction results to a certain extent. The prediction accuracy of the MapGANs model under a fixed shooting angle will be slightly lower than the result of shooting at the best angle. The main reason is that the MapGANs model can use images taken at different angles for association and completion to minimize the impact of factors such as camera occlusion. For some more complex models, the best shooting angle can achieve better detection accuracy. Moreover, regardless of whether the image is shot at a fixed angle, MapGANs is far superior to 2D-CNNs.

[0175] IV. Conclusion

[0176] The present invention proposes a new generative adversarial network, namely MapGANs model, which automatically generates a three-dimensional visualization model through two-dimensional views taken from multiple angles and multiple positions. Then, the various parameter indicators of the product are judged by the generated three-dimensional visualization model. The MapGANs model of the present invention will give a predicted value of the qualified rate of the product quality inspection. Through a large number of experiments, it is proved that the model of the present invention can very accurately predict whether the product quality meets the standard.

[0177] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit them. Although the present invention has been described with reference to the preferred embodiments of the present invention, it should be understood by those skilled in the art that various changes can be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims. At the same time, common sense such as the well-known specific structures and characteristics in the embodiments are not described in detail here. Finally, the scope of protection claimed by the present invention shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A three-dimensional model reconstruction method based on multi-angle projection GAN, characterized in that: The following steps are involved: S1: establishing a multi-angle projection GAN model formed by splicing multiple groups of generators and discriminators, and training the multi-angle projection GAN model; Multiple groups of generators are connected by stacking, so that the output of the previous group of generators can be used as the input of the next group of generators, and the output of the last group of generators is used as the predicted 3D model output by the multi-angle projection GAN model; In step S1, the multi-angle projection GAN model is trained by the following steps: S101: construct a set of generative adversarial networks based on each set of generators and the corresponding generated discriminators; S102: training each group of generative adversarial networks using training data; S103: splicing the trained generative adversarial networks of each group to generate a corresponding multi-angle projection GAN model; S104: training the generated multi-angle projection GAN model using training data; S2: Acquire images of the target to be reconstructed at multiple angles; S3: inputting images of the target to be reconstructed at multiple angles into the trained multi-angle projection GAN model, and each group of generators of the multi-angle projection GAN model outputs a corresponding predicted three-dimensional model; S4: Using the predicted three-dimensional model as a three-dimensional model reconstruction result corresponding to the target to be reconstructed.

2. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 1, characterized in that: When training a generative adversarial network: input the training data and the corresponding noise variable z into the generator, and output the corresponding generated result; then input the generated result and the corresponding real sample into the discriminator to determine the authenticity of the generated result; Finally, the model parameters of the generator and discriminator are updated according to the authenticity judgment results.

3. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 2, characterized in that: The model parameters of the generator and discriminator of each group of generative adversarial networks remain consistent; during training, the generation results output by the generator of each group of generative adversarial networks need to be authenticated by the discriminator of each group of generative adversarial networks, and the parameters of the generator and discriminator of each group of generative adversarial networks are synchronously updated based on the authenticity judgment results.

4. The three-dimensional model reconstruction method based on multi-angle projection GAN as claimed in claim 3, characterized in that: When updating the parameters, the gradient of the generator is expressed as: The gradient of the discriminator is expressed as: in, means The jth coefficient of ; Where: D represents the discriminator function; G represents the generator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; x represents sample data; z represents the noise variable of initial training; z i is the initial noise variable for the ith iteration.

5. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 1, characterized in that: The discriminator is generated by the following formula: Where: P d Represents the distribution probability of real data; P g Represents the distribution probability of the data generated by the generator.

6. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 1, characterized in that: The objective function of the generated adversarial network is expressed by the following formula: Where: D represents the discriminator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; z represents the noise variable of the initial training; z i is the initial noise variable of the i-th iteration; P d Represents the distribution probability of real data; P g represents the distribution probability of the data generated by the generator; k represents the number of samples; x represents the sample data; P zi Represents the distribution probability of the noise variable z.

7. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 1, characterized in that: Each group of generative adversarial networks is spliced ​​into a multi-angle projection GAN model using the following formula: in, Where: D represents the discriminator function; θ represents the training parameter vector of the generator in the generative adversarial network; represents the i-th element of the g-th group of training parameter vectors; represents the vector composed of all elements of the di-th group of training parameter vectors; z represents the noise variable of the initial training; z i is the initial noise variable of the i-th iteration; P d Represents the distribution probability of real data; P g represents the distribution probability of the data generated by the generator; k represents the number of samples; x represents the sample data; P zi Represents the distribution probability of the noise variable z.

8. The three-dimensional model reconstruction method based on multi-angle projection GAN according to claim 1, characterized in that: When training the multi-angle projection GAN model, the optimal solution is obtained through the following formula: in, when When , the optimal solution is -(k+1)log(k+1)+klogk; Where: KL represents KullbackLeibler divergence; P d Represents the distribution probability of real data; P g represents the distribution probability of the generator generating data; k represents the number of samples; p avg Represents the distribution probability of the real data and the average distribution probability of the data generated by the generator on all data.