File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -192,12 +192,10 @@ CaptureSetting CameraNode::on_configure_capture_setting(
192
192
}
193
193
194
194
if (new_capture_setting.temperature .is_not_empty ()) {
195
- video_capture->set (cv::CAP_PROP_AUTO_WB, 0 );
196
195
video_capture->set (cv::CAP_PROP_WB_TEMPERATURE, new_capture_setting.temperature );
197
196
}
198
197
199
198
if (new_capture_setting.exposure .is_not_empty ()) {
200
- video_capture->set (cv::CAP_PROP_AUTO_EXPOSURE, 1 );
201
199
video_capture->set (cv::CAP_PROP_EXPOSURE, new_capture_setting.exposure );
202
200
}
203
201
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ ImageProvider::ImageProvider(const Options & options)
38
38
39
39
video_capture->set (cv::CAP_PROP_FRAME_WIDTH, options.width );
40
40
video_capture->set (cv::CAP_PROP_FRAME_HEIGHT, options.height );
41
+ video_capture->set (cv::CAP_PROP_AUTOFOCUS, 0 ); // Disable autofocus
42
+ video_capture->set (cv::CAP_PROP_AUTO_WB, 0 ); // Disable auto white balance
43
+ video_capture->set (cv::CAP_PROP_AUTO_EXPOSURE, 1 ); // Set auto exposure to manual mode
44
+ video_capture->set (cv::CAP_PROP_SHARPNESS, 0 ); // Set sharpness to 0
45
+ video_capture->set (cv::CAP_PROP_FOCUS, 0 ); // Set focus to 0
41
46
}
42
47
43
48
ImageProvider::~ImageProvider ()
You can’t perform that action at this time.
0 commit comments