kalosm-ocr 0.4.0

A simple interface for pretrained OCR models
Documentation

Kalosm OCR

A rust wrapper for TR OCR

Usage

# #[tokio::main]
# async fn main() {
use kalosm_ocr::*;

let mut model = Ocr::builder().build().await.unwrap();
let image = image::open("examples/ocr.png").unwrap();
let text = model
    .recognize_text(OcrInferenceSettings::new(image))
    .unwrap();

println!("{}", text);
# }