Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

detect colored bars from an object


I am trying to filter for the colored bars like you can see in this image:

image description

Right now I try with a mean()over the rgb image and crop all under this threshold.
But then it looks like this:

image description

Do you have any idea what I could do better or other methods for getting the color?
Or should I just search for the colors? (There are about 10 colors that can occur)