Skip to content

Record your face everyday with face detection and alignment!

Notifications You must be signed in to change notification settings

MDR-EX1000/DailyFaceRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

Generate GIF file that records the daily variations on your face in a period of time.
Detection and alignment are appied to calibrate the pose and position of faces.

Requirements

opencv-python
dlib
imageio
urllib

Usage

  1. Download model
python download.py

or manually download with the following url and move to ./dat/

dlib-5pts_shape_predictor
dlib-68pts_shape_predictor

  1. Decompress the .bz2 files

  2. Daily running to record face image.

python run.py
  1. Crop faces and generate GIF file with the recorded faces
python process.py

Some important parameters in config.py

FACE_FACTOR = 0.55 #face size in the cropped image 
CROP_FACTOR_W = 0.75 #width of the cropped image
CROP_FACTOR_H = 1.0 #height of the cropped image
OFFSET_FACTOR_W = 0.5 #face center offset_x
OFFSET_FACTOR_H = 0.65 #face center offset_y

About

Record your face everyday with face detection and alignment!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages