From 3c87946ba80c541f17d7be42ec9f78ff3f738175 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Oct 2014 20:25:56 +0200 Subject: try without red only for now --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index bd7e3ff4..67dd8433 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -203,12 +203,7 @@ void Tracker::run() auto tm = cv::getTickCount(); cv::Mat grayscale; - { - std::vector tmp; - cv::split(color, tmp); - // red only, best on CCD, also artifacts on blue ps3eye - grayscale = tmp[2]; - } + cv::cvtColor(color, grayscale, cv::COLOR_RGB2GRAY); const int scale = frame.cols > 480 ? 2 : 1; detector.setThresholdParams(scale > 1 ? 11 : 7, 4); @@ -224,8 +219,8 @@ void Tracker::run() std::vector< aruco::Marker > markers; - const double size_min = 0.04; - const double size_max = 0.28; + const double size_min = 0.07; + const double size_max = 0.4; bool roi_valid = false; -- cgit v1.2.3