Ask Your Question

Revision history [back]

You can change white balance settings for camera in different way. If you you use Java camera (JavaCameraView) you can use standard Android camera API like this. If you use VideoCapture, then you need to call set() method with CV_CAP_PROP_ANDROID_WHITE_BALANCE key. All possible white balance values are defined as enum with CV_CAP_ANDROID_WHITE_BALANCE_* keys in opencv2/highgui/highgui_c.h. White balance support in VideoCapture is experimental feature and you potentially can have problems with it. Also I recommend you to see tutorial-3 as example of custom camera settings.