Pure Python implementation of the Ramer-Douglas-Peucker algorithm for polyline simplification. Version 0.8 (last release) is stable but low maintenance. The library provides a simple function to reduce the number of points in a curve while preserving its shape.
pip install rdpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Simplify a 2D polyline using the Ramer-Douglas-Peucker algorithm.
Evaluate other libraries for ongoing support and features.
Always convert input to a 2D numpy array: points = np.array(points).reshape(-1, 2)
Always provide epsilon: rdp(points, epsilon=0.5)
Call rdp(points, epsilon=0.5) with an appropriate epsilon value.
Reshape input: points = np.array(points).reshape(-1, 2)
Use correct import: from rdp import rdp
No dependency data recorded yet.