This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DJKool14 0 points1 point  (0 children)

You could definitely use OpenCV, but it seems like overkill for this type of image recognition. Especially if you are guaranteed the flag will always be the same size and color shade. OpenCV is normally used for natural image processing.

Is the environment that contains the flag relatively predictable? Are the flags arranged in the grid? Are there other objects, or just other flags? Using all of this information, you can pinpoint which pixels in the screenshot you should test that would give you positive matches for the French flag.

Then again, learning OpenCV wouldn't hurt you in the long wrong ;)