Skip to content

Aligns faces to the canonical face in both videos and images

License

Notifications You must be signed in to change notification settings

DinoMan/face-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

face-processor

The face processor provides the neccessary tools for aligning faces. It can be used to align faces in both images and videos (only one face per frame). It accepts landmark files or it can use a landmark extractor to get the landmarks (this is slower). It requires the installation of this face alignment library.

Installing the face processor

To install the face processor: pip install .

Aligning faces in images

python main.py -i pics_folder -m mean_face -p -o out_folder --offset 0.11 0.335 0.155

Aligning faces in videos

python main.py -i video_folder -m mean_face.npy -o out_folder -l landmarks_file -w smoothing_window -s scale --offset 0.11 0.336 0.155

About

Aligns faces to the canonical face in both videos and images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages