Crate kalosm_ocr

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

println!("{}", text);

Structs§

Ocr
The trocs optical character recognition model.
OcrBuilder
A builder for Ocr.
OcrInferenceSettings
Settings for running inference on Ocr.
OcrSource
The source of the model.

Enums§

LoadOcrError
An error that can occur when loading an Ocr model.
OcrInferenceError
An error that can occur when running an Ocr model.