diff options
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r-- | tracker-aruco/ftnoir_tracker_aruco.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 30f53485..b222ebbb 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -24,14 +24,18 @@ typedef struct { int height; } resolution_tuple; -static resolution_tuple resolution_choices[] = { +static resolution_tuple resolution_choices[] = +{ { 640, 480 }, { 320, 240 }, { 320, 200 }, { 0, 0 } }; -Tracker::Tracker() : stop(false), layout(nullptr), videoWidget(nullptr) +Tracker::Tracker() : + stop(false), + layout(nullptr), + videoWidget(nullptr) { } @@ -77,6 +81,8 @@ void Tracker::getRT(cv::Matx33d& r_, cv::Vec3d& t_) void Tracker::run() { + cv::setNumThreads(0); + int rint = s.resolution; if (rint < 0 || rint >= (int)(sizeof(resolution_choices) / sizeof(resolution_tuple))) rint = 0; |