JPS61217882A - Optical character recognizer - Google Patents

Optical character recognizer

Info

Publication number
JPS61217882A
JPS61217882A JP60059138A JP5913885A JPS61217882A JP S61217882 A JPS61217882 A JP S61217882A JP 60059138 A JP60059138 A JP 60059138A JP 5913885 A JP5913885 A JP 5913885A JP S61217882 A JPS61217882 A JP S61217882A
Authority
JP
Japan
Prior art keywords
data
skew
data area
line buffer
read
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
JP60059138A
Other languages
Japanese (ja)
Inventor
Akinori Hosokawa
細川 昭則
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60059138A priority Critical patent/JPS61217882A/en
Publication of JPS61217882A publication Critical patent/JPS61217882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To attain the proper detection of a skew error of a form by deciding the skew error by the degree of skews corresponding to the width of the data area of the form. CONSTITUTION:A fed form is read through a photoelectric conversion part 30 and stored every line in a line buffer 45 at a line buffer part 31. These lines are segmented into patterns for each character and undergo the recognition of characters through a recognizing part 34. The result of this recognition is given to a control part 36 to receive various types of processing. The part 36 delivers the format control FC information, i.e., various data on the format of the form to be read to both parts 31 and 34. The A and B registers 40 and 41 of the part 31 store the data in a data area where characters, symbols, etc. of the FC information are written. A selector 42 compares the data on the register 40 or 41 with the data on the buffer 45 through a deciding circuit 46 and decides a skew error.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、光学的文字H識装置に関する。[Detailed description of the invention] [Technical field of invention] The present invention relates to an optical character H recognition device.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

光学的文字認識装置では、帳票が傾いて読み取られると
、エラー(誤読)、リジェクト(読取拒否)が多く発生
する。このため帳票の傾き(スキュー)を文字認識の前
に予めチェックし、スキューエラーが検出されると、認
識動作を停止、再度その帳票を読み取ら、せる等の処理
をしている。従来、このスキューチェックは、帳票が読
み取られる時の帳票の左端と右端の距離の絶対値の差を
測定し、この差がある一定値以上であるか否かによりな
されていた。しかし近年帳票の種類が多くなり、帳票の
大きさも種々のものが用いられている。
In optical character recognition devices, when a form is read at an angle, many errors (misreading) and rejections (refusal to read) occur. For this reason, the inclination (skew) of the form is checked in advance before character recognition, and when a skew error is detected, the recognition operation is stopped and the form is read again. Conventionally, this skew check has been performed by measuring the difference in the absolute value of the distance between the left edge and the right edge of the document when the document is read, and checking whether this difference is equal to or greater than a certain value. However, in recent years, there have been an increase in the number of types of forms, and various sizes of forms have been used.

もし、帳票が大きい場合には、従来のスキューチェック
方法では、わずかなスキュー量であって十分vt識可能
であるのにスキューエラーと検出してしまうという問題
があった。このことを考慮してスキューチェックの基準
値を大きくすると、小さい帳票の場合には逆に帳票が大
きく傾いてもスキューエラーが検出できないという問題
があった。
If the document is large, the conventional skew check method has the problem of detecting a skew error even though the amount of skew is small and VT can be sufficiently detected. If the standard value of the skew check is increased in consideration of this, there is a problem that in the case of a small form, a skew error cannot be detected even if the form is tilted significantly.

〔発明の目的〕[Purpose of the invention]

本発明は、上記事情を考慮してなされたもので、適正に
帳票のスキューエラーを検出することができる光学的認
識装置を提供することを目的とする。
The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide an optical recognition device that can appropriately detect skew errors in forms.

〔発明の概要〕[Summary of the invention]

上記目的を達成するために本発明による光学的文字認識
装置は、帳票上のWX識すべき文字記号等が記録された
データ領域を示ず情報を予め記憶し、帳票の読み取りパ
ターンからこのデータ領域におけるスキュー量を検出し
、このスキュー」によりスキューエラーか否かを判定す
るようにしたことを特徴とする。
In order to achieve the above object, the optical character recognition device according to the present invention stores information in advance without indicating the data area in which character symbols etc. that should be recognized by WX on a form is recorded, and identifies the data area based on the reading pattern of the form. The feature is that the amount of skew at is detected, and it is determined based on this skew whether or not there is a skew error.

