Skip to content

A program that detects shapes in an image and converts them into svg

Notifications You must be signed in to change notification settings

yoyomyo/ShapeDetector

Repository files navigation

ShapeDetector

A program that detects circles, ellipses, triangles and rectangles in an image, and then converts them into an svg.

Dependencies: cv2 (OpenCV Python package)

svgwrite

To run:

python img2svg.py dir_of_input_images

The code comes with some input images in the example_input directory: python img2svg.py example_input

To turn on intermediate results: python img2svg.py example_input 1

To turn off intermediate results: python img2svg.py example_input 0

About

A program that detects shapes in an image and converts them into svg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published