Part machining precision automatic identification system and method based on computer vision

Deep learning computer vision technology is used to analyze part surface images and extract global semantic features, which solves the problem of low automation of parts detection in the existing technology, achieves fast, accurate, and automated detection of part processing accuracy, and adapts to the complex needs of modern industry. .

CN118587496AInactive Publication Date: 2024-09-03JIANGXI JINHU INSURANCE EQUIP GRP CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410735295.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing parts processing accuracy detection technology relies on manual operation and has a low degree of automation, resulting in inaccurate detection results and difficulty in meeting the complex requirements of modern industry for the processing accuracy of mechanical parts.

Method used

Computer vision technology based on deep learning is used to analyze part surface images, extract global semantic features, and automatically identify the processing quality of parts, including part surface image acquisition, local area feature extraction, feature enhancement, and global semantic context-related encoding, through convolution Neural network and Transformer models realize automated detection.

Benefits of technology

It realizes fast, accurate and automated detection of parts processing accuracy, reduces human errors, improves detection efficiency, and adapts to complex part types and processing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587496A
    Figure CN118587496A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent detection, and particularly discloses a part machining precision automatic identification system and method based on computer vision, which adopts a computer vision technology based on deep learning to analyze and process a part surface image, extracts global semantic features of the part surface image, and identifies the part machining precision. And information such as edges, contours and sizes of the parts is excavated, so that whether the machining quality of the parts is qualified or not is automatically identified. Therefore, rapid, accurate and automatic detection of the machining precision of the part can be realized, the detection efficiency is improved, and personal errors are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent detection technology, and more specifically, to a system and method for automatically identifying part processing accuracy based on computer vision. Background Art

[0002] With the continuous innovation and upgrading of modern industrial product design and manufacturing technology, the mechanical equipment manufacturing industry has achieved unprecedented rapid development. Parts processing accuracy is an important indicator to measure the quality of mechanical manufacturing. High-precision processed parts can ensure that the product has good performance and stability during assembly, operation and use, reduce failure rate and extend service life.

[0003] In order to ensure the machining accuracy of parts, strict quality monitoring and inspection of parts are required. However, many existing parts machining accuracy inspection technologies still rely on manual operation and have a low degree of automation, which not only increases the labor intensity of operators, but also may introduce human errors and affect the accuracy of the inspection results. In addition, with the development of the manufacturing industry, the types and complexity of parts are constantly increasing, and traditional inspection methods have been unable to meet the inspection requirements of modern industry for the machining accuracy of mechanical parts. Therefore, a system and method for automatic identification of parts machining accuracy based on computer vision are 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 system and method for automatically identifying the machining accuracy of parts based on computer vision, which uses computer vision technology based on deep learning to analyze and process the surface image of the part, extract the global semantic features of the surface image of the part, and mine the edge, contour, size and other information of the part, so as to automatically identify whether the machining quality of the part is qualified. In this way, fast, accurate and automated detection of the machining accuracy of parts can be achieved, the detection efficiency can be improved, and human errors can be reduced.

[0005] Accordingly, according to one aspect of the present application, a system for automatically identifying part processing accuracy based on computer vision is provided, comprising:

[0006] A part surface image acquisition module is used to acquire a part surface image captured by a camera;

[0007] An image local area feature extraction module is used to extract local area features from the part surface image to obtain a sequence of part local surface quality feature maps;

[0008] A feature enhancement module, used for performing feature enhancement processing on the sequence of local surface quality feature maps of the part to obtain a sequence of enhanced local surface quality feature maps of the part;

[0009] A global semantic context association encoding module is used to extract the global semantic context association features of the sequence of the enhanced part local surface quality feature maps to obtain a part surface quality global semantic association feature map;

[0010] The part processing quality recognition module is used to determine the part recognition result based on the global semantic association feature map of the part surface quality.

[0011] In the above-mentioned computer vision-based automatic identification system for part processing accuracy, the image local area feature extraction module includes: a contrast enhancement processing unit, which is used to perform contrast enhancement processing on the part surface image to obtain a contrast enhanced part surface image; an image blocking processing unit, which is used to perform image blocking processing on the contrast enhanced part surface image to obtain a sequence of part surface image blocks; and a part surface quality feature extraction unit, which is used to respectively extract image features of each part surface image block in the sequence of part surface image blocks to obtain a sequence of part local surface quality feature maps.

[0012] In the above-mentioned computer vision-based automatic identification system for part processing accuracy, the contrast enhancement processing unit is used to: perform histogram equalization preprocessing and CLAHE color correction on the part surface image to obtain the contrast enhanced part surface image.

[0013] In the above-mentioned computer vision-based automatic identification system for part processing accuracy, the part surface quality feature extraction unit is used to: pass the sequence of part surface image blocks through a part surface quality feature extractor based on a convolutional neural network model to obtain a sequence of part local surface quality feature maps.

[0014] In the above-mentioned computer vision-based automatic identification system for part processing accuracy, the feature enhancement module is used to: respectively pass each part local surface quality feature map in the sequence of part local surface quality feature maps through a feature enhancer based on a spatial self-attention mechanism to obtain the sequence of enhanced part local surface quality feature maps.

[0015] In the above-mentioned computer vision-based automatic identification system for parts processing accuracy, the global semantic context association encoding module is used to: pass the sequence of the enhanced part local surface quality feature map through a global context association encoder based on the Transformer model to obtain the part surface quality global semantic association feature map.

[0016] In the above-mentioned automatic identification system for part processing accuracy based on computer vision, the part processing quality identification module includes: an optimization unit, which is used to perform deep feature superposition based on data dimensions on the global semantic association feature map of part surface quality to obtain an optimized global semantic association feature map of part surface quality; an identification result generation unit, which is used to pass the optimized global semantic association feature map of part surface quality through a part processing quality identifier based on a classifier to obtain the identification result, and the identification result is used to indicate whether the part processing quality is qualified.

[0017] In the above-mentioned automatic identification system for part processing accuracy based on computer vision, the optimization unit is used to: calculate the variance of the feature set composed of the eigenvalues ​​of all positions of the global semantic association feature map of part surface quality to obtain the eigenvalue variance of the global semantic association feature map of part surface quality; calculate the square of the absolute value of the eigenvalues ​​at each position of the global semantic association feature map of part surface quality and then perform a logarithmic operation with base two to obtain a logarithmic transformation of the global semantic association feature map of part surface quality; accumulate and sum all the eigenvalues ​​of the logarithmic transformation of the global semantic association feature map of part surface quality to obtain the sum of the logarithmic transformation of the global semantic association feature map of part surface quality; divide the sum of the logarithmic transformation of the global semantic association feature map of part surface quality by twice the eigenvalue variance of the global semantic association feature map of part surface quality and then multiply it by the eigenvalues ​​at each position of the global semantic association feature map of part surface quality to obtain the optimized global semantic association feature map of part surface quality.

[0018] According to another aspect of the present application, a method for automatically identifying part processing accuracy based on computer vision is provided, which comprises:

[0019] Acquire the surface image of the part captured by the camera;

[0020] Extracting local area features from the part surface image to obtain a sequence of part local surface quality feature maps;

[0021] Performing feature enhancement processing on the sequence of local surface quality feature maps of the part to obtain a sequence of enhanced local surface quality feature maps of the part;

[0022] Extracting global semantic context association features of the sequence of local surface quality feature maps of the enhanced parts to obtain a global semantic association feature map of part surface quality;

[0023] Based on the global semantic association feature map of the part surface quality, a recognition result of the part is determined.

[0024] Compared with the prior art, the computer vision-based automatic identification system and method for part processing accuracy provided by this application uses computer vision technology based on deep learning to analyze and process part surface images, extract global semantic features of part surface images, and mine information such as the edge, contour, and size of the part, thereby automatically identifying whether the processing quality of the part is qualified. In this way, rapid, accurate, and automated detection of part processing accuracy can be achieved, detection efficiency can be improved, and human errors can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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.

[0026] Figure 1 It is a block diagram of a system for automatic identification of part processing accuracy based on computer vision according to an embodiment of the present application.

[0027] Figure 2 Schematic diagram of the architecture of a system for automatic identification of parts processing accuracy based on computer vision according to an embodiment of the present application.

[0028] Figure 3 It is a block diagram of an image local area feature extraction module in a computer vision-based part processing accuracy automatic identification system according to an embodiment of the present application.

[0029] Figure 4 It is a block diagram of a part processing quality identification module in a part processing accuracy automatic identification system based on computer vision according to an embodiment of the present application.

[0030] Figure 5 The present invention is a flowchart of a method for automatically identifying part processing accuracy based on computer vision according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] Below, the embodiments of the present application will be described in more detail in conjunction with the accompanying drawings, and the above and other purposes, features and advantages of the present application will become more apparent. 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 example embodiments described herein. At the same time, the accompanying drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the present application, and do not constitute a limitation on the present application.

[0032] Figure 1It is a block diagram of a system for automatic identification of part processing accuracy based on computer vision according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of a system for automatically identifying part processing accuracy based on computer vision according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the automatic identification system 100 for part processing accuracy based on computer vision includes: a part surface image acquisition module 110, which is used to acquire a part surface image collected by a camera; an image local area feature extraction module 120, which is used to perform local area feature extraction on the part surface image to obtain a sequence of part local surface quality feature maps; a feature enhancement module 130, which is used to perform feature enhancement processing on the sequence of part local surface quality feature maps to obtain a sequence of enhanced part local surface quality feature maps; a global semantic context association encoding module 140, which is used to extract the global semantic context association features of the sequence of enhanced part local surface quality feature maps to obtain a global semantic association feature map of part surface quality; a part processing quality identification module 150, which is used to determine the identification result of the part based on the global semantic association feature map of part surface quality.

[0033] As mentioned in the above background technology, in modern manufacturing, in order to ensure the machining accuracy of parts, it is necessary to implement strict quality control and inspection. However, most of the current parts machining accuracy inspection technologies still rely on manual operation, and the automation level is relatively low, which not only increases the workload of operators, but also may introduce human errors and affect the accuracy of the inspection results. In addition, with the continuous development of the manufacturing industry, the types and complexity of parts are increasing, and traditional inspection methods have been difficult to meet the needs of modern industry for machining accuracy inspection of mechanical parts. In view of the above technical problems, the technical concept of this application is to use computer vision technology based on deep learning to analyze and process the surface image of the part, extract the global semantic features of the surface image of the part, and mine the edge, contour, size and other information of the part, so as to automatically identify whether the machining quality of the part is qualified. In this way, it is possible to achieve fast, accurate and automated inspection of the machining accuracy of the part, improve the inspection efficiency and reduce human errors.

[0034] In the above-mentioned computer vision-based automatic identification system 100 for part processing accuracy, the part surface image acquisition module 110 is used to acquire the part surface image acquired by the camera. It should be understood that the part surface image acquired by the camera contains rich part visual information, such as edges, contours, sizes, textures, colors, etc., which is an intuitive reflection of the part processing accuracy. In the technical solution of the present application, a large number of surface images of parts are quickly acquired by a camera, and combined with computer vision technology, automated part processing quality detection and identification can be achieved, greatly improving detection efficiency and accuracy. In addition, using a camera for image acquisition is a non-contact detection method that will not cause secondary damage or contamination to the parts, while also ensuring the safety and convenience of the detection process.

[0035] In the above-mentioned computer vision-based automatic identification system 100 for part processing accuracy, the image local region feature extraction module 120 is used to extract local region features from the part surface image to obtain a sequence of part local surface quality feature maps. Figure 3 FIG. 1 is a block diagram of an image local area feature extraction module in a computer vision-based part processing accuracy automatic recognition system according to an embodiment of the present application. Figure 3 As shown, the image local area feature extraction module 120 includes: a contrast enhancement processing unit 121, used to perform contrast enhancement processing on the part surface image to obtain a contrast enhanced part surface image; an image block processing unit 122, used to perform image block processing on the contrast enhanced part surface image to obtain a sequence of part surface image blocks; a part surface quality feature extraction unit 123, used to respectively extract image features of each part surface image block in the sequence of part surface image blocks to obtain a sequence of part local surface quality feature maps.

