Ask Your Question
0

Real Time face comparision using OpenCV

asked 2013-02-03 02:26:10 -0500

this post is marked as community wiki

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-02-06 06:54:38 -0500

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-03 02:26:10 -0500

Seen: 541 times

Last updated: Feb 06 '13