From the left image you can segment each map.
Then try using OpenSV matchShapes () to match these three forms.
Since matchShape () uses HuMoments, opencv doc described that Hu Moments are invariants to the scale, rotation and reflection of the image, except for the seventh ...
You can also refer to the opencv example code: cpp / squares.cpp to develop your own form-conforming program.
source share