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_>>
Convenience function: recognize from file
let results = ocr_rs::ocr_file( "test.jpg", "det_model.mnn", "rec_model.mnn", "ppocr_keys.txt", )?;