A patch image recognition method and device based on error feature recognition

Through the patch image recognition method based on error feature recognition, using the error discrimination network model and feature matching algorithm, the problem of positioning error of the patch machine in processing various components is solved, and the patch accuracy and detection efficiency are improved.

CN112508927BActive Publication Date: 2024-09-24GUANGZHOU JIAFAN COMPUTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011488988.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-09-24
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

When existing placement machines handle multiple components, manual positioning errors and image quality effects lead to placement accuracy deviations, making it difficult to meet precise positioning requirements.

Method used

A patch image recognition method based on error feature recognition is used to generate an error discrimination network model by obtaining classification error sample images. Combined with the FPN and SPP network models, image feature extraction and matching degree calculation are performed to determine the patch detection results.

Benefits of technology

It significantly improves the efficiency and accuracy of patch image recognition and detection, optimizes the patch error recognition effect, and improves patch accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The embodiment of the present application discloses a patch image recognition method and device based on error feature recognition. The technical solution provided by the embodiment of the present application obtains the classification error sample image corresponding to each patch sample classification, generates a corresponding error discrimination network model based on the classification error sample image, and the error discrimination network model outputs the error feature of the sample image; obtains a patch image, preliminarily identifies the patch image to determine the corresponding patch classification, inputs the patch image to the error discrimination network model associated with the patch classification, and outputs the recognition result feature; determines the matching degree between the recognition result feature and the error feature, and outputs the corresponding patch detection result according to the matching degree. The above technical means are adopted to significantly improve the efficiency and accuracy of patch image recognition detection, and optimize the recognition detection effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of patch machine technology, and in particular to a patch image recognition method and device based on error feature recognition. Background Art

[0002] At present, the placement machine is the main equipment in the SMT (surface mount technology) production line, and it is also the most critical and complex equipment in the entire SMT production. When the placement machine places components, in order to ensure the accuracy of component placement, it usually locates the placement position manually or through image processing technology to ensure the accuracy of component placement.

[0003] However, since the SMT machines have to process a variety of component packages and various components have differences in shape and size, manual positioning of the components is prone to positioning errors, and the image processing method is easily affected by the image quality, which in turn affects the SMT machine's mounting accuracy and causes relative deviations in the mounting effect. Summary of the invention

[0004] The embodiments of the present application provide a patch image recognition method and device based on error feature recognition, which can effectively enhance the collected patch images, improve the efficiency and accuracy of patch image recognition detection, and optimize the recognition and detection effect.

[0005] In a first aspect, an embodiment of the present application provides a patch image recognition method based on error feature recognition, comprising:

[0006] Obtaining a classification error sample image corresponding to each patch sample classification, generating a corresponding error discrimination network model based on the classification error sample image, wherein the error discrimination network model outputs an error feature of the sample image;

[0007] Acquire a patch image, perform preliminary recognition on the patch image to determine a corresponding patch classification, input the patch image into an error discrimination network model associated with the patch classification, and output recognition result features;

[0008] Determine the matching degree between the recognition result feature and the error feature, and output the corresponding patch detection result according to the matching degree.

[0009] Furthermore, the step of obtaining the classification error sample image corresponding to each patch sample classification includes:

[0010] Obtain a sample image group under each patch sample classification;

[0011] Calibration processing is performed on each sample image in the sample image group to obtain a corresponding classification error sample image.

[0012] Furthermore, before obtaining the classification error sample image corresponding to each patch sample classification, the method further includes:

[0013] Classify patch samples according to patch type and process characteristics.

[0014] Furthermore, the error discrimination network model includes an FPN network model. Accordingly, the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result features are output, including:

[0015] Inputting the patch image into an error discrimination network model associated with the patch classification to generate high-level features and low-level features associated with the patch image;

[0016] The high-level features and the low-level features are fused to output recognition result features.

[0017] Furthermore, the error discrimination network model includes an SPP network model. Accordingly, the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result features are output, including:

[0018] The patch image is segmented at the first level and the second level through the SPP network model; local feature recognition is performed on the segmented image, and local feature fusion is performed to output recognition result features.

[0019] Further, the determining the matching degree between the recognition result feature and the error feature includes:

