18 releases (breaking)

new 0.17.0 Apr 9, 2025
0.16.0 Feb 8, 2025
0.15.1 Jan 6, 2025
0.15.0 Dec 28, 2024
0.1.0 Dec 31, 2023

#435 in Images

Download history 250/week @ 2024-12-21 433/week @ 2024-12-28 581/week @ 2025-01-04 432/week @ 2025-01-11 420/week @ 2025-01-18 360/week @ 2025-01-25 439/week @ 2025-02-01 653/week @ 2025-02-08 323/week @ 2025-02-15 464/week @ 2025-02-22 361/week @ 2025-03-01 319/week @ 2025-03-08 371/week @ 2025-03-15 432/week @ 2025-03-22 274/week @ 2025-03-29 573/week @ 2025-04-05

1,713 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

480KB
11K SLoC

Provides 2D geometry and image processing functions.

This includes:

  • 2D vectors and related math
  • 2D shapes and associated algorithms: [Point], [Line], [Rect], [RotatedRect], [Polygon]
  • Rudimentary drawing functions
  • Algorithms for finding the contours of connected components in an image ([find_contours])
  • Algorithms for simplifying polygons and finding various kinds of shape that contain a polygon: [simplify_polygon], [min_area_rect], [convex_hull]

rten-imageproc

Library for pre and post-processing image data stored in matrices. It includes functionality for:

  • Finding contours of objects in segmentation masks
  • Working with axis-aligned and oriented bounding boxes / rectangles
  • Simplifying polygons
  • Simple drawing of shapes

The genesis of this library was a need in the ocrs OCR engine for a Rust implementation of a subset of the geometry and image processing functionality provided by libraries like OpenCV and Shapely in Python.

Dependencies