I want to segment red and green objects with OpenCV in Python. I took the values from an online colour picker (H = 0°, S = 100 %, V = 100 % for red) and used them as bounds, but cv2.inRange returns an almost empty mask. Green works poorly too, and the result changes when the room lighting changes.
What ranges does OpenCV actually use for H, S and V, and how should the limits be chosen so the mask is stable?




