資源簡介
使用Hu距作為特征SVM分類器進行預測的動作識別程序,可以識別stand_up/hand_up/nothing三個類別,適合初學者,可正常運行。由于訓練的樣本較少,所以識別結果不是很準確,有待于擴充樣本數量,歡迎大家下載交流。

代碼片段和文件信息
#include?“blob.h“
Blob?operator+(Blob?const&?a?Blob?const&?b)
{
Blob?c;
c.x?=?std::min(a.x?b.x);//左上角坐標
c.y?=?std::min(a.y?b.y);
c.w?=?std::max(a.x?+?a.w?b.x?+?b.w)?-?c.x;//寬度
c.h?=?std::max(a.y?+?a.h?b.y?+?b.h)?-?c.y;//高度
c.area?=?c.h*c.w;
//c.area?=?a.area?+?b.area;
c.cx?=?(a.cx?*?a.area?+?b.cx?*?b.area)?/?c.area;//中心
c.cy?=?(a.cy?*?a.area?+?b.cy?*?b.area)?/?c.area;
return?c;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????166400??2015-08-26?09:24??hu\Debug\hu.exe
?????文件????1079184??2015-08-26?09:24??hu\Debug\hu.ilk
?????文件????3640320??2015-08-26?09:24??hu\Debug\hu.pdb
?????文件????????424??2015-08-24?09:42??hu\hu\Blob.cpp
?????文件????????389??2015-08-24?09:30??hu\hu\Blob.h
?????文件?????204503??2015-08-25?17:53??hu\hu\Debug\Blob.obj
?????文件???????1818??2015-08-26?09:24??hu\hu\Debug\hu.log
?????文件???????2538??2015-08-26?09:24??hu\hu\Debug\hu.tlog\cl.command.1.tlog
?????文件??????77986??2015-08-26?09:24??hu\hu\Debug\hu.tlog\CL.read.1.tlog
?????文件???????2160??2015-08-26?09:24??hu\hu\Debug\hu.tlog\CL.write.1.tlog
?????文件????????167??2015-08-26?09:24??hu\hu\Debug\hu.tlog\hu.lastbuildstate
?????文件???????4880??2015-08-26?09:24??hu\hu\Debug\hu.tlog\li
?????文件???????8482??2015-08-26?09:24??hu\hu\Debug\hu.tlog\li
?????文件????????812??2015-08-26?09:24??hu\hu\Debug\hu.tlog\li
?????文件?????654659??2015-08-26?09:24??hu\hu\Debug\main.obj
?????文件????1108992??2015-08-26?09:24??hu\hu\Debug\vc120.idb
?????文件????1716224??2015-08-26?09:24??hu\hu\Debug\vc120.pdb
?????文件???????9312??2015-08-25?15:21??hu\hu\hand_data.txt
?????文件??????62975??2015-08-25?15:02??hu\hu\hu.txt
?????文件???????4782??2015-08-24?09:30??hu\hu\hu.vcxproj
?????文件???????1150??2015-08-24?09:30??hu\hu\hu.vcxproj.filters
?????文件??????10293??2015-08-26?14:35??hu\hu\main.cpp
?????文件???????5136??2015-08-25?15:14??hu\hu\nothing_data.txt
?????文件???????9408??2015-08-25?15:26??hu\hu\stand_data.txt
?????文件??????23854??2015-08-26?09:12??hu\hu\svmTrainSet.txt
?????文件??????20206??2015-08-26?09:18??hu\hu\svmTrainSet2.txt
?????文件??????27125??2015-08-26?09:20??hu\hu\SVM_DATA.xm
?????文件???16187392??2015-08-26?14:35??hu\hu.sdf
?????文件????????952??2015-07-30?08:53??hu\hu.sln
????..A..H.?????36864??2015-08-26?14:35??hu\hu.v12.suo
............此處省略8個文件信息
- 上一篇:osgOcean update
- 下一篇:倉庫管理系統sql+vb
評論
共有 條評論