JPH01312682A - Device for detecting inclination of character string or the like - Google Patents

Device for detecting inclination of character string or the like

Info

Publication number
JPH01312682A
JPH01312682A JP63144953A JP14495388A JPH01312682A JP H01312682 A JPH01312682 A JP H01312682A JP 63144953 A JP63144953 A JP 63144953A JP 14495388 A JP14495388 A JP 14495388A JP H01312682 A JPH01312682 A JP H01312682A
Authority
JP
Japan
Prior art keywords
length
character string
projecting
projection
character
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP63144953A
Other languages
Japanese (ja)
Inventor
Kazuo Nagano
長野 和夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries Ltd
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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP63144953A priority Critical patent/JPH01312682A/en
Publication of JPH01312682A publication Critical patent/JPH01312682A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To improve the precision of normalization by searching a projecting direction in which projecting length becomes shortest by inputting the projecting direction versus the projected length. CONSTITUTION:A projecting direction versus projecting length calculating device 2 generates the correspondence table of the projecting direction versus the projecting length by inputting the two-dimensional data of a character string, etc., read by a character string reader 1 and calculating and storing the project ing length of the character string for the projecting direction in a definite range. A minimum projecting length searching device 3 inputs the projecting direction versus the projecting length from the calculating device 2, and searches the projecting direction in which the projecting length becomes shortest. Thus, the title device is based on a principle that the projecting length in an inclining direction becomes shortest for almost all characters, and the degree of inclina tion of high precision can be obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えば車両プレート番号読取り装置や、文字
の傾きを補正することにより、効果の上る全ての文字読
取装置に適用される文字列等の傾き検出装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is applicable to, for example, vehicle plate number reading devices and all character reading devices that are effective by correcting the inclination of characters. The present invention relates to a tilt detection device.

〔従来の技術〕[Conventional technology]

従来、文字列を画像処理により認識する場合、通常例々
の文字を分離切出し、各文字に対してテンプレートマツ
チングにより、最も確からしいものに対応させる方式が
採用されている。この方式は、文字読取を行う場合、通
常縦幅と横幅を標準値してからモデルツクターンとマツ
チングさせる方式である。
Conventionally, when character strings are recognized by image processing, a method is generally adopted in which each character is separated and cut out, and each character is matched to the most likely one by template matching. In this method, when reading characters, the height and width are usually set to standard values and then matched with the model pattern.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところが、上記した方式では例えば車両のナンバープレ
ートなどプレートが垂直に取付けられていない場合、文
字が斜めに傾き、正面から見た場合のテングレートをそ
のまま用い念のでは、誤判読する可能性が増加する。ま
た、同様のことは上記とは異シ文字自体が傾いている場
合に於ても生ずる。これを解決するためには、文字列自
体から文字の傾き角度を検出し切出した文字に対して角
度補正を行い、正規化の精度を上げることが必要となる
However, with the above method, if the plate, such as a vehicle license plate, is not installed vertically, the letters will be tilted diagonally, and if the template is used as is when viewed from the front, the possibility of misreading will increase. do. Furthermore, a similar problem occurs even when the characters themselves are tilted. In order to solve this problem, it is necessary to detect the inclination angle of the character from the character string itself and perform angle correction on the extracted character to improve the accuracy of normalization.

そこで、本発明は文字列自体から文字の傾き角度を検出
でき、切出した文字に対して角度補正全行うことができ
、正規化の精度を上げることができる文字列等の傾き検
出装置を提供することを目的とする。
Therefore, the present invention provides a device for detecting the inclination of a character string, etc., which can detect the inclination angle of a character from the character string itself, perform all angle corrections on cut out characters, and improve the accuracy of normalization. The purpose is to

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記目的を達成するため、文字列または、これ
に類似の図形或いはこれを部分として會む画像図形を二
次元データとして内部に読取り又は文字列切出しを行う
第1の手段と、この第1の手段により読取シ又は文字列
切出した二次元データを入力し、一定範囲の射影方向に
対する文字列の射影全長を計算・記憶して射影方向対射
影長の対応テーブルを作成する第2の手段と、この第2
の手段から得られる射影方向対射影長を入力し、最も射
影長が短かくなる射影方向を探索する第3の手段と、か
らなるものである。
In order to achieve the above object, the present invention includes a first means for internally reading or cutting out a character string as two-dimensional data from a character string, a figure similar thereto, or an image figure that meets these as parts; A second means for inputting the two-dimensional data read or cut out from a character string by means 1, calculating and storing the projected total length of the character string for a certain range of projection directions, and creating a correspondence table of projection directions versus projection lengths. And this second
and third means for inputting the projection direction versus projection length obtained from the means and searching for the projection direction in which the projection length is the shortest.

