Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 495 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 495 Bytes

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