Skip to content
Snippets Groups Projects
Commit e6b6d48b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Increase camera resolution to 720p

parent f4bc9467
No related branches found
No related tags found
Loading
Pipeline #10722 passed
...@@ -58,6 +58,11 @@ LocalSource::LocalSource(nlohmann::json &config) ...@@ -58,6 +58,11 @@ LocalSource::LocalSource(nlohmann::json &config)
stereo_ = false; stereo_ = false;
LOG(WARNING) << "Not able to find second camera for stereo"; LOG(WARNING) << "Not able to find second camera for stereo";
} else { } else {
camera_a_->set(cv::CAP_PROP_FRAME_WIDTH,1280);
camera_a_->set(cv::CAP_PROP_FRAME_HEIGHT,720);
camera_b_->set(cv::CAP_PROP_FRAME_WIDTH,1280);
camera_b_->set(cv::CAP_PROP_FRAME_HEIGHT,720);
Mat frame; Mat frame;
camera_a_->grab(); camera_a_->grab();
camera_a_->retrieve(frame); camera_a_->retrieve(frame);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment