版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、<p> 一種在線圖像編碼識別系統(tǒng)的設計</p><p> 摘要:本文介紹了在線圖像編碼字符識別系統(tǒng)的設計與實現過程,對其中重點環(huán)節(jié)進行了分析與研究,給出了主要環(huán)節(jié)問題的解決方法,在識別算法上,結合模板匹配與特征識別,提出了基于特征加權的模板匹配算法,該算法對提高字符識別率提到了較好的作用。</p><p> 關鍵詞:圖像處理;模式識別;特征加權;軟件設計</p>
2、;<p><b> 0引言</b></p><p> 圖像編碼字符識別的研究目前仍是國內外一個重點研究課題,它具有廣泛的應用背景,比如車牌號碼自動識別、郵政編碼的自動識別、試卷自動閱讀、報表自動處理等,由于這種在線圖像編碼字符的識別都具有一些共性,本文結合在線輪胎編碼字符識別系統(tǒng)的設計,對一般圖像編碼字符識別系統(tǒng)進行了闡述,對關鍵環(huán)節(jié)進行了研究與分析,該方法對其它在線圖像編
3、碼字符系統(tǒng)的開發(fā)具有一定指導意義。</p><p> 1在線圖像編碼識別系統(tǒng)流程</p><p> 在線圖像編碼字符識別系統(tǒng)主要包括數字圖像的采集、存儲、圖像預處理、編碼圖像提取、編碼特征提取、編碼識別和后續(xù)處理等一些環(huán)節(jié),其流程圖如圖1所示。</p><p> 圖1 在線圖像編碼字符識別系統(tǒng)流程圖</p><p> 在線輪胎圖像編
4、碼字符識別系統(tǒng)要求對通過生產流水線上每一個輪胎采集含有輪胎編碼的圖像,然后通過對圖像的處理,提取出輪胎編碼特征,采用合適的識別算法將每一位編碼字符進行識別。由于輪胎編碼字符在輪胎上有一定變形,且攝像角度不同,得到的編碼圖像差異也很大,規(guī)律性差,所以編碼圖像的預處理和識別算法的選取顯得尤為重要。</p><p><b> 2圖像采集與存儲</b></p><p>
5、在線編碼圖像通常使用數碼攝像機、數碼照相機、數碼攝像頭等設備采集并輸入計算機進行處理,本系統(tǒng)采用QuickCamPro4000數碼攝像頭采集輪胎編碼圖像,直接按JPG格式存儲。</p><p> 編碼圖像一般都要先轉成BMP圖像格式,因為BMP格式己經成為PC領域事實上的標準——幾乎所有為Windows操作系統(tǒng)設計的圖像處理軟件都支持這種格式的圖像。BMP是Windows的原始位圖格式,它可以用于保存任意類型的
6、位圖數據,可以支持所有的屏幕分辨率和Windows所支持的顏色組合。一般情況下,為了保證顯示的高效率,它對圖像數據沒有任何的壓縮,所以一幅很小的位圖就可能占據相當大的空間。</p><p> BMP位圖文件包括位圖文件頭、位圖信息頭、調色板、位圖數據區(qū)四個部分,位圖文件頭由14個字節(jié)構成,位圖信息頭由40個字節(jié)構成,調色板的大小取決于色彩數,單色圖像調色</p><p> 板占8個字節(jié)
7、,16色圖像調色板占64個字節(jié),256色圖像調色板占1024個字節(jié),224色圖像沒有調色板,位圖數據區(qū)內數據按行順序自下而上、自左而右排列。</p><p><b> 3圖像預處理</b></p><p> 圖像預處理主要包括有:圖像灰度化、圖像降噪與增強、編碼區(qū)邊緣檢測、圖像幾何校正、編碼區(qū)圖像提取、編碼圖像二值化、字符分割、字符歸一化等。下面介紹幾個關鍵環(huán)節(jié)的
8、處理過程。</p><p> 3.1 圖像灰度化處理</p><p> 編碼圖像通常是彩色的,實際識別用的圖像是灰度圖,所在需要先將彩色編碼圖像轉換為灰度圖像。在RGB顏色模型中,如果R=G=B,則顏色(R,G,B)表示一種黒白顏色,其中R=G=B的值叫灰度值,灰度化處理就是使彩色的R、G、B分量值相等的過程。常用灰度化處理方法是加權平均值法,即</p><p>
9、; R=G=B=(WRR+WGG+WBB)/3</p><p> 其中,WR、WG、WB分別是R、G、B的權值,實驗和理論證明,當WR=0.3, WG=0.59, WB=0.11時,即當R=G=B=0.30R+0.59G+0.11B時,能得到最合理的灰度圖像。</p><p> 3.2 圖像增強處理</p><p> 3.2.1 直接灰度變換</p&g
10、t;<p> ?、倬€性灰度變換:假設圖像灰度是線性變化的,如原圖像f(x,y)灰度范圍為[a,b],要求變換后圖像灰度范圍達到[c,d],根據線性規(guī)律,則變換后圖像g(x,y)為:</p><p><b> (1)</b></p><p> ?、诜蔷€性變換——對數變換和指數變換。當需要擴展低灰度區(qū)、壓縮高灰度區(qū)時使用對數變換,當需要擴展高灰度區(qū)時使用指
11、數變換。</p><p> 3.2.2 平滑濾波—降噪</p><p> 由于噪聲對應圖像中的區(qū)域邊緣等灰度值具有較大較快變化的部分,屬高頻分量,所以使用低通濾波器(即平滑濾波器)降噪。同時平滑還可以使圖像模糊,有利于在提取較大的目標前去除較小的細節(jié)或將目標內的小間斷連接起來。</p><p> 平滑降噪的方法是使用模板對圖像進行卷積運算,線性平滑濾波器最常
12、用的模板是如圖2所示的3×3模板,將此模板與圖像中像素按如下方法進行卷積運算,可得到平滑降噪的圖像。</p><p> ?、賹⒛0逶趫D中漫游,并將模板中心與圖中每個像素位置重合;</p><p> ②將模板上系數與模板下對應像素相乘;</p><p><b> ?、蹖⑺谐朔e相加;</b></p><p>
13、?、軐⒑唾x給圖中對應模板中心位置的像素。</p><p> 非線性平滑濾波器最常用的是中值濾波器,它將區(qū)域中所有的值按大小進行排序,將排序后位于中間的像素值賦予中心像素。中值濾波可有效地去除隨機噪聲,能得到較好的視覺效果。</p><p> 3.3 編碼區(qū)邊緣檢測</p><p> 邊緣是灰度值不連續(xù)的結果,可利用求一階和二階導數的方法檢測到。因為在邊緣地帶導
14、數值大,而非邊緣的地方導數值小。由于數字圖像是離散的,不能求導數,可以通過卷積的方法用差分近似代替微分。</p><p> 效果較好的邊緣檢測算法是Sobel算子。Sobel算子是一種梯度幅值,分別利用垂直算子Sx、水平算子Sy來獲取編碼區(qū)垂直邊緣和水平邊緣,即在水平和垂直方向上使用如圖3所示的兩個不同的卷積模板,得到如圖4所示的邊緣檢測結果。</p><p> 圖2 平滑濾波器模板
15、 圖3 Sobel邊緣檢測模板 圖4 Sobel算子邊緣檢測結果</p><p> 3.4 圖像幾何校正</p><p> Hough變換可以檢測出編碼區(qū)圖像傾斜角度,根據此角度進行旋轉變換可使編碼區(qū)圖像得到校正。</p><p> Hough變換可以將圖像空間XY中的直線(y=px+q)檢測問題轉換到參數空間PQ中點的檢測問題,在參數空間PQ里,建立一
16、個累加數組Sum(p,q),對每一個圖像空間中給定邊緣點,讓p取遍所有可能值,根據直線方程q=-xp+y計算出對應的q,對Sum(p,q)進行累加,得到Sum(p,q)的值就是在(p,q)處共線的點的個數,(p,q)的值就是圖像空間中直線的斜率和截距,由斜率得到圖像編碼區(qū)水平邊緣角度。</p><p><b> 3.5 字符切割</b></p><p> 通過對編
17、碼字符區(qū)直接進行水平掃描,由字符間距一般可以將字符區(qū)域分割出來。</p><p> 也可以通過對編碼字符區(qū)做垂直方向投影運算,根據字符大致寬度與字符總數,對字符進行切割。如圖5所示是編碼字符區(qū)及對應垂直投影圖。</p><p> 圖5 編碼字符及對應垂直投影 圖6 線性插值示意圖</p><p> 3.6 字符歸一化處理</p>
18、<p> 對分割出的字符從四個方向掃描,確定字符邊界,然后采用線性插值方法對每個字符作歸一化處理,使每個字符歸一為32×16點陣。圖6為線性插值示意圖,根據線性原理,f(x1)可由公式(2)計算:</p><p><b> ?。?)</b></p><p><b> 4識別算法設計</b></p><p
19、> 字符識別一般采取特征判別或模板匹配的方法,特征判別是根據特征抽取的程度分階段的、用結構分析的辦法完成字符的識別。模板匹配即是根據字符的知識采取按形匹配的方法,模板匹配一般分為兩類:一類是直接利用輸入的二維平面圖像與字典中記憶的圖形進行匹配;另一類是抽出部分特征與字典進行匹配。</p><p> 輪胎編碼圖像中字符僅涉及部分英文字符和10個阿拉伯數字,字符較少,結構相對簡單,因此具體識別時,既可以采用
20、圖形匹配的方法,也可以采用結構分析的方法。但由于輪胎上編碼字符有一定變形,且有斷裂現象,所以直接模板匹配與直接特征抽取方法識別率都不理想,本系統(tǒng)使用了模板匹配與特征識別相結合的基于特征加權的模板匹配識別算法,其字符識別率比簡單模板匹配算法和特征識別算法識別率都有不同程度的提高。</p><p> 基于特征加權的模板匹配識別算法基本思路是:給模板中有字符筆畫的點分配不同的權重,位于筆畫中心的點權重最高,位于筆畫邊
21、緣的點權重最低,然后將樣本模板與標準模板逐點模糊匹配,按模糊識別規(guī)則識別。 </p><p><b> 5結論</b></p><p> 本本文結合輪胎編碼識別系統(tǒng)的實現對在線圖像字符編碼識別系統(tǒng)的設計進行了闡述,提出了一種模板匹配與特征匹配相結合的識別算法,該方法對傳統(tǒng)的模板匹配算法進行了改進,提高了變形、斷裂等字符的識別率。這種方法在試驗中得到了驗證,取得了令
22、人滿意的效果。</p><p> 文結合輪胎編碼識別系統(tǒng)的實現對在線圖像字符編碼識別系統(tǒng)的設計進行了闡述,提出了一種模板匹配與特征匹配相結合的識別算法,該方法對傳統(tǒng)的模板匹配算法進行了改進,提高了變形、斷裂等字符的識別率。這種方法在試驗中得到了驗證,取得了令人滿意的效果。</p><p><b> 外文原文(復印件)</b></p><p>
23、; The Development of A Kind of Online Image Code Recognition System</p><p> Abstract: This paper describes the design and the implement of online image coding char recognition system. It analyses and resea
24、rches the important contents about the system. Then it provides the solutions of main problems. In recognition algorithm, combining template matching with feature recognition, it put forword an improved template matching
25、 algorithm based on feature weights. The algorithm can obviously improve the char recognition ratio.</p><p> Keyword: image processing; pattern recognition; feature weights; software design</p><p
26、> 0 Introductions</p><p> Character recognition of image coding is still the subject of intense study at home and abroad, it has broad applications, such as Automatic number plate recognition, postal co
27、de of the automatic identification, automatic reading papers, reports, automatic processing, because of this online image coded character recognition has some common, this paper online tire coding character recognition s
28、ystem for the general image coding character recognition system has been elaborated on the key link of t</p><p> An online image coding identification system processes</p><p> Online image cod
29、ing character recognition system includes digital image capture, storage, image preprocessing, encoding the image extraction, feature extraction coding, coding identification and follow-up treatment of some aspects of it
30、s flow chart shown in Figure 1.</p><p> Figure 1-line character recognition image coding system flowchart</p><p> Online tire image coding character recognition system requires the production
31、pipeline through the acquisition of each tire with tire encoded image, and then through image processing, coding to extract features of the tire, using the appropriate recognition algorithm to identify each coded charact
32、er. Tire coding characters as a certain deformation in the tires, and different camera angles, are also great differences in the coding images, regularity is poor, so coded image preprocessing and recog</p><p&
33、gt; Image Acquisition and Storage</p><p> Line coding commonly used digital camera images, digital cameras, digital video cameras capture and processed in computer, the system uses QuickCamPro4000 tire cod
34、ing digital camera image capture, directly from JPG format.</p><p> Coded images generally must first convert BMP image format, because the BMP format has become the de facto standard PC in the field - almo
35、st all of the Windows operating system designed for image processing software to support this format of the image. BMP is the original Windows bitmap format, which can be used to save any type of digital map data, can su
36、pport all Windows supported screen resolution and color combination. Under normal circumstances, in order to ensure the display of high effici</p><p> BMP bitmap file includes the bitmap file header, bitmap
37、 information header, palette, bitmap data area of four parts, bitmap file header from 14 bytes constitute the bitmap header from 40 bytes composition, tone color palette depends on the number of monochrome color images.&
38、lt;/p><p> Board accounted for 8 bytes, 16-color palette images accounted for 64 bytes, 256-color palette image 1024 bytes total, 224-color images without color palette, the bitmap data from the region under t
39、he order of the data by row and on the arrangement from left to right.</p><p> Preprocessing</p><p> Image preprocessing includes are: gray image, image noise reduction and enhancement, coding
40、, edge detection, image geometry correction, image coding region of extraction, encoding image binarization, character segmentation, character normalization and so on. Here are some key aspects of the process.</p>
41、<p> gray image processing</p><p> Images are usually color coded, the actual identification with the image is grayscale, where the need to convert first color-coded images to grayscale. In the RGB c
42、olor model, if R = G = B, then color (R, G, B) indicates a Black white color, in which R = G = B is called the value of gray value, gray level processing is to make the color of the R , G, B component value equal to the
43、process. Gray-scale processing methods are commonly used weighted average method, that is,</p><p> R = G = B = (WRR + WGG + WBB) / 3</p><p> Which, WR, WG, WB are the R, G, B the weight of exp
44、erimental and theoretical proof, when WR = 0.3, WG = 0.59, WB = 0.11, that is when R = G = B = 0.30R +0.59 G +0.11 B, can be the most reasonable grayscale.</p><p> 3.2 image enhancement processing</p>
45、<p> 3.2.1 Direct gray-scale transformation</p><p> ① linear gray level transformation: if the image gray scale is linear, as in the original image f (x, y) gray-scale range of [a, b], asked the tra
46、nsformed image intensity range of up to [c, d], According to the linear law, the transformed image g (x, y) as:</p><p><b> (1)</b></p><p> ② nonlinear transformation -- log transfo
47、rmation and exponential transformation:When the need to expand low gray zone, gray zone of high compression used on the log transformation, when the need to expand the use of high gray area index transformation.</p>
48、;<p> 3.2.2 smoothing filter - Noise Reduction</p><p> As the noise in the area corresponding to the edge of the image gray value of such rapid change with a larger part is a high frequency, so the
49、use of low-pass filter (ie, smoothing filter) noise. At the same time can make the image fuzzy smoothing is beneficial to the larger goal of the extraction prior to removal of the smaller details or to target the small i
50、nterruption link.</p><p> Smoothing noise reduction method is to use the template on the image convolution operation, linear smoothing filter is the most commonly used template is shown in Figure 2 of the 3
51、 × 3 template, this template and image in pixels by the following method of convolution , get smooth image noise reduction.</p><p> In the figure, roaming the template and the template center and map l
52、ocation of each pixel overlap;</p><p> the template on the coefficient multiplied with the template under the corresponding pixel;</p><p> add all the product;</p><p> It will as
53、sign the figure corresponds to the template and the center of the pixel.</p><p> The most commonly used non-linear smoothing filter is median filter, it will all of the values of the region are sorted accor
54、ding to size, will be sorted in the middle of the pixel values given to the center pixel. Median filter can effectively remove the random noise, can get a better visual effect.</p><p> Edge detection coding
55、</p><p> Edge is the result of discrete gray value can be used to request the first and second derivative method to detect. Because the derivative of the edge of a large area, rather than the local derivati
56、ve of the edge of the small. As the digital image is discrete, not the derivative, convolution method can replace the differential with the differential approximation.</p><p> Is better Sobel edge detection
57、 algorithm is operator. Sobel operator is a gradient amplitude, respectively, using vertical operator Sx, Sy operator to obtain the level of the coding region of the vertical edges and horizontal edges, that is, the hori
58、zontal and vertical directions as shown in Figure 3 using two different volumes product template, get the edge as shown in Figure 4 results.</p><p> Figure 2 smoothing filter template Figure 3 Sobel edge de
59、tection template</p><p> Figure 4Sobeledgedetection operator</p><p> Image Rectification</p><p> Hough transform can detect the coding region of the image angle, the angle of rot
60、ation according to the coding region of the image transformation can be corrected.</p><p> Hough transform to the image space XY of the line (y = px + q) parameter space detection problem is transformed int
61、o the mid-point of detection PQ, PQ in the parameter space, the establishment of a cumulative array Sum (p, q), for each given the edge in image space, let p taken over all possible values, according to linear equation q
62、 =- xp + y to calculate the corresponding q, on the Sum (p, q) to accumulate, by Sum (p, q) the value of the is the (p, q) point total of the number line, (p, q) is </p><p> Character Cutting</p><
63、;p> Coded character area on the level of scanning directly from the character spacing can generally be out of character segmentation. Can also be done by coded character area vertical projection operation, according
64、to the character width and character less the total number of characters to be cut. Figure 5 is a coded character areas and the corresponding vertical projection.</p><p> Figure 5 encoded characters and the
65、 corresponding Figure 6 Schematic diagram of </p><p> vertical projection linear interpolation</p><p> Character normalization</p><p> The char
66、acter of the segmented into four scans to determine the character boundaries, and then use linear interpolation for each character for normalized so that each character is normalized to 32 × 16 lattice. Figure 6 Sch
67、ematic diagram of linear interpolation, according to linear theory, f (x1) by the formula (2) Calculation:</p><p><b> (2)</b></p><p> Identification algorithm</p><p>
68、 To determine the general characteristics of character recognition or template matching method, Feature identification is based on the degree of feature extraction stages, complete with a structural analysis approach to
69、character recognition. Template matching that is based on knowledge of the characters take shape matching method according to the template matching is generally divided into two categories: direct use of the imported two
70、-dimensional plane images and dictionary matching graphics me</p><p> Tire coding image only some of the characters and English characters and 10 Arabic numerals, characters less, the structure is relativel
71、y simple, so when the specific identification, either graphical matching method, you can also use structural analysis. However, the tires have a certain deformation of character encoding, and there is breakage, so a dire
72、ct template matching and feature extraction methods to identify directly rate is unsatisfactory, the system uses a template matching and feature</p><p> Feature-based weighted template matching recognition
73、algorithm basic idea is: to the template in character stroke of points assigned different weights, in the stroke center point of the highest weight, in the stroke edge point of the weight minimum, then the sample templat
74、es and Standard Template point by point fuzzy matching, recognition by fuzzy recognition rules.</p><p> Conclusion</p><p> In this paper, coded tire identification system character encoding to
75、 achieve on-line image recognition system design was described, a template matching and feature matching recognition algorithm combines the method of the traditional template matching algorithm is improved, improved defo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 畢業(yè)論文外文翻譯-一種在線圖像編碼識別系統(tǒng)的設計
- 一種目標識別調查仿生的圖像處理【外文翻譯】
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)
- 一種基于圖像識別的目標區(qū)域分割法
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(譯文)
- 基于圖像分割技術的道路識別系統(tǒng)設計與實現.pdf
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(英文)
- 外文翻譯--圖像分割
- 外文翻譯--圖像分割
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(英文).pdf
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(譯文).docx
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(譯文).docx
- 圖片分割外文翻譯--一種可重構的嵌入式彩色圖像分割處理軟件系統(tǒng)(英文).pdf
- 一種混合無監(jiān)督圖像分割算法.pdf
- 一種基于新的圖像力的水平集MR圖像分割.pdf
- 一種在線康復訓練狀態(tài)識別系統(tǒng)的設計及研究.pdf
- 一種腦MRI圖像的混合分割模型.pdf
- 基于噪聲模型的一種新型圖像分割.pdf
- 示溫漆彩色圖像分割與溫度識別系統(tǒng).pdf
評論
0/150
提交評論