OpenCV关闭摄像头白平衡(C++版)

不多说,直接上代码:

	cv::VideoCapture capture;
	capture.set(CV_CAP_PROP_AUTO_EXPOSURE, 0);
	capture.set(CV_CAP_PROP_EXPOSURE, -5);
	capture.set(CV_CAP_PROP_BRIGHTNESS, 100);
	capture.set(CV_CAP_PROP_TEMPERATURE, 7000);

你可能感兴趣的:(opencv,计算机视觉,人工智能)