Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 957 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 957 Bytes

面部识别小应用

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