cap.open(0);
cap.set(CAP_PROP_AUTO_WB, 0);
cap.set(CAP_PROP_WB_TEMPERATURE, 10);
I tried to set the WhiteBalance above but the capture is not changing whatever I write to the temperature. Am I missing something?
I read from several forums that some properties have to be in a certain interval. Like CAP_PROP_AUTO_EXPOSURE
should expect two values: 0.75 auto exposure On and 0.25 as auto exposure OFF. Once you set auto exposure Off with 0.25 then set exposure to any value that you desire. But I did not see a similar thing for wb temperature.
Note:
Camera Model: DFM 27UR0135-ML - USB 3.0 color board camera
I don't think it doesn't support balance settings, because the code below was working:
//WhiteBalance
Ptr<xphoto::WhiteBalancer> wb;
wb = xphoto::createLearningBasedWB();
wb ->balanceWhite(frame, frame);
But I didnt get good results with automatic white balancing, that's why I want to change the parameters like temperature, red, blue manually.