From bea355c8621e3de5a9d084d86aba1cb4b38d2567 Mon Sep 17 00:00:00 2001 From: Zhao Jun Date: Thu, 15 Oct 2020 18:29:41 +0800 Subject: [PATCH] fix method name bug since it named "release" in native.cpp --- .../java/com/baidu/paddle/lite/demo/ocr/OCRPredictorNative.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/OCRPredictorNative.java b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/OCRPredictorNative.java index 7499d4b9..c3f319b5 100644 --- a/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/OCRPredictorNative.java +++ b/deploy/android_demo/app/src/main/java/com/baidu/paddle/lite/demo/ocr/OCRPredictorNative.java @@ -63,7 +63,7 @@ public class OCRPredictorNative { protected native float[] forward(long pointer, float[] buf, float[] ddims, Bitmap originalImage); - protected native void destory(long pointer); + protected native void release(long pointer); private ArrayList postprocess(float[] raw) { ArrayList results = new ArrayList(); -- GitLab