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-pt/ftnoir_tracker_pt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index e6cbb6ba..7435e6d7 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -31,6 +31,7 @@ Tracker_PT::Tracker_PT(pointer const& traits) : preview_frame { traits->make_preview(preview_width, preview_height) } { cv::setBreakOnError(true); + cv::setNumThreads(1); connect(s.b.get(), SIGNAL(saving()), this, SLOT(maybe_reopen_camera()), Qt::DirectConnection); connect(&s.fov, SIGNAL(valueChanged(int)), this, SLOT(set_fov(int)), Qt::DirectConnection); @@ -48,8 +49,6 @@ Tracker_PT::~Tracker_PT() void Tracker_PT::run() { - cv::setNumThreads(1); - #ifdef PT_PERF_LOG QFile log_file(OPENTRACK_BASE_PATH + "/PointTrackerPerformance.txt"); if (!log_file.open(QIODevice::WriteOnly | QIODevice::Text)) return; -- cgit v1.2.3