In this repository, I transform a regular image into a image with EVA style (In fact, it is One Last Kiss style).
我在这个代码中将常规的图片转换成了EVA风格的图片(实际上是One Last Kiss风格)。
All steps is described as following:
- Import image 1, and generate the color map with the same size;
- Generate grayscale image;
- Opposite, and apply Gaussian filter;
- Apply Color Dodge with the blur image and the grayscale;
- Apply mini value filtering;
- Apply Overlay, which is however, not work in my code. And I replace it with my own designed Dark Areas Color Algorithm.
The default arguments will take an image named "Asuka.jpg" under ./img (i.e., img is a folder, and it is in the same folder with Asuka.py), and it outputs an image named "result.jpg". The default quality of image is 300 dpi. If you set --sketch=true, it will output temporary files. As for threshold, you can tune it to try different style.
--input, type=str, default="./img/Asuka.jpg", help='Image path'
--out_path, type=str, default="./img", help='Out put path'
--out_name, type=str, default="result.jpg", help='Name of the out put file, including format, e.g., result.jpg.'
--dpi, type=int, default=300, help='DPI, e.g., 300'
--threshold, type=int, default=230, help='In [0, 255]'
--sketch, type=eval, default=False, help='Weather output the sketches, true or false'
- numpy=1.19.5
- matplotlib=3.4.1
- scipy=1.6.3
Thanks to 黑暗之环, 鹿枫a and Matrix_11.
I really like Asuka, so I made her the cover.
I would be very happy if he helped you. And I would work harder if you donated to support me (scan the QR code).