From a8da0d997048007d3feb2e3814ba93bbfd4d4ef8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Jun 2016 11:45:53 +0200 Subject: tracker/{aruco,pt}: disable opencv multithreading Less overhead this way. --- tracker-pt/ftnoir_tracker_pt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tracker-pt/ftnoir_tracker_pt.cpp') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 950dde71..6ff19479 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -76,6 +76,8 @@ bool Tracker_PT::get_focal_length(float& ret) void Tracker_PT::run() { + cv::setNumThreads(0); + #ifdef PT_PERF_LOG QFile log_file(QCoreApplication::applicationDirPath() + "/PointTrackerPerformance.txt"); if (!log_file.open(QIODevice::WriteOnly | QIODevice::Text)) return; -- cgit v1.2.3