background preloader

Face detection in pure PHP (without OpenCV) / Blog de Maurice Svay

Face detection in pure PHP (without OpenCV) / Blog de Maurice Svay
Une résumé en français est disponible en fin d’article. Lately, I’ve been looking for ways to detect faces in photos with PHP. Nowadays, face detection is built in many consumer products (camera obviously, but also Google and iPhoto), and seems to be a pretty common job. So I expected to find many solutions for doing it with PHP. Learning about face detection So I started to think about implementing it myself. Always look at what others are doing Then I looked for existing implementations in other languages. The code Update: the code has moved to Once the code converted to PHP, here’s the result: And you simply use the class this way: $detector = new Face_Detector('detection.dat'); $detector->face_detect('maurice_svay_150.jpg'); $detector->toJpeg(); Which gives the following result: The code requires GD and is a bit slow but should work on most PHP servers. Résumé en français

Facebook : bientôt une reconnaissance faciale automatique ? Le réseau social a annoncé sa volonté de collecter les photos de profil de ses membres pour sa base de données biométriques. Une technique qui suscite de nombreuses interrogations... L'annonce a été glissée mine de rien. Depuis quelques jours, Facebook a changé ses conditions d'exploitation des photos de profil de ses utilisateurs. Facebook avait aussi lancé cet outil de reconnaissance facial en Europe en 2011 mais la CNIL (Commission nationale de l'informatique et des libertés) avait tout de suite émis des réserves qui avaient poussé le géant à retirer ce processus. Malgré une transparence qui se veut totale du côté du réseau social, la question est bien plus sensible qu'il n'y parait.

Automatic Face Detection in Photos with PHP – Corpocrat Blog I have always wondered how to detect faces automatically with php script. I have seen in many photo sharing and social network sites automatically detect a face and tag a name after being uploaded. In this article, i will explain how possible this task can be achieved with simplicity with OpenCV and PHP Facedetect extension. Both are free to download and opensource. Goal To auto detect faces in a photo and draw pink box around the faces with a php script running a linux centos server. Requirements - Linux server running Centos with SSH access - PHP/Apache - GD Library - OpenCV [Download] - PHP Facedetect extension [Download] PHP facedetect extension is very simple. Installation We install opencv and then we compile the php facedetect extension with php. How to Install OpenCV If you are running centos then one single line will install opencv. yum install opencv OpenCV may also need the following depencies to work properly and you will need to install them as well. How to test run OpenCV . run . then

Lambda Labs Face Recognition API βeta

Related: