Using python face_recognition package and openCV for face detection of Jurassic Park characters. The project is influenced by this wonderful tutorial on Face Recognition with openCV and Deep learning by Adrian Rosebrock.
Also, this is just a learning project and the code is not being used by me for any monetary or tutorial purposes.
run
python encode_face.py --dataset dataset --encodings encodings.pickle
in the terminal with the right directory and environment activated.
run
python recognize_faces_image.py --encodings encodings.pickle --image examples/example_1.jpg
The following libraries and packages should be installed in the virtual environment:
- face_recognition(Adam Geitgey)
- dlib (maintained by Davis King)
- openCV-python
- imutils
- agrparse
Packages can be installed by using package manager pip.
pip install <package_name>
- Before installing the dlib, make sure you have CMake installed on your system.
All images for dataset and examples are collected by me using a chrome extension, which can be downloaded from here.
A major part of project is taken from a blog by Adrian Rosebrock on PyimageSearch.
The referenced tutorial on Face Recognition with openCV and Deep Learning can be found here.