summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-28 05:43:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-28 05:43:39 +0100
commit0b376956dc68390f76ce3165a2572b9c902027a6 (patch)
tree15fbe8f324f0a7cfece639bf1393a76fd8417ed9 /ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
parente7877ebef831f1cb36f911e2784af8268c26b5bb (diff)
fix copy-paste marker non-detection
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index 47c83c12..9a8c09d5 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -239,7 +239,7 @@ void Tracker::run()
(detector.detect(grayscale(last_roi), markers, cv::Mat(), cv::Mat(), -1, false),
markers.size() == 1 && markers[0].size() == 4))
{
- detector.setMinMaxSize(std::max(0.2, 0.08 * grayscale.cols / last_roi.width),
+ detector.setMinMaxSize(std::max(0.1, 0.08 * grayscale.cols / last_roi.width),
std::min(1.0, 0.39 * grayscale.cols / last_roi.width));
auto& m = markers.at(0);
for (int i = 0; i < 4; i++)
@@ -251,7 +251,7 @@ void Tracker::run()
}
else
{
- detector.setMinMaxSize(0.09, 0.4);
+ detector.setMinMaxSize(0.08, 0.39);
detector.detect(grayscale, markers, cv::Mat(), cv::Mat(), -1, false);
}