Search code examples
c++videoopencvhue

OpenCV - HSV range of values for tracking red color


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.


Solution

  • You are the only one who can answer this question, since we don't know your criteria for "intense red". Collect as many samples as you can, some of which you consider intense red and some which are close but just miss the cut. Convert them all to HSL. Study the pattern.

    You might put together a small app that has sliders for the H, S, and L parameters and displays a block of color corresponding to the settings. That will tell you your limits very quickly.