It can be downloaded from https://developer.android.com/studio . This Demo is written by Android Studio version 4.0.
The NDK version 20b is used in the demo test, and the compilation can be successfully supported for version 20 and above.
If you are a beginner, you can install and test the NDK compilation environment in the following ways.
File -> New ->New Project to create "Native C++" project
Select Native C++ in the project template, select Paddle OCR/deploy/android_demo path After entering the project, it will be automatically compiled. The first compilation will take a long time. It is recommended to add an agent to speed up the download.
Agent add:
Android Studio -> Perferences -> Appearance & Behavior -> System Settings -> HTTP Proxy -> Manual proxy configuration
Click the compile button, connect the phone, and follow the instructions of Android Studio to complete the operation.
When you see the following picture in Android Studio, the compilation is complete:
Tip: At this time, if the following error message that OpenCV cannot be found appears, please re-click compile, exit the project after compiling, and enter again.
Complete the compilation, click Run, and check the effect on the mobile phone.
Place the custom picture under this path
Modify IMAGE_PATH_DEFAULT to a custom picture name
Go to EasyEdge to get more development support:
Demo APP: You can use your mobile phone to scan the code to install, which is convenient for the mobile terminal to quickly experience text recognition
SDK: The model is packaged to adapt to different chip hardware and operating system SDKs, including a complete interface to facilitate secondary development