JPH08235307A - Character string detector - Google Patents
Character string detectorInfo
- Publication number
- JPH08235307A JPH08235307A JP7038238A JP3823895A JPH08235307A JP H08235307 A JPH08235307 A JP H08235307A JP 7038238 A JP7038238 A JP 7038238A JP 3823895 A JP3823895 A JP 3823895A JP H08235307 A JPH08235307 A JP H08235307A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- circuit
- character
- correlation function
- deviation
- 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
Links
Landscapes
- Character Input (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、文字列位置検出装置に
関し、特に文字認識における文字の切り出しの際に文字
列方向の傾きがある場合、その傾きを算出し安定して文
字列位置を検出する文字列検出装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string position detecting device, and more particularly, when a character is cut out in character recognition, if there is a tilt in the character string direction, the tilt is calculated to stably detect the character string position. The present invention relates to a character string detection device.
【0002】[0002]
【従来の技術】従来の文字列検出装置では、例えば、
「文字認識概論(電気通信学会)」P60に示すような
文字列検出方法を用いている。2. Description of the Related Art In a conventional character string detecting device, for example,
The character string detection method as shown in "Introduction to Character Recognition (The Institute of Electrical Communication)" P60 is used.
【0003】図3は、この従来の文字列位置検出方法を
説明するための説明図である。FIG. 3 is an explanatory view for explaining this conventional character string position detecting method.
【0004】図3に示すように、文字列と垂直な方向の
軸(Y軸)に文字の濃淡値を射影する。このとき、射影
の波形とそれを横切る閾値から、文字のパターン高さに
応じて、文字の上端、下端を決定することができ、これ
により各文字列を検出することができる。As shown in FIG. 3, the gradation value of a character is projected on an axis (Y-axis) perpendicular to the character string. At this time, the upper end and the lower end of the character can be determined according to the pattern height of the character from the projection waveform and the threshold value that crosses the waveform, and thus each character string can be detected.
【0005】[0005]
【発明が解決しようとする課題】この従来の文字列検出
方法では、濃淡値の射影の波形から閾値処理により、文
字高さ幅を検出し文字列位置を決定するため、文字画像
に傾きがある場合、閾値の変動だけでは、パターン高さ
幅を検出できず文字列位置を決定できないという問題点
があった。In this conventional character string detection method, since the character height width is detected and the character string position is determined by the threshold processing from the waveform of the projection of the gray value, the character image has an inclination. In this case, there is a problem that the pattern height width cannot be detected and the character string position cannot be determined only by changing the threshold value.
【0006】[0006]
【課題を解決するための手段】本発明の文字列検出装置
は、対象文字列を撮像しデジタル文字画像を生成する画
像入力回路と、前記文字画像を記憶する濃淡画像メモリ
と、前記濃淡画像メモリ内の文字列の両端を切り出すも
のとして指定された領域を切り出す、ウィンドマスク回
路と、前記領域内の水平・垂直方向の平均濃淡値分布波
形を検出するX・Y投影データ算出回路と、前記平均濃
淡値分布波形どうしの相関関数を算出するX方向相関関
数算出回路及びY方向相関関数算出回路と、前記相関関
数のピーク値から水平、垂直方向のズレを検出する水平
ズレ検出回路及び垂直ずれ検出回路と、前記検出したズ
レ量から文字列の傾きを算出する傾き検出回路とを備え
ている。A character string detection device of the present invention is an image input circuit for picking up a target character string to generate a digital character image, a grayscale image memory for storing the character image, and the grayscale image memory. A window mask circuit for cutting out a region designated as a region for cutting out both ends of the character string, an XY projection data calculation circuit for detecting an average gray value distribution waveform in the horizontal and vertical directions in the region, An X-direction correlation function calculation circuit and a Y-direction correlation function calculation circuit for calculating a correlation function between the gray value distribution waveforms, a horizontal shift detection circuit for detecting a shift in the horizontal and vertical directions from the peak value of the correlation function, and a vertical shift detection A circuit and a tilt detection circuit that calculates the tilt of the character string from the detected shift amount are provided.
【0007】[0007]
【実施例】次に、本発明について図面を参照して説明す
る。Next, the present invention will be described with reference to the drawings.
【0008】図1は、本発明の一実施例の文字列検出装
置のブロック図である。FIG. 1 is a block diagram of a character string detecting apparatus according to an embodiment of the present invention.
【0009】対象の文字を撮像する画像入力回路1から
の文字画像aは、濃淡画像メモリ2に濃淡画像bとして
記憶される。次にウィンドマスク回路A3、ウィンドマ
スク回路B3’では、濃淡画像bから文字列の右端及び
左端領域の画像を切り出し、領域Ac、領域Bc’とす
る。切り出し位置及び領域の大きさは、文字画像全体の
中の文字列の存在する位置精度及び検出する方向きの精
度により予め決定されている。A character image a from the image input circuit 1 for picking up a target character is stored in the grayscale image memory 2 as a grayscale image b. Next, in the window mask circuit A3 and the window mask circuit B3 ′, the images of the right end and the left end regions of the character string are cut out from the grayscale image b to form regions Ac and Bc ′. The cutout position and the size of the region are determined in advance by the position accuracy of the character string in the entire character image and the accuracy of the direction of detection.
【0010】次に、検出した各領域毎に、領域内の水平
方向の平均濃淡値分布波形及び、垂直方向の平均濃淡値
分布波形を領域毎のX・Y投影データ算出回路A4及び
X・Y投影データ算出回路B4’において求め、それぞ
れX投影データAd、Y投影データAe、X投影データ
Bd’、Y投影データBe’とする。Next, for each of the detected areas, the horizontal average gray value distribution waveform and the vertical average gray value distribution waveform in the area are calculated as X and Y projection data calculation circuits A4 and XY for each area. The projection data calculation circuit B4 ′ finds the X projection data Ad, the Y projection data Ae, the X projection data Bd ′, and the Y projection data Be ′, respectively.
【0011】次にX方向相関関数算出回路5においてX
投影データAdとX投影データBd’との相関関数を算
出しX方向相関値fを、また同様にY方向相関関数算出
回路5’において、Y投影データeとY投影データB
e’との相関関数を算出しY方向相関値gを求める。Next, in the X-direction correlation function calculation circuit 5, X
The correlation function between the projection data Ad and the X projection data Bd ′ is calculated to obtain the X direction correlation value f, and similarly in the Y direction correlation function calculation circuit 5 ′, the Y projection data e and the Y projection data B are calculated.
The correlation function with e ′ is calculated to obtain the Y-direction correlation value g.
【0012】水平ズレ検出回路6において、X方向相関
値fからその関数のピーク位置を求め、相関を求めた波
形のずれ量を、水平ズレ量hとして出力する。また同様
に、垂直ズレ検出回路7において、Y方向相関値gから
その関数のピーク位置を求め、相関を求めた波形のズレ
量を、垂直ズレ量iとして出力する。In the horizontal shift detection circuit 6, the peak position of the function is obtained from the X-direction correlation value f, and the shift amount of the waveform for which the correlation is obtained is output as the horizontal shift amount h. Similarly, in the vertical shift detection circuit 7, the peak position of the function is obtained from the Y-direction correlation value g, and the shift amount of the waveform for which the correlation is obtained is output as the vertical shift amount i.
【0013】傾き検出回路8では、水平ずれ量hと該各
領域Aと領域Bの位置関係、及び文字列長から文字列の
水平位置を算出し、文字列長と、垂直ズレ量iとの比較
により文字列の傾きを検出する。また、文字列の水平位
置ずれから、文字列位置を決定する。以上のようにして
求めた、文字列の傾き量から、文字画像aを回転補正す
ることにより、正確な文字列位置を検出することができ
る。The inclination detecting circuit 8 calculates the horizontal position of the character string from the horizontal shift amount h, the positional relationship between the respective areas A and B, and the character string length, and calculates the character string length and the vertical shift amount i. The inclination of the character string is detected by comparison. Further, the character string position is determined from the horizontal position shift of the character string. An accurate character string position can be detected by correcting the rotation of the character image a based on the inclination amount of the character string obtained as described above.
【0014】次に、図2を用いて、図1の実施例の処理
過程を説明する。Next, the processing steps of the embodiment shown in FIG. 1 will be described with reference to FIG.
【0015】図2に示す様に、各領域A及び領域Bの各
方向の平均濃淡値分布波形fay()、fax()、f
bx()が表される。各方向毎の波形の相関関数Csx
()、Csy()は、以下の式に基づき、算出される。 Csx(t)=Σ((fax(t+k)−fs)*(f
bx(k)−fi)) k=0,N (N:データ算出長) fs=fax(t+k):k=0,Nの平均値 fi=fbx(k) :k=0,Nの平均値 Csy(t)=Σ((fay(t+k)−fs)*(f
by(k)−fi)) k=0,N (N:データ算出長) fs=fay(t+k):k=0,Nの平均値 fi=fby(k) :k=0,Nの平均値 これらの関数のtに関する最大位置を求めることによ
り、各波形の相対位置を決定することができる。As shown in FIG. 2, average gray value distribution waveforms fay (), fax (), f in each direction of each area A and area B are shown.
bx () is represented. Correlation function Csx of waveform in each direction
() And Csy () are calculated based on the following equations. Csx (t) = Σ ((fax (t + k) −fs) * (f
bx (k) -fi)) k = 0, N (N: data calculation length) fs = fax (t + k): k = 0, average value of N fi = fbx (k): average value of k = 0, N Csy (t) = Σ ((fay (t + k) −fs) * (f
by (k) -fi)) k = 0, N (N: data calculation length) fs = fay (t + k): k = 0, average value of N fi = fby (k): average value of k = 0, N By finding the maximum position of these functions with respect to t, the relative position of each waveform can be determined.
【0016】[0016]
【発明の効果】以上説明したように、本発明の文字列検
出装置は、文字列の両端に文字傾き検出用領域を設け、
各領域内の文字画像の位置ずれにより傾きを検出してい
るため、基準となる文字画像を設定することなく、照明
等のコントラストの変化に関係なく、文字列の傾を安定
して検出することができるという効果を有する。As described above, the character string detecting device of the present invention is provided with character inclination detecting areas at both ends of a character string,
Since the inclination is detected by the position shift of the character image in each area, the inclination of the character string can be detected stably without setting the reference character image and regardless of the change in contrast such as lighting. It has the effect that
【図1】本発明の文字列検出装置の一実施例を示すブロ
ック図である。FIG. 1 is a block diagram showing an embodiment of a character string detection device of the present invention.
【図2】図1に示す実施例の動作を説明する図である。FIG. 2 is a diagram for explaining the operation of the embodiment shown in FIG. 1;
【図3】従来の文字列検出方法を説明する図である。FIG. 3 is a diagram illustrating a conventional character string detection method.
1 画像入力回路 2 濃淡画像メモリ 3 3’、ウィンドウマスク回路 4 4’、X・Y投影データ算出回路 5 5’、X・Y方向相関関数算出回路 6 水平ズレ検出回路 7 垂直ズレ検出回路 8 傾き検出回路 1 Image Input Circuit 2 Gray Image Memory 3 3 ', Window Mask Circuit 4 4', X / Y Projection Data Calculation Circuit 5 5 ', X / Y Direction Correlation Function Calculation Circuit 6 Horizontal Deviation Detection Circuit 7 Vertical Deviation Detection Circuit 8 Tilt Detection circuit
Claims (1)
生成する画像入力回路と、前記文字画像を記憶する濃淡
画像メモリと、前記濃淡画像メモリ内の文字列の両端を
切り出すものとして指定された領域を切り出すウィンド
マスク回路と、前記領域内の水平・垂直方向の平均濃淡
値分布波型を検出するX・Y投影データ算出回路と、前
記平均濃淡値分布波形どうしの相関関数を算出するX方
向相関関数算出回路及びY方向相関関数算出回路と、前
記相関関数のピーク値から水平、垂直方向のズレを検出
する水平ズレ検出回路及び垂直ずれ検出回路と、前記検
出したズレ量から文字列の傾きを算出する傾き検出回路
とを備えることを特徴とする文字列検出装置。1. An image input circuit for picking up a target character string to generate a digital character image, a grayscale image memory for storing the character image, and a character string in the grayscale image memory designated to cut out both ends of the character string. A window mask circuit that cuts out a region, an X / Y projection data calculation circuit that detects a horizontal / vertical average gray value distribution waveform, and an X direction that calculates a correlation function between the average gray value distribution waveforms. A correlation function calculation circuit and a Y-direction correlation function calculation circuit, a horizontal shift detection circuit and a vertical shift detection circuit that detect horizontal and vertical shifts from the peak value of the correlation function, and a tilt of a character string based on the detected shift amount. An inclination detection circuit for calculating
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7038238A JPH08235307A (en) | 1995-02-27 | 1995-02-27 | Character string detector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7038238A JPH08235307A (en) | 1995-02-27 | 1995-02-27 | Character string detector |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08235307A true JPH08235307A (en) | 1996-09-13 |
Family
ID=12519731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7038238A Pending JPH08235307A (en) | 1995-02-27 | 1995-02-27 | Character string detector |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08235307A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0834826A2 (en) * | 1996-10-01 | 1998-04-08 | Canon Kabushiki Kaisha | Positioning templates in optical character recognition systems |
JP2005275951A (en) * | 2004-03-25 | 2005-10-06 | Canon Inc | Image processor, image processing method, program, and storage medium |
JP2014085689A (en) * | 2012-10-19 | 2014-05-12 | Ntt Communications Corp | Image rearrangement method, image rearrangement system and image rearrangement program |
-
1995
- 1995-02-27 JP JP7038238A patent/JPH08235307A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0834826A2 (en) * | 1996-10-01 | 1998-04-08 | Canon Kabushiki Kaisha | Positioning templates in optical character recognition systems |
EP0834826A3 (en) * | 1996-10-01 | 1999-10-06 | Canon Kabushiki Kaisha | Positioning templates in optical character recognition systems |
US6081621A (en) * | 1996-10-01 | 2000-06-27 | Canon Kabushiki Kaisha | Positioning templates in optical character recognition systems |
JP2005275951A (en) * | 2004-03-25 | 2005-10-06 | Canon Inc | Image processor, image processing method, program, and storage medium |
JP2014085689A (en) * | 2012-10-19 | 2014-05-12 | Ntt Communications Corp | Image rearrangement method, image rearrangement system and image rearrangement program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6985075B2 (en) | Obstacle detection apparatus and method | |
US7024041B2 (en) | Pattern inspection apparatus and method | |
JP3448868B2 (en) | Image coincidence detecting device and image coincidence detecting method | |
JPH03257304A (en) | Position recognizing apparatus | |
US6519358B1 (en) | Parallax calculating apparatus, distance calculating apparatus, methods of the same, and information providing media | |
JPH09171560A (en) | Device for detecting face inclination | |
KR930002347B1 (en) | Pattern position recognition apparatus | |
JP3266429B2 (en) | Pattern detection method | |
JPH08292014A (en) | Measuring method of pattern position and device thereof | |
JPH08235307A (en) | Character string detector | |
JPH08320990A (en) | Vehicle number reader | |
JPH07103734A (en) | Apparatus for searching stereocorrespondence | |
JP3591645B2 (en) | Scanning error correction method and apparatus in flatbed scanner | |
JP2871601B2 (en) | Character string detecting apparatus and method | |
JPH06168331A (en) | Patter matching method | |
JP2637591B2 (en) | Position recognition apparatus and method | |
JPH09147109A (en) | Method and device for specific mark detection | |
US20040146194A1 (en) | Image matching method, image matching apparatus, and wafer processor | |
JP3066137B2 (en) | Pattern matching method | |
JPH06180218A (en) | Solid shape detection method | |
JPH0689341A (en) | Component position detecting method | |
WO2002077922A1 (en) | Image detection method, image detection apparatus, and wafer treatment apparatus | |
JPH09119982A (en) | Missile guiding system | |
JP3281469B2 (en) | Document image inclination detecting method and apparatus | |
JP2516844B2 (en) | Parts detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19980721 |