kalosm-ocr 0.1.0

A simple interface for pretrained OCR models
Documentation

Kalosm OCR

A rust wrapper for TR OCR

Usage

use kalosm_ocr::*;

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

println!("{}", text);