[0020] The matching degree between the recognition result feature and the error feature is determined by a scale-invariant feature transformation matching algorithm.

[0021] Furthermore, determining the matching degree between the recognition result feature and the error feature by using a scale-invariant feature transformation matching algorithm includes:

[0022] Determine key points of the recognition result feature and the error feature, wherein the key points include position, scale and direction;

[0023] A descriptor is created for each key point, and the key point is represented by a set of vectors. The descriptor includes gradient information in 8 directions calculated in a 4*4 window in the key point scale space, and a total of 4*4*8=128-dimensional vector representation;

[0024] Calculate the matching value of the key points of the recognition result features and error features.

[0025] In a second aspect, an embodiment of the present application provides a patch image recognition device based on error feature recognition, comprising:

[0026] A model generation module, used to obtain a classification error sample image corresponding to each patch sample classification, and generate a corresponding error discrimination network model based on the classification error sample image, wherein the error discrimination network model outputs an error feature of the sample image;

[0027] A result feature output module, used to obtain a patch image, perform preliminary recognition on the patch image to determine the corresponding patch classification, input the patch image into an error discrimination network model associated with the patch classification, and output recognition result features;

[0028] The detection result generation module is used to determine the matching degree between the recognition result feature and the error feature, and output the corresponding patch detection result according to the matching degree.

[0029] In a third aspect, an embodiment of the present application provides a patch image recognition device based on error feature recognition, including:

[0030] memory and one or more processors;

[0031] The memory is used to store one or more programs;

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the patch image recognition method based on error feature recognition as described in the first aspect.

[0033] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the patch image recognition method based on error feature recognition as described in the first aspect.

[0034] The embodiment of the present application obtains the classification error sample image corresponding to each patch sample classification, generates the corresponding error discrimination network model based on the classification error sample image, and the error discrimination network model outputs the error feature of the sample image; obtains the patch image, preliminarily identifies the patch image to determine the corresponding patch classification, inputs the patch image to the error discrimination network model associated with the patch classification, and outputs the recognition result feature; determines the matching degree between the recognition result feature and the error feature, and outputs the corresponding patch detection result according to the matching degree. The above technical means are adopted to significantly improve the efficiency and accuracy of patch image recognition detection, and optimize the recognition detection effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of a patch image recognition method based on error feature recognition provided in an embodiment of the present application;

[0036] Figure 2A flowchart of another patch image recognition method based on error feature recognition provided in an embodiment of the present application;

[0037] Figure 3 A flowchart of another patch image recognition method based on error feature recognition provided in an embodiment of the present application;

[0038] Figure 4 A flowchart of another patch image recognition method based on error feature recognition provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the structure of a chip mounter provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of a patch image recognition device based on error feature recognition provided by an embodiment of the present application;

[0041] Figure 7 A schematic diagram of the structure of a patch image recognition device based on error feature recognition provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0043] The patch image recognition method based on error feature recognition provided by the present application is intended to effectively enhance the patch image and improve the clarity of the patch image when performing patch image detection and recognition, and then detect and recognize the enhanced patch image, so as to improve the detection and recognition accuracy of the patch image and optimize the patch error recognition effect. Compared with the traditional patch machine, in order to ensure the patch accuracy, it usually locates the patch position by manual positioning or image recognition positioning when performing the patch operation, and then performs the patch operation. Since the packaging forms of components to be processed by the patch machine are various, various components have differences in shape and size, and it is easy to cause positioning errors by manually positioning the patch, and the image processing method is easily affected by the image quality. If the shooting conditions are relatively poor, the image quality obtained is difficult to meet the needs of accurately positioning components, and it is inevitable that there will be patch errors. Based on this, the patch image recognition method based on error feature recognition of the embodiment of the present application is provided to solve the technical problems of patch errors of existing patch machines.

[0044] Figure 1 A flowchart of a patch image recognition method based on error feature recognition provided in an embodiment of the present application. The patch image recognition method based on error feature recognition provided in this embodiment can be performed by a patch image recognition device based on error feature recognition. The patch image recognition device based on error feature recognition can be implemented by software and / or hardware. The patch image recognition device based on error feature recognition can be composed of two or more physical entities, or it can be composed of one physical entity. Generally speaking, the patch image recognition device based on error feature recognition can be a processing device such as a control device of a patch machine.

