shape
is a Python package for 2D shapes handling.
- objects:
- abstract shape
- point
- polygon
- bounding box
- rotated bounding box
- ellipse
- relations: intersection, closeness
- manipulation: move and rotate
- visualization using matplotlib
pip install shape
See tests for now.
https://github.com/varunagrawal/bbox
- bounding box only
- lightweight
https://github.com/shapely/shapely
- complex
- based on C++ GEOS library