summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-14 11:45:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-14 18:14:46 +0200
commita8da0d997048007d3feb2e3814ba93bbfd4d4ef8 (patch)
treec4042dd751232a2c759ab68c9bcf372e1a2861fb /tracker-pt/ftnoir_tracker_pt.cpp
parent2f0d5047d3fbe3958f2663c1ac7e7a2ecccc9336 (diff)
tracker/{aruco,pt}: disable opencv multithreading
Less overhead this way.
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp2
1 files changed, 2 insertions, 0 deletions
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;