Skip to content

Commit 04704c8

Browse files
authored
[Android] Support PP-OCRv2 & PP-OCRv3 in Android (#445)
* [Android] Add Android build docs and demo (#26) * [Backend] Add override flag to lite backend * [Docs] Add Android C++ SDK build docs * [Doc] fix android_build_docs typos * Update CMakeLists.txt * Update android.md * [Doc] Add PicoDet Android demo docs * [Doc] Update PicoDet Andorid demo docs * [Doc] Update PaddleClasModel Android demo docs * [Doc] Update fastdeploy android jni docs * [Doc] Update fastdeploy android jni usage docs * [Android] init fastdeploy android jar package * [Backend] support int8 option for lite backend * [Model] add Backend::Lite to paddle model * [Backend] use CopyFromCpu for lite backend. * [Android] package jni srcs and java api into aar * Update infer.cc * Update infer.cc * [Android] Update package build.gradle * [Android] Update android app examples * [Android] update android detection app * [Android] Support PP-OCRv2 & PP-OCRv3 in Android * [Android] bind ORCResult with JNI * [Android] move static class jni method to instance method * [Android] bind VisOcr and VisClassification via JNI * [Android] Add PP-OCRv2 & v3 android demo
1 parent 3c20812 commit 04704c8

32 files changed

Lines changed: 8706 additions & 78 deletions

java/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.baidu.paddle.fastdeploy.app.examples.detection">
3+
package="com.baidu.paddle.fastdeploy.app.examples">
44

55
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
66
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
@@ -11,18 +11,18 @@
1111
<application
1212
android:allowBackup="true"
1313
android:icon="@mipmap/ic_launcher"
14-
android:label="@string/app_name"
14+
android:label="@string/ocr_app_name"
1515
android:roundIcon="@mipmap/ic_launcher_round"
1616
android:supportsRtl="true"
1717
android:theme="@style/AppTheme">
18-
<activity android:name="com.baidu.paddle.fastdeploy.app.examples.detection.MainActivity">
18+
<activity android:name="com.baidu.paddle.fastdeploy.app.examples.ocr.MainActivity">
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN"/>
2121
<category android:name="android.intent.category.LAUNCHER"/>
2222
</intent-filter>
2323
</activity>
2424
<activity
25-
android:name="com.baidu.paddle.fastdeploy.app.examples.detection.SettingsActivity"
25+
android:name="com.baidu.paddle.fastdeploy.app.examples.ocr.SettingsActivity"
2626
android:label="Settings">
2727
</activity>
2828
</application>
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
0
2+
1
3+
2
4+
3
5+
4
6+
5
7+
6
8+
7
9+
8
10+
9
11+
:
12+
;
13+
<
14+
=
15+
>
16+
?
17+
@
18+
A
19+
B
20+
C
21+
D
22+
E
23+
F
24+
G
25+
H
26+
I
27+
J
28+
K
29+
L
30+
M
31+
N
32+
O
33+
P
34+
Q
35+
R
36+
S
37+
T
38+
U
39+
V
40+
W
41+
X
42+
Y
43+
Z
44+
[
45+
\
46+
]
47+
^
48+
_
49+
`
50+
a
51+
b
52+
c
53+
d
54+
e
55+
f
56+
g
57+
h
58+
i
59+
j
60+
k
61+
l
62+
m
63+
n
64+
o
65+
p
66+
q
67+
r
68+
s
69+
t
70+
u
71+
v
72+
w
73+
x
74+
y
75+
z
76+
{
77+
|
78+
}
79+
~
80+
!
81+
"
82+
#
83+
$
84+
%
85+
&
86+
'
87+
(
88+
)
89+
*
90+
+
91+
,
92+
-
93+
.
94+
/

0 commit comments

Comments
 (0)