Pydrawing: Beautify your image or video.
Project description
Documents: https://pydrawing.readthedocs.io/
Pydrawing
Beautify your image or video.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.
Support List
Beautifier | Introduction | Related Paper | Code | in Chinese |
---|---|---|---|---|
glitch | click | N/A | click | 信号故障特效 |
douyineffect | click | N/A | click | 抖音特效 |
characterize | click | N/A | click | 视频转字符画 |
cartoonise | click | N/A | click | 图像卡通化 |
photomosaic | click | N/A | click | 拼马赛克图片 |
beziercurve | click | N/A | click | 贝塞尔曲线画画 |
geneticfittingcircle | click | N/A | click | 遗传算法拟合图像-圆形 |
geneticfittingpolygon | click | N/A | click | 遗传算法拟合图像-多边形 |
pencildrawing | click | click | click | 铅笔素描画 |
cartoongan | click | click | click | 卡通GAN |
fastneuralstyletransfer | click | click | click | 快速风格迁移 |
cartoonizeface | click | click | click | 人脸卡通化 |
Install
Preparation
- ffmpeg: You should set ffmpeg in environment variable.
- Pytorch: To apply some of the supported beautifiers (e.g., cartoongan), you need to install pytorch and corresponding dependencies following tutorial.
Pip install
run "pip install pydrawing"
Source code install
(1) Offline
Step1: git clone https://github.com/CharlesPikachu/pydrawing.git
Step2: cd pydrawing -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/pydrawing.git@master"
Quick Start
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)
Screenshot
Projects in Charles_pikachu
- Games: Create interesting games by pure python.
- DecryptLogin: APIs for loginning some websites by using requests.
- Musicdl: A lightweight music downloader written by pure python.
- Videodl: A lightweight video downloader written by pure python.
- Pytools: Some useful tools written by pure python.
- PikachuWeChat: Play WeChat with itchat-uos.
- Pydrawing: Beautify your image or video.
More
WeChat Official Accounts
Charles_pikachu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydrawing-0.1.5.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for pydrawing-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a5d38dcf433bcf6a94fb667700a935956436ad82a4e0e632292fb2dd0c833d1 |
|
MD5 | 7d63de6a3c8b766e0a653a01dbd08681 |
|
BLAKE2b-256 | a909c70bc033f9f9b78015c0f73f16d11e7a9c0f3727d6b81396a49e7b3a018a |