diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-23 12:34:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-23 12:34:45 +0200 |
commit | e246c43fc97171d3c70310684a1335ed231ceed0 (patch) | |
tree | 32c5986d358eebe78151114595325cdeab941960 | |
parent | d348f86b3448d6076ab4cb405eb4bf08635545c1 (diff) |
pt fix: frame race, framerate
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 3 |
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();
}
|