The invention provides an aluminum
alloy surface oxidation spot defect identification method and device based on
machine vision, and relates to the field of intelligent manufacturing and industrial
automation, and the method comprises the steps: obtaining an aluminum
alloy surface
color image, and carrying out the preprocessing of the image, so as to extract a brightness component image; self-adaptive threshold segmentation of local
contrast enhancement is carried out on the brightness component image, a defect area binary
mask is generated, morphological connected domains are extracted according to the
mask, and three basic feature indexes of the area pixel value, the contour
Fourier descriptor complexity and the area gray scale standard deviation contrast of each connected domain are calculated; and extracting and marking a connected domain boundary, verifying a boundary closed topological structure, and dynamically generating a curvature-driven self-adaptive sampling point through multi-scale B-spline curvature extreme value detection. Through optical-
algorithm-process three-level collaborative innovation, the curved
surface reflection false alarm rate is reduced, the pinhole
detection rate is increased, and the boundary precision is + / -0.2 pixel.