i’d guess that shape-recognition is rather done with something similar to the contours node. and i remember from browsing through opencv-documentation that there are some dedicated functions for comparing different contours (i.e. shapes).
so if your are a little into programming it shouldn’t be hard to hakc something together. starting at HowTo FreeFramePlugins.