Self-supervision defect detection method based on thermodynamic diagram pseudo defect
Патент · CN B
Полный текст
The invention relates to the field of product defect detection and discloses a self-supervision defect detection method based on thermodynamic diagram pseudo defects, which comprises the steps of extracting characteristics of a normal source image to generate a thermodynamic diagram, positioning anchor points according to the thermodynamic diagram, extracting defect patches, and fusing the patches to a normal target image to construct a pseudo defect image with labels; the self-supervision model training step is to train an encoder-decoder model by using a pseudo defect and a normal image, and to enable the model to learn a characteristic reconstruction mode of a normal sample by minimizing the difference between the reconstructed characteristics of the encoder and the decoder, and the defect detection step is to detect by calculating the similarity score between the encoder characteristics and the decoder reconstructed characteristics of the image to be detected by using the trained model, and the region with the low similarity score is judged to be a defect. According to the invention, the true pseudo defects are constructed through thermodynamic diagrams, and the detection accuracy and generalization capability of the model on diversified defects are improved by combining the multi-scale feature fusion and the attention mechanism.