[0045] The following description is made by taking the patch image recognition device based on error feature recognition as an example of the main body of the patch image recognition method based on error feature recognition. Figure 1 , the patch image recognition method based on error feature recognition specifically includes:

[0046] S101, obtaining a classification error sample image corresponding to each patch sample classification, generating a corresponding error discrimination network model based on the classification error sample image, and outputting the error discrimination network model as an error feature of the sample image.

[0047] In one embodiment, different patch samples are classified, such as functional materials, uses, sizes, patch types, etc. The classification error sample image corresponding to each patch sample classification is obtained, and a corresponding error discrimination network model is generated based on the classification error sample image. The error discrimination network model outputs the error features of the sample image. A corresponding error discrimination network model is trained and identified for each patch sample classified in each category.

[0048] Preferably, the error discrimination network model includes an FPN network model or an SPP network model.

[0049] Preferably, before S101, the step further includes: classifying patch samples according to patch types and process characteristics.

[0050] S102, obtaining a patch image, performing preliminary recognition on the patch image to determine a corresponding patch classification, inputting the patch image into an error discrimination network model associated with the patch classification, and outputting recognition result features.

[0051] In one embodiment, when performing patch detection and recognition, after obtaining a patch image, the patch image is preliminarily recognized to determine the corresponding patch classification, and the patch image is input into an error discrimination network model associated with the patch classification.

[0052] The method includes obtaining a sample image group under each patch sample classification; and performing calibration processing on each sample image in the sample image group to obtain a corresponding classification error sample image.

[0053] S103: Determine the matching degree between the recognition result feature and the error feature, and output a corresponding patch detection result according to the matching degree.

[0054] In one embodiment, feature matching degree calculation is performed. When the matching degree is greater than a set threshold, it is determined that there is a patch error in the current patch image, and the patch error detection result is output; if the matching degree is less than or equal to the set threshold, the patch success detection result is output.

[0055] From the above, it can be seen that by pre-classifying and inputting the acquired patch image into the corresponding classification model for feature recognition and output matching, the error detection accuracy is improved. At the same time, by comparing the error features, the error is confirmed in a targeted manner, thereby improving the detection and recognition efficiency.

[0056] Based on the above technical solution, Figure 2 As shown, Figure 2 A flowchart of another patch image recognition method based on error feature recognition provided in an embodiment of the present application, wherein the error discrimination network model includes an FPN network model, and accordingly, the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result features are output, including: inputting the patch image into the error discrimination network model associated with the patch classification, generating high-level features and low-level features associated with the patch image; fusing the high-level features and the low-level features to output the recognition result features. Specifically as follows:

[0057] S201, obtaining a classification error sample image corresponding to each patch sample classification, generating a corresponding error discrimination network model based on the classification error sample image, and outputting the error discrimination network model as an error feature of the sample image.

[0058] S202, obtaining a patch image, performing preliminary recognition on the patch image to determine a corresponding patch classification, inputting the patch image into an error discrimination network model associated with the patch classification, generating high-level features and low-level features associated with the patch image, and fusing the high-level features and the low-level features to output recognition result features.

[0059] Specifically, high-level features are fused with low-level features through upsampling, and each layer is predicted independently. Among them, the skip connection (residual connection) network structure is performed at the finest level (the last layer from top to bottom) during prediction. After multiple upsampling and fusion of features to the last step, the features generated in the last step are used for prediction to solve the problem of gradient disappearance in deep networks. Among them, bottom-up is the forward process of the network. In the forward process, the size of the feature map will change after passing through some layers, but will not change when passing through other layers. The layers that do not change the size of the feature map are grouped into one stage, and each extracted feature is the last layer output of each stage to construct a feature pyramid. For ResNets, the feature activation output is output using the last residual block output of each stage. For conv2, conv3, conv4, and conv5 outputs, the outputs of these last residual blocks are represented as {C2, C3, C4, C5}, and they have a step size of {4, 8, 16, 32} relative to the input image. The top-down process is performed by upsampling, and the horizontal connection is to fuse the upsampling result with the feature map of the same size generated from the bottom up, thereby using the bottom-level positioning detail information. After fusion, a 3*3 convolution kernel is used to convolve each fusion result to eliminate the aliasing effect of upsampling.

