一個(gè)集成了很多圖像/視頻特效處理的Python/ target=_blank class=infotextkey>Python庫(kù),目前支持的有:信號(hào)故障特效、圖像卡通化、視頻轉(zhuǎn)字符畫、鉛筆素描畫等。
開(kāi)源: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)