Opencv color recognition

Using opencv, can detection of a specific color (between a certain range of rgb values) be performed in an image or video frame?

+5
source share
3 answers

You need to define the treshold in RGB and process the pixels in the image (hopefully not the whole image, but a smaller area of ​​interest, possibly a moving foreground shape) that are suitable for definition. Something similar to what was discussed here .

I understand that you know the color (or colors) that you want to determine a priori.

Hope this helps.

+3
source

Yes - but it's easier in the HSV color space. Tutorials here

+1
source

All Articles