How to disable automatic white balance from Webcam?

11,956

If you are on Linux, you can test disabling automatic white balance using the uvcdynctrl command line utility. This is not a permanent solution, since these settings are reset every time the webcam is disconnected from the computer. As of OpenCV 2.1, configuring white balance is not supported using cv::VideoCapture::set(). Assuming this is still the case in OpenCV 2.2, you will need to use another library to configure your webcam and capture frames.

If you on Linux, you can see an example of using direct Video4Linux (V4L) syscalls to do this in one of my Github projects.

Share:
11,956

Related videos on Youtube

Rodrigo Farias Rezino
Author by

Rodrigo Farias Rezino

A person who likes to learn.

Updated on May 28, 2022

Comments

  • Rodrigo Farias Rezino
    Rodrigo Farias Rezino about 2 years

    I got a webcam and I'm running some algorithm on the received images to find movements in it. But, the automatic auto white balance is changing the excepted result of the pixels color variance. That's why I'm trying to disable it. Some one knows a way to get the web can image with out this automatic color balance or disable it ?

    Tks

  • Lukasz Czerwinski
    Lukasz Czerwinski about 12 years
    In OpenCV 2.3 it's still not supported (opencv.itseez.com/modules/highgui/doc/…)
  • Waldo Bronchart
    Waldo Bronchart over 11 years
    How/where did you disable it?
  • Rodrigo Farias Rezino
    Rodrigo Farias Rezino over 11 years
    Directly on driver software.