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

A demo application that combines a human face and sunglasses images in real-time. This demo allows for yaw angle rotation.

License

Notifications You must be signed in to change notification settings

GzuPark/put_sunglasses_on_your_face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A demo application that combines a human face and sunglasses images in real-time. This demo allows for yaw angle rotation.

Topics

Resources

License

Stars

Watchers

Forks

Languages