#tesseract #ocr #image #leptonica

tesseract-plumbing

Safe wrapper of tesseract-sys

17 releases (10 breaking)

0.11.1 Feb 28, 2025
0.11.0 May 29, 2023
0.10.0 May 1, 2023
0.9.0 Feb 26, 2023
0.1.0 May 26, 2020

#155 in Images

Download history 613/week @ 2025-06-06 862/week @ 2025-06-13 1369/week @ 2025-06-20 1035/week @ 2025-06-27 977/week @ 2025-07-04 1195/week @ 2025-07-11 1124/week @ 2025-07-18 1089/week @ 2025-07-25 854/week @ 2025-08-01 1222/week @ 2025-08-08 1002/week @ 2025-08-15 1082/week @ 2025-08-22 1253/week @ 2025-08-29 1161/week @ 2025-09-05 1463/week @ 2025-09-12 1312/week @ 2025-09-19

5,358 downloads per month
Used in 12 crates (4 directly)

MIT license

24KB
445 lines

tesseract-plumbing

Crate to expose a safe version of the tesseract-sys api.

This is designed to expose the C API of tesseract in a safe manner.

Adding value by deviating from the API is a non-goal. That is left to libraries that build on top of tesseract-plumbing.

Requirements/Features

Requires Tesseract version 5.2.0 or newer by default. Use --no-default-features if using an older version.

Motivation

I'm a maintainer of both leptess and tesseract-rs.

I noticed that there was a lot of duplication in how they interact with both leptonica-sys and tesseract-sys. Having multiple layers of abstraction in leptess and tesseract-rs made it hard to reason about their memory safety.

Having a safety layer that stays simple improves the correctness and maintainability of the above libraries.

Dependencies

~1.5–3.5MB
~76K SLoC