I would like to detect a red colored object in a video or image, with OpenCV and C++. What algorithms are available to do this?
I would like to do a comparison of th
In that case, try to find out any unique feature for your required square which distinguish it from other squares.
For eg,
1) Color of square:- If color is different from all other squares, you can check inside each square, and select square with required color, as explained by mevatron.
2) Size of square :- If you know size of square, then compare size of each square and select best.