67 lines
1.3 KiB
Markdown
67 lines
1.3 KiB
Markdown
The following <TARGET_PLATFORM> represents RK3566_RK3568, RK3562 or RK3588
|
|
# Aarch64 Linux Demo
|
|
## Build
|
|
|
|
modify `GCC_COMPILER` on `build-linux_<TARGET_PLATFORM>.sh` for target platform,
|
|
|
|
then execute
|
|
|
|
```
|
|
./build-linux_<TARGET_PLATFORM>.sh
|
|
```
|
|
|
|
## Install
|
|
|
|
Copy install/rknn_common_test_Linux to the devices under /userdata/.
|
|
|
|
- If you use rockchip's evb board, you can use the following way:
|
|
|
|
Connect device and push the program and rknn model to `/userdata`
|
|
|
|
```
|
|
adb push install/rknn_common_test_Linux /userdata/
|
|
```
|
|
|
|
- If your board has sshd service, you can use scp or other methods to copy the program and rknn model to the board.
|
|
|
|
## Run
|
|
|
|
```
|
|
adb shell
|
|
cd /userdata/rknn_common_test_Linux/
|
|
```
|
|
|
|
```
|
|
export LD_LIBRARY_PATH=./lib
|
|
./rknn_common_test model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg
|
|
```
|
|
|
|
# Android Demo
|
|
## Build
|
|
|
|
modify `ANDROID_NDK_PATH` on `build-android_<TARGET_PLATFORM>.sh` for target platform, then execute
|
|
|
|
```
|
|
./build-android_<TARGET_PLATFORM>.sh
|
|
```
|
|
|
|
## Install
|
|
|
|
connect device and push build output into `/data`
|
|
|
|
```
|
|
adb push install/rknn_common_test_Android /data/
|
|
```
|
|
|
|
## Run
|
|
|
|
```
|
|
adb shell
|
|
cd /data/rknn_common_test_Android/
|
|
```
|
|
|
|
```
|
|
export LD_LIBRARY_PATH=./lib
|
|
./rknn_common_test model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg
|
|
```
|