資源簡介
一個應用于公交、汽車、車站商場的人頭檢測程序,檢測出人頭進出數量。
輸入一幅圖片,通過計算指定入口區域的HIST結果,判斷是否有人進入??赏瑫r檢測2人進入或出去。
一種基于隨機Hough變換(RHT)的人頭檢測方法。根據人頭部輪廓近圓的特征,采用Canny算子提取圖像邊緣,得到目標輪廓。利用RHT算法對獨立的曲線進行圓檢測,并對人頭進行標識。實驗結果表明,與現有方法相比,該方法的識別率較高、速度較快、適用范圍較廣。

代碼片段和文件信息
//?
//?Copyright?jeff?(www.appstorego.com)
//?Please?keep?this?reference?if?you?use
//?
//?count.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“count.h“
#include?“countDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCountApp
BEGIN_MESSAGE_MAP(CCountApp?CWinApp)
//{{AFX_MSG_MAP(CCountApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCountApp?construction
CCountApp::CCountApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCountApp?object
CCountApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCountApp?initialization
BOOL?CCountApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CCountDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????41448??2014-03-07?13:50??human_head\count.aps
?????文件???????2506??2012-10-02?11:26??human_head\count.clw
?????文件???????2141??2014-05-06?14:57??human_head\count.cpp
?????文件???????4388??2008-06-15?12:30??human_head\count.dsp
?????文件????????535??2008-02-13?12:47??human_head\count.dsw
?????文件???????1313??2008-02-13?12:47??human_head\count.h
?????文件?????156672??2012-10-02?11:26??human_head\count.ncb
?????文件?????379904??2012-10-02?11:26??human_head\count.opt
?????文件???????4231??2008-06-30?09:23??human_head\count.plg
?????文件???????7728??2014-03-07?13:50??human_head\count.rc
?????文件????????876??2014-03-05?14:37??human_head\count.sln
????..A..H.??????9728??2014-03-05?14:37??human_head\count.suo
?????文件???????9271??2014-03-05?15:51??human_head\count.vcxproj
?????文件???????2274??2014-03-05?15:39??human_head\count.vcxproj.filters
?????文件????????143??2014-03-05?14:33??human_head\count.vcxproj.user
?????文件??????26549??2014-03-07?15:41??human_head\countDlg.cpp
?????文件???????3279??2014-03-07?15:41??human_head\countDlg.h
?????文件???????6433??2012-11-05?15:58??human_head\CvvImage.cpp
?????文件???????2042??2014-03-05?15:41??human_head\CvvImage.h
?????文件???????3655??2014-05-06?14:57??human_head\ReadMe.txt
?????文件???????1078??2008-02-13?12:47??human_head\res\count.ico
?????文件????????397??2008-02-13?12:47??human_head\res\count.rc2
?????文件???????2057??2014-03-07?13:50??human_head\resource.h
?????文件???????5471??2014-03-06?12:04??human_head\rgbgmfgd.cpp
?????文件????????845??2014-03-06?13:34??human_head\rgbgmfgd.h
?????文件????????207??2008-02-13?12:47??human_head\StdAfx.cpp
?????文件???????1054??2008-02-13?12:47??human_head\StdAfx.h
?????目錄??????????0??2014-03-05?14:38??human_head\res
?????目錄??????????0??2014-05-06?14:57??human_head
-----------?---------??----------?-----??----
............此處省略2個文件信息
- 上一篇:電子時鐘微機原理課程設計報告
- 下一篇:黑馬項目十一物流管理系統
評論
共有 條評論