To run a minimal OCR example, you must first download the required models in .rten format using the provided script, then run the example using cargo run.
Important Performance Note: Always use the --release flag when running or building ocrs and its rten* dependencies. Debug builds are extremely slow and will result in significantly degraded performance.
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