Giter Club home page Giter Club logo

eva_style's Introduction

EVA style image

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:

  1. Import image 1, and generate the color map with the same size;
  2. Generate grayscale image;
  3. Opposite, and apply Gaussian filter;
  4. Apply Color Dodge with the blur image and the grayscale;
  5. Apply mini value filtering;
  6. Apply Overlay, which is however, not work in my code. And I replace it with my own designed Dark Areas Color Algorithm.

Original image

Result

Arguments

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'

Available requirements

  • numpy=1.19.5
  • matplotlib=3.4.1
  • scipy=1.6.3

Acknowledge

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).

Result

eva_style's People

Contributors

rongfanli98 avatar

Stargazers

 avatar  avatar  avatar TsuandaoNewOne avatar WENG YAN avatar 万潇 avatar Sayo avatar  avatar Ce Li avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.