It is a face recognition program which can add Santa Hat to a image or video, that can be recognized as human faces. The program find the locations of all faces in the image (or every frame in video) first, and use the resized transparent santa-hat.png to paste over the image.
- A picture or an video with human faces.
- A transparent picture with santa hat.
- Paste Santa Hat to an Image.
$ python main.py main --add_path=img/santa_hat.png --is_video=False --file_path=img/face.png --save_path=img/output.png
- Paste Santa Hat to an Video.
$ python main.py main --add_path=img/santa_hat.png --is_video=True --video_path=video/video.mp4 --save_path=video/output.avi
- Paste Santa Hat to an Image.
- Paste Santa Hat to an Video.