(発明の実施例) 本発明の一実施例による光学的文字認識装置を第1図、
第2図に示す。搬送された帳票は光電変換部30におい
て電気的に走査され光電変換される。光電変換部30に
より光電変換されて読み敗られた読み取りパターンはラ
インバッファ部31内のラインバッファ45に行単位で
格納される。
(Embodiment of the Invention) An optical character recognition device according to an embodiment of the present invention is shown in FIG.
Shown in Figure 2. The transported form is electrically scanned and photoelectrically converted in the photoelectric conversion section 30. The read pattern that has been photoelectrically converted by the photoelectric conversion section 30 and has been read out is stored in a line buffer 45 in the line buffer section 31 line by line.

ラインバッファ45に格納された1行分の読み取りパタ
ーンは、1文字ずつのパターンに切出され、認識部34
に出力される。認識部34は、切出されたパターンを辞
書部32に格納された辞書データと比較演算し、文字認
識をおこなう。認識結果はII 8部36に入力され、
種々の処理がなされる。
The reading pattern for one line stored in the line buffer 45 is cut out into patterns for each character, and the recognition unit 34
is output to. The recognition unit 34 performs character recognition by comparing the extracted pattern with dictionary data stored in the dictionary unit 32. The recognition result is input to II 8 section 36,
Various processes are performed.

制御部36は、また読み取る帳票の帳票フォーマットの
諸データ、すなわちフォーマットコントロール情報(以
下、rFCFC情報いう)をラインバッファ部31およ
びg識部34に出力する。
The control unit 36 also outputs various data of the form format of the form to be read, that is, format control information (hereinafter referred to as rFCFC information) to the line buffer unit 31 and the g-identification unit 34.

ラインバッファ部31は、第2図に示すように1行分の
読み取りパターンを格納するラインバッファ45を有し
、さらにこのラインバッファ45のX方向のアドレスを
司どるXカウンタ43およびY方向アドレスを司どるY
カウンタ44を有している。Aレジスタ40およびBレ
ジスタ41には、FC情報のうち、文字記号等が書かれ
るデータ領域を示すデータが格納される。例えば第3図
に示すように、帳票にn行のデータ領域L1゜L2.・
・・、し、があると、これらの最左端の位置Aおよび位
置Bを示すデータ、例えば帳票の左端から位置Aまでの
距離aがAレジスタ40に格納され、データ領域り、L
2.・・e、Loの最右端までの距ibが8レジスタ4
1に格納される。セレクタ42は、Aレジスタ40と8
レジスタ41のいずれかのデータを、判定回路46から
のセレクト信号により選択する。選択されたデータはX
カウンタ43に入力される。判定回路46は、ラインバ
ッファ45のデータを入力し、スキューエラーか否かを
判定する。
As shown in FIG. 2, the line buffer section 31 has a line buffer 45 that stores a reading pattern for one line, and an X counter 43 that controls the X-direction address of this line buffer 45 and a Y-direction address. Host Y
It has a counter 44. The A register 40 and the B register 41 store data indicating a data area in which characters, symbols, etc. are written, among the FC information. For example, as shown in FIG. 3, a form has n-line data areas L1, L2.・
..., then the data indicating these leftmost positions A and B, for example, the distance a from the left end of the form to position A, is stored in the A register 40, and the data area is
2. ...The distance ib to the rightmost end of e, Lo is 8 registers 4
It is stored in 1. Selector 42 selects A registers 40 and 8.
One of the data in the register 41 is selected by a select signal from the determination circuit 46. The selected data is
It is input to the counter 43. The determination circuit 46 inputs the data in the line buffer 45 and determines whether or not there is a skew error.

次に本実施例の動作を説明する。まず、帳票の搬送前に
制御部36からFC情報のうち、データ領域の左端位置
Aまでの距離aと右端位置Bまでの距離すとを、ライン
バッファ部31のAレジスタ40およびBレジスタ41
に格納する。次に帳票を搬送し、読取ヘッド(図示せず
)で搬送した帳票を読み取り、光電変換30で光電変換
し、ラインバッファ48に読み取りパターンを格納する
Next, the operation of this embodiment will be explained. First, before transporting the form, the control unit 36 sends the distance a to the left end position A and the distance to the right end position B of the data area from the FC information to the A register 40 and the B register 40 of the line buffer unit 31.
Store in. Next, the form is conveyed, read by a reading head (not shown), photoelectrically converted by the photoelectric converter 30, and the read pattern is stored in the line buffer 48.

