资源描述:
《车牌识别系统基于开发系统代码大全.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、//图像字符识别毕业设计View.cpp:CMyView类的实现//#include"stdafx.h"#include"图像字符识别毕业设计.h"#include"图像字符识别毕业设计Doc.h"#include"图像字符识别毕业设计View.h"#include".图像字符识别毕业设计view.h"#ifdef_DEBUG#definenewDEBUG_NEW#endif//CMyViewIMPLEMENT_DYNCREATE(CMyView,CView)BEGIN_MESSAGE_MAP(CMyView,CView)/
2、/标准打印命令ON_COMMAND(ID_FILE_PRINT,CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT,CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW,CView::OnFilePrintPreview)ON_COMMAND(ID_FILE_OPEN,OnFileOpen)ON_COMMAND(ID_IMAGE_PARAMENT,OnImageParament)ON_COMMAND(ID_FIND_CARNUM
3、BER,OnFindCarnumber)ON_COMMAND(ID_COLOR_CRAY,OnColorCray)ON_COMMAND(ID_MEDIAN5,OnMedian5)ON_COMMAND(ID_LOG_BORDDETEC,OnLogBorddetec)ON_COMMAND(ID_OTSU_THRESHOLD,OnOtsuThreshold)ON_COMMAND(ID_CATCH_NUMBERONCE,OnCatchNumberonce)ON_COMMAND(ID_Lap_Borddetec,OnLapBorddet
4、ec)ON_COMMAND(ID_CATCH_BNUMBER,OnCatchBnumber)ON_COMMAND(ID_GET_CARNUMBER,OnGetCarnumber)ON_COMMAND(ID_GET_HCARNUMBER,OnGetHcarnumber)ON_COMMAND(ID_NUMBER_CUT,OnNumberCut)ON_COMMAND(ID_ADD_ALL,OnAddAll)ON_COMMAND(ID_NUMBER_STUDY,OnNumberStudy)ON_COMMAND(ID_FIRSTNUMB
5、ER_RECOGNISE,OnFirstnumberRecognise)ON_COMMAND(ID_SECONDNUMBER_RECOGNISE,OnSecondnumberRecognise)ON_COMMAND(ID_THIRDNUMBER_RECOGNISE,OnThirdnumberRecognise)ON_COMMAND(ID_FOURTHNUMBER_RECOGNISE,OnFourthnumberRecognise)ON_COMMAND(ID_FIFTHNUMBER_RECOGNISE,OnFifthnumber
6、Recognise)ON_COMMAND(ID_SISTHNUMBER_RECOGNISE,OnSisthnumberRecognise)ON_COMMAND(ID_SEVENTHNUMBER_RECOGNISE,OnSeventhnumberRecognise)ON_COMMAND(ID_ZIMU_STUDY,OnZimuStudy)ON_COMMAND(ID_HANZI_STUDY,OnHanziStudy)ON_COMMAND(ID_ZHIFUSHIBIE_ZONGHE,OnZhifushibieZonghe)END_M
7、ESSAGE_MAP()//CMyView构造/析构CMyView::CMyView(){//TODO:在此处添加构造代码}CMyView::~CMyView(){}BOOLCMyView::PreCreateWindow(CREATESTRUCT&cs){//TODO:在此处通过修改CREATESTRUCTcs来修改窗口类或//样式returnCView::PreCreateWindow(cs);}//CMyView绘制voidCMyView::OnDraw(CDC*pDC){CMyDoc*pDoc=GetDocument(
8、);ASSERT_VALID(pDoc);if(!pDoc)return;//TODO:在此处为本机数据添加绘制代码if(!m_Image.IsNull()){m_Image.Draw(pDC->m_hDC,0,0);}}//CMyView打印BOOLCMyView::OnP