9 releases (breaking)

new 0.7.0 May 16, 2024
0.6.0 Apr 29, 2024
0.5.0 Feb 28, 2024
0.4.0 Jan 23, 2024
0.1.0 Dec 31, 2023

#164 in Images

Download history 32/week @ 2024-01-24 21/week @ 2024-01-31 35/week @ 2024-02-07 126/week @ 2024-02-14 93/week @ 2024-02-21 242/week @ 2024-02-28 49/week @ 2024-03-06 52/week @ 2024-03-13 33/week @ 2024-03-20 55/week @ 2024-03-27 52/week @ 2024-04-03 56/week @ 2024-04-10 35/week @ 2024-04-17 250/week @ 2024-04-24 118/week @ 2024-05-01 46/week @ 2024-05-08

455 downloads per month
Used in 2 crates

MIT/Apache

275KB
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

Dependencies

~5MB
~105K SLoC