Skip to content

RuiZhang2016/HumanFaceDetectionAndRecognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face detection using MTCNN

This work implements [1] to detect faces, mainly based on [2]. See principles in [1] and original implementation of [1] in [2].

Requirement

  1. Caffe: Linux OS: https://github.com/BVLC/caffe. Windows OS: https://github.com/BVLC/caffe/tree/windows or https://github.com/happynear/caffe-windows
  2. Pdollar toolbox: https://github.com/pdollar/toolbox
  3. Matlab 2014b or later
  4. MatConvNet: http://www.vlfeat.org/matconvnet/

System

Ubuntu 16.04

Caffe Installation

Caffe has already been included in 'external/caffe' and follow the below steps to install caffe with only CPU: (1) Change directory to 'external/caffe/' and change 'MATLAB_DIR' in 'Makefile.config' to the path of your own matlab. E.g., MATLAB_DIR := path/to/my/matlab (2) Run 'make clean' in your terminal before compile. (3) Run 'make -j8 && make matcaffe' to compile caffe.

MatConNet Installation

Follow the installation instruction on http://www.vlfeat.org/matconvnet/install/. MatConvNet should be installed in 'code/MatConvNet'.

Pdollar toolbox

Install it in 'toolbox'.

Possible Errors

  1. '.../+caffe/private/caffe_.mexa64':

    .../+caffe/private/caffe_.mexa64:

    undefined symbol: _ZN2cv8imencodeE....

    Error in caffe.set_mode_cpu (line ...)

    caffe_('set_mode_cpu');

    Error in caffe.run_tests (line ...)

    caffe.set_mode_cpu();

solution: see BVLC/caffe#3934

  1. version 'GLIBCXX_3.4.9' not found

solution: type 'LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 matlab' in terminal to open matlab.

Pre-trained Models

MTCNN is contained in 'code/model/' but VGG face recognizer needs downloading from http://www.vlfeat.org/matconvnet/pretrained/ if you want to extract features of additional faces. Otherwise, it is unnecessary and all features used in this project are saved in 'res'.

Run

run code/demo.m or code/demo2.m in the matlab.

License

This code is distributed under MIT LICENSE.

Reference

[1] Zhang, Kaipeng, Zhanpeng Zhang, Zhifeng Li, and Yu Qiao. "Joint Face Detection and Alignment Using Multitask Cascaded Convolutional Networks." IEEE Signal Processing Letters 23, no. 10 (2016): 1499-1503.

[2] https://github.com/kpzhang93/MTCNN_face_detection_alignment.

Contact

Rui Zhang: u5963436@anu.edu.au | zhangrui0996@qq.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages