Skip to main content

ocr_file

Function ocr_file 

Source
pub fn ocr_file(
    image_path: impl AsRef<Path>,
    det_model_path: impl AsRef<Path>,
    rec_model_path: impl AsRef<Path>,
    charset_path: impl AsRef<Path>,
) -> OcrResult<Vec<OcrResult_>>
Expand description

Convenience function: recognize from file

§Example

let results = ocr_rs::ocr_file(
    "test.jpg",
    "det_model.mnn",
    "rec_model.mnn",
    "ppocr_keys.txt",
)?;