Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (31 loc) · 789 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 789 Bytes

Put Sunglasses on your Face

This is a python application that combine your face and a sunglasses image with OpenCV and Dlib library.

Environment

  • Python >= 3.6
    • numpy==1.17.1
    • dlib==19.17.0
    • opencv-python==4.1.0.25
  • Download the dlib landmark detector model file and unzip
    • python assets/models/download_dlib_shape_predictor_68.py

How to use

Load images

python main.py
# save landmarks
python main.py -l

Using a webcam

python main.py -w

Applying quaternion

python main.py -q
python main.py -q -w