summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 78be1623..c322d323 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -312,8 +312,12 @@ void aruco_tracker::set_detector_params()
detector._thresMethod = aruco::MarkerDetector::FIXED_THRES;
else
detector._thresMethod = aruco::MarkerDetector::ADPT_THRES;
+
+ detector.setThresholdParams(adaptive_sizes[adaptive_size_pos], adaptive_thres);
#else
detector._thresMethod = aruco::MarkerDetector::CANNY;
+ int value = adaptive_sizes[adaptive_size_pos];
+ detector.setThresholdParams(value, value * 3);
#endif
}