ラインバッファ48に格納された読み取りパターンは、
第4図に示すように、読み取りパターンの背m1oo中
に帳票パターン101が存在している。まずこの帳票パ
ターン101の左端位置0を検出する。
The reading pattern stored in the line buffer 48 is
As shown in FIG. 4, a form pattern 101 exists on the back m1oo of the read pattern. First, the left end position 0 of this form pattern 101 is detected.

セレクタ42によりAレジスタ4oのデータを選択し、
このデータに帳票パターン101の左端位置OのXアド
レスX。を加えた値をXカラン43にセットする。すな
わち、Xカウンタ43にはX。−トaなるデータがセッ
トされる。同時にYカウンタ44をクリアし、順次Yク
ロックを与えてYカウンタ44をカウントアツプする。
The selector 42 selects the data in the A register 4o,
This data includes the X address X of the left end position O of the form pattern 101. The added value is set in the X callan 43. That is, the X counter 43 contains X. - Data a is set. At the same time, the Y counter 44 is cleared and the Y clock is sequentially applied to count up the Y counter 44.

判定回路46はXカウンタ43とYカウンタ44で示寸
位置のラインバッファ45のデータを読み込みチェック
し、帳票パターン101の先端である白データが入力さ
れたならば、そのときのYカウンタ44の値Y2を記憶
する。これにより帳票パターン101のデータ領域の最
左端の位置AにおけるYアドレスY2を知ることができ
る。
The determination circuit 46 reads and checks the data in the line buffer 45 at the indicated size position using the X counter 43 and the Y counter 44, and if the white data at the tip of the form pattern 101 is input, the value of the Y counter 44 at that time is Store Y2. This makes it possible to know the Y address Y2 at the leftmost position A of the data area of the form pattern 101.

次にセレクタ42によりBレジスタ4のデータを選択し
、このデータに帳票パターン101の左端位置OのXア
ドレスX。を加えた値、すなわち、X□+bなるデータ
をXカウンタ43にセットする。データ領域の最左端の
位置Aのときと同様に、Yカウンタ44をクリアした後
順次カウントアツプし、Xカウンタ43とYカウンタ4
4で示す位置のデータを判定回路46でチェックし、デ
ータ領域の最右端の位置BのYアドレスY1を記憶する
Next, the data in the B register 4 is selected by the selector 42, and the X address X of the left end position O of the form pattern 101 is added to this data. , that is, data of X□+b is set in the X counter 43. As in the case of the leftmost position A of the data area, after clearing the Y counter 44, the count is sequentially increased, and the X counter 43 and Y counter 4 are counted up.
The data at the position indicated by 4 is checked by the determination circuit 46, and the Y address Y1 of the rightmost position B of the data area is stored.

判定回路は、データ領域の最左端の位MAとYアドレス
Y と最右端の位置BのYアドレスY1との差であるス
キー−ffis ” = l Y2−Yl lを演算し
、このスキューff1S′が基準スキュー量S″oより
大きければスキューエラーと判定し、認識部34に出力
する。認識部34はスキューエラーに対し、所定の処理
、例えば読み取り動作の停止をおこなう。
The determination circuit calculates the difference between the leftmost position MA and Y address Y of the data area and the Y address Y1 of the rightmost position B. If it is larger than the standard skew amount S″o, it is determined that there is a skew error and is output to the recognition unit 34. The recognition unit 34 performs a predetermined process, such as stopping the reading operation, in response to the skew error.

従来は第5図に示すようにデータ領域の幅W′とは関係
なく帳票の幅Wに応じたスキュー量Sによりスキューエ
ラーを判定したが、本実施例では、第5図に示すように
帳票のデータ領域の幅W′に応じたスキュー量S′によ
り、スキューエラーが否か判断するので適切な判定がで
きる。
Conventionally, as shown in FIG. 5, skew errors were determined based on the skew amount S that corresponds to the width W of the form regardless of the width W' of the data area, but in this embodiment, as shown in FIG. Since it is determined whether or not there is a skew error based on the skew amount S' corresponding to the width W' of the data area, an appropriate determination can be made.

上記実施例では、第2図に示すような具体的構成により
データ領域におけるスキュー量を求めたが、他の構成に
よりスキュー量を求めるようにしてもよい。
In the above embodiment, the amount of skew in the data area was determined using the specific configuration shown in FIG. 2, but the amount of skew may be determined using other configurations.

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

以上に通り本発明によれば、帳票の実質的なデータ領域
部分でスキューエラーのチェックをおこなうため、適切
な判定が可能である。したがって光学的な文字認識装置
全体のスルーブツトの向上が図れる。
As described above, according to the present invention, since the skew error is checked in the substantial data area of the form, appropriate determination can be made. Therefore, the throughput of the entire optical character recognition device can be improved.

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

