Look for blobs that fit within certain angles
Signed-off-by: Milind Upadhyay <milind.upadhyay@gmail.com>
Change-Id: I2bc2cf2123e2c0e163944c91b37f0f4d614fce3e
diff --git a/y2022/vision/blob_detector.h b/y2022/vision/blob_detector.h
index 4077e2c..d263d32 100644
--- a/y2022/vision/blob_detector.h
+++ b/y2022/vision/blob_detector.h
@@ -28,7 +28,7 @@
// Given an image, threshold it to find "green" pixels
// Input: Color image
// Output: Grayscale (binarized) image with green pixels set to 255
- static cv::Mat ThresholdImage(cv::Mat rgb_image);
+ static cv::Mat ThresholdImage(cv::Mat bgr_image);
// Given binary image, extract blobs
static std::vector<std::vector<cv::Point>> FindBlobs(cv::Mat threshold_image);
@@ -52,7 +52,7 @@
const std::vector<std::vector<cv::Point>> &unfiltered_blobs,
const std::vector<BlobStats> &blob_stats, cv::Point centroid);
- static void ExtractBlobs(cv::Mat rgb_image, BlobResult *blob_result);
+ static void ExtractBlobs(cv::Mat bgr_image, BlobResult *blob_result);
};
} // namespace vision
} // namespace y2022