Ask Your Question

OpenCV Color Detection

asked 2012-10-21 22:52:03 -0600

ognamdik gravatar image

I am making an OpenCV program that is able to detect 10 different colors and be able to differentiate between them. What are 10 different colors that OpenCV is able to detect easily?

How limited is OpenCV in detecting colors? If 8-bit colors are used, how many colors can OpenCV detect easily?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-10-27 00:48:19 -0600

Droidkie gravatar image

@ognamdik You can try this: It detects the colors: yellow and blue. There is a screenshot on that link that shows 5 colors being detected. Try to modify the code and see how many colors you can detect.

edit flag offensive delete link more


thank you!

ognamdik gravatar imageognamdik ( 2012-10-29 12:00:26 -0600 )edit

answered 2012-11-13 21:26:58 -0600

wentworthhu gravatar image

In my opinoin ,it depends your picture and the threshold you give.And I used to do it in the HSV or HSI color space.I think you can detect 10 color if you do it in the right way.

edit flag offensive delete link more

Question Tools


Asked: 2012-10-21 22:52:03 -0600

Seen: 3,735 times

Last updated: Nov 13 '12