From 3c431f0b3e46894adadf27a57c797cf804b17339 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Fri, 9 Apr 2021 11:18:47 +0800 Subject: [PATCH] update model path --- .../main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java index 9cad590a..4419cf8c 100644 --- a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java +++ b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java @@ -119,9 +119,9 @@ public class Predictor { OCRPredictorNative.Config config = new OCRPredictorNative.Config(); config.cpuThreadNum = cpuThreadNum; - config.detModelFilename = realPath + File.separator + "ch_det_mv3_db_opt.nb"; - config.recModelFilename = realPath + File.separator + "ch_rec_mv3_crnn_opt.nb"; - config.clsModelFilename = realPath + File.separator + "ch_cls_mv3_opt.nb"; + config.detModelFilename = realPath + File.separator + "ch_ppocr_mobile_v2.0_det_opt.nb"; + config.recModelFilename = realPath + File.separator + "ch_ppocr_mobile_v2.0_rec_opt.nb"; + config.clsModelFilename = realPath + File.separator + "ch_ppocr_mobile_v2.0_cls_opt.nb"; Log.e("Predictor", "model path" + config.detModelFilename + " ; " + config.recModelFilename + ";" + config.clsModelFilename); config.cpuPower = cpuPowerMode; paddlePredictor = new OCRPredictorNative(config); -- GitLab