luyi 75ecb14c94 | 1 year ago | |
---|---|---|
.. | ||
app | 1 year ago | |
gradle/wrapper | 1 year ago | |
.gitignore | 1 year ago | |
Android_demo.jpg | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
build.gradle | 1 year ago | |
gradle.properties | 1 year ago | |
gradlew | 1 year ago | |
gradlew.bat | 1 year ago | |
settings.gradle | 1 year ago |
This repo is an Android object detection demo of NanoDet using
Tencent's NCNN framework.
Download ncnn-android-vulkan.zip from ncnn repo or build ncnn-android from source.
Unzip ncnn-android-vulkan.zip into demo_android_ncnn/app/src/main/cpp or change the ncnn_DIR path to yours in demo_android_ncnn/app/src/main/cpp/CMakeLists.txt
# e.g. change to `ncnn-20211208-android-vulkan` if download version 200211208
set(ncnn_DIR ${CMAKE_SOURCE_DIR}/ncnn-20211208-android-vulkan/${ANDROID_ABI}/lib/cmake/ncnn)
Copy the NanoDet ncnn model file and rename to nanodet.param and nanodet.bin from models folder into demo_android_ncnn/app/src/main/assets
If you want to run yolov4-tiny and yolov5s, download them and also put in demo_android_ncnn/app/src/main/assets.
Open demo_android_ncnn folder with Android Studio and then build it.
The FPS in the app includes pre-process, post-process and visualization, not equal to the model inference time.
If meet error like No version of NDK matched the requested version
, set android { ndkVersion
to your ndk version.
If you want to use custom model, remember to change the hyperparams in demo_android_ncnn/app/src/main/cpp/NanoDet.h
the same with your training config.
No Description
Python C++ Java Jupyter Notebook Gradle other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》