The invention discloses a micro-channel aluminum flat tube appearance detection method based on
image processing, and relates to the technical field of appearance detection.According to the method, more comprehensive
information acquisition is carried out through the multispectral
imaging technology in combination with RGB, polarized light,
infrared spectrum images and
ultraviolet spectrum images, and surface
temperature difference changes are detected through
infrared spectrums; image preprocessing is carried out through contrast-limited
adaptive histogram equalization and bilateral filtering, uneven illumination is inhibited while edge details are kept, the contrast of
corrosion defects is improved, details of a low-resolution area are enhanced through a super-resolution reconstruction technology, edge features of a
corrosion area are further optimized in combination with a
histogram in the
gradient direction, and the edge features of the
corrosion area are further optimized. The identification capability of small-scale defects is improved; an improved YOLOv3 defect detection
algorithm is introduced, multi-scale
feature extraction is adopted, and a self-attention mechanism is introduced, so that the model pays more attention to a tiny corrosion area, and meanwhile, the detection precision of a
small target is enhanced in combination with focus loss and regression loss.