一个集成了很多图像/视频特效处理的Python/ target=_blank class=infotextkey>Python库,目前支持的有:信号故障特效、图像卡通化、视频转字符画、铅笔素描画等。
开源:https://Github.com/CharlesPikachu/pydrawing
文档:https://pydrawing.readthedocs.io/
安装使用:
# 安装
pip install py
# 代码样例
import random
from pydrawing import pydrawing
filepath = 'asserts/dog.jpg'
config = {
"savedir": "outputs",
"savename": "output"
}
drawing_client = pydrawing.pydrawing()
drawing_client.execute(filepath, random.choice(drawing_client.getallsupports()), config=config)