A defect detection method, device, medium and equipment based on semantic segmentation model
A semantic segmentation and defect detection technology, applied in the field of computer vision and deep learning, can solve problems such as complex mechanical structure facilities, unknown relationship between defect area and projected area, and low defect quantification accuracy, achieving fast and high-precision visual inspection, satisfying The effect of online real-time detection of demand and reduction of model calculation load
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] like figure 1 and figure 2 As shown, the present application provides a defect detection method based on a semantic segmentation model, including the following steps:
[0069] S1 acquires the image data of the workpiece to be detected;
[0070] S2 input the image data into the trained semantic segmentation model, and obtain the defect prediction Label map of the workpiece;
[0071] The semantic segmentation model includes a sequentially connected feature extraction network and feature prediction network;
[0072] The feature extraction network is used to predict the position of the defect area, which includes a feature extraction layer, a feature compression layer, a feature flattening layer, and a feature classification layer;
[0073] performing feature extraction on the image data according to the feature extraction layer, and obtaining a feature map of the image data;
[0074] compressing the feature map according to the feature compression layer and outputting...
Embodiment 2
[0090] In the first embodiment, the defect sample is scanned by a line laser to obtain its corresponding three-dimensional point cloud data. After converting to a grayscale image, the corresponding pixel value distribution range is [0, 255], but the difference between the pixel value of the defect area and the neighboring pixel value is The range is [1, 3]. If the grayscale image and label image are directly combined and input to the semantic segmentation network model for training, the feature vector extracted from the defect area image is similar to the dimension of the feature vector extracted from the adjacent image, and the defect segmentation accuracy is relatively poor.
[0091] On the basis of the above-mentioned semantic segmentation model, this application further limits the training data of the semantic segmentation model. The training data is a synthetic image of a workpiece defect and a Label image corresponding to a defect in the synthetic image of a workpiece defe...
Embodiment 3
[0139] On the basis of the second embodiment above, this embodiment further preprocesses the input image of the workpiece to be detected, that is, the image data of the workpiece to be detected is a composite image of the defect of the workpiece to be detected, so that the representation of the defect form is more intuitive. Get better detection results.
[0140] In the defect detection method based on the semantic segmentation model shown in this embodiment, the defect point cloud data of the workpiece is obtained by line laser scanning, and then the depth map of the point cloud and the corresponding gradient map are obtained, and the 3D defect sample image of the workpiece is synthesized by using the three-channel fusion technology. The feature extraction of synthetic images by deep learning semantic segmentation model can improve the detection rate of such defects.
[0141] The defect synthetic image acquisition of the workpiece to be detected includes the following steps: ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


