This class can detect one face in images ATM.
This is a pure PHP port of an existing JS code from Karthik Tharavaad.
PHP5 with GD
GNU GPL v2 (See LICENSE.txt)
Detect face in images in pure PHP
License: GNU General Public License v2.0
How can create my custom delection data or how it work
Hello sir,
I have a problem to use your code in php framework codeigniter, i want to use it as library.
Can u help me to fix it ? thank's a lot
Any possibility of releasing this with some permissive license such as MIT, BSD or Apache? Currently cannot use this library because of viral nature of GPL.
Is there a reason not to support PNG files (or GIF, BMP, etc.) ?
FaceDetector::faceDetect()
relies on imagecreatefromjpeg()
:
[...]
} elseif (is_file($file)) {
$this->canvas = imagecreatefromjpeg($file);
} else {
[...]
I'm guessing it could use imagecreatefrompng()
to support PNG but I'm not sure of the implication for the whole library? Does face detection absolutely requires a JPG?
@mauricesvay thank you for such a great library , would you be so kind to put some comments in the codes especially where there is a lot of math to give a hint of why numbers like 0.12 are chose ?
Thanks for writing this cool tool,
Would you mind tell, What does the .dat file do?
Thanks
It'd help a lot if you could tag at least a 0.* version to rely on. We'd rather have no dev-master
dependencies 😉
Hi,
Thanks for the great script.
is there any way to return FALSE if no face is detected in the image?
How can i detect other thing instead of face, like a banana in photo?
I cant seem to find the documentation of this.
I finded where to put comments but no familiarized with GitHUb already!!!
I mean the script will can detect more than one face on a pic, like some others around the web..
Hello,
I am new to use this code,
Please let me know from where and how can I generate .dat file to detect image ?
Can i detect the lips in the face image.????
Salut,
Tout d'abord merci d'avoir partagé ce superbe script avec nous. Est-ce q'il n'y aurait pas moyen d'avoir quelques commentaires sur le code ? Même s'il est pas mal explicite, j'ai du mal avec ce fichier dat.
En plus, la source javascript n'es plus en ligne... donc difficile de se rapprocher de quelque chose...
Merci encore,
The script works well but in many many cases detect anything but not the face
This script is cool and simple enough but unfortunately it is failed in some cases. For example i have attached a file here which is not a face but detected text as a face in it.
This one also:
One more example, the picture on following link has a face but not detecting the face. It is detecting the river stream as a face.
https://drive.google.com/file/d/14BKLzYQj2MO0kcsy59MuJTgIGLYTbZfW/view?usp=sharing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.