Sorting colors with EyeVision

A short introduction - Colors of every kind

 

You know Smarties? Do you prefer the blue, green or red chocolate drops? Or do you prefer the violet, yellow or pink ones? Several clever minds have tried to invent sorting machines for colored chocolate or fruit drops.

Also with the EyeVision image processing software the drops can be sorted according their color. And if this is possible for drops than it is also possible ... with black and green olives,

... with green and red strawberries

... with green seedlings in the light brown color of the corn

... with wire harnesses

... etc.

Image Capture

First, we need to capture a picture. With the Capture Image command an image can be either taken with a camera such as an EyeCheck smart camera, or you can load an image from file (figure 1).

 

 

fig. 1.: colored chocolate drops

Color Filter Command

Second, is the command Color Filter. There you can define a certain color, hue and saturation. In our example it is the color blue with a saturation of up to 175 and a hue of up to 240 (figure 2). With this characteristics only the blue chocolate drops are detected.

 

 

fig. 2.: configuration of the color filter

Counting with the BLOB command

And in no time at all the blue drops can be sorted or counted. If integrated in a sorting machine the EyeVision software can tell the machine, that e.g. the blue drops have to be rejected. The same method can be adopted to every other color as well.


In this example the chocolate drops should not only be sorted according color but also the blue drops should be counted. For this to achieve there is the so called BLOB command, which counts objects according to a certain brightness and in this case also according to a certain color (figure 3). In our case there are exactly 10 blue drops, which are detected with the BLOB command (figure 4).

fig. 3.: configuration of the BLOB command
fig. 4.: result - 10 blue drops