#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

#951 in Machine learning

Download history 9/week @ 2024-08-02 223/week @ 2024-08-09 45/week @ 2024-08-16 10/week @ 2024-08-23 12/week @ 2024-08-30 9/week @ 2024-09-06 94/week @ 2024-09-13 120/week @ 2024-09-20 95/week @ 2024-09-27 65/week @ 2024-10-04 47/week @ 2024-10-11 54/week @ 2024-10-18 40/week @ 2024-10-25 40/week @ 2024-11-01 25/week @ 2024-11-08 29/week @ 2024-11-15

136 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–55MB
~1M SLoC