Automatic gear shaft assembling system and method based on computer vision
By using computer vision technology based on deep learning to measure the semantic features of gear shaft assembly images, it solves the problems of low efficiency and large errors in traditional manual inspection, realizes automated and efficient inspection of gear shaft assembly quality, and improves the accuracy of inspection. performance and reliability.
Patent Information
- Application Number
- CN202410722107.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Traditional gear shaft assembly inspection relies on manual operation, which is inefficient, highly subjective, and has large errors. It is difficult to meet the large-scale and high-efficiency production needs of modern machinery manufacturing.
Computer vision technology based on deep learning is used to perform semantic feature extraction and matching measurement on the gear shaft assembly image to be inspected and the assembly-qualified reference image, to intelligently judge the assembly quality and generate early warning prompts.
It realizes automated and efficient detection of gear shaft assembly quality, reduces manual detection costs and errors, and improves detection accuracy and reliability.
Smart Images

Figure CN118735859A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and more specifically, to a computer vision-based gear shaft automated assembly system and method. Background Art
[0002] Gear shaft assembly is a complex and important process in mechanical manufacturing, which involves the accurate assembly of multiple precision parts to ensure that the gear shaft system can operate efficiently and smoothly. The assembly quality of the gear shaft directly affects the performance and reliability of the mechanical equipment. Therefore, after the assembly is completed, it is usually necessary to conduct a comprehensive inspection of the assembly results to ensure that it meets the design requirements.
[0003] The traditional gear shaft assembly inspection method mainly relies on manual operation, and the assembly parts are inspected one by one through visual inspection or measuring tools. However, this method has problems such as low inspection efficiency, strong subjectivity, and large errors. In addition, due to the complex structure of the gear shaft and the difficulty of inspection, the traditional manual inspection method can no longer meet the large-scale and high-efficiency production needs of modern machinery manufacturing.
[0004] With the rapid development of computer vision technology, the application of computer vision technology in the automated detection of gear shaft assembly process has gradually become a research hotspot in the field of mechanical manufacturing. Therefore, a computer vision-based gear shaft automated assembly system and method is expected. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a computer vision-based gear shaft automated assembly system and method, which uses deep learning-based computer vision technology to compare and analyze the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, respectively extract the image semantic features of the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, and measure the semantic feature matching of the two, so as to intelligently judge whether the assembly quality of the gear shaft to be tested is unqualified, and then generate an early warning prompt. In this way, the automated and efficient detection of the gear shaft assembly quality can be achieved to improve production efficiency, while reducing the cost and error of manual detection and improving the accuracy and reliability of assembly quality detection.
[0006] Accordingly, according to one aspect of the present application, a computer vision-based gear shaft automated assembly system is provided, comprising:
[0007] The gear shaft assembly image acquisition module is used to acquire the gear shaft assembly image captured by the camera and extract a set of gear shaft assembly reference images marked as qualified assembly from the background database;
[0008] A reference image semantic feature extraction module, used for performing assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors;
[0009] A detection image semantic feature extraction module, used for performing assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector;
[0010] A semantic matching measurement module, used for performing semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees;
[0011] The unqualified warning module is used to generate a warning prompt of unqualified gear shaft assembly in response to at least one semantic matching degree in the set of semantic matching degrees being less than or equal to a predetermined threshold.
[0012] In the above-mentioned computer vision-based gear shaft automated assembly system, the reference image semantic feature extraction module includes: an assembly state feature extraction unit, which is used to pass each of the qualified gear shaft assembly reference images in the set of qualified gear shaft assembly reference images through an assembly state feature extractor based on a DenseNet model to obtain a set of gear shaft assembly reference feature maps; and a multi-scale semantic distillation unit, which is used to pass each of the gear shaft assembly reference feature maps in the set of gear shaft assembly reference feature maps through a multi-scale semantic distillation module to obtain a set of gear shaft assembly reference semantic distillation feature vectors.
[0013] In the above-mentioned computer vision-based gear shaft automated assembly system, the multi-scale semantic distillation unit includes: a multi-scale semantic feature extraction sub-unit, used to respectively extract the global semantic features and local semantic features of the gear shaft assembly reference feature map to obtain a gear shaft assembly reference global semantic feature vector and a gear shaft assembly reference local semantic feature vector; a multi-scale semantic feature fusion sub-unit, used to fuse the gear shaft assembly reference global semantic feature vector and the gear shaft assembly reference local semantic feature vector to obtain the gear shaft assembly reference semantic distillation feature vector.
[0014] In the above-mentioned computer vision-based gear shaft automated assembly system, the multi-scale semantic feature extraction subunit is used to: upsample the gear shaft assembly reference feature map to obtain an upsampled gear shaft assembly reference feature map; pass the upsampled gear shaft assembly reference feature map through a global semantic feature extraction module to obtain the gear shaft assembly reference global semantic feature vector; pass the upsampled gear shaft assembly reference feature map through a local semantic feature extraction module to obtain the gear shaft assembly reference local semantic feature vector.
[0015] In the above-mentioned computer vision-based gear shaft automated assembly system, the global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer and a second activation layer.
[0016] In the above-mentioned computer vision-based gear shaft automated assembly system, the detection image semantic feature extraction module is used to: pass the gear shaft assembly image through the assembly state feature extractor based on the DenseNet model and the multi-scale semantic distillation module to obtain the gear shaft assembly detection semantic distillation feature vector.
[0017] In the above-mentioned computer vision-based gear shaft automated assembly system, the semantic matching metric module includes: a feature distribution optimization unit, which is used to perform feature distribution optimization on the set of gear shaft assembly reference semantic distillation feature vectors to obtain a set of optimized gear shaft assembly reference semantic distillation feature vectors; a semantic matching degree calculation unit, which is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and each optimized gear shaft assembly reference semantic distillation feature vector in the set of optimized gear shaft assembly reference semantic distillation feature vectors to obtain the set of semantic matching degrees.
[0018] In the above-mentioned computer vision-based gear shaft automated assembly system, the semantic matching degree calculation unit is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and the optimized gear shaft assembly reference semantic distillation feature vector using the following semantic matching formula, wherein the semantic matching formula is:
[0019] r = sigmoid(V w1 *V1+V w2 *V2)
[0020] Among them, V1 represents the semantic distillation feature vector of the gear shaft assembly detection, V2 represents the optimized semantic distillation feature vector of the gear shaft assembly reference, V w1 represents the first weight vector, V w2represents the second weight vector, * represents vector multiplication, + represents addition, sigmoid represents the activation function, and r represents the semantic matching degree.
[0021] According to another aspect of the present application, a computer vision-based gear shaft automated assembly method is provided, which includes:
[0022] Acquire the gear shaft assembly image captured by the camera, and extract a set of gear shaft assembly reference images marked as qualified assembly from the background database;
[0023] Performing assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors;
[0024] Performing assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector;
[0025] Performing semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees;
[0026] In response to at least one semantic matching degree in the set of semantic matching degrees being less than or equal to a predetermined threshold, an early warning prompt of unqualified gear shaft assembly is generated.
[0027] Compared with the prior art, the computer vision-based gear shaft automated assembly system and method provided by the present application uses computer vision technology based on deep learning to compare and analyze the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, respectively extract the image semantic features of the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, and through the semantic feature matching measurement of the two, intelligently judge whether the gear shaft to be tested has unqualified assembly quality, and then generate an early warning prompt. In this way, the automated and efficient detection of the gear shaft assembly quality can be achieved to improve production efficiency, while reducing the cost and error of manual detection, and improving the accuracy and reliability of assembly quality detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] 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.
[0029] Figure 1 4 is a block diagram of a computer vision-based gear shaft automated assembly system according to an embodiment of the present application.
[0030] Figure 2 Schematic diagram of the architecture of a computer vision-based gear shaft automated assembly system according to an embodiment of the present application.
[0031] Figure 3 4 is a block diagram of a reference image semantic feature extraction module in a computer vision-based gear shaft automated assembly system according to an embodiment of the present application.
[0032] Figure 4 It is a block diagram of a multi-scale semantic distillation unit in a computer vision-based gear shaft automated assembly system according to an embodiment of the present application.
[0033] Figure 5 It is a block diagram of a semantic matching measurement module in a computer vision-based gear shaft automated assembly system according to an embodiment of the present application.
[0034] Figure 6 The present invention is a flowchart of a computer vision-based automatic assembly method for a gear shaft according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] 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.
[0036] As mentioned in the background technology, the traditional gear shaft assembly detection method mainly relies on manual operation, that is, visual observation or using measuring tools to check the assembly parts one by one. However, this method has significant shortcomings, such as low detection efficiency, too strong subjective judgment factors and high error rate. In addition, in view of the complexity of the gear shaft structure and the increasing difficulty of detection, the traditional manual detection method can no longer meet the urgent requirements of the modern machinery manufacturing industry for large-scale and high-efficiency production. In view of the above technical problems, the technical concept of the present application is to use computer vision technology based on deep learning to compare and analyze the gear shaft assembly image to be detected and the qualified gear shaft assembly reference image, respectively extract the image semantic features of the gear shaft assembly image to be detected and the qualified gear shaft assembly reference image, and measure the semantic features of the two, so as to intelligently judge whether the assembly quality of the gear shaft to be detected is unqualified, and then generate an early warning prompt. In this way, the automatic and efficient detection of the gear shaft assembly quality can be realized to improve production efficiency, while reducing the cost and error of manual detection, and improving the accuracy and reliability of assembly quality detection.
[0037] Figure 1 4 is a block diagram of a computer vision-based gear shaft automated assembly system according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of a computer vision-based gear shaft automated assembly system according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to an embodiment of the present application, a computer vision-based gear shaft automated assembly system 100 includes: a gear shaft assembly image acquisition module 110, which is used to acquire a gear shaft assembly image captured by a camera, and extract a set of gear shaft assembly reference images marked as qualified for assembly from a background database; a reference image semantic feature extraction module 120, which is used to perform assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors; a detection image semantic feature extraction module 130, which is used to perform assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector; a semantic matching measurement module 140, which is used to perform semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees; an unqualified warning module 150, which is used to generate an early warning prompt of unqualified gear shaft assembly in response to the existence of at least one semantic matching degree less than or equal to a predetermined threshold value in the set of semantic matching degrees.
[0038] In the above-mentioned computer vision-based gear shaft automated assembly system 100, the gear shaft assembly image acquisition module 110 is used to acquire the gear shaft assembly image captured by the camera, and extract the set of gear shaft assembly reference images marked as qualified assembly from the background database. It should be understood that by collecting the gear shaft assembly image through the camera, the visual features of the assembly state of the gear shaft can be captured, providing a data basis for the subsequent assembly quality evaluation. At the same time, in order to be able to perform the assembly quality evaluation more intuitively and effectively, a set of gear shaft assembly reference images marked as qualified assembly is further extracted from the background database as a comparison benchmark. Each gear shaft assembly reference image in the set of gear shaft assembly reference images represents the correct state of the gear shaft assembly, and provides a clear qualified standard. By performing image semantic feature matching analysis on the gear shaft assembly image to be detected and the qualified reference image, the assembly quality of the gear shaft can be more accurately judged. In addition, by extracting the set of gear shaft assembly reference images, the limitations of a single reference image can be overcome, making the assembly quality evaluation more comprehensive and accurate. Furthermore, in a specific implementation, different types of qualified gear shaft assembly reference images can be added or updated in the background database to accommodate different types of gear shafts or assembly requirements, thereby enhancing the flexibility and scalability of the system.
[0039] In the above-mentioned computer vision-based gear shaft automated assembly system 100, the reference image semantic feature extraction module 120 is used to perform assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors. Figure 3 FIG. 1 is a block diagram of a reference image semantic feature extraction module in a gear shaft automated assembly system based on computer vision according to an embodiment of the present application. Figure 3 As shown, the reference image semantic feature extraction module 120 includes: an assembly state feature extraction unit 121, which is used to pass each of the qualified gear shaft assembly reference images in the set of qualified gear shaft assembly reference images through an assembly state feature extractor based on a DenseNet model to obtain a set of gear shaft assembly reference feature maps; a multi-scale semantic distillation unit 122, which is used to pass each of the gear shaft assembly reference feature maps in the set of gear shaft assembly reference feature maps through a multi-scale semantic distillation module to obtain a set of gear shaft assembly reference semantic distillation feature vectors.
[0040] Specifically, the assembly state feature extraction unit 121 is used to pass each of the assembled gear shaft assembly reference images in the set of the assembled gear shaft assembly reference images through an assembly state feature extractor based on the DenseNet model to obtain a set of gear shaft assembly reference feature maps. That is, in order to extract the state features of the assembled gear shaft from each gear shaft assembly reference image, in the technical solution of the present application, an assembly state feature extractor based on the DenseNet model is used to process each of the assembled gear shaft assembly reference images in the set of the assembled gear shaft assembly reference images. Those of ordinary skill in the art should know that DenseNet (Densely Connected Convolutional Networks) is a deep learning model architecture that uses a densely connected (Dense Connectivity) structure so that the output of each layer is connected to the output of all previous layers, which facilitates information transfer and helps alleviate the gradient vanishing problem. Here, the assembly status feature extractor based on the DenseNet model performs deep convolution operations on each gear shaft assembly reference image through its unique dense connection architecture, which can effectively extract key visual features such as component shape, texture, color, etc. in the image, fully express the qualified assembly status of the gear shaft, and provide effective data support for subsequent comparative analysis.
[0041] Specifically, the multi-scale semantic distillation unit 122 is used to pass each gear shaft assembly reference feature map in the set of the gear shaft assembly reference feature map through a multi-scale semantic distillation module to obtain a set of the gear shaft assembly reference semantic distillation feature vectors. It should be understood that, considering that there are usually assembly structures of multiple scales in the gear shaft assembly reference image, such as local component connection structures and overall assembly layout structures, in order to more comprehensively and accurately express the qualified state of the gear shaft assembly, in the technical solution of the present application, a multi-scale semantic distillation module is used to extract and fuse multi-scale semantic features of each gear shaft assembly reference feature map. Specifically, the multi-scale semantic distillation module mines global semantic features and local semantic features of the gear shaft assembly reference feature map through a global semantic feature extraction module and a local semantic feature extraction module, respectively, to capture the local assembly detail information and overall structural context information in the gear shaft assembly reference image. In particular, a global average pooling layer is provided in the global semantic feature extraction module, which can globally condense the gear shaft assembly reference feature map to learn its overall distribution pattern. In this way, by fusing the global and local assembly state semantic features to obtain the gear shaft assembly reference semantic distillation feature vector, the assembly state of the gear shaft can be described more accurately, thereby improving the understanding of the gear shaft assembly reference image.
[0042] Figure 4 FIG. 1 is a block diagram of a multi-scale semantic distillation unit in a computer vision-based gear shaft automated assembly system according to an embodiment of the present application. Figure 4 As shown, the multi-scale semantic distillation unit 122 includes: a multi-scale semantic feature extraction sub-unit 1221, used to extract the global semantic features and local semantic features of the gear shaft assembly reference feature map respectively to obtain the gear shaft assembly reference global semantic feature vector and the gear shaft assembly reference local semantic feature vector; a multi-scale semantic feature fusion sub-unit 1222, used to fuse the gear shaft assembly reference global semantic feature vector and the gear shaft assembly reference local semantic feature vector to obtain the gear shaft assembly reference semantic distillation feature vector.
[0043] More specifically, the multi-scale semantic feature extraction subunit 1221 is used to: upsample the gear shaft assembly reference feature map to obtain an upsampled gear shaft assembly reference feature map; pass the upsampled gear shaft assembly reference feature map through a global semantic feature extraction module to obtain a reference global semantic feature vector for the gear shaft assembly; pass the upsampled gear shaft assembly reference feature map through a local semantic feature extraction module to obtain a reference local semantic feature vector for the gear shaft assembly. The global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer, and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer, and a second activation layer.
[0044] In the above-mentioned computer vision-based gear shaft automated assembly system 100, the detection image semantic feature extraction module 130 is used to perform assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector. In a specific example of the present application, the processing method for performing assembly state feature extraction and semantic distillation on the gear shaft assembly image is to pass the gear shaft assembly image through the assembly state feature extractor based on the DenseNet model and the multi-scale semantic distillation module to obtain the gear shaft assembly detection semantic distillation feature vector. That is, for the gear shaft assembly image to be detected, its processing flow is similar to the processing flow of the gear shaft assembly reference image. Similarly, the assembly state feature extractor based on the DenseNet model and the multi-scale semantic distillation module are used to process the gear shaft assembly image to capture key visual features such as component shape, texture, color, etc. in the gear shaft assembly image, and to mine multi-scale assembly structure semantic information, thereby obtaining a gear shaft assembly detection semantic distillation feature vector, so as to comprehensively and accurately express the assembly state of the gear shaft to be detected, and provide data support for subsequent comparative analysis with the gear shaft assembly reference semantic distillation feature vector. In addition, through this same image processing method, the semantic feature space consistency and comparability of the gear shaft assembly reference semantic distillation feature vector and the gear shaft assembly detection semantic distillation feature vector can be ensured, thereby improving the accuracy and reliability of assembly quality judgment.
[0045] In the above-mentioned computer vision-based gear shaft automated assembly system 100, the semantic matching metric module 140 is used to perform semantic matching metric on each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees. Figure 5 FIG. 1 is a block diagram of a semantic matching metric module in a computer vision-based gear shaft automated assembly system according to an embodiment of the present application. Figure 5 As shown, the semantic matching metric module 140 includes: a feature distribution optimization unit 141, which is used to perform feature distribution optimization on the set of the gear shaft assembly reference semantic distillation feature vectors to obtain a set of optimized gear shaft assembly reference semantic distillation feature vectors; a semantic matching degree calculation unit 142, which is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and each optimized gear shaft assembly reference semantic distillation feature vector in the set of optimized gear shaft assembly reference semantic distillation feature vectors to obtain the set of semantic matching degrees.
[0046] Specifically, the feature distribution optimization unit 141 is used to perform feature distribution optimization on the set of the gear shaft assembly reference semantic distillation feature vectors to obtain a set of optimized gear shaft assembly reference semantic distillation feature vectors. In particular, considering the differences in the expression of image semantic features after image semantic feature extraction of the source image semantic differences of each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images, each gear shaft assembly reference semantic distillation feature vector will also have feature deviation differences relative to the image semantic features of the gear shaft assembly detection semantic distillation feature vector, thereby affecting the mapping regression constraints of each gear shaft assembly reference semantic distillation feature vector to the gear shaft assembly detection semantic distillation feature vector as a reference source of semantic feature deviation under the semantic matching domain. Based on this, in the technical solution of the present application, feature distribution optimization is further performed on the set of gear shaft assembly reference semantic distillation feature vectors.
[0047] Preferably, the feature distribution optimization of the set of the gear shaft assembly reference semantic distillation feature vectors to obtain the set of optimized gear shaft assembly reference semantic distillation feature vectors includes the following steps: cascading each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors to obtain a gear shaft assembly reference semantic distillation joint feature vector; calculating the point sum of the gear shaft assembly reference semantic distillation joint feature vector and the square root of its length and the inverse of the square root of its second norm to obtain a first gear shaft assembly reference semantic distillation joint intermediate feature vector; calculating the exponential of the first gear shaft assembly reference semantic distillation joint intermediate feature vector with a natural constant as the base function to obtain a second gear shaft assembly reference semantic distillation joint intermediate feature vector; calculate the dot product of the gear shaft assembly reference semantic distillation joint feature vector and its norm and weight hyperparameter to obtain a third gear shaft assembly reference semantic distillation joint intermediate feature vector; calculate the dot sum of the second gear shaft assembly reference semantic distillation joint intermediate feature vector and the third gear shaft assembly reference semantic distillation joint intermediate feature vector to obtain an optimized gear shaft assembly reference semantic distillation joint feature vector; convert the optimized gear shaft assembly reference semantic distillation joint based on the cascade of the individual gear shaft assembly reference semantic distillation feature vectors into a set of optimized gear shaft assembly reference semantic distillation feature vectors.
[0048] In the above preferred example, the structured norm representation of the gear shaft assembly reference semantic distillation joint feature vector, which is the joint semantic representation of each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vector, is used as the local canonical coordinate for each eigenvalue of the each gear shaft assembly reference semantic distillation feature vector to determine the overall distribution of features of each gear shaft assembly reference semantic distillation feature vector, representing the rotational offset of the eigenvalue for each eigenvalue of the each gear shaft assembly reference semantic distillation feature vector as the center, and the bounding box of the eigenvalue distribution of each gear shaft assembly reference semantic distillation feature vector is used to perform eigenvalue constraints to improve the mapping regression constraints of each gear shaft assembly reference semantic distillation feature vector to the gear shaft assembly detection semantic distillation feature vector as the reference source of semantic feature deviation under the semantic matching domain, thereby improving the training speed of the model and the consistency of the calculation results of each semantic matching degree in the set of semantic matching degrees.
[0049] Specifically, the semantic matching degree calculation unit 142 is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and each optimized gear shaft assembly reference semantic distillation feature vector in the set of the optimized gear shaft assembly reference semantic distillation feature vector to obtain the set of semantic matching degrees. That is, by calculating the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and each optimized gear shaft assembly reference semantic distillation feature vector in the set of the optimized gear shaft assembly reference semantic distillation feature vector, the similarity between the gear shaft assembly image and each gear shaft assembly reference image is quantitatively described. Among them, the numerical value of the semantic matching degree directly reflects the assembly quality of the gear shaft to be detected. The larger the numerical value of the semantic matching degree, the closer it is to the qualified gear shaft assembly state and the higher the assembly quality; on the contrary, the lower the semantic matching degree, the more likely it is that there is a problem with the assembly quality. Through this matching metric method, the quantitative evaluation of the gear shaft assembly quality is achieved, and the accuracy and objectivity of the evaluation are improved.
[0050] In specific examples of the present application, the semantic matching degree calculation unit 142 is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and the optimized gear shaft assembly reference semantic distillation feature vector using the following semantic matching formula, wherein the semantic matching formula is:
[0051] r = sigmoid(V w1 *V1+V w2 *V2)
[0052] Among them, V1 represents the semantic distillation feature vector of the gear shaft assembly detection, V2 represents the optimized semantic distillation feature vector of the gear shaft assembly reference, V w1 represents the first weight vector, V w2 represents the second weight vector, * represents vector multiplication, + represents addition, sigmoid represents the activation function, and r represents the semantic matching degree.
[0053] In the above-mentioned computer vision-based gear shaft automated assembly system 100, the unqualified warning module 150 is used to generate a warning prompt of unqualified gear shaft assembly in response to the existence of at least one semantic matching degree in the set of semantic matching degrees being less than or equal to a predetermined threshold. That is, the set of semantic matching degrees is screened and judged by setting a predetermined threshold to determine whether the assembly quality of the gear shaft to be detected meets the preset requirements. When there is at least one semantic matching degree in the set of semantic matching degrees that is less than or equal to the predetermined threshold, it means that the similarity between the gear shaft assembly image to be detected and at least one qualified gear shaft assembly reference image is low, does not meet the expected qualified standard, and may have assembly quality problems. At this time, the system automatically generates a warning prompt of unqualified gear shaft assembly to remind the operator to conduct further inspection and processing. In this way, potential assembly problems can be discovered in a timely manner, and equipment failures or performance degradation caused by improper assembly can be avoided, thereby improving the reliability and stability of the equipment.
[0054] In summary, according to the embodiment of the present application, the computer vision-based automatic assembly system for gear shafts is explained, which uses computer vision technology based on deep learning to compare and analyze the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, respectively extract the image semantic features of the gear shaft assembly image to be tested and the qualified gear shaft assembly reference image, and measure the semantic feature matching between the two, so as to intelligently judge whether the assembly quality of the gear shaft to be tested is unqualified, and then generate an early warning prompt. In this way, the automated and efficient detection of the gear shaft assembly quality can be achieved to improve production efficiency, while reducing the cost and error of manual detection, and improving the accuracy and reliability of assembly quality detection.
[0055] Figure 6 FIG. 1 is a flow chart of a method for automatically assembling a gear shaft based on computer vision according to an embodiment of the present application. Figure 6As shown, according to the embodiment of the present application, the computer vision-based automatic assembly method of the gear shaft includes the following steps: S1, obtaining the gear shaft assembly image captured by the camera, and extracting a set of gear shaft assembly reference images marked as qualified assembly from the background database; S2, performing assembly state feature extraction and semantic distillation on each qualified assembly gear shaft assembly reference image in the set of qualified assembly gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors; S3, performing assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector; S4, performing semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees; S5, in response to the fact that there is at least one semantic matching degree less than or equal to a predetermined threshold value in the set of semantic matching degrees, generating an early warning prompt of unqualified gear shaft assembly.
[0056] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned computer vision-based gear shaft automated assembly method have been described in the above reference. Figures 1 to 5 The description of the computer vision-based gear shaft automated assembly system has been introduced in detail, and therefore, its repeated description will be omitted.
[0057] 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.
[0058] In the above embodiments, the description of each embodiment has its own emphasis. For the 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 unit division is only a logical function division, and there may be other division methods in actual implementation. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical sub-unit, that is, it may be located in one place, or it may be distributed on multiple network sub-units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0059] 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.
[0060] In addition, it is obvious that the word "comprising" does not exclude other sub-units or steps, and the singular does not exclude the plural. Multiple sub-units stated in the system claim can also be implemented by one sub-unit through software or hardware.
[0061] 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 gear shaft automated assembly system, characterized in that: include: The gear shaft assembly image acquisition module is used to acquire the gear shaft assembly image captured by the camera and extract a set of gear shaft assembly reference images marked as qualified assembly from the background database; A reference image semantic feature extraction module, used for performing assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors; A detection image semantic feature extraction module is used to perform assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector; A semantic matching measurement module, used for performing semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees; The unqualified warning module is used to generate a warning prompt of unqualified gear shaft assembly in response to at least one semantic matching degree in the set of semantic matching degrees being less than or equal to a predetermined threshold.
2. The computer vision-based gear shaft automated assembly system according to claim 1, characterized in that: The reference image semantic feature extraction module comprises: An assembly state feature extraction unit, used for respectively passing each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images through an assembly state feature extractor based on a DenseNet model to obtain a set of gear shaft assembly reference feature maps; The multi-scale semantic distillation unit is used to pass each gear shaft assembly reference feature map in the set of gear shaft assembly reference feature maps through a multi-scale semantic distillation module to obtain a set of gear shaft assembly reference semantic distillation feature vectors.
3. The computer vision-based gear shaft automated assembly system according to claim 2, characterized in that: The multi-scale semantic distillation unit includes: A multi-scale semantic feature extraction subunit, used to extract the global semantic features and local semantic features of the gear shaft assembly reference feature map respectively to obtain a gear shaft assembly reference global semantic feature vector and a gear shaft assembly reference local semantic feature vector; The multi-scale semantic feature fusion subunit is used to fuse the gear shaft assembly reference global semantic feature vector and the gear shaft assembly reference local semantic feature vector to obtain the gear shaft assembly reference semantic distillation feature vector.
4. The computer vision-based gear shaft automated assembly system according to claim 3, characterized in that: The multi-scale semantic feature extraction subunit is used to: Upsampling the gear shaft assembly reference feature map to obtain an upsampled gear shaft assembly reference feature map; Passing the upsampled gear shaft assembly reference feature map through a global semantic feature extraction module to obtain the gear shaft assembly reference global semantic feature vector; The upsampled gear shaft assembly reference feature map is passed through a local semantic feature extraction module to obtain the gear shaft assembly reference local semantic feature vector.
5. The computer vision-based gear shaft automated assembly system according to claim 4, characterized in that: The global semantic feature extraction module includes a global average pooling layer, a first point convolution layer, a first batch normalization layer and a first activation layer, and the local semantic feature extraction module includes a second point convolution layer, a second batch normalization layer and a second activation layer.
6. The computer vision-based gear shaft automated assembly system according to claim 5, characterized in that: The detection image semantic feature extraction module is used to: The gear shaft assembly image is passed through the assembly state feature extractor based on the DenseNet model and the multi-scale semantic distillation module to obtain the gear shaft assembly detection semantic distillation feature vector.
7. The computer vision-based gear shaft automated assembly system according to claim 6, characterized in that: The semantic matching metric module comprises: A feature distribution optimization unit, used for performing feature distribution optimization on the set of the gear shaft assembly reference semantic distillation feature vectors to obtain a set of optimized gear shaft assembly reference semantic distillation feature vectors; A semantic matching degree calculation unit is used to calculate the semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and each optimized gear shaft assembly reference semantic distillation feature vector in the set of optimized gear shaft assembly reference semantic distillation feature vectors to obtain the set of semantic matching degrees.
8. The computer vision-based gear shaft automated assembly system according to claim 7, characterized in that: The semantic matching degree calculation unit is used to: The semantic matching degree between the gear shaft assembly detection semantic distillation feature vector and the optimized gear shaft assembly reference semantic distillation feature vector is calculated using the following semantic matching formula, wherein the semantic matching formula is: r=sigmoid(V w1 *V1+V w2 *V2) Among them, V1 represents the semantic distillation feature vector of the gear shaft assembly detection, V2 represents the optimized semantic distillation feature vector of the gear shaft assembly reference, V w1 represents the first weight vector, V w2 represents the second weight vector, * represents vector multiplication, + represents addition, sigmoid represents the activation function, and r represents the semantic matching degree.
9. A method for automatic assembly of gear shafts based on computer vision, characterized in that: include: Acquire the gear shaft assembly image captured by the camera, and extract a set of gear shaft assembly reference images marked as qualified assembly from the background database; Performing assembly state feature extraction and semantic distillation on each qualified gear shaft assembly reference image in the set of qualified gear shaft assembly reference images to obtain a set of gear shaft assembly reference semantic distillation feature vectors; Performing assembly state feature extraction and semantic distillation on the gear shaft assembly image to obtain a gear shaft assembly detection semantic distillation feature vector; Performing semantic matching measurement on each gear shaft assembly reference semantic distillation feature vector in the set of the gear shaft assembly reference semantic distillation feature vectors and the gear shaft assembly detection semantic distillation feature vector to obtain a set of semantic matching degrees; In response to at least one semantic matching degree in the set of semantic matching degrees being less than or equal to a predetermined threshold, an early warning prompt of unqualified gear shaft assembly is generated.
Citation Information
Patent Citations
Recommendation method and system fusing local collaboration and feature crossing
CN112905906A
CNN-LSTM short-term wind power prediction method based on attention mechanism
CN113642225A
Parameter information determination method and device, vehicle, electronic equipment and storage medium
CN115239821A
Remote sensing image road extraction method based on multi-dimensional and multi-scale U-net network
CN115471754A
Dynamic parameter and visual model generation WEB 2D automatic modeling engine system
CN116127019A
