Skip to main content

ocr_page_default

Function ocr_page_default 

Source
pub fn ocr_page_default(
    image_data: &[u8],
    width: u32,
    height: u32,
) -> Result<OcrResult, OcrError>
Expand description

Run OCR on a rendered page image using the default ocrs backend.

Initialises OcrsBackend from the standard model paths on every call. For repeated use, create an OcrsBackend once and call ocr_page with a reference to it.