Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyanime4k-1.0.5-cp38-none-win_amd64.whl (17.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyanime4k-1.0.5-cp37-none-win_amd64.whl (17.0 MB view hashes)

Uploaded CPython 3.7 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page