natethegreate / Screentone-Remover

Script with GUI that removes screentones, using DSP
77 stars 8 forks source link

Screentone-Remover

Script with GUI that removes screentones, or the "printed" effect in manga and doujins, using DSP. This process is necessary for use with DeepCreamPy, by deeppomf, and my other project hent-AI. Gaussian blur is applied to an image, then an averaging blur afterwards. This removes high frequency signals (screentones). The output of this is sharpened with a Laplacian kernel, to retain some edge.

Here is a visual example: srsfwexample NOTE: More blurring will remove heavier screentones, but will result in more loss of quality from the image. You may need to experiment with the 3 blurring levels depending on the artists screentone usage.

Getting Started

You should have whatever doujin or images you want in .png format, in some folder. You should also create an output folder. I require .png because DeepCreamPy requires png format. nhentai.net may download jpg files, but you can batch convert using this jpg2png

Prerequisites

Windows, tested on windows 10.

Python 3 if you want to run the source codes. Uses opencv (cv2) libs, numpy, and tkinter for the UI.

Note that the .exe file is quite large. The signal processing utilizes a large library of signal processing related functions, opencv.

Downloads

Installing

stremove.exe
py stremove.py

Deployment

You should use this in tandem with my other project, hent-AI, and DeepCreamPy, by deeppomf.

Contributing

Any contributions are welcome, I am still a student with limited resources and time and appreciate any help I can get.

Versioning

Todo

Authors

License

This project is licensed under MIT