The invention relates to the technical field of image recognition, in particular to a plastic particle
black spot defect online detection method based on
deep learning. Performing non-linear space conversion on the original image, and separating a background field component and a significance component; constructing a reverse compensation item by using the background field component, carrying out dynamic
gain correction on an original brightness channel, and carrying out multi-channel weighted fusion on the original brightness channel and the saliency component to generate a saliency feature map; inputting the saliency feature map into a multi-scale topology enhancement network, extracting edge distribution features, and performing closed contour extraction and
Euclidean distance transformation to generate a topology thickness energy map; the high-frequency
gradient magnitude of the original image is calculated,
mask smoothing processing is carried out on the gradient of the
black spot region by using the saliency feature map, and a joint dissipation field is constructed; and taking a local maximum value point in the topological thickness
energy diagram as a morphology seed point, executing controlled
watershed evolution under the topological constraint of the joint dissipation field, realizing boundary stripping of an
adhesive particle region, and generating a particle morphology diagram.