資源簡介
VC OpenCV車牌識別源代碼,需要安裝opencv
代碼片段和文件信息
//?CarShape_Plate_Identify.cpp?:?定義應用程序的類行為。
//
#include?“stdafx.h“
#include?“afxwinappex.h“
#include?“afxdialogex.h“
#include?“CarShape_Plate_Identify.h“
#include?“MainFrm.h“
#include?“CarShape_Plate_IdentifyDoc.h“
#include?“CarShape_Plate_IdentifyView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CCarShape_Plate_IdentifyApp
BEGIN_MESSAGE_MAP(CCarShape_Plate_IdentifyApp?CWinAppEx)
ON_COMMAND(ID_APP_ABOUT?&CCarShape_Plate_IdentifyApp::OnAppAbout)
//?基于文件的標準文檔命令
ON_COMMAND(ID_FILE_NEW?&CWinAppEx::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?&CWinAppEx::OnFileOpen)
END_MESSAGE_MAP()
//?CCarShape_Plate_IdentifyApp?構造
CCarShape_Plate_IdentifyApp::CCarShape_Plate_IdentifyApp()
{
m_bHiColorIcons?=?TRUE;
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS;
#ifdef?_MANAGED
//?如果應用程序是利用公共語言運行時支持(/clr)構建的,則:
//?????1)?必須有此附加設置,“重新啟動管理器”支持才能正常工作。
//?????2)?在您的項目中,您必須按照生成順序向?System.Windows.Forms?添加引用。
System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif
//?TODO:?將以下應用程序?ID?字符串替換為唯一的?ID?字符串;建議的字符串格式
//為?CompanyName.ProductName.SubProduct.VersionInformation
SetAppID(_T(“CarShape_Plate_Identify.AppID.NoVersion“));
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?CCarShape_Plate_IdentifyApp?對象
CCarShape_Plate_IdentifyApp?theApp;
//?CCarShape_Plate_IdentifyApp?初始化
BOOL?CCarShape_Plate_IdentifyApp::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinAppEx::InitInstance();
//?初始化?OLE?庫
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}
AfxEnableControlContainer();
EnableTaskbarInteraction(FALSE);
//?使用?RichEdit?控件需要??AfxInitRichEdit2()
//?AfxInitRichEdit2();
//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
LoadStdProfileSettings(4);??//?加載標準?INI?文件選項(包括?MRU)
InitContextMenuManager();
InitKeyboardManager();
InitTooltipManager();
CMFCToolTipInfo?ttParams;
ttParams.m_bVislManagerTheme?=?TRUE;
theApp.GetTooltipManager()->SetTooltipParams(AFX_TOOLTIP_TYPE_ALL
RUNTIME_CLASS(CMFCToolTipCtrl)?&ttParams);
//?注冊應用程序的文檔模板。文檔模板
//?將用作文檔、框架窗口和視圖之間的連接
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CCarShape_Plate_IdentifyDoc)
RUNTIME_CLASS(CMainframe)???????//?主?SDI?框架窗口
RUNTIME_CLASS(CCarShape_Plate_IdentifyView));
if?(!pDocTemplate)
return?FALSE;
AddDocTemplate(pDocTemplate);
//?分析標準?shell?命令、DDE、
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????195616??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.aps
?????文件???????5354??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.cpp
?????文件????????769??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.h
?????文件??????33742??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.rc
?????文件???????9533??2013-04-17?18:25??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.vcxproj
?????文件???????6735??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.vcxproj.filters
?????文件????????143??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_Identify.vcxproj.user
?????文件??????32518??2013-07-02?16:22??第13章\CarShape_Plate_Identify\CarShape_Plate_IdentifyDoc.cpp
?????文件???????2351??2013-07-01?15:07??第13章\CarShape_Plate_Identify\CarShape_Plate_IdentifyDoc.h
?????文件???????2428??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_IdentifyView.cpp
?????文件???????1130??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CarShape_Plate_IdentifyView.h
?????文件???????4802??2013-04-19?19:04??第13章\CarShape_Plate_Identify\Classification.cpp
?????文件????????277??2013-04-07?18:05??第13章\CarShape_Plate_Identify\Classification.h
?????文件???????9045??2013-04-07?18:05??第13章\CarShape_Plate_Identify\ClassView.cpp
?????文件???????1275??2013-04-07?18:05??第13章\CarShape_Plate_Identify\ClassView.h
?????文件?????152078??2013-04-07?18:05??第13章\CarShape_Plate_Identify\contour\0.bmp
?????文件?????293578??2013-04-07?18:05??第13章\CarShape_Plate_Identify\contour\1.bmp
?????文件?????207646??2013-04-07?18:05??第13章\CarShape_Plate_Identify\contour\2.bmp
?????文件?????477638??2013-04-07?18:05??第13章\CarShape_Plate_Identify\contour\3.bmp
?????文件???????7183??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CvvImage.cpp
?????文件???????1627??2013-04-07?18:05??第13章\CarShape_Plate_Identify\CvvImage.h
?????文件????????915??2013-04-07?18:05??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.exe.em
?????文件????????980??2013-04-07?18:09??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.exe.em
?????文件????????640??2013-04-07?18:58??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.exe.intermediate.manifest
?????文件?????????97??2013-07-02?16:51??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.lastbuildstate
?????文件???????1176??2013-07-02?16:51??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.log
?????文件?????159877??2013-07-01?15:07??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.obj
?????文件???33619968??2013-06-14?20:06??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.pch
?????文件?????141768??2013-06-14?20:06??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_Identify.res
?????文件?????279351??2013-07-02?16:22??第13章\CarShape_Plate_Identify\Debug\CarShape_Plate_IdentifyDoc.obj
............此處省略103個文件信息
- 上一篇:基于kotlin實現的簡單賬戶記錄APP
- 下一篇:鄉村旅游網站源碼
評論
共有 條評論