summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-18 14:01:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-18 14:10:00 +0200
commit36b82f354d9961eedbedbc709b637989e808d7d1 (patch)
treebbadbec42715e430a35514f654a5581b32c271b6 /ftnoir_tracker_pt
parentcee42a364e1450d0fb867104cff660871e1d02a4 (diff)
pt: get camera fps/size on startup
Issue: #86
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r--ftnoir_tracker_pt/camera.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftnoir_tracker_pt/camera.cpp b/ftnoir_tracker_pt/camera.cpp
index 7c2c09ce..fec503e1 100644
--- a/ftnoir_tracker_pt/camera.cpp
+++ b/ftnoir_tracker_pt/camera.cpp
@@ -151,6 +151,8 @@ void CVCamera::start()
// extract camera info
if (cap->isOpened())
{
+ _set_fps();
+ _set_res();
active = true;
active_index = desired_index;
cam_info.res_x = cap->get(CV_CAP_PROP_FRAME_WIDTH);