[0060] S203: Determine the matching degree between the recognition result feature and the error feature, and output a corresponding patch detection result according to the matching degree.

[0061] From the above content, it can be seen that by generating high-level features and low-level features associated with the patch image, the high-level features and the low-level features are fused to output the recognition result features, thereby eliminating the aliasing effect of upsampling and solving the problem of gradient disappearance in the deep network.

[0062] Based on the above technical solution, Figure 3 As shown, Figure 3 A flowchart of another patch image recognition method based on error feature recognition provided by an embodiment of the present application, wherein the error discrimination network model includes an SPP network model, and accordingly, the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result features are output, including: performing image segmentation of the patch image at the first level and the second level through the SPP network model; performing local feature recognition on the segmented image, and performing local feature fusion to output the recognition result features. The details are as follows:

[0063] S301, obtaining a classification error sample image corresponding to each patch sample classification, generating a corresponding error discrimination network model based on the classification error sample image, and outputting the error discrimination network model as an error feature of the sample image.

[0064] S302, obtaining a patch image, performing preliminary recognition on the patch image to determine the corresponding patch classification, performing image segmentation on the patch image at the first level and the second level through the SPP network model; performing local feature recognition on the segmented image, and performing local feature fusion to output recognition result features.

[0065] In this step, SPP is used to remove the requirement of CNN for fixed input. Its advantage is that it can generate fixed output features under any size and scale input. Specifically, according to the pooling rule, each pooling bin (window) of the SPP-layer corresponds to an output, and the final feature output after pooling is determined by the number of bins. In this solution, the number of bins is fixed and the size of the bin is adjusted to achieve multi-level pooling fixed output. By fusing the outputs of bins at all levels, each unpooledFM is finally processed by SPP to obtain a multi-dimensional SPPedFM output feature for feature fusion.

[0066] S303 , determining the matching degree between the recognition result feature and the error feature through a scale-invariant feature transformation matching algorithm, and outputting a corresponding patch detection result according to the matching degree.

[0067] Based on the above technical solution, Figure 4 As shown, Figure 4A flowchart of another patch image recognition method based on error feature recognition provided by an embodiment of the present application, wherein the matching degree of the recognition result feature and the error feature is determined by a scale-invariant feature transformation matching algorithm, including: determining the key points of the recognition result feature and the error feature, wherein the key points include position, scale, and direction; establishing a descriptor for each key point, representing the key point through a set of vectors, wherein the descriptor includes gradient information in 8 directions calculated in a 4*4 window in the key point scale space, and a total of 4*4*8=128-dimensional vector representation; calculating the matching degree value of the key points of the recognition result feature and the error feature. Specifically as follows:

[0068] S401, obtaining a classification error sample image corresponding to each patch sample classification, generating a corresponding error discrimination network model based on the classification error sample image, and outputting the error discrimination network model as an error feature of the sample image.

[0069] S402, obtaining a patch image, performing preliminary recognition on the patch image to determine the corresponding patch classification, performing image segmentation on the patch image at the first level and the second level through the SPP network model; performing local feature recognition on the segmented image, and performing local feature fusion to output recognition result features.

[0070] S403, determine the key points of the recognition result features and the error features, the key points include position, scale and direction, establish a descriptor for each key point, represent the key point by a set of vectors, calculate the matching value of the key points of the recognition result features and the error features, and output the corresponding patch detection result according to the matching value.

[0071] Figure 5 A schematic diagram of the structure of a chip mounter provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the chip mounter 1 includes a chip mount platform and an image sensor 12 . When performing a chip mount operation, components are mounted on the chip mount platform 11 , and after the chip mount operation is completed, the image sensor 12 is used to collect chip mount images.

