Real Time face comparision using OpenCV
Guys,
how to compare the image from the camera preview with stored images in database real time ??
Thanks in advance
asked 2013-02-03 02:26:10 -0600
This post is a wiki. Anyone with karma >50 is welcome to improve it.
Guys,
how to compare the image from the camera preview with stored images in database real time ??
Thanks in advance
All you probably need is in the chapter 8 of Mastering OpenCV with practical computer vision projects book. The source code is here: https://github.com/MasteringOpenCV/code.
If you have a huge collection of face (not everything in RAM as the code above), you probably need to create a routine which get X faces from a database, compute the score, keep the best, get next X faces from the database, update the best (if needed), etc. until all faces of the database have been compared.
I'm not a specialist of this, but may be you can order your face in a acceleration structure (KD-tree or everything else) and load only useful images from the database. As you can see in the above code, only a norm is used to compare faces (getSimilarity() function), so it will be easy to create a partition of the database according to vector values.
Asked: 2013-02-03 02:26:10 -0600
Seen: 734 times
Last updated: Feb 06 '13
How to reduce false positives for face detection
How to free the memory when I use the face detector?
How can I debug into function like "cvCreateTreeCascadeClassifier "?
Python Face Recognition with OpenCV
face recognition (different image size)
How to detect faces with open eyes
OpenCV 2.4.2 FaceRec_demo.cpp - Interpreting output of Predict function