Python version : 3.6.7.
The following python files will be able to execute different filters . In snapchat , instagram , photobooth , etc there are many different filters which are based on facial recognition .
The code is open source and as such , the code will execute a filter on your eyes . I have used opencv , dlib and numpy to create this filter . The video will be recorded and will be saved as Filter-Eyes.avi file .
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Pull all the files from this repository by cloning the project .
git clone 'https://github.com/AemieJ/filter-python.git'
- Clone the dlib models as shown in the filter-python folder itself .
cd filter-python
git clone 'https://github.com/davisking/dlib-models'
- The source code for the filter is written in the filter_eyes.py
The libraries you have to install include :
- Opencv-Python
- argparse
- imutils
- time
- dlib
- numpy
pip install -r requirements.txt
A step by step series to get the filter running on your local machine . After the requirements have been installed on your local machine , follow the step on your command line from the filter-python folder .
python filter_eyes.py -predictor dlib-models-master/shape_predictor_68_face_landmarks.dat
- Open-CV - Supports deep learning frameworks
- Dlib - Includes wide range of machine learning algorithm
- Numpy - Support for multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
- Aemie Jariwala - Initial work - AemieJ
- KP Kaiser
- davisking