summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.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-easy/tracker-easy.cpp
parentf8e54403c3c30bf87491d310afd827a2d7cb7f16 (diff)
cv: gather common init code
Diffstat (limited to 'tracker-easy/tracker-easy.cpp')
-rw-r--r--tracker-easy/tracker-easy.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp
index e13bdf37..84d14db0 100644
--- a/tracker-easy/tracker-easy.cpp
+++ b/tracker-easy/tracker-easy.cpp
@@ -10,6 +10,7 @@
#include "compat/math-imports.hpp"
#include "compat/check-visible.hpp"
#include "point-extractor.h"
+#include "cv/init.hpp"
#include <QHBoxLayout>
#include <QDebug>
@@ -33,6 +34,8 @@ using namespace options;
// We need at least 3 vertices to be able to do anything
const int KMinVertexCount = 3;
+
+
namespace EasyTracker
{
@@ -40,8 +43,7 @@ namespace EasyTracker
iSettings{ KModuleName },
iPreview{ preview_width, preview_height }
{
- cv::setBreakOnError(true);
- cv::setNumThreads(1);
+ opencv_init();
connect(iSettings.b.get(), &bundle_::saving, this, &Tracker::maybe_reopen_camera, Qt::DirectConnection);
connect(iSettings.b.get(), &bundle_::reloading, this, &Tracker::maybe_reopen_camera, Qt::DirectConnection);