https://github.com/tianzerl/anime4kpython
An implementation of Anime4K in Python.
https://github.com/tianzerl/anime4kpython
anime anime4k computer-graphics python upsampling upscale upscaling
Last synced: 3 days ago
JSON representation
An implementation of Anime4K in Python.
- Host: GitHub
- URL: https://github.com/tianzerl/anime4kpython
- Owner: TianZerL
- License: mit
- Created: 2020-03-22T12:47:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T14:31:02.000Z (over 5 years ago)
- Last Synced: 2025-04-14T06:11:24.564Z (6 months ago)
- Topics: anime, anime4k, computer-graphics, python, upsampling, upscale, upscaling
- Language: Python
- Size: 6.84 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Anime4KPython
This is an implementation of Anime4K in Python. It based on the [bloc97's Anime4K](https://github.com/bloc97/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](https://github.com/TianZerL/Anime4KGo), 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](https://github.com/TianZerL/pyanime4k).***# pyanime4k
[pyanime4k](https://github.com/TianZerL/pyanime4k) is a simply package to use anime4k in python, easy, fast and powerful, which support both image and video processing, based on [Anime4KCPP](https://github.com/TianZerL/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
- Go
- [TianZerL/Anime4KGo](https://github.com/TianZerL/Anime4KGo)
- C++
- [TianZerL/Anime4KCPP](https://github.com/TianZerL/Anime4KCPP)
- C#
- [shadow578/Anime4kSharp](https://github.com/shadow578/Anime4kSharp)
- [net2cn/Anime4KSharp](https://github.com/net2cn/Anime4KSharp)
- Java
- [bloc97/Anime4K](https://github.com/bloc97/Anime4K)
- Rust
- [andraantariksa/Anime4K-rs](https://github.com/andraantariksa/Anime4K-rs)