TWI522934B - Gyro sensor license plate recognition system for smart phone and method thereof - Google Patents

Gyro sensor license plate recognition system for smart phone and method thereof Download PDF

Info

Publication number
TWI522934B
TWI522934B TW103100134A TW103100134A TWI522934B TW I522934 B TWI522934 B TW I522934B TW 103100134 A TW103100134 A TW 103100134A TW 103100134 A TW103100134 A TW 103100134A TW I522934 B TWI522934 B TW I522934B
Authority
TW
Taiwan
Prior art keywords
license plate
image
component
processing
smart phone
Prior art date
Application number
TW103100134A
Other languages
Chinese (zh)
Other versions
TW201528159A (en
Inventor
Zun-Mu Wang
Geng-Cheng Lin
jing-yuan Su
Original Assignee
Nat Univ Chin Yi Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nat Univ Chin Yi Technology filed Critical Nat Univ Chin Yi Technology
Priority to TW103100134A priority Critical patent/TWI522934B/en
Publication of TW201528159A publication Critical patent/TW201528159A/en
Application granted granted Critical
Publication of TWI522934B publication Critical patent/TWI522934B/en

Links

Landscapes

  • Character Input (AREA)
  • Image Analysis (AREA)

Description

智慧型手機之陀螺儀感測器車牌辨識系統及其方法 Gyro sensor license plate recognition system for smart phone and method thereof

本發明係有關一種智慧型手機之陀螺儀感測器車牌辨識系統及其方法,尤指一種可以達到隨機辨識車輛車牌字元的影像辨識技術。 The invention relates to a gyroscope sensor license plate recognition system and a method thereof for a smart phone, in particular to an image recognition technology capable of randomly identifying a vehicle license plate character.

按,車牌辨識系統是一種在影像處理領域中常見的影像辨識技術。習知車牌辨識系統大多數是建置於固定型攝影設備,並搭配計算機連結,互相傳遞資訊進行運算。至於其應用層面,則如e化停車場車位管理系統、交通違規車輛偵測系統,以及贓車辨識系統等。在設置這些類型的系統時,可以由常理推斷車輛會行經之可預測路線,而使得車牌資訊落入系統偵測範圍內,因此,車牌辨識系統只要搭配架設固定監視器,對準特定角度攝影,就可以預先取得車牌大概位置的影像並回傳,進而運算獲得結果。再者,車牌辨識系統已發展出許多成熟的算法與其主題應用,透過各種不同的演算法所開發出的系統,其效能也各有千秋,以普遍所見之系統流程,來區分其演算法與處理效果,可被分為下列幾個部分:影像前處理,例如灰階轉換如附件參考文獻[3]所示、空間濾波(平滑如附件參考文獻[4]所示,及銳化如附件參考文獻[5]所示、二值化(全域、或區域二值化如附件參考文獻[6]所示)、邊緣偵測如附件參考文獻[7]所示、直方圖均勻化如附件參考文獻[8]所示,以及車牌歪斜校正如附件參考文獻[9]所示,主要用於銜接系統主要演算法,取得系統所需之資訊、預先對輸入影像作 處理,使影像達到最理想的狀況,提升系統整體效能;車牌定位,主要目的是搜尋影像中車牌的位置,相關演算法如特徵密集度的判定如附件參考文獻[10]、梯度變化統計法如附件參考文獻[11]等;車牌字元切割,車牌定位結果通常包含著車牌字元,較常見的流程是透過切割將字元分離出來,例如區塊標記法(或稱為連通物件法)如附件參考文獻[12]所示、字元邊界搜尋法等,也有人曾經提出無須切割字元的作法,例如字元特徵解析如附件參考文獻[13]所示;後處理,假設由車牌字元切割階段所得到的車牌字元不甚理想,便會在辨識字元之前,對影像進行後處理加以修正,例如字元破損偵測與修正;車牌字元辨識,用來辨識字元的主要演算法,例如樣板特徵比對法、類神經網路如附件參考文獻[14]、最鄰近法與階層式比對如附件參考文獻如附件參考文獻[15]所示、字元八方向特徵投影法如附件參考文獻[16]所示,以及模糊(Fuzzy)理論如附件參考文獻[17]所示等。此外,歪斜車牌偵測方面,如附件參考文獻[18]所示、傾斜字元切割如附件參考文獻[19]所示。 According to the license plate recognition system, it is a common image recognition technology in the field of image processing. Most of the conventional license plate recognition systems are built on fixed-type photographic equipment, and are connected with computers to transfer information to each other for calculation. As for its application level, it is such as e-car parking lot management system, traffic violation vehicle detection system, and brake identification system. When setting up these types of systems, it is possible to infer from the common sense that the vehicle will travel through the predictable route, and the license plate information falls within the system detection range. Therefore, the license plate recognition system only needs to be equipped with a fixed monitor to align the camera at a specific angle. It is possible to obtain an image of the approximate position of the license plate in advance and return it, and then calculate the result. Furthermore, the license plate recognition system has developed many mature algorithms and their thematic applications. The systems developed through various algorithms have their own performances, and the algorithms and processing effects are distinguished by the system flow that is generally seen. Can be divided into the following parts: image pre-processing, such as gray-scale conversion as shown in the attached reference [3], spatial filtering (smoothing as shown in the attached reference [4], and sharpening as attached reference [5] ] shown, binarized (global, or regional binarization as shown in the attached reference [6]), edge detection as shown in the attached reference [7], histogram homogenization as attached reference [8] As shown, and the license plate skew correction is shown in the attached reference [9], which is mainly used to connect the main algorithms of the system, obtain the information required by the system, and pre-process the input image. Processing, to achieve the best image, improve the overall performance of the system; license plate positioning, the main purpose is to search for the location of the license plate in the image, the correlation algorithm such as feature density determination such as the attached reference [10], gradient change statistics such as Attachment reference [11], etc.; license plate character cutting, license plate positioning results usually contain license plate characters, the more common process is to separate the characters by cutting, such as block marking method (or connected object method) Attached to the reference [12], the character boundary search method, etc., some people have proposed that there is no need to cut characters, such as character feature analysis as shown in the attached reference [13]; post-processing, assuming license plate characters The license plate characters obtained during the cutting stage are not ideal. The image will be post-processed and corrected before character recognition, such as character breakage detection and correction. License plate character recognition is used to identify the main calculation of characters. Methods such as template characterization, neural networks such as attachment references [14], nearest neighbors and hierarchical comparisons such as annex references such as annex references [15] Shown, wherein the direction of projection eight characters accessory Reference [16], the blur and (of Fuzzy) theory as shown in Annex reference [17]. In addition, for skewed license plate detection, as shown in the attached reference [18], the oblique character cut is shown in the attached reference [19].

廣義來說,在影像處理的領域中,許多演算法流程都包括了影像前處理步驟,其目的在於為了使之後的演算法有更好的成效、更快的處理速度,或者是為了得到更符合演算法所需要之影像資訊等;在各式各樣的應用算法之中,影像前處理於車牌辨識領域中尤為常見,究其因在於目標影像所包含之內容,除了車牌本身,尚有其他如複雜背景資訊、目標所在之環境因素,以及目標本身及其周圍之狀態等等,是以配合主要演算法將如何應用前處理結果為前提,而去選用適合的前處理方式,進而搭配成為車牌辨識系統。而在車牌辨識的領域中,常見的影像前處理類型與其 目標,可概略地包括下列幾種:第一,降低影像資訊量,如灰階轉換、色彩濾除、限縮偵測範圍等,此類演算法通常都是透過降低影像資訊之複雜度,以加快系統後續步驟的處理速度,或是透過限縮偵測範圍,並同時保留了偵測目標,藉此提升了後續步驟的系統運行成效;第二,調整影像資訊強度類型,如邊緣梯度強化、直方圖等化、高斯模糊、改變影像對比等,此類型算法主要目的在於突顯偵測目標、去除雜訊、降低影像受到環境影響的程度等;第三種是屬於前置作業型,為了配合相應的主要演算法而提出的各種預處理,如影像環境亮比值計算如附件參考文獻[22]所示、影像尺度縮放等,此部分之算法銜接了車牌辨識系統主要演算流程,其主要目標在於找到影像中車牌的位置、提高定位準確率、或是加快計算的速度等。 Broadly speaking, in the field of image processing, many algorithmic processes include image pre-processing steps, in order to make the subsequent algorithms have better results, faster processing speed, or to get more consistent The image information required by the algorithm; among the various application algorithms, image pre-processing is especially common in the field of license plate recognition. The reason is that the content contained in the target image, in addition to the license plate itself, there are other such as The complex background information, the environmental factors of the target, and the state of the target itself and its surroundings are based on the premise that the main algorithm will apply the pre-processing results, and then select the appropriate pre-processing method to match the license plate identification. system. In the field of license plate recognition, the common type of image pre-processing is The target can roughly include the following: First, reduce the amount of image information, such as grayscale conversion, color filtering, limited detection range, etc., such algorithms are usually reduced by reducing the complexity of image information. Accelerate the processing speed of the subsequent steps of the system, or limit the detection range, while retaining the detection target, thereby improving the system operation efficiency of the subsequent steps; second, adjusting the image information intensity type, such as edge gradient enhancement, Histogram equalization, Gaussian blur, change of image contrast, etc. The main purpose of this type of algorithm is to highlight the detection target, remove noise, reduce the degree of image impact on the environment, etc. The third type belongs to the pre-operation type, in order to match the corresponding The various pre-processing proposed by the main algorithm, such as image environment brightness ratio calculation, as shown in the attached reference [22], image scale scaling, etc., this part of the algorithm links the main calculation process of the license plate recognition system, its main goal is to find The position of the license plate in the image, the accuracy of positioning, or the speed of calculation.

此外,經本申請人檢索後發現,與本案相關之專利前案如中華民國發明公開第200943931號『可辨識車牌的手持式攝影機』;中華民國發明第I236638號『用以辨識車牌之多重辨識系統及方法』;中華民國發明公開第201234287號『車牌號碼辨識方法』;中華民國發明公開第201220213號『智慧型影像式車牌自動辨識及監控系統』;及中華民國發明第584811號『影像結構式車牌自動辨識系統』等專利所示,據查,該等專利雖然皆可達到辨識車牌的功效;惟,該等專利並未建置直覺式限縮影像區域及影像角度校正等機能設置,故後續處理的影像尺寸較無法有效縮減,以致影像處理速度較慢,而且無法解決校正智慧型手機所必須面對之手持搖晃所致的影像角度歪斜缺失;不僅如此,該等專利並無條件式迭代二值化演算的機能建置,故無法改善影像二值化的結果數值,以致車牌位置偵測擷取與車牌字元切割等處理無法精確的輸出,從而影響車牌字元的辨識成功機 率,故而該等專利確實未臻完善,仍有再改善的必要性。 In addition, after searching by the applicant, it was found that the patent related case related to the case is, for example, the Republic of China Invention Disclosure No. 200943931 "Handheld Camera with Recognizable License Plate"; the Republic of China Invention No. I236638 "Multiple Identification System for Identifying License Plates and Method]; Republic of China Invention Disclosure No. 201234287 "License Plate Number Identification Method"; Republic of China Invention Disclosure No. 201220213 "Intelligent Image Type License Plate Automatic Identification and Monitoring System"; and Republic of China Invention No. 584811 "Image Structured License Plate Automatic According to the patents such as the identification system, it is found that although these patents can all achieve the effect of identifying the license plate; however, these patents do not have the function of setting the intuitive limited image area and image angle correction, so the subsequent processing The image size can not be effectively reduced, so that the image processing speed is slow, and the image angle skew caused by the hand-shake that must be faced by the smart phone cannot be solved. Moreover, the patents have no conditional iterative binarization calculus. The function is built, so the result of image binarization cannot be improved. The license plate position detection capture and the license plate character cutting and other processing can not accurately output, thus affecting the license plate character recognition success machine Rate, so these patents are indeed not perfect, there is still the need for further improvement.

有鑑於此,尚未有一種結合智慧型手機、直覺式限縮影像區域、影像角度校正及條件式迭代二值化演算等機能設置之車牌辨識技術的專利或是論文被提出,而且基於相關產業的迫切需求之下,本發明人等乃經不斷的努力研發之下,終於研發出一套有別於上述習知技術與專利的本發明。 In view of this, there is no patent or paper that combines the smart phone, intuitive limited image area, image angle correction and conditional iterative binary calculus to set the license plate recognition technology, and based on related industries. Under the urgent need, the present inventors have finally developed a set of inventions different from the above-mentioned prior art and patents through continuous efforts.

本發明第一目的,在於提供一種可以解決前述習知技術所致缺失的智慧型手機之陀螺儀感測器車牌辨識系統,主要是藉由直覺式限縮影像區域及影像角度校正等機能設置,除了使後續處理的影像尺寸得以有效縮減而加快影像處理速度之外,並可一併解決校正智慧型手機所必須面對之手持搖晃所致的影像角度歪斜缺失,進而使影像前處理與車牌位置偵測得以有效銜接。達成本發明第一目的採用之技術手段,係於智慧型手機設車牌辨識模組。車牌辨識模組可對智慧型手機所擷取之車牌的影像依序進行影像前處理、車牌位置偵測與擷取處理、車牌區域元件分割處理、車牌區域元件特徵萃取處理及車牌字元辨識處理,進而輸出車牌字元辨識結果資訊;其中,車牌辨識模組係對該感興趣區域之影像進行影像前處理;並擷取陀螺儀感測器所產生之角度訊號,以作為校正旋轉感興趣區域之影像的角度依據,俾能利用智慧型手機之方便性而達到隨機辨識車輛車牌影像之目的。 A first object of the present invention is to provide a gyro sensor license plate recognition system for a smart phone that can solve the above-mentioned conventional technology, which is mainly provided by an intuitively limited image area and an image angle correction function. In addition to the effective reduction of the image size of the subsequent processing to speed up the image processing speed, the image angle pre-processing and the license plate position caused by the hand-shake that must be faced by the correcting smart phone can be solved together. Detection is effectively connected. The technical means adopted to achieve the first object of the present invention is to provide a license plate recognition module for a smart phone. The license plate recognition module can perform image pre-processing, license plate position detection and capture processing, license plate area component segmentation processing, license plate area component feature extraction processing and license plate character recognition processing on the image of the license plate captured by the smart phone. And then outputting license plate character recognition result information; wherein, the license plate recognition module performs image pre-processing on the image of the region of interest; and extracts an angle signal generated by the gyroscope sensor as a corrected rotation region of interest According to the angle of the image, the user can use the convenience of the smart phone to achieve the purpose of randomly identifying the vehicle license plate image.

本發明第二目的,在於提供一種具備條件式迭代二值化功能的智慧型手機車牌辨識系統,主要是藉由條件式迭代二值化的演算流程建 置,以有效改善影像二值化的結果,使車牌位置偵測擷取與車牌字元切割等處理可以獲得更為精確的輸出成效,進而提升車牌字元的辨識成功機率。達成本發明第二目的採用之技術手段,係包括球體、運動感測模組及供電模組。第一無線傳輸模組用以感測球體運動狀態而產生運動感測數據。供電模組用以供電給運動感測模組及第一無線傳輸模組,使第一無線傳輸模組將運動感測數據無線傳輸至外界,以供後續之利用。其中,當該車牌辨識模組於該車牌位置偵測與擷取處理而得到錯誤結果時,則進行條件式迭代二值化處理,於該條件式迭代二值化處理時,該車牌辨識模組則計算框選車牌矩形比例,並判斷該比例是否大於預設之比例門檻值;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則判斷是否完成所預先設定的迭代次數;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則重新修正該門檻值,並對該影像重新進行二值化處理後回到該車牌位置偵測與擷取處理的步驟。 A second object of the present invention is to provide a smart phone license plate recognition system with conditional iterative binarization function, which is mainly constructed by a conditional iterative binarization calculation process. In order to effectively improve the result of image binarization, the treatment of license plate position detection and license plate character cutting can obtain more accurate output results, thereby improving the probability of recognition of license plate characters. The technical means adopted for achieving the second object of the present invention include a sphere, a motion sensing module and a power supply module. The first wireless transmission module is configured to sense a motion state of the sphere to generate motion sensing data. The power supply module is configured to supply power to the motion sensing module and the first wireless transmission module, so that the first wireless transmission module wirelessly transmits the motion sensing data to the outside for subsequent use. Wherein, when the license plate recognition module obtains an error result in the license plate position detection and capture processing, conditional iterative binarization processing is performed, and in the conditional iteration binarization processing, the license plate recognition module Then calculate the ratio of the license plate rectangle and determine whether the ratio is greater than the preset proportional threshold; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no, it is determined whether the preset iteration is completed. The number of times; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no, the threshold value is re-corrected, and the image is re-binarized and returned to the license plate position detection and capture. The steps of processing.

10‧‧‧智慧型手機 10‧‧‧Smart mobile phone

11‧‧‧顯示屏幕 11‧‧‧ display screen

20‧‧‧影像 20‧‧‧ images

21‧‧‧感興趣區域 21‧‧‧Areas of interest

21a‧‧‧矩形框選區域 21a‧‧‧Rectangular selection area

30‧‧‧車牌辨識模組 30‧‧‧ License Plate Identification Module

圖1係本發明車牌辨識模組系統流程示意圖。 1 is a schematic flow chart of a license plate recognition module system of the present invention.

圖2係本發明條件式迭代二值化流程圖示意圖。 2 is a schematic diagram of a conditional iterative binarization flow chart of the present invention.

圖3係本發明影像中之感興趣區域的示意圖。 Figure 3 is a schematic illustration of a region of interest in an image of the present invention.

圖4係本發明影像旋轉校正示意圖。 Fig. 4 is a schematic view showing the image rotation correction of the present invention.

圖5係本發明以水平變化量標記法掃瞄車牌字元的實施示意圖。 FIG. 5 is a schematic diagram of the implementation of the present invention for scanning license plate characters by the horizontal change amount marking method.

圖6係本發明以水平變化量標記法掃瞄車牌字元的另一實施示意圖。 FIG. 6 is another schematic diagram of the present invention for scanning license plate characters by the horizontal change amount marking method.

圖7係本發明候選軸標記示意圖。 Figure 7 is a schematic illustration of a candidate axis mark of the present invention.

圖8係本發明區塊掃描示意圖。 Figure 8 is a schematic diagram of block scanning of the present invention.

圖9係本發明車牌定位結果示意圖。 Figure 9 is a schematic diagram showing the result of the license plate positioning of the present invention.

圖10係本發明車牌區域之元件邊界示意圖。 Figure 10 is a schematic illustration of the boundary of the components of the license plate area of the present invention.

圖11係本發明元件之特徵二元碼萃取示意圖。 Figure 11 is a schematic illustration of the feature binary code extraction of the elements of the present invention.

附件係本發明參考文獻。 Attachments are references to the present invention.

壹.本發明第一實施例壹. First embodiment of the present invention

請配合參看圖1、3及圖4所示,為達成本發明第一目之實施例,係於智慧型手機10設置一車牌辨識模組30。車牌辨識模組30用以對智慧型手機10內建之影像擷取裝置(圖未示)所擷取之包含有車牌的影像20依序進行影像前處理、車牌位置偵測與擷取處理、車牌區域元件分割處理、車牌區域元件特徵萃取處理及車牌字元辨識處理,進而輸出車牌字元辨識結果資訊;其中,車牌辨識模組30於影像20設定有一用以限縮影像範圍的感興趣區域21。而車牌辨識模組30僅對感興趣區域21之影像進行該影像前處理。另,擷取該智慧型手機10內建之陀螺儀感測器所產生之角度訊號,以作為校正旋轉該感興趣區域21之影像的角度依據。其中,該影像前處理更包含依序對該感興趣區域21之該影像進行灰階轉換處理、高斯平滑處理及初次二值化處理。 Referring to FIG. 1 , FIG. 3 and FIG. 4 , in order to achieve the first embodiment of the present invention, a license plate recognition module 30 is disposed on the smart phone 10 . The license plate recognition module 30 is configured to sequentially perform image pre-processing, license plate position detection and capture processing on the image 20 containing the license plate captured by the image capturing device (not shown) built in the smart phone 10. The license plate area component segmentation process, the license plate area component feature extraction process, and the license plate character recognition process, thereby outputting the license plate character recognition result information; wherein the license plate recognition module 30 sets a region of interest for limiting the image range in the image 20 twenty one. The license plate recognition module 30 performs the image pre-processing only on the image of the region of interest 21 . In addition, the angle signal generated by the gyro sensor built in the smart phone 10 is taken as an angle basis for correcting the image of the rotation of the region of interest 21. The image pre-processing further includes grayscale conversion processing, Gaussian smoothing processing, and initial binarization processing on the image of the region of interest 21 in sequence.

具體而言,該感興趣區域21可以是由使用者以觸控智慧型手機10之顯示屏幕11方式所選取的矩形框選區域21a;或是由車牌辨識模組30自定義的矩形框選區域21a,該矩形框選區域21a寬度為320個像素寬,高度則為240個像素高。進一步言之,該車牌辨識模組30係利 用陀螺儀感測器轉換後之Roll方向角θ roll ,以感興趣區域21之影像中心為旋轉軸心,將感興趣區域21之影像朝反方向旋轉θ roll 度,以完成影像的旋轉校正,該車牌辨識模組30並判斷θ roll 是否大於70度或小於-70度,當判段結果為是,則無須校正旋轉該感興趣區域21之影像。該車牌位置偵測與擷取處理係採用水平變化量標記法偵測車牌位置及擷取車牌區域影像,該車牌區域元件分割處理係採用邊界標記切割法將該車牌區域影像切割為複數個元件,該車牌區域元件特徵萃取處理係採用樣板特徵比對法依序對該複數個元件用以計算出足以描述該元件特徵的元件特徵值,該車牌辨識模組30建立有一資料庫,該資料庫儲存有複數特徵表,每一該特徵表寫入依序排列的元件類別,每一該特徵表之每一該元件類別對應寫入有一該元件特徵值,該車牌字元辨識處理係採用隨機森林法將各該元件之該元件特徵值逐一與各該特徵表進行比對,進而得到與各該元件相應的該元件類別,該元件類別包含字元及非字元,該字元包含數字及英文字母。 Specifically, the region of interest 21 may be a rectangular frame selection area 21a selected by the user in the manner of the display screen 11 of the touch smart phone 10; or a rectangular frame selection area customized by the license plate recognition module 30. 21a, the rectangular frame selection area 21a has a width of 320 pixels wide and a height of 240 pixels. Further, the license plate recognition module 30 uses the Roller angle θ roll converted by the gyro sensor to rotate the image of the region of interest 21 in the opposite direction with the image center of the region of interest 21 as the rotation axis. The θ roll degree is used to complete the rotation correction of the image, and the license plate recognition module 30 determines whether the θ roll is greater than 70 degrees or less than -70 degrees. When the judgment result is YES, it is not necessary to correct the image of the rotation of the region of interest 21 . The license plate position detection and capture processing system uses the horizontal change amount marking method to detect the license plate position and capture the license plate area image. The license plate area component division processing uses the boundary mark cutting method to cut the license plate area image into a plurality of components. The license plate area component feature extraction process uses a template feature comparison method to sequentially calculate a component feature value sufficient to describe the component feature, and the license plate recognition module 30 establishes a database, and the database is stored. There is a plurality of feature tables, each of which is written into a component class arranged in sequence, and each component class of the feature table corresponds to a feature value of the component, and the license plate character recognition process adopts a random forest method Comparing the component characteristic values of each component to each of the feature tables one by one, thereby obtaining the component class corresponding to each component, the component class containing characters and non-characters, the character including numbers and English letters .

貳.本發明第二實施例贰. Second embodiment of the present invention

請配合參看圖1~4所示,為達成本發明第二目之實施例,係於智慧型手機10設置一車牌辨識模組30。車牌辨識模組30用以對智慧型手機10內建之影像擷取裝置所擷取之包含有車牌的影像依序進行影像前處理、車牌位置偵測與擷取處理、車牌區域元件分割處理、車牌區域元件特徵萃取處理及車牌字元辨識處理,進而輸出車牌字元辨識結果資訊;其中,車牌辨識模組30於影像設定有一可供使用者直覺性操作選取或是系統設定且用以限縮影像範圍的感興趣區域21。而車牌辨識模 組30僅對感興趣區域21之影像進行該影像前處理。另,擷取該智慧型手機10內建之陀螺儀感測器所產生之角度訊號,以作為校正旋轉該感興趣區域21之影像的角度依據。當該車牌辨識模組30進行該車牌位置偵測與擷取處理而得到錯誤結果時,則進行條件式迭代二值化處理,於該條件式迭代二值化處理時,該車牌辨識模組30則計算框選車牌矩形比例,並判斷該比例是否大於預設之比例門檻值;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則判斷是否完成所預先設定的迭代次數;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則重新修正該門檻值,並對該影像重新進行二值化處理後回到該車牌位置偵測與擷取處理的步驟。 Referring to FIG. 1 to FIG. 4, in order to achieve the second embodiment of the present invention, a license plate recognition module 30 is disposed on the smart phone 10. The license plate recognition module 30 is configured to sequentially perform image pre-processing, license plate position detection and capture processing, license plate area component division processing on the image containing the license plate captured by the image capturing device built in the smart phone 10, The license plate area component feature extraction process and the license plate character recognition process, and then the license plate character recognition result information is outputted; wherein the license plate recognition module 30 is provided with an intuitive setting for the user to select or system settings and is used for limiting the image. The region of interest 21 of the image range. License plate recognition mode Group 30 performs this image pre-processing only on the image of region of interest 21. In addition, the angle signal generated by the gyro sensor built in the smart phone 10 is taken as an angle basis for correcting the image of the rotation of the region of interest 21. When the license plate recognition module 30 performs the license plate position detection and the capture processing to obtain an erroneous result, the conditional iterative binarization processing is performed, and in the conditional iterative binarization processing, the license plate recognition module 30 Then calculate the ratio of the license plate rectangle and determine whether the ratio is greater than the preset proportional threshold; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no, it is determined whether the preset iteration is completed. The number of times; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no, the threshold value is re-corrected, and the image is re-binarized and returned to the license plate position detection and capture. The steps of processing.

參.本發明技術特徵之具體實施Participate in the specific implementation of the technical features of the present invention 3.1感興趣區域設置3.1 Region of Interest Settings

假設桌上型電腦搭配監視器所建立的車牌辨識系統,設置了影像限縮範圍,其所適用的程度不如本案之智慧型手機車牌辨識系統,原因在於,前者得到的偵測畫面,處於固定視角,不能保證偵測目標一定會落入限縮區域中,勢必存在如系統建置地點之限制、有效計算範圍過小以致偵測不到車牌等缺點;而當如本案建置於智慧型手機10上,系統具有可攜性,其偵測車牌的影像來源,是從持續移動的角度,對靜態目標,或移動中車輛擷取而來。本發明所設置之感興趣區域21(ROI)不僅可以減少需要處理的影像範圍,加快系統處理速度,另一方面,也可以令使用者以較直覺(如以觸控方式選取影像範圍)的方式,先行鎖定車牌及其周遭,作為目標包含區域,提高找尋車牌的準確率,也間接影響後續的流程準確性。 Assume that the license plate recognition system established by the desktop computer and the monitor sets the image limiting range, which is not as applicable as the smart phone license plate recognition system of the present case. The reason is that the detection image obtained by the former is at a fixed viewing angle. There is no guarantee that the detection target will fall into the restricted area, and there are bound to be shortcomings such as the limitation of the system construction location, the effective calculation range is too small to detect the license plate, and the like, and when the case is built on the smart phone 10 The system is portable, and it detects the source of the license plate image from the perspective of continuous movement, from static targets, or moving vehicles. The region of interest (ROI) provided by the present invention can not only reduce the range of images to be processed, but also speed up the processing speed of the system, and on the other hand, the user can intuitively select the image range by touch. First, lock the license plate and its surroundings, as the target contains the area, improve the accuracy of finding the license plate, and indirectly affect the subsequent process accuracy.

請參看圖3所示,係展示了於顯示屏幕11上設置感興趣區域21(ROI)的示意圖,圖中可以看到影像20的正中央,有一虛線框出來的區域,此即為縮減過後的實際偵測區域,而縮減的計算方式,如下列公式(3.1)與(3.2)所示: Referring to FIG. 3, a schematic diagram of setting a region of interest 21 (ROI) on the display screen 11 is shown. In the figure, the center of the image 20 can be seen, and there is a region with a dotted line, which is the reduced area. The actual detection area, and the reduction calculation method, as shown in the following formulas (3.1) and (3.2):

圖3所示之影像係由智慧型手機10所擷取而來,其寬度與高度分別以WH表示,單位為像素(Pixel),在本發明中使用之智慧型手機10影像寬度為800個像素,而高度為480個像素;設置感興趣區域21(ROI)的原則是以使用者經驗為考量,係將限縮區域往顯示屏幕中央縮減,其目的在於令使用者比照未設置感興趣區域21(ROI)之前的使用習慣,有點像是在瞄準偵測目標的感覺;w'與h'為原始寬度與高度之單邊縮減幅度。本發明所使用的Ratio of Width,即縮減寬度比例為,而Ratio of Height,即縮減高度比例為¼;本發明是按照系統與車牌之距離比例為原則,縮減到與目標保持著一段基本的距離,而不致使擷取到的目標太大,若與目標太近,反而會增加系統的運算量,而關於比例設置的限制,將會有詳細的說明;經過計算後,本發明感興趣區域21(ROI)的實際寬度約為320個像素寬,高度則約為240個像素高。 The image shown in FIG. 3 is captured by the smart phone 10. The width and height are represented by W and H , respectively, and the unit is pixel (Pixel). The smart phone 10 used in the present invention has an image width of 800. The pixel is 480 pixels in height; the principle of setting the region of interest 21 (ROI) is based on user experience, and the constricted area is reduced to the center of the display screen, and the purpose is to make the user not interested in setting The usage habits before area 21 (ROI) are a bit like the feeling of aiming at the target; w 'and h ' are the unilateral reduction of the original width and height. The Ratio of Width used in the present invention, that is, the reduced width ratio is Ratio of Height, that is, the reduction height ratio is 1⁄4; the invention is based on the principle of the distance between the system and the license plate, and is reduced to a basic distance from the target without causing the target to be too large, if If the target is too close, it will increase the amount of calculation of the system, and the limitation on the ratio setting will be described in detail; after calculation, the actual width of the region of interest 21 (ROI) of the present invention is about 320 pixels wide and the height. It is about 240 pixels high.

3.2影像角度擷取與修正3.2 Image Angle Acquisition and Correction

陀螺儀感測器在感測到智慧型手機10旋轉時,於三軸方向之變量與名稱,以X軸為旋轉軸,稱之為翻滾旋轉(Pitch),以Y軸為旋轉 軸,則稱之為俯仰旋轉(Roll),而以Z軸為旋轉軸,稱之為偏擺旋轉(Yaw);當智慧型手機10平放時,三軸的旋轉概念會依據前述方式變動,在使用時,智慧型手機10通常會將螢幕水平面向使用者,此時三軸之旋轉變量,會與智慧型手機10平放時不同,即稱之為系統偵測視角。假設智慧型手機10平放時得到的Roll、Pitch,以及Yaw角度皆為零,當智慧型手機10轉為系統偵測視角時,如同螢幕之正面朝使用者旋轉Pitch方向90°,此時螢幕如同X-Z平面;為了避免使用者因為手持晃動,或其他原因得到的非水平影像,限制了可使用的演算法種類,來源影像會進行旋轉修正,而修正角度可由陀螺儀感測器所回傳的Roll值得知。當Pitch角為0°到90°之間時,則Roll值的變動範圍為90°到趨於179°,再從趨於-179°到-90°,而當Pitch角為90°到0°之間時,Roll值的變動範圍為90°到趨於0°,再從趨於-0°到-90°;由於系統是無法透過回傳值,來判斷Pitch角度正位於哪個範圍,故需設立一個轉換式,將Roll值變動範圍轉換,使其不會受到Pitch值影響,轉換式如下所示,經由公式(3.3)轉換,系統可以得到不受Pitch值影響之Roll方向角度值,接著系統便可透過G-Sensor回傳的轉換後角度,進行影像校正。 When the gyro sensor senses the rotation of the smart phone 10, the variable and the name in the three-axis direction, the X-axis is the rotation axis, which is called the Pitch rotation, and the Y-axis rotation. The axis is called the pitch rotation (Roll), and the Z axis is the rotation axis, which is called the yaw rotation (Yaw); when the smart phone 10 is laid flat, the three-axis rotation concept changes according to the above manner. In use, the smart phone 10 usually faces the screen horizontally, and the rotation variable of the three axes is different from that of the smart phone 10, which is called a system detection angle. Assume that the Roll, Pitch, and Yaw angles obtained when the smart phone 10 is laid flat are zero. When the smart phone 10 is turned into the system to detect the angle of view, as the front of the screen rotates the Pitch direction by 90° toward the user, the screen is displayed. Like the XZ plane; in order to avoid the user's non-horizontal image obtained by hand shaking or other reasons, the type of algorithm that can be used is limited, the source image will be rotated, and the correction angle can be returned by the gyroscope sensor. The Roll value is known. When the Pitch angle is between 0° and 90°, the Roll value varies from 90° to 179°, then from -179° to -90°, and when the Pitch angle is 90° to 0°. Between the time, the Roll value varies from 90° to 0°, and then from 0° to -90°. Since the system cannot pass the return value to determine which range the Pitch angle is in, it needs to be Set up a conversion type to convert the range of the Roll value so that it is not affected by the Pitch value. The conversion formula is as follows. By converting the formula (3.3), the system can obtain the Roll direction angle value that is not affected by the Pitch value, and then the system. Image correction can be performed through the converted angle returned by the G-Sensor.

3.3影像前處理3.3 Image pre-processing

本發明影像前處理係包括旋轉校正、高斯平滑,以及初次二值化等三個步驟,而為了確保智慧型手機10端系統的執行速度夠快,許多運算過程都是直接使用OpenCV的函式庫。影像之旋轉校正,是為了避免手 持搖晃的情形,而使某些演算法無法在智慧型手機車牌辨識系統中運用;修正的概念為利用陀螺儀感測器轉換後之Roll方向角θ roll ,以ROI影像中心為旋轉軸心,將感興趣區域ROI影像朝反方向旋轉θ roll 度,即完成影像修正校正。當系統進行旋轉修正(ROI大小為320×240),會判斷θ roll 是否大於70°或小於-70°,若為真,則視為無須校正之情形,也就是說過於大幅度的手持旋轉角度,車牌辨識模組30不會對ROI進行修正,如此就可以避免顯示錯誤的情形發生。接著,對感興趣區域21(ROI)進行高斯平滑的目的,其主要原因是系統為了得到較好的二值化結果,與提高車牌定位的準確率,而進行的影像平滑化處理,而影像二值化使用的方法為Otsu法。 The image pre-processing system of the present invention includes three steps of rotation correction, Gaussian smoothing, and initial binarization, and in order to ensure that the execution speed of the smart phone 10-terminal system is fast enough, many operations are directly using the OpenCV library. . The rotation correction of the image is to avoid the situation of hand-shake, and some algorithms cannot be used in the smart phone license plate recognition system. The concept of correction is to use the Roller angle θ roll after the gyro sensor is converted. The ROI image center is the rotation axis, and the ROI image of the region of interest is rotated by θ roll degrees in the opposite direction, that is, the image correction correction is completed. When the system performs rotation correction (ROI size is 320×240), it will judge whether θ roll is greater than 70° or less than -70°. If it is true, it is regarded as unnecessary correction, that is, too large hand-held rotation angle The license plate recognition module 30 does not correct the ROI, so that the display error can be avoided. Next, the purpose of Gaussian smoothing of the region of interest 21 (ROI) is mainly due to the image smoothing process performed by the system in order to obtain better binarization results and improve the accuracy of license plate location. The method used for value is the Otsu method.

3.4車牌位置偵測與擷取處理3.4 license plate position detection and capture processing

本發明係採用水平變化量標記法來偵測與擷取車牌的位置,在車牌辨識的領域中,統計影像中每一條水平線的顏色變化量、篩選,並且標記符合者,在搜尋影像中的車牌位置時,是屬於比較常見的作法,對於一個二值化影像來說,其概念為將影像輸入並逐行掃描,計算每一條水平線上的黑白變化次數,利用車牌字元排列出最少變化量,與最多變化量的情況,設定雙門檻,以標記符合的水平線。圖5、6所示為車牌字元排列中,水平線上黑白變化次數最少次(12次),以及最多次(36次)的組合,而統計與標記的方式如下所示:peak yn =peak yn +1,if pixel yn,xn pixel yn,xn+1 (3.4) The invention adopts the horizontal change amount marking method to detect and capture the position of the license plate. In the field of license plate recognition, the color change amount of each horizontal line in the image is counted, and the licensee is marked, and the license plate in the search image is searched. Position is a relatively common practice. For a binarized image, the concept is to input the image and scan it line by line, calculate the number of black and white changes on each horizontal line, and use the license plate characters to arrange the least amount of change. In the case of the most variable amount, set a double threshold to mark the horizontal line that matches. Figures 5 and 6 show the combination of the least number of black and white changes (12 times) and the maximum number of times (36 times) in the license plate character arrangement, and the statistics and markings are as follows: peak yn = peak yn +1, if pixel yn , xn pixel yn , xn +1 (3.4)

公式(3.4)中,peak yn 表示該水平線之變化次數,當掃描yn水 平軸,軸上每個xn位置的像素值,與下一個像素值比較,若像素值不同,則計一次變化,反之則不計數;公式(3.5)中,M表示標記狀態,當某yn軸變化量位於設置區間內,則將其視為候選軸標記起來,change之上下限包含了±4次的容錯量,以防車牌周圍資訊干擾了計算量。為了方便觀察,一般而言,左邊影像與右邊影像的標記軸線是互補的,車牌辨識模組30在找尋車牌時獲得了三個候選區域,在此分別標示為R a R b ,以及R c ,如圖7所示。且為方便觀察掃描示意圖,係將圖7~9之R b 區域高亮,並以虛線矩形框作為掃描區塊,由左至右計算每一個起點xn所代表的區塊內總共有多少顏色變化次數,並紀錄次數最多的區塊之起點xn,便可以此得到初步的定位結果。上述結果是建立在影像前處理效果良好的情況下得到的,假設目標區域遭受到周遭環境影響,使系統對感興趣區域21(ROI)影像進行初步二值化之後,失去理想的二值化車牌影像,則當系統計算水平變化量時,會標記不到屬於包含車牌的水平軸,使計算過程找到錯誤的車牌上下界,得到錯誤的上下界,也將計算出錯誤的車牌左右界,定位準確率就會下降。由於智慧型手機10內置鏡頭會因環境光亮而自動調整內部光圈,使得當車牌辨識模組30處於亮度極高的環境去擷取影像時,智慧型手機10為適應而使整體顯示變得較暗,陰影部分便隨之加深;假設存在著些許陰影並且部分涵蓋於車牌字元上,影像經二值化處理後將會使部份車牌字元消失,連帶影響標記法無法找出車牌正確的上下界。改善二值化受到環境影響的作法有兩個方向,一種是以改良演算法本身為導向,例如區域二值化法如附件參考文獻[8][23]所示。另一種則是以針對環境本身問題進行改善,如判斷環境亮度是否需要調整;本發明提出使用條件式迭代二值化法,與上 述兩種方向有些微的差異,是透過修改演算流程,並加入判斷的作法,利用輸出的車牌比例異常,來決定是否對影像進行重新二值化,並以修正後的門檻值作為二值化門檻值重新處理,取代掉Otsu二值化這個步驟。 In formula (3.4), peak yn represents the number of changes of the horizontal line. When scanning the horizontal axis of yn , the pixel value of each xn position on the axis is compared with the value of the next pixel. If the pixel value is different, the change is counted once, otherwise, Not counting; in formula (3.5), M indicates the state of the mark. When a certain yn- axis change is within the set interval, it is regarded as a candidate axis mark, and the upper and lower limits of the change contain ±4 fault tolerances. The information around the license plate interferes with the amount of calculation. In order to facilitate the observation, in general, the left image is complementary to the mark axis of the right image, and the license plate recognition module 30 obtains three candidate regions when searching for the license plate, which are respectively labeled as R a , R b , and R c . , as shown in Figure 7. In order to facilitate the observation of the scanning schematic, the R b region of FIGS. 7 to 9 is highlighted, and the dotted rectangular frame is used as the scanning block, and the total number of color changes in the block represented by each starting point xn is calculated from left to right. The number of times, and the starting point xn of the block with the most number of records, can be used to obtain preliminary positioning results. The above results are obtained under the condition that the pre-image processing effect is good. Assuming that the target area is affected by the surrounding environment, the system loses the ideal binarized license plate after preliminary binarization of the region of interest (ROI) image. Image, when the system calculates the amount of horizontal change, it will not mark the horizontal axis that belongs to the license plate, so that the calculation process finds the wrong upper and lower bounds of the license plate, and gets the wrong upper and lower bounds, and also calculates the wrong left and right bounds of the license plate. The rate of decline will drop. Since the built-in lens of the smart phone 10 automatically adjusts the internal aperture due to the ambient light, when the license plate recognition module 30 is in an extremely high brightness environment to capture images, the smart phone 10 adapts to make the overall display darker. The shadow part will be deepened; assuming there are some shadows and some of them are covered on the license plate characters, the image will be partially binarized and will cause some license plate characters to disappear, and the associated mark method can not find the correct upper and lower license plates. boundary. There are two directions for improving the environmental impact of binarization, one is oriented by the improved algorithm itself, such as the regional binarization method as shown in the attached reference [8] [23]. The other is to improve the problem of the environment itself, such as judging whether the brightness of the environment needs to be adjusted; the present invention proposes to use the conditional iterative binarization method, and the slight difference between the two directions is to modify the calculation process and join The method of judging uses the abnormal proportion of the output license plate to determine whether to re-binarize the image, and re-processes the corrected threshold value as the binarization threshold, replacing the Otsu binarization step.

3.5條件式迭代二值化處理3.5 conditional iterative binarization

面對受到環境因素而產生出不甚理想的二值化影像,導致車牌辨識模組30在搜尋車牌位置的準確率降低,而多數作法都會從演算法本身去探討是否仍有問題不足以解決,本發明在此階段提出經由修改流程,加入簡單的判斷,便可明顯地改善當智慧型手機10光圈受到環境亮度影響而加深陰影的影響程度,進而使得搜尋車牌位置的準確率變得更好,我們稱之為條件式迭代二值化流程,以下為其運作流程圖:根據圖2所示之控制流程,首先,經過高斯平滑後的感興趣區域21(ROI)影像,進行第一次的影像二值化(使用Otsu法),接著進行車牌位置搜尋,由輸出的結果進行異常判定,其判定準則為用來框選車牌位置的矩形框之寬高比例,與系統設置的比例門檻進行比較,若前者小於後者,則進入迭代流程。比例門檻的設置,是依據車牌寬高比值計算得來;依照交通部公路總局所頒行的車牌類型,有舊式與新式之分,舊式車牌寬高比值為2.1(32公分×15公分),新式車牌則約為2.4(38公分×16公分),再加上依據系統測試出來的容忍誤差,其值約為1.55,最後得到比例門檻為3.65。至於車牌位置之綠色矩形框的比值,由左至右分別是3.54、3.31,以及1.66,尚有許多因陰影而得到比例值不足符合門檻的定位結果,究其因為Otsu法得到的門檻值不夠理想,若想解決陰影影響定位的問題,必須使用比Otsu門檻值更低的數值來進行二值化,我們可以透過公式(3.6)來修正門檻值: T t =T t-1×Ratio of Reduction (3.6) Faced with environmental factors that produce less-than-ideal binarized images, the accuracy of the license plate recognition module 30 in searching for license plate positions is reduced, and most of the methods will explore from the algorithm itself whether there are still problems that are not enough to solve. At this stage, the present invention proposes to improve the degree of influence of deepening the shadow when the aperture of the smart phone 10 is affected by the ambient brightness through the modification process and adding a simple judgment, thereby making the accuracy of searching for the license plate position better. We call this the conditional iterative binarization process. The following is the operation flow chart: According to the control flow shown in Figure 2, first, the Gaussian smoothed region of interest 21 (ROI) image is used to perform the first image. Binarization (using the Otsu method), followed by the license plate position search, and the result of the output is abnormally determined. The criterion is the width ratio of the rectangular frame used to frame the license plate position, and is compared with the proportional threshold set by the system. If the former is smaller than the latter, it enters the iterative process. The setting of the proportional threshold is calculated based on the aspect ratio of the license plate; according to the type of license plate issued by the General Administration of Highways of the Ministry of Communications, there are old and new types. The old model has an aspect ratio of 2.1 (32 cm × 15 cm), new style. The license plate is about 2.4 (38 cm × 16 cm), plus the tolerance error based on the system test, the value is about 1.55, and finally the proportional threshold is 3.65. As for the ratio of the green rectangular frame of the license plate position, from left to right are 3.54, 3.31, and 1.66, respectively. There are still many positioning results due to the lack of the scale value due to the shadow, and the threshold value obtained by the Otsu method is not ideal. If you want to solve the problem of shadow influence positioning, you must use a lower value than the Otsu threshold to binarize. We can correct the threshold by formula (3.6): T t = T t -1 ×Ratio of Reduction ( 3.6)

利用Otsu法計算而來的門檻值作為初始的T 0,而門檻的遞減比例在此設定為15%,此數值非絕對,但若設定過大,將會使影像資訊消失得過於迅速,必須注意。在迭代的過程中,為了避免車牌辨識模組30無法得到滿足條件的車牌圈選框,係設置了迭代次數上限,至此完成迭代二值化整個流程,車牌辨識模組30設置迭代次數以3次為上限,也就是說門檻值最多會減少4成,因門檻值拉低,而使二值化影像中車牌字元不至於消失,增加了找尋車牌位置準確度;此法目前只適用於白底黑字之車牌,但對於其他種類的車牌(如不同顏色,或不同字元數量),只要使用其他條件去判斷車牌是否異常,便可以使用類似的流程去改善陰影影響。 The threshold value calculated by the Otsu method is used as the initial T 0 , and the threshold of the threshold is set to 15%. This value is not absolute, but if the setting is too large, the image information will disappear too quickly and must be noted. In the process of iteration, in order to prevent the license plate recognition module 30 from obtaining the license plate circle selection box that satisfies the condition, the upper limit of the number of iterations is set, and thus the entire process of iterative binarization is completed, and the license plate recognition module 30 sets the number of iterations to 3 times. The upper limit, that is to say, the threshold value is reduced by up to 40%. Because the threshold value is lowered, the license plate characters in the binarized image will not disappear, which increases the accuracy of finding the position of the license plate; this method is currently only applicable to the white background. Black-hand license plates, but for other types of license plates (such as different colors, or different number of characters), as long as other conditions are used to determine whether the license plate is abnormal, a similar process can be used to improve the shadow effect.

3.6車牌區域元件切割處理3.6 license plate area component cutting processing

本發明係採用邊界標記切割法來切割車牌字元,並且考慮到車牌區域存在著各種非字元卻有可能被切割出來的物件,在接續的車牌元件辨識階段,車牌辨識模組30可以分辨出所有切割物體為何,比較相關的做法,有些人採取利用特殊的車牌區塊特徵切割方式,就無需切割出完整字元而進行辨識,有些人則使用連通物件法,將車牌區域中的獨立物件輸出進而辨識;對於擷取到的車牌位置,常會有字元互相連接,或是字元周遭雜訊過多等不良因素,使得切割元件的效果都不盡理想,然而,經由本發明所提出的條件式迭代二值化處理,車牌辨識模組30只要使用單純的邊界標記切割做法,就可以得到非常不錯的輸出結果。圖10中的虛線箭頭指向車牌區域中元件之左右邊界,根據實驗結果,系統經過了前述處理演算至此,可以依此方式輕易的切割出元件。 The invention adopts the boundary mark cutting method to cut the license plate characters, and considers that there are various non-character elements in the license plate area, but it is possible to be cut out. In the subsequent license plate component identification stage, the license plate recognition module 30 can distinguish For all the cutting objects, some related methods, some people take advantage of the special license plate block feature cutting method, no need to cut out the complete character to identify, and some people use the connected object method to separate the independent objects in the license plate area Further identification; for the obtained license plate position, there are often bad elements such as characters connected to each other, or too many noises around the character, so that the effect of the cutting element is not satisfactory, however, the conditional expression proposed by the present invention By iterative binarization, the license plate recognition module 30 can obtain very good output results by using a simple boundary mark cutting method. The dotted arrow in Fig. 10 points to the left and right boundaries of the components in the license plate area. According to the experimental results, the system has been subjected to the aforementioned processing calculations, and the components can be easily cut out in this way.

3.7車牌元件辨識處理3.7 license plate component identification processing

本發明在辨識階段使用的方法類似於樣板特徵比對法,其概念為找出需要辨認之物件,透過特別的規則,計算出足以描述該物件特徵的數值,此即為元件特徵值;接著蒐集許多彼此間存在著些微相異的樣板物件,進行特徵積累與演算訓練,計算出它們之間應該歸屬在不同的幾個類別,這種方式與聚類(Cluster)分析的原理相同;現假設有一車牌元件集合C,其中包含切割元件階段所輸出的字元與非字元,系統必須計算所有元件之特徵值用來比對辨識,計算公式如下: The method used in the identification stage of the present invention is similar to the template feature comparison method. The concept is to find an object to be identified, and through a special rule, calculate a value sufficient to describe the feature of the object, which is the component feature value; Many different sample objects exist between each other, and feature accumulation and calculus training are performed. It is calculated that they should belong to different categories. This method is the same as the cluster analysis. The license plate component set C , which contains the characters and non-characters output by the cutting component stage, the system must calculate the feature values of all components for comparison identification, and the calculation formula is as follows:

公式(3.7)中,wh分別表示感興趣區域21(ROI)之寬度與高度,xy為隨機產生之座標位置,範圍限制在感興趣區域21(ROI)影像中,p則代表(x,y)座標上之像素值;公式(3.8)中,所有p屬於像素值集合P,下標i為0到n,表示集合中的第幾個像素值,f為特徵二元碼,下標j為1到n;這個公式的意思是,若當前像素值不等於下一個像素值,則特徵二元碼為1,否則為0;公式(3.9)為合併特徵二元碼之公式,圖11所示,是其中一個例子:假設圖11中隨機座標點依照由上而下順序排列,以輔助虛線區隔,最上層的座標點像素值為p 0,最下層為p 6,因為p 0p 1不相等,故f 1為1,又因為p 1p 2相等,故f 2為0,以此類推,最後得到該元 件之特徵值為100111,並透過(3.9)式得到F等於39;由此範例說明了如何計算特徵二元碼,以數值描述該元件之特徵,另一方面,若隨機產生越多的座標點,則特徵二元碼會有越多的位元。 In formula (3.7), w and h respectively represent the width and height of the region of interest 21 (ROI), x and y are randomly generated coordinate positions, the range is limited to the region of interest 21 (ROI) image, and p is representative ( x , y ) the pixel value on the coordinates; in formula (3.8), all p belong to the pixel value set P , the subscript i is 0 to n , which represents the first pixel value in the set, and f is the feature binary code, The criterion j is 1 to n ; the meaning of this formula is that if the current pixel value is not equal to the next pixel value, the feature binary code is 1, otherwise it is 0; the formula (3.9) is the formula of the merged feature binary code, 11 is an example of this: It is assumed that the random coordinate points in Fig. 11 are arranged in order from top to bottom to assist the dotted line segment. The pixel value of the topmost coordinate point is p 0 , and the lowermost layer is p 6 because p 0 It is not equal to p 1 , so f 1 is 1, and since p 1 and p 2 are equal, f 2 is 0, and so on. Finally, the characteristic value of the element is 100111, and F is obtained by (3.9). 39; This example illustrates how to calculate a feature binary code, numerically describing the characteristics of the component, and on the other hand, if randomly generated The coordinate point, wherein the binary codes will be the more bits.

車牌元件辨識是透過參照特徵表的方式進行投票,得票最多者即視為該元件的所屬類別。假設表1由隨機產生的三組特徵值萃取位置,代入樣板資料所計算出來的特徵表,每個元件對應到不同的特徵表會有不同的索引值,當系統計算出切割元件之特徵值後,按照查表的方式,於表中對應的元件類別投票,得到最多票的類別即為該元件的辨識結果。舉例來說,輸入一個元件並計算其特徵,由第一組萃取位置計算後得到特徵值42,第二組為80,第三組為22,則對應的元件類別2得到2票,元件類別Y得到1票,系統則判斷此元件為數字2。 The license plate component identification is voted by referring to the feature table, and the person who gets the most votes is regarded as the category of the component. Assume that Table 1 extracts the positions from the three sets of eigenvalues randomly generated, and substitutes the feature table calculated by the template data. Each component has different index values corresponding to different feature tables. When the system calculates the characteristic values of the cutting components, According to the way of looking up the table, voting in the corresponding component category in the table, the category that gets the most votes is the identification result of the component. For example, inputting a component and calculating its characteristics, the feature value 42 is obtained from the first set of extraction positions, the second group is 80, and the third group is 22, then the corresponding component category 2 gets 2 votes, the component category Y Get 1 vote, the system judges this component to be the number 2.

本發明所提出的車牌元件辨識法,其概念是源自於Zdenek Kalal等人的研究文獻如附件參考文獻[24]所示,屬於隨機森林演算法(Random Forest,RF)的變形,該方法在描述影像特徵的部分,是在影像中產生多組隨機座標,藉由比較、組合,得到屬於目標影像的特徵二元碼,並由後續演算法達到影像追蹤的目的。本發明的作法為部分採取該法之運用方式,設計了適用於車牌元件辨識的分類器;在車牌辨識系統處理過程中,我們可以從車牌區域切割的階段,得到的車牌元件影像,作為欲偵測目標建立其特徵,由隨機產生置的座標取得該點像素值,透過相互間像素值比較的方式設定位元值,將所有得到的二元碼做為表示該影像的元件特徵值,元件特徵計算完成後,將透過樣板資料所建立的多組特徵表,代表為元件的集成分類器(Ensemble Classifier),最後進行元件辨識。 The license plate component identification method proposed by the present invention is derived from Zdenek The research literature of Kalal et al., as shown in the attached reference [24], belongs to the deformation of Random Forest (RF). In the part describing the image features, the method generates multiple sets of random coordinates in the image. By comparing and combining, the feature binary code belonging to the target image is obtained, and the subsequent algorithm achieves the purpose of image tracking. The method of the invention adopts the method of using the method in part, and designs a classifier suitable for the identification of the license plate component; in the process of the license plate recognition system, we can obtain the image of the license plate component from the stage of cutting the license plate area, as the detective The target is established, and the pixel value of the point is obtained from the randomly generated coordinates, and the bit value is set by comparing the pixel values with each other, and all the obtained binary codes are used as the component feature values representing the image, and the component features. After the calculation is completed, the set of feature tables created by the template data is represented as the component's Ensemble Classifier, and finally the component identification is performed.

本發明所使用之隨機森林法,則有些許不同於原始用法,在起初創建森林時,不用隨機採樣的方式建立決策樹,而是將所有元件樣板輸入,依據不同的特徵值萃取位置,建立出不同的決策樹,形成「特徵表森林」,最後透過訓練的方式將每個弱分類的能力增強,使森林有很好的元件辨識能力。再者,一個決策樹是基於隨機產生的座標點集合,投入所有樣板後建立而成,一棵決策樹模型可被定義如下公式(4.1): The random forest method used in the present invention is somewhat different from the original usage. When the forest is initially created, the decision tree is not built by random sampling, but all component templates are input, and the positions are extracted according to different feature values to establish Different decision trees form a "characteristic table forest". Finally, the ability of each weak classification is enhanced through training, so that the forest has a good component identification capability. Furthermore, a decision tree is based on a randomly generated set of coordinate points, which is built after all the templates are created. A decision tree model can be defined as the following formula (4.1):

下標P表示座標點集合,而k表示第幾種特徵萃取位置組合,當k 2時森林的概念才成立,l表示葉節點,當元件落入某一個l,則針對該葉節點代表的元件類別投下一票;當樣板輸入的越多,其每個葉節點中代表的元件類別,必須取其最高的作為最後類別,比如說現有4張樣板元件,其類別所代表的車牌字元為8,全部的樣板在第一種特徵萃取位 置,也就是k=1時,計算出來的特徵值導向了第1個葉節點,也就是l 0,假設有另外4張車牌字元為B的樣板,在k=1時有2張落入l 0,另外2張落入l 1,在l 0中8得了4票,B只得了2票,所以最後代表l 0的元件類別就是8,若以樹狀圖來表示,s表示第幾張元件樣板,c表示元件類別各個元件樣板依據其特徵值往下層移動,當s=1時葉節點l 0為8、B,s=2時葉節點l 0為8、葉節點l 1為B,以此方式對l 0計票,我們可以很明顯地看出這棵決策樹的l 0葉節點8得了4票,B得了2票,故l 0代表元件類別8,當未來未知元件輸入而落入l 0時8就會得到一票,假若大部分決策樹都將票投給了元件類別8,則辨識結果會認定此元件為數字8。 The subscript P represents the set of coordinate points, and k represents the combination of the first feature extraction positions, when k The concept of 2nd forest is established, l represents the leaf node. When the component falls into a certain l , the ticket is voted for the component class represented by the leaf node; the more the template is input, the component represented in each leaf node. The category must be the highest as the final category. For example, there are 4 template components, and the license plate character represented by the category is 8. All the templates are calculated at the first feature extraction position, that is, k =1. The eigenvalue is directed to the first leaf node, which is l 0 . Suppose there are 4 other license plate characters as the template of B. When k =1, 2 pieces fall into l 0 and the other 2 pieces fall into l 1 . In l 0 , 8 got 4 votes, B only got 2 votes, so the last component class representing l 0 is 8, if represented by a tree diagram, s represents the first component template, c represents the component class basis of each component. The characteristic value moves to the lower layer. When s =1, the leaf node l 0 is 8, B, s = 2, the leaf node l 0 is 8, and the leaf node l 1 is B. In this way, the ticket is counted for l 0 , we can it is apparent tree leaf node of the decision tree l 0 4 8 had votes, B got 2 votes, so that the representative element category 8 l 0 When the next input element unknown The fall l 0 Shi 8 will get a vote, if the majority of the decision tree will vote for the component category 8, the identification result of this component will be recognized as the number 8.

由於辨識用的主要演算法,必須依賴樣板特徵使其強健;樣板資料是由車牌區域元件切割步驟得到的,在系統設計上,樣板數量多寡,並不會影響在智慧型手機10上的系統運行速度,故作為特徵表建立所需要的樣板資料,數量越多越好,可以使分類器更具強健性;另一方面,從系統中得到之切割元件們,若同類型(字元或非字元)元件,彼此間存在著些微、不同面向之差異存在,如傾斜角度差別,或帶有些許雜訊,也可以加強分類器的能力;我們在取得樣板元件的過程中,遇到了採樣不足的情形,也就是說,對於收集而來的實驗資料進行元件切割時,某些類別的字元樣板嚴重短缺,譬如數字4,為了便於實驗進行,以不影響特徵表建立過程的平衡性為前提,透過人工的方式,對元件過少的類別,進行樣板隨機再複製的動作,使每個元件類別的樣板數量一致;針對不同類型的元件,必須由人工方式,從各個面向隨機篩選較具代表性的樣板,如輕微左、右斜、輕微切割不全等等,如果字元樣板與正常所認知的情形差距太大,分類器 有可能將需要更多資訊才能分辨過度異常的元件,可預見會使系統耗費許多時間去訓練,此即挑選輕微異常元件的原因;我們也定義了幾種代表非字元的樣板,將其歸為一類,另外,為了在實驗階段能驗證本發明提出之車牌辨識系統效能,我們也收集了一些新式車牌字元加入樣板資料庫,以期系統能夠在偵測到新式車牌字元時有跡可循;至此,每個類別各有100張元件樣板影像,包含數字0到9、字母A到Z(不包含字母O)、以及破折號、雜訊、或元件錯誤分割(三者歸為一類),共36類,3600張元件影像。 Because the main algorithm for identification must rely on the template features to make it strong; the template data is obtained by the license plate component component cutting step. In the system design, the number of templates is small, and will not affect the system operation on the smart phone 10. Speed, so the template data needed to establish the feature table, the more the number, the better, can make the classifier more robust; on the other hand, the cutting components obtained from the system, if the same type (character or non-word Element), there are slight differences between different components, such as the difference in tilt angle, or with some noise, can also enhance the ability of the classifier; we encountered the under-sampling in the process of obtaining the sample components In other words, when the component data is cut for the collected experimental data, there is a serious shortage of certain types of character templates, such as the number 4. In order to facilitate the experiment, the premise of not affecting the balance of the feature table establishment process is premised. Manually re-copying a sample with too few components in a manual manner, so that the number of templates for each component category For different types of components, it is necessary to manually screen a more representative model from each side, such as slight left and right oblique, slight incomplete cutting, etc., if the character template is too different from the normal perceived situation. Large, classifier It may be necessary to have more information to distinguish between overly abnormal components, and it is foreseeable that the system will take a lot of time to train, which is why the slight abnormal components are selected; we also define several templates that represent non-characters and return them to In order to verify the performance of the license plate recognition system proposed by the present invention in the experimental stage, we also collected some new license plate characters to be added to the sample database, so that the system can trace the new license plate characters when it is detected. At this point, each category has 100 component template images, including numbers 0 to 9, letters A through Z (without the letter O), and dashes, noise, or component mis-segmentation (three are grouped into one). 36 types, 3600 pieces of component images.

在特徵表建立的過程中,樣板數量被當成是一種類似於團結力量大的概念,以投票表決的方式將元件樣板資訊堆砌到最後,使得最後決策樹的輸出都是為單一元件類別,也就是系統認為最相似的元件,以表2來說,代表著特徵表中的一個索引結果;索引,指的是車牌元件的特徵值,其形式為一組二進制數值,當轉換成十進制後可以被當成索引值使用,運用這個轉換動作,可以讓系統不用花費太多搜尋時間,就可以完成投票;若使用的位元數太多,會使得記憶體用量太大,連參數選取工作都無法開始,而特徵表的大小可以透過下列公式計算得到:FT_SIZE=2 bits In the process of establishing the feature table, the number of templates is regarded as a concept similar to the strength of solidarity. The component template information is piled up to the end by voting, so that the output of the final decision tree is a single component category, that is, The most similar components in the system, in Table 2, represent an index result in the feature table; the index refers to the characteristic value of the license plate component, which is in the form of a set of binary values, which can be regarded as a decimal when converted into decimal The index value is used. By using this conversion action, the system can complete the voting without spending too much searching time. If the number of bits used is too large, the memory usage will be too large, and even the parameter selection work cannot be started. The size of the feature table can be calculated by the following formula: FT _ SIZE = 2 bits

FT是特徵表的英文縮寫,假設特徵值位元數bits為10,特徵表的大小則為210,共1024個位址,若樣本資料全都計算完成,並轉換到此空間中,以表2表示如下: FT is the abbreviation list of features, feature values assuming the number of bits is 10 bits, the size compared with the profile table 210, a total of 1024 addresses, when all the sample data calculations are completed, and this space is converted in Table 2 Expressed as follows:

特徵空間轉換完成後,系統改利用特徵值進行查表投票,假設現有一未知元件輸入計算特徵,在特徵萃取位置1得到特徵值為3,位置2得到特徵值為1020,位置3得到特徵值為1023,經查表分別對應元件類別M兩次,元件類別N一次,假設忽略後續不同的特徵萃取位置不計,則系統將判定此元件為字元M。車牌元件辨識是透過參照特徵表的方式進行投票,得票最多者即視為該元件的所屬類別;假設表1是由隨機產生的三組特徵值萃取位置,代入樣板資料所計算出來的特徵表,每個元件對應到不同的特徵表會有不同的索引值,當系統計算出切割元件之特徵值後,按照查表的方式,於表中對應的元件類別投票,得到最多票的類別即為該元件的辨識結果。 After the feature space conversion is completed, the system uses the eigenvalues to perform table lookup voting. Assuming that an existing unknown component inputs the calculation feature, the feature value is 3 at the feature extraction position 1, the feature value is 1020 at the position 2, and the eigenvalue is obtained at the position 3. 1023, the table is corresponding to the component class M twice, and the component class N is once. If it is ignored that the subsequent different feature extraction positions are not counted, the system will determine that the component is the character M. The license plate component identification is voted by referring to the feature table. The person who gets the most votes is regarded as the category of the component; it is assumed that the table 1 is the feature table calculated by the three sets of eigenvalues randomly generated and substituted into the template data. Each component has a different index value corresponding to different feature tables. When the system calculates the feature value of the cutting component, it votes in the corresponding component category in the table according to the manner of looking up the table, and the category that gets the most votes is The identification result of the component.

肆.實驗例結果肆.Experimental results

本發明提出之車牌辨識系統,透過參數選取與訓練的方式, 得到了特徵位元、特徵表數量,以及特徵萃取位置,以取代人工設置與隨機產生的參數,並由特徵空間轉換步驟,轉成最後用來查詢的特徵表。下表為本系統訓練得到的特徵表,依照辨識率由大到小排序,如表3所示: The license plate recognition system proposed by the invention obtains the feature bit, the number of feature tables, and the feature extraction position by means of parameter selection and training, instead of manually setting and randomly generating parameters, and transforming into feature space conversion steps. The last feature table to query. The following table is the feature table obtained by the system training, which is sorted according to the recognition rate from large to small, as shown in Table 3:

單一特徵表(即決策樹)經由訓練可具有相當高的辨識率,但有其極限,故需要各個特徵表集合起來一起辨識元件,互補不足的部分。系統初步實驗在電腦端進行,測試方式為給予每筆測試資料正確解答,讓其與辨識結果比對,計算正確元件數量,以驗證特徵表足以移植於智慧型手機10端,供直接查表使用,以下是電腦端車牌辨識系統之測試數據,橫軸為元件類別,縱軸為該元件辨識錯誤的次數:由右上角數據可以得知整體辨識率為96.36%,對於非字元元件類別,以及字母B、D的錯誤次數稍微較多;總共統計出未成功切割的車牌字元有67個,車牌字元總數有1104個,車牌字元的切割比例為99.93%,切割輸出的非車牌字元有215個,辨識錯誤的僅6個;我們將系統移植至智慧型手機10後,經測試畫面顯示, 幾乎已經沒有辨識錯誤的元件,故在電腦端存在的元件辨識錯誤,可能是由某些角度在該特徵萃取位置,得不到更好的元件分辨方式,但對於智慧型手機10端系統就無此顧慮,因為智慧型手機10端系統為移動視角偵測,特徵萃取位置在每一個瞬間都會有些微的差異,故在此先忽略那些辨識錯誤的元件;接著我們將進行智慧型手機10端系統實測,由於智慧型手機10系統之偵測畫面,無法如電腦端系統,取得相對公平的圖表化結果,我們藉著將辨識結果輸出至畫面,利用智慧型手機10擷取影像以展示辨識成果,並僅列出部分影像。 A single feature table (ie, a decision tree) can have a relatively high recognition rate through training, but has its limits. Therefore, each feature table needs to be assembled together to identify components and insufficient complementarities. The preliminary experiment of the system is carried out on the computer side. The test method is to give correct answers to each test data, compare it with the identification result, calculate the correct component quantity, and verify that the feature table is enough to be transplanted to the smart phone 10 for direct meter use. The following is the test data of the computer license plate recognition system. The horizontal axis is the component category, and the vertical axis is the number of times the component is identified incorrectly: from the upper right corner data, the overall recognition rate is 96.36%, for the non-character component category, and The number of errors in letters B and D is slightly more; in total, there are 67 license plate characters that have not been successfully cut, the total number of license plate characters is 1104, the cutting ratio of license plate characters is 99.93%, and the non-license characters of cut output are output. There are 215, only 6 of which are identified incorrectly; after we transplanted the system to the smart phone 10, the test screen shows Almost no identifiable components have been identified. Therefore, component identification errors existing on the computer side may be at some angles in the feature extraction position, and no better component resolution is obtained, but there is no smart device 10 end system. This concern, because the smart phone 10 end system for mobile viewing angle detection, the feature extraction position will be slightly different at each moment, so ignore the components that identify the error first; then we will carry out the smart phone 10 end system Actually, due to the detection screen of the smart phone 10 system, it is impossible to obtain a relatively fair graphical result like the computer end system. By outputting the identification result to the screen, the smart phone 10 is used to capture the image to display the identification result. Only some images are listed.

伍.結論Wu. Conclusion

本發明提出智慧型手機之車牌辨識系統,在影像前處理階段,利用智慧型手機擁有的優勢,設置了感興趣區域,使系統往後處理的影像大小精簡許多,並利用內建設備,陀螺儀感測器來校正影像可能存在的歪斜問題,也一併解決了移動設備必須面對的手持搖晃問題;在前處理與車牌位置偵測階段的銜接,設計了一套條件式迭代二值化的演算流程,幫助改善影像二值化結果,使車牌位置、車牌中的字元切割率獲得更準確、更好的輸出成效;另一方面,用於辨識車牌元件的主要演算法,應用源自隨機森林法的概念,並根據特殊設計的特徵值萃取方式,將表示特徵的數值轉換成一棵棵的決策樹,即特徵表,藉此作為集成分類器,透過實驗結果得知,每一個特徵表都具有將近7成以上的辨識能力,可以獨立分辨出測試資料將近70%以上的車牌元件;最後將所有特徵表移植到智慧型手機端上進行最後系統實測,根據實驗結果展示的影像,可以看出無論在正面、側面視角,或是有陰影籠罩等都有不錯的辨識結果。 The invention provides a license plate recognition system for a smart phone. In the pre-image processing stage, the advantage area of the smart phone is used to set the region of interest, so that the image size of the system to be processed later is much simplified, and the built-in device is used, and the gyroscope is utilized. The sensor is used to correct the possible skew problem of the image, and also solves the hand-shake problem that the mobile device must face. In the connection between the pre-processing and the license plate position detection phase, a conditional iterative binarization is designed. The calculation process helps to improve the image binarization result, so that the license plate position and the character cutting rate in the license plate can obtain more accurate and better output results. On the other hand, the main algorithm for identifying the license plate components is applied from random. The concept of forest law, and according to the special design of the eigenvalue extraction method, the numerical value representing the feature is converted into a tree decision tree, that is, the feature table, thereby using the integrated classifier, through the experimental results, each feature table is With nearly 70% recognition capability, it can independently distinguish out more than 70% of the license plate components of the test data; The feature table is transplanted to the smart phone for final system measurement. According to the image displayed by the experimental results, it can be seen that there are good identification results in the front side, the side view, or the shadow cover.

以上所述,僅為本發明之可行實施例,並非用以限定本發明之專利範圍,凡舉依據下列請求項所述之內容、特徵以及其精神而為之其他變化的等效實施,皆應包含於本發明之專利範圍內。本發明所具體界定於請求項之結構特徵,未見於同類物品,且具實用性與進步性,已符合發明專利要件,爰依法具文提出申請,謹請 鈞局依法核予專利,以維護本申請人合法之權益。 The above is only a possible embodiment of the present invention, and is not intended to limit the scope of the patents of the present invention, and the equivalent implementations of other changes according to the contents, features and spirits of the following claims should be It is included in the patent of the present invention. The invention is specifically defined in the structural features of the request item, is not found in the same kind of articles, and has practicality and progress, has met the requirements of the invention patent, and has filed an application according to law, and invites the bureau to approve the patent according to law to maintain the present invention. The legal rights of the applicant.

30‧‧‧車牌辨識模組 30‧‧‧ License Plate Identification Module

Claims (9)

一種智慧型手機之陀螺儀感測器車牌辨識系統,其係於智慧型手機設置一車牌辨識模組,該車牌辨識模組用以對該智慧型手機之一影像擷取裝置所擷取之包含有車牌的影像依序進行影像前處理、車牌位置偵測與擷取處理、車牌區域元件分割處理、車牌區域元件特徵萃取處理及車牌字元辨識處理,進而輸出車牌字元辨識結果資訊;其特徵在於:該車牌辨識模組於該影像設定有一用以限縮影像範圍的感興趣區域,該車牌辨識模組係對該感興趣區域之該影像進行該影像前處理;並擷取該智慧型手機之一陀螺儀感測器所產生之角度訊號,以作為校正旋轉該感興趣區域之該影像的角度依據;其中,當該車牌辨識模組於該車牌位置偵測與擷取處理而得到錯誤結果時,則進行條件式迭代二值化處理,於該條件式迭代二值化處理時,該車牌辨識模組則計算框選車牌矩形比例,並判斷該比例是否大於預設之比例門檻值;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則判斷是否完成所預先設定的迭代次數;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則重新修正該門檻值,並對該影像重新進行二值化處理後回到該車牌位置偵測與擷取處理的步驟。 A gyro sensor license plate recognition system for a smart phone, which is provided with a license plate recognition module for the smart phone, and the license plate recognition module is used for capturing the image capture device of the smart phone. The image of the license plate sequentially performs image pre-processing, license plate position detection and capture processing, license plate area component segmentation processing, license plate area component feature extraction processing and license plate character recognition processing, and then outputs license plate character recognition result information; The license plate recognition module has a region of interest for limiting the image range, and the license plate recognition module performs the image pre-processing on the image of the region of interest; and captures the smart phone. An angle signal generated by the gyro sensor as an angle basis for correcting the image of the rotation of the region of interest; wherein, when the license plate recognition module detects and captures the license plate position, an error result is obtained When the conditional iterative binarization process is performed, the license plate recognition module calculates the frame selection license plate when the conditional iterative binarization process is performed. Shape ratio, and determine whether the ratio is greater than a preset proportional threshold; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no, it is determined whether the preset number of iterations is completed; when the judgment result is If yes, the license plate position is captured and outputted; when the judgment result is no, the threshold value is re-corrected, and the image is re-binarized and returned to the step of detecting and capturing the license plate position. 如請求項1所述之智慧型手機之陀螺儀感測器車牌辨識系統,其中,該影像前處理更包含依序對該感興趣區域之該影像進行灰階轉換處理、高斯平滑處理及初次二值化處理。 The gyroscope sensor license plate recognition system of the smart phone of claim 1, wherein the image pre-processing further comprises grayscale conversion processing, Gaussian smoothing processing, and first time on the image of the region of interest. Value processing. 如請求項1所述之智慧型手機之陀螺儀感測器車牌辨識系統,其中,該車牌位置偵測與擷取處理係採用水平變化量標記法偵測車牌位置 及擷取車牌區域影像,該車牌區域元件分割處理係採用邊界標記切割法將該車牌區域影像切割為複數個元件,該車牌區域元件特徵萃取處理係採用樣板特徵比對法依序對該複數個元件用以計算出足以描述該元件特徵的元件特徵值,該車牌辨識模組建立有一資料庫,該資料庫儲存有複數特徵表,每一該特徵表寫入依序排列的元件類別,每一該特徵表之每一該元件類別對應寫入有一該元件特徵值,該車牌字元辨識處理係採用隨機森林法將各該元件之該元件特徵值逐一與各該特徵表進行比對,進而得到與各該元件相應的該元件類別,該元件類別包含字元及非字元,該字元包含數字及英文字母。 The gyro sensor license plate recognition system of the smart phone according to claim 1, wherein the license plate position detection and capture processing system uses a horizontal change amount marking method to detect the license plate position And capturing the license plate area image, the license plate area component segmentation processing uses the boundary mark cutting method to cut the license plate area image into a plurality of components, and the license plate area component feature extraction processing system uses the template feature comparison method to sequentially recite the plurality of components The component is configured to calculate a component feature value sufficient to describe the component feature, and the license plate recognition module establishes a database, wherein the database stores a plurality of feature tables, and each of the feature tables is written into the sequentially arranged component categories, each of which is Each component class of the feature table is correspondingly written with the component feature value, and the license plate character recognition process uses a random forest method to compare the component feature values of each component with each of the feature tables one by one, thereby obtaining The component class corresponding to each component, the component class containing characters and non-characters, the character containing numbers and English letters. 如請求項3所述之智慧型手機之陀螺儀感測器車牌辨識系統,其中,該車牌辨識模組係利用陀螺儀感測器轉換後之Roll方向角θ roll ,以該感興趣區域之該影像中心為旋轉軸心,將該感興趣區域之該影像朝反方向旋轉θ roll 度,以完成該影像的旋轉校正,該車牌辨識模組並判斷θ roll 是否大於70度或小於-70度,當判段結果為是,則無須校正旋轉該感興趣區域之該影像。 The gyro sensor license plate recognition system of the smart phone of claim 3, wherein the license plate recognition module utilizes a Roll direction angle θ roll converted by the gyro sensor to the region of interest The image center is a rotation axis, and the image of the region of interest is rotated by θ roll degrees in the reverse direction to complete the rotation correction of the image. The license plate recognition module determines whether the θ roll is greater than 70 degrees or less than -70 degrees. When the decision result is yes, there is no need to correct the image of the rotation of the region of interest. 如請求項1所述之智慧型手機之陀螺儀感測器車牌辨識系統,其中,該感興趣區域係為由一使用者以觸控該智慧型手機之顯示屏幕的方式所選取一矩形框選區域;或是由該車牌辨識模組自訂的矩形框選區域,該矩形框選區域寬度為320個像素寬,高度則為240個像素高。 The gyro sensor license plate recognition system of the smart phone of claim 1, wherein the region of interest is selected by a user to touch a display screen of the smart phone. The area; or a rectangular frame selection area customized by the license plate recognition module, the rectangular frame selection area has a width of 320 pixels and a height of 240 pixels. 一種智慧型手機之陀螺儀感測器車牌辨識方法,其包括:提供一智慧型手機,該智慧型手機包含一影像擷取裝置;於該智慧型手機建立一車牌辨識模組; 以該車牌辨識模組對該影像擷取裝置所擷取之包含有車牌的影像依序進行影像前處理、車牌位置偵測與擷取處理、車牌區域元件分割處理、車牌區域元件特徵萃取處理及車牌字元辨識處理,進而輸出車牌字元辨識結果資訊;其中,該車牌辨識模組於該影像設定有一用以限影像縮範圍的感興趣區域,該車牌辨識模組係對該感興趣區域之該影像進行該影像前處理;並擷取該智慧型手機之一陀螺儀感測器所產生之角度訊號,以作為校正旋轉該感興趣區域之該影像的角度依據;其中,當該車牌辨識模組於該車牌位置偵測與擷取處理而得到錯誤結果時,則進行條件式迭代二值化處理,於該條件式迭代二值化處理時,該車牌辨識模組則計算框選車牌矩形比例,並判斷該比例是否大於預設之比例門檻值;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則判斷是否完成所預先設定的迭代次數;當判斷結果為是,則將車牌位置擷取輸出;當判斷結果為否,則重新修正該門檻值,並對該影像重新進行二值化處理後回到該車牌位置偵測與擷取處理的步驟。 A smart phone gyro sensor license plate recognition method, comprising: providing a smart phone, the smart phone includes an image capture device; and establishing a license plate recognition module on the smart phone; The license plate recognition module sequentially performs image pre-processing, license plate position detection and capture processing, license plate area component segmentation processing, license plate area component feature extraction processing on the image containing the license plate captured by the image capturing device. The license plate character recognition processing further outputs the license plate character recognition result information; wherein the license plate recognition module sets a region of interest for limiting the image reduction range in the image, the license plate recognition module is for the region of interest Performing the image pre-processing on the image; and capturing an angle signal generated by the gyro sensor of the smart phone as an angle basis for correcting the image of the rotation of the region of interest; wherein, when the license plate recognition mode When the error detection result is obtained by detecting and extracting the license plate position, conditional iterative binarization processing is performed. When the conditional iteration binarization processing is performed, the license plate recognition module calculates the rectangular ratio of the selected vehicle license plate. And determining whether the ratio is greater than a preset proportional threshold; when the judgment result is yes, the license plate position is captured and output; when the judgment result is no Then, it is judged whether the preset number of iterations is completed; when the judgment result is YES, the license plate position is extracted and output; when the judgment result is no, the threshold value is re-corrected, and the image is re-binarized and then returned. The steps to detect and retrieve the license plate position. 如請求項6所述之智慧型手機之陀螺儀感測器車牌辨識方法,其中,該影像前處理更包含依序對該感興趣區域之該影像進行灰階轉換處理、高斯平滑處理及初次二值化處理。 The gyro sensor license plate recognition method for the smart phone according to claim 6, wherein the image pre-processing further comprises performing gray scale conversion processing, Gaussian smoothing processing, and first time on the image of the region of interest. Value processing. 如請求項6所述之智慧型手機之陀螺儀感測器車牌辨識方法,其中,該車牌位置偵測與擷取處理係採用水平變化量標記法偵測車牌位置及擷取車牌區域影像,該車牌區域元件分割處理係採用邊界標記切割法將該車牌區域影像切割為複數個元件,該車牌區域元件特徵萃取處理係採用樣板特徵比對法依序對該複數個元件用以計算出足以描述該元件特徵的元件特徵值,該車牌辨識模組建立有一資料庫,該資料庫儲存有複 數特徵表,每一該特徵表寫入依序排列的元件類別,每一該特徵表之每一該元件類別對應寫入有一該元件特徵值,該車牌字元辨識處理係採用隨機森林法將各該元件之該元件特徵值逐一與各該特徵表進行比對,進而得到與各該元件相應的該元件類別。 The gyro sensor license plate recognition method for the smart phone according to claim 6, wherein the license plate position detection and capture processing system uses a horizontal change amount marking method to detect a license plate position and capture a license plate area image, The license plate area component segmentation process uses the boundary mark cutting method to cut the license plate area image into a plurality of components, and the license plate area component feature extraction process uses the template feature comparison method to sequentially calculate the plurality of components to describe the The component feature value of the component feature, the license plate recognition module establishes a database, and the database stores the complex a number feature table, each of the feature tables is written into the component class arranged in sequence, and each component class of the feature table is correspondingly written with the component feature value, and the license plate character recognition process adopts a random forest method The component characteristic values of the respective elements are compared with each of the feature tables one by one, thereby obtaining the component class corresponding to each of the components. 如請求項6所述之智慧型手機之陀螺儀感測器車牌辨識方法,其中,該車牌辨識模組係利用陀螺儀感測器轉換後之Roll方向角θ roll ,以該感興趣區域之該影像中心為旋轉軸心,將該感興趣區域之該影像朝反方向旋轉θ roll 度,以完成該影像的旋轉校正,該車牌辨識模組並判斷θ roll 是否大於70度或小於-70度,當判段結果為是,則無須校正旋轉該感興趣區域之該影像,該感興趣區域係為由一使用者以觸控該智慧型手機之觸控螢幕的方式所選取一矩形框選區域;或是由該車牌辨識模組自訂的矩形框選區域,該矩形框選區域寬度為320個像素寬,高度則為240個像素高。 The method for identifying a gyro sensor license plate of a smart phone according to claim 6, wherein the license plate recognition module uses a Roll direction angle θ roll converted by the gyro sensor to the region of interest The image center is a rotation axis, and the image of the region of interest is rotated by θ roll degrees in the reverse direction to complete the rotation correction of the image. The license plate recognition module determines whether the θ roll is greater than 70 degrees or less than -70 degrees. When the result of the determination is yes, the image of the region of interest is not required to be corrected, and the region of interest is selected by a user to touch the touch screen of the smart phone; Or a rectangular frame selection area customized by the license plate recognition module, the rectangular frame selection area has a width of 320 pixels and a height of 240 pixels.
TW103100134A 2014-01-03 2014-01-03 Gyro sensor license plate recognition system for smart phone and method thereof TWI522934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103100134A TWI522934B (en) 2014-01-03 2014-01-03 Gyro sensor license plate recognition system for smart phone and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103100134A TWI522934B (en) 2014-01-03 2014-01-03 Gyro sensor license plate recognition system for smart phone and method thereof

Publications (2)

Publication Number Publication Date
TW201528159A TW201528159A (en) 2015-07-16
TWI522934B true TWI522934B (en) 2016-02-21

Family

ID=54198318

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103100134A TWI522934B (en) 2014-01-03 2014-01-03 Gyro sensor license plate recognition system for smart phone and method thereof

Country Status (1)

Country Link
TW (1) TWI522934B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10269120B2 (en) 2016-11-25 2019-04-23 Industrial Technology Research Institute Character recognition systems and character recognition methods thereof using convolutional neural network
CN111199648A (en) * 2018-11-20 2020-05-26 远创智慧股份有限公司 License plate recognition method and system
TWI699705B (en) * 2018-08-06 2020-07-21 拓連科技股份有限公司 Position determination methods and systems for vehicle, and related computer program prodcuts
TWI736446B (en) * 2020-10-14 2021-08-11 國立高雄科技大學 Seabed edge detection method capable of filtering horizontal noise

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI570635B (en) * 2016-03-08 2017-02-11 和碩聯合科技股份有限公司 Identification method of image frame and electronic device performing the same, computer readable recording medium storing program
CN108805127A (en) * 2017-05-03 2018-11-13 迅驰(北京)视讯科技有限公司 Licence plate recognition method, system and car license recognition equipment
CN111325206A (en) * 2020-03-03 2020-06-23 山东浪潮通软信息科技有限公司 License plate information identification and entry equipment construction method and device
TWI782777B (en) * 2021-11-02 2022-11-01 英屬開曼群島商睿能創意公司 Image capturing method
TWI827996B (en) * 2021-11-02 2024-01-01 英屬開曼群島商睿能創意公司 Image capturing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10269120B2 (en) 2016-11-25 2019-04-23 Industrial Technology Research Institute Character recognition systems and character recognition methods thereof using convolutional neural network
TWI699705B (en) * 2018-08-06 2020-07-21 拓連科技股份有限公司 Position determination methods and systems for vehicle, and related computer program prodcuts
CN111199648A (en) * 2018-11-20 2020-05-26 远创智慧股份有限公司 License plate recognition method and system
TWI736446B (en) * 2020-10-14 2021-08-11 國立高雄科技大學 Seabed edge detection method capable of filtering horizontal noise

Also Published As

Publication number Publication date
TW201528159A (en) 2015-07-16

Similar Documents

Publication Publication Date Title
TWI522934B (en) Gyro sensor license plate recognition system for smart phone and method thereof
US9818023B2 (en) Enhanced face detection using depth information
CN111914834B (en) Image recognition method, device, computer equipment and storage medium
CN105913093B (en) A kind of template matching method for Text region processing
TWI497422B (en) A system and method for recognizing license plate image
US9014459B2 (en) Identification method for valuable file and identification device thereof
US9396404B2 (en) Robust industrial optical character recognition
CN102103698B (en) Image processing apparatus and image processing method
CN105469046B (en) Based on the cascade vehicle model recognizing method of PCA and SURF features
CN103345631B (en) Image characteristics extraction, training, detection method and module, device, system
WO2015131468A1 (en) Method and system for estimating fingerprint pose
JP6351243B2 (en) Image processing apparatus and image processing method
CN102360503B (en) SAR (Specific Absorption Rate) image change detection method based on space approach degree and pixel similarity
JP2023134688A (en) System and method for detecting and classifying pattern in image with vision system
CN108319958A (en) A kind of matched driving license of feature based fusion detects and recognition methods
US20160283768A1 (en) Reliable fingertip and palm detection
CN112560649A (en) Behavior action detection method, system, equipment and medium
JP4517003B2 (en) Automatic road sign recognition system
CN110427909B (en) Mobile terminal driving license detection method and system, electronic equipment and storage medium
CN109670447B (en) Recognition methods, device and the readable storage medium storing program for executing of seal ballot paper full-filling block diagram picture
CN114140794A (en) General image correction method based on OCR
CN114936997A (en) Detection method, detection device, electronic equipment and readable storage medium
JP6340795B2 (en) Image processing apparatus, image processing system, image processing method, image processing program, and moving body control apparatus
JPH11306348A (en) Method and device for object detection
CN113449629B (en) Lane line false and true identification device, method, equipment and medium based on driving video

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees