summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-19 18:29:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-19 18:29:18 +0100
commit4e6f0d11c62318d70147ac0bee16f3377114e0db (patch)
tree4f50054f2e68b1cbd5e2beb1881b8e42f8b60db4 /ftnoir_tracker_aruco
parenta5cab46a725699d4e1d48ac14c416d2ba107070f (diff)
aruco: decrease thresholding param
Failed to work on low-contrast images.
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index 81cfb895..47ab9628 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -204,7 +204,7 @@ void Tracker::run()
cv::cvtColor(color, grayscale, cv::COLOR_RGB2GRAY);
const int scale = grayscale.cols > 480 ? 2 : 1;
- detector.setThresholdParams(scale > 1 ? 15 : 7, 17);
+ detector.setThresholdParams(scale > 1 ? 13 : 7, 5);
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);