python 去水印
# 环境配置
笔者环境:win10 专业版, python3.8.0
- 官方文档:https://zulko.github.io/moviepy/install.html【可能需要魔法】
pip install ez_setup
pip install moviepy
# 添加图片水印
1 |
|
# 报错
RuntimeError: The current Numpy installation ('C:\\Users\\zrail\\.conda\\envs\\py380\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
- 使用搜索引擎找到解决方案,切换 numpy 版本,链接:https://github.com/numpy/numpy/issues/17726
# 添加文字水印
1 | # -*- coding: utf-8 -*- |
# 报错
- `OSError: MoviePy Error: creation of None failed because of the following error:
[WinError 2] 系统找不到指定的文件。.
.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect`
- 翻译报错信息并使用搜索引擎找到解决方案,链接:https://stackoverflow.com/questions/51928807/moviepy-cant-detect-imagemagick-binary-on-windows
- 安装 ImageMagick,并修改源码链接:https://blog.csdn.net/qq_23944915/article/details/86514301
具体没有仔细研究,水印的各种细节有待处理,这里只是抛砖引玉。剩下的靠大家了