summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-23 12:34:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-23 12:34:45 +0200
commite246c43fc97171d3c70310684a1335ed231ceed0 (patch)
tree32c5986d358eebe78151114595325cdeab941960 /FTNoIR_Tracker_PT
parentd348f86b3448d6076ab4cb405eb4bf08635545c1 (diff)
pt fix: frame race, framerate
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
index 43ecc775..b1392953 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
@@ -88,7 +88,7 @@ void Tracker::run()
tracking_valid = point_tracker.track(points, camera.get_info().f, dt);
frame_count++;
#ifdef OPENTRACK_API
- video_widget->update_image(frame);
+ video_widget->update_image(frame.clone());
#endif
}
#ifdef PT_PERF_LOG
@@ -206,6 +206,7 @@ void Tracker::Initialize(QFrame *video_frame)
settings.load_ini();
apply(settings);
camera.start();
+ apply(settings);
start();
}