Thresholding multiple RGB values in Python

asked 2017-08-21 13:46:42 -0600

m3rt gravatar image

Trying to extract three RGB values

  • (255, 255, 0)
  • (0, 0, 255)
  • (255, 0, 0)

via thresholding in a live video, but couldn't make it work by using inRange. How can it be done? Not asking for code (samples would be great), but some direction to search for.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

you need to convert your image to HSV color space see related questions (if you find useful information please upvote the question and the best answer)

sturkmen gravatar imagesturkmen ( 2017-08-21 15:08:28 -0600 )edit