As already mentioned in the comments, PHP is not the ideal language to do the facial recognition itself.
However, as you will develop a web service, it is interesting to think of PHP as the web application that will receive the photos, from receiving them, you connect with a service or another language that will make the recognition itself.
The very task of face recognition from images is not trivial - you need an image database, develop a neural network, train it there so, if all goes well, gather a set of attributes common to each set of photos from the same person.
Obviously this also depends a lot on your requirements: if you need to find images identical existing ones currently (which I find difficult, since they will come from photos taken by webcams) or with a certain degree of similarity.
not ideal to do this in php..
– Daniel Omine
+1 it is not recommended to use PHP for this. Here is a list of API’s: http://blog.mashape.com/list-of-10-face-detection-recognition-apis/
– juniorb2ss
You have the one in jquery: http://facedetection.jaysalvat.com/ github: https://github.com/jaysalvat/jquery.facedetection
– Ivan Ferrer
So @Danielomine really saw the guys talking that it would be better to do in another language and then make a bridge shape in php I will look in other languages too.
– JustCry001
@juniorb2ss looked at the site you sent but apparently the API’s are all paid or have to put card to use even for a while and I have no card, until I managed to get on the site of some and had one that was exactly what I wanted but.. If you have more information on how to use the site I appreciate, maybe I didn’t understand how it works.
– JustCry001
@Ivanferrer this and what I find most on the internet however that’s not what I want, would more compare one image with another, then it just locates the faces in the image but thank you.
– JustCry001
Face Apis Detection is actually paid for. Finding an open source is uncomplicated and unaware of the existence of any.
– juniorb2ss
The facial recognition algorithms are very complex and there are heavy investments in those that are well developed.. Of course you won’t find anything free on the web that is reasonable. At most you will find services that provide some paid API. I worked with this in 2007, but at the time I did script with PHP and PHP-GD that recognized movements. It was for security cameras. It worked well, but far from ideal in performance. It was more into account, financially, buy a software already approved and recommended commercially.
– Daniel Omine
@juniorb2ss And the problem I needed an open source, because what I’m doing is just an academic job, I’ll keep searching but if it’s too hard to find something I’ll think of something else instead of facial recognition.
– JustCry001
@Danielomine really, I myself have no idea how to make a program like this even because I’m still learning, and in a matter of buying it wouldn’t be worth it because it’s just an academic job, and it’s not TCC then.. I’ll keep searching here, but I’ll end up having to think of another way to authenticate.
– JustCry001
In that case, just be careful that your work is not copied by third parties. Usually in schools and universities, mentors or other colleagues take advantage of the ingenuity of someone who can create something cool and use it for commercial purposes. If you can create something cool, register a patent before submitting. Don’t fall too far into this open source talk because there’s always a taker sucking on other people’s work.
– Daniel Omine
@Danielomine Ok vlw by warning.
– JustCry001
I know it’s old, but it’s a shame to still find messages like this: "it’s not recommended to be done in PHP". Why not? Nobody explains, nobody says anything, just opinions. Know that even in C# this kind of processing is done through external Pis, and it is perfectly possible to bind with PHP. If anyone still has interest as I am now having after 3 years of the question, go for one in opencv. You can compile the extension for PHP, or even use it via the https://github.com/php-opencv/php-opencv-examplescommand line
– Bruno Pitteli Gonçalves