資源簡介
對于學習opencv的初學者有很好的參考,主要是圖像的目標檢測和識別方法。

代碼片段和文件信息
//?MainFrm.cpp?:?CMainframe?類的實現
//
#include?“stdafx.h“
#include?“test.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?狀態行指示器
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
//?CMainframe?構造/析構
CMainframe::CMainframe()
{
//?TODO:?在此添加成員初始化代碼
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“未能創建工具欄\n“);
return?-1;??????//?未能創建
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“未能創建狀態欄\n“);
return?-1;??????//?未能創建
}
//?TODO:?如果不需要工具欄可停靠,則刪除這三行
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?在此處通過修改
//??CREATESTRUCT?cs?來修改窗口類或樣式
return?TRUE;
}
//?CMainframe?診斷
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
//?CMainframe?消息處理程序
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????946032??2005-03-16?19:18??test\haarcascade_frontalface_alt.xm
?????文件???????1794??2011-07-02?15:29??test\MainFrm.cpp
?????文件????????655??2011-07-02?15:29??test\MainFrm.h
?????文件???????3358??2011-07-02?15:29??test\ReadMe.txt
?????文件??????21630??2005-12-08?14:56??test\res\test.ico
?????文件????????360??2011-07-02?15:29??test\res\test.rc2
?????文件???????1078??2005-12-08?14:56??test\res\testDoc.ico
????I.A.SH.??????8192??2015-07-16?00:26??test\res\Thumbs.db
?????文件???????1078??2005-12-08?14:56??test\res\Toolbar.bmp
?????文件????????629??2011-07-02?15:43??test\resource.h
?????文件????????135??2011-07-02?15:29??test\stdafx.cpp
?????文件???????2489??2011-07-02?15:29??test\stdafx.h
?????文件??????51216??2015-07-15?18:42??test\test.aps
?????文件???????3208??2011-07-02?22:57??test\test.cpp
?????文件????????452??2011-07-02?15:29??test\test.h
?????文件??????11287??2011-07-02?15:43??test\test.rc
?????文件???????5842??2011-07-02?15:30??test\test.vcproj
?????文件???????1409??2011-12-03?14:27??test\test.vcproj.FLM-PC.FLM.user
?????文件???????1409??2012-05-19?20:20??test\test.vcproj.MFL-PC.Administrator.user
?????文件???????1427??2011-07-13?14:46??test\test.vcproj.PC--20110629JAV.Administrator.user
?????文件???????7358??2015-07-16?00:26??test\test.vcxproj
?????文件???????2401??2015-07-15?18:41??test\test.vcxproj.filters
?????文件????????143??2015-07-15?18:41??test\test.vcxproj.user
?????文件???????1158??2011-07-02?15:40??test\testDoc.cpp
?????文件????????594??2011-07-02?15:40??test\testDoc.h
?????文件???????4312??2011-12-03?14:26??test\testView.cpp
?????文件???????1158??2011-07-02?15:46??test\testView.h
?????目錄??????????0??2015-07-19?12:21??test\Debug
?????目錄??????????0??2015-07-16?00:26??test\res
?????目錄??????????0??2015-07-15?18:42??test
............此處省略3個文件信息
- 上一篇:B樣條實現代碼
- 下一篇:Esp8266程序基于STM32
評論
共有 條評論