#ocr #ai #transformer

kalosm-ocr

A simple interface for pretrained OCR models

5 unstable releases

0.3.2 Aug 14, 2024
0.3.0 Aug 13, 2024
0.2.1 Feb 28, 2024
0.2.0 Feb 18, 2024
0.1.0 Dec 16, 2023

#937 in Machine learning

Download history 10/week @ 2024-07-13 2/week @ 2024-07-20 12/week @ 2024-07-27 7/week @ 2024-08-03 237/week @ 2024-08-10 31/week @ 2024-08-17 11/week @ 2024-08-24 14/week @ 2024-08-31 7/week @ 2024-09-07 133/week @ 2024-09-14 94/week @ 2024-09-21 93/week @ 2024-09-28 54/week @ 2024-10-05 67/week @ 2024-10-12 36/week @ 2024-10-19 39/week @ 2024-10-26

209 downloads per month
Used in 2 crates (via kalosm-vision)

MIT/Apache

95KB
852 lines

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);

Dependencies

~34–58MB
~1M SLoC