PHP Classes
elePHPant
Icontem

I need a PHP class for face matching: Solution to match faces from uploaded pictures

Recommend this page to a friend!
  All requests RSS feed  >  I need a PHP class for face matching  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

I need a PHP class for face matching

A request is featured when there is no good recommended package on the site when it is posted. Edit

by Michael - 2 years ago (2014-10-23)

Solution to match faces from uploaded pictures

This request is clear and relevant.
This request is not clear or is not relevant.

+12

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.

  • 6 Clarification requests
  • 9. by Lopo Lencastre de Almeida - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 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 - 2 years ago (2014-10-27) Reply

      Interesting problem!

      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.

      Ask clarification

      3 Recommendations

      pixlab PHP Facedetect and Image Processing: Process images using the PixLab Machine Vision API

      This recommendation solves the problem.
      This recommendation does not solve the problem.

      0

      by Symisc Systems package author package author Reputation 25 - 27 days ago (2017-08-24) Comment

      PixLab can recognize and detect faces in a given image or video frame.


      PHP Compare Images Similarity: Compare two images to find if they are similar

      This recommendation solves the problem.
      This recommendation does not solve the problem.

      0

      by zinsou A.A.E.Mo´se Reputation 3845 - 1 month ago (2017-08-13) Comment

      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


      Imagedit Pro: Image manipulation operations and face detection

      This recommendation solves the problem.
      This recommendation does not solve the problem.

      +4

      by Jakob Riedle package author package author Reputation 45 - 2 years ago (2014-11-02) Comment

      This class can do face detection but not face matching. Doesn't use OpenCV

      • 1 Comment
      • 1. by Manuel Lemos - 2 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.


      Recommend package
      : 
      :