[0036] Specifically, the contrast enhancement processing unit 121 is used to perform contrast enhancement processing on the part surface image to obtain a contrast enhanced part surface image. It should be understood that, considering that in the actual part processing process, the part surface image collected by the camera may be affected by factors such as lighting conditions, equipment accuracy, and shooting angle, resulting in low image quality, affecting subsequent feature extraction and recognition. Therefore, in the technical solution of the present application, in order to enhance the detail information in the image and make the subsequent image analysis and processing more accurate and effective, the part surface image is further subjected to contrast enhancement processing. In a specific example of the present application, the processing method for performing contrast enhancement processing on the part surface image is to perform histogram equalization preprocessing and CLAHE color correction on the part surface image to obtain the contrast enhanced part surface image. Specifically, histogram equalization is a commonly used image enhancement technology, which enhances the contrast of the part surface image by stretching the pixel intensity distribution range, broadens the grayscale with a large number of pixels in the image, and reduces the grayscale with a small number of pixels, thereby achieving the purpose of a clear image. However, when there is an uneven brightness distribution in the part surface image, traditional histogram equalization may cause excessive contrast enhancement in certain areas, resulting in noise amplification. To this end, in the technical solution of the present application, CLAHE (Contrast Limited Adaptive Histogram Equalization) technology is further introduced. CLAHE is an improved adaptive histogram equalization method, which, on the basis of histogram equalization, performs histogram equalization on the local area of ​​the part surface image and limits the degree of contrast amplification during the equalization process, thereby avoiding the problems of excessive enhancement and noise amplification, and can more effectively enhance the local contrast of the image while maintaining the overall naturalness of the image. Through the combination of histogram equalization and CLAHE technology, the edge, contour, size and other detail information in the part surface image can be made clearer and more prominent, providing a good data basis for subsequent feature extraction and recognition.

[0037] Specifically, the image block processing unit 122 is used to perform image block processing on the contrast enhanced part surface image to obtain a sequence of part surface image blocks. It should be understood that, considering that different positions on the part surface usually have different visual features and processing accuracy requirements, if the contrast enhanced part surface image is directly input into the deep learning model for processing, it may cause the loss of local detail information of the part surface and excessive calculation, thereby affecting the accuracy of the detection result and the timeliness of the response. Therefore, in order to capture the characteristics of each local area of ​​the part surface more finely, in the technical solution of the present application, the contrast enhanced part surface image is further processed by block processing to divide it into multiple image blocks of the same size, so as to obtain the part surface image of each local area. Specifically, through image block processing, each part surface image block can be subjected to parallel and independent feature extraction, which helps to focus on the local details of the image, thereby more accurately digging out the defects of the part surface. In addition, through image block processing, the number of pixels of each part surface image block is significantly reduced, thereby reducing the amount of calculation and further improving the image processing efficiency.

[0038] Specifically, the part surface quality feature extraction unit 123 is used to extract the image features of each part surface image block in the sequence of the part surface image blocks to obtain the sequence of the part local surface quality feature map. In a specific example of the present application, the encoding method of extracting the image features of each part surface image block in the sequence of the part surface image blocks to obtain the sequence of the part local surface quality feature map is to pass the sequence of the part surface image blocks through the part surface quality feature extractor based on the convolutional neural network model to obtain the sequence of the part local surface quality feature map. It should be understood that the convolutional neural network is a deep learning algorithm with powerful feature learning and expression capabilities, and can automatically extract useful feature information from the input image. In the technical solution of the present application, the part surface quality feature extractor based on the convolutional neural network model is used to extract features from each part surface image block, and the deep-level features in each part surface image block, such as edge, texture, shape, color, etc., can be learned, so as to obtain the part local surface quality feature map that can accurately describe the surface quality of the part in the local area, and provide a strong basis for the machining accuracy analysis and defect identification of the part surface. Moreover, due to the characteristics of weight sharing and local connection of convolutional neural networks, it can effectively reduce the complexity of the model and improve computational efficiency, so that the task of part surface quality detection can be completed in real time and accurately.

