資源簡介
基于opencv的圖像識別,識別圖像中的色塊,可以識別紅色,綠色,藍色的顏色區域,并二值化,學習opencv的基本代碼

代碼片段和文件信息
//?FindRGB.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FindRGB.h“
#include?“FindRGBDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFindRGBApp
BEGIN_MESSAGE_MAP(CFindRGBApp?CWinApp)
//{{AFX_MSG_MAP(CFindRGBApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CFindRGBApp?construction
CFindRGBApp::CFindRGBApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFindRGBApp?object
CFindRGBApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFindRGBApp?initialization
BOOL?CFindRGBApp::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
CFindRGBDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????30345??2009-03-23?18:22??FindRGB\3.jpg
?????文件?????843824??2006-10-18?21:49??FindRGB\cv100.dll
?????文件????1011764??2006-10-18?21:49??FindRGB\cxcore100.dll
?????文件??????21960??2012-03-16?16:33??FindRGB\FindRGB.aps
?????文件???????1716??2009-03-26?19:41??FindRGB\FindRGB.clw
?????文件???????2077??2009-03-21?22:13??FindRGB\FindRGB.cpp
?????文件???????4249??2009-03-21?23:04??FindRGB\FindRGB.dsp
?????文件????????522??2009-03-21?22:13??FindRGB\FindRGB.dsw
?????文件??????73216??2012-03-16?16:35??FindRGB\FindRGB.exe
?????文件???????1335??2009-03-21?22:13??FindRGB\FindRGB.h
?????文件??????54784??2009-03-26?19:41??FindRGB\FindRGB.opt
?????文件????????248??2009-03-26?19:41??FindRGB\FindRGB.plg
?????文件???????6221??2009-03-23?19:10??FindRGB\FindRGB.rc
?????文件????????879??2012-03-16?16:31??FindRGB\FindRGB.sln
????..A..H.?????13824??2012-03-23?08:54??FindRGB\FindRGB.suo
?????文件???????7514??2012-03-16?16:34??FindRGB\FindRGB.vcproj
?????文件???????1411??2012-03-23?08:54??FindRGB\FindRGB.vcproj.YANGJUN.yj.user
?????文件???????6159??2012-03-16?16:35??FindRGB\FindRGBDlg.cpp
?????文件???????1602??2009-03-23?19:09??FindRGB\FindRGBDlg.h
?????文件?????626741??2006-10-18?21:50??FindRGB\highgui100.dll
?????文件??????80482??2008-09-08?11:54??FindRGB\lib\cv.lib
?????文件?????138460??2008-08-25?11:14??FindRGB\lib\cvaux.lib
?????文件???????6674??2006-10-19?17:16??FindRGB\lib\cvcam.lib
?????文件?????544676??2006-10-19?17:17??FindRGB\lib\cvhaartraining.lib
?????文件??????81678??2008-08-25?11:05??FindRGB\lib\cxcore.lib
?????文件??????84066??2008-08-25?10:53??FindRGB\lib\cxcored_i7.lib
?????文件??????58664??2006-10-18?21:50??FindRGB\lib\cxts.lib
?????文件??????32858??2008-08-25?11:15??FindRGB\lib\highgui.lib
?????文件?????122642??2006-10-18?21:50??FindRGB\lib\ml.lib
????..A.SH.?????????8??2008-09-01?17:06??FindRGB\lib\_desktop.ini
............此處省略15個文件信息
- 上一篇:銀行儲蓄系統實驗報告
- 下一篇:基于區塊鏈的政府基礎信息協同共享模式研究.pdf
評論
共有 條評論