The matrix below shows typical results for a combination of circles, triangles, rotated rectangles, rotated ellipses and all supported shapes at 50, 200 and 500 total shapes:
50 Shapes
200 Shapes
500 Shapes
Circles
Triangles
Rotated Rectangles
Rotated Ellipses
All Shapes
Geometrizebot
You could try swift-geometrize in action in Telegram bot Geometrizebot which is also written in Swift and open-sourced.
TODO:
add stroke width for line, polyline and bezier curve;
swift-geometrize
Swift package for recreating images as geometric primitives. It is Swift port of C++ library.
Usage
Look
geometrize-cli
target how package could be used to geometrize images.Shape Comparison
The matrix below shows typical results for a combination of circles, triangles, rotated rectangles, rotated ellipses and all supported shapes at 50, 200 and 500 total shapes:
Geometrizebot
You could try swift-geometrize in action in Telegram bot Geometrizebot which is also written in Swift and open-sourced.
TODO:
License
Licensed under MIT license.