[0039] In the above-mentioned computer vision-based automatic identification system 100 for part processing accuracy, the feature enhancement module 130 is used to perform feature enhancement processing on the sequence of the part local surface quality feature map to obtain a sequence of enhanced part local surface quality feature maps. It should be understood that, considering that in the part local surface quality feature map, the contribution of different regions to the part processing accuracy detection is different, some regions may contain important quality information, while some regions may be relatively minor. Therefore, in order to further improve the accuracy and effectiveness of feature expression, it is necessary to perform feature enhancement processing on the part local surface quality feature map to highlight important feature information and suppress irrelevant information. In a specific example of the present application, the processing method for performing feature enhancement processing on the sequence of the part local surface quality feature map is to pass each part local surface quality feature map in the sequence of the part local surface quality feature map through a feature enhancer based on a spatial self-attention mechanism to obtain a sequence of enhanced part local surface quality feature maps. Specifically, the spatial self-attention mechanism can learn the dependency between each pixel point and construct an attention weight matrix based on this relationship to realize weighted processing of the spatial features of the local surface quality feature map of the part, thereby highlighting important feature areas and suppressing irrelevant areas, so that the key information in the local surface quality feature map of the part is better emphasized, providing a more accurate and reliable feature representation for subsequent processing accuracy analysis and defect identification.

[0040] In the above-mentioned computer vision-based automatic identification system 100 for part machining accuracy, the global semantic context association encoding module 140 is used to extract the global semantic context association features of the sequence of the enhanced part local surface quality feature map to obtain the global semantic association feature map of the part surface quality. It should be understood that the quality information of the part surface not only exists in the local area, but is also closely related to its global context information. Therefore, in order to more comprehensively describe the overall quality status of the part surface, it is expected to further integrate and associate the sequence of the enhanced part local surface quality feature map to obtain an overall and global semantic understanding of the part surface quality. In a specific example of the present application, the encoding method of extracting the global semantic context association features of the sequence of the enhanced part local surface quality feature map to obtain the global semantic association feature map of the part surface quality is to pass the sequence of the enhanced part local surface quality feature map through a global context association encoder based on the Transformer model to obtain the global semantic association feature map of the part surface quality. Those of ordinary skill in the art should know that the Transformer model has a powerful sequence modeling capability, which can effectively capture the global context information of the sequence data and associate features at different positions. In the technical solution of the present application, the global contextual encoder based on the Transformer model can capture the correlation dependencies between all positions in the sequence of the local surface quality feature map of the enhanced part through the self-attention mechanism (Self-Attention Mechanism), and obtain the global part surface quality information, so as to fully understand the overall quality status of the part surface and further improve the accuracy and reliability of part processing precision identification.

[0041] In the above-mentioned computer vision-based automatic identification system 100 for part processing accuracy, the part processing quality identification module 150 is used to determine the identification result of the part based on the global semantic association feature map of the part surface quality. Figure 4 FIG. 1 is a block diagram of a part processing quality identification module in a part processing accuracy automatic identification system based on computer vision according to an embodiment of the present application. Figure 4 As shown, the part processing quality identification module 150 includes: an optimization unit 151, which is used to perform deep feature superposition based on data dimensions on the global semantic association feature map of the part surface quality to obtain an optimized global semantic association feature map of the part surface quality; and a recognition result generation unit 152, which is used to pass the optimized global semantic association feature map of the part surface quality through a classifier-based part processing quality identifier to obtain the recognition result, and the recognition result is used to indicate whether the part processing quality is qualified.

[0042] Specifically, the optimization unit 151 is used to perform deep feature superposition based on data dimensions on the global semantic association feature map of the part surface quality to obtain an optimized global semantic association feature map of the part surface quality. In particular, in the technical solution of the present application, it is considered that the evaluation of the part surface quality needs to comprehensively consider the characteristics and quality of the entire part, rather than being limited to local features. If the information aggregation degree of the global semantic association feature map of the part surface quality can be improved, the semantic information of the entire part can be better understood, so as to more accurately judge whether the processing quality of the part is qualified. Specifically, the evaluation of the surface quality of a part may involve features of multiple scales, including local surface quality features and global surface quality features. By improving the information aggregation degree, feature information of different scales can be better integrated, so that the model can capture features of different levels at the same time, and improve the accuracy of part processing quality recognition. In addition, when processing part surface quality data, information loss may lead to inaccurate recognition results. By improving the information aggregation degree, the possibility of information loss can be reduced, ensuring that the model can make full use of all available information for accurate quality recognition. At the same time, the judgment of the surface quality of a part needs to consider global semantic association features, such as overall quality distribution, structural association, etc. By improving the information aggregation degree of the global semantic association feature map of the part surface quality, the model can better capture the global association features, thereby improving the accuracy and robustness of part processing quality recognition. Based on this, in the technical solution of the present application, the global semantic association feature map of the part surface quality is further subjected to deep feature superposition based on the data dimension.

[0043] Specifically, the optimization unit 151 is used to: calculate the variance of the feature set composed of the eigenvalues ​​at all positions of the global semantic association feature map of part surface quality to obtain the eigenvalue variance of the global semantic association feature map of part surface quality; calculate the square of the absolute value of the eigenvalue at each position of the global semantic association feature map of part surface quality and then perform a logarithmic operation with base two to obtain a logarithmic transformation of the global semantic association feature map of part surface quality; accumulate and sum all the eigenvalues ​​of the logarithmic transformation of the global semantic association feature map of part surface quality to obtain the sum of the logarithmic transformation of the global semantic association feature map of part surface quality; divide the sum of the logarithmic transformation of the global semantic association feature map of part surface quality by twice the eigenvalue variance of the global semantic association feature map of part surface quality and then multiply it by the eigenvalue at each position of the global semantic association feature map of part surface quality to obtain the optimized global semantic association feature map of part surface quality.

[0044] That is to say, the global semantic association feature map of the part surface quality is subjected to deep feature superposition based on the data dimension to obtain an optimized global semantic association feature map of the part surface quality, including: performing deep feature superposition based on the data dimension on the global semantic association feature map of the part surface quality according to the following optimization formula, wherein the optimization formula is:

[0045]

[0046] Where F represents the global semantic association feature map of the part surface quality, f i,j,k is the feature value of the (i, j, k)th position of the global semantic association feature map F of the part surface quality, σ 2 i,j,k (f i,j,k ) represents the eigenvalue set f i,j,k ∈F, and W, H and C are the width, height and number of channels of the global semantic association feature map F of the surface quality of the part, respectively. Log2 represents the logarithm with base 2, and f' i,j,k It is the feature value of the (i, j, k)th position of the global semantic association feature map of the optimized part surface quality.

[0047] Here, in order to improve the information aggregation degree of the global semantic association feature map of part surface quality, in the technical solution of the present application, the global semantic association feature map of part surface quality is subjected to deep feature superposition based on data dimension, and the logarithmic value of the absolute phase stack of the eigenvalues ​​at each position in the global semantic association feature map of part surface quality is used to represent the structural information of the global semantic association feature map of part surface quality 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 semantic association feature map of part surface quality, and the global semantic association feature map of part surface quality is stacked based on the feature distribution space using the set variance of the structural information and the feature distribution of the global semantic association feature map of part surface quality. In this way, it helps to maintain the spatial relationship between the features in the global semantic association feature map of part surface quality, thereby performing spatial sparsity restrictions on the global semantic association feature map of part surface quality to improve the information aggregation degree of the global semantic association feature map of part surface quality.

