diff options
-rw-r--r-- | tracker-aruco/ftnoir_tracker_aruco.cpp | 2 | ||||
-rw-r--r-- | tracker-pt/point_extractor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 745ce50d..0090aa12 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -376,7 +376,7 @@ void aruco_tracker::run() continue; } - cv::cvtColor(color, grayscale, cv::COLOR_RGB2GRAY); + cv::cvtColor(color, grayscale, cv::COLOR_BGR2GRAY); #ifdef DEBUG_UNSHARP_MASKING { diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index c2780392..5cefcbcd 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -88,8 +88,8 @@ void PointExtractor::extract_points(const cv::Mat& frame, cv::Mat& preview_frame } // convert to grayscale - cv::cvtColor(frame, frame_gray, cv::COLOR_RGB2GRAY); + cv::cvtColor(frame, frame_gray, cv::COLOR_BGR2GRAY); const double region_size_min = s.min_point_size; const double region_size_max = s.max_point_size; |