Method for optically detecting surface defect of round wire rod
A device and method can optically detect a defect of a round wire rod to be tested, and particularly, remotely detect the defect without contact in real-time. The device includes a lighting device for emitting circular surface light to the round wire rod; an optical sensor for generating an optical signal by receiving the light reflected from the round wire rod, which is being transported, and converting the optical signal into an image signal; and a signal-processing unit for acquiring surface information of the round wire rod by receiving the image signal from the optical sensor.
1. A method for optically detecting a defect of a round wire rod, comprising:
acquiring an image of the round wire rod from an optical sensor, and filtering the acquired image;
performing second-order partial differentiation on a first linear image acquired in the direction perpendicular to a transporting direction of the round wire rod, averaging second-order partial differentiation values of the first linear image, and setting the averaged value as a first threshold;
performing second-order partial differentiation on a second linear image acquired in the direction perpendicular to the transporting direction of the round wire rod, and removing the first linear image and accumulating the second linear image if a difference between each second-order partial differentiation value of the first linear image and the first threshold is within a predetermined range;
averaging second-order partial differentiation values of the second linear image, and setting the averaged value as a second threshold;
performing second-order partial differentiation on a second linear image acquired in the direction perpendicular to the transporting direction of the round wire rod, and repeating zooming of pixels of the second linear image up to a predetermined number of times if a difference between each second-order partial differentiation value of the second linear image and the second threshold is within a predetermined range; and
detecting the second linear image pixels as had pixels if the second linear image pixels are not converted into a single pixel.