# ncnn-android-yolov8
The yolov8 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
![](screenshot.png)
## Reference:
https://github.com/nihui/ncnn-android-nanodet
https://github.com/Tencent/ncnn
https://github.com/ultralytics/assets/releases/tag/v0.0.0
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
YOLOv8_使用NCNN在安卓平台上部署YOLOv8实现实时目标检测_优质项目_项目实战.zip (40个子文件)
YOLOv8_使用NCNN在安卓平台上部署YOLOv8实现实时目标检测_优质项目_项目实战
ncnn-yolov8s-obb
yolov8-obb.cpp 15KB
models
v8s-obb.param 16KB
v8n-obb.param 16KB
v8n-obb.bin 5.89MB
v8s-obb.bin 21.8MB
doc
Segment.jpg 18KB
Detect-seg.jpg 24KB
Detect.jpg 24KB
c2f.jpg 10KB
yolov8s-seg.jpg 151KB
ncnn-yolov8s-seg
yolov8-seg.cpp 19KB
models
yolov8s-seg.bin 22.55MB
yolov8s-seg.param 18KB
yolov8s-obb.jpg 805KB
ncnn-android-yolov8
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 232B
app
src
main
jni
CMakeLists.txt 448B
ndkcamera.cpp 24KB
yolo.h 2KB
yolo.cpp 13KB
ndkcamera.h 2KB
yolov8ncnn.cpp 6KB
assets
yolov8n.bin 6.02MB
yolov8s.bin 21.3MB
yolov8n.param 16KB
yolov8s.param 16KB
java
com
tencent
yolov8ncnn
Yolov8Ncnn.java 1KB
MainActivity.java 5KB
res
values
strings.xml 326B
layout
main.xml 1KB
AndroidManifest.xml 801B
build.gradle 483B
gradlew.bat 2KB
build.gradle 335B
settings.gradle 15B
screenshot.png 469KB
local.properties 325B
gradlew 5KB
README.md 1KB
README.md 755B
共 40 条
- 1
资源评论
__AtYou__
- 粉丝: 3506
- 资源: 2175
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 适用于 Java 的 Chef 食谱.zip
- Simulink仿真快速入门与实践基础教程
- js-leetcode题解之179-largest-number.js
- js-leetcode题解之174-dungeon-game.js
- Matlab工具箱使用与实践基础教程
- js-leetcode题解之173-binary-search-tree-iterator.js
- js-leetcode题解之172-factorial-trailing-zeroes.js
- js-leetcode题解之171-excel-sheet-column-number.js
- 安卓开发从入门到精通基础教程
- js-leetcode题解之170-two-sum-iii-data-structure-design.js
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功