summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.cpp
diff options
context:
space:
mode:
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);