Contours chains matching techniques
I tried http://www.codeproject.com/Articles/196168/Contour-Analysis-for-Image-Recognition-in-C once. It did not work well for me, but that guy seem to have better results.