Detect faces using Dlib's HOG face detection model.
- C++
- CMake
- Python
Compile the Dlib library in your environment.
Since we use a Python script to detect faces, you will also need
to compile the Dlib Python API.
Simply run php index.php
, your images with face detection will be saved in /dataset-output/dlib-cnn
.
The PHP script uses by default the python
command line program.
If you want to use another command line program (e.g. python3
),
simply run composer install
and copy the .env.example
file to .env
and customize the command line program.