diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-28 19:24:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-28 19:24:13 +0100 |
commit | c6c1ef815c759e845a6ed9aef5688be4d1cf8d2e (patch) | |
tree | 8bcb3547e2af1501364e4a4b479e3f29b2830067 /ftnoir_tracker_aruco | |
parent | 964fc8ab4587662821c96d3d9da084b8a2b354b0 (diff) |
adjust thresholding after aruco_test run
Previous values increased CPU usage needlessly.
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 2 |
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 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); |