Standardizing camera input in OpenCV? (Contrast/Saturation/Brightness etc..)
Posted
by karpathy
on Stack Overflow
See other posts from Stack Overflow
or by karpathy
Published on 2010-04-28T23:53:00Z
Indexed on
2010/04/28
23:57 UTC
Read the original article
Hit count: 235
I am building an application using OpenCV that uses the webcam and runs some vision algorithms. I would like to make this application available on the internet after I am done, but I am concerned about the vast differences in camera settings on every computer, and I am worried that the algorithm may break if the settings are too different from mine.
Is there any way, after capturing the frame, to post process it and make sure that the contrast is X, brightness is Y, and saturation is Z? I think the Camera settings themselves can not be changed from code directly using the current OpenCV Python bindings.
Would anyone be able to tell me about how I could calculate some of these parameters from the image and adjust them appropriately using OpenCV?
© Stack Overflow or respective owner