From e246c43fc97171d3c70310684a1335ed231ceed0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 23 Oct 2013 12:34:45 +0200 Subject: pt fix: frame race, framerate Signed-off-by: Stanislaw Halik --- FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3