From c6c1ef815c759e845a6ed9aef5688be4d1cf8d2e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Nov 2014 19:24:13 +0100 Subject: adjust thresholding after aruco_test run Previous values increased CPU usage needlessly. --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftnoir_tracker_aruco') diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index 1d0672b9..b86e035c 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 ? 11 : 4, 3); + detector.setThresholdParams(scale > 1 ? 15 : 7, 17); 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); -- cgit v1.2.3