Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Xiaodupi108/DPAverageFace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DPAverageFace - Average Face For PHP Extension

An PHP Extension used to generate average face from serveral human faces Output image

Requirements

OpenCV 2.4.13.2

PHP 5.4+

Usage

  1. Install OpenCV 2.4.13.2 according to OpenCV official guide.
  2. Run compile.sh
  3. 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
  4. Restart php service and your web service(nginx, apache etc.)
  5. Run 'php -m' to check whether 'face' extension is inside the list
  6. Run the test.php under the Test folder, make sure the Test folder is writable on your server
  7. 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~

Reference

Our core algorithm is from this article: Average Face : OpenCV ( C++ / Python ) Tutorial, Thanks to SATYA MALLICK!

License

DPAverageFace is released under the MIT license. See LICENSE for details.

About

Average Face for php extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published