摘要 |
PURPOSE: To relate output to an ordinary programmable controller by processing an image from a camera by a visual input module and generating independent binary numbers, and sending them to a module processor through a horizontal and a vertical line sensor. CONSTITUTION: Visual input modules 5 and 6 process images from cameras 11 and 15 and derive four independent binary numbers. Namely, luminance of each pixel of the images is compared with a certain threshold value to set the pixel to white or black, thereby generating a binary image. Here, operators of the modules 5 and 6 demarcate windows as four detection areas in the binary image and can determine the size, shape, and position of the image by counting the white or black pixels of the binary images in plural windows. Then, the range of a black-and-white image that a window sensor can allow, is set by the horizontal and vertical line sensors. The output is led out to the module processor 3 and related to an ordinary programmable controller. |