MCPcopy Create free account
hub / github.com/FeiGeChuanShu/ncnn-android-yolox

github.com/FeiGeChuanShu/ncnn-android-yolox @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
62 symbols 97 edges 7 files 6 documented · 10% updated 4y ago★ 31917 open issues

Browse by type

Functions 53 Types & classes 9
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The yolox object detection

This is a sample ncnn android project, it depends on ncnn library and opencv

https://github.com/Tencent/ncnn

https://github.com/nihui/opencv-mobile

how to build and run

step1

https://github.com/Tencent/ncnn/releases

  • Download ncnn-YYYYMMDD-android-vulkan.zip or build ncnn for android yourself
  • Extract ncnn-YYYYMMDD-android-vulkan.zip into app/src/main/jni and change the ncnn_DIR path to yours in app/src/main/jni/CMakeLists.txt

step2

https://github.com/nihui/opencv-mobile

  • Download opencv-mobile-XYZ-android.zip
  • Extract opencv-mobile-XYZ-android.zip into app/src/main/jni and change the OpenCV_DIR path to yours in app/src/main/jni/CMakeLists.txt

step3

  • Open this project with Android Studio, build it and enjoy!

some notes

  • Android ndk camera is used for best efficiency
  • Crash may happen on very old devices for lacking HAL3 camera interface
  • All models are manually modified to accept dynamic input shape
  • Most small models run slower on GPU than on CPU, this is common
  • FPS may be lower in dark environment because of longer camera exposure time

screenshot

reference

https://github.com/nihui/ncnn-android-nanodet
https://github.com/Megvii-BaseDetection/YOLOX

Core symbols most depended-on inside this repo

Shape

Method 30
Function 23
Class 9

Languages

C++74%
Java26%

Modules by API surface

app/src/main/jni/ndkcamera.cpp19 symbols
app/src/main/jni/yolox.cpp13 symbols
app/src/main/java/com/tencent/ncnnyolox/MainActivity.java11 symbols
app/src/main/jni/yoloxncnn.cpp10 symbols
app/src/main/java/com/tencent/ncnnyolox/NcnnYolox.java5 symbols
app/src/main/jni/yolox.h2 symbols
app/src/main/jni/ndkcamera.h2 symbols

For agents

$ claude mcp add ncnn-android-yolox \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page