From 3cf0308c6487ae917b064e49569e5c9684d61978 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 12:58:13 +0200 Subject: tracker/{pt,aruco}: change cv::setNumThreads call site --- tracker-aruco/ftnoir_tracker_aruco.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 28eea60e..a3d58c88 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -63,6 +63,8 @@ static const resolution_tuple resolution_choices[] = aruco_tracker::aruco_tracker() { cv::setBreakOnError(true); + cv::setNumThreads(1); + // param 2 ignored for Otsu thresholding. it's required to use our fork of Aruco. set_detector_params(); } @@ -359,8 +361,6 @@ void aruco_tracker::cycle_detection_params() void aruco_tracker::run() { - cv::setNumThreads(1); - if (!open_camera()) return; -- cgit v1.2.3