Skip to content

TianZerL/Anime4KPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anime4KPython

This is an implementation of Anime4K in Python. It based on the bloc97's Anime4K algorithm version 0.9 and some optimizations have been made. This project is for learning and the exploration task of algorithm course in SWJTU.
NOTICE: The Python version will be very slow. It is about 100 times slower than Go version, because it take too much time to traverse the image. So it just suitable for learning how the Anime4K works. If you want to use anime4k in python, see pyanime4k.

pyanime4k

pyanime4k is a simply package to use anime4k in python, easy, fast and powerful, which support both image and video processing, based on Anime4KCPP.

About Anime4K

Anime4K is a simple high-quality anime upscale algorithm for anime. it does not use any machine learning approaches, and can be very fast in real-time processing.

Usage

Please install opencv-python before using.

pip install opencv-python  

See the example.py, it is very easy to use.

There are four main arguments:

  • passes: Passes for processing.
  • strengthColor: Strength for pushing color,range 0 to 1,higher for thinner
  • strengthGradient: Strength for pushing gradient,range 0 to 1,higher for sharper
  • fastMode: Faster but maybe lower quality

Other implementations

Releases

No releases published

Packages

No packages published

Languages