Skip to content
/ SantaHat Public

Automatically add santa hat to an image or video

Notifications You must be signed in to change notification settings

hwade/SantaHat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto Add Santa Hat Machine

Introduction

 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.

Ready

  • A picture or an video with human faces.

pic|center

  • A transparent picture with santa hat.

santa-hat|center

Usage

  • 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

Result

  • Paste Santa Hat to an Image.

output_png|center

  • Paste Santa Hat to an Video.

video|center

About

Automatically add santa hat to an image or video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages