1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 28ac64afb4
Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292)
2 years ago
..
model Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292) 2 years ago
src Rockchip Anroid12_SDK 20221117-rkr12 (8826f866) 2 years ago
CMakeLists.txt Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
build-android_RK3562.sh Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292) 2 years ago
build-android_RK3566_RK3568.sh Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292) 2 years ago
build-android_RK3588.sh Rockchip Anroid12_SDK 20221117-rkr12 (8826f866) 2 years ago
build-linux_RK3562.sh Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292) 2 years ago
build-linux_RK3566_RK3568.sh Rockchip Anroid12_SDK 20230614-rkr14.1 (3d7dd292) 2 years ago
build-linux_RK3588.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

The following <TARGET_PLATFORM> represents RK356X 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_mobilenet_demo_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_mobilenet_demo_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_mobilenet_demo_Linux/
export LD_LIBRARY_PATH=./lib
./rknn_mobilenet_demo 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_mobilenet_demo_Android /data/

Run

adb shell
cd /data/rknn_mobilenet_demo_Android/
export LD_LIBRARY_PATH=./lib
./rknn_mobilenet_demo model/<TARGET_PLATFORM>/mobilenet_v1.rknn model/dog_224x224.jpg