eecn / ncnn-android-yolov8-pose

32 stars 5 forks source link

ncnn-android-yolov8-pose

The yolov8 pose estimation

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

export NCNN model

install ultralytics library
use yolo CLI

yolo export model=yolov8s-pose.pt format=ncnn  # export official model

or in a Python environment

from ultralytics import YOLO

# Load a model
model = YOLO('yolov8s-pose.pt')  # load an official model

# Export the model
model.export(format='ncnn')

Then rename the ncnn model and put it into "assets" directory.

how to build and run

step1

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

step2

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

step3

some notes

screenshot

Reference:

https://github.com/nihui/ncnn-android-nanodet
https://github.com/Tencent/ncnn
https://github.com/ultralytics/assets/releases/tag/v0.0.0
https://github.com/FeiGeChuanShu/ncnn-android-yolov8