Metadata-Version: 2.1
Name: pyanime4k
Version: 1.0.6
Summary: An easy way to use anime4k in python
Home-page: https://github.com/TianZerL/pyanime4k
Author: TianZer
License: MIT
Keywords: anime4k
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: C++
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: ffmpy3 (>=0.2.3)

# 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](https://github.com/TianZerL/pyanime4k) 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](https://github.com/TianZerL/pyanime4k) of pyanime4k

