项目作者: juanlao7

项目描述 :
Small python script for converting any image into an impressionist oil painting.
高级语言: Python
项目地址: git://github.com/juanlao7/oilify.git
创建时间: 2020-09-07T14:35:37Z
项目社区:https://github.com/juanlao7/oilify

开源协议:MIT License

下载


oilify

Small python script for converting any image into an impressionist oil painting.

There are many algorithms with the same purpose and with better aesthetic results, but the key of this one is that it is fast on CPU’s. The biggest drawback is that it does not respect the edges of the shapes, while others do.

Usage

$ python oilify.py <input image path> <output image path> [options]

Options:

  • -s <integer> — Brush size. (default: 5.0)
  • -e <float> — Expression level. (default 2.0)
  • -r <int> — Random seed. (default: 0)

Examples

$ python oilify.py examples/flower.jpg examples/flower_oil.png -s 10

Before

After

$ python oilify.py examples/tree.jpg examples/tree_oil.png

Before

After

$ python oilify.py examples/mountain.jpg examples/mountain_oil.png

Before

After

$ python oilify.py examples/figs.jpg examples/figs_oil.png -e 3

Before

After

$ python oilify.py examples/wave.jpg examples/wave_oil.png

Before

After

$ python oilify.py examples/central_park.jpg examples/central_park_oil.png

Before

After

$ python oilify.py examples/cloister.jpg examples/cloister_oil.png

Before

After

$ python oilify.py examples/goleta.jpg examples/goleta_oil.png

Before

After