Any image processing I've ever needed to do, I searched for
SIGRAPH[
^] as well as my search terms, and found a paper that explained the math, then I wrote the code from there. This is a pretty vague request, I'm not sure how much more anyone can help you, unless someone knows of an existing library. Face recognition is very possible, as you've seen, but it's not a trivial task.