An PHP Extension used to generate average face from serveral human faces
OpenCV 2.4.13.2
PHP 5.4+
- Install OpenCV 2.4.13.2 according to OpenCV official guide.
- Run compile.sh
- Add 'extension = face.so' to the end of php.ini, if you use both php-fpm and php-cli then you need to change both php.ini file
- Restart php service and your web service(nginx, apache etc.)
- Run 'php -m' to check whether 'face' extension is inside the list
- Run the test.php under the Test folder, make sure the Test folder is writable on your server
- If you see the test.jpg, Congrats! This is the average face generated by your server
PS: face.def is a file with extension's function definition which used to create your own php extenstion with ext_skel(from php source) tool. You can ignore it.
Good luck~
Our core algorithm is from this article: Average Face : OpenCV ( C++ / Python ) Tutorial, Thanks to SATYA MALLICK!
DPAverageFace is released under the MIT license. See LICENSE for details.