[0072] Figure 6 A schematic diagram of the structure of a patch image recognition device based on error feature recognition provided by an embodiment of the present application. Figure 6 The patch image recognition device based on error feature recognition provided in this embodiment specifically includes: a model generation module 21, a result feature output module 22 and a detection result generation module 23.

[0073] The model generation module 21 is used to obtain the classification error sample image corresponding to each patch sample classification, and generate the corresponding error discrimination network model based on the classification error sample image, and the error discrimination network model outputs the error feature of the sample image;

[0074] A result feature output module 22 is used to obtain a patch image, perform preliminary recognition on the patch image to determine the corresponding patch classification, input the patch image into an error discrimination network model associated with the patch classification, and output recognition result features;

[0075] The detection result generating module 23 is used to determine the matching degree between the recognition result feature and the error feature, and output the corresponding patch detection result according to the matching degree.

[0076] In the above, by obtaining the classification error sample image corresponding to each patch sample classification, a corresponding error discrimination network model is generated based on the classification error sample image, and the error discrimination network model outputs the error feature of the sample image; a patch image is obtained, and the patch image is preliminarily identified to determine the corresponding patch classification, and the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result feature is output; the matching degree between the recognition result feature and the error feature is determined, and the corresponding patch detection result is output according to the matching degree. The above technical means are adopted to significantly improve the efficiency and accuracy of patch image recognition detection, and optimize the recognition detection effect.

[0077] In one embodiment, the model generation module is specifically used to:

[0078] Obtain a sample image group under each patch sample classification;

[0079] Calibration processing is performed on each sample image in the sample image group to obtain a corresponding classification error sample image.

[0080] In one embodiment, the model generation module is further used to: classify patch samples according to patch types and process characteristics before obtaining the classification error sample images corresponding to each patch sample classification.

[0081] In one embodiment, the error discrimination network model includes an FPN network model, and accordingly, the result feature output module is specifically used for:

[0082] Inputting the patch image into an error discrimination network model associated with the patch classification to generate high-level features and low-level features associated with the patch image;

[0083] The high-level features and the low-level features are fused to output recognition result features.

[0084] In one embodiment, the error discrimination network model includes an SPP network model, and the result feature output module is specifically used for:

[0085] The patch image is segmented at the first level and the second level through the SPP network model; local feature recognition is performed on the segmented image, and local feature fusion is performed to output recognition result features.

[0086] In one embodiment, the detection result generation module is specifically used to:

[0087] The matching degree between the recognition result feature and the error feature is determined by a scale-invariant feature transformation matching algorithm.

[0088] In one embodiment, the result feature output module is specifically used to:

[0089] Determine key points of the recognition result feature and the error feature, wherein the key points include position, scale and direction;

[0090] A descriptor is created for each key point, and the key point is represented by a set of vectors. The descriptor includes gradient information in 8 directions calculated in a 4*4 window in the key point scale space, and a total of 4*4*8=128-dimensional vector representation;

[0091] Calculate the matching value of the key points of the recognition result features and error features.

[0092] The patch image recognition device based on error feature recognition provided in the present application can be used to execute the patch image recognition method based on error feature recognition provided above, and has corresponding functions and beneficial effects.

[0093] Figure 7 A schematic diagram of a patch image recognition device based on error feature recognition provided by an embodiment of the present application, referring to Figure 7 The electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the electronic device can be one or more, and the number of memories in the electronic device can be one or more. The processor, memory, communication module, input device and output device of the electronic device can be connected via a bus or other means.

[0094] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the patch image recognition method based on error feature recognition described in any embodiment of the present application (for example, the acquisition module, training module, extraction module and detection module in the patch image recognition device based on error feature recognition). The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0095] The communication module 33 is used for data transmission.

[0096] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned patch image recognition method based on error feature recognition.

[0097] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.

[0098] The electronic device provided above can be used to execute the patch image recognition method based on error feature recognition provided above, and has corresponding functions and beneficial effects.

[0099] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a patch image recognition method based on error feature recognition. The patch image recognition method based on error feature recognition includes: acquiring a patch image, performing high-frequency processing on the patch image to obtain a corresponding high-frequency patch image; performing image enhancement on the high-frequency patch image through a trained picture enhancement model to obtain a high-frequency enhanced patch image; performing patch detection and recognition on the high-frequency enhanced patch image, and outputting a corresponding patch detection result.

[0100] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0101] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application, whose computer executable instructions are not limited to the patch image recognition method based on error feature recognition as described above, can also execute related operations in the patch image recognition method based on error feature recognition provided in any embodiment of the present application.

[0102] The patch image recognition device, storage medium and electronic device based on error feature recognition provided in the above embodiments can execute the patch image recognition method based on error feature recognition provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the patch image recognition method based on error feature recognition provided in any embodiment of the present application.

[0103] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A patch image recognition method based on error feature recognition, characterized in that: include: Obtaining a classification error sample image corresponding to each patch sample classification, including: obtaining a sample image group under each patch sample classification, calibrating each sample image in the sample image group to obtain a corresponding classification error sample image, generating a corresponding error discrimination network model based on the classification error sample image, and outputting the error discrimination network model as an error feature of the sample image; Acquire a patch image, perform preliminary recognition on the patch image to determine the corresponding patch classification, input the patch image into an error discrimination network model associated with the patch classification, and output recognition result features, wherein the error discrimination network model includes an FPN network model, and correspondingly, input the patch image into the error discrimination network model associated with the patch classification, and output recognition result features, including: inputting the patch image into the error discrimination network model associated with the patch classification, generating high-level features and low-level features associated with the patch image, and fusing the high-level features and the low-level features to output recognition result features; Determine the matching degree between the recognition result feature and the error feature, and output the corresponding patch detection result according to the matching degree.

2. The patch image recognition method based on error feature recognition according to claim 1, characterized in that: Before obtaining the classification error sample image corresponding to each patch sample classification, it also includes: Classify patch samples according to patch type and process characteristics.

3. The patch image recognition method based on error feature recognition according to any one of claims 1-2, characterized in that: The error discrimination network model includes an SPP network model. Accordingly, the patch image is input into the error discrimination network model associated with the patch classification, and the recognition result features are output, including: The patch image is segmented at the first level and the second level through the SPP network model; local feature recognition is performed on the segmented image, and local feature fusion is performed to output recognition result features.

4. The patch image recognition method based on error feature recognition according to claim 1, characterized in that: The determining the matching degree between the recognition result feature and the error feature includes: The matching degree between the recognition result feature and the error feature is determined by a scale-invariant feature transformation matching algorithm.

5. The patch image recognition method based on error feature recognition according to claim 4, characterized in that: The determining the matching degree between the recognition result feature and the error feature by using a scale-invariant feature transformation matching algorithm includes: Determine key points of the recognition result feature and the error feature, wherein the key points include position, scale and direction; A descriptor is created for each key point, and the key point is represented by a set of vectors. The descriptor includes gradient information in 8 directions calculated in a 4*4 window in the key point scale space, with a total of 4*4*8=128-dimensional vector representation; Calculate the matching value of the key points of the recognition result features and error features.

6. A patch image recognition device based on error feature recognition, characterized in that: include: A model generation module is used to obtain a classification error sample image corresponding to each patch sample classification, and generate a corresponding error discrimination network model based on the classification error sample image. The error discrimination network model outputs an error feature of the sample image. The model generation module is specifically used to obtain a sample image group under each patch sample classification, and calibrate each sample image in the sample image group to obtain a corresponding classification error sample image; A result feature output module is used to obtain a patch image, perform preliminary recognition on the patch image to determine the corresponding patch classification, input the patch image into an error discrimination network model associated with the patch classification, and output recognition result features, wherein the error discrimination network model includes an FPN network model. Accordingly, the model generation module is specifically used to input the patch image into the error discrimination network model associated with the patch classification, generate high-level features and low-level features associated with the patch image, and fuse the high-level features and the low-level features to output recognition result features; The detection result generation module is used to determine the matching degree between the recognition result feature and the error feature, and output the corresponding patch detection result according to the matching degree.

7. A patch image recognition device based on error feature recognition, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the patch image recognition method based on error feature recognition as described in any one of claims 1-5.

8. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the patch image recognition method based on error feature recognition as described in any one of claims 1 to 5 when executed by a computer processor.