summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:18:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:18:21 +0100
commit3428f8949b87c46bc8687d253ac255971baeb9e5 (patch)
tree01b1712e1cd76bbe269d436137d86821449703a0
parent68d9b43b99fc5657760f1ac119003bb493a2ca88 (diff)
aruco: decrease threshold param
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index 0b550ce2..1d0672b9 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -202,8 +202,9 @@ void Tracker::run()
cv::Mat grayscale;
cv::cvtColor(color, grayscale, cv::COLOR_RGB2GRAY);
- const int scale = frame.cols > 480 ? 2 : 1;
- detector.setThresholdParams(scale > 1 ? 11 : 7, 4);
+
+ const int scale = grayscale.cols > 480 ? 2 : 1;
+ detector.setThresholdParams(scale > 1 ? 11 : 4, 3);
const float focal_length_w = 0.5 * grayscale.cols / tan(0.5 * s.fov * HT_PI / 180);
const float focal_length_h = 0.5 * grayscale.rows / tan(0.5 * s.fov * grayscale.rows / grayscale.cols * HT_PI / 180.0);