summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:34:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:34:55 +0200
commitce79d1556bf8d43665694d7dd75571a79d175615 (patch)
treeaf2863d3dd863e1d4ff598f9c9dd70c86bb1bcd3 /tracker-pt/ftnoir_tracker_pt.cpp
parentf8e54403c3c30bf87491d310afd827a2d7cb7f16 (diff)
cv: gather common init code
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index d7484e9c..ea5346f6 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -7,13 +7,13 @@
*/
#include "ftnoir_tracker_pt.h"
+#include "pt-api.hpp"
+#include "cv/init.hpp"
#include "video/video-widget.hpp"
#include "compat/math-imports.hpp"
#include "compat/check-visible.hpp"
#include "compat/thread-name.hpp"
-#include "pt-api.hpp"
-
#include <QHBoxLayout>
#include <QDebug>
#include <QFile>
@@ -31,8 +31,7 @@ Tracker_PT::Tracker_PT(pointer<pt_runtime_traits> const& traits) :
frame { traits->make_frame() },
preview_frame { traits->make_preview(preview_width, preview_height) }
{
- cv::setBreakOnError(true);
- cv::setNumThreads(1);
+ opencv_init();
connect(s.b.get(), &bundle_::saving, this, &Tracker_PT::maybe_reopen_camera, Qt::DirectConnection);
connect(s.b.get(), &bundle_::reloading, this, &Tracker_PT::maybe_reopen_camera, Qt::DirectConnection);