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.
opencv-python
dlib
imageio
urllib
- Download model
python download.py
or manually download with the following url and move to ./dat/
dlib-5pts_shape_predictor
dlib-68pts_shape_predictor
-
Decompress the .bz2 files
-
Daily running to record face image.
python run.py
- 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