〔作用〕[Effect]

本発明は、殆んどの文字にあっては傾き方向に対する射
影長が最も短かくなるという原理を基本としたもので、
例外的な文字が含まれていても、文字例全体として、射
影長の総和が最小となる射影の方向を求められない。従
って全体として精度の高い傾き度を得ることが可能とな
る。
The present invention is based on the principle that for most characters, the projected length in the direction of inclination is the shortest.
Even if an exceptional character is included, it is not possible to determine the direction of projection that minimizes the sum of the projection lengths for all character examples. Therefore, it is possible to obtain a highly accurate inclination degree as a whole.

〔実施例〕〔Example〕

以下1本発明の実施例について図面を参照して説明する
。第1図(alは本発明による文字列等の傾き検出装置
の一実施例の概略構成を示すもので、文字列読取り装置
(又は文字列切出し装置)1は、テレビカメラとアナロ
グ−デジタル変換器とからなり、文字列またはこれに類
似の図形るるいはこれを部分として含む画像図形を二次
元データとして読取り又は文字列切出しを行うものであ
る。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 (al) shows a schematic configuration of an embodiment of a device for detecting the inclination of a character string, etc. according to the present invention. This system reads a character string, a figure similar to the character string, or an image figure including the character string as a part as two-dimensional data, or extracts the character string.

射影方向対射影長算出装置2は、第1図(blに示すよ
うに角度範囲、サンプリング間隔設定機構21、反復機
構22、射影算出機構23、全射影長計算機構24、射
影長記憶機構25からなシ、文字列読取力装置!で読取
った文字列等の二次元r−夕を入力して一定範囲の射影
方向に対する文字列の射影全長を計算・記憶することK
よシ射影方向対射影長の対応テーブルを作成するもので
ある。
The projection direction vs. projection length calculation device 2 includes, as shown in FIG. No, input the two-dimensional data of a character string read by a character string reading device! and calculate and store the projected total length of the character string with respect to a certain range of projection directions.
This is to create a correspondence table between projection direction and projection length.

最小射影長探索装置3は算出装置2からの射影方向対射
長を入力し、最も射影長が短かくなる射影方向を探索す
るものである。
The minimum projected length search device 3 inputs the projection direction versus projection length from the calculation device 2 and searches for the projection direction in which the projected length is the shortest.

以下、このように構成された文字列等の傾き検出装置の
動作について説明するが、その前に本発明装置の原理に
ついて第2図を参照して説明する。
The operation of the device for detecting the inclination of character strings, etc., configured as described above will be explained below, but before that, the principle of the device of the present invention will be explained with reference to FIG. 2.

第2図(a) 、 (blはいずれも斜めに傾いた文字
の傾き度を、外接平行四辺形で表現可能であることを示
している。つま)、第2図は文字の射影長の変化の近似
として外接平行四辺形の影射長が射影方向によって、ど
のように変化するかを示しておシ、(a)は−一くθ≦
ψ。の時であり、(b)はψ。≦θ<Tの時である。こ
こでψ。は平行四辺形の傾き、θは射影角であり、第2
図から明らかなようにψ。とθが一致した時に射影長が
最小となシ、これから外れるにつれ射影長が増加するこ
とがわかる。
Figure 2 (a), (bl both show that the degree of inclination of diagonally inclined characters can be expressed by a circumscribed parallelogram), Figure 2 shows changes in the projected length of characters. As an approximation of , we show how the projection length of a circumscribed parallelogram changes depending on the projection direction.
ψ. , and (b) is ψ. This is the case when ≦θ<T. Here ψ. is the slope of the parallelogram, θ is the projection angle, and the second
As is clear from the figure, ψ. It can be seen that the projected length is the minimum when and θ match, and that the projected length increases as it deviates from this.

第3図は実際の文字列1.2.3に対してθとψ。の関
係を示すもので、(a)の斜線部分はθ〈ψ。
Figure 3 shows θ and ψ for the actual character string 1.2.3. The shaded part in (a) is θ〈ψ.

の時、θ=ψ。の時、θ〉ψ。の時の射影長を示してお
シ、又(b)はθ、ψ0と全射影長の関係を示している
When θ=ψ. When θ〉ψ. (b) shows the relationship between θ, ψ0 and the total projection length.

この図から明らかなように、θ=ψ。の時は射影長は最
小であシ、このとき全射影長は鋭いピーク(最小値)と
なっている。本発明は、このような原理を応用したもの
である。
As is clear from this figure, θ=ψ. When , the projected length is at its minimum, and at this time the total projected length has a sharp peak (minimum value). The present invention applies such a principle.

第4図は第1図の射影算出機構23の機能を説明するた
めのもので、(a)に示す対象となる画像を、横方向に
順次走査し、その時の走査番号、走査■・・・走査■・
・・走査■に比例して予め算出されたシフト量を整数化
し、その量分を図示しない演算用バッファに対して、(
b)K示すように各アドレス対応して論理和を蓄積して
行く。
FIG. 4 is for explaining the function of the projection calculation mechanism 23 shown in FIG. 1, in which the target image shown in FIG. Scanning ■・
...The shift amount calculated in advance in proportion to the scan ■ is converted into an integer, and the amount is transferred to the calculation buffer (not shown).
b) As shown in K, logical sums are accumulated corresponding to each address.

第5図(alは射影角θを仮定した場合の画像を示すも
ので、前述した原理により斜め方向の斜影を求める。こ
の射影は第5図(b)におけるたて方向の論理和と同一
であり、第5図(alの斜め方向の斜影だけシフトさせ
ることによ#)縦方向の論理和として求める。これを第
5図(b)に示す走査線シフト量(ハツチング部分)と
し、第5図(b)はこの分を各走査番号1〜15に対応
して補正した場合の画像出力である。
Figure 5 (al) shows an image assuming a projection angle θ, and the oblique shadow in the diagonal direction is obtained using the principle described above. This projection is the same as the logical sum in the vertical direction in Figure 5 (b). 5 (by shifting only the oblique shadow in the diagonal direction of al).This is determined as the logical sum in the vertical direction as shown in FIG. 5(b). Figure (b) shows the image output when this amount is corrected corresponding to each scan number 1 to 15.

なお、縦方向の論理和は、第5図(a)の画像を横方向
に走査し、その時の走査番号に比例して予め算出された
シフ)fを整数化し、その量分を演算用バッファに入力
して、各アドレスに対応して論理和を蓄積していくこと
は第4図と同じである。
Note that the vertical logical sum is calculated by scanning the image in FIG. It is the same as in FIG. 4 that the logical sum is inputted into the address and the logical sum is accumulated corresponding to each address.

このように走査番号■〜[相]に関して、論理和演算を
順次行っていくと、図示しない演算用バッファに文字列
の射影イメージがO/1 /4’ターンとして蓄積され
る。従って、全射影長計算機構24によりこの結果の内
1’li1素をカウントし、これを射影角度別に蓄積す
れば第3図の下に示す関係が、射影長記憶機構25に形
成される。
In this way, when the logical sum operation is sequentially performed for the scan numbers ① to [phase], the projected image of the character string is stored as O/1/4' turns in the operation buffer (not shown). Therefore, if the total projection length calculation mechanism 24 counts 1'li1 elements among these results and stores them for each projection angle, the relationship shown at the bottom of FIG. 3 is formed in the projection length storage mechanism 25.

この結果を最小射影長探索装置3によってサーチし、最
小点ψ。を求めることが可能となる。このような方式で
あるので、対象とする画像FiKG図に示すように(a
)の中塗)型でも、また(b)のぶち取シ型でも対応可
能である。
This result is searched by the minimum projection length search device 3 to find the minimum point ψ. It becomes possible to find. Since this method is used, as shown in the target image FiKG diagram (a
It is possible to use the intermediate coat type () or the cut-out type (b).

又、2値化画像でも中間階調画像でも対応可能である。Furthermore, it is possible to handle both binary images and intermediate gradation images.

白黒反転画像に対しては、文字部の構成が白か黒か分っ
ているのであれば、いづれに於いても取扱いに大差は生
じな−。
For black-and-white inverted images, as long as it is known whether the character structure is white or black, there is no big difference in handling either way.

なお、本発明は前述した実施例に限定されず、例えば次
のようにすることができる。すなわち、ロバスト性に言
及すると、文字部が一部欠損したシ又ごま塩的雑音があ
っても、はぼ同様の効果が期待出来る。
Note that the present invention is not limited to the embodiments described above, and can be implemented as follows, for example. In other words, in terms of robustness, the same effect as that of Habo can be expected even if there is salt-and-pepper noise in which a portion of a character part is missing.

また、前述の実施例では文字の射影長最小で求めたが、
逆に文字間のギャップに関する射影長最大で求めても、
全く同様である。その他、ハフ変換の代案として直線の
直線群の傾き検出にも適用することは当然可能である。
In addition, in the above-mentioned example, the projected length of the character was calculated using the minimum length, but
Conversely, even if you calculate the maximum projection length regarding the gap between characters,
It's exactly the same. In addition, as an alternative to the Hough transform, it is naturally possible to apply it to detecting the slope of a group of straight lines.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、以下のような効果が得られる。 According to the present invention, the following effects can be obtained.

文字読取を行う場合、通常縦幅、横幅を標準値だ修正正
規化(走査線のシフトtを(N −1) tarψ。と
じたときに求められる画像)してからモデル・ぐターン
とマツチングさせる方式が採用されている。
When reading characters, the vertical and horizontal widths are usually corrected to standard values and normalized (shift t of the scanning line is (N - 1) tarψ. Image obtained when stitched) and then matched with the model pattern. method is adopted.

この場合1文字が斜めに傾いているとモデル/4’ター
ンとの照合に支障を生じるのみならず、正規化のための
幅計算にも悪影響が出る。
In this case, if one character is tilted diagonally, not only will it be difficult to match it with the model/4' turn, but it will also have an adverse effect on the width calculation for normalization.

本発明装置により、傾き角度を検出し、補正作業を行え
ば以上の様な障害の回避が可能となる。
With the device of the present invention, the above-mentioned obstacles can be avoided by detecting the tilt angle and performing correction work.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明による文字列等の傾き検出装置の一実施
例の構成図、第2図および第3図は同実施例の原理を説
明するための図、第4図および第5図は第1図の射影算
出機構の機能を説明するための図、第6図は本発明の適
用対象となる文字タイプに関する説明図である。 1・・・文字読取り装置(文字列切出し装置)、2・・
・射影方向対射影長算出装置、3・・・最小射影長探索
装置。 出願人弁理式  弁理士 鈴 江 武 彦支袈ヌ1奴6
に含でLj友2図や 苅氏゛テープ′ル (b) 第1 図 ”      (a) z a + h 1tan10− tanet(b) 第2図 (a) O づ瓦定しに杓t9+てより主出゛エシフトし尺場そト祢
閂腐藺。寸、張= (a) 第5図 C3伺→鉦理胸 わ1藺(除δt+7珂命イ右横さ ; と 「\ 一 派
Fig. 1 is a block diagram of an embodiment of the inclination detection device for character strings, etc. according to the present invention, Figs. 2 and 3 are diagrams for explaining the principle of the embodiment, and Figs. 4 and 5 are diagrams for explaining the principle of the embodiment. FIG. 1 is a diagram for explaining the function of the projection calculation mechanism, and FIG. 6 is an explanatory diagram regarding character types to which the present invention is applied. 1...Character reading device (character string extraction device), 2...
- Projection direction vs. projection length calculation device, 3... Minimum projection length search device. Patent Attorney Ceremony for Applicant Patent Attorney Takeshi Suzue
Including Lj friend 2 figure and Mr. Karu's tape (b) Fig. 1'' (a) z a + h 1tan10- tanet (b) Fig. 2 (a) O The main exit is shifted and the shakuba is set on the right side of the bar.

Claims (1)

【特許請求の範囲】 文字列または、これに類似の図形或いはこれを部分とし
て含む画像図形を二次元データとして内部に読取り又は
文字列切出しを行う第1の手段と、この第1の手段によ
り読取り又は文字列切出した二次元データを入力し、一
定範囲の射影方向に対する文字列の射影全長を計算・記
憶して射影方向対射影長の対応テーブルを作成する第2
の手段と、 この第2の手段から得られる射影方向対射影長を入力し
、最も射影長が短かくなる射影方向を探索する第3の手
段と、からなる文字列等の傾き検出装置。
[Claims] A first means for internally reading or cutting out a character string as two-dimensional data from a character string, a figure similar thereto, or an image figure including the same as a part; Alternatively, the second method inputs the two-dimensional data from which the character string has been cut out, calculates and stores the projected total length of the character string for a certain range of projection directions, and creates a correspondence table of projection direction and projection length.
A device for detecting the inclination of character strings, etc., comprising: means for inputting the projection direction versus projection length obtained from the second means, and third means for searching for the projection direction in which the projection length is the shortest.
JP63144953A 1988-06-13 1988-06-13 Device for detecting inclination of character string or the like Pending JPH01312682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63144953A JPH01312682A (en) 1988-06-13 1988-06-13 Device for detecting inclination of character string or the like

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63144953A JPH01312682A (en) 1988-06-13 1988-06-13 Device for detecting inclination of character string or the like

Publications (1)

Publication Number Publication Date
JPH01312682A true JPH01312682A (en) 1989-12-18

Family

ID=15374035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63144953A Pending JPH01312682A (en) 1988-06-13 1988-06-13 Device for detecting inclination of character string or the like

Country Status (1)

Country Link
JP (1) JPH01312682A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61168080A (en) * 1985-01-22 1986-07-29 Ricoh Co Ltd Character recognizing device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61168080A (en) * 1985-01-22 1986-07-29 Ricoh Co Ltd Character recognizing device

Similar Documents

Publication Publication Date Title
JP3580670B2 (en) Method for associating input image with reference image, apparatus therefor, and storage medium storing program for implementing the method
US7684646B2 (en) System and method of determining image skew using connected components
JP4170441B2 (en) Document image inclination detection apparatus and storage medium for document image inclination detection program
JP2739130B2 (en) Image processing method
JPS6077279A (en) Initiation of character image
US6965703B1 (en) Optical scanner and software for correcting distorted images
Steger et al. Model-based road extraction from images
JP4395188B2 (en) Document image recognition apparatus and storage medium for document image recognition program
EP0513678A2 (en) Fast character segmentation of skewed text lines for optical character recognition
JPH01312682A (en) Device for detecting inclination of character string or the like
JPS6325391B2 (en)
JP2516844B2 (en) Parts detection method and device
JP2501150B2 (en) Laser welding method
WO1995034046A1 (en) System and method for reading data from prescribed regions of a document of variable size
JPH07141465A (en) Method for detecting inclination of document image
JPH06150060A (en) Image inclination detecting method and table processing method
JP2977259B2 (en) Skew detection method
JP2648882B2 (en) Contour straight line detection method
JPH07120392B2 (en) Character pattern cutting device
JP2813601B2 (en) Tabular document recognition device
JP3426912B2 (en) Shape recognition method and device
JPH05233874A (en) Optical character reader
JP3236898B2 (en) Image processing apparatus and processing method thereof
JP3381803B2 (en) Tilt angle detector
JPS63131287A (en) Character recognition system