Code Monkey home page Code Monkey logo

npd's Introduction

NPD

The C++ implementation of A Fast and Accurate Unconstrained Face Detector.

The result is trained by 200k pos data and the template is 24*24, stages number is 620, model size is 540kb.

minFaceSize speed(ms) cores
80*80 30 1
24x24 500 1
24*24 60 16

the detection result is test on FDDB data set (average 400*400)

NOTICE

The "1226model" is dump from matlab code which is from References, the model has 1226 stages , if you want to try this model ,you should rename it "result".

You must change the code in detection/LearnGAB.cpp:8696. Because the difference between matlab and OpenCV. You should also change the coefficient in detection/LearnGAB.cpp:276279 to fit the model.

How to use

  • you should mkdir data first

In data folder, you should creat two file named FaceDB.txt and NonFaceDB.txt.

FaceDB.txt
../data/face/00001.jpg x1 y1 x2 y2
../data/face/00002.jpg x1 y1 x2 y2
....
....
NonfaceDB.txt
../data/bg/000001.jpg
../data/bg/000002.jpg
../data/bg/000003.jpg
....
....
hd.txt(Optional)
../data/hd/000001.jpg
../data/hd/000002.jpg
../data/hd/000003.jpg
...

the hd image is hard negative for init training , the size of it should to be the same with your model template(24 for me).

The config is in src/common.cpp

#TODO

Speed Up the Detection and Training

#License

BSD 3-Clause

References

http://www.cbsr.ia.ac.cn/users/scliao/projects/npdface/index.html

#求带走啊 毕业季求带走,西电硕士,期望地点:杭州。 联系邮箱:[email protected] 前段时间忙工作,没好好准备招聘,结果被剩了,在这打个卖身契广告,好苦啊我。

npd's People

Contributors

wincle avatar

Watchers

James Cloos avatar Shoubin Li avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.