C0d1ng4fun

Sketch Vectorizer

2018-2020

High-level sketch of the steps in sketch vectorizer, vectorized.
High-level sketch of the steps in sketch vectorizer, vectorized.
Picture of hand made sketch as it was passed to sketch vectorizer.
Picture of hand made sketch as it was passed to sketch vectorizer.
Picture of sketch with refined contrast as an option to vectorization.
Picture of sketch with refined contrast as an option to vectorization.
Synthetic image of increasingly wobbly lines for evaluation with simulated coloring, clutter, perspective and noise.
Synthetic image of increasingly wobbly lines for evaluation with simulated coloring, clutter, perspective and noise.
Synthetic image refined.
Synthetic image refined.
Vectorized wobbly lines with small wobbles straightened.
Vectorized wobbly lines with small wobbles straightened.

A handmade sketch is a rapid way to describe something. By vectorizing the sketch it can be refined, stored and presented more easily.

The simplest way to digitize a physical sketch is to capture it with a camera into a digital image that can be processed. The capture process itself will often introduce perspective distortion, noise and have varying illumination all which can be approximated and accounted for.

Lines can be extracted from the image and be connected into polylines and eventually make up shapes that can be recognized and refined further. The result can be saved in vectorized form as SVG or as polygons to be used in Polygon Editor.

As a preliminary step the sketch background can be identified and the vectorized content is then constrained to the background region. Perspective can be removed from the extracted sketch as if the image was captured straight ahead such that angles in the sketch are preserved.

LineExtractor.exe (733.5 kB, Windows 32-bit x86)-Sketch vectorizer tool for Windows.