The invention relates to the technical field of
metal button surface defect real-time detection methods, in particular to a
metal button surface defect real-time detection method based on dry
deep learning, which comprises the following steps: acquiring a to-be-detected
metal button image and preprocessing the to-be-detected metal button image to obtain a to-be-detected metal button image; and inputting the preprocessed image into a
deep learning network model to extract a
defect region, optimizing and verifying the extracted
defect region, and finally generating a statistical result of defect detection. According to the method, dynamically regulated progressive boundary construction, adaptive gradient mapping,
Gaussian fitting detail enhancement, multi-dimensional difference correction factors, sectional
defect region generation and other algorithms are innovatively introduced in sequence, so that boundary recognition and detail optimization are progressive layer by layer. The innovative multi-stage optimization design enables the data output of each step to be connected with the subsequent steps, guarantees the continuity and consistency of defect detection, and avoids the problems of boundary error and
information loss caused by
algorithm independence in a traditional method.