I am creating an application using OpenCV that uses a webcam and runs some vision algorithms. I would like to make this application available on the Internet after I have finished, but I am worried about the huge differences in the camera settings on each computer, and I am worried that the algorithm may break if the settings are too different from mine.
Is there a way, after capturing a frame, to publish it and make sure that the contrast is X, the brightness is Y, and the saturation is Z? I think that the camera settings themselves cannot be changed directly from the code using the current OpenCV Python bindings.
Can anyone tell me how I can calculate some of these parameters from an image and adjust them accordingly using OpenCV?
source
share