【正文】
2),39。 end end end Error(k2)=Dmax。 end figure(10),imshow(dw),title ([39。 top=1。amp。 end dd=rightleft。 wide=0。n1/m1y2 d(:,[1:wide])=0。 else d=[]。 end else word=qiege(imcrop(d,[1 1 wide m]))。 焦作大學(xué)畢業(yè)設(shè)計(jì)說明書 第 27 頁 共 35 頁 end temp=qiege(imcrop(d,[1 1 wide m]))。flag=0。leftn left=left+1。 %int while sum(d(top,:))==0amp。,39。 Code(l*21)=liccode(findc(1)+kmin1)。 SamBw2=double(SamBw2)1。 else l=3 %第三位以后是字母或數(shù)字識別 kmin=1。 %讀取圖片文件中的數(shù)據(jù) SegBw2=imresize(t,[40 20],39。京遼魯陜蘇豫浙 39。039。 此處采用 相減的方法來求得字符與模板中哪一個(gè)字符最相似,然后找到相似度最大的輸出。 imwrite(word6,39。39。)。 subplot(2,7,12),imshow(word5),title(39。239。 word4=imresize(word4,[40 20])。)。 subplot(2,7,4),imshow(word4),title(39。139。 end end % 分割出第二個(gè)字符 [word2,d]=getword(d)。 else 焦作大學(xué)畢業(yè)設(shè)計(jì)說明書 第 21 頁 共 35 頁 temp=qiege(imcrop(d,[1 1 wide m]))。flag=0。amp。 [m,n]=size(d)。)。 % eye(n) returns the nbyn identity matrix 單位矩陣 [m,n]=size(d)。,3)。 %建立預(yù)定義的濾波算子, average為均值濾波,模板的尺寸為 3*3 d=im2bw(round(filter2(h,d)))。 % d:二值圖像 imwrite(d,39。%將灰度圖像寫入文 件中 figure(8)。)。行方向合理區(qū)域 39。 while ((Blue_x(1,PX2)3)amp。 end IY=I(PY1:PY2,:,:)。%Y方向車牌區(qū)域確定 %temp為向量 white_y的元素中的最大值, MaxY為該值的索引 PY1=MaxY。title(39。,[25,25])。1]。both39。)。 figure(1),imshow(I)。 對于車牌識別系統(tǒng)而言,以上的每一個(gè)步驟都是必不可少的,并且后一步驟均是建立在前面步驟的基礎(chǔ)之上進(jìn)行的,因此,只有確保做好每一步才能順利完成系統(tǒng)最終的識別工作。 車牌定位:是指對預(yù)處理過的汽車圖片進(jìn)行處理,把車牌部分進(jìn)行定位,把無用的部分去除,得到定位好的車牌圖片。因此,研究高速準(zhǔn)確的定位與識別算法,是當(dāng)前的主要任務(wù)。其工具箱又可分為兩類 : 功能性工具箱和學(xué)科性工具箱。 ( 6) MATLAB 的圖形功能強(qiáng)大。由于庫函數(shù)都由本領(lǐng)域的專家編寫 , 用戶不必?fù)?dān)心函數(shù)的可靠性。又如 HP 公司的 VXI 硬件 , TM 公司的 DSP , Gage 公司的各種硬卡、儀器等都接受 MATLAB 的支持。 MATLAB 以商品形式出現(xiàn)后 , 僅短短幾年 , 就以其良好的開放性和運(yùn)行的可靠性 , 使原先控制領(lǐng)域里的封閉式軟件包 ( 如英國的 UMIST , 瑞典的 LUND,和 SIMNON , 德國的 KEDDC ) 紛紛淘汰 , 而改以 MATLAB 為平臺加以重建。另外,該系系統(tǒng)還可發(fā)現(xiàn)無車牌的車輛。 車牌自動(dòng)識別系統(tǒng)可安裝于公路收費(fèi)站、停車場、十字路口等交通關(guān)卡處 ,其具體應(yīng)用可概括為: (l)交通監(jiān)控利用車牌識別系統(tǒng)的攝像設(shè)備,可以直接監(jiān)視相應(yīng)路段的交通狀況,獲得車輛密度、隊(duì)長、排隊(duì)規(guī)模等交通信息,防范和觀察交通事故。條形碼識別要求預(yù)先在車身上印刷條形碼,在系統(tǒng)的某一固定位置上安裝掃描設(shè)備,通過掃描來讀取條形碼,以達(dá)到識別車輛的目的。 從實(shí)用產(chǎn)品來看,如以色列的 HiTech 公司研制的多種 See/Car system,適應(yīng)于幾個(gè)不同國家的車牌識別,就針對中國格式車牌的 See/Car syste 而言,它不能識別漢字,且識別率有待提高。為了解決圖像惡化的問題,目前國內(nèi)外采用主動(dòng)紅外照明攝像或使用特殊的傳感器來提高圖像的質(zhì)量,繼而提高識別率,但系統(tǒng)的投資成本過大,不適合普遍的推廣。然而智能交通的不斷發(fā)展使得對車牌定位系統(tǒng)有了更高的要求,主要表現(xiàn)在系統(tǒng)的實(shí)時(shí)性和準(zhǔn)確性。圖像 分割就是把圖像中需要的那一個(gè)部分分割出來。 焦作大學(xué)畢業(yè)設(shè)計(jì)說明書 第 3 頁 共 35 頁 車牌號識別系統(tǒng)是基于圖像處理技術(shù)的基礎(chǔ)進(jìn)行研究的。系統(tǒng)應(yīng)用場合包括:高速公路,橋梁,隧道等收費(fèi)管理系統(tǒng)。本文 即是針對其核心部分進(jìn)行闡述并使用 MATLAB 軟件環(huán)境中進(jìn)行字符分割的仿真實(shí)驗(yàn)。摘 要 汽車車牌的識別系統(tǒng)是現(xiàn)代智能交通管理的重要組成部分之一。 關(guān)鍵詞: MATLAB、圖像預(yù)處理、車牌定位、字符分割 ABSTRACT Vehicle license plate recognition system is one important of the modern intelligent traffic management. License plate recognition system to make more intelligent vehicle management, digital, Effective traffic management to enhance the convenience and effectiveness. License plate recognition system includes image acquisition, image preprocessing, license plate localization, character segmentation, character recognition and other five core parts. In this paper, preprocessing, license plate localization, character segmentation method for the realization of three is the image preprocessing module and the use of the image gra yscale Roberts edge detection operator steps. License plate location and segmentation using mathematical morphology method is used to determine the license plate location,Reuse license plate color segmentation method of color information to plete the license plate area segmentation. Character segmentation approach is based on the license plate after the binary part of the vertical projection, Then scan in the vertical projection, thus pleting the character segmentation. This article is described for the core part and use the MATLAB software environment, the simulation experiments for character segmentation. Keywords: MATLAB software, image preprocessing, license plate localization, character segmentation . 焦作大學(xué)畢業(yè)設(shè)計(jì)說明書 1 目 錄 1. 緒論 ................................................................. 1 本課題的研究背景 ................................................ 1 本課題的研究目的及意義 .......................................... 2 國內(nèi)外發(fā)展?fàn)顩r .................................................. 3 主要應(yīng)用領(lǐng)域 .................................................... 5 設(shè)計(jì)原理 ........................................................ 6 2. MATLAB 簡介 .......................................................... 7 MATLAB 發(fā)展歷史 ................................................. 7 MATLAB 的語言特點(diǎn) ............................................... 7 3.工作流程 ............................................................. 9 系統(tǒng)框架結(jié)構(gòu)和工作流程 .................