summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index d9674755..d9cb2b96 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -8,6 +8,7 @@
#include "ftnoir_tracker_aruco.h"
#include "compat/sleep.hpp"
#include "compat/math-imports.hpp"
+#include "cv/init.hpp"
#ifdef _MSC_VER
# pragma warning(disable : 4702)
@@ -60,8 +61,7 @@ static const resolution_tuple resolution_choices[] =
aruco_tracker::aruco_tracker()
{
- cv::setBreakOnError(true);
- cv::setNumThreads(1);
+ opencv_init();
// param 2 ignored for Otsu thresholding. it's required to use our fork of Aruco.
set_detector_params();