|All requests||>||I need a PHP class for face matching||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Michael - 3 years ago (2014-10-23)
I have a situation where I can upload a picture and it will return the name of the person in the photo by matching the face with the one already in the database.
9. by Lopo Lencastre de Almeida - 3 years ago (2014-10-29) Reply
This class avoids the need to have OpenCV installed on the server.
Article about it at http://www.emanueleferonato.com/2010/07/06/php-face-detection-class/
Code at https://github.com/mauricesvay/php-facedetection
10. by Manuel Lemos - 3 years ago (2014-10-30) in reply to comment 9 by Lopo Lencastre de Almeida Comment
Keep in mind that the poster does not just want to recognize there is a face in a picture.
He wants to detect if there is a face in a picture that can be the same as in other pictures of users he has in the database. So it does not seem to be that simple.
7. by Ravi Kumar - 3 years ago (2014-10-29) Reply
In your case I think phash is more suitable, instead of opencv, if you still want open cv implementation try this https://github.com/mgdm/OpenCV-for-PHP
8. by Ravi Kumar - 3 years ago (2014-10-29) in reply to comment 7 by Ravi Kumar Comment
Oops forgot to attach this, https://github.com/xwiz/phash
5. by adam berger - 3 years ago (2014-10-29) Reply
If the project involves ko┼╝ysta camera then you will probably still hook DirectShow SDK library and more you will have to use the mechanisms of multi-threaded and comes here with the help of Intel TBB library should provide the anticipated effect. Although I have no experience in these matters.
6. by adam berger - 3 years ago (2014-10-29) in reply to comment 5 by adam berger Comment
If this project involves the use of cameras that will probably still need to hook up the DirectShow SDK library and more you will have to use the mechanisms of multi-threaded and here comes from using Intel TBB library should provide the anticipated effect. Although I have no experience in these matters.
3. by Chi Hoang - 3 years ago (2014-10-29) Reply
You can try phash algorithm. I think face recognition in an image is very difficult problem to solve. OpenCV may be better.
4. by Manuel Lemos - 3 years ago (2014-10-29) in reply to comment 3 by Chi Hoang Comment
That can be something that you could implement, given that you know the algorithm.
11. by Chi Hoang - 3 years ago (2014-10-30) in reply to comment 4 by Manuel Lemos Comment
No, thanks. I know only little about OpenCV and the math behind it. I think its too difficult. pHash is average to understand.
2. by Alexandru Ocheana - 3 years ago (2014-10-28) Reply
face matching!? ... you mean face recognition and identity identification based on that picture? You want a face into database, and when you upload any image with the face of that person, the class need to figure out who it is?
1. by Manuel Lemos - 3 years ago (2014-10-27) Reply
Maybe a wrapper class around the OpenCV library would solve both parts of the problem, i.e. indexing existing pictures and matching a new picture with others in the database.
That may be a nice suggestion for somebody to create an innovative package.
PixLab can recognize and detect faces in a given image or video frame.
read this article https://www.phpclasses.org/blog/post/584-How-Can-PHP-Compare-Two-Images-for-Similarity.html to know how to use it.You may need a serious, fast detetection package then look at https://www.phpclasses.org/package/10419.html
This class can do face detection but not face matching. Doesn't use OpenCV
1. by Manuel Lemos - 3 years ago (2014-11-05) Reply
This is interesting but I am not sure if it can solve the user problem.
I think he wants to have a way to recognize a face in picture as belonging to a certain user in his site database.
I guess it would be like Facebook looking at a picture and suggesting that a certain picture is of an user already in the social network.
I wonder if your class can be used to perform that task.