JPH10340314A - Document processing system, character recognition method therefor and record medium therefor - Google Patents
Document processing system, character recognition method therefor and record medium thereforInfo
- Publication number
- JPH10340314A JPH10340314A JP9151423A JP15142397A JPH10340314A JP H10340314 A JPH10340314 A JP H10340314A JP 9151423 A JP9151423 A JP 9151423A JP 15142397 A JP15142397 A JP 15142397A JP H10340314 A JPH10340314 A JP H10340314A
- Authority
- JP
- Japan
- Prior art keywords
- format
- format definition
- character recognition
- processing system
- definition
- 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
- 238000000034 method Methods 0.000 title claims description 50
- 230000008449 language Effects 0.000 claims description 40
- 230000010365 information processing Effects 0.000 claims description 26
- 238000006243 chemical reaction Methods 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 5
- 239000000284 extract Substances 0.000 abstract description 2
- 230000002093 peripheral effect Effects 0.000 description 10
- 230000002457 bidirectional effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000008602 contraction Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000013067 intermediate product Substances 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
Landscapes
- Character Input (AREA)
Abstract
Description
【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION
【0001】[0001]
【発明の属する技術分野】本発明は、帳票原稿を読み取
り、その読み取り結果を文字認識する帳票処理システ
ム、その文字認識方法およびその記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a form processing system for reading a form original and recognizing the read result as characters, a character recognition method and a recording medium.
【0002】[0002]
【従来の技術】従来、帳票原稿をスキャナーにより読み
取り、その読み取り結果を文字認識して、帳票に記載さ
れている情報をコード化する帳票処理システムが知られ
ている小規模の帳票処理システムはスキャナーとパーソ
ナルコンピュータのみで構成され、大規模なシステムで
はメインフレームのようなホストコンピュータと端末装
置をLAN(ローカルエリアネットワーク)で接続する
構成を採っている。このシステム構成を図lに示す。2. Description of the Related Art Conventionally, there is known a form processing system for reading a form original with a scanner, recognizing the read result as characters, and encoding information described in the form. A large-scale system employs a configuration in which a host computer such as a mainframe and a terminal device are connected via a LAN (local area network). This system configuration is shown in FIG.
【0003】図1において、ホストコンピュータ10、
大型プリンタ20、ディスク記憶装置30および複数の
端末装置40がLAN50により接続されている。In FIG. 1, a host computer 10,
A large printer 20, a disk storage device 30, and a plurality of terminal devices 40 are connected by a LAN 50.
【0004】端末装置40には中小型プリンタ41およ
びスキャナー42が接続される。このような構成の帳票
処理システムでは図2に示すような帳票処理を行ってい
る。ホストコンピュータ10は端末装置40からの指示
により印刷すべき帳票を作成する。帳票を印刷するため
の帳票を作成するための言語としてはたとえば、OGL
(Overlay Generation Langu
ageのことで、IBM社の登録商標。)のような帳票
生成言語が知られている。帳票生成言語で記載された帳
票データ101はホストコンピュータ10から大型プリ
ンタ20に転送され、大型プリンタ20で帳票が印刷出
力される。上記帳票データはディスク記憶装置30にデ
ータベースの形態で蓄積され、必要に応じてホストコン
ピュータ10により取り出される。[0006] A small-sized printer 41 and a scanner 42 are connected to the terminal device 40. The form processing system having such a configuration performs the form processing as shown in FIG. The host computer 10 creates a form to be printed according to an instruction from the terminal device 40. As a language for creating a form for printing the form, for example, OGL
(Overlay Generation Langu
Age is a registered trademark of IBM Corporation. ) Are known. The form data 101 described in the form generation language is transferred from the host computer 10 to the large printer 20, and the large printer 20 prints out the form. The form data is stored in the form of a database in the disk storage device 30, and is retrieved by the host computer 10 as needed.
【0005】端末装置40は自己の端末装置40に接続
した中小型プリンタ41により一般情報が記載された帳
票や情報が記載されていない帳票(定型文字と罫線)の
みを印刷することも可能である。一般的に、大型コンピ
ュータが使用する大型プリンタ20と、パーソナルコン
ピュータ等の中小型コンピュータが使用する中小型プリ
ンタ41とは印刷の書式の記載方法が異なるので、端末
装置40側では、上記帳票生成言語等で記載されたフォ
ーマット定義をたとえば、ページ記述言語で記載された
フォーマット定義に変換(図2の符号102)する。そ
の変換の結果得られる帳票データ103に対して必要が
あれば、帳票記載情報(テキスト)104を付加してプ
リンタ41から印刷出力する(図2の符号106)。The terminal device 40 can print only a form on which general information is described or a form on which no information is described (standard characters and ruled lines) by a small-sized printer 41 connected to the terminal device 40 itself. . In general, a large printer 20 used by a large computer and a small printer 41 used by a small computer such as a personal computer have a different printing format description method. Is converted into a format definition described in, for example, a page description language (reference numeral 102 in FIG. 2). If necessary, the form data 103 obtained as a result of the conversion is added to the form description information (text) 104 and printed out from the printer 41 (reference numeral 106 in FIG. 2).
【0006】大型プリンタ20により印刷された図3の
ような帳票の罫線枠204の中に手書き文字で情報が書
き込まれる。手書き文字で情報が記載された帳票原稿は
スキャナー42にセットされ、原稿イメージが読み取ら
れる(図2の符号107)。Information is written with handwritten characters in a ruled line frame 204 of a form printed by the large printer 20 as shown in FIG. The form document on which information is described by handwritten characters is set on the scanner 42, and the document image is read (reference numeral 107 in FIG. 2).
【0007】読み取られた原稿イメージ(図2の符号1
08)は端末装置40に送られて、端末装置40におい
て、文字認識される(図2の符号109)。The read original image (reference numeral 1 in FIG. 2)
08) is sent to the terminal device 40, and the terminal device 40 performs character recognition (109 in FIG. 2).
【0008】通常、文字認識の場合には予め認識対象の
原稿の大きさ、原稿イメージ中の認識対象の文字領域の
位置および大きさ(文字認識枠とも呼ばれる)等のフォ
ーマットを定義しておく必要がある(図2の符号11
0)。Usually, in the case of character recognition, it is necessary to define in advance a format such as the size of a document to be recognized, the position and size of a character area to be recognized in a document image (also called a character recognition frame). (Reference numeral 11 in FIG. 2)
0).
【0009】端末装置40ではこのフォーマット定義に
より示される文字認識枠内の原稿イメージ、すなわち、
文字のイメージを上記読み取られた原稿イメージから取
り出し、予め用意されている文字パターンと比較する。
一致の文字パターンの文字コードが文字の認識結果とな
る。このようにして文字認識を施すことにより帳票原稿
に記載された手書き文字を文字コード化してテキスト1
11を得ることができる。得られたテキストは、ホスト
コンピュータ10を介してディスク記憶装置30のデー
タベースに蓄積され、必要に応じて取り出される。In the terminal device 40, the original image in the character recognition frame indicated by the format definition, that is,
A character image is extracted from the read document image and compared with a character pattern prepared in advance.
The character code of the matching character pattern is the character recognition result. By performing the character recognition in this manner, the handwritten characters described in the form document are converted into character codes and converted into the text 1
11 can be obtained. The obtained text is stored in the database of the disk storage device 30 via the host computer 10, and is retrieved as needed.
【0010】このような帳票処理システムでは、帳票原
稿に記載された情報をディスク記憶装置30に蓄積して
おくことができるので、帳票原稿そのものを保存する必
要がなく、いわゆるペーパーレスと呼ばれる事務処理を
行うことができる。In such a form processing system, since the information described in the form original can be stored in the disk storage device 30, it is not necessary to save the form original itself, and so-called paperless office work can be performed. It can be carried out.
【0011】[0011]
【発明が解決しようとする課題】帳票に記載された文字
画像を文字認識するためには上述したように最低限、認
識文字枠の位置および大きさが必要となる。原稿イメー
ジの画素分布を調べ、この認識文字枠位置および大きさ
を自動的に決定する文字認識装置も提案されているが、
手書き文字のように大きさが不揃いの文字多数が原稿に
記載されている場合には、文字枠の検出精度が悪いとい
う特徴がある。このため、文字の大きさが多種有り、手
書き文字が,混入する帳票を取り扱う場合には不向きで
ある。As described above, at least the position and size of the recognition character frame are required for character recognition of a character image described on a form. A character recognition device that examines the pixel distribution of a document image and automatically determines the position and size of the recognized character frame has also been proposed.
When a large number of characters having irregular sizes, such as handwritten characters, are described in a document, there is a characteristic that the detection accuracy of the character frame is poor. For this reason, there are various sizes of characters, and it is not suitable for handling a form in which handwritten characters are mixed.
【0012】一方、手動操作により上記文字枠等の位置
指定を行う場合には、認識すべき文字の数が多いほどユ
ーザの指示操作が煩雑となる。On the other hand, when the position of the character frame or the like is designated by a manual operation, the user's instruction operation becomes more complicated as the number of characters to be recognized increases.
【0013】そこで、本発明の目的は、上述の点に鑑み
て、帳票画像の文字認識のための文字枠等のフォーマッ
ト定義を正確に自動設定することができる帳票処理シス
テム、その文字認識方法およびその記録媒体を提供する
ことにある。In view of the above, an object of the present invention is to provide a form processing system, a character recognition method and a form processing system capable of accurately and automatically setting a format definition such as a character frame for character recognition of a form image. It is to provide the recording medium.
【0014】[0014]
【課題を解決するための手段】このような目的を違成す
るために、請求項1の発明は、印刷のための書式を規定
した第1フォーマット定義の中の文字認識ための書式に
関運する第2フォーマット定義と前記文字認識のための
書式を規定した第3フォーマット定義との間の対応関係
を予め定めておき、前記第1フォーマット定義の中から
前記第2フォーマット定義を抽出する双方向性をもった
相互抽出手段と、当該抽出された第2フォーマット定義
を前記第3フォーマット定義に前記対応関係に変換する
フォーマット変換手段と、当該変換された第3フォーマ
ット定義に基づき帳票画像の文字認識を行う文字認識手
段とを具えたことを特徴とする。SUMMARY OF THE INVENTION To attain the above object, an invention according to claim 1 relates to a format for character recognition in a first format definition which defines a format for printing. A correspondence between a second format definition to be defined and a third format definition defining a format for character recognition is determined in advance, and the second format definition is extracted from the first format definition. Mutual extracting means having a characteristic, format converting means for converting the extracted second format definition into the third format definition in the correspondence, character recognition of a form image based on the converted third format definition And character recognition means for performing
【0015】請求項2の発明は、請求項1に記載の帳票
処理システムにおいて、前記対応関係に基づいて、文字
認識のための書式を規定した第3フォーマット定義を前
記第2フォーマット定義にフォーマット変換し、当該変
換された第2フォーマット定義の中から前記第1フォー
マット定義を抽出する双方向性をもった相互抽出手段と
をも具えたことを特徴とする。According to a second aspect of the present invention, in the form processing system according to the first aspect, a third format definition defining a format for character recognition is converted into the second format definition based on the correspondence. And a bidirectional mutual extracting means for extracting the first format definition from the converted second format definition.
【0016】請求項3の発明は、請求項1または請求項
2に記載の帳票処理システムにおいて、前記第1フォー
マット定義はページ記述言語で記載されていることを特
徴とする。According to a third aspect of the present invention, in the form processing system according to the first or second aspect, the first format definition is described in a page description language.
【0017】請求項4の発明は、請求項3に記載の帳票
処理システムにおいて、帳票生成言語で記載された第4
フォーマット定義に基づき帳票処理するホストコンピュ
ータ、該ホストコンピュータに接続する端末装置を有
し、該端末装置に前記双方向性をもった相互抽出手段、
前記フォーマット変換手段および前記文字認識手段を配
置し、前記端末装置は前記第4フォーマット定義から前
記第1フォーマット定義をフォーマット変換により取得
することを特徴とする。According to a fourth aspect of the present invention, there is provided the form processing system according to the third aspect, wherein the fourth form described in a form generation language is used.
A host computer for processing a form based on the format definition, a terminal device connected to the host computer, and the terminal device having the bidirectional mutual extraction means;
The apparatus is characterized in that the format conversion means and the character recognition means are arranged, and the terminal device acquires the first format definition from the fourth format definition by format conversion.
【0018】請求項5の発明は、請求項1または請求項
2に記載の帳票処理システムにおいて、前記第1フォー
マット定義は帳票生成言語で記載されていることを特徴
とする。According to a fifth aspect of the present invention, in the form processing system according to the first or second aspect, the first format definition is described in a form generation language.
【0019】請求項6の発明は、請求項5に記載の帳票
処理システムにおいて、前記帳票生成言語で記載された
第1フォーマット定義を帳票処理するホストコンピュー
タ、該ホストコンピュータに接続する端末装置を有し、
該端末装置に前記双方向性をもった相互抽出手段、前記
フォーマット変換手段および前記文字認識手段を配置
し、前記端末装置は前記ホストコンピュータから前記第
1フォーマット定義を取得することを特徴とする。According to a sixth aspect of the present invention, in the form processing system according to the fifth aspect, a host computer for processing the first format definition described in the form generation language, and a terminal device connected to the host computer. And
The terminal device is provided with the bidirectional mutual extraction unit, the format conversion unit, and the character recognition unit, and the terminal device acquires the first format definition from the host computer.
【0020】請求項7の発明は、請求項1または請求項
2に記載の帳票処理システムにおいて、帳票原稿を読み
取る画像読み取り手段をさらに有し、該画像読み取り手
段により読み取った帳票画像を前記文字認識手段が文字
認識することを特徴とする。According to a seventh aspect of the present invention, in the form processing system according to the first or second aspect, there is further provided image reading means for reading a form original, and the form image read by the image reading means is subjected to the character recognition. The means is characterized by character recognition.
【0021】請求項8の発明は、請求項1または請求項
2に記載の帳票処理システムにおいて、前記文字認識手
段は手書き文字を認識可能であり、前記第1フォーマッ
ト定義の中には帳票に記載された罫線の位置を規定した
フォーマット定義が,含まれ、該フォーマット定義から
手書き文字の認識枠を決定することを特徴とする。According to an eighth aspect of the present invention, in the form processing system according to the first or second aspect, the character recognizing means can recognize handwritten characters, and the first format definition includes a form. A format definition that defines the position of the ruled line is included, and a recognition frame for handwritten characters is determined from the format definition.
【0022】請求項9の発明は、請求項8に記載の帳票
処理システムにおいて、前記文字認識手段は、文字認識
に先立って、前記罫線の位置を規定したフォーマット定
義に基づき、前記帳票画像の中から罫線画像を除去する
ことを特徴とする。According to a ninth aspect of the present invention, in the form processing system according to the eighth aspect, prior to character recognition, the character recognizing means includes: Is characterized in that ruled line images are removed from.
【0023】請求項10の発明は、文字認識機能を有す
る情報処理装置を備えた帳票処理システムの文字認識方
法において、前記情報処理装置は印刷のための書式を規
定した第1フォーマット定義の中から文字認識のための
書式に関連する第2フォーマット定義を抽出し、文字認
識のための書式を規定した第3フォーマット定義と前記
第2フォーマット定義との間の対応関係を予め定めてお
き、該対応関係に基づき、抽出された前記第2フォーマ
ット定義を前記第3フォーマット定義に変換し、当該変
換された第3フォーマット定義に基づき帳票画像の文字
認識を行うことを特徴とする。According to a tenth aspect of the present invention, in the character recognition method of a form processing system provided with an information processing device having a character recognition function, the information processing device is configured to select a format for printing from a first format definition. A second format definition related to a format for character recognition is extracted, and a correspondence between a third format definition defining a format for character recognition and the second format definition is determined in advance. Based on the relationship, the extracted second format definition is converted into the third format definition, and character recognition of the form image is performed based on the converted third format definition.
【0024】請求項11の発明は、請求項10または請
求項11に記載の帳票処理システム文字認識方法におい
て、前記対応関係に基づいて、文字認識のための書式を
規定した第3フォーマット定義を前記第2フォーマット
定義にフォーマット変換し、当該変換された第2フォー
マット定義の中から前記第1フォーマット定義を抽出す
ることをも具えたことを特徴とする。According to an eleventh aspect of the present invention, in the character recognition method of the form processing system according to the tenth or eleventh aspect, the third format definition defining a format for character recognition is defined based on the correspondence. The method is characterized in that the format conversion is performed to a second format definition, and the first format definition is extracted from the converted second format definition.
【0025】請求項12の発明は、請求項10または請
求項11に記載の帳票処理システム文字認識方法におい
て、前記第1フォーマット定義はページ記述言語で記載
されていることを特徴とする。According to a twelfth aspect of the present invention, in the form processing system character recognition method according to the tenth or eleventh aspect, the first format definition is described in a page description language.
【0026】請求項13の発明は、請求項12に記載の
帳票処理システムの文字認識方法において、前記帳票処
理システムは、帳票生成言語で記載された第4フォーマ
ット定義を帳票処理するホストコンピュータを有し、該
ホストコンピュータに対して前記情報処理装置が端末装
置として接続されており、前記情報処理装置は前記第4
フォーマット定義から前記第1フォーマット定義をフォ
ーマット変換により取得することを特徴とする。According to a thirteenth aspect of the present invention, in the character recognition method of the form processing system according to the twelfth aspect, the form processing system has a host computer for processing the fourth format definition described in a form generation language. The information processing device is connected to the host computer as a terminal device, and the information processing device is connected to the fourth computer.
The first format definition is obtained from the format definition by format conversion.
【0027】請求項14の発明は、請求項10または請
求項11に記載の帳票処理システムの文字認識方法にお
いて、前記第1フォーマット定義は帳票生成言語で記載
されていることを特徴とする。According to a fourteenth aspect, in the character recognition method of the form processing system according to the tenth or eleventh aspect, the first format definition is described in a form generation language.
【0028】請求項15の発明は、請求項14に記載の
帳票処理システムの文字認識方法において、前記情報処
理システムは前記帳票生成言語で記載された第1フォー
マット定義を帳票処理するホストコンピュータを有し、
該ホストコンピュータに対して前記情報処理装置が端末
装置として接続され、前記情報処理装置は前記ホストコ
ンピュータから前記第1フォーマット定義を取得するこ
とを特徴とする。According to a fifteenth aspect of the present invention, in the character recognition method of the form processing system according to the fourteenth aspect, the information processing system has a host computer for processing the first format definition described in the form generation language. And
The information processing device is connected to the host computer as a terminal device, and the information processing device acquires the first format definition from the host computer.
【0029】請求項16の発明は、請求項10または請
求項11に記載の帳票処理システムの文字認識方法にお
いて、前記帳票処理システムは、幅票原稿を読み取る画
像読み取り装置をさらに有し、該画像読み取り装置によ
り読み取った帳票画像を前記情報処理装置において文字
認識することを特徴とする。According to a sixteenth aspect of the present invention, in the character recognition method of the form processing system according to the tenth or eleventh aspect, the form processing system further includes an image reading device for reading a width document. The form image read by the reading device is subjected to character recognition in the information processing device.
【0030】請求項17の発明は、請求項10または請
求項11に記載の帳票処理システムの文字認識方法にお
いて、前記情報処理装置は手書き文字を認識可能であ
り、前記第1フォーマット定義の中には帳票に記載され
た罫線の位置を規定したフォーマット定義が含まれ、該
フォーマット定義から手書き文字の認識枠を決定するこ
とを特徴とする。According to a seventeenth aspect of the present invention, in the character recognition method of the form processing system according to the tenth or eleventh aspect, the information processing apparatus can recognize handwritten characters, and Is characterized by including a format definition that defines the position of a ruled line described in a form, and determining a recognition frame for handwritten characters from the format definition.
【0031】請求項18の発明は、請求項17に記載の
帳票処理システムの文字認識方法において、前記情報処
理装置は、文字認識に先立って、前記罫線の位置を規定
したフォーマット定義に基づき、前記帳票画像の中から
罫線画像を除去することを特徴とする。According to an eighteenth aspect of the present invention, in the character recognition method of the form processing system according to the seventeenth aspect, the information processing apparatus performs the character recognition based on a format definition defining a ruled line position prior to character recognition. The ruled line image is removed from the form image.
【0032】請求項19の発明は、文字認識機能を有す
る情報処理装置を備え、該情報処理装置により読み取ら
れ、実行可能なプログラムコード手段を記録した帳票処
理システムの記録媒体において、前記プログラムコード
手段は、前記情報処理装置は印刷のための書式を規定し
た第1フォーマット定義の中から文字認識のための書式
に関運する第2フォーマット定義を抽出する双方向性を
もったステップと、文字認識のための書式を規定した第
3フォーマット定義と前記第2フォーマット定義との間
の対応関係が予め定めれており、該対応関係に基づき、
抽出された前記第2フォーマット定義を前記第3フォー
マット定義に変換するステップと、当該変換された第3
フォーマット定義に基づき帳票画像の文字認識を行うス
テップとを具えたことを特徴とする。The invention according to claim 19 is a recording medium for a form processing system comprising an information processing apparatus having a character recognition function and recording executable program code means read by the information processing apparatus. The information processing apparatus has a bidirectional step of extracting a second format definition related to a format for character recognition from a first format definition defining a format for printing; A correspondence relationship between a third format definition that defines a format for the second format definition and the second format definition is predetermined, and based on the correspondence relationship,
Converting the extracted second format definition into the third format definition;
Performing character recognition of the form image based on the format definition.
【0033】請求項20の発明は、請求項19に記載の
帳票処理システムの記録媒体において、前記対応関係に
基づいて、文字認識のための書式を規定した第3フォー
マット定義を前記第2フォーマット定義にフォーマット
変換し、当該変換された第2フォーマット定義の中から
前記第1フォーマット定義を抽出する双方向性をもった
ステップとをも具えたことを特徴とする。According to a twentieth aspect of the present invention, in the recording medium of the form processing system according to the nineteenth aspect, the third format definition that defines a format for character recognition based on the correspondence is defined as the second format definition. And a bidirectional step of extracting the first format definition from the converted second format definition.
【0034】[0034]
【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0035】本実施の形態は、読み取り対象の帳票原稿
の定型情報、たとえば、帳票名、会社名、罫線等の部分
は印刷されることおよび帳票の罫線枠の中に手書き文字
が記入される点に本願発明者が気が付き、順方向である
印刷に使用するフォーマット定義から文字認識用のフォ
ーマット定義を、または、逆方向である文字認識用のフ
ォーマット定義から印刷に使用するフォーマット定義
を、自動作成するようにしたことに特徴がある。In this embodiment, the fixed form information of the form document to be read, for example, the form name, company name, ruled lines, and the like are printed and handwritten characters are entered in the ruled line frame of the form. The inventor of the present application has noticed that a format definition for character recognition is automatically created from a format definition used for printing in a forward direction, or a format definition used for printing is created from a format definition for character recognition in a backward direction. There is a feature in doing so.
【0036】そこで、最初に、前記の順逆双方向可能な
自動作成のうち、前者の文字認識用のフォーマット定義
の自動作成方法について図3および図4を使用して説明
する。図3は表示あるいは印刷すべき帳票イメージおよ
びその印刷用のフォーマット定義の一例を示す。図3に
おいて、200は帳票の外周枠すなわち印刷用紙の外周
枠を示す。201は固定文字情報であり、図示の例では
会社名となっている。202も固定文字情報であり、図
示の例えば罫線枠203の中に記載される。204は手
書き文字で記入する欄であり、印刷時には空白となって
いる。205は文字を印刷するためのフォーマット定義
(一般的には印刷データと呼ばれる)であり、文字サイ
ズの定義であることを示す識別コードあるいはおよび文
字サイズを示す数値を有する。206は印刷すべき文字
列の先頭の文字位置を示すフォーマット定義である。First, of the automatic creation that can be performed in the forward and reverse directions, the former method of automatically creating a format definition for character recognition will be described with reference to FIGS. 3 and 4. FIG. FIG. 3 shows an example of a form image to be displayed or printed and a format definition for printing the form image. In FIG. 3, reference numeral 200 denotes an outer peripheral frame of a form, that is, an outer peripheral frame of printing paper. Reference numeral 201 denotes fixed character information, which is a company name in the illustrated example. Reference numeral 202 denotes fixed character information, which is described in, for example, a ruled line frame 203 in the drawing. Reference numeral 204 denotes a column for writing with handwritten characters, which is blank at the time of printing. Reference numeral 205 denotes a format definition for printing a character (generally called print data), which has an identification code indicating that the character size is defined or a numerical value indicating the character size. Reference numeral 206 denotes a format definition indicating the first character position of a character string to be printed.
【0037】207はフォーマット定義201で定義さ
れた位置に印刷する文字列である。208、209は罫
線を印刷するための直線描画命令であり、帳票の罫線位
置に対応して直線描画命令が用意される。図3に示すフ
ォーマット定義は説明の都合上模式的に表現している
が、PostScript(ポストスクリプトのこと
で、Adobe Systems社の登録商標)など各
種のページ記述言語毎に、文字および直線についての記
載方法が定められている。Reference numeral 207 denotes a character string to be printed at the position defined by the format definition 201. 208 and 209 are line drawing commands for printing ruled lines, and line drawing commands are prepared corresponding to the ruled line positions on the form. Although the format definition shown in FIG. 3 is schematically represented for convenience of description, characters and straight lines are described for each page description language such as PostScript (a registered trademark of Adobe Systems, Inc.). A method has been established.
【0038】図4は文字認識あるいは文字認識のための
フォーマット定義を示す。図4において、301は原稿
の外周枠すなわち、用紙の外周枠を示す。302は余白
を除いた全体文字認識枠を示す。印刷における印刷領域
に全体文字認識枠が対応する。FIG. 4 shows a character definition or a format definition for character recognition. In FIG. 4, reference numeral 301 denotes the outer peripheral frame of the document, that is, the outer peripheral frame of the paper. Reference numeral 302 denotes a whole character recognition frame excluding a margin. The entire character recognition frame corresponds to the print area in printing.
【0039】L1は原稿の上部外周枠と全体文字認識枠
302との間の距離であり、印刷におけるトップマージ
ンに対応する。L1 is the distance between the upper peripheral frame of the document and the entire character recognition frame 302, and corresponds to the top margin in printing.
【0040】L2は原稿の左部外周枠と全体文字認識枠
302との間の距離であり、印刷における左マージンに
対応する。距離L2は印刷開始位置と呼ばれる場合もあ
る。L2 is the distance between the left outer peripheral frame of the document and the entire character recognition frame 302, and corresponds to the left margin in printing. The distance L2 may be called a print start position.
【0041】L3は原稿の右部外周枠と全体文字枠30
2との間の距離であり、印刷における右マージンに対応
する。距離L3は印刷可能終了位置と呼ばれる場合があ
る。距離L4は文字枠303と原稿左部外周枠との間の
距離である。L3 is the right outer peripheral frame of the document and the entire character frame 30.
2 and corresponds to the right margin in printing. The distance L3 may be called a printable end position. The distance L4 is the distance between the character frame 303 and the outer peripheral frame of the left part of the document.
【0042】距離L7は文字枠303と原稿上部外周枠
との間の距離である。距離L4と距離L7とにより文字
枠列の先頭部分の位置が定まる。The distance L7 is the distance between the character frame 303 and the outer peripheral frame of the upper part of the document. The position of the head of the character frame string is determined by the distance L4 and the distance L7.
【0043】L5は文字枠の幅、L8は文字枠の高さで
あり、印刷の場合には文字サイズにより定まる。文字サ
イズはフォントサイズと呼ばれることがある。L5 is the width of the character frame, and L8 is the height of the character frame. In the case of printing, it is determined by the character size. Character size is sometimes called font size.
【0044】図4に示していないが原稿下部外周枠と全
体文字認識枠302との間の距離が用意されていること
はいうまでもない。このような文字認識用のフォーマッ
トを定める距離や幅、高さを本実施の形態ではフォーマ
ット定義のパラメータと呼ぶことにする。Although not shown in FIG. 4, it goes without saying that a distance between the outer peripheral frame of the original document and the entire character recognition frame 302 is prepared. In this embodiment, the distance, width, and height that determine such a format for character recognition are referred to as format definition parameters.
【0045】このように文字認識用のフォーマット定義
では、印刷フォーマットと対応関係があるので、印刷用
のフォーマット定義に関連する各種バラメータから文字
認識用のフォーマット定義のパラメータを取得し、ある
いは換算して、パラメータの値を文字認識用の識別コー
ドに付加することにより文字認識用のフォーマットを自
動作成する。以下に上記文字認識用フォーマットのパラ
メータを印刷フォーマットのパラメータから算出するた
めの計算式の一例を示す。As described above, since the format definition for character recognition has a correspondence with the print format, the parameters of the format definition for character recognition are obtained from various parameters related to the format definition for printing or converted and converted. By automatically adding a parameter value to an identification code for character recognition, a format for character recognition is automatically created. An example of a calculation formula for calculating the parameters of the character recognition format from the print format parameters will be described below.
【0046】[0046]
【数1】読み取り原稿サイズ=印刷用紙サイズ 全体文字認識枠サイズ=印刷領域サイズ、 サイズは縦横の高さ、幅で表す。## EQU1 ## Read original size = print paper size Entire character recognition frame size = print area size, and size is represented by height and width.
【0047】1つの文字認識枠のサイズ=フォントサイ
ズ+α(固定値) n番目の文字位置=横方向 L4+(n−1)*(L5
+L6) nは連続する文字列の文字の個数 縦方向 L7 なお、文字位置についての印刷のフォーマット定義の記
載方法には各種あるが、いずれの記載方法においても記
録用紙の原点位置からの縦横の距離(座標)、方向など
が得られるようになっているので、記載方法に対応して
各文字の位置などを算出するとよい。One character recognition frame size = font size + α (fixed value) nth character position = horizontal direction L4 + (n−1) * (L5
+ L6) n is the number of characters in a continuous character string. Vertical direction L7. There are various methods for describing the print format definition for the character position. In any of these methods, the vertical and horizontal distance from the origin position of the recording paper is used. Since (coordinates), directions, and the like can be obtained, the position of each character may be calculated according to the description method.
【0048】罫線枠の座標位置は、罫線の描画命令の中
に記載された始点および終点の座標値を座標変換する
か、または、そのまま使用できる。The coordinate position of the ruled line frame can be obtained by converting the coordinate values of the start point and the end point described in the ruled line drawing command, or can be used as it is.
【0049】逆方向の場合は、上記計算過程の逆を辿っ
て、算出すれば良い。In the case of the reverse direction, the calculation may be performed by following the reverse of the above calculation process.
【0050】このような文字認識用フォーマット定義の
作成方法を使用する帳票処理システムについて説明す
る。帳票処理システムのハード構成は図1に示した従来
例と同様とすることができるが、文字認識用フォーマッ
ト定義へ変換するためのソフトウェア(図6、図7)が
端末装置40に搭載されている点が従来と異なる。A form processing system using such a method for creating a character recognition format definition will be described. Although the hardware configuration of the form processing system can be the same as that of the conventional example shown in FIG. 1, software (FIGS. 6 and 7) for converting into a character recognition format definition is installed in the terminal device 40. The point is different from the past.
【0051】図5、図6および図7を使用して本実施の
形態の帳票処理システムのシステム動作を説明する。図
5はデータの変換処理プロセスを示す。図6の処理手順
は端末装置40内のCPU40Aが読み取り実行可能な
プログラム言語の形態で記載され、端末装置40内の記
録媒体、たとえば、ハードディスク記憶装置(HDD)
40Cに記憶しておく。図7の処理手順は文字認識枠に
関するパラメータを取得するための詳細手順を示す。The operation of the form processing system according to the present embodiment will be described with reference to FIGS. 5, 6, and 7. FIG. FIG. 5 shows a data conversion process. The processing procedure of FIG. 6 is described in the form of a program language that can be read and executed by the CPU 40A in the terminal device 40, and a recording medium in the terminal device 40, for example, a hard disk storage device (HDD)
It is stored in 40C. The processing procedure of FIG. 7 shows a detailed procedure for acquiring a parameter relating to the character recognition frame.
【0052】図6および図7に示す処理手順は説明の便
宜上機能表現をしているが、当業者であれば、図6およ
び図7の処理手順から実際のプログラムを作成すること
は容易になし得るであろう。Although the processing procedures shown in FIGS. 6 and 7 are expressed in terms of functions for convenience of explanation, those skilled in the art cannot easily create an actual program from the processing procedures shown in FIGS. Will get.
【0053】ユーザは端末装置40のキーボード(付図
示)からホストコンピュータ10に対して指示して、デ
ィスク記憶装置30に記憶された所望の印刷用フォーマ
ット定義(大型プリンタ用)を自己の端末装置40に転
送させる。この処理は従来と同様である。ユーザは従来
と同様にして変換用プログラムを端末装置40のCPU
40Aにより実行して大型プリンタ用印刷フォーマット
定義を中小型プリンタ用印刷フォーマット定義に変換す
る(図5の帳票データデータ501→フォーマット変換
処理502→帳票データ503)。The user instructs the host computer 10 from the keyboard (shown in the figure) of the terminal device 40 to copy the desired print format definition (for a large printer) stored in the disk storage device 30 to the terminal device 40. To transfer. This processing is the same as the conventional one. The user sends the conversion program to the CPU
The print format definition for a large printer is converted into a print format definition for a small / medium printer by executing the processing at 40A (form data data 501 → format conversion processing 502 → form data 503 in FIG. 5).
【0054】次に、ユーザは図6の処理プログラムを起
動して、上記中小型プリンタ用印刷フォーマット定義を
文字認識用フォーマット定義に変換する。より具体的に
は、端末装置40内のCPU40A(以下CPU40A
と略記する)は端末装置40内のワーク用メモリ(以
下、ワークメモリ40Bと略記する)に上記中小型プリ
ンタ・フォーマット定義(図3の文字関係のフォーマッ
ト定義205〜206および罫線関係のフォーマット定
義208、209参照)などを読み込む(図6のステッ
プS100)。Next, the user activates the processing program shown in FIG. 6 and converts the print format definition for a small-sized printer into a character-recognition format definition. More specifically, CPU 40A in terminal device 40 (hereinafter referred to as CPU 40A)
) Is stored in a work memory (hereinafter, abbreviated as a work memory 40B) in the terminal device 40. The small and medium printer format definitions (the character-related format definitions 205 to 206 and the ruled line-related format definitions 208 in FIG. , 209) (step S100 in FIG. 6).
【0055】CPU40Aはワークメモリ40Bに読み
込んだフォーマット定義の中から文字認識用のフォーマ
ット定義に関連する定義データを順次に抽出する(ステ
ップS110〜S120のループ処理)。The CPU 40A sequentially extracts definition data related to the character recognition format definition from the format definitions read into the work memory 40B (loop processing of steps S110 to S120).
【0056】図3のフォーマット定義のたとえば、文字
サイズ定義205では文字サイズを示す特定文字列(前
述の識別コード、ポストスクリプト言語ではFONT
SIZE)および文字のサイズを示す数値(パラメータ
の値)が記載されているので、この特定文字列および数
値を検索により検出することにより、文字認識用の文字
サイズを抽出することができる。また、認識文字枠に関
するフォーマット定義としては文字の先頭位置を示す座
標位置(図3の符号206)およびその位置から始まる
文字コード列(図3の符号207)を抽出する。このよ
うにして抽出されたデータを使用してCPU40Aは文
字認識用のフォーマット定義を作成する(図6のステッ
プS130)。For example, in the format definition of FIG. 3, for example, the character size definition 205 specifies a specific character string indicating the character size (the above-described identification code, FONT in the postscript language).
SIZE) and a numerical value (parameter value) indicating the size of the character are described. By detecting the specific character string and the numerical value by searching, the character size for character recognition can be extracted. Further, as a format definition relating to the recognized character frame, a coordinate position (reference numeral 206 in FIG. 3) indicating the head position of the character and a character code string (reference numeral 207 in FIG. 3) starting from the position are extracted. Using the data thus extracted, the CPU 40A creates a format definition for character recognition (step S130 in FIG. 6).
【0057】文字枠のフォーマット定義を作成する場
合、ワークメモリ40Bの中に読み込まれた文字サイ
ズ、文字間隔、先頭文字位置、文字コード列等のパラメ
ータの値から数3式、数4式を使用して文字認識枠の大
きさ、位置を計算する(図7のステップS10〜S3
0)。When creating a format definition of a character frame, Equations 3 and 4 are used from the values of parameters such as the character size, character spacing, leading character position, and character code string read into the work memory 40B. To calculate the size and position of the character recognition frame (steps S10 to S3 in FIG. 7).
0).
【0058】その他、罫線枠内の文字認識枠については
罫線の交点座標を計算し、計算結果を文字認識枠の大き
さおよび位置とする。以上、述べた文字認識用フォーマ
ット定義以外の文字認識用フォーマット定義も関連の印
刷用フォーマット定義から計算される(図7ステップS
40)。In addition, for the character recognition frame within the ruled line frame, the intersection coordinates of the ruled line are calculated, and the calculation result is set as the size and position of the character recognition frame. As described above, a character recognition format definition other than the character recognition format definition described above is also calculated from the related print format definition (step S in FIG. 7).
40).
【0059】以上のようにして印刷用のフォーマット定
義から変換された文字認識用のフォーマット定義はワー
クメモリ40Bに格納された後、HDD40Cに保存さ
れる(ステップS50)。The format definition for character recognition converted from the format definition for printing as described above is stored in the work memory 40B, and then stored in the HDD 40C (step S50).
【0060】文字認識用フォーマット定義の種類毎にそ
の定義の作成をCPU40Aが行って、必要な文字認識
用フォーマット定義全てを作成すると(図6のステップ
S140)、CPU40Aは図6の処理手順を終了する
(図5の変換処理504→文字認識(OCR)用フォー
マット定義505)。When the CPU 40A creates the character recognition format definition for each type and creates all necessary character recognition format definitions (step S140 in FIG. 6), the CPU 40A ends the processing procedure in FIG. (Conversion processing 504 in FIG. 5 → format definition 505 for character recognition (OCR)).
【0061】このようにして端末装置40のHDD40
C上に作成された文字認識用定義は、スキャナー42に
よる帳票原稿の画像の読み取り、端末装置40での文字
認識を行うときに使用される(図5の符号505、50
6、514参照)。Thus, the HDD 40 of the terminal device 40
The character recognition definition created on C is used when the scanner 42 reads an image of a form document and performs character recognition on the terminal device 40 (reference numerals 505 and 50 in FIG. 5).
6, 514).
【0062】たとえば文字認識用フォーマット定義の中
の原稿サイズ、全体文字認識枠に関するフォーマット定
義は帳票原稿の画像の読み取りの際に使用され、文字認
識枠の位置、大きさについて文字認識用フォーマットは
読み取り画像データから文字認識すべき文字のイメージ
を抽出する場合に使用される。For example, the format definition for the document size and the entire character recognition frame in the character recognition format definition is used when reading the image of the form document, and the character recognition format for the position and size of the character recognition frame is read. It is used when extracting a character image to be recognized from image data.
【0063】以上述べた実施の形態の他に次の形態を実
施できる。The following embodiment can be carried out in addition to the above-described embodiment.
【0064】1)上述の実施の形態ではページ記述言語
で記載された印刷用フォーマット定義を文字認識用のフ
ォーマット定義に変換する形態であったが、ホストコン
ピュータ10側で使用する大型プリンタ用の帳票生成言
語で記載された印刷フォーマット定義を直接、文字認識
用のフォーマット定義に変換してもよい。この場合にお
いても、フォーマットの種類毎に変換式を定めておき、
帳票生成言語で記載された印刷データの中から関連の印
刷用フォーマット定義を抽出し、上記変換式により文字
認識用フォーマット定義を取得する(図5の符号501
→(点線)符号504の処理プロセス)。1) In the above-described embodiment, the format for printing described in the page description language is converted into the format definition for character recognition. However, the form for the large printer used on the host computer 10 side is used. The print format definition described in the generation language may be directly converted into a format definition for character recognition. Also in this case, a conversion formula is defined for each type of format,
The related print format definition is extracted from the print data described in the form generation language, and the character recognition format definition is obtained by the above conversion formula (reference numeral 501 in FIG. 5).
→ (dotted line) reference numeral 504).
【0065】ちなみに帳票生成言語の1つであるOGL
の場合、印刷フォーマット定義はぺージ定義とフォーム
定義を含む。ページ定とはフィールド単位でのフォント
の種類、回転、回転方向、ページ上の位置指定の定義等
ページ上の印刷データのマッピングのための定義であ
る。フォーマット定義は印刷フォームの定義であり、コ
ピー数、電子オーバーレイの指定、両面印刷の有無等の
指定を行う。このようなページ定義やフォーム定義はパ
ラメータを含むコマンドの形態で記載されているので、
コマンドの種類識別を行なうことにより文字認識に関連
する印刷フォーマット定義を上記ページ定義やフォーム
定義の中から取り出して、文字認識用のフォーマット定
義に変換する。By the way, OGL which is one of the form generation languages
In the case of, the print format definition includes a page definition and a form definition. The page definition is a definition for mapping print data on a page, such as a definition of a font type, a rotation, a rotation direction, and a position designation on a page in a field unit. The format definition is a definition of a print form, and designates the number of copies, the designation of an electronic overlay, the presence or absence of double-sided printing, and the like. Since these page definitions and form definitions are described in the form of commands including parameters,
By identifying the type of command, a print format definition related to character recognition is extracted from the above-described page definition and form definition, and converted into a format definition for character recognition.
【0066】2)上述の実施形態では、印刷用帳票デー
タの中の固定文字列、いわゆる定型文字列についての文
字認織枠を設定する例を含めたが、罫線で囲まれる記載
欄に記載された手書き文字に対してのみ文字認識枠を設
定すればよい場合には定型文字についてのフォーマット
変換を省略することができる。さらに文字認識用のブロ
グラムで必要とする文字認識用のフォーマット定義だけ
を変換すれぱよいことは言うまでもない。2) In the above-described embodiment, an example of setting a character recognition frame for a fixed character string in a form data for printing, that is, a so-called fixed character string is included, but it is described in a description box surrounded by ruled lines. If it is sufficient to set the character recognition frame only for the handwritten characters, the format conversion for the fixed characters can be omitted. Further, it goes without saying that only the format definition for character recognition required by the program for character recognition need be converted.
【0067】また、文字認識枠が1文字ではなく、複数
文字や1行単位の文字認識枠を設定する文字認識装置や
プログラムのためには該当する大きさの文字認識枠を作
成すればよい。In addition, for a character recognition device or a program that sets a character recognition frame for a plurality of characters or one line, instead of a single character recognition frame, a character recognition frame of an appropriate size may be created.
【0068】スキャナー42の読み取り解像度の設定な
ど印刷用フォーマット定義から取得できない場合には、
従来どおり手動設定すればよい。このときに、自動作成
した文字認識用のフォーマット定義をデフォルト(初期
値として)表示し、このフォーマット定義を手動により
修正できるようにすると、帳票原稿の収縮等帳票フォー
マートと実際の帳票原稿の記載イメージの誤差を修正で
きる。If it cannot be obtained from the print format definition such as the setting of the reading resolution of the scanner 42,
What is necessary is just to set manually as usual. At this time, the automatically created character recognition format definition is displayed as a default (as an initial value), and if this format definition can be manually corrected, the form format such as contraction of the form document and the description of the actual form document Correct errors in the image.
【0069】3)上述の実施形態ではページ記述言語形
態の印刷用フォーマット定義を大型プリンタ用の帳票生
成言語で記載された印刷用フォーマット定義からの変換
により取得しているが、ページ記述言語の印刷フォーマ
ットはパーソナルコンピュータに搭載されるワープロソ
フト、たとえば、MS WORD(マイクロソフト
(株)の登録商標)などにより作成された文書の中の書
式関連データからの変換により取得できることができ
る。3) In the above-described embodiment, the print format definition in the page description language form is obtained by conversion from the print format definition described in the form generation language for a large printer. The format can be obtained by conversion from format-related data in a document created by word processing software mounted on a personal computer, for example, MS WORD (registered trademark of Microsoft Corporation).
【0070】4)ページ記述言語で記載された印刷用フ
ォーマット定義、すなわち、手書き文字記載欄が空欄と
なっている帳票データをRTF(Rich Text
Formatのことで、Aldus社の登録商標)など
と呼ばれるような書式付きテキストに変換する(図5の
符号503→508→509)と上記ワープロソフトを
使用して、端末装置40側で帳票の書式変更したり印刷
したり、フロッピーディスクなどの携帯用記録媒体へ記
録することができる。4) The print format definition described in the page description language, that is, the form data in which the handwritten character description field is blank is written in RTF (Rich Text).
The format is converted into a text with a format such as “Registered Trademark of Aldus” (reference numeral 503 → 508 → 509 in FIG. 5). It can be changed, printed, and recorded on a portable recording medium such as a floppy disk.
【0071】5)ページ記述言語の形態の印刷用フォー
マット定義を端末装置40に入力する方法は上述の形態
の他に、フロッピーディスクによるオフライン転送、キ
ーボードからの文字入力による方法等、ユーザの所望の
形態とするとよい。5) A method of inputting a print format definition in the form of a page description language to the terminal device 40 may be a method desired by the user, such as an off-line transfer using a floppy disk, a method using character input from a keyboard, etc. The form is good.
【0072】6)上述の実施の形態では主に文字認識枠
についてのフォーマット変換を説明した、帳票の罫線の
位置データは罫線イメージの消去処理にも使用できる。
より具体的には、帳票原稿から読み取られたイメージに
は罫線イメージが含まれている。この罫線イメージを周
知の文字認識処理プログラムをCPU40Aが実行し
て、除去することにより認識対象のイメージは文字だけ
となるので、文字認識精度が向上する。6) In the above-described embodiment, the format conversion of the character recognition frame has been mainly described. The position data of the ruled line of the form can also be used for the process of deleting the ruled line image.
More specifically, the image read from the form document includes a ruled line image. The CPU 40A executes a well-known character recognition processing program on the ruled line image and removes the image, so that the image to be recognized is only a character, thereby improving the character recognition accuracy.
【0073】7)上述の実施形態ては端末装置40側で
文字認識用のソフトウェアを実行して文字認識を行って
いるが、スキャナと文字認識処理を専用的に実行する情
報処理装置を一体化した文字認識装置とプリンタにより
帳票処理システムを構成してもよい。さらに図1の文字
認識機能のない端末装置40にこの文字認識装置を接続
するような帳票処理システムを構成することもできる。7) In the above-described embodiment, character recognition is performed by executing character recognition software on the terminal device 40 side. However, the scanner and the information processing device for executing character recognition processing exclusively are integrated. The form processing system may be constituted by the character recognition device and the printer described above. Further, a form processing system in which this character recognition device is connected to the terminal device 40 having no character recognition function shown in FIG. 1 can be configured.
【0074】8)文字認識用のフォーマット定義を上述
の実施形態のように識別コード+パラメータの値のよう
に記載してもよいが、ワークメモリ40Bに専用領域に
パラメータのみを格納しておくことができる。この場合
には、記憶アドレスが帳票定義の種類を表わすことにな
る。8) The format definition for character recognition may be described as an identification code + parameter value as in the above-described embodiment, but only parameters are stored in a dedicated area in the work memory 40B. Can be. In this case, the storage address indicates the type of the form definition.
【0075】[0075]
【発明の効果】以上、説明したように、請求項1、1
0、19の発明によれば、印刷用フォーマット定義から
文字認識用のフォーマット定義を自動作成できるので、
ユーザは手動操作でフォーマット定義を作成する必要が
なく、文字認識に係る煩雑な操作から開放される。加え
て、印刷用フォーマット定義により印刷された帳票を文
字認識しても、印刷用フォーマット定義と文字認識用フ
ォーマット定義が対応関係にあるので、従来の人手によ
って認識領域を設定することからくる誤認が少なくな
り、文字認識精度が劣化することはない。As described above, as described above, claims 1 and 1
According to the inventions 0 and 19, a format definition for character recognition can be automatically created from a format definition for printing.
The user does not need to manually create the format definition, and is freed from complicated operations related to character recognition. In addition, even if the form printed by the print format definition is character-recognized, since the print format definition and the character-recognition format definition are in a correspondence relationship, there is no misunderstanding caused by setting the recognition area manually in the past. And the character recognition accuracy does not deteriorate.
【0076】請求項2、11、20の発明によれば、逆
に、文字認識用のフォーマット定義からも印刷用のフォ
ーマット定義を作成できるので、ユーザは、難解で面倒
な印刷用フォーマット定義を作成する必要がなく、印刷
用に係る煩雑な作業から開放される。加えて、印刷用フ
ォーマット定義により印刷された帳票を文字認識して
も、文字認識用フォーマット定義と印刷用フォーマット
定義が対応関係にあるので、従来の人手によって認識領
域を設定することからくる誤認が少なくなり、文字認識
精度が劣化することはない。According to the second, eleventh and twentieth aspects of the present invention, on the contrary, the format definition for printing can be created from the format definition for character recognition, so that the user can create difficult and troublesome printing format definitions. This eliminates the need to perform such operations, and eliminates the need for complicated work related to printing. In addition, even if the form printed by the print format definition is recognized by characters, there is a correspondence between the character definition format definition and the print format definition. And the character recognition accuracy does not deteriorate.
【0077】請求項3、12の発明では、中小型コンピ
ュータで使用されるページ記述言語で記載された印刷用
フォーマット定義から文字認識用のフォーマット定義を
作成するので、LAN接続した端末装置や、単独(スタ
ンドアローン)の中小型コンピュータ側での文字認識が
可能となる。また、逆に、前記文字認識用のフォーマッ
ト定義から中小型コンピュータで使用されるページ記述
言語で記載された前記印刷用フォーマット定義をも作成
するので、LAN接続した端末装置や、単独(スタンド
アローン)の中小型コンピュータ側での印刷が可能とな
る。According to the third and twelfth aspects of the present invention, a character definition format definition is created from a print format definition described in a page description language used in a small- and medium-sized computer. (Stand-alone) Character recognition can be performed on small and medium-sized computers. Conversely, the printing format definition described in the page description language used in the small and medium-sized computer is also created from the character recognition format definition, so that the terminal device connected to the LAN or an independent (stand-alone) device can be used. Printing on small and medium computers.
【0078】請求項4、13の発明では、帳票生成言語
のフォーマット定義を使用するホストコンピュータから
端末装置が受け取り、ページ記述言語に変換した後、文
字認識用のフォーマット定義を作成することができる。According to the fourth and thirteenth aspects of the present invention, the terminal device receives the format definition of the form generation language from the host computer, converts the format into the page description language, and then can create the format definition for character recognition.
【0079】請求項5、6、14、15の発明では、ホ
ストコンピュータ側で使用する作成済みの帳票言語の印
刷用フォーマット定義から直接的に文字認識用のフォー
マット定義を作成する。これによりホストコンピュータ
に接続した端末装置による文字認識が可能となり、端末
装置での操作が簡略化される。逆に、作成済みの文字認
識用のフォーマット定義から直接的にホストコンピュー
タ側で使用する帳票言語の印刷用フォーマット定義を作
成できるようになる。したがって、ユーザは、難解で面
倒な印刷用の言語を学習してプログラミング作業をし、
何度も、アウトプット受付まで足を運び、印刷出力され
た帳票を受け取り、記載ミスのチェックしながら、フォ
ーマット定義を作成してゆく必要がなく、印刷用に係る
煩雑な作業から開放される。これによりホストコンピュ
ータに接続した端末装置から一度の指示による、精度の
高い印刷も可能となり、端末装置とアウトプット受付
(または、印刷装置)間での往復作業もなくなる。加え
て、印刷用フォーマット定義により印刷された帳票を文
字認識しても、文字認識用フォーマット定義と印刷用フ
ォーマット定義が対応関係にあるので、従来の人手によ
って認識領域を設定することからくる誤認が少なくな
り、文字認識精度が劣化することはない。更に、最近の
ダウンサイジング化の傾向により、いままでホストコン
ピュータで作成され、貯えられてきた大量・高速印刷用
のフォーマット定義等の過去の膨大な遺産(ここでは、
データベースのこと。)のほとんどを有効活用するた
め、中小型の印刷用フォーマット定義、または、文字認
識のための書式に関連するフォーマット定義に、各々、
フォーマット変換、または、抽出できる。According to the fifth, sixth, fourteenth, and fifteenth aspects of the present invention, a format definition for character recognition is directly created from a printing format definition of a created form language used on the host computer side. This enables character recognition by the terminal device connected to the host computer, and simplifies operation on the terminal device. Conversely, a format definition for printing in a form language used on the host computer side can be created directly from the created format definition for character recognition. Therefore, the user learns the esoteric and cumbersome language for printing and does the programming work,
It is not necessary to go to the output reception many times, receive the printed output form, check the description mistake, and create the format definition, thereby being freed from the complicated work related to printing. This enables high-precision printing by a single instruction from the terminal device connected to the host computer, and eliminates the reciprocating operation between the terminal device and the output reception (or printing device). In addition, even if the form printed by the print format definition is recognized by characters, there is a correspondence between the character definition format definition and the print format definition. And the character recognition accuracy does not deteriorate. Furthermore, due to the recent trend of downsizing, the huge legacy of the past such as the format definition for high-volume and high-speed printing created and stored by the host computer (here,
A database. ), The format definitions for small and medium sized prints, or the format definitions related to character recognition formats,
Format conversion or extraction is possible.
【0080】請求項7、16の発明では、スキャナーな
どの画像読み取り手段を帳票処理システムの中に組み込
むことにより、帳票原稿から帳票の記載データを自動入
力することができる。また、逆に、帳票原稿からの帳票
の記載データを、直接的にホストコンピュータ側に送付
し、データベースに蓄積し、ホストコンピュータに接続
した端末装置によって、一括して大量に高速印刷処理す
ることができる。According to the seventh and sixteenth aspects of the present invention, by incorporating an image reading means such as a scanner into the form processing system, it is possible to automatically input the form description data from the form original. Conversely, form description data from a form document can be sent directly to the host computer, accumulated in a database, and processed in large quantities at high speed by a terminal device connected to the host computer. it can.
【0081】請求項8、17の発明では、罫線枠内に記
入される手書き文字についての文字認識枠を罫線につい
ての印刷用フォーマットから作成するので、文字認識枠
の位置の精度が高くなる。また、一旦、作成済みの前記
印刷用フォーマット定義から前記文字認識用のフォーマ
ット定義を作成し、逆に、作成済みの当該文字認識用の
フォーマット定義、または、中間生成物である文字認識
のための書式に関連するフォーマット定義から、ホスト
コンピュータ側で使用する帳票言語の印刷用フォーマッ
ト定義を作成することも出来る。すると、前記での繰り
返しとなるが、ユーザは、難解で面倒な印刷用の言語を
学習してプログラミング作業をし、何度も、アウトプウ
ト受付まで足を運び、印刷出力された帳票を受け取り、
記載ミスのチェックしながら、フォーマット定義を作成
してゆく必要がなく、印刷用に係る煩雑な作業から開放
される。これによりホストコンピュータに接続した端末
装置から一度の指示による、精度の高い印刷も可能とな
り、端末装置とアウトプット受付(または、印刷装置)
間での往復作業もなくなる。According to the inventions of claims 8 and 17, since the character recognition frame for the handwritten characters to be entered in the ruled line frame is created from the printing format for the ruled line, the accuracy of the position of the character recognition frame is improved. In addition, once, the format definition for character recognition is created from the created print format definition, and conversely, the created format definition for character recognition, or for character recognition that is an intermediate product. From the format definition related to the format, a printing format definition of a form language used on the host computer side can be created. Then, as described above, the user learns an esoteric and cumbersome language for printing, performs programming work, repeatedly visits the output reception, receives the printed form,
There is no need to create a format definition while checking for a description error, thereby eliminating the need for complicated work related to printing. This makes it possible to perform high-precision printing with a single instruction from a terminal device connected to the host computer, and accept output from the terminal device (or a printing device).
There is no need to go back and forth between them.
【0082】請求項9、18の発明では、印刷用フォー
マット定義から罫線の位置を取得する。これにより従来
のように帳票イメージ中罫線画像を認識する必要はな
く、文字認識処理時間を短縮することができる。加え
て、罫線除去処理を行わない文字認識装置に比べると、
文字認識精度が高まる。According to the ninth and eighteenth aspects, the position of the ruled line is obtained from the print format definition. Thus, it is not necessary to recognize the ruled line image in the form image as in the related art, and the character recognition processing time can be reduced. In addition, compared to a character recognition device that does not perform ruled line removal processing,
Character recognition accuracy is improved.
【図1】帳票処理システム構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a form processing system configuration.
【図2】従来の帳票処理の処理プロセスを示すブロック
図である。FIG. 2 is a block diagram showing a processing process of a conventional form processing.
【図3】帳票の記載例およびそのフォーマット定義の内
容を示す説明図である。FIG. 3 is an explanatory diagram showing a description example of a form and contents of a format definition thereof.
【図4】フォーマット定義のパラメータを説明するため
の説明図である。FIG. 4 is an explanatory diagram for explaining parameters of a format definition.
【図5】本発明実施の形態の帳票処理プロセスを示すブ
ロック図である。FIG. 5 is a block diagram showing a form processing process according to the embodiment of the present invention.
【図6】文字認識用フォーマット定義の作成処理手順を
示すフローチャートである。FIG. 6 is a flowchart illustrating a procedure of creating a character recognition format definition.
【図7】文字認識用フォーマット定義の作成処理手順を
示すフローチャートである。FIG. 7 is a flowchart illustrating a procedure for creating a character recognition format definition.
10 ホストコンピュータ 20 (大型)プリンタ 30 ディスク記憶装置 40 端末装置 40A CPU 40B ワークメモリ 40C ハードディスク記憶装置(HDD) 41 (中小型)プリンタ 42 スキャナー 50 LAN DESCRIPTION OF SYMBOLS 10 Host computer 20 (Large-sized) printer 30 Disk storage device 40 Terminal device 40A CPU 40B Work memory 40C Hard disk storage device (HDD) 41 (Medium and small-sized) printer 42 Scanner 50 LAN
Claims (20)
マット定義の中の文字認識のための書式に関連する第2
フォーマット定義と前記文字認識のための書式を規定し
た第3フォーマット定義との間の対応関係を予め定めて
おき、 前記第1フォーマット定義の中から前記第2フォーマッ
ト定義を抽出する双方向性をもった相互抽出手段と、 当該抽出された第2フォーマット定義を前記第3フォー
マット定義に前記対応関係に変換するフォーマット変換
手段と、 当該変換された第3フォーマット定義に基づき帳票画像
の文字認識を行う文字認識手段とを具えたことを特徴と
する帳票処理システム。1. A first format definition defining a format for printing, a second format related to a format for character recognition.
Correspondence between a format definition and a third format definition that defines a format for character recognition is determined in advance, and the bidirectionality for extracting the second format definition from the first format definition is provided. Mutual extracting means, format converting means for converting the extracted second format definition into the third format definition into the correspondence, characters for performing character recognition of a form image based on the converted third format definition A form processing system comprising recognition means.
いて、前記対応関係に基づいて、文字認識のための書式
を規定した第3フォーマット定義を前記第2フォーマッ
ト定義にフォーマット変換し、 当該変換された第2フォーマット定義の中から前記第1
フォーマット定義を抽出する双方向性をもった相互抽出
手段とをも具えたことを特徴とする帳票処理システム。2. The form processing system according to claim 1, wherein a third format definition defining a format for character recognition is format-converted to the second format definition based on the correspondence. From the second format definition
A form processing system comprising: a mutual extraction unit having bidirectionality for extracting a format definition.
理システムにおいて、前記第1フォーマット定義はペー
ジ記述言語で記載されていることを特徴とする帳票処理
システム。3. The form processing system according to claim 1, wherein the first format definition is described in a page description language.
いて、帳票生成言語で記載された第4フォーマット定義
に基づき帳票処理するホストコンピュータ、該ホストコ
ンピュータに接続する端末装置を有し、該端末装置に前
記双方向性をもった相互抽出手段、前記フォーマット変
換手段および前記文字認識手段を配置し、前記端末装置
は前記第4フォーマット定義から前記第1フォーマット
定義をフォーマット変換により取得することを特徴とす
る帳票処理システム。4. The form processing system according to claim 3, further comprising: a host computer for processing a form based on a fourth format definition described in a form generation language; a terminal device connected to the host computer; Wherein said mutual extracting means having bidirectionality, said format converting means and said character recognizing means are arranged, and said terminal device acquires said first format definition from said fourth format definition by format conversion. Report processing system.
理システムにおいて、前記第1フォーマット定義は帳票
生成言語で記載されていることを特徴とする帳票処理シ
ステム。5. The form processing system according to claim 1, wherein the first format definition is described in a form generation language.
いて、前記帳票生成言語で記載された第1フォーマット
定義を帳票処理するホストコンピュータ、該ホストコン
ピュータに接続する端末装置を有し、該端末装置に前記
双方向性をもった相互抽出手段、前記フォーマット変換
手段および前記文字認識手段を配置し、前記端末装置は
前記ホストコンピュータから前記第1フォーマット定義
を取得することを特徴とする帳票処理システム。6. The form processing system according to claim 5, further comprising: a host computer for processing the first format definition described in the form generation language, and a terminal device connected to the host computer. A form processing system, further comprising: a mutual extraction unit having the bidirectionality; the format conversion unit; and the character recognition unit, wherein the terminal device acquires the first format definition from the host computer.
理システムにおいて、帳票原稿を読み取る画像読み取り
手段をさらに有し、該画像読み取り手段により読み取っ
た帳票画像を前記文字認識手段が文字認識することを特
徴とする帳票処理システム。7. The form processing system according to claim 1, further comprising image reading means for reading a form document, wherein said character recognizing means recognizes a form image read by said image reading means. A form processing system characterized by the following.
理システムにおいて、前記文字認識手段は手書き文字を
認識可能であり、前記第1フォーマット定義の中には帳
票に記載された罫線の位置を規定したフォーマット定義
が含まれ、該フォーマット定義から手書き文字の認識枠
を決定することを特徴とする帳票処理システム。8. The form processing system according to claim 1, wherein said character recognizing means is capable of recognizing a handwritten character, and said first format definition includes a position of a ruled line described in the form. A form processing system including a format definition that defines a handwritten character recognition frame based on the format definition.
いて、前記文字認識手段は、文字認識に先立って、前記
罫線の位置を規定したフォーマット定義に基づき、前記
帳票画像の中から罫線画像を除去することを特徴とする
帳票処理システム。9. The form processing system according to claim 8, wherein said character recognizing means removes a ruled line image from said form image based on a format definition defining a position of said ruled line prior to character recognition. And a form processing system.
備えた帳票処理システムの文字認識方法において、 前記情報処理装置は印刷のための書式を規定した第1フ
ォーマット定義の中から文字認識のための書式に関違す
る第2フォーマット定義を抽出し、 文字認識のための書式を規定した第3フォーマット定義
と前記第2フォーマット定義との間の対応関係を予め定
めておき、該対応関係に基づき、抽出された前記第2フ
ォーマット定義を前記第3フォーマット定義に変換し、 当該変換された第3フォーマット定義に基づき帳票画像
の文字認識を行うことを特徴とする帳票処理システムの
文字認識方法。10. A character recognition method for a form processing system provided with an information processing device having a character recognition function, wherein the information processing device performs character recognition for character recognition from a first format definition defining a format for printing. A second format definition different from the format is extracted, and a correspondence between a third format definition defining a format for character recognition and the second format definition is determined in advance, and based on the correspondence, A character recognition method for a form processing system, comprising: converting the extracted second format definition into the third format definition; and performing character recognition of a form image based on the converted third format definition.
の文字認識方法において、 前記対応関係に基づいて、文字認識のための書式を規定
した第3フォーマット定義を前記第2フォーマット定義
にフォーマット変換し、 当該変換された第2フォーマット定義の中から前記第1
フォーマット定義を抽出することをも具えたことを特徴
とする帳票処理システムの文字認識方法。11. The character recognition method for a form processing system according to claim 10, wherein a third format definition defining a format for character recognition is converted into the second format definition based on the correspondence. From the converted second format definition,
A character recognition method for a form processing system, further comprising extracting a format definition.
帳票処理システムの文字認識方法において、前記第1フ
ォーマット定義はページ記述言語で記載されていること
を特徴とする帳票処理システムの文字認識方法。12. The character recognition method for a form processing system according to claim 10, wherein the first format definition is described in a page description language. .
の文字認識方法において、前記帳票処理システムは、帳
票生成言語で記載された第4フォーマット定義を帳票処
理するホストコンピュータを有し、該ホストコンピュー
タに対して前記情報処理装置が端末装置として接続され
ており、前記情報処理装置は前記第4フォーマット定義
から前記第1フォーマット定義をフォーマット変換によ
り取得することを特徴とする帳票処理システムの文字認
識方法。13. A character recognition method for a form processing system according to claim 12, wherein said form processing system has a host computer for processing a fourth format definition described in a form generation language. Wherein the information processing device is connected as a terminal device, and the information processing device acquires the first format definition from the fourth format definition by format conversion. .
帳票処理システムの文字認識方法において、前記第1フ
ォーマット定義は帳票生成言語で記載されていることを
特徴とする帳票処理システムの文字認識方法。14. A character recognition method for a form processing system according to claim 10, wherein said first format definition is described in a form generation language. .
の文字認識方法において、前記情報処理システムは前記
帳票生成言語で記載された第1フォーマット定義を帳票
処理するホストコンピュータを有し、該ホストコンピュ
ータに対して前記情報処理装置が端末装置としで接続さ
れ、前記情報処理装置は前記ホストコンピュータから前
記第1フォーマット定義を取得することを特徴とする帳
票処理システムの文字認識方法。15. A character recognition method for a form processing system according to claim 14, wherein said information processing system has a host computer for processing a first format definition described in said form generation language. Wherein the information processing device is connected as a terminal device, and the information processing device acquires the first format definition from the host computer.
帳票処理システムの文字認識方法において、前記帳票処
理システムは、帳票原稿を読み取る画像読み取り装置を
さらに有し、該画像読み取り装置により読み取った帳票
画像を前記情報処理装置において文字認識することを特
徴とする帳票処理システムの文字認識方法。16. The character recognition method for a form processing system according to claim 10, wherein said form processing system further comprises an image reading device for reading a form document, and wherein the form read by said image reading device. A character recognition method for a form processing system, wherein a character of an image is recognized by the information processing apparatus.
帳票処理システムの文字認識方法において、前記情報処
理装置は手書き文字を認識可能であり、前記第1フォー
マット定義の中には帳票に記載された罫線の位置を規定
したフォーマット定義が含まれ、該フォーマット定義か
ら手書き文字の認識枠を決定することを特徴とする帳票
処理システムの文字認識方法。17. The character recognition method for a form processing system according to claim 10, wherein the information processing device is capable of recognizing handwritten characters, and the first format definition is described in a form. A character recognition method for a form processing system, characterized by including a format definition defining the position of the ruled line, and determining a recognition frame for handwritten characters from the format definition.
の文字認識方法において、前記情報処理装置は、文字認
識に先立って、前記罫線の位置を規定したフォーマット
定義に基づき、前記帳票画像の中から罫線画像を除去す
ることを特徴とする帳票処理システムの文字認識方法。18. The form recognizing method according to claim 17, wherein the information processing apparatus selects one of the form images from the form image based on a format definition defining a position of the ruled line prior to character recognition. A character recognition method for a form processing system, wherein a ruled line image is removed.
備え、該情報処理装置により読み取られ、実行可能なプ
ログラムコード手段を記録した帳票処理システムの記録
媒体において、 前記プログラムコード手段は、前記情報処理装置は印刷
のための書式を規定した第1フォーマット定義の中から
文字認識のための式に関連する第2フォーマット定義を
抽出する双方向性をもったステップと、 文字認識のための書式を規定した第3フォーマット定義
と前記第2フォーマット定義との間の対応関係が予め定
められており、該対応関係に基づき、抽出された前記第
2フォーマット定義を前記第3フォーマット定義に変換
するステップと、当該変換された第3フォーマット定義
に基づき帳票画像の文字認識を行うステップとを具えた
ことを特徴とする帳票処理システムの記録媒体。19. A recording medium for a form processing system comprising an information processing device having a character recognition function and recording executable program code means read by the information processing device, wherein the program code means comprises: The apparatus includes a bi-directional step of extracting a second format definition related to an expression for character recognition from a first format definition that defines a format for printing, and defining a format for character recognition. A correspondence relationship between the third format definition and the second format definition is determined in advance, and converting the extracted second format definition into the third format definition based on the correspondence relationship; Performing character recognition of the form image based on the converted third format definition. Recording medium of the vote processing system.
の記録媒体において、 前記対応関係に基づいて、文字認識のための書式を規定
した第3フォーマット定義を前記第2フォーマット定義
にフォーマット変換し、 当該変換された第2フォーマット定義の中から前記第1
フォーマット定義を抽出する双方向性をもったステップ
とをも具えたことを特徴とする帳票処理システムの記録
媒体。20. The recording medium of the form processing system according to claim 19, wherein a third format definition that defines a format for character recognition is format-converted into the second format definition based on the correspondence. From the converted second format definition, the first format
And a step having an interactivity for extracting a format definition.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9151423A JPH10340314A (en) | 1997-06-09 | 1997-06-09 | Document processing system, character recognition method therefor and record medium therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9151423A JPH10340314A (en) | 1997-06-09 | 1997-06-09 | Document processing system, character recognition method therefor and record medium therefor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10340314A true JPH10340314A (en) | 1998-12-22 |
Family
ID=15518303
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9151423A Pending JPH10340314A (en) | 1997-06-09 | 1997-06-09 | Document processing system, character recognition method therefor and record medium therefor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10340314A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004227255A (en) * | 2003-01-22 | 2004-08-12 | Mitsubishi Electric Corp | Document analysis device |
| US9582740B2 (en) | 2014-01-22 | 2017-02-28 | Fuji Xerox Co., Ltd. | Image processing apparatus, non-transitory computer readable medium, and image processing method |
-
1997
- 1997-06-09 JP JP9151423A patent/JPH10340314A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004227255A (en) * | 2003-01-22 | 2004-08-12 | Mitsubishi Electric Corp | Document analysis device |
| US9582740B2 (en) | 2014-01-22 | 2017-02-28 | Fuji Xerox Co., Ltd. | Image processing apparatus, non-transitory computer readable medium, and image processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH08190604A (en) | Method and apparatus for generation of hybrid data structurefor display of raster image | |
| JP2003022269A (en) | Comic translation device and system, and manga translation method | |
| JPS6118033A (en) | print processing device | |
| US6594405B1 (en) | Method and apparatus for preprinted forms completion | |
| JP2000322417A (en) | Image filing apparatus and method, and storage medium | |
| JP2008059157A (en) | Document confirmation support system, document confirmation support device and program | |
| JP4924990B2 (en) | Document processing apparatus and document processing program | |
| JPH10340314A (en) | Document processing system, character recognition method therefor and record medium therefor | |
| JPH10171920A (en) | Method and device for character recognition, and its recording medium | |
| JPH0696288A (en) | Character recognizing device and machine translation device | |
| JPS61245274A (en) | word processor | |
| JP2003132078A (en) | Database construction apparatus, database construction method, database construction program, recording medium | |
| JP2682873B2 (en) | Recognition device for tabular documents | |
| JP6960646B1 (en) | Reading system, reading program and reading method | |
| JP5390880B2 (en) | External character bitmap data extraction method | |
| JP4081074B2 (en) | Form processing apparatus, form processing method, and form processing program | |
| JPH07262317A (en) | Document processor | |
| JP2003085477A (en) | Character recognition device and method of correcting character recognition result | |
| JPH04302070A (en) | Character recognizing device | |
| JPH0493275A (en) | Image filing device | |
| JPH04293185A (en) | Filing device | |
| JPH09218741A (en) | Information processing apparatus and control method therefor | |
| CN115761769A (en) | Intelligent marking method, printing data processing method, device and image forming equipment | |
| JP3011012B2 (en) | Document creation system | |
| JPH09204481A (en) | Word processor with image processing function |