From 61484a95d1b4116318da1a6079d2a719387fb784 Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Tue, 10 Oct 2023 18:23:45 +0200 Subject: [PATCH] Minor change to compile with the current version of OpenCV. --- src/blob_detector_alg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blob_detector_alg.cpp b/src/blob_detector_alg.cpp index 92565a6..0b65ea3 100644 --- a/src/blob_detector_alg.cpp +++ b/src/blob_detector_alg.cpp @@ -68,7 +68,7 @@ void BlobDetectorAlgorithm::blob_detector(const cv::Mat& img,cv::Mat &img_out,ir this->lock(); cv::Ptr<cv::SimpleBlobDetector> detector = cv::SimpleBlobDetector::create(this->params); - cvtColor(img,img_hsv,CV_RGB2HSV); + cvtColor(img,img_hsv,cv::COLOR_BGR2RGB); cv::inRange(img_hsv,cv::Scalar(this->h_min,this->s_min,this->v_min), cv::Scalar(this->h_max,this->s_max,this->v_max),img_bin); cv::bitwise_not(img_bin,img_bin_inv); detector->detect(img_bin_inv, keypoints); -- GitLab