From 19d10b4ecb57448ef1a1b61e9fc495c4b1fd2fc8 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Fri, 9 Apr 2021 11:36:13 +0800 Subject: [PATCH] add blank char --- .../src/main/java/com/baidu/paddle/lite/demo/ocr/Predictor.java | 1 + 1 file changed, 1 insertion(+) 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 4419cf8c..1c294995 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 @@ -147,6 +147,7 @@ public class Predictor { protected boolean loadLabel(Context appCtx, String labelPath) { wordLabels.clear(); + wordLabels.add("black"); // Load word labels from file try { InputStream assetsInputStream = appCtx.getAssets().open(labelPath); -- GitLab