13 releases (breaking)

0.10.0 Feb 8, 2025
0.9.0 Oct 3, 2024
0.8.1 Sep 1, 2024
0.8.0 May 25, 2024
0.1.0 Dec 31, 2023

#185 in Images

Download history 377/week @ 2025-01-08 403/week @ 2025-01-15 366/week @ 2025-01-22 325/week @ 2025-01-29 474/week @ 2025-02-05 357/week @ 2025-02-12 257/week @ 2025-02-19 389/week @ 2025-02-26 235/week @ 2025-03-05 316/week @ 2025-03-12 404/week @ 2025-03-19 324/week @ 2025-03-26 330/week @ 2025-04-02 506/week @ 2025-04-09 221/week @ 2025-04-16 326/week @ 2025-04-23

1,431 downloads per month
Used in 5 crates

MIT/Apache

280KB
2K SLoC

ocrs

This crate contains the ocrs OCR engine as a library. See the main project README for general details about the project.

Performance note

Make sure you build the ocrs crate and its rten* dependencies in release mode. Debug builds of these crates will be extremely slow.

Usage

See examples/hello_ocr.rs for a minimal example of using this library in a Rust application.

cd examples/

# Download models in .rten format.
./download-models.sh

# Run OCR on an image and print the extracted text.
cargo run --release --example hello_ocr rust-book.jpg

Note that, performance of the binary will differ significantly if debug build profile is used. Learn more: https://github.com/robertknight/ocrs/issues/117#issuecomment-2362314977

Dependencies

~5MB
~113K SLoC