You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
2 years ago | |
---|---|---|
.vscode | 2 years ago | |
dnn | 2 years ago | |
face_recognition | 2 years ago | |
visualhaar@ac1aea1d68 | 2 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 2 years ago | |
README.md | 2 years ago | |
dnn_test.py | 2 years ago | |
haarcascade_frontalface_alt2.xml | 2 years ago | |
hog_test.py | 2 years ago | |
live_dnn.py | 2 years ago | |
live_hog.py | 2 years ago | |
mirror.py | 2 years ago | |
recognition_test.py | 2 years ago | |
requirements.txt | 2 years ago | |
test_rec.py | 2 years ago | |
test_rust.py | 2 years ago | |
video_multiprocess.py | 2 years ago | |
video_threading.py | 2 years ago |
README.md
A mirror
which shows which faces are detected through three different facial detection algorithms:
- OpenCV's deep neural net 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
cargo build --lib --release