DEV Community

Sivaram Rasathurai
Sivaram Rasathurai

Posted on

Answer: Detect if there is gray color in image by opencv Python

The better way is to change the colour space into HSV and find the Hue value range for colour.

  • Take each frame of the video
  • Convert from BGR to HSV color-space
  • Threshold the HSV image for a range of blue colour

Below code is from OpenCV official site to detect…

Top comments (0)