An easy way to use anime4k in python
Project description
pyanime4k
pyanime4k is a simply package to use anime4k in python, easy, fast and powerful.
Requirement
For Linux, install opencv lib before using. Precompiled binaries are only available for python3.8, and for other versions, you'll need to compile the dynamic link library yourself, see GitHub page for details.
Usage
import pyanime4k
# Quickly show a image which be processed by anime4k
pyanime4k.showImg2X("p1.png")
# Convert images by anime4k
pyanime4k.cvtImg2X("p1.png")
pyanime4k.cvtImg2X(("p2.png","p3.png"),dstPath="./ouput")
# Convert videos by anime4k
pyanime4k.cvtVideo2X("p1.mp4")
# Manually
p = pyanime4k.Anime4K()
# Image processing
p.loadImage("p1.png")
# Show the infomation of processing
p.showInfo()
# start processing
p.process()
# Preview result
p.showImage()
# Save image
p.saveImage("p1_out.png")
#Video
p.loadVideo("p1.mp4")
# Video need specify the output file name in advance
p.setVideoSaveInfo("p1_out.mp4")
p.showInfo()
p.process()
p.saveVideo()
See the GitHub page of pyanime4k
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
pyanime4k-1.0.4.tar.gz
(16.9 MB
view hashes)
Built Distributions
Close
Hashes for pyanime4k-1.0.4-py38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d99d7747031d382f62856ea47b736d00b3414976be94fd3c33b52861dccef890 |
|
MD5 | 1c33cf6372b27f54dfb307c01c38e2fa |
|
BLAKE2b-256 | 917dec434e1623962cf2754cdd29e5810774f4088aaa0fc0b48139740c404d92 |
Close
Hashes for pyanime4k-1.0.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922c2f0a5df8ee82d015f5d7b283263c738934bb99d1aa8059cf25ade816c77b |
|
MD5 | 93065f195f5d745b738b0035e129af76 |
|
BLAKE2b-256 | a61956647fd890b9b753517dca734abf34545349aa32683b17619488af1aba6f |