Spraying quality detection system and method combined with machine vision
By combining machine vision technology and deep learning, real-time quality inspection of the spraying process is performed, which solves the problem of lack of real-time monitoring and online quality control in the traditional spraying process, realizes intelligent analysis and automatic correction of coating quality, and improves product performance.
Patent Information
- Application Number
- CN202410673090.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional spraying process lacks real-time monitoring and effective online quality control, making it difficult to detect and correct coating thickness and uniformity in real time, affecting the appearance, protective performance and functionality of the product.
A spray coating quality inspection system combined with machine vision is used to extract and encode features of coating surface images and ultrasonic signals through deep learning technology to analyze coating quality in real time to achieve comprehensive and continuous quality control.
It realizes intelligent real-time monitoring and automatic correction of coating quality, improves the accuracy of the spraying process and product performance, and ensures the uniformity and functionality of the coating.
Smart Images

Figure CN118533755A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent detection, and more specifically to a spraying quality detection system and method combined with machine vision. Background Art
[0002] Spraying technology plays a key role in contemporary manufacturing, especially in many fields such as automobile manufacturing, furniture production, shipbuilding industry, aerospace and military equipment. The main purposes of spraying can be summarized into the following three aspects: 1. Decorative: Spraying can form a coating with a specific color and gloss on the surface of the product, which can not only enhance the appearance of the product and increase its market appeal, but also meet consumers' aesthetic needs. 2. Protective: The coating acts as a barrier to effectively avoid direct contact between the product and environmental media such as water and air, thereby preventing corrosion and oxidation, and effectively extending the service life of the product. 3. Functional: By spraying specific materials, the surface of the product can obtain special functions such as waterproof, fireproof or invisible. For example, in construction and outdoor products, waterproof coatings can provide additional protection against adverse weather conditions. The accuracy of the spraying process and the quality of the coating are directly related to the appearance, protective performance and functionality of the product. Therefore, it is crucial to ensure the accuracy of the spraying process and the uniformity of the coating. The traditional spraying method mainly relies on manual operation and some basic mechanical equipment. Its basic process includes the preparation of coating, the setting of spraying equipment, and the uniform spraying of coating. This traditional method has some disadvantages: 1. Lack of real-time monitoring: It is impossible to detect the thickness and uniformity of the coating in real time, and it is difficult to find and correct defects in the spraying process in time. 2. Difficult quality control: There is a lack of effective online quality control methods. Coating quality inspection usually relies on offline manual inspection, which makes it difficult to achieve comprehensive and continuous quality control.
[0003] Therefore, an optimized spraying quality detection solution is expected. Summary of the invention
[0004] In order to solve the above technical problems, this application is proposed. The embodiment of this application provides a spraying quality detection system and method combined with machine vision, which uses artificial intelligence technology based on the field of deep learning to extract and encode features of the coating surface image and the ultrasonic signal of the coating within a predetermined time period to obtain the result of whether the coating quality is qualified. In this way, the coating quality is analyzed in an intelligent and real-time manner to achieve comprehensive and continuous quality control.
[0005] According to one aspect of the present application, a method for spraying quality detection combined with machine vision is provided, which includes:
[0006] Acquire a coating surface image and an ultrasonic signal of the coating within a predetermined time period;
[0007] Analyzing the coating surface image to obtain a coating surface fusion feature vector;
[0008] Analyzing the ultrasonic signal of the coating within the predetermined time period to obtain an internal characteristic vector of the coating;
[0009] The coating surface fusion feature vector and the coating internal feature vector are comprehensively analyzed to obtain a result indicating whether the coating quality is qualified.
[0010] According to another aspect of the present application, a spraying quality detection system combined with machine vision is also provided, which includes:
[0011] A coating data acquisition module, used to acquire a coating surface image and an ultrasonic signal of the coating within a predetermined time period;
[0012] A coating surface feature extraction module, used for analyzing the coating surface image to obtain a coating surface fusion feature vector;
[0013] A coating internal feature extraction module, used to analyze the ultrasonic signal of the coating within the predetermined time period to obtain a coating internal feature vector;
[0014] The coating quality analysis module is used to comprehensively analyze the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified.
[0015] Compared with the prior art, the spraying quality detection system and method combined with machine vision provided by the present application uses artificial intelligence technology based on the field of deep learning to extract and encode features of the coating surface image and the ultrasonic signal of the coating within a predetermined time period to obtain the result of whether the coating quality is qualified. In this way, comprehensive and continuous quality control can be achieved through intelligent real-time analysis of coating quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0017] Figure 1 Flow chart of a method for spraying quality inspection combined with machine vision according to an embodiment of the present application.
[0018] Figure 2 The present invention is a flowchart for analyzing the coating surface image in the spraying quality detection method combined with machine vision according to an embodiment of the present application to obtain a coating surface fusion feature vector.
[0019] Figure 3 A flowchart of performing multi-channel feature extraction on the coating surface image in a spray quality detection method combined with machine vision according to an embodiment of the present application to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map, and a multi-scale B channel coating surface feature map.
[0020] Figure 4 It is a block diagram of a spraying quality inspection system combined with machine vision according to an embodiment of the present application.
[0021] Figure 5 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0023] Figure 1 FIG. 1 is a flow chart of a method for spraying quality detection combined with machine vision according to an embodiment of the present application. Figure 1 As shown, the spraying quality detection method combined with machine vision according to the embodiment of the present application includes: S110, acquiring a coating surface image and an ultrasonic signal of the coating within a predetermined time period; S120, analyzing the coating surface image to obtain a coating surface fusion feature vector; S130, analyzing the ultrasonic signal of the coating within the predetermined time period to obtain a coating internal feature vector; and S140, comprehensively analyzing the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified.
[0024] In step S110, the coating surface image and the ultrasonic signal of the coating within a predetermined time period are obtained. As mentioned in the above background technology, the traditional spraying method mainly relies on manual operation and some basic mechanical equipment, and its basic process includes the preparation of the coating, the setting of the spraying equipment, and the uniform spraying of the coating. This traditional method has some disadvantages: 1. Lack of real-time monitoring: It is impossible to detect the thickness and uniformity of the coating in real time, and it is difficult to detect and correct defects in the spraying process in time. 2. Quality control difficulties: There is a lack of effective online quality control means. Coating quality inspection usually relies on offline manual inspection, which makes it difficult to achieve comprehensive and continuous quality control. Therefore, an optimized spraying quality detection scheme is expected.
[0025] In response to the above technical problems, a spraying quality detection solution combined with machine vision is proposed, which uses artificial intelligence technology based on deep learning to extract and encode features of the coating surface image and the ultrasonic signal of the coating within a predetermined time period to obtain the result of whether the coating quality is qualified. In this way, comprehensive and continuous quality control can be achieved through intelligent real-time analysis of coating quality.
[0026] Specifically, first, the coating surface image and the ultrasonic signal of the coating within a predetermined time period are obtained. The coating surface image can reveal the color, gloss, texture and surface defects of the coating, while the ultrasonic signal can detect the thickness, internal structure (such as whether there are cavities, cracks) and adhesion of the coating. The coating surface image is captured using a high-speed camera or an image sensor. The image may include visual information such as the color, texture and geometry of the coating. The coating is detected using an ultrasonic probe, and the ultrasonic signals reflected back within a predetermined time period are recorded. These signals can reflect the thickness, internal structure and adhesion of the coating. Features that are helpful in judging the quality of the coating are extracted from the image and ultrasonic signal using machine vision technology. These features may include color distribution, texture pattern, signal intensity distribution, etc. Both detection methods are non-destructive and will not cause damage to the coating or substrate, and are suitable for online detection. The extracted features are learned and encoded using deep learning algorithms, such as convolutional neural networks (CNN) or recurrent neural networks (RNN). The deep learning model can automatically identify and quantify coating defects such as bubbles, cracks, uneven thickness, etc. Based on the analysis results of the deep learning model, it is evaluated whether the coating quality meets the predetermined standards. The system provides real-time feedback on coating quality and, if a quality issue is detected, can immediately notify the operator or automatically adjust spray parameters to correct the problem.
[0027] More specifically, the following should be noted when acquiring data: 1. Environmental control: The acquisition of coating surface images should be carried out in a stable, dust-free environment to avoid interference from light and dust. 2. Lighting conditions: Ensure uniform lighting during image acquisition to avoid the influence of reflections and shadows. 3. Image clarity: The image resolution should be high enough to capture tiny defects in the coating. 4. Ultrasonic parameter setting: Adjust the frequency and transmission power of the ultrasonic probe according to the coating material and the expected detection depth. 5. Regularly calibrate the image acquisition equipment and ultrasonic testing equipment to ensure the accuracy of the test results. 6. Ensure that the collected data is stored securely to avoid data loss or unauthorized access. 7. Ensure that the conditions of each test (such as lighting, ultrasonic parameters) are consistent to facilitate comparison and analysis of the results. By combining the coating surface image and ultrasonic signal, more comprehensive coating quality information can be obtained, thereby improving the accuracy and reliability of the test.
[0028] In step S120, the coating surface image is analyzed to obtain a coating surface fusion feature vector.
[0029] Figure 2 A flow chart of analyzing the coating surface image in the spraying quality detection method combined with machine vision according to an embodiment of the present application to obtain a coating surface fusion feature vector. Figure 2 As shown, analyzing the coating surface image to obtain a coating surface fusion feature vector includes: S121, performing multi-channel feature extraction on the coating surface image to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map; S122, performing high-dimensional feature extraction on the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map and the multi-scale B channel coating surface feature map to obtain a coating surface fusion feature map; and S123, performing pooling processing on the local feature matrix along the channel dimension on the coating surface fusion feature map to obtain a coating surface fusion feature vector.
[0030] Figure 3 The present invention is a flow chart of performing multi-channel feature extraction on the coating surface image in the spraying quality detection method combined with machine vision according to an embodiment of the present application to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map. Figure 3 As shown, multi-channel feature extraction is performed on the coating surface image to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map, including: S11, extracting the R channel coating surface image, the G channel coating surface image and the B channel coating surface image from the coating surface image; and S12, passing the R channel coating surface image, the G channel coating surface image and the B channel coating surface image through a multi-scale coating surface feature extraction module respectively to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map.
[0031] More specifically, an R channel coating surface image, a G channel coating surface image and a B channel coating surface image are extracted from the coating surface image. In digital image processing, color information is usually composed of three basic color channels, RGB. By separating these channels, the distribution and characteristics of each color can be analyzed separately, providing a basis for subsequent color-related analysis. Individual RGB channels can reveal different characteristics of the coating surface. For example, some defects may be more obvious in one channel, while other channels may show different textures or patterns on the coating surface. By analyzing separate channels, different types of coatings and defect detection requirements can be more flexibly adapted. Different coatings may have different sensitivities to different color channels. In machine learning and deep learning models, fusing the feature maps of the three RGB channels can provide richer information and help improve the accuracy of defect detection. Processing each channel separately can simplify the complexity of certain image processing algorithms, such as edge detection, threshold processing, etc. By learning features from the RGB channels separately, the deep learning model can improve the generalization ability of different coating types and changes in lighting conditions. At the same time, processing the RGB channels separately and combining their features can increase the robustness of the system to combat environmental changes (such as lighting changes) and the unevenness of coating materials.
[0032] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the multi-scale coating surface feature extraction module is a multi-scale feature extraction module including a first convolutional neural network and a second convolutional neural network.
[0033] Specifically, in the above-mentioned method for spraying quality detection combined with machine vision, the first convolutional neural network and the second convolutional neural network have convolution kernels with different void rates.
[0034] More specifically, the R channel coating surface image, the G channel coating surface image and the B channel coating surface image are respectively passed through a multi-scale coating surface feature extraction module to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map. The multi-scale coating surface feature extraction module is a multi-scale feature extraction module comprising a first convolutional neural network (CNN) and a second convolutional neural network, wherein the first convolutional neural network and the second convolutional neural network have convolution kernels with different voiding rates. CNNs with different voiding rates can capture features of different scales. A lower voiding rate helps capture detail features, while a higher voiding rate can capture more macroscopic patterns and contextual information. The multi-scale feature map provides a richer representation of the coating surface image, which helps the deep learning model to better understand and classify the complex features of the coating surface. Defects on different coating surfaces may behave differently at different scales. Through multi-scale analysis, the model can adapt to various coatings and defect types more flexibly. At the same time, multi-scale feature extraction can reduce redundant information in the image, so that the model can focus more on features related to coating quality. Atrous convolution (also called dilated convolution) allows the network to capture a wider receptive field with fewer parameters and computation, which is particularly useful for extracting coating surface features. In practical applications, the first convolutional neural network may focus on capturing subtle surface features, while the second convolutional neural network may be used to identify broader patterns. By combining the feature maps extracted by these two networks, a comprehensive feature representation can be obtained to provide support for accurate assessment of coating quality. The feature extraction process of the G channel coating surface image and the B channel coating surface image through the multi-scale coating surface feature extraction module refers to the feature extraction process of the R channel coating surface image through the multi-scale coating surface feature extraction module.
[0035] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the R channel coating surface image, the G channel coating surface image and the B channel coating surface image are respectively passed through a multi-scale coating surface feature extraction module to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map, including: using each layer of the first convolutional neural network to perform convolution processing and nonlinear activation processing on the input data in the forward transfer of the layer to output a first-scale R channel coating surface feature map from the last layer of the first convolutional neural network, wherein the input of the first layer of the first convolutional neural network model is the R channel coating surface image; using each layer of the second convolutional neural network to perform convolution processing and nonlinear activation processing on the input data in the forward transfer of the layer to output a second-scale R channel coating surface feature map from the last layer of the second convolutional neural network, wherein the input of the first layer of the second convolutional neural network model is the R channel coating surface image; the first-scale R channel coating surface feature map and the second-scale R channel coating surface feature map are fused to obtain a multi-scale R channel coating surface feature map.
[0036] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, high-dimensional feature extraction is performed on the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map and the multi-scale B channel coating surface feature map to obtain a coating surface fusion feature map, including: aggregating the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map and the multi-scale B channel coating surface feature map into a three-dimensional coating surface feature tensor and then using a coating surface high-dimensional feature extraction module with a three-dimensional convolution kernel to obtain a coating surface fusion feature map.
[0037] More specifically, the multi-scale R channel, G channel, and B channel coating surface feature maps are aggregated into a three-dimensional coating surface feature tensor, and the coating surface fusion feature map is obtained by using a convolutional neural network (CNN) model with a three-dimensional convolution kernel. By aggregating multi-scale features, details and contextual information at different levels can be integrated to form a comprehensive description of the coating surface. The three-dimensional feature tensor fuses the information of the three RGB color channels, which helps the model to understand and classify the characteristics of the coating surface more accurately. The three-dimensional convolution kernel can capture the interaction between the spatially adjacent R, G, and B features, and enhance the model's ability to express complex features of the coating surface. At the same time, the three-dimensional convolution operation can effectively learn the spatial features of the coating surface image, including texture, edge, and shape. The CNN using the three-dimensional convolution kernel can perform deep learning and automatically learn complex feature representations from the data, reducing the need for manual feature engineering. By aggregating and fusing features, the redundancy of information can be reduced and features related to coating quality can be highlighted. The coating surface fusion feature map can improve the robustness of the model to factors such as different lighting conditions and coating material changes. Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the coating surface high-dimensional feature extraction module is a convolutional neural network model using a three-dimensional convolution kernel.
[0038] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map and the multi-scale B channel coating surface feature map are aggregated into a three-dimensional coating surface feature tensor, and then a coating surface high-dimensional feature extraction module using a three-dimensional convolution kernel is used to obtain a coating surface fusion feature map, including: using the coating surface high-dimensional feature extraction module using the three-dimensional convolution kernel to perform three-dimensional convolution processing on the input data in the forward transfer of the layer based on the three-dimensional convolution kernel to obtain a convolution feature map; performing mean pooling processing on the convolution feature map based on a local feature matrix to obtain a pooling feature map; and performing nonlinear activation on the pooling feature map to obtain an activation feature map; wherein the output of the last layer of the coating surface high-dimensional feature extraction module using the three-dimensional convolution kernel is the coating surface fusion feature map, and the input of the first layer of the coating surface high-dimensional feature extraction module using the three-dimensional convolution kernel is the three-dimensional coating surface feature tensor.
[0039] More specifically, the coating surface fusion feature map is pooled along the channel dimension of the local feature matrix to obtain the coating surface fusion feature vector. The pooling operation can reduce the dimension of the feature, which helps to reduce the computational burden of the subsequent network and reduce the risk of overfitting. At the same time, local features can be aggregated and abstracted by pooling to obtain a more robust and generalized feature representation. Moreover, pooling can reduce redundant information in the data, so that the model can focus more on the key features that distinguish the coating quality.
[0040] In step S130, the ultrasonic signal of the coating within the predetermined time period is analyzed to obtain an internal characteristic vector of the coating.
[0041] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the ultrasonic signal of the coating within the predetermined time period is analyzed to obtain the internal feature vector of the coating, including: passing the ultrasonic signal of the coating within the predetermined time period through a coating internal feature extractor based on a convolutional neural network model to obtain the internal feature vector of the coating.
[0042] More specifically, the ultrasonic signal of the coating within the predetermined time period is analyzed to obtain the internal feature vector of the coating, that is, the ultrasonic signal of the coating within the predetermined time period is passed through a coating internal feature extractor based on a convolutional neural network (CNN) model to obtain the internal feature vector of the coating. CNN is able to extract deep and complex feature representations from ultrasonic signals, which may be difficult to identify using traditional signal processing techniques. The defects that may exist inside the coating (such as holes, delamination) have different shapes and sizes, and CNN is able to handle this complexity and extract meaningful features from the signal. At the same time, the CNN model can be trained to process data quickly, which is very important for production environments that require real-time feedback.
[0043] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the ultrasonic signal of the coating within the predetermined time period is analyzed to obtain the internal feature vector of the coating, including: using each layer of the coating internal feature extractor based on the convolutional neural network model to perform the following on the input data in the forward transfer of the layer: convolution processing on the input data based on the convolution kernel to generate a convolution feature map; performing global mean pooling processing on the feature matrix along the channel dimension of the convolution feature map to generate a pooled feature map; and performing nonlinear activation on the feature values at each position in the pooled feature map to generate an activated feature enhancement map; wherein the output of the last layer of the coating internal feature extractor based on the convolutional neural network model is the coating internal feature vector, the input of the second layer to the last layer of the coating internal feature extractor based on the convolutional neural network model is the output of the previous layer, and the input of the coating internal feature extractor based on the convolutional neural network model is the ultrasonic signal of the coating within the predetermined time period.
[0044] In step S140, the coating surface fusion feature vector and the coating internal feature vector are comprehensively analyzed to obtain a result indicating whether the coating quality is qualified.
[0045] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the coating surface fusion feature vector and the coating internal feature vector are comprehensively analyzed to obtain a result indicating whether the coating quality is qualified, including: fusing the coating internal feature vector and the coating surface fusion feature vector to obtain a coating global fusion feature matrix; performing deep feature stacking based on the feature distribution space on the coating global fusion feature matrix to obtain an optimized coating global fusion feature matrix; and passing the optimized coating global fusion feature matrix through a classifier to obtain a classification result, and the classification result is used to indicate whether the coating quality is qualified.
[0046] More specifically, the coating internal feature vector and the coating surface fusion feature vector are fused to obtain the coating global fusion feature matrix. The internal and surface features of the coating jointly determine the overall quality of the coating. By fusing these two parts of the features, a more comprehensive description of the coating quality can be obtained. Combining internal and surface features can improve the accuracy of coating defect detection, because some defects may not be obvious inside or on the surface, but combined with the two can be more easily identified. By fusing the internal and surface features of the coating, a powerful feature representation can be constructed, which can provide a comprehensive evaluation for coating quality detection, thereby improving the reliability and effectiveness of the detection system.
[0047] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the internal feature vector of the coating and the fused feature vector of the coating surface are fused to obtain a global fused feature matrix of the coating, including: fusing the internal feature vector of the coating and the fused feature vector of the coating surface with the following fusion formula to obtain a global fused feature matrix of the coating; wherein the fusion formula is:
[0048]
[0049] in, represents vector multiplication, M represents the global fusion feature matrix of the coating, F1 represents the internal feature vector of the coating, F2 represents the surface fusion feature vector of the coating, Represents the transpose of the fused feature vector of the coating surface.
[0050] In particular, in the technical solution of the present application, it is considered that the coating quality is affected by many factors, including the internal characteristics and surface characteristics of the coating. Improving the degree of information aggregation can comprehensively consider the characteristic information of the coating inside and on the surface, so that the model can more comprehensively evaluate the coating quality and improve the comprehensiveness of the judgment. The judgment of the coating quality needs to comprehensively consider the correlation between the internal characteristics and the surface characteristics of the coating. By improving the degree of information aggregation, the complex association between these features can be better captured, and the model's ability to understand the coating quality can be improved. The characteristics of the coating inside and on the surface may exist at different scales and levels. Improving the degree of information aggregation can help the model capture the characteristics of the coating at different scales, thereby more comprehensively evaluating the coating quality. The judgment of the coating quality needs to consider the dynamic association between the internal characteristics and the surface characteristics of the coating, which may change with time and conditions. Improving the degree of information aggregation can help the model capture this dynamic association more accurately and improve the real-time evaluation capability of the coating quality. By improving the degree of information aggregation of the global fusion feature matrix of the coating, it can help optimize the performance of the coating quality evaluation system, improve the accuracy and stability of the judgment, and thus ensure the reliability and consistency of the coating quality. Based on this, the global fusion feature matrix of the coating is subjected to deep feature stacking based on the feature distribution space.
[0051] More specifically, in the above-mentioned spraying quality detection method combined with machine vision, the coating global fusion feature matrix is subjected to deep feature stacking based on feature distribution space to obtain an optimized coating global fusion feature matrix, including: the coating global fusion feature matrix is subjected to deep feature stacking based on feature distribution space to obtain an optimized coating global fusion feature matrix according to the following optimization formula, wherein the optimization formula is:
[0052]
[0053] Where M represents the global fusion feature matrix of the coating, m i,j is the eigenvalue of the (i, j)th position of the global fusion feature matrix of the coating, σ 2 i,j (m i,j ) represents the eigenvalue set m i,j ∈M, and W and H are the width and height of the coating global fusion feature matrix M, respectively. log2 represents the logarithm with base 2, m' i,j is the eigenvalue of the (i, j)th position of the global fusion feature matrix of the optimized coating.
[0054] Here, in order to improve the information aggregation degree of the global fusion feature matrix of the coating, in the technical solution of the present application, the global fusion feature matrix of the coating is subjected to deep feature stacking based on the feature distribution space, and the logarithmic value of the absolute phase stacking of the eigenvalues at each position in the global fusion feature matrix of the coating is used to represent the structural information of the global fusion feature matrix of the coating at that position, and then a wavelet-like function is used to aggregate the structural information of the eigenvalues at all positions in the global fusion feature matrix of the coating, and the global fusion feature matrix of the coating is stacked based on the feature distribution space with the set variance of the structural information and the feature distribution of the global fusion feature matrix of the coating. In this way, it helps to maintain the spatial relationship between the features in the global fusion feature matrix of the coating, thereby limiting the spatial sparsity of the global fusion feature matrix of the coating to improve the information aggregation degree of the global fusion feature matrix of the coating.
[0055] More specifically, the optimized coating global fusion feature matrix is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the coating quality is qualified. The classifier can automatically make a judgment on whether the coating quality is qualified based on the optimized coating global fusion feature matrix, reducing the need for manual inspection. By inputting the optimized coating global fusion feature matrix into the classifier, a clear classification result can be obtained, which can be used to monitor and control the coating quality in real time, and realize efficient, accurate and objective automated quality inspection.
[0056] Specifically, in the above-mentioned spraying quality detection method combined with machine vision, the optimized coating global fusion feature matrix is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the coating quality is qualified, including: using the classifier to process the optimized coating global fusion feature matrix with the following classification formula to obtain the classification result; wherein the classification formula is:
[0057] O=softmax{(W c ,B c )|Project(F)}
[0058] Among them, Project(F) represents the projection of the optimized coating global fusion feature matrix into a vector, W c is the weight matrix, B c represents a bias vector, softmax represents a normalized exponential function, and O represents the classification result.
[0059] In summary, the spraying quality detection method combined with machine vision according to the embodiment of the present application has been explained, which uses artificial intelligence technology based on the field of deep learning to extract and encode features of the coating surface image and the ultrasonic signal of the coating within a predetermined time period to obtain the result of whether the coating quality is qualified. In this way, the coating quality is analyzed intelligently in real time to achieve comprehensive and continuous quality control.
[0060] Based on the same inventive concept, the embodiments of the present application also provide a spraying quality detection system combined with machine vision, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the spraying quality detection system combined with machine vision is similar to the above method, the implementation of the spraying quality detection system combined with machine vision can refer to the implementation of the above method, and the repetitions will not be repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0061] Figure 4 FIG. 1 is a block diagram of a spraying quality detection system combined with machine vision according to an embodiment of the present application. Figure 4 As shown, according to the embodiment of the present application, the spraying quality detection system 100 combined with machine vision includes: a coating data acquisition module 110, which is used to acquire a coating surface image and an ultrasonic signal of the coating within a predetermined time period; a coating surface feature extraction module 120, which is used to analyze the coating surface image to obtain a coating surface fusion feature vector; a coating internal feature extraction module 130, which is used to analyze the ultrasonic signal of the coating within the predetermined time period to obtain a coating internal feature vector; and a coating quality analysis module 140, which is used to comprehensively analyze the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified.
[0062] Here, those skilled in the art can understand that the specific functions and operations of the various units and modules in the above-mentioned spraying quality inspection system 100 combined with machine vision have been referred to above. Figures 1 to 3 The description of the spraying quality inspection method combined with machine vision has been introduced in detail, and therefore, its repeated description will be omitted.
[0063] In summary, the spraying quality detection system combined with machine vision according to the embodiment of the present application has been explained, which uses artificial intelligence technology based on the field of deep learning to extract and encode features of the coating surface image and the ultrasonic signal of the coating within a predetermined time period to obtain a result of whether the coating quality is qualified. In this way, comprehensive and continuous quality control can be achieved through intelligent real-time analysis of the coating quality.
[0064] In a typical example, the electronic device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned steps of spraying quality detection combined with machine vision are implemented.
[0065] Figure 5 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present application. Figure 4 As shown, based on the above-mentioned spraying quality detection method combined with machine vision, the embodiment of the present application also provides an electronic device, whose structural schematic diagram is as shown in Figure 5 As shown, it specifically includes a memory 11 for storing at least one set of instruction sets; a processor 12 for executing the instruction set stored in the memory, and implementing the following operations by executing the instruction set: acquiring a coating surface image and an ultrasonic signal of the coating within a predetermined time period; analyzing the coating surface image to obtain a coating surface fusion feature vector; analyzing the ultrasonic signal of the coating within the predetermined time period to obtain a coating internal feature vector; and comprehensively analyzing the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified.
[0066] Accordingly, an embodiment of the present invention further provides a storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the spray quality detection method combined with machine vision as described above is implemented. The computer storage medium may include ROM, RAM, a disk or an optical disk, etc. The computer storage medium may also include a non-volatile memory (non-volatile) or a non-transitory memory, etc.
[0067] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0068] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0069] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0070] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0071] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for spraying quality detection combined with machine vision, characterized in that: include: Acquire a coating surface image and an ultrasonic signal of the coating within a predetermined time period; Analyzing the coating surface image to obtain a coating surface fusion feature vector; Analyzing the ultrasonic signal of the coating within the predetermined time period to obtain an internal characteristic vector of the coating; The coating surface fusion feature vector and the coating internal feature vector are comprehensively analyzed to obtain a result indicating whether the coating quality is qualified.
2. The method for spraying quality detection combined with machine vision according to claim 1, characterized in that: Analyze the coating surface image to obtain a coating surface fusion feature vector, including: Performing multi-channel feature extraction on the coating surface image to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map, and a multi-scale B channel coating surface feature map; Performing high-dimensional feature extraction on the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map, and the multi-scale B channel coating surface feature map to obtain a coating surface fusion feature map; The coating surface fusion feature map is subjected to pooling processing of the local feature matrix along the channel dimension to obtain a coating surface fusion feature vector.
3. The method for spraying quality detection combined with machine vision according to claim 2 is characterized in that: Performing multi-channel feature extraction on the coating surface image to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map, and a multi-scale B channel coating surface feature map, including: Extracting an R channel coating surface image, a G channel coating surface image and a B channel coating surface image from the coating surface image; The R channel coating surface image, the G channel coating surface image and the B channel coating surface image are respectively passed through a multi-scale coating surface feature extraction module to obtain a multi-scale R channel coating surface feature map, a multi-scale G channel coating surface feature map and a multi-scale B channel coating surface feature map.
4. The method for spraying quality detection combined with machine vision according to claim 3 is characterized in that: The multi-scale coating surface feature extraction module is a multi-scale feature extraction module comprising a first convolutional neural network and a second convolutional neural network.
5. The method for spraying quality detection combined with machine vision according to claim 4 is characterized in that: The first convolutional neural network and the second convolutional neural network have convolution kernels with different void rates.
6. The method for spraying quality detection combined with machine vision according to claim 5 is characterized in that: Performing high-dimensional feature extraction on the multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map, and the multi-scale B channel coating surface feature map to obtain a coating surface fusion feature map, including: The multi-scale R channel coating surface feature map, the multi-scale G channel coating surface feature map and the multi-scale B channel coating surface feature map are aggregated into a three-dimensional coating surface feature tensor, and then a coating surface high-dimensional feature extraction module using a three-dimensional convolution kernel is used to obtain a coating surface fusion feature map.
7. The method for spraying quality inspection combined with machine vision according to claim 6, characterized in that: Analyzing the ultrasonic signal of the coating within the predetermined time period to obtain the internal characteristic vector of the coating includes: The ultrasonic signal of the coating within the predetermined time period is passed through a coating internal feature extractor based on a convolutional neural network model to obtain a coating internal feature vector.
8. The method for spraying quality detection combined with machine vision according to claim 7, characterized in that: Comprehensively analyzing the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified, including: The internal feature vector of the coating and the surface fusion feature vector of the coating are fused to obtain a global fusion feature matrix of the coating; Performing deep feature stacking based on feature distribution space on the coating global fusion feature matrix to obtain an optimized coating global fusion feature matrix; The optimized coating global fusion feature matrix is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the coating quality is qualified.
9. The method for spraying quality inspection combined with machine vision according to claim 8, characterized in that: Performing deep feature stacking based on feature distribution space on the coating global fusion feature matrix to obtain an optimized coating global fusion feature matrix, including: Calculating the variance of a feature set consisting of eigenvalues at all positions of the coating global fusion feature matrix to obtain the eigenvalue variance of the coating global fusion feature matrix; Calculating the square of the absolute value of the eigenvalues at each position of the coating global fusion feature matrix and then performing a logarithmic operation with base 2 to obtain a logarithmic transformation coating global fusion feature matrix; Accumulating and summing all eigenvalues of the global fusion feature matrix of the logarithmic transformation coating to obtain a sum value of the global fusion feature matrix of the logarithmic transformation coating; The sum of the logarithmic transformation coating global fusion feature matrix is divided by twice the eigenvalue variance of the coating global fusion feature matrix and then multiplied by the eigenvalue of each position of the coating global fusion feature matrix to obtain the optimized coating global fusion feature matrix.
10. A spraying quality inspection system combined with machine vision, characterized in that: include: A coating data acquisition module, used to acquire a coating surface image and an ultrasonic signal of the coating within a predetermined time period; A coating surface feature extraction module, used for analyzing the coating surface image to obtain a coating surface fusion feature vector; A coating internal feature extraction module, used to analyze the ultrasonic signal of the coating within the predetermined time period to obtain a coating internal feature vector; The coating quality analysis module is used to comprehensively analyze the coating surface fusion feature vector and the coating internal feature vector to obtain a result indicating whether the coating quality is qualified.
Citation Information
Cited By
Coating thickness detection system and method based on visual monitoring
CN119934990A
A coating thickness detection system and method based on visual monitoring
CN119934990B
Quality control method and device for knitted fabric production process
CN120146684A
A coating device with self-checking function and a detection method thereof
CN123024661A
System and method for identifying coating quality
TWI932403B
