JP3521606B2 - Character reader - Google Patents

Character reader

Info

Publication number
JP3521606B2
JP3521606B2 JP06779696A JP6779696A JP3521606B2 JP 3521606 B2 JP3521606 B2 JP 3521606B2 JP 06779696 A JP06779696 A JP 06779696A JP 6779696 A JP6779696 A JP 6779696A JP 3521606 B2 JP3521606 B2 JP 3521606B2
Authority
JP
Japan
Prior art keywords
field
fields
unit
display screen
display
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.)
Expired - Lifetime
Application number
JP06779696A
Other languages
Japanese (ja)
Other versions
JPH09259200A (en
Inventor
英春 服部
敏章 飯野
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP06779696A priority Critical patent/JP3521606B2/en
Publication of JPH09259200A publication Critical patent/JPH09259200A/en
Application granted granted Critical
Publication of JP3521606B2 publication Critical patent/JP3521606B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、帳票上の文字を認
識し、コンピュータで処理可能なコードデータを取得す
る場合に、その認識結果を表示画面に表示して見比べ、
その読取り内容の検証や修正を行う文字読取り装置にお
いて、帳票上の文字配置に類似した配置で表示画面を生
成する表示手段と、その手段を有する文字読取り装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, when recognizing characters on a form and acquiring code data that can be processed by a computer, displays the recognition result on a display screen for comparison.
The present invention relates to a character reading device that verifies and corrects the read content, a display unit that generates a display screen with an arrangement similar to the character arrangement on a form, and a character reading device that has the unit.

【0002】[0002]

【従来の技術】各種伝票や帳票に記載されている文字を
コンピュータで処理可能なコードデータとして入力する
ために、文字読取り装置が広く使用されている。しか
し、帳票に記載された文字の形状や各種ノイズにより、
必ずしも無確認、無修正でクリーンデータは得られな
い。このため、読取り文字の内容が正しいかどうか検証
するために、ディスプレイ等で構成される表示装置に読
取った文字を表示し、帳票との比較、確認が行われる場
合がある。
2. Description of the Related Art Character reading devices are widely used for inputting characters written on various slips and forms as code data that can be processed by a computer. However, due to the character shape and various noises written on the form,
No confirmation, no correction, and no clean data can be obtained. Therefore, in order to verify whether or not the content of the read character is correct, the read character may be displayed on a display device composed of a display or the like to be compared with the form and confirmed.

【0003】上記のような目的に使用される従来の文字
読取り装置の一例として、特開平7−49925号公報
の技術がある。この技術では、文字読取り部は、帳票上
の文字を光学的に読取るためのイメージラインセンサ等
から構成されている。この文字読取り部の出力は文字認
識部に送られ、文字認識部は、認識した文字のコード、
及びその文字の位置情報の他、文字サイズの情報を用い
て、認識した内容を表示画面に表示する。従来、上記の
構成で文字読取りの内容検証を行っていた。
As an example of a conventional character reading device used for the above purpose, there is a technique disclosed in Japanese Patent Laid-Open No. 7-49925. In this technique, the character reading unit includes an image line sensor or the like for optically reading the characters on the form. The output of the character reading unit is sent to the character recognition unit, which recognizes the code of the recognized character,
Also, the recognized content is displayed on the display screen using the character size information as well as the character position information. Conventionally, the content verification of character reading has been performed with the above configuration.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の文字読取り装置には次のような解決すべき課題があ
った。通常、帳票上のいくつかの文字枠に記載された文
字は、一つ一つ別々に認識され、その結果が表示画面に
表示される。この場合、その表示方法は、認識された文
字と、その記入位置を示す情報等を用いて行い、帳票に
似せたレイアウトで表示画面上に読取り文字を表示す
る。従って、1つの表示画面に表示可能な帳票に対して
は、帳票に似せたレイアウトで表示画面に文字を表示で
きる。
However, the above-described conventional character reading device has the following problems to be solved. Usually, the characters written in several character frames on the form are recognized individually and the result is displayed on the display screen. In this case, the display method is performed using the recognized characters and the information indicating the entry position, and the read characters are displayed on the display screen in a layout similar to a form. Therefore, for a form that can be displayed on one display screen, characters can be displayed on the display screen in a layout that resembles the form.

【0005】しかし、1つの表示画面に入りきらない帳
票に対しては表示する文字サイズの縮小や、表示画面の
スクロール等を行って内容の確認をしなければならず、
フィールドの数が多くなればなるほど、見辛くなること
やフィールドが表示画面間に跨る割合が増え、フィール
ドが途切れて表示されることもあり、帳票上の内容が表
示画面上のどの部分に表示されているかを一つ一つ注意
深く探す必要がある。また、表示画面の表示範囲や表示
をするウィンドウのサイズの変更により、関連するフィ
ールドが同じ表示画面に表示されないことや、文字サイ
ズが縮小されて見辛くなることもあり、読取り内容の確
認を行う為に、何度も表示画面を行ったり来たりしなけ
ればならない。そのため、オペレータが表示画面に表示
された内容と帳票を見比べながらの内容検証に多くの労
力を必要とするので、非常に作業能率が悪いという問題
点がある。
However, for a form that cannot fit on one display screen, the size of characters to be displayed must be reduced, the display screen must be scrolled, and the contents must be confirmed.
The larger the number of fields, the more difficult it is to see, the more the fields are spread across the display screens, and the fields may be displayed intermittently. You need to carefully look for each one. Also, due to changes in the display range of the display screen and the size of the window to be displayed, related fields may not be displayed on the same display screen, and the text size may be reduced, making it difficult to see. Therefore, you have to go back and forth between display screens many times. Therefore, the operator needs a lot of effort to verify the contents displayed on the display screen while comparing the contents displayed on the display screen, resulting in a problem that the work efficiency is extremely low.

【0006】本発明は、上記従来の問題点を解決するも
ので、表示画面に表示する画像を、実際に読取った帳票
上のイメージと近似するように文字の表示位置を求める
ことにより、帳票1枚分の表示画面が1つの画面に納ま
らず、複数画面に跨って表示される様々な帳票に対して
も、帳票に類似したレイアウトの表示画面を作成するこ
とで、帳票と表示画面との読取りデータの内容検証の作
業を容易する手段を有する文字読取り装置を提供するこ
とを目的とする。
The present invention solves the above-mentioned conventional problems. The form 1 is obtained by determining the display position of the character so that the image displayed on the display screen approximates the image on the form actually read. By creating a display screen with a layout similar to a form, even for various forms that are displayed across multiple screens and the display screen for one sheet does not fit on one screen, you can read the form and the display screen. An object of the present invention is to provide a character reading device having means for facilitating the work of verifying the contents of data.

【0007】[0007]

【課題を解決するための手段】この目的を達成するため
に本発明の文字読取り装置は、文字コード、文字の表示
位置と文字サイズを得る文字認識部と、認識対象になっ
た各文字の帳票上の文字位置と文字サイズを用いて、帳
票に類似したレイアウトで表示画面上に表示を行うため
の文字表示位置算出部と、1つの表示画面内で表示し切
れない帳票に対してはスクロール操作を行っても、表示
画面間でフィールドが途切れることなく、また表示画面
の表示範囲や表示を行うウィンドウのサイズが変更され
ても文字等の表示サイズを変更することなく、可能な限
り帳票に類似したレイアウトで表示を行うための帳票解
析手段とを備えたことを特徴とするものである。
In order to achieve this object, a character reading apparatus of the present invention comprises a character recognition unit for obtaining a character code, a display position of a character and a character size, and a form for each character to be recognized. Character display position calculation unit for displaying on the display screen in a layout similar to the form using the above character position and size, and scroll operation for forms that cannot be displayed within one display screen. Even if you do, the fields do not break between the display screens, and even if the display range of the display screens or the size of the window that displays is changed, the display size of characters etc. does not change, and it resembles the form as much as possible. It is characterized in that it is provided with a form analysis means for displaying the layout.

【0008】[0008]

【発明の実施の形態】以下、本発明の一実施例における
文字読取り装置について、図1により詳細に説明する。
図1は本発明の一実施例における文字読取り装置の構成
図である。帳票1に記入または印刷された文字を光学的
に読取るための画像データ読取り部10を備え、その出
力は文字認識部20と文字表示位置算出手段26、帳票
解析手段28により処理され、その処理された結果生成
される情報を用いて表示制御部31により、帳票上の各
文字が表示画面3に表示される構成になっている。
BEST MODE FOR CARRYING OUT THE INVENTION A character reading device according to an embodiment of the present invention will be described in detail below with reference to FIG.
FIG. 1 is a block diagram of a character reading device according to an embodiment of the present invention. An image data reading unit 10 for optically reading characters written or printed on the form 1 is provided, and its output is processed by the character recognition unit 20, the character display position calculating unit 26, and the form analyzing unit 28, and the processed. Each character on the form is displayed on the display screen 3 by the display control unit 31 using the information generated as a result.

【0009】文字認識部20及び、帳票1上の文字と文
字枠の位置情報を格納する文字位置情報格納部24及び
文字サイズ格納部25から構成されている。これらの部
分の構成は従来装置と同様である。
It comprises a character recognition unit 20, a character position information storage unit 24 for storing character and character frame position information on the form 1, and a character size storage unit 25. The configuration of these parts is similar to that of the conventional device.

【0010】しかし、本発明の装置には表示画面に帳票
1に類似したレイアウトで文字の表示をするための表示
位置情報を求める文字表示位置算出手段26と文字表示
位置算出部27、及び1つの表示画面に表示できず、複
数画面に表示するような帳票に対して、スクロール操作
を行ってもフィールドが画面間に跨りフィールドが途切
れて見辛くなることなく、関連あるフィールドの内容が
同じ画面に表示されることにより、見易くフィールドの
確認が行い易い表示画面を生成するための帳票を分割す
る境界線を求める帳票解析手段28と、文字表示位置算
出部27で求めた表示位置から帳票解析手段28により
フィールドのグループ化を行って求めた帳票を分割する
境界線の最適性を判断する境界線位置判断部29、表示
画面に文字を表示するための情報を格納する表示位置情
報格納部30が設けられている。
However, in the apparatus of the present invention, the character display position calculating means 26 and the character display position calculating unit 27 for obtaining the display position information for displaying the characters on the display screen in a layout similar to the form 1, and one For a form that cannot be displayed on the display screen and is displayed on multiple screens, even if you perform a scroll operation, the fields will not be interrupted and the fields will be interrupted, and the related fields will be displayed on the same screen. Form analysis means 28 for obtaining a boundary line that divides the form to generate a display screen that is easy to see and that allows easy field confirmation, and form analysis means 28 from the display position obtained by the character display position calculation unit 27. Border line position determination unit 29 that determines the optimality of the boundary line that divides the form obtained by grouping the fields with, and displays characters on the display screen. Display position information storage unit 30 for storing the order information is provided.

【0011】文字位置情報格納部24と文字サイズ格納
部25から出力された情報から、文字表示位置算出手段
26を用いて文字表示位置算出部27で帳票上の各文字
の表示画面上の表示位置を求め、1つの表示画面内にそ
の表示位置が納まっているか、関連あるフィールドが同
じ表示画面内に表示されているか等の判別を帳票解析手
段28を用いて境界線位置判断部29で行う。判断が真
ならば、その表示位置を表示位置情報格納部30に格納
し、偽ならば、帳票解析手段28と文字表示位置算出手
段26を使用して、再度文字表示位置算出部27で前記
帳票上の各文字の表示画面上の表示位置を求めた後、境
界線位置判断部29の判断が真になるまで上記の操作を
繰り返す。
From the information output from the character position information storage unit 24 and the character size storage unit 25, the character display position calculation unit 26 is used by the character display position calculation unit 27 to display the display position of each character on the form on the display screen. The boundary line position determination unit 29 uses the form analysis unit 28 to determine whether the display position is stored in one display screen, related fields are displayed in the same display screen, or the like. If the determination is true, the display position is stored in the display position information storage unit 30, and if the determination is false, the form analysis unit 28 and the character display position calculation unit 26 are used, and the character display position calculation unit 27 again uses the form. After obtaining the display position of each of the above characters on the display screen, the above operation is repeated until the judgment of the boundary line position judgment unit 29 becomes true.

【0012】次に、帳票解析手段28について説明す
る。帳票解析手段28は、レイアウトの特徴を活用し、
フィールドのグループ化を行って帳票を分割する境界線
を求めるフィールドグループ化処理手段21を有する。
図2は、フィールドの位置の求め方の一例である。次
に、フィールドのグループ化を行うために使用するフィ
ールドグループ化処理手段21の7つの条件と境界線の
移動の規則について説明する。
Next, the form analysis means 28 will be described. The form analysis unit 28 makes use of the characteristics of the layout,
It has a field grouping processing means 21 for grouping fields to obtain a boundary line for dividing a form.
FIG. 2 is an example of how to obtain the position of the field. Next, the seven conditions of the field grouping processing means 21 used for grouping fields and the rule of boundary line movement will be described.

【0013】第1の条件は、「フィールドの後端のx座
標が同じフィールド数が多い場合、そのフィールドの後
端のx座標より左側にある全てのフィールドは、同じグ
ループと考える」である。
The first condition is that "when there are many fields having the same x coordinate at the trailing end of the field, all fields on the left side of the x coordinate at the trailing end of the field are considered to be in the same group."

【0014】第2の条件は、「フィールドの先端のx座
標が同じフィールド数が多い場合、そのフィールドの先
端のx座標より右側にある全てのフィールドは、同じグ
ループと考える」である。
The second condition is that "when there are many fields having the same x-coordinate of the field leading edge, all fields to the right of the x-coordinate of the field leading edge are considered to be in the same group".

【0015】第3の条件は、「フィールドの先端のx座
標、後端のx座標が各々同じフィールドは、同じグルー
プと考える」である。
The third condition is that "fields having the same x coordinate at the front end and the same x coordinate at the rear end of the field are considered to be in the same group."

【0016】第4の条件は、「第3の条件で求めた同じ
グループに属するフィールドのうち、フィールド同士の
y座標の差が同じ全てのフィールドを同じグループと考
える」である。
The fourth condition is that "of the fields belonging to the same group obtained under the third condition, all the fields having the same y coordinate difference between the fields are considered as the same group".

【0017】第5の条件は、「全てのフィールドのy座
標に着目し、フィールド同士のy座標の差が大きいフィ
ールド同士は別々のグループと考え、その差が小さいフ
ィールド同士は、同じグループと考える」である。
The fifth condition is that "focusing on the y-coordinates of all fields, the fields having a large difference in y-coordinate between the fields are considered as different groups, and the fields having a small difference are considered as the same group. It is.

【0018】第6の条件は、「フィールドの後端のx座
標からそのフィールドの先端のx座標を引いた値が同じ
フィールド同士、もしくはx方向のフィールド間の差が
同じフィールド同士は同じグループと考える」である。
The sixth condition is that "fields having the same value obtained by subtracting the x coordinate of the leading end of the field from the x coordinate of the trailing end of the field are the same, or the fields having the same difference between the x direction are the same group. Think. "

【0019】第7の条件は、「x方向とy方向のグルー
プの和集合を求め、その和集合に属するフィールドは同
じグループと考える」である。
The seventh condition is that "the union of groups in the x direction and the y direction is obtained, and the fields belonging to the union are considered to be the same group".

【0020】次に、境界線の移動の規則について説明す
る。任意のフィールドの後端のx座標に位置する境界線
の移動の規則は2つの規則からなる。第1の規則は、
「境界線がグループ内にあるならば、グループの境界線
のx座標まで境界線を移動する」である。第2の規則
は、「境界線がグループの境界線に位置、もしくは外側
に位置するならば、境界線の移動はしない」である。
Next, the rule for moving the boundary line will be described. The rule of movement of the boundary line located at the x-coordinate of the trailing edge of any field consists of two rules. The first rule is
"If the boundary is within the group, move the boundary to the x coordinate of the boundary of the group." The second rule is "if the boundary line is located at or outside the boundary line of the group, the boundary line is not moved".

【0021】帳票一枚分が複数の表示画面に跨って表示
される帳票に対して、帳票解析手段28を用いて、帳票
に類似したレイアウトを複数に分割し表示する。帳票解
析手段28は帳票分割処理手段22を有する。帳票分割
処理手段22は、帳票を左右に分割する手段(S1)、
帳票を上下に分割する手段(S2)、帳票を上下左右の
4つに分割する手段(S3)、分割の最適性を判断する
手段(S4)の4つの手段を有する。次に、各手段の一
例を示す。
With respect to a form in which one form is displayed over a plurality of display screens, the form analysis means 28 is used to divide and display a layout similar to the form. The form analysis unit 28 has a form division processing unit 22. The form dividing processing means 22 divides the form into left and right parts (S1),
It has four means: a means for dividing the form vertically (S2), a means for dividing the form vertically and horizontally (S3), and a means (S4) for determining the optimality of division. Next, an example of each means is shown.

【0022】S1の手段は、第1の条件でフィールドの
グループ化を行って、仮の境界線を求める。さらに、ま
ず第3、4の条件を用いて、y方向のフィールドのグル
ープ化を行い、次に第6の条件を用いて、x方向のフィ
ールドのグループ化を行う。最後に第7の条件を用い
て、第3、4、6の条件で求めた各フィールドのグルー
プの和集合を求めて、フィールドのグループ化を行う。
ここで、第1の条件で求めた境界線がフィールドのグル
ープ範囲を示す境界線とどのような位置関係にあるかを
境界線の移動の規則を用いて境界線位置判断部29で判
断し、境界線の位置を求めることにより、帳票を左右に
分割する境界線の候補を求める。
The means of S1 performs field grouping under the first condition to obtain a provisional boundary line. Further, first, the fields in the y direction are grouped by using the third and fourth conditions, and then the fields in the x direction are grouped by using the sixth condition. Finally, using the seventh condition, the union of the groups of the respective fields obtained under the third, fourth, and sixth conditions is obtained, and the fields are grouped.
Here, the boundary line position determination unit 29 determines the positional relationship between the boundary line obtained under the first condition and the boundary line indicating the group range of the field, using the boundary line movement rule. By determining the position of the boundary line, a candidate for the boundary line that divides the form into left and right is obtained.

【0023】S2の手段は、まず第3、4の条件を用い
て、y方向のフィールドのグループ化を行い、求めたフ
ィールドのグループの中で、他のフィールドと異なり、
フィールド同士のy座標の差が大きく離れたフィールド
のy座標の位置を第5の条件を用いて求め、フィールド
のグループ化を行う。ここで求めたy座標の位置が、帳
票を上下に分割する境界線の位置の候補となる。
The means of S2 first groups the fields in the y direction using the third and fourth conditions, and differs from the other fields in the group of the obtained fields.
By using the fifth condition, the position of the y-coordinate of the field where the difference between the y-coordinates of the fields is greatly separated is obtained and the fields are grouped. The position of the y coordinate obtained here becomes a candidate for the position of the boundary line that divides the form into upper and lower parts.

【0024】S3の手段は、S1の手段を用いて、帳票
を左右に分割する境界線の候補を求める。次に、S2の
手段を用いて、帳票を上下に分割する境界線を求める。
さらに、帳票を上下に分けて帳票の下の部分に分類され
た全てのフィールドが1つの表示画面に納まらない場合
に、帳票の下の部分に分類されたフィールドについて、
再度S1、S2の手段を繰返し用い、フィールドのグル
ープ化を行う。ここで求めた各境界線が帳票を上下左右
に分割する境界線の候補となる。
The means of S3 uses the means of S1 to obtain a candidate for a boundary line that divides the form into left and right. Next, the boundary line that divides the form into upper and lower parts is obtained using the means of S2.
Furthermore, if all fields classified into the lower part of the form by dividing the form into one display screen do not fit on one display screen, regarding the fields classified into the lower part of the form,
Fields are grouped by repeatedly using the means of S1 and S2. Each boundary line obtained here is a candidate for a boundary line that divides the form vertically and horizontally.

【0025】S4の手段は、各手段において求めた境界
線が、一つもフィールドを上下、もしくは左右に分割す
ることが無ければ何も処理をせず、あるいは求めた境界
線がどれか一つでもフィールドを上下、もしくは左右に
分割することがあれば、または求めた境界線が表示画面
の表示範囲を表す各境界線の座標より大きいことがあれ
ば、各手段の次に優先順位の高い候補を新たな境界線と
し、フィールドを上下、左右に分割することがない境界
線を見つける。
The means of S4 does not perform any processing if the boundary line obtained by each means does not divide the field into upper and lower sides or left and right, or even if any one of the obtained boundary lines is obtained. If the field is divided vertically or horizontally, or if the obtained boundary line is larger than the coordinates of each boundary line that represents the display range of the display screen, the candidate with the next highest priority of each means is selected. Find a new boundary that does not split the field vertically or horizontally.

【0026】上記の帳票解析手段28の4つの手段を用
いて求めた境界線を用いて、帳票一枚分が複数の表示画
面に跨って表示される帳票に対する表示画面を作成す
る。
A display screen for a form in which one form is displayed over a plurality of display screens is created using the boundary lines obtained by using the four means of the form analysis means 28.

【0027】図3は、本発明の一実施例における文字読
取り装置の帳票上の各文字の表示画面上での表示位置を
求める表示位置算出処理の詳細なフローチャートであ
る。
FIG. 3 is a detailed flowchart of the display position calculation processing for obtaining the display position of each character on the display screen of the character reading apparatus according to the embodiment of the present invention.

【0028】次に、図3の表示位置算出処理について説
明する。まず、帳票が1つの表示画面内に納まるかどう
かを判定する(T1)。真である場合は、帳票レイアウ
トを表示レイアウトとして表示位置算出処理を終了す
る。偽である場合は、前記帳票が表示画面のy方向に関
して納まるかどうかを判定する(T2)。真である場合
は、前記帳票は表示画面のx方向に関して納まらないこ
とになるので、帳票解析手段28のS1、S4を適用し
て表示位置算出処理を終了する(T3)。偽である場合
は、前記帳票が表示画面のx方向に関して納まるかどう
かを判定する(T4)。真である場合は、帳票解析手段
28のS2とS4を適用して表示位置算出処理を終了す
る(T5)。偽である場合は、帳票解析手段28のS
3、S4を適用して表示位置算出処理を終了する(T
6)。
Next, the display position calculation processing of FIG. 3 will be described. First, it is determined whether the form fits within one display screen (T1). If true, the form layout is used as the display layout and the display position calculation process ends. If it is false, it is determined whether the form fits in the y direction of the display screen (T2). If it is true, the form will not fit in the x direction of the display screen, so S1 and S4 of the form analysis means 28 are applied and the display position calculation processing is ended (T3). If it is false, it is determined whether the form fits in the x direction of the display screen (T4). If it is true, S2 and S4 of the form analysis means 28 are applied and the display position calculation process is ended (T5). If false, S of the form analysis unit 28
3 and S4 are applied, and the display position calculation process ends (T
6).

【0029】次に、図4に示す帳票上の各文字を表示画
面に出力するための帳票を分割する切れ目を表す境界線
を算出する過程を、表示位置算出処理のフローチャート
を用いて説明する。図4は本発明の一実施例における文
字読取り装置の表示位置算出処理とその処理後出力され
る表示画面の一例を示す図である。図4のR1はフィー
ルドの後端のx座標、P1はフィールドとy座標が同じ
右隣りのフィールドの先端のx座標、線分K、線分Gは
表示画面に帳票上の文字を出力するときの画面分割を行
うための境界線を表す。図4のの図が従来の一つの表
示画面で表示できる境界線の位置とする。
Next, a process of calculating a boundary line representing a break dividing a form for outputting each character on the form shown in FIG. 4 on a display screen will be described with reference to a flow chart of a display position calculating process. FIG. 4 is a diagram showing an example of the display position calculation process of the character reading device and the display screen output after the process according to the embodiment of the present invention. In FIG. 4, R1 is the x-coordinate of the rear end of the field, P1 is the x-coordinate of the front end of the right adjacent field having the same y-coordinate as the field, and line segment K and line segment G are for outputting characters on the form to the display screen. Represents a boundary line for dividing the screen. It is assumed that the diagram of FIG. 4 is the position of the boundary line that can be displayed on one conventional display screen.

【0030】表示画面を生成するための帳票上の切れ目
を表す各境界線が図4の図の状態にある場合に、各フ
ィールドに対して、表示位置算出処理のT1、T2、T
4の判断処理を順次行い、T6の帳票解析手段28のS
3を行う。
When each boundary line representing a break on a form for generating a display screen is in the state shown in FIG. 4, T1, T2, T of the display position calculation processing is performed for each field.
The determination processing of 4 is sequentially performed, and S of the form analysis unit 28 of T6 is performed.
Do 3.

【0031】S3では、フィールドのグループ化の第2
以外の第1から第7の条件を全て使用する。まず第1の
条件を使用して図4のに示す仮の境界線Kを得て、次
に、第3、4の条件を使用して、図4のに示すy方向
のフィールドのグループを求める。そして第6の条件を
用いて図4のに示すx方向のフィールドのグループを
求め、それから第7の条件を用いて、図4のに示す第
3、4、6の条件を用いて求めた各フィールドのグルー
プの和集合を求める。この和集合を表すフィールドのグ
ループにおいて、先程第1の条件を使用して求めた仮の
境界線Kの位置が最適か否かを境界線の移動の規則を用
いて境界線位置判断部29で判断し、正しい境界線の位
置を求める。ここで求めたフィールドのグループに対し
て、第5の条件を用いてフィールドのグループを上下に
分割する境界線Gを求める。ここで、帳票の下の部分に
分類されたフィールドのグループは一つの表示画面内に
納まるので、S3の処理を終了する。上記で求めた各境
界線が帳票解析手段のS4を満たすか否かを判断し、S
4を満たす境界線を求める。求めた各境界線から、図4
の各表示画面を自動生成する。
In S3, the second grouping of fields is performed.
All the first to seventh conditions other than are used. First, the first condition is used to obtain the provisional boundary K shown in FIG. 4, and then the third and fourth conditions are used to obtain the group of fields in the y direction shown in FIG. . Then, the sixth condition is used to obtain the group of fields in the x direction shown in FIG. 4, and then the seventh condition is used to obtain each of the third, fourth, and sixth conditions shown in FIG. Find the union of a group of fields. In the group of fields representing this union, the boundary line position determination unit 29 determines whether the position of the temporary boundary line K obtained using the first condition is optimal using the boundary line movement rule. Judge and find the correct boundary line position. For the group of fields obtained here, a boundary line G that divides the group of fields into upper and lower parts is obtained using the fifth condition. Here, since the group of fields classified into the lower part of the form fits within one display screen, the process of S3 ends. It is determined whether or not each boundary line obtained above satisfies S4 of the form analysis means, and S
A boundary line that satisfies 4 is obtained. From each boundary line obtained,
Each display screen of is automatically generated.

【0032】これは従来の図5に示すスクロール操作を
用いた表示画面での表示とは異なり、帳票と表示画面と
の内容確認が行い易い。
This is different from the conventional display on the display screen using the scroll operation shown in FIG. 5, and it is easy to confirm the contents of the form and the display screen.

【0033】次に、文字表示位置算出手段26の1手段
について説明する。文字表示位置算出手段26は、フィ
ールドの表示位置を求める手段の他に、表示範囲が変更
された場合に、関連があるフィールドを可能な限り同じ
画面、または同じウィンドウ内に表示をする手段も有す
る。この手段の詳細なフローチャートを図7に示す。こ
の手段は、変更された表示範囲内に関連あるフィールド
を表示する為に、フィールドを表示できる空白を探し、
そのフィールドの表示位置を求める手段である。
Next, one means of the character display position calculation means 26 will be described. The character display position calculation means 26 has a means for displaying related fields on the same screen or the same window as much as possible when the display range is changed, in addition to the means for obtaining the display position of the field. . A detailed flowchart of this means is shown in FIG. This means that in order to display the related fields within the modified display range, we will look for blank spaces that can display the fields,
It is a means for obtaining the display position of the field.

【0034】図6は、図4で表示画面でのウィンドウの
サイズを変更した場合の各フィールドの表示位置を示し
ている。図6では、ウィンドウの右側の縦線が表示範囲
の縦の境界線に対応し、またウィンドウの下側の横線が
表示範囲の横の境界線に対応している。
FIG. 6 shows the display position of each field when the size of the window on the display screen is changed in FIG. In FIG. 6, the vertical line on the right side of the window corresponds to the vertical boundary line of the display range, and the horizontal line on the lower side of the window corresponds to the horizontal boundary line of the display range.

【0035】従って、図7のフローチャートで示す文字
表示位置算出手段26を用いることにより、関連するフ
ィールドに属する文字を文字サイズを変えずに可能な限
り同じウィンドウに表示できので、表示画面が様々なウ
ィンドウで混雑していても、少ないスペースで読取りデ
ータの内容の確認作業が容易に行える。このことは、表
示画面のウィンドウスペースを効率的に利用する場合に
役に立つ。
Therefore, by using the character display position calculating means 26 shown in the flow chart of FIG. 7, the characters belonging to the related fields can be displayed in the same window as much as possible without changing the character size, so that various display screens can be displayed. Even if the window is crowded, you can easily check the contents of the read data in a small space. This is useful for efficiently using the window space of the display screen.

【0036】尚、本発明は本実施例に限定される訳では
ない。認識対象帳票が横書きや縦書き帳票であっても、
また一つの表示画面に表示可能な帳票や複数の表示画面
に表示しなければならない帳票に対しても、本実施例と
同様に処理することができる。
The present invention is not limited to this embodiment. Even if the recognition target form is a horizontal or vertical form,
Further, a form that can be displayed on one display screen or a form that must be displayed on a plurality of display screens can be processed in the same manner as this embodiment.

【0037】[0037]

【発明の効果】以上のように説明した本発明の文字読取
り装置は、光学的に読取った文字と、帳票上の文字の位
置情報と文字サイズの情報を利用し、文字表示位置算出
手段と帳票解析手段により、スクロール操作を行っても
フィールドが表示画面間で途切れることなく、また表示
するウィンドウのサイズを変更しても可能な限り関連す
るフィールドに属する文字を文字サイズを変えずに同じ
ウィンドウに表示できるので、帳票に類似したレイアウ
トで表示画面に前記読取り文字を表示可能となる。従っ
て、帳票を認識した表示画面上の内容と帳票上の内容と
の確認が行い易く、内容検証の作業をスムーズに行うこ
とが可能なので、オペレータの労力を大幅に軽減させる
ことができる。また、本発明の文字読取り装置はウィン
ドウのサイズを小さくする際に、文字サイズを変えずに
レイアウトをできるだけ保存する業務にも適用できる。
As described above, the character reading device of the present invention utilizes the optically read characters, the position information of the characters on the form, and the character size information to calculate the character display position calculating means and the form. By the analysis method, the field does not break between the display screens even when scrolling is performed, and even if the size of the window to be displayed is changed, the characters belonging to the related fields are displayed in the same window without changing the character size. Since it can be displayed, the read characters can be displayed on the display screen in a layout similar to a form. Therefore, it is easy to confirm the contents on the display screen and the contents on which the form is recognized, and the contents verification work can be performed smoothly, so that the labor of the operator can be greatly reduced. Further, the character reading device of the present invention can be applied to the business of saving the layout as much as possible without changing the character size when reducing the size of the window.

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

【図1】本発明の文字読取り装置の実施例を示す図であ
る。
FIG. 1 is a diagram showing an embodiment of a character reading device of the present invention.

【図2】本発明のフィールドの位置の求め方の一例を示
す図である。
FIG. 2 is a diagram showing an example of how to obtain the position of a field according to the present invention.

【図3】本発明の表示位置計算処理の詳細なフローチァ
ートである。
FIG. 3 is a detailed flowchart of a display position calculation process of the present invention.

【図4】本発明の文字読取り装置の表示位置算出処理と
その処理後出力される表示画面の一実施例を示す図であ
る。
FIG. 4 is a diagram showing an embodiment of a display position calculation process of the character reading device of the present invention and a display screen output after the process.

【図5】従来の文字読取り装置による表示画面への出力
の一例を示す図である。
FIG. 5 is a diagram showing an example of output to a display screen by a conventional character reading device.

【図6】本発明の文字読取り装置の表示位置算出処理と
その処理後出力される表示画面の一実施例を示す図であ
る。
FIG. 6 is a diagram showing an embodiment of a display position calculation process of the character reading device of the present invention and a display screen output after the process.

【図7】本発明の文字表示位置算出手段の一手段の詳細
なフローチァートである。
FIG. 7 is a detailed flowchart of one means of the character display position calculation means of the present invention.

【符号の説明】[Explanation of symbols]

1…帳票、 2…表示装置、 3
…表示画面、10…画像データ読取り部、
20…文字認識部、21…フィールドグルー
プ化処理手段、 22…帳票分割処理手段、
24…文字位置情報格納部、 25…文字サイズ格納
部、26…文字表示位置算出手段、 27…文字表示位
置算出部、28…帳票解析手段、 29…境界
線位置判断部、30…表示位置情報格納部、 31…
表示制御部、40…文字位置入力部、50…文字位置自
動検出部。
1 ... Form, 2 ... Display device, 3
... display screen, 10 ... image data reading section,
20 ... Character recognition unit, 21 ... Field grouping processing unit, 22 ... Form division processing unit,
24 ... Character position information storage unit, 25 ... Character size storage unit, 26 ... Character display position calculation unit, 27 ... Character display position calculation unit, 28 ... Form analysis unit, 29 ... Boundary line position determination unit, 30 ... Display position information Storage part, 31 ...
Display control unit, 40 ... Character position input unit, 50 ... Character position automatic detection unit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 19/00 G06F 17/21 G06K 9/03 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 19/00 G06F 17/21 G06K 9/03

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】帳票上の文字を認識する文字認識部と、 前記文字認識部によって認識される前記帳票上の文字が
属するフィールドの位置と、前記帳票上のフィールドの
サイズとを検出するフィールド位置検出部と、 前記フィールド位置検出部によって検出された前記帳票
上のフィールドの位置を格納するフィールド位置情報格
納部と、 前記フィールド位置検出部によって検出された前記帳票
上のフィールドのサイズを格納するフィールドサイズ格
納部と、 前記フィールド位置検出部によって検出された前記帳票
上の複数のフィールドを表示する表示手段と、 前記フィールド位置情報格納部から出力されたフィール
ドの前記帳票上の位置情報と、前記フィールドサイズ格
納部から出力されたフィールドのサイズ情報と、前記表
示手段に設けられた表示画面のサイズとを用いて、前記
フィールド位置情報格納部から出力されたフィールドの
前記表示画面での表示位置を計算し、 前記フィールド位置情報格納部から出力された複数のフ
ィールドのうち先端又は後端の座標が共通するフィール
ド数が他の先端又は後端の座標が共通するフィールド数
よりも多いフィールドを境に、前記フィールド位置情報
格納部から出力された複数のフィールドをグループ分け
し、又は、前記フィールド位置情報格納部から出力され
た複数のフィールドのうち先端及び後端の座標が同じフ
ィールドを同じグループとし、当該同じグループに属す
るフィールド相互の座標の差が共通するフィールドを基
にして、前記フィールド位置情報格納部から出力された
複数のフィールドをグループ分けし前記グループ分けされたグループ毎に 前記表示画面に表
示する前記帳票分割し、 前記分割された前記帳票の分割領域に含まれる複数のフ
ィールドが前記表示画面に納まらない場合には、び、
前記表示画面に納まらないグループに対して、前記フィ
ールド位置情報格納部から出力された複数のフィールド
のうち先端又は後端の座標が共通するフィールド数が他
の先端又は後端の座標が共通するフィールド数よりも多
いフィールドを境に、前記フィールド位置情報格納部か
ら出力された複数のフィールドをグループ分けし、又
は、前記フィールド位置情報格納部から出力された複数
のフィールドのうち先端及び後端の座標が同じフィール
ドを同じグループとし、当該同じグループに属するフィ
ールド相互の座標の差が共通するフィールドを基にし
て、前記フィールド位置情報格納部から出力された複数
のフィールドをグループ分けすることにより、複数のフ
ィールドを前記表示画面に表示するように前記表示位置
の補正を行う判断部と、 を有することを特徴とする文字読取り装置。
1. A character recognition unit for recognizing characters on a form, a field position for detecting the position of a field to which the characters on the form recognized by the character recognition unit belong, and the size of the field on the form. A detection unit, a field position information storage unit that stores the position of the field on the form detected by the field position detection unit, and a field that stores the size of the field on the form detected by the field position detection unit A size storage unit, a display unit for displaying a plurality of fields on the form detected by the field position detection unit, position information on the form of the field output from the field position information storage unit, and the field The size information of the field output from the size storage unit and the size information stored in the display means are provided. By using the size of the display screen, the display position in said display screen field output from the field position information storing unit calculates the tip of the plurality of fields that are output from the field position information storage or Feels with common rear end coordinates
The number of fields is the same as the coordinates of other leading or trailing edges.
The boundary more fields than, grouping a plurality of fields that are output from the field position information storage unit
Or output from the field location information storage section
The coordinates of the leading and trailing edges of the
Fields belong to the same group and belong to the same group
Based on the fields that have the same coordinate difference between
And output from the field position information storage section.
Grouping a plurality of fields, and dividing the form to be displayed on the display screen for each of the grouped groups, a plurality of marks included in the divided divided regions of the document was
If the field does not fit on the display screen is, again,
For groups that do not fit on the display screen,
Fields output from the field location information storage
The number of fields that have the same coordinates at the leading or trailing ends
The coordinates of the leading or trailing edges of the
The field location information storage section
Grouping a plurality of fields that are al output, also
Is the number output from the field position information storage unit.
Fields with the same coordinates at the front and rear ends of the field
Files in the same group and belong to the same group.
Based on fields that have the same coordinate difference between fields
A plurality of data output from the field position information storage unit.
A character reading device comprising: a determination unit that corrects the display position so that a plurality of fields are displayed on the display screen by grouping the fields.
【請求項2】請求項1に記載の文字読取装置において、 オペレータの入力を受け付けるフィールド位置入力部と
を有し、 前記フィールド位置情報格納部に格納される情報は、前
記文字認識部によって認識される前記帳票上の文字が属
するフィールドの位置を表し、前記フィールド位置入力
部によって入力される帳票設計値或は計測値であること
を特徴とする文字読取装置。
2. The character reading device according to claim 1, further comprising: a field position input unit that receives an input from an operator, wherein the information stored in the field position information storage unit is recognized by the character recognition unit. that represents the position of the field which the characters belong on the document, the character read - and wherein the said a form design values or measured values are inputted by the field position input unit.
JP06779696A 1996-03-25 1996-03-25 Character reader Expired - Lifetime JP3521606B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06779696A JP3521606B2 (en) 1996-03-25 1996-03-25 Character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06779696A JP3521606B2 (en) 1996-03-25 1996-03-25 Character reader

Publications (2)

Publication Number Publication Date
JPH09259200A JPH09259200A (en) 1997-10-03
JP3521606B2 true JP3521606B2 (en) 2004-04-19

Family

ID=13355282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06779696A Expired - Lifetime JP3521606B2 (en) 1996-03-25 1996-03-25 Character reader

Country Status (1)

Country Link
JP (1) JP3521606B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165408A (en) 2006-12-27 2008-07-17 Canon Inc Information processor, its control method, and program
JP5475856B2 (en) * 2012-11-26 2014-04-16 株式会社サピエンス Image display method and image display program

Also Published As

Publication number Publication date
JPH09259200A (en) 1997-10-03

Similar Documents

Publication Publication Date Title
US7926732B2 (en) OCR sheet-inputting device, OCR sheet, program for inputting an OCR sheet and program for drawing an OCR sheet form
JPH03144863A (en) Detecting method and correcting method for inclination of picture and picture information processor
NL9301004A (en) Apparatus for processing and reproducing digital image information.
JP2018097551A (en) Method, program, and device for scrapping article from paper image imaged by camera of portable terminal device
JP3471578B2 (en) Line direction determining device, image tilt detecting device, and image tilt correcting device
US5412742A (en) Method for the detection of line width of line image in image processor
JP3521606B2 (en) Character reader
JP2012181653A (en) Scoring method, program of scoring method, and scoring system
JP2009031937A (en) Form image processing apparatus and form image processing program
JP5051756B2 (en) Form identification method, form identification program, and optical character reading system using the form identification method
JPH11265422A (en) Method and device for recognizing mark and recording medium
CN114937279A (en) BOM recognition method and device for realizing IA based on RPA and AI
JP2625612B2 (en) Image processing method and image processing apparatus
US5471536A (en) Figure digitizing system
JP3516540B2 (en) Construction drawing recognition method and recognition device
JP2001154779A (en) Mouse cursor control method
JPH0424782A (en) Document processor
JP3679241B2 (en) Construction drawing recognition method and recognition apparatus
JPH1166228A (en) Method for generating format information of document for optical character reader
JP3100825B2 (en) Line recognition method
JP2803736B2 (en) Character recognition method
JP2012243121A (en) Data creation device, data creation program, recording medium and data creation method
JP2616447B2 (en) Map data input method
JPH117493A (en) Character recognition processor
JPH0721311A (en) On-line character segmenting device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031222

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040202

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080220

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100220

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100220

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110220

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 9

EXPY Cancellation because of completion of term