7 releases (4 breaking)

0.5.0 Feb 28, 2024
0.4.0 Jan 23, 2024
0.3.1 Jan 3, 2024
0.2.1 Jan 2, 2024
0.1.0 Dec 31, 2023

#249 in Images

Download history 179/week @ 2024-01-05 28/week @ 2024-01-12 37/week @ 2024-01-19 21/week @ 2024-01-26 27/week @ 2024-02-02 43/week @ 2024-02-09 145/week @ 2024-02-16 227/week @ 2024-02-23 82/week @ 2024-03-01 48/week @ 2024-03-08 51/week @ 2024-03-15 26/week @ 2024-03-22 74/week @ 2024-03-29 42/week @ 2024-04-05 55/week @ 2024-04-12 27/week @ 2024-04-19

202 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

~4MB
~83K SLoC