10 releases (breaking)

0.8.0 May 25, 2024
0.7.0 May 16, 2024
0.6.0 Apr 29, 2024
0.5.0 Feb 28, 2024
0.1.0 Dec 31, 2023

#167 in Images

Download history 225/week @ 2024-02-22 100/week @ 2024-02-29 51/week @ 2024-03-07 52/week @ 2024-03-14 26/week @ 2024-03-21 70/week @ 2024-03-28 41/week @ 2024-04-04 60/week @ 2024-04-11 32/week @ 2024-04-18 272/week @ 2024-04-25 105/week @ 2024-05-02 55/week @ 2024-05-09 274/week @ 2024-05-16 272/week @ 2024-05-23 92/week @ 2024-05-30 65/week @ 2024-06-06

713 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
~104K SLoC