Patent ID: 8306308

Claim:
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.