Face Recognition using webcam and picture on passport
I try to recognize person's image on passport and compare it with images captured from webcam.
I first collect 20-30 images from webcam to train face recognizer. I then call predict method of face recognizer. However I get very inaccurate results. I tried LBPFaceRecognizer and EigenFaceRecognizer but the result is almost same. How can I improve my results' accuracy?
Thanks.
what are you trying to achieve ?
opencv's face recognition classes are for identification (closest from a database). if you wanted authentification (is that me?) from a few images, or verification (are the persons in 2 images the same ?) -- it's entirely the wrong tool.
also, passports often have holograms superimposed, a coated surface (specular reflections), and whatnot.
@berak.The passports photo often isn't holograms superimposed. Mostly @ airports are using OpenCV.
@berak I want to achieve verification. I want user to scan his/her passport on a small scanner and look at webcam in order to verify that the person in webcam is the same person on passport. I think holograms are not a big problem, because in the scanned image holograms are weak and have less effect (?) Are OpenCV FaceRecognizer classes right tool? If yes, how?
in that case - forget opencv's face recognition classes, theywere not meant to do that.
have a look here . and you won't find anything (for free) ready made for this purpose, i guess.
really, that's still bleeding edge research stuff. expect a lot of work, and quite some frustration.