Skip to content

ftc300/ChrisHatByeWeChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

面部识别小应用

merry christmas

Requirements

Pillow, MoviePy, and NumPy etc ,如果安装了cv2调试更佳

How to Use

1、先下载 shape_predictor_68,放在根目录。

2、在终端输入如下命令:

$ python generate_christmas_gif.py -img sourcepath(eg:image/merry.jpg) 

3、最终生成的gif图为 image/deal.gif

确保图片中有人脸,否则程序会立即退出。

FAQ:

1、遇到FFMPEG not downloaded的问题,可以查看moviepy issue#493

Run in a python console/shell (e.g. IPython/IDLE shell):

>> import imageio
>> imageio.plugins.ffmpeg.download()

Thanks:

@明星 (图片提供者)

@burningion

About

圣诞节快乐,不麻烦你了@微信官方

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages