Skip to content

Commit

Permalink
Set FPS?
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Mar 26, 2022
1 parent d3dc2bd commit 8cbd4f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exe/cimbar_recv/recv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ int main(int argc, char** argv)
}
vc.set(cv::CAP_PROP_FRAME_WIDTH, 1920);
vc.set(cv::CAP_PROP_FRAME_HEIGHT, 1200);
vc.set(cv::CAP_PROP_FPS, 60);

// set max camera res, and use aspect ratio for window size...

std::cout << fmt::format("width: {}, height {}", vc.get(cv::CAP_PROP_FRAME_WIDTH), vc.get(cv::CAP_PROP_FRAME_HEIGHT)) << std::endl;
std::cout << fmt::format("width: {}, height {}, exposure {}", vc.get(cv::CAP_PROP_FRAME_WIDTH), vc.get(cv::CAP_PROP_FRAME_HEIGHT), vc.get(cv::CAP_PROP_EXPOSURE)) << std::endl;

double ratio = vc.get(cv::CAP_PROP_FRAME_WIDTH) / vc.get(cv::CAP_PROP_FRAME_HEIGHT);
int height = 600;
Expand Down

0 comments on commit 8cbd4f3

Please sign in to comment.