[0048] Specifically, the recognition result generating unit 152 is used to pass the global semantic association feature map of the optimized part surface quality through the part processing quality identifier based on the classifier to obtain the recognition result, and the recognition result is used to indicate whether the part processing quality is qualified. It should be understood that the classifier is an important tool in the field of machine learning, which can automatically extract the features of the data and classify them by learning a large amount of sample data. In the technical solution of the present application, the global semantic association feature map of the optimized part surface quality contains a comprehensive and detailed part surface quality, which can accurately reflect the part processing accuracy. The global semantic association feature map of the optimized part surface quality is processed by the part processing quality identifier based on the classifier. The part processing quality identifier can accurately analyze and judge the global semantic association feature map of the optimized part surface quality based on the features and rules related to the part processing quality learned during the training process, so as to output the recognition result of the part processing quality, that is, whether the part processing quality is qualified. In this way, the automation level of detection can be greatly improved, the labor cost can be reduced, and the production efficiency can be improved. In addition, in the specific implementation, further decision support can be provided according to the implementation recognition result. For example, when it is identified that the processing quality of a part is unqualified, the system can automatically trigger an alarm mechanism to notify relevant personnel to handle it, providing strong technical support for quality control in the parts processing industry.

[0049] In summary, the automatic identification system for part processing accuracy based on computer vision according to the embodiment of the present application is explained, which uses computer vision technology based on deep learning to analyze and process the part surface image, extract the global semantic features of the part surface image, and mine the edge, contour, size and other information of the part, so as to automatically identify whether the processing quality of the part is qualified. In this way, fast, accurate and automatic detection of part processing accuracy can be achieved, the detection efficiency can be improved, and human errors can be reduced.

[0050] Figure 5 FIG. 1 is a flowchart of a method for automatically identifying part processing accuracy based on computer vision according to an embodiment of the present application. Figure 5 As shown, according to the embodiment of the present application, the automatic identification method of part processing accuracy based on computer vision includes the following steps: S110, acquiring a part surface image captured by a camera; S120, performing local area feature extraction on the part surface image to obtain a sequence of part local surface quality feature maps; S130, performing feature enhancement processing on the sequence of part local surface quality feature maps to obtain a sequence of enhanced part local surface quality feature maps; S140, extracting the global semantic context association features of the sequence of enhanced part local surface quality feature maps to obtain a part surface quality global semantic association feature map; S150, determining the recognition result of the part based on the part surface quality global semantic association feature map.

[0051] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned method for automatic identification of part processing accuracy based on computer vision have been referred to above. Figures 1 to 4 The description of the automatic identification system for part processing accuracy based on computer vision has been introduced in detail, and therefore, its repeated description will be omitted.

[0052] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details of the above embodiments are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0053] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiment described above is only schematic. For example, the module division is only a logical function division, and there may be other division methods in actual implementation. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0054] Those of ordinary skill in the art will 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 terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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.

[0055] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0056] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference to a figure in a claim should not be considered as limiting the claim to which it relates.

[0057] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units stated in the system claims can also be implemented by one unit through software or hardware.

[0058] Finally, it should be noted that the above description has been given for the purpose of illustration and description. In addition, the above embodiments are only used to illustrate the technical solution of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A computer vision-based automatic recognition system for parts processing accuracy, characterized in that: include: A part surface image acquisition module is used to acquire a part surface image captured by a camera; An image local area feature extraction module is used to extract local area features from the part surface image to obtain a sequence of part local surface quality feature maps; A feature enhancement module, used for performing feature enhancement processing on the sequence of local surface quality feature maps of the part to obtain a sequence of enhanced local surface quality feature maps of the part; A global semantic context association encoding module is used to extract the global semantic context association features of the sequence of the enhanced part local surface quality feature maps to obtain a part surface quality global semantic association feature map; The part processing quality recognition module is used to determine the part recognition result based on the global semantic association feature map of the part surface quality.

2. The automatic identification system for parts processing accuracy based on computer vision according to claim 1 is characterized in that: The image local area feature extraction module comprises: A contrast enhancement processing unit, used for performing contrast enhancement processing on the part surface image to obtain a contrast enhanced part surface image; An image block processing unit, used for performing image block processing on the contrast enhanced part surface image to obtain a sequence of part surface image blocks; The part surface quality feature extraction unit is used to respectively extract the image features of each part surface image block in the sequence of part surface image blocks to obtain a sequence of part local surface quality feature maps.

