Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.62 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.62 KB

Faster-OilPainting: 快速照片油畫化

NTU Interactive Computer Graphic, 2018 Fall Final term project

Usage:

Requirements

  • python3
  • numpy
  • scipy
  • imageio
  • python-opencv

Execution

main.py [-h] [--brush_width BRUSH_WIDTH] --path PATH
        [--palette PALETTE] [--gradient GRADIENT]
optional arguments:
  -h, --help            show this help message and exit
  --brush_width BRUSH_WIDTH
                        Scale of the brush strokes
  --path PATH           Target image path, gif of still image
  --palette PALETTE     Palette colours. 0 = Actual color
  --gradient GRADIENT   Edge detection type. (sobel, scharr, prewitt, roberts)
  
ex. python main.py --brush_width 5 --path [target_image]

Results

More examples please refer to Faster-OilPainting/testdata

.jpg

Before After

Before After

.gif

Before After

Before After