This code applies facial makeup on images of celebrities. It fetches images stored in google drive using Google API and does processing on it to give the final output. Following are the steps to replicate it.
- Make a conda virtual environment first and connect it to the attached jupyter notebook. Follow this link for more help
- The submitted program uses dlib library. ‘cmake’ is a prerequisite to install dlib
- Install cmake first:
conda install -c anaconda cmake
- Install dlib using:
conda install -c menpo dlib
- Then install all the other requirements given in the requirements file attached
pip -r install --upgrade requirements
- When the jupyter notebook is opened, connect it to the new environment that was just made
NOTE: For security reasons I have removed my credentials.json file. You will have to refer the guide on Google.
- Follow this link for getting started
- When you click the button, ‘Enable the Drive API’, a new flash window would appear, download the client configuration through that window
- The credentials.json file downloaded must be in same folder as that of the jupyter notebook
- The rest should follow
- Using dlib for Face Recognition
- Refer this blog for more information on how to do face recognition
- Download the necessary files mentioned in the link above in order to detect landmarks points on face