資源簡介
該壓縮包里包含了人臉檢測中比較靠譜的MTCNN以及NCNN算法的實現(xiàn)工程,經(jīng)過本人親自測試,人臉檢測的準(zhǔn)確度高,誤檢率比較低。甩VJ算法好幾條街。
代碼片段和文件信息
#include?“mtcnn.h“
Pnet::Pnet(){
????Pthreshold?=?0.6;
????nms_threshold?=?0.5;
????firstFlag?=?true;
????this->rgb?=?new?pBox;
????this->conv1_matrix?=?new?pBox;
????this->conv1?=?new?pBox;
????this->maxPooling1?=?new?pBox;
????this->maxPooling_matrix?=?new?pBox;
????this->conv2?=?new?pBox;
????this->conv3_matrix?=?new?pBox;
????this->conv3?=?new?pBox;
????this->score_matrix?=?new?pBox;
????this->score_?=?new?pBox;
????this->location_matrix?=?new?pBox;
????this->location_?=?new?pBox;
????this->conv1_wb?=?new?Weight;
????this->prelu_gmma1?=?new?pRelu;
????this->conv2_wb?=?new?Weight;
????this->prelu_gmma2?=?new?pRelu;
????this->conv3_wb?=?new?Weight;
????this->prelu_gmma3?=?new?pRelu;
????this->conv4c1_wb?=?new?Weight;
????this->conv4c2_wb?=?new?Weight;
????//?????????????????????????????????w???????sc??lc?ks?s??p
????long?conv1?=?initConvAndFc(this->conv1_wb?10?3?3?1?0);
????initpRelu(this->prelu_gmma1?10);
????long?conv2?=?initConvAndFc(this->conv2_wb?16?10?3?1?0);
????initpRelu(this->prelu_gmma2?16);
????long?conv3?=?initConvAndFc(this->conv3_wb?32?16?3?1?0);
????initpRelu(this->prelu_gmma3?32);
????long?conv4c1?=?initConvAndFc(this->conv4c1_wb?2?32?1?1?0);
????long?conv4c2?=?initConvAndFc(this->conv4c2_wb?4?32?1?1?0);
????long?dataNumber[13]?=?{conv11010?conv21616?conv33232?conv4c12?conv4c24};
????mydataFmt?*pointTeam[13]?=?{this->conv1_wb->pdata?this->conv1_wb->pbias?this->prelu_gmma1->pdata?\
????????????????????????????this->conv2_wb->pdata?this->conv2_wb->pbias?this->prelu_gmma2->pdata?\
????????????????????????????this->conv3_wb->pdata?this->conv3_wb->pbias?this->prelu_gmma3->pdata?\
????????????????????????????this->conv4c1_wb->pdata?this->conv4c1_wb->pbias?\
????????????????????????????this->conv4c2_wb->pdata?this->conv4c2_wb->pbias?\
????????????????????????????};
????string?filename?=?“Pnet.txt“;
????readData(filename?dataNumber?pointTeam);
}
Pnet::~Pnet(){
????freepBox(this->rgb);
????freepBox(this->conv1);
????freepBox(this->maxPooling1);
????freepBox(this->conv2);
????freepBox(this->conv3);
????freepBox(this->score_);
????freepBox(this->location_);
????freepBox(this->conv1_matrix);
????freeWeight(this->conv1_wb);
????freepRelu(this->prelu_gmma1);
????freepBox(this->maxPooling_matrix);
????freeWeight(this->conv2_wb);
????freepBox(this->conv3_matrix);
????freepRelu(this->prelu_gmma2);
????freeWeight(this->conv3_wb);
????freepBox(this->score_matrix);
????freepRelu(this->prelu_gmma3);
????freeWeight(this->conv4c1_wb);
????freepBox(this->location_matrix);
????freeWeight(this->conv4c2_wb);
}
void?Pnet::run(Mat?&image?float?scale){
????if(firstFlag){
????????image2MatrixInit(image?this->rgb);
????????feature2MatrixInit(this->rgb?this->conv1_matrix?this->conv1_wb);
????????convolutionInit(this->conv1_wb?this->rgb?this->conv1?this->conv1_matrix);
????????maxPoolingInit(this->conv1?this->maxPooling1?2?2);
????????feature2MatrixInit(this->maxPooling1?this->maxPooling
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????35840??2018-08-13?10:19??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\.vs\MTCNN_vs2015\v14\.suo
?????文件??????61440??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\Debug\MTCNN_vs2015.pdb
?????文件?????538774??2018-07-26?15:49??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\1.JPG
?????文件???????2191??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.log
?????文件?????200894??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.obj
?????文件???????1530??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\CL.command.1.tlog
?????文件??????24432??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\CL.read.1.tlog
?????文件???????1686??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\CL.write.1.tlog
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件??????????2??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\li
?????文件????????187??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\MTCNN_vs2015.lastbuildstate
?????文件??????????0??2018-08-01?13:42??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\MTCNN_vs2015.tlog\unsuccessfulbuild
?????文件???????4586??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\stdafx.obj
?????文件?????486400??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\vc140.idb
?????文件?????806912??2018-08-01?13:39??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\Debug\vc140.pdb
?????文件??????83230??2016-07-13?09:52??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\libgcc_s_seh-1.dll
?????文件?????934912??2011-12-18?19:04??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\libgfortran-3.dll
?????文件???42587753??2016-09-19?23:11??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\libopenblas.dll
?????文件??????56978??2016-07-13?09:52??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\libwinpthread-1.dll
?????文件??????24234??2018-07-31?11:30??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\mtcnn.cpp
?????文件???????3515??2017-06-28?02:57??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\mtcnn.h
?????文件???????1624??2018-07-31?14:20??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\MTCNN_TEST.cpp
?????文件???????1635??2018-08-10?16:56??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\MTCNN_vs2015.cpp
?????文件???????8761??2018-08-01?14:20??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\MTCNN_vs2015.vcxproj
?????文件???????1887??2018-08-01?13:45??MTCNN?and?NTCNN\MTCNN\MTCNN_vs2015\MTCNN_vs2015\MTCNN_vs2015.vcxproj.filters
............此處省略848個文件信息
- 上一篇:Canon SDK 全套
- 下一篇:Radmin3.5簡體中文版附完美破解.zip
評論
共有 條評論