摘要 |
PURPOSE:To divide a welding bead from peripheral noise and to accurately position the bead by forming two thresholds for dividing the bead and the noise as respective blocks. CONSTITUTION:An operation processor 6 fetches image data stored in an image memory 5 based on an image data processing program stored in a memory 7, finds out the projection distribution of the X axis in a window for recognizing the object, forms two thresholds for dividing a welding bead 20a from noise due to lighting or the like based on the projection distribution of the X axis, and detects a block to be supposed as the welding bead 20a. When the width of the block to be supposed as the welding bead 20a exceeds the range of the thresholds, the block is removed as noise and the maximum block obtained by dividing the area of the left block by the width is recognized as a bead. Thus, the bead can be accurately positioned. |