2020-10-01 16:22:15 +02:00
|
|
|
A `mirror` which shows which faces are detected through three different facial detection algorithms:
|
|
|
|
|
|
|
|
* OpenCV's deep neural net [face detector](https://github.com/opencv/opencv/tree/master/samples/dnn/face_detector).
|
|
|
|
* Dlib's default frontal face detector, which is HOG based
|
|
|
|
* A Viola-Jones Haarcascade detection. Any OpenCV compatible xml file should work. It defaults to the canonical `haarcascade_frontalface_alt2.xml`.
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
|
|
|
|
## on windows
|
|
|
|
|
|
|
|
The installation in Windows can be done, though it is quite elaborate:
|
|
|
|
|
|
|
|
* Install rustup-init
|
|
|
|
* Install VS C++
|
|
|
|
* Install python3
|
|
|
|
* Install Cmake (needed for python dlib)
|
|
|
|
+ make sure to add it to path
|
|
|
|
* Install git
|
|
|
|
+ including ssh deploy key
|
|
|
|
* `git clone https://git.rubenvandeven.com/r/face_detector`
|
|
|
|
* `cd face_recognition`
|
|
|
|
* `git submodules init`
|
|
|
|
* `git submodules update`
|
|
|
|
* `pip install virtualenv`
|
|
|
|
* `virtualenv.exe venv`
|
|
|
|
* `.\venv\Scripts\activate`
|
|
|
|
* `cd .\dnn\face_detector`
|
|
|
|
* `python.exe .\download_weights.py`
|
|
|
|
* `cd .\visualhaar`
|
2020-10-02 14:06:53 +02:00
|
|
|
* `cargo build --lib --release`
|