Brightness / Contrast - Web cam

Hi,

I’m reading colour values from a Web cam. Got post-it notes in different colours on a white background. Due to light circumstances etc. its a bit tricky to determine the colours. I think my results would be much better if I could adjust brightness / contrast.

Im using the ofVideoGrabber to display the webcam and to read the pixelvalues.

Thank you guys in advance

/Philip

try working in HSV color space