I’m facing a challenge and I’m unsure which method to use for detecting gray rectangles on a white background. Here’s a screenshot from a live camera feed: [https://i.stack.imgur.com/99TTy.png]. The camera is stationary, and the only movement comes from the base along with the gray rectangles on it. My goal is to detect whether these rectangles are present.
I have experimented with various techniques, including:
- Blob Detection
- Contour Detection
- Object Detection using cv.createBackgroundSubtractorMOG2
Considering YOLOv5 for my task crossed my mind, but it seems like an overkill for what appears to be a relatively straightforward problem. I’m not seeking code snippets; rather, I’m in search of insights or alternative approaches as I’m currently at an impasse and in need of fresh ideas.