QuadrilateralFitter is an efficient and easy-to-use Python library for fitting irregular quadrilaterals from irregular polygons or any noisy data. Current version is 1.12, released on PyPI. The library is actively maintained and provides a simple API to fit quadrilaterals to polygon data, often used in computer vision and geometry processing. Release cadence is irregular, with minor updates.
pip install quadrilateral-fitterVerified import paths — ran on the pinned version, not inferred.
Basic usage: fit a quadrilateral to a noisy polygon.
Ensure polygon is closed? Not required but points should be in order. For unordered points, the fit may produce unexpected results.
Check documentation for any changes when upgrading.
Run 'pip install quadrilateral-fitter' and use 'from quadrilateral_fitter import QuadrilateralFitter'.
Provide the polygon as a list of coordinates: QuadrilateralFitter([(x1,y1), (x2,y2), ...])
No dependency data recorded yet.