kalosm 0.4.0

A simple interface for pretrained AI models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use kalosm::vision::*;

#[tokio::main]
async fn main() {
    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);
}