12 releases (breaking)

0.9.0 Oct 3, 2024
0.8.0 May 25, 2024
0.5.0 Feb 28, 2024
0.1.0 Dec 31, 2023

#162 in Machine learning

Download history 146/week @ 2024-07-18 148/week @ 2024-07-25 198/week @ 2024-08-01 137/week @ 2024-08-08 181/week @ 2024-08-15 182/week @ 2024-08-22 320/week @ 2024-08-29 235/week @ 2024-09-05 292/week @ 2024-09-12 265/week @ 2024-09-19 258/week @ 2024-09-26 325/week @ 2024-10-03 158/week @ 2024-10-10 363/week @ 2024-10-17 265/week @ 2024-10-24 276/week @ 2024-10-31

1,085 downloads per month
Used in 4 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
~111K SLoC