Skip to main content

run_ocr

Function run_ocr 

Source
pub fn run_ocr(
    image: &DynamicImage,
    opts: &OcrOptions,
    on_progress: Option<&(dyn Fn(u32, u32) + Send + Sync)>,
) -> Result<OcrOutput>
Expand description

Run OCR on an image. Selects between upscale+single-pass (small images) and tiled processing (large images).

on_progress is called after each tile completes with (completed, total).