14 releases (breaking)

new 0.14.1 Nov 16, 2024
0.13.1 Aug 30, 2024
0.12.0 Jul 30, 2024
0.6.0 Mar 31, 2024
0.1.0 Dec 31, 2023

#297 in Images

Download history 376/week @ 2024-07-29 212/week @ 2024-08-05 239/week @ 2024-08-12 344/week @ 2024-08-19 427/week @ 2024-08-26 275/week @ 2024-09-02 320/week @ 2024-09-09 307/week @ 2024-09-16 267/week @ 2024-09-23 302/week @ 2024-09-30 144/week @ 2024-10-07 377/week @ 2024-10-14 345/week @ 2024-10-21 444/week @ 2024-10-28 384/week @ 2024-11-04 448/week @ 2024-11-11

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

MIT/Apache

470KB
10K SLoC

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.


lib.rs:

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]

Dependencies