3. The computer vision-based automatic identification system for parts processing accuracy according to claim 2 is characterized in that: The contrast enhancement processing unit is used to: The part surface image is subjected to histogram equalization preprocessing and CLAHE color correction to obtain the contrast-enhanced part surface image.

4. The computer vision-based automatic identification system for parts processing accuracy according to claim 3 is characterized in that: The part surface quality feature extraction unit is used to: The sequence of the part surface image blocks is passed through a part surface quality feature extractor based on a convolutional neural network model to obtain a sequence of the part local surface quality feature maps.

5. The computer vision-based automatic identification system for parts processing accuracy according to claim 4 is characterized in that: The feature enhancement module is used to: Each of the local surface quality feature maps of the parts in the sequence of the local surface quality feature maps of the parts is respectively passed through a feature enhancer based on a spatial self-attention mechanism to obtain the sequence of enhanced local surface quality feature maps of the parts.

6. The computer vision-based automatic identification system for parts processing accuracy according to claim 5 is characterized in that: The global semantic context association encoding module is used to: The sequence of the local surface quality feature maps of the enhanced parts is passed through a global context association encoder based on a Transformer model to obtain the global semantic association feature map of the part surface quality.

7. The computer vision-based automatic identification system for parts processing accuracy according to claim 6 is characterized in that: The part processing quality identification module comprises: An optimization unit, used for performing a deep feature superposition based on the data dimension on the global semantic association feature map of the part surface quality to obtain an optimized global semantic association feature map of the part surface quality; The recognition result generating unit is used to pass the optimized part surface quality global semantic association feature map through a part processing quality identifier based on a classifier to obtain the recognition result, and the recognition result is used to indicate whether the part processing quality is qualified.

8. The computer vision-based automatic identification system for parts processing accuracy according to claim 7 is characterized in that: The optimization unit is used to: Calculating the variance of a feature set composed of feature values ​​at all positions of the global semantic association feature map of part surface quality to obtain a feature value variance of the global semantic association feature map of part surface quality; Calculating the square of the absolute value of the feature value at each position of the global semantic association feature map of the part surface quality and then performing a logarithmic operation with base 2 to obtain a logarithmic transformation of the global semantic association feature map of the part surface quality; Accumulating and summing all the eigenvalues ​​of the logarithmic transformation part surface quality global semantic association feature map to obtain a sum value of the logarithmic transformation part surface quality global semantic association feature map; The sum of the logarithmically transformed global semantic association feature map of part surface quality is divided by twice the eigenvalue variance of the global semantic association feature map of part surface quality, and then multiplied by the eigenvalue of each position of the global semantic association feature map of part surface quality to obtain the optimized global semantic association feature map of part surface quality.

9. A method for automatically identifying part processing accuracy based on computer vision, characterized in that: include: Acquire the surface image of the part captured by the camera; Extracting local area features from the part surface image to obtain a sequence of part local surface quality feature maps; Performing feature enhancement processing on the sequence of local surface quality feature maps of the part to obtain a sequence of enhanced local surface quality feature maps of the part; Extracting global semantic context association features of the sequence of the enhanced part local surface quality feature maps to obtain a part surface quality global semantic association feature map; Based on the global semantic association feature map of the part surface quality, a recognition result of the part is determined.

10. The method for automatic identification of parts processing accuracy based on computer vision according to claim 9, characterized in that: Extracting local area features from the part surface image to obtain a sequence of local surface quality feature maps of the part, including: Performing contrast enhancement processing on the part surface image to obtain a contrast enhanced part surface image; Performing image block processing on the contrast enhanced part surface image to obtain a sequence of part surface image blocks; The image features of each part surface image block in the sequence of the part surface image blocks are extracted respectively to obtain a sequence of the part local surface quality feature maps.

Citation Information

Cited By

  • Product detection system and method

    CN119251167A

  • Product detection system and method

    CN119251167B