• Stars
    star
    270
  • Rank 152,189 (Top 3 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

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

Repository Details

C++ project to implement MTCNN, a perfect face detect algorithm, on different DL frameworks. The most popular frameworks: caffe/mxnet/tensorflow, are all suppported now

MTCNN C++ Implementation

This is a C++ project to implement MTCNN, a perfect face detect algorithm, on different DL frameworks.
The most popular frameworks: caffe/mxnet/tensorflow, are all suppported now.

Build

  • Bulid caffe, mxnet or tensorflow first   Please edit makefile.mk (set xxx_ON flags to enable corresponding dp framework) to select one or more to be supported

    • Build Caffe-HRT, refer to Caffe-HRT Release notes

    • Build MXNet-HRT, refer to MXNet-HRT release notes

    • Build tensorflow, to generate libtensorflow.so, please use:

      bazel build --config=opt //tensorflow/tools/lib_package:libtensorflow

      the tarball, bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz, includes the libtensorflow.so and c header files

  • Edit Makefile to set CAFFE_ROOT, MXNET_ROOT or TENSORFLOW_ROOT to the right path in your machine. For example : CAFFE_ROOT=/usr/local/AID/Caffe-HRT/.

  • make -j4

Run

If the basic work is ready (build caffe/Mxnet/Tensorflow sucessfully) followed by above steps. You can run the test now.

1. Test on single picture:

./test -f photo_fname [ -t DL_type] [-s] 
  -f photo_fname  picture to be  detected
  -t DL_type      DL frame: "caffe" , "mxnet"(default) or "tensorflow"
  -s              Save face chop into jpg files

The new picture, which boxed face and 5 landmark points will be created and saved as "new.jpg"

2. Test on camera (DL Framework is caffe)

./run.sh

Release History

Version 0.1.0 - 2018-2-11

  • Modified readme file.
  • Modified makefile.mk.
  • Add run.sh script

Credit

MTCNN algorithm

https://github.com/kpzhang93/MTCNN_face_detection_alignment

MTCNN C++ on Caffe

https://github.com/wowo200/MTCNN

MTCNN python on Mxnet

https://github.com/pangyupo/mxnet_mtcnn_face_detection

MTCNN python on Tensorflow

FaceNet uses MTCNN to align face

https://github.com/davidsandberg/facenet

From this directory:

facenet/src/align

More Repositories

1

Tengine

Tengine is a lite, high performance, modular inference engine for embedded device
C++
4,625
star
2

TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
C++
2,386
star
3

AutoKernel

AutoKernel 是一个简单易用,低门槛的自动算子优化工具,提高深度学习算法部署效率。
C++
776
star
4

Caffe-HRT

Heterogeneous Run Time version of Caffe. Added heterogeneous capabilities to the Caffe, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original Caffe architecture which users deploy their applications seamlessly.
C++
269
star
5

YSQfastfd

A fast binary library for face detection and face landmark detection in images. No float point operations, especially suit for low cost Arm CPUs, The highest accuracy on FDDB among non deep learning methods
C++
197
star
6

FaceRecognition

This is an implematation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenenCNN algorithm.
C++
148
star
7

Tengine-Convert-Tools

Tengine Convert Tool supports converting multi framworks' models into tmfile that suitable for Tengine-Lite AI framework.
C++
94
star
8

TengineFactory

Algorithm acceleration landing framework, let you complete the development of algorithm at low cost.eg: Facedetect, FaceLandmark..
C++
90
star
9

TengineGst

TengineGst is a streaming media analytics framework, based on GStreamer multimedia framework, for creating varied complex media analytics pipelines. It ensures pipeline interoperability and provides optimized media, and inference operations using Tengine Toolkit Inference Engine backend, across varied architecture - CPU, iGPU and VPU.
C++
75
star
10

MXNet-HRT

Heterogeneous Run Time version of MXNet. Added heterogeneous capabilities to the MXNet, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original MXNet architecture which users deploy their applications seamlessly.
C++
72
star
11

cortex-m-kws

Cortex M KWS example with Tengine Lite.
C
71
star
12

Tengine-app

This is a repository for applications powered by Tengine. Please feel free to try them on your device
C++
56
star
13

ObjectTracker

This object Tracker algorithm is a TLD(Long-term tracker) tracker base on KCF or DSST.
C++
45
star
14

SpeechRecognition

A local auto speech recognition project based on Kaldi and ALSA.
C++
36
star
15

TensorFlow-HRT

Heterogeneous Run Time version of TensorFlow. Added heterogeneous capabilities to the TensorFlow, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original TensorFlow architecture which users deploy their applications seamlessly.
C++
36
star
16

CVGesture

It implements detection and recognition to different hand gestures, based on OpenCV 3.3.0 (Open Source Computer Vision Library)
C++
31
star
17

TengineInferPipe

C++
24
star
18

FaceRecognition2

FaceRecognition2 is an implementation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenedCNN algorithm.
C++
20
star
19

AndroidFacedemo

An face recogniztion detect project on android based on CaffeOnACL
C++
11
star
20

AndroidCVDemo

An CV demo in Android, include Gesture recognition and Object traking
C++
4
star
21

autokernel-docs-en

autokernel documentation (english version)
Python
3
star
22

autokernel-docs-cn

autokernel documentation
Python
1
star