• Stars
    star
    301
  • Rank 138,451 (Top 3 %)
  • Language
    C++
  • Created over 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Real time yolox Android demo by ncnn

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

More Repositories

1

ncnn-android-yolov8

Real time yolov8 Android demo by ncnn
C++
360
star
2

ncnn_paddleocr

Android paddleocr demo infer by ncnn
C++
160
star
3

ncnn_Android_face

Android face detect and segmentation,facemesh by ncnn
C++
160
star
4

ncnn_Android_RobustVideoMatting

Android human segmentation by ncnn
C++
151
star
5

ncnn_Android_MoveNet

Android MoveNet pose estimation by ncnn
C++
122
star
6

segment-anything-ncnn

an example of segment-anything infer by ncnn
C++
121
star
7

CodeFormer-ncnn

ncnn version of CodeFormer
C++
96
star
8

ncnn_nanodet_hand

Android hand detect and pose estimation by ncnn
C++
92
star
9

ncnn_Android_blazeface

This a demo of BlazeFace infer by ncnn
C++
84
star
10

ncnn_Android_BlazePose

Android BlazePose demo by ncnn
C++
81
star
11

yolov5-seg-ncnn

c++ version of yolov5 segmentation with ncnn
C++
77
star
12

GFPGAN-ncnn

a naive NCNN implementation of GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration
C++
74
star
13

ncnn-Android-mediapipe_hand

a mediapipe-hand demo infer by ncnn
C++
64
star
14

ncnn-android-yolov6

C++
62
star
15

ncnn_Android_matting

Android and Windows human matting demo infer by ncnn
Java
56
star
16

yolov7-mask-ncnn

c++ version of yolov7-mask with ncnn
C++
56
star
17

YOLOPv2-ncnn

C++
55
star
18

ncnn-android-depth_anything

a Android demo of depth_anything_v1 and depth_anything_v2
C++
48
star
19

DocTr-ncnn

ncnn demo of (文档矫正)DocTr: Document Image Transformer for Geometric Unwarping and Illumination Correction
C++
42
star
20

trt2023

NVIDIA TensorRT Hackathon 2023复赛选题:通义千问Qwen-7B用TensorRT-LLM模型搭建及优化
C++
39
star
21

ncnn_Android_LightTrack

Android demo of LightTrack infer by ncnn
C++
36
star
22

ncnn_Android_hair

Android hair segmentation demo by ncnn
C++
27
star
23

ncnn_Android_PP-TinyPose

ncnn Android demo of PP-TinyPose
C++
25
star
24

ncnn_Android_LivePortrait

a naive example of LivePortrait infer by ncnn
C++
24
star
25

animegan2-ncnn-vulkan

a demo of Animeganv2 infer by ncnn
C++
22
star
26

ncnn_Android_mlsd

M-LSD Android demo infer by ncnn
C++
22
star
27

ncnn_ppstructure

ppstructure deploy by ncnn
21
star
28

Mask2Former-ncnn

naive c++ version of Mask2Former with ncnn
C++
19
star
29

ncnn_MakeupTransfer

SSAT Makeup/Makeup Transfer infer by ncnn
C++
18
star
30

ncnn-yolox-hand

Android yolox hand detect by ncnn
C++
17
star
31

ncnn_Android_CrowdCounting

Android CrowdCounting demo infer by ncnn
C++
10
star
32

segformer-tengine

segformer semantic segmentation infer by tengine
C
9
star
33

tengine_Android_hand_npu

Android hand Demo infer by tengine on vim3
1
star