1 | initial version |
You could try matching a shape you know against the global image (link to opencv documentation on matchShapes). It works solidly and fast and will work with scaling but not with rotations or perspective transformations.
This q&a can give you pointers to more sophisticated comparisons.