This project is an implentation of the paper <> using python.
Now it could only produce grayscale result, the color result will be done in future.
The code reference to the an matlab implentation on github, see (https://github.com/candycat1992/PencilDrawing)
- numpy
- scipy
- opencv
python pencil_draw.py [image] [pencil texture img]
eg: python pencil_draw.py lena.jpg pencil0.jpg
the result image will be showed
[1]Lu C, Xu L, Jia J. Combining sketch and tone for pencil drawing production[C]//Proceedings of the Symposium on Non-Photorealistic Animation and Rendering. Eurographics Association, 2012: 65-73.