The invention discloses a
metal product defect detection method and
system based on image recognition. The method comprises the following steps: firstly, executing reflection disturbance
digestion processing on a surface image of a to-be-detected
metal product to obtain a reflection
digestion image; obtaining surface reference texture features of the defect-free
metal product, and generating a reference
texture model on the basis of a texture
distribution rule, a gray average value and texture continuity; performing defect
texture gradient separation on the reflection resolution
image based on a reference
texture model, positioning an abnormal region, and performing segmentation to obtain a suspected defect texture region; performing boundary pixel reconstruction on the suspected defect texture region to obtain a defect
texture reconstruction region; obtaining a target defect texture region through
local variance enhancement and neighborhood
correlation analysis; and finally, the overexposure area is positioned, gray inverse stretching
processing is performed, abnormal pixel group feature clustering is performed on the preprocessed defect area, and then a surface defect detection result is output, so that the precision and accuracy of metal product surface defect detection are improved, and the
false detection rate is reduced.