Course Projects

Extracurricular projects for fun

Mini-projects

Sketcher

The input to this program is a single image, and the program then draws the image from scratch, attempting to mimic an artist.



Description

On a high level, the program is very simple: I use the Sobel filter to approximate gradient direction and magnitude at every pixel. Then I start at a place with high gradient magnitude, and follow the direction while drawing. This effectively creates a single stroke. I stop if the magnitude gets below a threshold and repeat from somewhere else. A few more hacks and heuristics here and there are added to make the process look good.

vision animation computer graphics

Code

To my surprise I've actually received a few offers from random people that wanted to buy this program, but I will make the code available for free here. Coming soon! (I need to find it first :s)

It's implemented in Python and uses numpy, PIL, and pygame