Artificial-Eyeliner
Artificial-Eyeliner copied to clipboard
Script to apply artificial eyeliner
Artificial-Eyeliner
Script to apply artificial eyeliner using face landmark points detected by dlib.
Demo:
Before |
After |
![]() |
![]() |
![]() |
![]() |
CLI Usage
python eyeliner.py [-i image] [-v video] [-d dat] [-t thickness] [-c color] [-s save]
-
-i
: Location of image you want to apply eyeliner on -
-v
: Location of video you want to apply eyeliner on. -
-v
: Live eyeliner of webcam video ifwebcam
is given (Eg:python3 -v webcam -s "webcam"
) -
-t
: Whole interger number to set thickness of eyeliner. Default =2
. Recommended number value between 0-5 -
-d
: Path to yourshape_predictor_68_face_landmarks.dat
file. Default value is the root unless you have theshape_predictor_68_face_landmarks.dat
file stored at some other location you need not use this argument. -
-c
: Change color of the eyeliner. Use-c 255 255 255
. Defaule =0 0 0
. -
-s
: Location and file name you want to save the output to. NOTE The program automatically adds extension while saving the file. NOTE: If a file with same name already exists, it will overwrite that file.
Sample Usage:
python eyeliner.py -v "Media/Sample Video.mp4" -t 2 -c 203 22 234 -s "Media/Output Video"
Flow Chart:

Version Info:
- Python - 3.6
- Numpy - 1.17.4
- Dlib - 19.18.0
- cv2 - 4.1.2
- matplotlib - 3.1.2
- skimage - 0.16.2
- scipy - 1.3.3
- imutils - 0.5.3
- PIL - 6.2.1
Project Features:
Credits:
Face images ("Sample Image.jpg") generated by AI. https://generated.photos