1 2 3 4 5 6 7 8 9 10 11
use kalosm_ocr::*; fn main() { 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); }