Wow this a broad topic....
There's
this article on contour analysis.
Or
Eigenfaces
or even
OpenCv as a starting point.
With a subjuct such as this, a limited scope question in Q&A isn't going to help you much. You will have to do the initial in depth research yourself from these and other sources.
When you have specific issues then Q&A can help more....