第1図、第2図は本発明の一実施例による光学的な文字
認識装置のブロック図、第3図乃至第5図は同光学的文
字認識装置の動作を説明するための図である。 30・・・光電変換部、31・・・ラインバッファ部、
32−0.辞書部、34・・・認識部、36・・・制御
部、40・・・Aレジスタ、41・・・Bレジスタ、4
2・・・セレクタ、43・・・Xカウンタ、44・・・
Yカウンタ、45・・・ラインバッファ、46・・・判
定回路。 出願人代理人  猪  股    清 第1図 第2図 第3図       第5図 帳双遵竹万「司 手続補正書 昭和60年4月23日
1 and 2 are block diagrams of an optical character recognition device according to an embodiment of the present invention, and FIGS. 3 to 5 are diagrams for explaining the operation of the optical character recognition device. 30... Photoelectric conversion section, 31... Line buffer section,
32-0. Dictionary section, 34... Recognition section, 36... Control section, 40... A register, 41... B register, 4
2...Selector, 43...X counter, 44...
Y counter, 45...line buffer, 46...judgment circuit. Applicant's agent Kiyoshi Inomata Figure 1 Figure 2 Figure 3 Figure 5 Book Sou Zunchikuman "Amendment to Procedures April 23, 1985

Claims (1)

【特許請求の範囲】 1、入力した帳票の読み取りパターンをパターンメモリ
に格納し、格納された読み取りパターンから帳票上の文
字、記号等を認識する光学的文字認識装置において、 前記帳票上の文字記号等が書かれるデータ領域を示す情
報を記憶するデータ領域情報記憶手段と、前記パターン
メモリに格納された帳票の読み取りパターンから、前記
データ領域情報記憶手段にに記憶された情報により示さ
れた、前記データ領域におけるスキュー量を演算し、こ
のスキュー量に基づいてスキューエラーか否かを判定す
る判定手段と を備えたことを特徴とする光学的文字認識装置。
[Scope of Claims] 1. An optical character recognition device that stores an input reading pattern of a form in a pattern memory and recognizes characters, symbols, etc. on the form from the stored reading pattern, comprising: data area information storage means for storing information indicating a data area in which the data area, etc. are written; What is claimed is: 1. An optical character recognition device comprising: determining means for calculating the amount of skew in a data area and determining whether or not there is a skew error based on the amount of skew.
JP60059138A 1985-03-23 1985-03-23 Optical character recognizer Pending JPS61217882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60059138A JPS61217882A (en) 1985-03-23 1985-03-23 Optical character recognizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60059138A JPS61217882A (en) 1985-03-23 1985-03-23 Optical character recognizer

Publications (1)

Publication Number Publication Date
JPS61217882A true JPS61217882A (en) 1986-09-27

Family

ID=13104654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60059138A Pending JPS61217882A (en) 1985-03-23 1985-03-23 Optical character recognizer

Country Status (1)

Country Link
JP (1) JPS61217882A (en)

Similar Documents

Publication Publication Date Title
JPS61217882A (en) Optical character recognizer
JP2503208B2 (en) Business card image processing method
JPS58106665A (en) Character line cutout method
JPH0325585A (en) Erroneous reading prevention device in bar code reader
JPH03225578A (en) Method for detecting and segmenting character
JPH0373916B2 (en)
JP3544779B2 (en) Method and apparatus for extracting image data of paper sheets
JPS5932078A (en) Character detecting and segmenting device
JPS60246486A (en) Code pattern reader of bankbook or the like
JPH01226086A (en) Oblique line detecting system
KR100817835B1 (en) Form editor document resistrating method using barcode
JPH0737032A (en) Handwritten symbol entering form and handwritten symbol recognizer
JPS59206987A (en) Letter recognizing device
JPH03122786A (en) Optical character reader
JPH0272497A (en) Optical character reader
JPH11226516A (en) Address reader on customer bar code printed mail
JPS61279991A (en) Character segmenting method for optical character reader and the like
JPS6252687A (en) Character detecting and segmenting system for character reader
JPH05174184A (en) Optical character reader
JPH03217993A (en) Character size recognizer
JPS5914078A (en) Reader of business form
JPH07271902A (en) Optical character reader
JPS5914080A (en) Skew detecting system
JP2002074269A (en) Method for recognizing character
JPH11272795A (en) Method and device for character read and method and device for character examination