Open FuShengRuoXian opened 3 months ago
模型文件可以参考这个文件进行下载,这个模型使用是没有问题的:https://github.com/guojin-yan/PaddleOCR-OpenVINO-CSharp/blob/paddleocv4.0/model/ocr_model_download.sh
抱歉 我打错了 我想问的是OpenVINO_CSharp_API.dll是否支持net4.8,这个库跟您其他工程里包括v8的例程通用么?
支持的
该工程能否支持V3的推理,我自己下载的会报错:无法在 DLL“openvino_c”中找到名为“ov_get_last_err_msg”的入口点。 拜求V3测试通过的Model,mafu921@126.com,感谢!
这个主要是因为你使用的openvino runtime版本有问题,请下载最新版本的openvino runtime
如下:OpenVinoSharp.OVException HResult=0x80131500 Message=Exception from src\inference\src\infer_request.cpp:231: [ PARAMETER_MISMATCH ] Can not clone with new dims. Descriptor's shape: {0 - ?, 3, 32, 100} is incompatible with provided dimensions: {1, 3, 48, 192}.
Source=OpenVINO_CSharp_API StackTrace: 在 OpenVinoSharp.HandleException.general_error() 在 OpenVinoSharp.HandleException.handler(ExceptionStatus status) 在 OpenVinoSharp.InferRequest.infer() 在 PaddleOCR.Predictor.infer(Single[] input_data, Int64[] shape) 在 G:\Download\PaddleOCR-OpenVINO-CSharp-paddleocv4.0\src\paddleocr\paddleocr\predictor.cs 中: 第 75 行 在 PaddleOCR.OcrCls.predict(List
1 img_list, List
1 lables, List1 scores) 在 G:\Download\PaddleOCR-OpenVINO-CSharp-paddleocv4.0\src\paddleocr\paddleocr\ocr_cls.cs 中: 第 89 行 在 PaddleOCR.OCRPredictor.cls(List
1 img_list, List`1 ocr_results) 在 G:\Download\PaddleOCR-OpenVINO-CSharp-paddleocv4.0\src\paddleocr\paddleocr\paddle_ocr.cs 中: 第 82 行 在 PaddleOCR.OCRPredictor.ocr(Mat img, Boolean det, Boolean rec, Boolean cls) 在 G:\Download\PaddleOCR-OpenVINO-CSharp-paddleocv4.0\src\paddleocr\paddleocr\paddle_ocr.cs 中: 第 134 行 在 OcrConsole.Program.Main(String[] args) 在 G:\Download\PaddleOCR-OpenVINO-CSharp-paddleocv4.0\sample\OcrConsole\Program.cs 中: 第 67 行 请教按照Sample中OcrConsole执行时会报此错误,模型是下载的官方的ch_PP-OCRv4,这个还需要转ONNX的过程么,我看之前博客里介绍的是加载onnx: string det_path = @"...........\model\ppocr_model_v3\det_onnx\model.onnx"; string cls_path = @"...........\model\ppocr_model_v3\cls_onnx\model.onnx"; string rec_path = @"...........\model\ppocr_model_v3\rec_onnx\model.onnx";谢谢!