#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

#978 in Machine learning

Download history 16/week @ 2024-08-26 9/week @ 2024-09-02 8/week @ 2024-09-09 153/week @ 2024-09-16 99/week @ 2024-09-23 86/week @ 2024-09-30 39/week @ 2024-10-07 73/week @ 2024-10-14 32/week @ 2024-10-21 48/week @ 2024-10-28 33/week @ 2024-11-04 28/week @ 2024-11-11 55/week @ 2024-11-18 40/week @ 2024-11-25 35/week @ 2024-12-02 104/week @ 2024-12-09

239 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

~35–56MB
~1M SLoC