The invention relates to a device and method for detecting
micro defects on the bright and clean surface of a
metal part based on
machine vision. The device comprises an imaging, positioning and adjusting mechanism and a
processing unit, wherein the imaging, positioning and adjusting mechanism comprises a base plate, a guide rod, a fixed support, a sliding support, a stepping motor, a CCD (
Charge Coupled Device) camera, a
telecentric lens and parallel light sources, wherein the imaging and coaxial lighting of the
CCD camera are primarily adjusted; an image collection card, an industrial
personal computer, an equipment
control card and an alarm are electrically connected in the
processing unit and are used for collecting, transmitting, storing,
processing, displaying and alarming image. The method comprises coaxial lighting adjustment and
image processing, wherein coaxial lighting adjustment comprises the steps of triggering the equipment
control card via
software of the industrial
personal computer to drive the stepping motor, and adjusting the rotating angles of the parallel light sources until the coaxial lighting condition is satisfied; and
image processing comprises the steps of detecting defects on the internal surface of the detected part, respectively detecting large and small defects on the outer edge on the surface of the detected part, displaying the processing images in real time and judging the results.