GitPedia

Ncnn example

ncnn example: mask detection: anticonv face detection: retinaface&&mtcnn&&centerface, track: iou tracking, landmark: zqcnn, recognize: mobilefacenet classifier: mobilenet object detecter: mobilenetssd

From MirrorYuChen·Updated June 18, 2026·View on GitHub·

时间 | 更新内容 --|-- 20210612 | 1.update the ncnn lib to 20210525 20201024 | 1.add retinaface keypoints;2.add visual studio scripts 20200806 | 1.add insightface 106 [landmarks](!https://github.com/deepinsight/insightface/tree/master/alignment/coordinateReg);2.optimize the CMakeLists.txt 20200310 | 1.add mask detect code; 2.optimize the name of retinaface;3.update ncnn lib version to newest: [20200226](!https://github.com/Tencent/ncnn/tree/20200226) 20200223 | 1. add vulkan option;2. fix the network ... The project is written primarily in C++, distributed under the MIT License license, first published in 2019. Key topics include: classifier, facealigner, facedetection, facelandmark, facerecognition.

ncnn_example:

I promise i'll update this project forever!

1.更新日志

时间更新内容
202106121.update the ncnn lib to 20210525
202010241.add retinaface keypoints;2.add visual studio scripts
202008061.add insightface 106 landmarks;2.optimize the CMakeLists.txt
202003101.add mask detect code; 2.optimize the name of retinaface;3.update ncnn lib version to newest: 20200226
202002231. add vulkan option;2. fix the network name of mobilenetssd
202002221. split the model files from the project;2. add classifier && add object detecter ;

2.How to use?

  • (1). download the models from baiduyun: baidu(code: w48b) and google
  • (2). put models to directory: ncnn_example/data/models
  • (3). replace ncnn lib compiled on your system
  • (4). compile the project:
>> cd ncnn_example && mkdir build && cd build && make -j3 
  • (5). run the project:
>> cd src && ./face && ./object && ./classifier
  • (6). result
  • face result:
    图片
  • mask result:
    图片
  • object result:
    图片
  • classifier result:
    图片

3. TODO:

  • add yolo
  • add pose
  • refactor the project

4. references

https://github.com/Tencent/ncnn

https://github.com/zuoqing1988/ZQCNN

https://github.com/Charrin/RetinaFace-Cpp

https://github.com/deepinsight/insightface

https://github.com/Star-Clouds/centerface

https://github.com/seetafaceengine/SeetaFace2

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from MirrorYuChen/ncnn_example via the GitHub API.Last fetched: 6/24/2026