OpenCV - HSV range of values for tracking red color

Simon picture Simon · Oct 17, 2011 · Viewed 11.9k times · Source

Could you please tell me how to what are ranges for Hue, Saturation and Value indices for intense red?

I try to use this values for color tracking and I couldn't find a specific answer via Google.

Answer

Rohit Rohela picture Rohit Rohela · Nov 11, 2011

you can map any color to OpenCV HSV. Actually opencv use 1800 hue cylinder while ideally it is 360, on the orher hand MS paint use 2400 cyllinder.
So to get OpenCV HSV value, simply open MS paint, open mixer, and read the value of HSV, now to map this value into OpenCV HSV multiply it with 180/240.
the range to value for saturation and value is 00-1800