This invention discloses a method and
system for detecting defects on highly reflective
metal surfaces based on industrial vision, relating to the field of industrial vision. The method includes: scanning along the longitudinal direction of a rolling linear guide at a preset speed using a line-scan imaging unit to acquire an original polarized
image sequence covering the polarization angle corresponding to the sliding surface of the guide; analyzing the original polarized
image sequence, extracting the texture direction field, performing directional
anisotropic filtering on the original polarized
image sequence, and outputting an enhanced image sequence; using a preset sliding window to progressively capture local image blocks pixel by pixel, and using a scratch
probability assessment model to output the probability value of the center pixel belonging to a minor scratch, generating a probability distribution map; performing
connected component analysis, and determining continuous pixel regions with probability values exceeding a dynamic activation threshold as minor scratch regions, thereby obtaining the minor scratch defect detection result. This method solves the problems of high false negative rates in highly reflective environments, the inability of fixed thresholds to adapt to reflective environments, resulting in extremely low detection accuracy and strong imaging interference.