summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-25 20:25:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-25 20:25:56 +0200
commit3c87946ba80c541f17d7be42ec9f78ff3f738175 (patch)
treedd07b9d0216c00c683fb4c4a2fa0853e94fe52e1
parent0a728158654cb97165360f8a625cf66ce52e0d71 (diff)
try without red only for now
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp11
1 files 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<cv::Mat> 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;