Crate kalosm_ocr

source ·
Expand description

§Kalosm OCR

A rust wrapper for TR OCR

§Usage

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(),
    )
    .unwrap();

println!("{}", text);

Structs§