JP2012133569A - Information processing device, control method and program thereof - Google Patents

Information processing device, control method and program thereof Download PDF

Info

Publication number
JP2012133569A
JP2012133569A JP2010284848A JP2010284848A JP2012133569A JP 2012133569 A JP2012133569 A JP 2012133569A JP 2010284848 A JP2010284848 A JP 2010284848A JP 2010284848 A JP2010284848 A JP 2010284848A JP 2012133569 A JP2012133569 A JP 2012133569A
Authority
JP
Japan
Prior art keywords
information
data
area
ocr
processing apparatus
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.)
Withdrawn
Application number
JP2010284848A
Other languages
Japanese (ja)
Inventor
Kenji Kagawa
研治 賀川
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.)
Canon Marketing Japan Inc
Canon IT Solutions Inc
Canon MJ IT Group Holdings Inc
Original Assignee
Canon Marketing Japan Inc
Canon IT Solutions Inc
Canon MJ IT Group Holdings Inc
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 Canon Marketing Japan Inc, Canon IT Solutions Inc, Canon MJ IT Group Holdings Inc filed Critical Canon Marketing Japan Inc
Priority to JP2010284848A priority Critical patent/JP2012133569A/en
Publication of JP2012133569A publication Critical patent/JP2012133569A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve accuracy of data recognition processing.SOLUTION: An information processing device performs following steps: detecting a position of an area which is printed in a print sheet and to which data recognition processing is performed, by analyzing image data obtained by reading the print sheet in which position information showing the position of the area to which the data recognition processing is performed is printed; acquiring the position of the area which is shown by the position information and to which the data recognition processing is performed, by reading the position information included in the image data; correcting the acquired position according to the detected position and the acquired position; and performing the data recognition processing to the area of the image data shown by the corrected position.

Description

本発明は、情報処理装置、及びその制御方法、プログラムに関し、特に、データ認識の精度を向上させるための技術に関するものである。   The present invention relates to an information processing apparatus, a control method therefor, and a program, and more particularly to a technique for improving the accuracy of data recognition.

従来、一定の書式(テンプレート)に変数(文字や数値等のテンプレートに固定されないデータ)等のデータをオーバーレイして帳票などを作成している。また、このようにして帳票等を作成するために用いるテンプレートのデータを作成するためのソフトウェアも開発されている。   Conventionally, a form or the like is created by overlaying data such as variables (data not fixed to a template such as characters and numerical values) on a certain format (template). In addition, software for creating template data used to create a form or the like in this way has been developed.

このテンプレートのデータ(テンプレートデータ)は、具体的には、一定の書式である帳票などのフォームのデータ(フォームデータ)である。このソフトウェアを用いて、帳票のフォームを作成したり、そのフォームの一部の領域に、変数等のデータを出力する出力領域や、ユーザからの文字等の入力(記載)が可能な印字領域等を設定したりすることで、テンプレートデータを作成している。このようにして作成されたテンプレートデータに、該変数などを重ね合わせて(オーバーレイして)、目的の帳票などを出力している。   The template data (template data) is specifically form data (form data) such as a form having a certain format. Using this software, form forms can be created, output areas that output data such as variables in some areas of the forms, and print areas that allow users to input (describe) characters, etc. Template data is created by setting. The template data created in this way is overlaid with the variables and the like, and the target form is output.

また、従来、このようにして帳票が出力された後に、帳票の出力領域に出力された変数や、ユーザにより印字領域に記載された文字などを読み取るために、帳票に対してOCR処理(文字認識処理)を実行している。OCR処理を効率的に行うため、ユーザの指示に応じて、帳票の一部の領域(出力領域や印字領域など)をOCR処理する領域として規定されたOCRテンプレートを生成し、このOCRテンプレートに従ってOCR処理を実行している。   In addition, conventionally, after a form is output in this way, OCR processing (character recognition) is performed on the form in order to read variables output to the form output area or characters written in the print area by the user. Process). In order to efficiently perform OCR processing, an OCR template that is defined as an OCR processing area is generated for a part of the form (such as an output area or a printing area) in accordance with a user instruction, and OCR template is generated according to the OCR template. Processing is being executed.

例えば、特許文献1には、スキャナから読み取った帳票のイメージを表示し、表示されたイメージの中から、ユーザにより指示された領域のフィールド項目属性情報を作成することが開示されている。   For example, Patent Document 1 discloses that an image of a form read from a scanner is displayed, and field item attribute information of an area designated by a user is created from the displayed image.

また、特許文献2には、スキャナで読み取られ得られた画像から、帳票の左端部付近と右端部付近の2点の特徴部位座標と、予め格納されている特徴部位座標とから、ずれ量を判定することが記載されている。   Further, Patent Document 2 discloses a deviation amount from an image obtained by reading with a scanner from two feature part coordinates near a left end part and a right end part of a form, and feature part coordinates stored in advance. It is described that it is judged.

特開2005−044256号公報Japanese Patent Laid-Open No. 2005-044256 特開2004−326672号公報JP 2004-326672 A

しかしながら、上記特許文献1では、帳票のテンプレートデータを作成する際に、帳票の出力領域などのオブジェクトを設定し、該オブジェクトに対して、文字のフォント(ゴシック体や明朝体などの書体)やフォントサイズ、出力されるデータが文字か数字かを示す文字/数字属性、出力される文字又は数字等の桁数などの属性情報を設定し、その後OCR処理を行う際に、OCR処理する対象領域や、OCR処理で用いる辞書などの属性情報(OCR定義情報)を当該対象領域に設定しなければならない。すなわち、ユーザは、テンプレートデータを作成する際とOCR処理を行う際に、属性情報の設定を行わなくてはならず煩雑であった。   However, in the above-mentioned Patent Document 1, when creating template data of a form, an object such as a form output area is set, and a character font (a typeface such as Gothic or Mincho) or a font is applied to the object. The target area for OCR processing when setting the font size, the attribute / character attribute indicating whether the output data is characters or numbers, the number of digits such as the output characters or numbers, and then performing OCR processing In addition, attribute information (OCR definition information) such as a dictionary used in OCR processing must be set in the target area. That is, the user has to set attribute information when creating template data and performing OCR processing, which is complicated.

また、帳票フォームデータが印刷された印刷用紙を読み取って、フィールド領域に対して文字認識処理を行うために、あらかじめ文字認識装置側にOCR定義情報を用意しておかなければならず、OCR定義情報が用意されていない文字認識装置では効率的に文字認識処理が行えないという問題点がある。   In addition, in order to read the printing paper on which the form form data is printed and perform the character recognition processing on the field area, the OCR definition information must be prepared in advance on the character recognition device side. There is a problem that a character recognition device that does not have a character cannot efficiently perform character recognition processing.

また、帳票フォームデータを印刷する際に、プリンタ毎に印字ずれなどが発生する場合があり、このような印字がずれている帳票用紙に対して、適切なOCR定義情報に基づいて特定される対象領域に対してOCR処理を行ったとしても、適切にOCR処理が行われない場合があった。   Also, when printing form form data, printing misalignment may occur for each printer, and the target specified based on the appropriate OCR definition information for such misprinted form paper Even if the OCR process is performed on the area, the OCR process may not be performed properly.

特許文献2においては、あらかじめ特徴部位座標を設定し装置内に格納しなければならず、このような情報が用意されていない装置では、精度良く文字認識処理を行えないという問題がある。   In Patent Document 2, the characteristic part coordinates must be set in advance and stored in the apparatus, and there is a problem that a character recognition process cannot be performed with high accuracy in an apparatus for which such information is not prepared.

本発明の目的は、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られ得られた画像データを解析することにより得られる、当該印刷用紙に印刷された、前記データ認識処理を行う領域の位置と、当該画像データに含まれる位置情報に示される位置とに従って、データ認識処理を行う領域の位置を補正することにより、データ認識処理の精度を向上させることである。   An object of the present invention is to obtain the data printed on the printing paper obtained by analyzing the image data obtained by reading the printing paper on which the position information indicating the position of the area where the data recognition process is performed is printed. The accuracy of the data recognition process is improved by correcting the position of the area where the data recognition process is performed according to the position of the area where the recognition process is performed and the position indicated by the position information included in the image data.

本発明は、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置であって、前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出手段と、前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得手段と、前記検出手段で検出された位置と、前記取得手段で取得された位置とに従って、前記取得手段で取得された位置を補正する補正手段と、前記補正手段で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識手段と、を備えることを特徴とする。   The present invention is an information processing apparatus including a storage unit that stores image data obtained by reading a print sheet on which position information indicating a position of an area for performing data recognition processing is printed. Analyzing the stored image data to detect the position of an area printed on the printing paper for performing the data recognition process; and the image data included in the image data stored in the storage unit By reading the position information, the acquisition means for acquiring the position of the area for performing the data recognition processing indicated by the position information, the position detected by the detection means, and the position acquired by the acquisition means According to the correction means for correcting the position acquired by the acquisition means, and stored in the storage means indicated by the position obtained by correction by the correction means Characterized in that it comprises a data recognition means for performing data recognition processing, the relative area of the image data.

また、本発明は、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置の制御方法であって、前記情報処理装置の検出手段が、前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出工程と、前記情報処理装置の取得手段が、前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得工程と、前記情報処理装置の補正手段が、前記検出工程で検出された位置と、前記取得工程で取得された位置とに従って、前記取得工程で取得された位置を補正する補正工程と、前記情報処理装置のデータ認識手段が、前記補正工程で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識工程と、を備えることを特徴とする。   The present invention also relates to a method for controlling an information processing apparatus including a storage unit that stores image data obtained by reading a print sheet on which position information indicating a position of an area for performing data recognition processing is printed. A detection step of detecting a position of an area on which the data recognition process is performed, which is printed on the printing paper, by analyzing the image data stored in the storage unit; The acquisition unit of the information processing apparatus acquires the position of the area for performing the data recognition process indicated by the position information by reading the position information included in the image data stored in the storage unit. The acquisition step and the correction means of the information processing apparatus are acquired in the acquisition step according to the position detected in the detection step and the position acquired in the acquisition step. A correction step for correcting the position, and data for the area of the image data stored in the storage means indicated by the position obtained by the data recognition means of the information processing device being corrected in the correction step. And a data recognition step for performing recognition processing.

また、本発明は、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置で実行可能なプログラムあって、前記情報処理装置を、前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出手段と、前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得手段と、前記検出手段で検出された位置と、前記取得手段で取得された位置とに従って、前記取得手段で取得された位置を補正する補正手段と、前記補正手段で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識手段として機能させることを特徴とする。   The present invention also provides a program that can be executed by an information processing apparatus including a storage unit that stores image data obtained by reading a print sheet on which position information indicating the position of an area for performing data recognition processing is printed. The information processing apparatus analyzes the image data stored in the storage unit, thereby detecting the position of the area printed on the printing paper and performing the data recognition process, and the storage By reading the position information included in the image data stored in the means, the acquisition means for acquiring the position of the area to be subjected to the data recognition process indicated by the position information, and detected by the detection means In accordance with the position and the position acquired by the acquisition means, a correction means for correcting the position acquired by the acquisition means, and correction by the correction means Indicated by the position obtained Ri, characterized in that to function as a data recognition means for performing data recognition processing to a region of the image data stored in the storage means.

本発明によれば、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られ得られた画像データを解析することにより得られる、当該印刷用紙に印刷された、前記データ認識処理を行う領域の位置と、当該画像データに含まれる位置情報に示される位置とに従って、データ認識処理を行う領域の位置を補正することにより、データ認識処理の精度を向上させることができる。   According to the present invention, the data printed on the printing paper obtained by analyzing the image data obtained by reading the printing paper on which the position information indicating the position of the area where the data recognition process is performed is printed. The accuracy of the data recognition process can be improved by correcting the position of the area where the data recognition process is performed according to the position of the area where the recognition process is performed and the position indicated by the position information included in the image data.

図1は、本実施形態に係るシステムの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of a system according to the present embodiment. 図2は、図1に示した情報処理装置101及び102のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram showing a hardware configuration of the information processing apparatuses 101 and 102 shown in FIG. 図3は、図1に示した情報処理装置のソフトウェア構成の一例を示したブロック図である。FIG. 3 is a block diagram illustrating an example of a software configuration of the information processing apparatus illustrated in FIG. 図4は、フォームエディター画面400の一例である。FIG. 4 is an example of the form editor screen 400. 図5は、フォームの属性情報を入力するための帳票フォームのプロパティ画面500の一例である。FIG. 5 is an example of a form form property screen 500 for inputting form attribute information. 図6は、オブジェクトの属性(定義)を入力するためのプロパティ画面の一例である。FIG. 6 is an example of a property screen for inputting object attributes (definitions). 図7は、フォームを定義するためのデータが記憶されるフォーム定義テーブルの一例である。FIG. 7 is an example of a form definition table in which data for defining a form is stored. 図8は、オブジェクトの定義(属性)するデータが記憶されるオブジェクト定義テーブルの一例である。FIG. 8 is an example of an object definition table that stores data for defining (attributes) objects. 図9は、フォームのOCR定義テーブルの一例を示す図である。FIG. 9 is a diagram illustrating an example of an OCR definition table of a form. 図10は、オブジェクトのOCR定義テーブルの一例を示す図である。FIG. 10 is a diagram illustrating an example of an OCR definition table of objects. 図11は、出力データの一例を示す図である。FIG. 11 is a diagram illustrating an example of output data. 図12は、フォーム(テンプレート)のOCR処理対象の領域を示す表示画面の一例を示す図である。FIG. 12 is a diagram showing an example of a display screen showing a region to be subjected to OCR processing of a form (template). 図13は、複合機103により読み取られた、ユーザにより記載された帳票のOCR処理対象の領域を示す表示画面の一例を示す図である。FIG. 13 is a diagram illustrating an example of a display screen that indicates an OCR processing target area of a form described by a user, which is read by the multi-function peripheral 103. 図14は、本発明のシステムにおける第1の制御処理手順の一例を示すフローチャートである。FIG. 14 is a flowchart showing an example of a first control processing procedure in the system of the present invention. 図15は、図14に示すステップS1404の詳細処理の一例を示すフローチャートである。FIG. 15 is a flowchart illustrating an example of detailed processing in step S1404 illustrated in FIG. 図16は、図15に示すステップS1508の詳細処理の一例を示すフローチャートである。FIG. 16 is a flowchart showing an example of detailed processing in step S1508 shown in FIG. 図17は、辞書テーブルの一例である。FIG. 17 is an example of a dictionary table. 図18は、図16のステップS1602、図19のステップS1902、図20のステップS2002、図21のステップS2102の処理の詳細処理の一例を示すフローチャートである。FIG. 18 is a flowchart showing an example of detailed processing of step S1602 in FIG. 16, step S1902 in FIG. 19, step S2002 in FIG. 20, and step S2102 in FIG. 図19は、図15のステップS1509の処理の詳細処理の一例を示すフローチャートである。FIG. 19 is a flowchart showing an example of detailed processing of step S1509 in FIG. 図20は、図15のステップS1510の処理の詳細処理の一例を示すフローチャートである。FIG. 20 is a flowchart illustrating an example of detailed processing of step S1510 of FIG. 図21は、図15のステップS1511の処理の詳細処理の一例を示すフローチャートである。FIG. 21 is a flowchart showing an example of detailed processing of the processing in step S1511 of FIG. 図21は、本発明のシステムにおける第2の制御処理手順の一例を示すフローチャートである。FIG. 21 is a flowchart showing an example of a second control processing procedure in the system of the present invention. 図23は、オブジェクトの配置領域2301と、OCR処理を行う領域(OCR処理の対象領域2302)と、クリアエリア2303の関係を説明するための概念図である。FIG. 23 is a conceptual diagram for explaining the relationship among an object placement area 2301, an OCR process area (OCR process target area 2302), and a clear area 2303. 図24は、帳票フォームデータの印刷指示時に表示される帳票印刷設定画面の一例を示す画面図である。FIG. 24 is a screen diagram illustrating an example of a form print setting screen displayed when a form form data print instruction is issued. 図25は、本発明の情報処理装置における帳票印刷処理手順の一例を示すフローチャートである。FIG. 25 is a flowchart showing an example of a form print processing procedure in the information processing apparatus of the present invention. 図26は、本発明の情報処理装置におけるデータ認識処理手順の一例を示すフローチャートである。FIG. 26 is a flowchart showing an example of a data recognition processing procedure in the information processing apparatus of the present invention. 図26に示すステップS2607に示すプリンタ印字位置ずれ補正処理の詳細処理を示すフローチャートである。FIG. 27 is a flowchart showing a detailed process of a printer printing position deviation correction process shown in step S2607 shown in FIG. 26. FIG. プリンタ管理サーバ104が実行するプリンタの印字位置調整処理を示すフローチャートである。7 is a flowchart illustrating printer print position adjustment processing executed by the printer management server 104; プリンタ管理テーブルの一例を示す図である。6 is a diagram illustrating an example of a printer management table. FIG.

以下、添付図面を参照して、本発明を好適な実施形態に従って詳細に説明する。
<図1の説明>
Hereinafter, the present invention will be described in detail according to preferred embodiments with reference to the accompanying drawings.
<Description of FIG. 1>

図1は、本実施形態に係るシステムの構成例を示す図である。図1に示すように、情報処理装置101と情報処理装置102とプリンタ管理サーバ104と複合機(画像処理装置)103は、ネットワーク105を介して相互に通信可能に接続されている。   FIG. 1 is a diagram illustrating a configuration example of a system according to the present embodiment. As illustrated in FIG. 1, the information processing apparatus 101, the information processing apparatus 102, the printer management server 104, and the multifunction peripheral (image processing apparatus) 103 are connected to each other via a network 105 so that they can communicate with each other.

複合機103は、スキャナ機能や印刷機能等を備えたいわゆるMFP(Multifunction Peripheral)などの画像処理装置であって、情報処理装置からの要求に応じて印刷処理を実行することや、帳票(紙)などを読み取って(スキャンして)生成した電子化したデータ(電子データ)を情報処理装置に送信することが可能である。   The multifunction machine 103 is an image processing apparatus such as a so-called MFP (Multifunction Peripheral) having a scanner function, a printing function, and the like, and executes print processing in response to a request from the information processing apparatus, and forms (paper). It is possible to transmit digitized data (electronic data) generated by reading (scanning) or the like to the information processing apparatus.

情報処理装置は、ネットワーク105を介して複合機103に帳票などの印刷要求を行うことが可能である。また、情報処理装置は、帳票などのテンプレート(帳票フォームデータ)を作成、編集する機能や、テンプレートを作成する際に入力するフォームの属性情報(フォーム定義テーブル(図7)内のデータであるフォーム定義情報)やオブジェクトの属性情報(オブジェクト定義テーブル(図8)内のデータであるオブジェクト定義情報)から、OCRするために設定するOCR定義情報(図10内のデータ)を生成する機能などを備えている。   The information processing apparatus can make a print request such as a form to the multi-function peripheral 103 via the network 105. In addition, the information processing apparatus has a function for creating and editing a template (form form data) such as a form, and form attribute information (form that is data in the form definition table (FIG. 7)) that is input when creating the template. A function for generating OCR definition information (data in FIG. 10) to be set for OCR from definition information) and object attribute information (object definition information which is data in the object definition table (FIG. 8)) ing.

また、情報処理装置は、複合機から送信される、ユーザにより記載された帳票の電子データを表示する機能も備えている。図13は、複合機103により読み取られた、ユーザにより記載された帳票のOCR処理対象の領域を示す表示画面の一例を示す図である。図13に示すように、1302、1303、1304、1305、1306、1307、1308の領域は、OCR処理対象の領域を示している。   The information processing apparatus also has a function of displaying electronic data of a form described by a user transmitted from the multifunction machine. FIG. 13 is a diagram illustrating an example of a display screen that indicates an OCR processing target area of a form described by a user, which is read by the multi-function peripheral 103. As illustrated in FIG. 13, areas 1302, 1303, 1304, 1305, 1306, 1307, and 1308 indicate areas that are subject to OCR processing.

プリンタ管理サーバ104は、情報処理装置から受信したデータに従って、印字位置を補正するためのコマンドを複合機103に送信する機能や、複合機の管理者が操作する端末にメールを送信する機能を備えている。   The printer management server 104 has a function of transmitting a command for correcting the printing position to the multifunction device 103 in accordance with data received from the information processing apparatus, and a function of transmitting mail to a terminal operated by the multifunction device administrator. ing.

なお、本実施の形態では、データ認識処理の一例として好適な文字認識処理(OCR処理)を用いて説明しているが、これに限るものではなく、記号認識処理(OMR処理)でも適用可能である。
<図2の説明>
In the present embodiment, a description is given using a suitable character recognition process (OCR process) as an example of the data recognition process. However, the present invention is not limited to this, and can also be applied to a symbol recognition process (OMR process). is there.
<Description of FIG. 2>

以下、図2を用いて、図1に示した情報処理装置101及び102及び104のハードウェア構成について説明する。   Hereinafter, the hardware configuration of the information processing apparatuses 101, 102, and 104 illustrated in FIG. 1 will be described with reference to FIG.

図2は、図1に示した情報処理装置101及び102及び104のハードウェア構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration of the information processing apparatuses 101, 102, and 104 illustrated in FIG.

図2において、201はCPUで、システムバス204に接続される各デバイスやコントローラを統括的に制御する。また、ROM202あるいは外部メモリ211には、CPU201の制御プログラムであるBIOS(Basic Input / Output   In FIG. 2, reference numeral 201 denotes a CPU that comprehensively controls devices and controllers connected to the system bus 204. The ROM 202 or the external memory 211 has a BIOS (Basic Input / Output) that is a control program of the CPU 201.

System)やオペレーティングシステムプログラム(以下、OS)や、各サーバ或いは各PC(情報処理装置)の実行する機能を実現するために必要な後述する各種プログラム等が記憶されている。   (System), an operating system program (hereinafter referred to as OS), and various programs (to be described later) necessary for realizing functions executed by each server or each PC (information processing apparatus) are stored.

203はRAMで、CPU201の主メモリ、ワークエリア等として機能する。CPU201は、処理の実行に際して必要なプログラム等をROM202あるいは外部メモリ211からRAM203にロードして、該ロードしたプログラムを実行することで各種動作を実現するものである。   A RAM 203 functions as a main memory, work area, and the like for the CPU 201. The CPU 201 implements various operations by loading a program or the like necessary for execution of processing from the ROM 202 or the external memory 211 into the RAM 203 and executing the loaded program.

また、205は入力コントローラで、キーボード(KB)209や不図示のマウス等のポインティングデバイス等からの入力を制御する。206はビデオコントローラで、CRTディスプレイ(CRT)210等の表示器(表示部)への表示を制御する。なお、図2では、CRT210と記載しているが、表示器はCRTだけでなく、液晶ディスプレイ等の他の表示器であってもよい。これらは必要に応じて管理者が使用するものである。   An input controller 205 controls input from a keyboard (KB) 209 or a pointing device such as a mouse (not shown). A video controller 206 controls display on a display (display unit) such as a CRT display (CRT) 210. In FIG. 2, although described as CRT 210, the display device is not limited to the CRT, but may be another display device such as a liquid crystal display. These are used by the administrator as needed.

207はメモリコントローラで、ブートプログラム,各種のアプリケーション,フォントデータ,ユーザファイル,編集ファイル,各種データ等を記憶する外部記憶装置(ハードディスク(HD))や、フレキシブルディスク(FD)、或いはPCMCIAカードスロットにアダプタを介して接続されるコンパクトフラッシュ(登録商標)メモリ等の外部メモリ211へのアクセスを制御する。   A memory controller 207 is provided in an external storage device (hard disk (HD)), flexible disk (FD), or PCMCIA card slot for storing a boot program, various applications, font data, user files, editing files, various data, and the like. Controls access to an external memory 211 such as a compact flash (registered trademark) memory connected via an adapter.

208は通信I/Fコントローラで、ネットワーク105を介して外部機器と接続・通信するものであり、ネットワークでの通信制御処理を実行する。例えば、TCP/IPを用いた通信等が可能である。   A communication I / F controller 208 is connected to and communicates with an external device via the network 105, and executes communication control processing on the network. For example, communication using TCP / IP is possible.

なお、CPU201は、例えばRAM203内の表示情報用領域へアウトラインフォントの展開(ラスタライズ)処理を実行することにより、CRT210上での表示を可能としている。また、CPU201は、CRT210上の不図示のマウスカーソル等でのユーザ指示を可能とする。   Note that the CPU 201 enables display on the CRT 210 by executing outline font rasterization processing on a display information area in the RAM 203, for example. In addition, the CPU 201 enables a user instruction with a mouse cursor (not shown) on the CRT 210.

本発明を実現するための後述する各種プログラムは、外部メモリ211に記録されており、必要に応じてRAM203にロードされることによりCPU201によって実行されるものである。さらに、上記プログラムの実行時に用いられるファイル及び各種テーブル等も、外部メモリ211に格納されている。
<図3の説明>
Various programs to be described later for realizing the present invention are recorded in the external memory 211 and executed by the CPU 201 by being loaded into the RAM 203 as necessary. Further, files and various tables used when executing the program are also stored in the external memory 211.
<Description of FIG. 3>

図3は、図1に示した情報処理装置のソフトウェア構成の一例を示したブロック図である。   FIG. 3 is a block diagram illustrating an example of a software configuration of the information processing apparatus illustrated in FIG.

外部メモリ211には、フォームエディタソフトウェア301と、OCRソフトウェアプログラム318と、フォーム定義テーブル(図7)と、オブジェクト定義テーブル(図8)と、下書きとなるイメージデータ312と、帳票フォームデータ全体のOCR定義テーブル(図9)と、帳票フォームデータ内のフィールド領域に書き込まれるオブジェクトのOCR定義テーブル(図10)と、辞書テーブル(図17)と、OCR処理するために用いる各種辞書(316)と、OCRエンジンによる認識処理結果が出力された出力結果317と、出力データ(図11)とが記憶される。   In the external memory 211, the form editor software 301, the OCR software program 318, the form definition table (FIG. 7), the object definition table (FIG. 8), the draft image data 312 and the OCR of the entire form form data are stored. A definition table (FIG. 9), an OCR definition table (FIG. 10) of objects written in the field area in the form form data, a dictionary table (FIG. 17), various dictionaries (316) used for OCR processing, An output result 317 obtained by outputting the recognition processing result by the OCR engine and output data (FIG. 11) are stored.

フォームエディタソフトウェア301(以下、フォームエディタソフトとも言う)は、帳票などのフォームのテンプレートを作成又は編集するために用いられるソフトウェアである。   Form editor software 301 (hereinafter also referred to as form editor software) is software used to create or edit a form template such as a form.

フォームエディタソフト301は、ユーザからの指示に応じて、帳票などのフォームのテンプレートのデータや、当該テンプレートの各種属性情報を入力するフォームデータ・属性入力部302と(図5)、テンプレート内に配置する各種オブジェクトのデータや当該オブジェクトの各種属性情報を入力するオブジェクトデータ入力・属性入力部303と(図6)、302や303で入力されたデータを用いてOCR定義情報(図10)を生成するOCR定義情報生成部304と、テンプレートの下書きとなるイメージデータ(テンプレートとオーバーレイするデータ)を生成するイメージデータ生成部305と、OCR定義情報生成部304で生成されたOCR定義情報をOCRエンジンに設定するためにOCRソフトウェアが読み込む所定の記憶領域に当該OCR定義情報を記憶するOCR定義情報設定部306と、OCR処理(文字認識処理)を実行した結果(認識結果)を出力する出力部307と、を備えている。なお、イメージデータ生成部305で生成されたイメージデータは、記憶部308に記憶される。   The form editor software 301 is arranged in the template with a form data / attribute input unit 302 (FIG. 5) for inputting form template data such as a form and various attribute information of the template in accordance with an instruction from the user. OCR definition information (FIG. 10) is generated using the object data input / attribute input unit 303 (FIG. 6) for inputting various object data and various attribute information of the object (FIG. 6), and the data input in 302 and 303. Set the OCR definition information generated by the OCR definition information generation unit 304, the image data generation unit 305 that generates image data (data to be overlaid with the template) as the template draft, and the OCR definition information generated by the OCR definition information generation unit 304 in the OCR engine Where the OCR software reads to And OCR definition information setting unit 306 for storing the OCR definition information in a storage area of, and the output unit 307 for outputting OCR processing (character recognition processing) a result of executing the (recognition result), and a. Note that the image data generated by the image data generation unit 305 is stored in the storage unit 308.

ここで、302で入力されるテンプレート(フォーム)のデータや、当該テンプレートの各種属性情報はフォーム定義テーブル(図7)310に記憶され、303で入力される各種オブジェクトのデータや当該オブジェクトの各種属性情報は、オブジェクト定義テーブル(図8)311に記憶される。このフォーム定義テーブル310とオブジェクト定義テーブル311内のデータは、テンプレートとなるフォーム(様式)を構成(定義)するためのデータ309である。   Here, the data of the template (form) input in 302 and various attribute information of the template are stored in the form definition table (FIG. 7) 310, and the data of various objects input in 303 and the various attributes of the object. The information is stored in an object definition table (FIG. 8) 311. The data in the form definition table 310 and the object definition table 311 is data 309 for configuring (defining) a form (style) serving as a template.

OCR定義情報生成部304は、このように記憶部308に記憶されたフォーム定義テーブル(図7)やオブジェクト定義テーブル(図8)内のデータからOCR定義情報を生成する。   The OCR definition information generation unit 304 generates OCR definition information from the data in the form definition table (FIG. 7) and the object definition table (FIG. 8) stored in the storage unit 308 as described above.

そして、OCR定義情報設定部306は、生成されたOCR定義情報を、記憶部308に記憶されたオブジェクトのOCR定義テーブル315に記憶する。   Then, the OCR definition information setting unit 306 stores the generated OCR definition information in the object OCR definition table 315 stored in the storage unit 308.

これらフォームのOCR定義テーブル314及びオブジェクトのOCR定義テーブル315は、OCR処理(文字認識処理)を実行するために用いられるデータ313である。   These form OCR definition table 314 and object OCR definition table 315 are data 313 used to execute OCR processing (character recognition processing).

記憶部308は、外部メモリ211等の記憶手段であり、OCR処理で用いる各種辞書316が記憶されている。   The storage unit 308 is a storage unit such as the external memory 211 and stores various dictionaries 316 used in OCR processing.

OCRソフトウェアプログラム318(OCRソフトウェアとも言う)は、記憶部308に記憶されたフォームのOCR定義テーブル314とオブジェクトのOCR定義テーブル315内のOCR定義情報を読み込む読込部319と、読込部319で読み込んだデータ(OCR定義情報)を用いて文字認識処理を行う文字認識処理部320(OCRエンジン)と、文字認識処理部320で認識された結果を記憶部308に記憶させるべく出力する出力部321とを備えている。   The OCR software program 318 (also referred to as OCR software) is read by the reading unit 319 and the reading unit 319 for reading the OCR definition table 314 of the form stored in the storage unit 308 and the OCR definition information in the object OCR definition table 315. A character recognition processing unit 320 (OCR engine) that performs character recognition processing using data (OCR definition information), and an output unit 321 that outputs a result recognized by the character recognition processing unit 320 to be stored in the storage unit 308. I have.

ここで、出力部321は、文字認識処理部320での認識結果を、CRT210などの表示部に表示するために出力することや、また、複合機103に印刷させるべく出力することが可能である。
<図14の説明>
Here, the output unit 321 can output the result of recognition by the character recognition processing unit 320 for display on a display unit such as the CRT 210 or can output the result of printing on the multi-function peripheral 103. .
<Description of FIG. 14>

次に、図14のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図14は、本発明のシステムにおける第1の制御処理手順の一例を示すフローチャートであり、図3に示すフォームエディタソフトウェア301による処理に対応する。すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S1401〜S1406は各ステップを示す。   FIG. 14 is a flowchart showing an example of a first control processing procedure in the system of the present invention, and corresponds to the processing by the form editor software 301 shown in FIG. That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S1401 to S1406 indicate each step.

まず、情報処理装置101のCPU201は、フォームエディタソフトウェアプログラムを実行すると、図4に示すフォームエディター画面400をCRT210(表示部)に表示する。   First, when executing the form editor software program, the CPU 201 of the information processing apparatus 101 displays a form editor screen 400 shown in FIG. 4 on the CRT 210 (display unit).

図4は、フォームエディター画面400の一例である。   FIG. 4 is an example of the form editor screen 400.

次に、情報処理装置101のCPU201は、ユーザから帳票などのフォームの入力を受け付ける。具体的には、情報処理装置101のCPU201は、ユーザにより設定ボタン415が押下されたことを検知すると、図5に示す帳票フォームのプロパティ画面が表示される。   Next, the CPU 201 of the information processing apparatus 101 receives an input of a form such as a form from the user. Specifically, when the CPU 201 of the information processing apparatus 101 detects that the setting button 415 has been pressed by the user, the form form property screen shown in FIG. 5 is displayed.

図5は、フォームの属性情報を入力するための帳票フォームのプロパティ画面500の一例である。   FIG. 5 is an example of a form form property screen 500 for inputting form attribute information.

図5に示す帳票フォームのプロパティ画面500は、帳票のフォーム名(名称)を入力する部501と、出力する用紙の大きさ(サイズ)を入力する部503と、印刷の向きを入力する部507と、グリッドの間隔を入力する部509と、余白を入力する部512と、レイアウトの単位を入力する部517と、OCR処理を行うかを入力する部518とから構成される。この帳票フォームのプロパティ画面500の各部で入力される情報のそれぞれをフォーム(テンプレート)の属性情報として説明する。   A form form property screen 500 shown in FIG. 5 includes a unit 501 for inputting a form name (name) of a form, a unit 503 for inputting the size (size) of output paper, and a unit 507 for inputting a printing direction. A grid interval unit 509, a margin input unit 512, a layout unit input unit 517, and an OCR process input unit 518. Each information input in each part of the form form property screen 500 will be described as attribute information of the form (template).

ここで、帳票フォームのプロパティ画面500について詳しく説明する。   Here, the form form property screen 500 will be described in detail.

502は、ユーザによる帳票のフォーム名(名称)の入力を受け付けるテキストボックスである。   Reference numeral 502 denotes a text box that accepts input of the form name (name) of the form by the user.

また、504は、用紙サイズ(A4など)を選択することができるプルダウンであり、505は、用紙の幅を入力することができるテキストボックスであり、506は、用紙の高さを入力することができるテキストボックスである。また、508は、印刷の向き(縦か横)を入力することができるプルダウンである。   Reference numeral 504 denotes a pull-down menu capable of selecting a paper size (A4 or the like), reference numeral 505 denotes a text box in which a paper width can be input, and reference numeral 506 denotes a paper height. It is a text box that can. Reference numeral 508 denotes a pull-down menu in which the print direction (vertical or horizontal) can be input.

また、510はグリッドの間隔(高さ)を、511はグリッドの間隔(横)を入力できるテキストボックスである。513、514、515、516は、テンプレートの余白を入力するテキストボックスであり、それぞれテンプレートの上側、下側、左側、右側の余白を入力することができる。   Reference numeral 510 denotes a grid box (height), and reference numeral 511 denotes a text box in which the grid gap (horizontal) can be entered. Reference numerals 513, 514, 515, and 516 denote text boxes for inputting the margins of the template, and the upper, lower, left, and right margins of the template can be input, respectively.

また、517は、レイアウトの単位を入力できるプルダウンであり、たとえば、ミリメートル(mm)などを入力することが可能である。   Reference numeral 517 denotes a pull-down for inputting a layout unit. For example, millimeters (mm) can be input.

また、519は、図4に表示されているフォームに対してOCR処理を実行する設定を入力することができるチェックボックスであり、ここにチェックされている場合はOCR処理を実行する設定が入力されることとなる。520は、図4に表示されているフォームに対してOCR処理を実行しない設定を入力することができるチェックボックスである。ここにチェックされている場合はOCR処理を実行しない設定が入力されることとなる。   Reference numeral 519 denotes a check box that can input a setting for executing the OCR process for the form displayed in FIG. 4. If the check box is checked here, a setting for executing the OCR process is input. The Rukoto. Reference numeral 520 denotes a check box capable of inputting a setting for not executing the OCR processing for the form displayed in FIG. When this is checked, a setting for not executing the OCR process is input.

ここで説明した帳票フォームのプロパティ画面500の各部に入力された属性情報は、グリッドの間隔や余白などの、フォームを定義するためのデータである。   The attribute information input to each part of the form form property screen 500 described here is data for defining the form, such as grid intervals and margins.

情報処理装置101のCPU201は、ユーザにより帳票フォームのプロパティ画面500の各部で属性情報が入力され、OKボタン521が押下されると、入力された属性情報はフォーム定義テーブル(図7)に記憶される(ステップS1401)。また、キャンセル522ボタンが押下されると、帳票フォームのプロパティ画面500を閉じる。   When the user inputs attribute information in each part of the form form property screen 500 and presses the OK button 521, the CPU 201 of the information processing apparatus 101 stores the input attribute information in the form definition table (FIG. 7). (Step S1401). When the cancel 522 button is pressed, the form form property screen 500 is closed.

図7は、フォームを定義するためのデータが記憶されるフォーム定義テーブルの一例である。   FIG. 7 is an example of a form definition table in which data for defining a form is stored.

次に、情報処理装置101のCPU201は、フォームエディター画面400に表示されるテンプレート(フォーム、又は帳票フォームデータという)401に、ユーザの指示に応じてオブジェクトを配置して表示する。   Next, the CPU 201 of the information processing apparatus 101 arranges and displays objects on a template 401 (referred to as a form or form form data) displayed on the form editor screen 400 in accordance with a user instruction.

すなわち、帳票フォームデータに、データが書き込まれる領域を示すフィールド領域を設定する(フィールド設定手段)。   That is, a field area indicating an area in which data is written is set in the form form data (field setting means).

具体的には、表示ボタン416がユーザにより押下されると、フィールド一覧画面417を表示する。   Specifically, when the display button 416 is pressed by the user, the field list screen 417 is displayed.

この画面には、固定フィールド418や、可変フィールド419などのオブジェクトを配置するためのオブジェクトが表示されている。   On this screen, objects for arranging objects such as a fixed field 418 and a variable field 419 are displayed.

ここで、固定フィールドとは、固定の(変更のない)データを出力する領域であり、可変フィールドとは、可変のデータを出力する領域である。ユーザにより固定フィールド418をドラッグアンドドロップしてテンプレート401上に配置すると、たとえば、413のような出力領域をテンプレート上に設定することができる。可変フィールドの設定も固定フィールドと同様に、可変フィールド419をドラッグアンドドロップしてテンプレート401上に配置することで、可変フィールドをテンプレート上に設定することができる。   Here, the fixed field is an area for outputting fixed (no change) data, and the variable field is an area for outputting variable data. When the user drags and drops the fixed field 418 and arranges it on the template 401, an output area such as 413 can be set on the template. Similarly to the fixed field, the variable field can be set on the template by dragging and dropping the variable field 419 and placing it on the template 401.

また、フィールド一覧画面417のOLEフィールド420は、QRコードなどの二次元コードの出力を設定できるオブジェクトであり、可変フィールドと同様、OLEフィールド420をドラッグアンドドロップすることにより、テンプレート401上に配置される。たとえば、414のような出力領域をテンプレート上に設定することができる。ここで、414は、QRコードを出力するための領域として設定された例を示している。   The OLE field 420 of the field list screen 417 is an object that can set the output of a two-dimensional code such as a QR code. Like the variable field, the OLE field 420 is arranged on the template 401 by dragging and dropping the OLE field 420. The For example, an output area such as 414 can be set on the template. Here, reference numeral 414 denotes an example set as an area for outputting a QR code.

また、ユーザにより、421のオブジェクトが押下され、KB209から文字が入力されることにより、テンプレート401上に文字を直接入力することもできる。 たとえば、403や404、406、407、408、409、410、411は、このようにして文字が入力されている。   In addition, the user can directly input a character on the template 401 by pressing the object 421 and inputting the character from the KB 209. For example, characters 403, 404, 406, 407, 408, 409, 410, and 411 are input in this way.

405は、チェックボックスのオブジェクトが入力されたものである。405は、ユーザによりオブジェクト422が押下され、テンプレート401が指定されることにより、情報処理装置101のCPU201は、テンプレート401上に405を入力する。また、412に示す「はしご枠」のオブジェクトもこれと同様に入力することが可能である。   Reference numeral 405 denotes an input of a check box object. In step 405, when the user presses the object 422 and designates the template 401, the CPU 201 of the information processing apparatus 101 inputs 405 on the template 401. The “ladder frame” object shown at 412 can be input in the same manner.

次に、情報処理装置101のCPU201は、入力されたオブジェクトがユーザの指示により選択され、ユーザの指示に応じて、選択されたオブジェクトのプロパティ画面600(図6)を表示する。たとえば、ユーザがオブジェクトを選択し、選択された状態で右クリックすることにより表示される「プロパティ」(不図示)が選択されることで、選択されたオブジェクトのプロパティ画面600(図6)が表示される。   Next, the CPU 201 of the information processing apparatus 101 selects the input object according to a user instruction, and displays a property screen 600 (FIG. 6) of the selected object according to the user instruction. For example, when the user selects an object and right-clicks in the selected state and selects “Property” (not shown), the property screen 600 (FIG. 6) of the selected object is displayed. Is done.

そして、表示されたプロパティ画面600(図6)から、ユーザの指示により、当該オブジェクトに対して、オブジェクトの定義を示すデータを入力することが可能である。   Then, from the displayed property screen 600 (FIG. 6), data indicating the definition of the object can be input to the object in accordance with a user instruction.

すなわち、設定されるフィールド領域(オブジェクト)に書き込まれるデータの属性情報を設定する(属性設定手段)。   That is, the attribute information of the data written in the field area (object) to be set is set (attribute setting means).

図6は、オブジェクトの属性(定義)を入力するためのプロパティ画面の一例である。   FIG. 6 is an example of a property screen for inputting object attributes (definitions).

図6に示すオブジェクトのプロパティ画面600は、オブジェクトの名称とその種別(種類)を入力する部601と、OCR処理を行うかを入力する部604と、オブジェクトの配置位置とそのサイズを入力する部607,619と、線の属性を入力する部610と、文字の属性を入力する部614と、文字(列)の組み方向が横か縦か、また文字が全角か半角かを入力する出力定義部620と、文字枠が設定されている場合に、その文字枠の行数と桁数とを入力する部623とから構成される。   The object property screen 600 shown in FIG. 6 includes a unit 601 for inputting the name of the object and its type, a unit 604 for inputting whether to perform OCR processing, and a unit for inputting the arrangement position and size of the object. 607, 619, a line attribute input unit 610, a character attribute input unit 614, and an output definition for inputting whether a character (column) is combined horizontally or vertically, and whether a character is full-width or half-width A section 620 and a section 623 for inputting the number of lines and the number of digits of the character frame when a character frame is set.

ここで、オブジェクトのプロパティ画面600について詳しく説明する。   Here, the object property screen 600 will be described in detail.

602は、フィールド図形名(名称)を入力するテキストボックスであり、603は、その種別を選択入力できるプルダウンである。ここで種別とは、一例として、図形(四角)、文字、図形(チェックボックス)、文字(丸囲み)、図形(はしご枠)、出力領域(文字)、出力領域(QRコード)などを選択することができる。   Reference numeral 602 denotes a text box for inputting a field graphic name (name), and reference numeral 603 denotes a pull-down for selecting and inputting the type. Here, as the type, for example, a figure (square), a character, a figure (check box), a character (circle), a figure (ladder frame), an output area (character), an output area (QR code), or the like is selected. be able to.

図形(四角)とは、たとえば、図4の402にしめすような、テンプレートを四角の図形(線)で囲まれたオブジェクトである。また、文字とは、たとえば、図4の403、404、406、408、410、411に入力されている文字のオブジェクトである。また、図形(チェックボックス)とは、たとえば、図4の405に示すような、チェックボックスとして用いるオブジェクトである。また、文字(丸囲み)とは、たとえば、図4の407や409に示すような、ユーザにより丸囲みされるオブジェクトである。また、図形(はしご枠)とは、たとえば、図4の412に示すような、ユーザにより文字などを入力(記入)されるオブジェクトである。   The figure (square) is an object in which a template is surrounded by a square figure (line) as shown by 402 in FIG. The character is, for example, a character object input in 403, 404, 406, 408, 410, 411 in FIG. The figure (check box) is an object used as a check box, for example, as indicated by reference numeral 405 in FIG. The character (circled) is an object circled by the user, for example, as indicated by reference numerals 407 and 409 in FIG. The figure (ladder frame) is an object in which characters or the like are input (filled in) by the user, for example, as shown at 412 in FIG.

また、出力領域(文字)とは、たとえば、図4の413に示すような、文字が出力されるオブジェクトである。なお、このオブジェクトに出力される文字は、ユーザの指示により予め、例えば出力データ(図11)として記憶されている。   The output area (character) is an object to which a character is output, for example, as indicated by 413 in FIG. The characters output to this object are stored in advance as output data (FIG. 11), for example, in accordance with a user instruction.

図11は、出力データの一例を示す図である。図11には、図4の413の領域(文字エリア)に出力するデータとして「※電子クーポンはこちらからアクセスしてね」という文字データと、図4の414の領域(QRコードを出力するための領域)に出力するデータとして、QRコードのデータ「ABC・・・・jpee3dw」とを示している。   FIG. 11 is a diagram illustrating an example of output data. In FIG. 11, as data to be output to the area 413 (character area) in FIG. 4, the text data “* Please access the electronic coupon from here” and the area 414 in FIG. 4 (to output the QR code) QR code data “ABC... Jpee3dw” is shown as data to be output to the area (1).

図4のテンプレートの印刷を行う際に、出力データ(図11)のデータを413、414の領域に出力して印刷を行う。そして、印刷した結果を図12に示す。   When the template of FIG. 4 is printed, the data of the output data (FIG. 11) is output to the areas 413 and 414 for printing. The printed result is shown in FIG.

図12は、テンプレートのOCR領域の表示画面の一例である。オブジェクトのプロパティ画面600の説明に戻る。 出力領域(QRコード)とは、たとえば、図4の414に示すような二次元コードを出力するためのオブジェクトである。   FIG. 12 is an example of a display screen of the OCR area of the template. Returning to the description of the object property screen 600. The output area (QR code) is an object for outputting a two-dimensional code as indicated by 414 in FIG. 4, for example.

605は、選択されたオブジェクトに対してOCR処理を実行する設定を入力することができるチェックボックスであり、ここにチェックされている場合は、選択されたオブジェクトに対してOCR処理を実行する設定が入力されることとなる。606は、選択されたオブジェクトに対してOCR処理を実行しない設定を入力することができるチェックボックスである。ここにチェックされている場合は、選択されたオブジェクトに対してOCR処理を実行しない設定が入力されることとなる。   Reference numeral 605 denotes a check box in which a setting for executing an OCR process on a selected object can be input. When this box is checked, a setting for executing an OCR process on a selected object is set. Will be entered. Reference numeral 606 denotes a check box capable of inputting a setting for not executing the OCR process on the selected object. When this is checked, a setting for not executing the OCR process on the selected object is input.

608は、オブジェクトの配置位置の基準位置としての、テンプレートの最も左側からの距離を入力できるテキストボックスであり、609は、テンプレートの最も上側からの距離を入力できるテキストボックスである。   Reference numeral 608 denotes a text box that can input a distance from the leftmost side of the template as a reference position of the arrangement position of the object. Reference numeral 609 denotes a text box that can input a distance from the uppermost side of the template.

611は、オブジェクトの実線や点線などの線種を選択することができるプルダウンである。また、612は、オブジェクトの線の幅を選択入力することができるプルダウンである。また、613は、オブジェクトの線の色を選択入力することができるプルダウンである。   Reference numeral 611 denotes a pull-down menu that can select a line type such as a solid line or a dotted line of the object. Reference numeral 612 denotes a pull-down menu for selecting and inputting the line width of the object. Reference numeral 613 denotes a pull-down menu that can select and input the line color of the object.

615は、オブジェクトの文字のフォント(ゴシック体や明朝体など)を入力することができるプルダウンである。また、616は、オブジェクトの文字のスタイル(細字、標準、太文字など)を入力することができるプルダウンである。また、617は、オブジェクトの文字のサイズ(ポイント)を入力することができるプルダウンである。また、618は、オブジェクトの文字の色を入力することができるプルダウンである。   Reference numeral 615 denotes a pull-down menu that can input a font of an object character (such as Gothic or Mincho). Reference numeral 616 denotes a pull-down menu that can input the character style of the object (thin characters, standard characters, bold characters, etc.). Reference numeral 617 denotes a pull-down menu in which the character size (points) of the object can be input. Reference numeral 618 denotes a pull-down menu capable of inputting the character color of the object.

619は、オブジェクトのサイズ(大きさ)を入力することができるテキストボックスである。ここでは、オブジェクトの幅と高さを入力することが可能である。   Reference numeral 619 denotes a text box in which an object size (size) can be input. Here, it is possible to input the width and height of the object.

621は、オブジェクトの文字組みの方向を選択入力できるプルダウンである。また、622は、オブジェクトの文字の出力サイズ(全角、半角など)を選択入力できるプルダウンである。624、625は、それぞれ文字枠の行数、桁数を選択入力できるプルダウンである。   Reference numeral 621 denotes a pull-down menu that can selectively input the direction of the character set of the object. Reference numeral 622 denotes a pull-down menu that can selectively input the output size (full-width, half-width, etc.) of the character of the object. Reference numerals 624 and 625 are pull-downs for selecting and inputting the number of lines and the number of digits of the character frame, respectively.

プロパティ画面600(図6)を介して、オブジェクトの定義を示すデータの入力がなされ、OKボタンがユーザにより押下されると、情報処理装置101のCPU201は、入力されたオブジェクトの定義を示すデータを図8に示すオブジェクト定義テーブルに記憶する。ユーザは、各オブジェクトに対してこの操作を行う。   When data indicating the definition of the object is input via the property screen 600 (FIG. 6) and the OK button is pressed by the user, the CPU 201 of the information processing apparatus 101 stores the data indicating the definition of the input object. This is stored in the object definition table shown in FIG. The user performs this operation on each object.

以上の通り、ステップS1402では、情報処理装置101のCPU201は、上述した表示されたプロパティ画面600(図6)から、ユーザの指示により、各オブジェクトに対して、オブジェクトの定義を示すデータの入力を受け付ける。そして、入力されたデータをオブジェクト定義テーブル(図8)に記憶させる。 図8は、オブジェクト(フィールド)の定義(属性)(フィールドの属性情報)するデータが記憶されるオブジェクト定義テーブルの一例である。   As described above, in step S1402, the CPU 201 of the information processing apparatus 101 inputs data indicating the definition of an object for each object from the displayed property screen 600 (FIG. 6) according to a user instruction. Accept. Then, the input data is stored in the object definition table (FIG. 8). FIG. 8 is an example of an object definition table in which data for defining (attributes) (field attribute information) of objects (fields) is stored.

図8に示すオブジェクト定義テーブルは、「オブジェクト番号」、「種別」、「種別内連番」、「名称」、「OCR利用区分」、「左」、「上」、「幅」、「高さ」、「行数」、「桁数」、「線種」、「線幅」、「線色」、「フォント」、「スタイル」、「サイズ」、「色」、「組方向」、「文字出力サイズ」の項目から構成される。   The object definition table shown in FIG. 8 includes “object number”, “type”, “sequential number within type”, “name”, “OCR usage classification”, “left”, “top”, “width”, “height”. ”,“ Number of lines ”,“ Number of digits ”,“ Line type ”,“ Line width ”,“ Line color ”,“ Font ”,“ Style ”,“ Size ”,“ Color ”,“ Composition direction ”,“ Text ” It consists of the item “Output Size”.

「オブジェクト番号」はオブジェクトを識別する番号であり、図4の符号に括弧で示す番号に対応している。すなわち、オブジェクト番号<1>は、図4の402の枠を示している。また、「種別」は、オブジェクトの種別(種類)を示す情報である。また、「種別内連番」は、同一種別のオブジェクトを識別するために付与される連続した番号である。また、「名称」は、オブジェクトの名称である。また、「OCR利用区分」は、OCRを利用するか否かを示す情報が記憶される。OCRをするオブジェクトの場合は“する”が記憶され、OCRをしないオブジェクトの場合は“しない”が記憶される。また、「左」には、オブジェクトの配置位置の基準位置を特定する、テンプレートの最左からの位置を示す情報が記憶される。また、「上」には、オブジェクトの配置位置の基準位置を特定する、テンプレートの最上からの位置を示す情報が記憶される。また、「幅」には、オブジェクトの幅が記憶される。また、「高さ」には、オブジェクトの高さが記憶される。また、「行数」は、はしご枠などの文字の入力領域の行数である。また、「桁数」は、はしご枠などの文字の入力領域の桁数である。また、「線種」は、実線や点線などの情報である。また、「線幅」は、線の幅である。また、「線色」は、線の色である。また、「フォント」は、文字のフォントである。また、「スタイル」は、文字のスタイルである。また、「サイズ」は、文字のサイズである。また、「色」は、文字の色である。また、「組方向」は、文字(列)の組方向である。また、「文字出力サイズ」は、全角・半角などの文字出力サイズである。   “Object number” is a number for identifying an object, and corresponds to the number indicated in parentheses in the reference numerals of FIG. That is, the object number <1> indicates a frame 402 in FIG. “Type” is information indicating the type (type) of the object. The “in-type serial number” is a consecutive number assigned to identify objects of the same type. “Name” is the name of the object. The “OCR usage classification” stores information indicating whether or not to use OCR. In the case of an object that performs OCR, “Yes” is stored, and in the case of an object that does not perform OCR, “No” is stored. Further, “left” stores information indicating the reference position of the object arrangement position and indicating the position from the leftmost side of the template. Further, “upper” stores information indicating the position from the top of the template that specifies the reference position of the object arrangement position. Further, the “width” stores the width of the object. In “height”, the height of the object is stored. The “number of lines” is the number of lines in a character input area such as a ladder frame. “Number of digits” is the number of digits in a character input area such as a ladder frame. The “line type” is information such as a solid line or a dotted line. The “line width” is a line width. The “line color” is a line color. The “font” is a font of characters. The “style” is a character style. “Size” is the size of a character. The “color” is the color of the character. The “set direction” is a set direction of characters (rows). The “character output size” is a character output size such as full-width or half-width.

次に、情報処理装置101のCPU201は、ステップS1401で入力され記憶されたフォーム定義テーブル(図7)の「OCR利用」が“する”なのか否かを判定する(ステップS1403)。   Next, the CPU 201 of the information processing apparatus 101 determines whether or not “use OCR” in the form definition table (FIG. 7) input and stored in step S1401 is “Yes” (step S1403).

すなわち、フォームのプロパティ画面500の519がチェックされたか否かを判定する。519がチェックされた場合(フォーム定義テーブル(図7)の「OCR利用」が“する”の場合)(ステップS1403:YES)、記憶部に記憶されたオブジェクト定義テーブルから、OCR処理の実行に用いるOCR定義情報を生成する(ステップS1404)。   That is, it is determined whether or not 519 of the form property screen 500 is checked. If 519 is checked (when “Use OCR” in the form definition table (FIG. 7) is “Yes”) (step S1403: YES), the object definition table stored in the storage unit is used to execute the OCR process. OCR definition information is generated (step S1404).

すなわち、各オブジェクト(フィールド領域)の属性情報から、帳票フォームデータの印刷用紙の当該各フィールド領域のOCR処理(データ認識処理)で用いるデータ認識情報(OCR定義情報)を生成する(データ認識情報生成手段)。   That is, from the attribute information of each object (field area), data recognition information (OCR definition information) used in the OCR process (data recognition process) of each field area of the printing paper of the form form data is generated (data recognition information generation) means).

一方、519がチェックされず、520がチェックされた場合(フォーム定義テーブル(図7)の「OCR利用」が“しない”の場合)(ステップS1403:NO)は、OCR定義情報を生成することなく処理を終了する。 On the other hand, when 519 is not checked and 520 is checked (when “Use OCR” in the form definition table (FIG. 7) is “No”) (step S1403: NO), OCR definition information is not generated. End the process.

ステップS1404の詳細処理については、図15を用いて後述する。   Detailed processing in step S1404 will be described later with reference to FIG.

次に、情報処理装置101のCPU201は、ステップS1404でOCR定義情報を生成すると、予め記憶されたフォームのOCR定義テーブル(図9)のスキャン時解像度(dpi)や印刷の向きなどを取得し、例えば以下の式を用いてイメージデータのサイズ(左上のX座標:0,左上のY座標:0,右下のX座標:以下の式で算出される値,右下のY座標:以下の式で算出される値)を決定し、テンプレートの下書きとなるイメージデータを生成する(ステップS1405)。ここで生成されるイメージデータをOCR定義情報の下書きとすることで、テンプレート内のどの領域を、OCR処理を行う領域とするかを特定することができる。   Next, when generating the OCR definition information in step S1404, the CPU 201 of the information processing apparatus 101 acquires the scanning resolution (dpi), the printing orientation, and the like of the form OCR definition table (FIG. 9) stored in advance. For example, using the following formula, the size of the image data (upper left X coordinate: 0, upper left Y coordinate: 0, lower right X coordinate: value calculated by the following formula, lower right Y coordinate: The image data to be a draft of the template is generated (step S1405). By using the image data generated here as a draft of the OCR definition information, it is possible to specify which area in the template is to be the OCR process area.

図12は、このようにして特定された、フォーム(テンプレート)のOCR処理対象の領域を示す表示画面1200の一例を示す図である。図12は、出力データ(図11)を出力領域に出力した帳票に、OCR処理対象の領域を表示した画面である。図12では、OCR処理対象の領域として、1202、1203、1204、1205、1206、1207、1208が定義されている。なお、このOCR処理対象の領域のサイズは、ユーザの指示により補正することができる。   FIG. 12 is a diagram showing an example of the display screen 1200 showing the OCR processing target area of the form (template) specified as described above. FIG. 12 is a screen in which an OCR processing target area is displayed on a form in which output data (FIG. 11) is output to the output area. In FIG. 12, 1202, 1203, 1204, 1205, 1206, 1207, and 1208 are defined as OCR processing target areas. Note that the size of the OCR processing target area can be corrected according to a user instruction.

(式)・右下のX座標=サイズ(幅)(mm)×スキャン時の解像度(dpi)÷25.4(mm)・右下のY座標=サイズ(高さ)(mm)×スキャン時の解像度(dpi)÷25.4(mm)   (Expression)-Lower right X coordinate = Size (width) (mm) x Scanning resolution (dpi) ÷ 25.4 (mm)-Lower right Y coordinate = Size (height) (mm) x Scanning Resolution (dpi) ÷ 25.4 (mm)

例えば、印刷の向きが縦のA4の用紙(幅が210mmで高さが297mm)のスキャン時の解像度が300dpiである場合、上記式に、これらの値を代入すると、右下のX座標は、210(mm)×300(dpi)÷25.4(mm)=2480.349・・・となり、約2480の値となる。また、右下のY座標も、これと同様に代入すると、297(mm)×300(dpi)÷25.4(mm)=3507.87・・・となり、約3507の値となる。   For example, if the printing resolution is 300 dpi when scanning a vertical A4 sheet (width 210 mm and height 297 mm), and substituting these values into the above equation, the lower right X coordinate is 210 (mm) × 300 (dpi) ÷ 25.4 (mm) = 24800.349... And a value of about 2480. Also, if the lower right Y coordinate is substituted in the same manner, 297 (mm) × 300 (dpi) /25.4 (mm) = 3507.87..., Which is about 3507.

このようにして、ここで生成されるイメージデータのサイズを決定し、そのサイズのイメージデータ(画像)を生成する(ステップS1405)。   In this way, the size of the image data generated here is determined, and image data (image) of that size is generated (step S1405).

次に、情報処理装置101のCPU201は、ステップS1404で生成したOCR定義情報を、OCRソフトウェアが読み込む記憶部に記憶することにより、当該OCR定義情報をOCRソフトウェアに設定する(ステップS1406)。   Next, the CPU 201 of the information processing apparatus 101 sets the OCR definition information in the OCR software by storing the OCR definition information generated in step S1404 in a storage unit read by the OCR software (step S1406).

ここで、図9について説明する。 図9は、帳票フォームデータ全体のOCR定義テーブルの一例を示す図である。   Here, FIG. 9 will be described. FIG. 9 is a diagram showing an example of an OCR definition table for the entire form data.

フォームのOCR定義テーブルは、「帳票フォーム名」、「OCR利用」、「印刷時解像度」、「スキャン時解像度」、「イメージファイル名」、「クリアエリア初期値」とから構成されている。   The form OCR definition table includes “form form name”, “OCR use”, “printing resolution”, “scanning resolution”, “image file name”, and “clear area initial value”.

「帳票フォーム名」は、フォーム定義テーブル(図7)の「帳票フォーム名」に対応したデータであり、OCR定義情報生成部304でコピーされることにより記憶(生成)される。   The “form form name” is data corresponding to the “form form name” in the form definition table (FIG. 7), and is stored (generated) by being copied by the OCR definition information generating unit 304.

「OCR利用」は、フォーム定義テーブル(図7)の「OCR利用」に対応したデータであり、OCR定義情報生成部304でコピーされることにより記憶(生成)される。   “OCR use” is data corresponding to “OCR use” in the form definition table (FIG. 7), and is stored (generated) by being copied by the OCR definition information generating unit 304.

「印刷時解像度」は、ユーザの指示に応じて予め記憶される値であり、印刷時にどの解像度で印刷するかを規定したものである。したがって、フォームエディタソフト301で生成されたフォームデータはここで設定された解像度で印刷指示される。   “Resolution at printing” is a value stored in advance in response to a user instruction, and defines a resolution at which printing is performed at the time of printing. Accordingly, the form data generated by the form editor software 301 is instructed to be printed at the resolution set here.

「スキャン時解像度」は、ユーザの指示に応じて予め記憶される値であり、スキャン時にどの解像度で読み取るかを規定したものである。したがって、フォームエディタソフト301で生成されたフォームデータはここで設定された解像度で読み取られる。   The “scanning resolution” is a value stored in advance according to a user instruction, and defines which resolution is read at the time of scanning. Therefore, the form data generated by the form editor software 301 is read at the resolution set here.

「イメージファイル名」は、ステップS1405で生成されるイメージデータのファイル名であり、イメージデータが生成される際に、フォーム定義テーブル(図7)の帳票フォーム名をコピーすることで生成される。   “Image file name” is the file name of the image data generated in step S1405, and is generated by copying the form name of the form definition table (FIG. 7) when the image data is generated.

「クリアエリア初期値」は、ユーザの指示に応じて予め記憶される値であり、図23に示すように、オブジェクトの配置領域2301からOCR処理を行う対象領域2302までの幅の長さ2303である。   The “clear area initial value” is a value stored in advance according to a user instruction. As shown in FIG. 23, the “clear area initial value” is a width 2303 from the object arrangement area 2301 to the target area 2302 where the OCR processing is performed. is there.

図23は、オブジェクトの配置領域2301と、OCR処理を行う領域(OCR処理の対象領域2302)と、クリアエリア2303の関係を説明するための概念図である。
<図15の説明>
FIG. 23 is a conceptual diagram for explaining the relationship among an object placement area 2301, an OCR process area (OCR process target area 2302), and a clear area 2303.
<Description of FIG. 15>

次に、図15のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図15は、図14に示すステップS1404の詳細処理の一例を示すフローチャートであり、図3に示すフォームエディタソフトウェア301による処理に対応する。すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S1501〜S1511は各ステップを示す。   FIG. 15 is a flowchart showing an example of detailed processing in step S1404 shown in FIG. 14, and corresponds to the processing by the form editor software 301 shown in FIG. That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S1501 to S1511 indicate steps.

情報処理装置101のCPU201は、後述するステップS1502からステップS1511までの処理を、オブジェクト定義テーブル(図8)に記憶されている全てのオブジェクト定義情報に対して繰り返し実行する。ここで、オブジェクト定義情報(フォームのフィールドの属性情報)とは、図8に示すレコードの情報を示す。   The CPU 201 of the information processing apparatus 101 repeatedly executes processing from step S1502 to step S1511 described later for all object definition information stored in the object definition table (FIG. 8). Here, the object definition information (form field attribute information) indicates the record information shown in FIG.

情報処理装置101のCPU201は、まず、オブジェクト定義テーブル(図8)のオブジェクト定義情報を読み込む(ステップS1502)。例えば、ここでは、オブジェクト番号が<1>のオブジェクト定義情報を読み込む。   First, the CPU 201 of the information processing apparatus 101 reads the object definition information in the object definition table (FIG. 8) (step S1502). For example, here, object definition information whose object number is <1> is read.

そして、情報処理装置101のCPU201は、「OCR利用区分」が“する”と定義されているか否かを判定する(ステップS1503)。すなわち、オブジェクトのプロパティ画面(図6)の605がチェックされたのか、それとも606がチェックされたのかを判定する。   Then, the CPU 201 of the information processing apparatus 101 determines whether or not the “OCR usage classification” is defined as “Yes” (step S1503). That is, it is determined whether 605 in the object property screen (FIG. 6) is checked or 606 is checked.

ここで、オブジェクト定義テーブル(図8)には、605がチェックされた場合は「OCR利用区分」が“する”と記憶され、606がチェックされた場合は「OCR利用区分」が“しない”と記憶されている。   Here, in the object definition table (FIG. 8), when 605 is checked, “OCR usage category” is stored as “Yes”, and when 606 is checked, “OCR usage category” is set as “No”. It is remembered.

情報処理装置101のCPU201は、ステップS1503で「OCR利用区分」が“する”と定義されていると判定した場合は(ステップS1503:YES)、処理をステップS1504に移行し、一方、「OCR利用区分」が“しない”と定義されていると判定した場合は(ステップS1503:NO)、処理対象をオブジェクト定義テーブルの次のレコードにして、ステップS1502に戻る。またこのとき、全てのオブジェクト定義情報に対して処理を実行し、処理対象がなくなった場合は処理を終了する。   If the CPU 201 of the information processing apparatus 101 determines in step S1503 that the “OCR usage classification” is defined as “Yes” (step S1503: YES), the process proceeds to step S1504. If it is determined that “classification” is defined as “no” (step S1503: NO), the processing target is set to the next record in the object definition table, and the process returns to step S1502. At this time, the process is executed for all the object definition information, and the process ends when there is no processing target.

次に、情報処理装置101のCPU201は、「OCR利用区分」が“する”と定義されていると判定した場合は(ステップS1503:YES)、オブジェクト定義情報に含まれるオブジェクトの種別が、「文字」又は「図形(はしご枠)」又は「出力領域(文字)」であるか否かを判定する(ステップS1504)。   Next, when the CPU 201 of the information processing apparatus 101 determines that the “OCR usage classification” is defined as “Yes” (step S1503: YES), the type of the object included in the object definition information is “character”. ”Or“ graphic (ladder frame) ”or“ output area (character) ”(step S1504).

そして、情報処理装置101のCPU201は、オブジェクトの種別が、「文字」又は「図形(はしご枠)」又は「出力領域(文字)」であると判定した場合は(ステップS1504:YES)、ステップS1508に処理を移行して文字認識設定処理(図16)を実行する。一方、オブジェクトの種別が、「文字」又は「図形(はしご枠)」又は「出力領域(文字)」ではないと判定した場合は(ステップS1504:NO)、オブジェクトの種別が「図形(チェックボックス)」であるか否かを判定する(ステップS1505)。   If the CPU 201 of the information processing apparatus 101 determines that the object type is “character”, “figure (ladder frame)”, or “output area (character)” (step S1504: YES), step S1508 is performed. The process is shifted to and the character recognition setting process (FIG. 16) is executed. On the other hand, when it is determined that the object type is not “character”, “graphic (ladder frame)”, or “output area (character)” (step S1504: NO), the object type is “graphic (check box)”. Is determined (step S1505).

そして、情報処理装置101のCPU201は、オブジェクトの種別が「図形(チェックボックス)」であると判定した場合は(ステップS1505:YES)、処理をステップS1509に移行してチェックボックス認識設定処理(図19)を実行する。一方、オブジェクトの種別が、「図形(チェックボックス)」ではないと判定した場合は(ステップS1505:NO)、オブジェクトの種別が「文字(丸囲み)」であるか否かを判定する(ステップS1506)。   If the CPU 201 of the information processing apparatus 101 determines that the object type is “figure (check box)” (step S1505: YES), the process proceeds to step S1509 and the check box recognition setting process (FIG. 19) is executed. On the other hand, if it is determined that the object type is not “figure (check box)” (step S1505: NO), it is determined whether the object type is “character (circled)” (step S1506). ).

そして、情報処理装置101のCPU201は、オブジェクトの種別が「文字(丸囲み)」であると判定した場合は(ステップS1506:YES)、処理をステップS1510に移行して、丸囲み数字認識設定処理(図20)を実行する。一方、オブジェクトの種別が「文字(丸囲み)」ではないと判定した場合は(ステップS1506:NO)、オブジェクトの種別が「出力領域(QRコード)」であるか否かを判定する(ステップS1507)。   If the CPU 201 of the information processing apparatus 101 determines that the object type is “character (circled)” (step S1506: YES), the process proceeds to step S1510, and the circled number recognition setting process is performed. (FIG. 20) is executed. On the other hand, if it is determined that the object type is not “character (circled)” (step S1506: NO), it is determined whether the object type is “output area (QR code)” (step S1507). ).

そして、情報処理装置101のCPU201は、オブジェクトの種別が「出力領域(QRコード)」であると判定した場合は(ステップS1507:YES)、処理をステップS1511に移行してQRコード認識設定処理(図21)を実行する。   If the CPU 201 of the information processing apparatus 101 determines that the object type is “output area (QR code)” (step S1507: YES), the process proceeds to step S1511 and the QR code recognition setting process ( 21) is executed.

情報処理装置101のCPU201は、ステップS1507でオブジェクトの種別が「出力領域(QRコード)」ではないと判定された場合、及び、ステップS1508、ステップS1509、ステップS1510、ステップS1511の処理を実行後は、ステップS1503でNOと判定した場合と同様に、処理対象をオブジェクト定義テーブルの次のレコードにして、ステップS1502に戻る。またこのとき、全てのオブジェクト定義情報に対して処理を実行し、処理対象がなくなった場合は処理を終了する。   When the CPU 201 of the information processing apparatus 101 determines in step S1507 that the object type is not “output area (QR code)”, and after executing the processing of step S1508, step S1509, step S1510, and step S1511, As in the case where NO is determined in step S1503, the processing target is set to the next record in the object definition table, and the process returns to step S1502. At this time, the process is executed for all the object definition information, and the process ends when there is no processing target.

このようにして、オブジェクト定義テーブルに記憶されている全てのオブジェクト定義情報に対して、ステップS1502からステップS1511までの処理を実行する。
<図16の説明>
In this way, the processing from step S1502 to step S1511 is executed for all object definition information stored in the object definition table.
<Description of FIG. 16>

次に、図16のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図16は、図15に示すステップS1508の詳細処理の一例を示すフローチャートであり、図3に示すフォームエディタソフトウェア301による処理に対応する。すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S1601〜S1615は各ステップを示す。   FIG. 16 is a flowchart showing an example of detailed processing in step S1508 shown in FIG. 15, and corresponds to the processing by the form editor software 301 shown in FIG. That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S1601 to S1615 indicate the respective steps.

情報処理装置101のCPU201は、まず、認識する種別(種類)として、文字を認識する文字認識処理を実行することを示すデータ(ここでは“OCR”)を生成する(ステップS1601)。ここで生成されたデータは、図10に示すオブジェクトのOCR定義テーブル(OCRテンプレート)に記憶される。ここで、OCRテンプレートとは、図10に示す各オブジェクトのOCR定義情報の集合である。   First, the CPU 201 of the information processing apparatus 101 generates data (here, “OCR”) indicating that a character recognition process for recognizing a character is executed as a type (type) to be recognized (step S1601). The data generated here is stored in the OCR definition table (OCR template) of the object shown in FIG. Here, the OCR template is a set of OCR definition information of each object shown in FIG.

図10は、帳票フォームデータ内のフィールド領域に書き込まれるオブジェクトのOCR定義テーブルの一例を示す図である。OCR定義テーブルには、OCRするために用いられる各種データが記憶される。   FIG. 10 is a diagram showing an example of an OCR definition table of objects written in the field area in the form form data. Various data used for OCR is stored in the OCR definition table.

図10の示すオブジェクトのOCR定義テーブルは、「No」、「領域名(名称)」、「オブジェクト番号」、「認識種別」、オブジェクトの配置領域(認識領域)の左上座標のX座標が記憶される「X」、オブジェクトの配置領域(認識領域)の左上座標のY座標が記憶される「Y」、オブジェクトの配置領域(認識領域)の右下座標のX座標が記憶される「X」、オブジェクトの配置領域(認識領域)の右下座標のY座標が記憶される「Y」、「使用辞書」、「組方向」、「文字枠」、「桁数」、「行数」、「文字出力サイズ」などから構成される。   The object OCR definition table shown in FIG. 10 stores “No”, “area name (name)”, “object number”, “recognition type”, and the X coordinate of the upper left coordinate of the object placement area (recognition area). “X”, “Y” in which the Y coordinate of the upper left coordinate of the object arrangement area (recognition area) is stored, “X” in which the X coordinate of the lower right coordinate of the object arrangement area (recognition area) is stored, "Y", "Use dictionary", "Composition direction", "Character frame", "Number of digits", "Number of lines", "Character" where the Y coordinate of the lower right coordinates of the object placement area (recognition area) "Output size" etc.

「No」は、レコードを識別するための番号であり、このレコード内の一部又は全ての情報をOCR定義情報という。また、「領域名(名称)」は、OCRを行う対象のオブジェクト(OCR対象オブジェクト)の名称(領域名)である。また、「オブジェクト番号」は、図8のオブジェクト定義テーブルのオブジェクト番号に対応した番号である。また、「認識種別」は、OCRソフトウェアプログラム318が行う認識処理の種別(種類)である。また、「使用辞書」は、OCRソフトウェアプログラム318が行う認識処理の際に用いる辞書を示している。また、「組方向」は、文字(列)が縦方向か横方向かを示している。また、「文字枠」は、はしご枠かなどの文字枠がどのような枠であるかを示している。また、「桁数」は、文字枠の桁数を示している。また、「行数」は、文字枠の行数を示している。また、「文字出力サイズ」は、半角か全角かを示している。   “No” is a number for identifying a record, and part or all of the information in this record is referred to as OCR definition information. The “area name (name)” is the name (area name) of an object (OCR target object) to be subjected to OCR. The “object number” is a number corresponding to the object number in the object definition table of FIG. The “recognition type” is a type (type) of recognition processing performed by the OCR software program 318. “Use dictionary” indicates a dictionary used in the recognition process performed by the OCR software program 318. The “set direction” indicates whether the character (row) is in the vertical direction or the horizontal direction. “Character frame” indicates what kind of frame a character frame such as a ladder frame is. “Number of digits” indicates the number of digits in the character frame. “Number of lines” indicates the number of lines in the character frame. “Character output size” indicates half-width or full-width.

次に、情報処理装置101のCPU201は、共通情報生成処理を実行することにより(ステップS1602)、オブジェクト定義情報から、オブジェクトのOCR定義情報テーブルのOCR対象オブジェクト(オブジェクトの領域名など)と認識領域(Pixel)(オブジェクトの配置位置(座標))とを生成する。そして、ここで生成されたOCR対象オブジェクト(オブジェクトの領域名など)と認識領域(Pixel)(オブジェクトの配置位置(座標))は、オブジェクトのOCR定義テーブルに記憶される。ステップS1602の詳細処理は、図18を用いて後で説明する。   Next, the CPU 201 of the information processing apparatus 101 executes common information generation processing (step S1602), and from the object definition information, the OCR target object (such as the object area name) in the object OCR definition information table and the recognition area. (Pixel) (object placement position (coordinates)) is generated. The generated OCR target object (object area name, etc.) and recognition area (Pixel) (object placement position (coordinates)) are stored in the object OCR definition table. Detailed processing in step S1602 will be described later with reference to FIG.

次に、情報処理装置101のCPU201は、共通情報生成処理を実行した後、オブジェクト定義情報の「フォント」にフォント名が記憶されているかを判定する(ステップS1603)。そして、フォント名が記憶されていると判定した場合は(ステップS1603:YES)、当該フォントに対応する辞書を辞書テーブル(図17)の中から検索する(ステップS1604)。   Next, after executing the common information generation process, the CPU 201 of the information processing apparatus 101 determines whether the font name is stored in “font” of the object definition information (step S1603). If it is determined that the font name is stored (step S1603: YES), a dictionary corresponding to the font is searched from the dictionary table (FIG. 17) (step S1604).

図17は、辞書テーブルの一例である。図17は、文字のフォントに対して、OCRするのに好適な辞書が記憶されていることを示している。なお、辞書テーブルは、記憶部に記憶されている。   FIG. 17 is an example of a dictionary table. FIG. 17 shows that a dictionary suitable for OCR is stored for character fonts. The dictionary table is stored in the storage unit.

次に、情報処理装置101のCPU201は、ステップS1604でフォントに対応する辞書が検索されたか否かを判定する(ステップS1605)。そして、フォントに対応する辞書が検索されたと判定された場合は(ステップS1605:YES)、検索された辞書を使用する辞書と設定するために、オブジェクトのOCR定義テーブル(図10)の「使用辞書」に検索された辞書名を記憶(生成)する。一方、フォントに対応する辞書が検索されなかったと判定された場合は(ステップS1605:NO)、(予め設定された)既定の辞書を使用する辞書として設定するために、オブジェクトのOCR定義テーブル(図10)の「使用辞書」に、該既定の辞書の辞書名を記憶(生成)する(ステップS1607)。   Next, the CPU 201 of the information processing apparatus 101 determines whether or not a dictionary corresponding to the font has been searched in step S1604 (step S1605). If it is determined that a dictionary corresponding to the font has been searched (step S1605: YES), “use dictionary” in the OCR definition table (FIG. 10) of the object is used to set the dictionary to use the searched dictionary. ”Is stored (generated). On the other hand, if it is determined that the dictionary corresponding to the font has not been searched (step S1605: NO), the object's OCR definition table (FIG. The dictionary name of the default dictionary is stored (generated) in the “use dictionary” of 10) (step S1607).

ステップS1603で、オブジェクト定義情報の「フォント」にフォント名が記憶されていないと判定された場合、つまり、フォントの情報が無い場合も、ステップS1607の処理を実行する。すなわち、オブジェクトのOCR定義テーブル(図10)の「使用辞書」に、既定の辞書の辞書名を記憶(生成)する。   If it is determined in step S1603 that no font name is stored in the “font” of the object definition information, that is, if there is no font information, the process of step S1607 is executed. That is, the dictionary name of the default dictionary is stored (generated) in the “use dictionary” of the object OCR definition table (FIG. 10).

次に、情報処理装置101のCPU201は、ステップS1607又は、ステップS1606の処理を実行した後、現在、処理対象のオブジェクト定義テーブル(図8)の1レコード(オブジェクト定義情報)の「組方向」と「文字出力サイズ」とをオブジェクトのOCR定義テーブル(図10)の「組方向」と「文字出力サイズ」にそれぞれ記憶(生成)させる。   Next, after executing the processing of step S1607 or step S1606, the CPU 201 of the information processing apparatus 101 indicates “set direction” of one record (object definition information) of the object definition table (FIG. 8) that is currently processed. “Character output size” is stored (generated) in “Composition direction” and “Character output size” of the OCR definition table (FIG. 10) of the object.

そして、情報処理装置101のCPU201は、現在、処理対象のオブジェクト定義情報の「枠」に数値が設定されているか否かを判定することにより、文字枠のオブジェクトであるか否かを判定する(ステップS1609)。そして、情報処理装置101のCPU201は、文字枠のオブジェクトであると判定された場合は(ステップS1609:YES)、文字枠が複数に分割されているか否かを判定する(ステップS1610)。すなわち、処理対象のオブジェクト定義情報の「枠」に設定された値(少なくとも行数、桁数のいずれか1つの値)が2以上の数値であるか否かを判定することにより、「はしご枠」であるのか、それとも「フィールド枠」であるのかを判定する(ステップS1610)。   Then, the CPU 201 of the information processing apparatus 101 determines whether or not it is a character frame object by determining whether or not a numerical value is currently set in the “frame” of the object definition information to be processed ( Step S1609). If it is determined that the object is a character frame object (step S1609: YES), the CPU 201 of the information processing apparatus 101 determines whether the character frame is divided into a plurality of pieces (step S1610). That is, by determining whether or not the value (at least one of the number of lines and the number of digits) set in the “frame” of the object definition information to be processed is a numerical value of 2 or more, "Or" field frame "is determined (step S1610).

そして、「はしご枠」であると判定された場合(「枠」に設定された、少なくとも行数、桁数のいずれかの値が2以上の数値であると判定された場合)は(ステップS1610:YES)、オブジェクトのOCR定義テーブル(図10)の「文字枠」に、はしご枠であることを示すデータとして“はしご”を記憶(生成)する(ステップS1611)。一方、「フィールド枠」であると判定された場合(「枠」に設定された行数、桁数のいずれの値も1の数値であると判定された場合)は(ステップS1610:NO)、オブジェクトのOCR定義テーブル(図10)の「文字枠」に、フィールド枠であることを示すデータとして“フィールド”を記憶(生成)する(ステップS1613)。   Then, when it is determined that the frame is a “ladder frame” (when it is determined that at least one of the number of lines and the number of digits set in the “frame” is a numerical value of 2 or more) (step S1610). : YES), “ladder” is stored (generated) as data indicating a ladder frame in the “character frame” of the object OCR definition table (FIG. 10) (step S1611). On the other hand, when it is determined that it is a “field frame” (when it is determined that both the number of lines and the number of digits set in the “frame” are numerical values of 1) (step S1610: NO), “Field” is stored (generated) in the “character frame” of the object OCR definition table (FIG. 10) as data indicating a field frame (step S1613).

また、ステップS1609において、現在、処理対象のオブジェクト定義情報の「枠」に数値が設定されていないと判定(文字枠のオブジェクトではないと判定)された場合(ステップS1609:NO)、オブジェクトのOCR定義テーブル(図10)の「文字枠」に、枠がないことを示すデータとして“―”を記憶(生成)する(ステップS1604)。   If it is determined in step S1609 that a numerical value is not currently set in the “frame” of the object definition information to be processed (determined that the object is not a character frame object) (step S1609: NO), the object OCR “-” Is stored (generated) as data indicating that there is no frame in the “character frame” of the definition table (FIG. 10) (step S1604).

次に、情報処理装置101のCPU201は、オブジェクトの定義テーブル(図8)の「枠」の“行数”、“桁数”の値を、文字認識すべき対象の文字数の最大値として、オブジェクトのOCR定義テーブル(図10)の「行数」、「桁数」にそれぞれ記憶(生成)する(ステップS1612)。   Next, the CPU 201 of the information processing apparatus 101 sets the values of “number of lines” and “number of digits” of the “frame” in the object definition table (FIG. 8) as the maximum number of characters to be recognized as the object. Are stored (generated) in “number of rows” and “number of digits” in the OCR definition table (FIG. 10) (step S1612).

また、情報処理装置101のCPU201は、ステップS1604またはステップS1613の処理を実行した後、OCRソフトウェアが、文字認識すべき対象の文字数を自動的に認識させる設定情報として、“0(ゼロ)”を、オブジェクトのOCR定義テーブル(図10)の「行数」、「桁数」に記憶(生成)する(ステップS1615)。   Further, after executing the processing of step S1604 or step S1613, the CPU 201 of the information processing apparatus 101 sets “0 (zero)” as setting information that causes the OCR software to automatically recognize the number of characters to be recognized. Then, it is stored (generated) in “number of rows” and “number of digits” in the OCR definition table of the object (FIG. 10) (step S1615).

以上、ステップS1615又はステップS1612の処理を実行すると、ステップS1508に示す文字認識設定処理は終了し、ステップS1502で次の処理対象のオブジェクトの定義情報を読み込む。
<図18の説明>
As described above, when the process of step S1615 or step S1612 is executed, the character recognition setting process shown in step S1508 ends, and the definition information of the next object to be processed is read in step S1502.
<Description of FIG. 18>

次に、図18のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図18は、図16のステップS1602、図19のステップS1902、図20のステップS2002、図21のステップS2102の処理の詳細処理の一例を示すフローチャートである。なお、図18は、図3に示すフォームエディタソフトウェア301による処理に対応する。   FIG. 18 is a flowchart showing an example of detailed processing of step S1602 in FIG. 16, step S1902 in FIG. 19, step S2002 in FIG. 20, and step S2102 in FIG. 18 corresponds to the processing by the form editor software 301 shown in FIG.

すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S1801〜S1804は各ステップを示す。   That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S1801 to S1804 indicate each step.

情報処理装置101のCPU201は、OCR対象オブジェクトの名称(領域名)を生成する(ステップS1801)。   The CPU 201 of the information processing apparatus 101 generates a name (area name) of the OCR target object (step S1801).

具体的には、オブジェクト定義テーブル(図8)の「名称」にオブジェクトの名称が入力されている場合は、その名称をOCR対象オブジェクトの名称(領域名)として、オブジェクトのOCR定義テーブル(図10)の「領域名(名称)」に記憶(生成)する。また、オブジェクト定義テーブル(図8)の「名称」にオブジェクトの名称が入力されていない場合は、オブジェクトの「種別」と「種別内連番」からOCR対象オブジェクトの名称(領域名)を生成して、オブジェクトのOCR定義テーブル(図10)の「領域名(名称)」に記憶(生成)する。   Specifically, when the name of an object is input in “Name” of the object definition table (FIG. 8), the name is used as the name of the OCR target object (area name) (FIG. 10). ) In (area name (name)). If the name of the object is not entered in “Name” of the object definition table (FIG. 8), the name (area name) of the OCR target object is generated from the “type” of the object and the “sequential number within type”. Then, it is stored (generated) in “area name (name)” of the object OCR definition table (FIG. 10).

例えば、オブジェクト番号<4>のオブジェクトは、チェックボックスなので、領域名(名称)にチェックボックスを示す「CHK」と、「種別内連番」の「001」とを繋げて「CHK001」というOCR対象オブジェクトの名称(領域名)を生成し、オブジェクトのOCR定義テーブル(図10)の「領域名(名称)」に記憶している。   For example, since the object with the object number <4> is a check box, the area name (name) is connected to “CHK” indicating a check box and “001” of “in-type serial number”, and is an OCR target “CHK001”. An object name (area name) is generated and stored in “area name (name)” of the object OCR definition table (FIG. 10).

次に、情報処理装置101のCPU201は、オブジェクト定義テーブル(図8)の「配置」の情報から、認識領域の座標を算出し、オブジェクトのOCR定義テーブルの「認識領域(pixel)」に算出結果を記憶(生成)する(ステップS1802)。 具体的には、例えば、認識領域の左上座標及び右下座標は、以下の式を用いて算出することができる。   Next, the CPU 201 of the information processing apparatus 101 calculates the recognition area coordinates from the “placement” information in the object definition table (FIG. 8), and calculates the result in the “recognition area (pixel)” in the object OCR definition table. Is stored (generated) (step S1802). Specifically, for example, the upper left coordinates and the lower right coordinates of the recognition area can be calculated using the following equations.

(式)・「認識領域の左上のX座標」=(基準位置(左)―クリアエリアの初期値)×スキャン時解像度(dpi)÷25.4(mm)・「認識領域の左上のY座標」=(基準位置(上)―クリアエリアの初期値)×スキャン時解像度(dpi)÷25.4(mm)・「認識領域の右下のX座標」=(基準位置(左)+サイズ(幅)+クリアエリアの初期値)×スキャン時解像度(dpi)÷25.4(mm)・「認識領域の右下のY座標」=(基準位置(上)+サイズ(高さ)+クリアエリアの初期値)×スキャン時解像度(dpi)÷25.4(mm)   (Expression) • “X coordinate at upper left of recognition area” = (reference position (left) −initial value of clear area) × scanning resolution (dpi) ÷ 25.4 (mm) • “Y coordinate at upper left of recognition area “= (Reference position (upper) −initial value of clear area) × scanning resolution (dpi) ÷ 25.4 (mm) ·“ lower right X coordinate of recognition area ”= (reference position (left) + size ( (Width) + Clear area initial value) x Scanning resolution (dpi) ÷ 25.4 (mm) · "Y coordinate at the bottom right of the recognition area" = (Reference position (Up) + Size (Height) + Clear area Initial value) x scanning resolution (dpi) ÷ 25.4 (mm)

ここで、クリアエリアとは、図23に示すように、オブジェクトの配置領域2301からOCR処理を行う対象領域2302までの幅の長さ2303であり、ユーザの指示により予め設定され記憶部に記憶されている。ここでは、ユーザの指示により予め設定されたクリアエリアの値をクリアエリアの初期値として記載している。   Here, as shown in FIG. 23, the clear area is the length 2303 of the width from the object arrangement area 2301 to the target area 2302 to be subjected to the OCR processing, and is set in advance by a user instruction and stored in the storage unit. ing. Here, the value of the clear area set in advance by the user's instruction is described as the initial value of the clear area.

また、スキャン解像度は、ユーザの指示により予め設定され、記憶部のフォームのOCR定義テーブル(図9)に記憶されている。また、基準位置(左)、基準位置(上)、サイズ(幅)、サイズ(高さ)は、それぞれ、オブジェクト定義テーブル(図8)の項目「左」、「上」、「幅」、「高さ」に記憶されている値である。   The scan resolution is set in advance by a user instruction and stored in the OCR definition table (FIG. 9) in the form of the storage unit. The reference position (left), reference position (top), size (width), and size (height) are the items “left”, “top”, “width”, “size” of the object definition table (FIG. 8), respectively. This is the value stored in “Height”.

ステップS1802では、これらの情報を取得して上述した式に代入することにより、認識領域の座標を算出することができる。   In step S1802, the coordinates of the recognition area can be calculated by acquiring these pieces of information and substituting them into the above-described formula.

次に、情報処理装置101のCPU201は、ステップS1802で算出された座標により決定される認識領域がテンプレート(帳票)の領域内に収まるか否かを判定する(ステップS1803)。   Next, the CPU 201 of the information processing apparatus 101 determines whether or not the recognition area determined by the coordinates calculated in step S1802 falls within the area of the template (form) (step S1803).

具体的には、ステップS1802で算出して得られた認識領域の座標が、ステップS1405でイメージデータを生成する際に決定した当該イメージデータのサイズの座標を超えているか否かを判定する。   Specifically, it is determined whether the coordinates of the recognition area obtained by calculation in step S1802 exceed the coordinates of the size of the image data determined when generating the image data in step S1405.

そして、認識領域がテンプレートの領域内に収まる(ステップS1802で算出して得られた認識領域の座標が、ステップS1405でイメージデータを生成する際に決定した当該イメージデータのサイズの座標を超えていない)と判定された場合は、図18に示す処理を終了し、一方、収まらない(ステップS1802で算出して得られた認識領域の座標が、ステップS1405でイメージデータを生成する際に決定した当該イメージデータのサイズの座標を超える)と判定された場合は、テンプレートの領域内に収まるように認識領域の各座標を補正する(ステップS1804)。   Then, the recognition area falls within the template area (the coordinates of the recognition area obtained by calculation in step S1802 do not exceed the coordinates of the size of the image data determined when generating the image data in step S1405). 18 is finished, the process shown in FIG. 18 is terminated, while the image does not fit (the recognition area coordinates obtained by calculation in step S1802 are determined when the image data is generated in step S1405). If it is determined that it exceeds the coordinates of the size of the image data), each coordinate of the recognition area is corrected so as to be within the area of the template (step S1804).

具体的には、超えていると判定された、ステップS1802で算出して得られた認識領域の座標を、ステップS1405でイメージデータを生成する際に決定した当該イメージデータのサイズの座標に設定することで補正することができる。
<図19の説明>
Specifically, the coordinates of the recognition area determined by calculating in step S1802 that is determined to be exceeded are set to the coordinates of the size of the image data determined when generating the image data in step S1405. This can be corrected.
<Description of FIG. 19>

次に、図19のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図19は、図15のステップS1509の処理の詳細処理の一例を示すフローチャートである。なお、図19は、図3に示すフォームエディタソフトウェア301による処理に対応する。   FIG. 19 is a flowchart showing an example of detailed processing of step S1509 in FIG. FIG. 19 corresponds to the processing by the form editor software 301 shown in FIG.

すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S1901〜S1902は各ステップを示す。   That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S1901 to S1902 indicate each step.

情報処理装置101のCPU201は、まず、認識する種別(種類)として、チェックボックスを認識する文字認識処理を実行することを示すデータ(ここでは“チェックボックス”)を生成する(ステップS1901)。ここで生成されたデータは、図10に示すオブジェクトのOCR定義テーブルに記憶される。   First, the CPU 201 of the information processing apparatus 101 generates data (here, “check box”) indicating that a character recognition process for recognizing a check box is executed as the type to be recognized (type) (step S1901). The data generated here is stored in the OCR definition table of the object shown in FIG.

次に、情報処理装置101のCPU201は、図18に示す共通情報生成処理を実行し(ステップS1902)、ステップS1509の処理を終了する。
<図20の説明>
Next, the CPU 201 of the information processing apparatus 101 executes the common information generation process shown in FIG. 18 (step S1902), and ends the process of step S1509.
<Description of FIG. 20>

次に、図20のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図20は、図15のステップS1510の処理の詳細処理の一例を示すフローチャートである。なお、図20は、図3に示すフォームエディタソフトウェア301による処理に対応する。   FIG. 20 is a flowchart illustrating an example of detailed processing of step S1510 of FIG. 20 corresponds to the processing by the form editor software 301 shown in FIG.

すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S2001〜S2002は各ステップを示す。   That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S2001 to S2002 indicate each step.

情報処理装置101のCPU201は、まず、認識する種別(種類)として、丸囲み文字を認識する文字認識処理を実行することを示すデータ(ここでは“丸囲み”)を生成する(ステップS2001)。ここで生成されたデータは、図10に示すオブジェクトのOCR定義テーブルに記憶される。 次に、情報処理装置101のCPU201は、図18に示す共通情報生成処理を実行し(ステップS2002)、ステップS1510の処理を終了する。
<図21の説明>
First, the CPU 201 of the information processing apparatus 101 generates data (here, “circle”) indicating that a character recognition process for recognizing a circled character is executed as a type to be recognized (step S2001). The data generated here is stored in the OCR definition table of the object shown in FIG. Next, the CPU 201 of the information processing apparatus 101 executes the common information generation process shown in FIG. 18 (step S2002), and ends the process of step S1510.
<Description of FIG. 21>

次に、図21のフローチャートを参照して、フォームエディタソフトウェア301が実行する処理を説明する。   Next, processing executed by the form editor software 301 will be described with reference to the flowchart of FIG.

図21は、図15のステップS1511の処理の詳細処理の一例を示すフローチャートである。なお、図21は、図3に示すフォームエディタソフトウェア301による処理に対応する。   FIG. 21 is a flowchart showing an example of detailed processing of the processing in step S1511 of FIG. FIG. 21 corresponds to the processing by the form editor software 301 shown in FIG.

すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S2101〜S2102は各ステップを示す。   That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S2101 to S2102 indicate each step.

情報処理装置101のCPU201は、まず、認識する種別(種類)として、二次元コードを認識する文字認識処理を実行することを示すデータ(ここでは“QRコード”)を生成する(ステップS2101)。ここで生成されたデータは、図10に示すオブジェクトのOCR定義テーブルに記憶される。 次に、情報処理装置101のCPU201は、図18に示す共通情報生成処理を実行し(ステップS2102)、ステップS1511の処理を終了する。
<図22の説明>
First, the CPU 201 of the information processing apparatus 101 generates data (here, “QR code”) indicating that a character recognition process for recognizing a two-dimensional code is executed as a type to be recognized (type) (step S2101). The data generated here is stored in the OCR definition table of the object shown in FIG. Next, the CPU 201 of the information processing apparatus 101 executes the common information generation process shown in FIG. 18 (step S2102), and ends the process of step S1511.
<Description of FIG. 22>

次に、図22のフローチャートを参照して、OCRソフトウェアが実行する処理を説明する。   Next, processing executed by the OCR software will be described with reference to the flowchart of FIG.

図21は、本発明のシステムにおける第2の制御処理手順の一例を示すフローチャートであり、図3に示すOCRソフトウェアによる処理に対応する。すなわち、情報処理装置101のCPU201がROM202又は外部メモリ211からRAM203に読み出したプログラムを実行することにより実現される。また、図中、S2201〜S2204は各ステップを示す。   FIG. 21 is a flowchart showing an example of a second control processing procedure in the system of the present invention, and corresponds to the processing by the OCR software shown in FIG. That is, it is realized by the CPU 201 of the information processing apparatus 101 executing a program read from the ROM 202 or the external memory 211 to the RAM 203. In the figure, S2201 to S2204 indicate steps.

情報処理装置101のCPU201は、フォームのOCR定義テーブル(図9)と、オブジェクトのOCR定義テーブル(図10)とを記憶部308から読み込み(ステップS2201)、読み込んだフォームのOCR定義テーブル(図9)と、オブジェクトのOCR定義テーブル(図10)内のデータを、OCRするために設定する(ステップS2202)。   The CPU 201 of the information processing apparatus 101 reads the form OCR definition table (FIG. 9) and the object OCR definition table (FIG. 10) from the storage unit 308 (step S2201), and reads the form OCR definition table (FIG. 9). And the data in the object OCR definition table (FIG. 10) are set for OCR (step S2202).

そして、ステップS2202で設定されたデータを用いてOCRを実行し(ステップS2203)、その認識結果を記憶部に記憶させるべく出力して(ステップS2204)処理を終了する。そして、フォームエディタソフトウェアは、記憶された認識結果を読み込み出力(表示や印刷など)する。   Then, OCR is executed using the data set in step S2202 (step S2203), the recognition result is output to be stored in the storage unit (step S2204), and the process is terminated. The form editor software reads and outputs (displays, prints, etc.) the stored recognition result.

以上説明したように、本実施の形態によれば、テンプレートデータを作成するために入力されるオブジェクトの属性情報に従って、OCR処理を実行する対象領域に対する属性情報を生成することにより、ユーザによる当該属性情報の入力作業を軽減させることができる。   As described above, according to the present embodiment, the attribute information by the user is generated by generating the attribute information for the target area for executing the OCR process according to the attribute information of the object input to create the template data. Information input work can be reduced.

<図24の説明>   <Description of FIG. 24>

次に、図24を用いて、帳票印刷時に帳票フォームデータの印刷用紙にデータ認識情報(OCR定義情報)を二次元バーコード(QRコード)で付加する仕組みについて説明する。   Next, a mechanism for adding data recognition information (OCR definition information) with a two-dimensional barcode (QR code) to a print sheet of form form data when printing a form will be described with reference to FIG.

図24は、帳票フォームデータの印刷指示時に表示される帳票印刷設定画面の一例を示す画面図である。この帳票印刷設定画面は、帳票フォームデータを印刷するときに、帳票フォームデータのアプリケーションプログラム(フォームエディタソフトウェア301)により表示部に表示される印刷設定画面の一例である。   FIG. 24 is a screen diagram illustrating an example of a form print setting screen displayed when a form form data print instruction is issued. This form print setting screen is an example of a print setting screen displayed on the display unit by the form form data application program (form editor software 301) when printing the form form data.

この帳票印刷設定画面において、「OCR定義を付加して印刷する」チェックボックス2401がチェックされることで、帳票フォームデータの印刷用紙にデータ認識情報であるOCR定義情報を二次元バーコードであるQRコードとして付加して印刷することが指示できる。また、「OCR定義:裏面に印刷する」チェックボックス2402がチェックされることで、データ認識情報であるOCR定義情報のQRコードを、帳票フォームデータの印刷用紙の裏面に印刷することが指示できる。このチェックがなければ、OCR定義情報のQRコードは、帳票フォームデータの印刷用紙の表面の所定の個所(たとえば右下の位置)に配置されて印刷されることになる。   In this form print setting screen, when the “print with OCR definition added” check box 2401 is checked, the OCR definition information, which is data recognition information, is printed on the form form data print sheet as a QR code that is a two-dimensional barcode. It can be instructed to add and print as a code. Also, by checking the “OCR definition: print on back side” check box 2402, it is possible to instruct to print the QR code of the OCR definition information, which is data recognition information, on the back side of the printing paper of the form form data. Without this check, the QR code of the OCR definition information is arranged and printed at a predetermined position (for example, the lower right position) on the surface of the printing paper of the form form data.

なお、「OCR定義:裏面に印刷する」チェックボックス2402は、必須項目ではなく、この項目は持たせずに、固定的にQRコードを裏面に印刷するようにしてもよい。   Note that the “OCR definition: print on back side” check box 2402 is not an essential item, and the QR code may be fixedly printed on the back side without having this item.

データ認識情報であるOCR定義情報は、図9のフォームのOCR定義テーブルの情報と、図10のオブジェクトのOCR定義テーブルの情報とを含んでいるものとする。なお、本実施の形態では、復元情報を埋め込む対象として、2次元バーコードのQRコードを用いているが、これに限るものではなく、印刷用紙にRF−IDタグが付いており、その書き込み機能をプリンタが備えている場合には、RF−IDタグに復元情報を記録してもよいし、その他の情報付加機能を用いてもよい。以下、本実施の形態では、QRコードを用いた例を説明する。   The OCR definition information, which is data recognition information, includes information on the OCR definition table of the form in FIG. 9 and information on the OCR definition table of the object in FIG. In this embodiment, a QR code of a two-dimensional barcode is used as a target for embedding restoration information. However, the present invention is not limited to this, and an RF-ID tag is attached to printing paper, and its writing function If the printer is equipped with a printer, restoration information may be recorded on the RF-ID tag, or other information addition function may be used. Hereinafter, in this embodiment, an example using a QR code will be described.

<図25の説明>   <Description of FIG. 25>

次に、図25を用いて帳票印刷の指示がなされたときの情報処理装置における印刷データ生成処理について説明する。   Next, print data generation processing in the information processing apparatus when a form print instruction is issued will be described with reference to FIG.

図25は、本発明の情報処理装置における帳票印刷処理手順の一例を示すフローチャートである。   FIG. 25 is a flowchart showing an example of a form print processing procedure in the information processing apparatus of the present invention.

図25に示す各ステップは、情報処理装置101のCPU201が外部メモリ211等のメモリに格納されたプログラムをRAM203にロードして実行することにより実現される。   Each step shown in FIG. 25 is realized by the CPU 201 of the information processing apparatus 101 loading a program stored in a memory such as the external memory 211 into the RAM 203 and executing the program.

まず、ステップS2501では、フォームエディタソフトウェア301は、ユーザ操作により生成された帳票フォームデータ(枠線や、フォーム定義テーブル310、オブジェクト定義テーブル311)を用いて、帳票フォームデータの印刷データを生成する。具体的には、ユーザにより出力先のプリンタの選択を受け付けると、ユーザ操作により生成された帳票フォームデータに従って、その出力先のプリンタで印刷処理可能なPDL形式またはイメージデータ形式の印刷データを生成する。   First, in step S2501, the form editor software 301 generates print data of form form data using form form data (frame line, form definition table 310, object definition table 311) generated by a user operation. Specifically, when the user receives selection of an output destination printer, print data in PDL format or image data format that can be printed by the output destination printer is generated according to the form data generated by the user operation. .

次にステップS2502では、生成された印刷データに、OCR定義情報を付加して印刷を行うか否かを判定する。つまり、印刷設定画面(図24)を介するユーザの指示(チェックボックス2401がチェック済み)により、データ認識情報であるOCR定義情報を付加して印刷データを生成することが指定されているか否かを判定する。OCR定義情報を付加して印刷データを生成すると判定された場合には(YES)、ステップS2503に処理を進め、OCR定義情報を付加しないで印刷データを生成すると判定された場合には(NO)、ステップS2505に処理を進める。   In step S2502, it is determined whether or not printing is performed by adding OCR definition information to the generated print data. That is, whether or not it is specified to generate print data by adding OCR definition information that is data recognition information according to a user instruction (check box 2401 is already checked) via the print setting screen (FIG. 24). judge. If it is determined that print data is generated by adding OCR definition information (YES), the process proceeds to step S2503, and if it is determined that print data is generated without adding OCR definition information (NO). Then, the process proceeds to step S2505.

次に、ステップS2503では、ユーザにより選択され印刷要求がなされた帳票フォームデータに対応する、図9のフォームのOCR定義テーブルの情報と、図10のオブジェクトのOCR定義テーブルの情報とを記憶部308から読み出し、これらの情報と、ユーザにより出力先として選択されたプリンタを識別するプリンタの個体識別情報(プリンタ個体識別情報)(プリンタ識別情報とも言う)とを含む二次元バーコードであるQRコードを生成する。なお、この印刷データの生成処理は、フォームエディタソフトウェア301の制御手順であるため、印刷要求された帳票フォームデータに対応するOCR定義テーブル(図9と図10)は、フォームエディタソフトウェア301自身が特定する。   In step S2503, the storage unit 308 stores information on the OCR definition table of the form in FIG. 9 and information on the OCR definition table of the object in FIG. 10 corresponding to the form form data selected by the user and requested to be printed. A QR code that is a two-dimensional barcode including these information and printer individual identification information (printer individual identification information) (also referred to as printer identification information) for identifying the printer selected as the output destination by the user. Generate. Since the print data generation process is a control procedure of the form editor software 301, the OCR definition table (FIGS. 9 and 10) corresponding to the form data requested to be printed is specified by the form editor software 301 itself. To do.

ここで、生成されるQRコードには、オブジェクトのOCR定義テーブルの情報内の認識領域(座標)が含まれている。この認識領域(座標)のうち、オブジェクトのOCR定義テーブルのOCR対象オブジェクトの領域名がQRコードの認識領域(座標)は、標準印字位置座標として、QRコードに含まれている。また、実際に印刷された帳票用紙のQRコードの印字位置座標と、標準印字位置座標との誤差を許容する範囲(誤差範囲)は、予め、情報処理装置に設定されており、情報処理装置のメモリに記憶されている。ここでは、この誤差範囲も含めてQRコードが生成される。   Here, the generated QR code includes a recognition area (coordinates) in the information of the object OCR definition table. Among these recognition areas (coordinates), a recognition area (coordinates) whose area name of the OCR target object in the OCR definition table of the object is a QR code is included in the QR code as standard print position coordinates. In addition, a range (error range) that allows an error between the print position coordinates of the QR code of the actually printed form and the standard print position coordinates is set in the information processing apparatus in advance. Stored in memory. Here, a QR code including this error range is generated.

続いてステップS2504では、帳票フォームデータの印刷データに、ステップS2503で生成した二次元バーコードのOCR定義情報(QRコード)を付加する。ここでQRコードが付加される位置は、オブジェクト定義テーブル(図8)のオブジェクトの種別が「出力領域(QRコード)」の「配置」に定められている領域(図10のオブジェクトのOCR定義テーブルのOCR対象オブジェクトの領域名が「QRコード」に対する認識領域)に配置される。   In step S2504, the OCR definition information (QR code) of the two-dimensional barcode generated in step S2503 is added to the print data of the form form data. Here, the QR code is added to the area where the object type of the object definition table (FIG. 8) is set to “placement” of “output area (QR code)” (the object OCR definition table of FIG. 10). The area name of the OCR target object is arranged in the recognition area for “QR code”.

このように、二次元バーコードのOCR定義情報(QRコード)を帳票フォームデータの印刷データの表面の所定の位置(オブジェクト定義テーブル(図8)又はオブジェクトのOCR定義テーブルに定められたQRコードを配置する位置)に付加する。   In this way, the OCR definition information (QR code) of the two-dimensional barcode is converted into a predetermined position on the surface of the print data of the form form data (the object definition table (FIG. 8) or the QR code defined in the object OCR definition table). To be placed).

そして、ステップS2505では、ステップS2504でQRコードが付加された印刷データをプリンタで印刷すべく出力する。出力先は、複合機103(プリンタ)に対して直接送信してもいいし、プリントサーバに出力し、プリントサーバからプリンタに転送して印刷させてもよい。そして、複合機103(プリンタ)は、情報処理装置から受信した印刷データの印刷を行い、帳票印刷された印刷用紙を出力する。   In step S2505, the print data to which the QR code is added in step S2504 is output for printing by the printer. The output destination may be directly transmitted to the multifunction peripheral 103 (printer), or may be output to the print server and transferred from the print server to the printer for printing. Then, the multifunction machine 103 (printer) prints the print data received from the information processing apparatus, and outputs form-printed printing paper.

なお、ステップS2505で送信される印刷データは、帳票フォームデータが印刷される面には、帳票フォームデータを識別する識別情報が印刷されている。   In the print data transmitted in step S2505, identification information for identifying the form form data is printed on the surface on which the form form data is printed.

すなわち、ステップS2501で印刷データを生成する際に、帳票フォームデータを識別する識別情報を印刷データに含めるようにして生成する。   That is, when print data is generated in step S2501, identification information for identifying form form data is included in the print data.

この帳票フォームデータを識別する識別情報をスキャナ部で読み取り認識することで、印刷用紙に印刷されている帳票フォームデータを識別することができ、対応するOCR定義情報を、図9及び図10のOCR定義テーブルから特定することが可能となる。   By reading and recognizing the identification information for identifying the form data by the scanner unit, it is possible to identify the form form data printed on the printing paper, and the corresponding OCR definition information is represented by the OCR in FIGS. It can be specified from the definition table.

以上のように、図25の処理により、ステップS1404で生成されたOCR定義情報(データ認識情報)を含むQRコードを、OCR定義情報内のQRコードの認識領域に示される位置に付加した印刷データを生成する。   As described above, the print data obtained by adding the QR code including the OCR definition information (data recognition information) generated in step S1404 to the position indicated in the QR code recognition area in the OCR definition information by the process of FIG. Is generated.

<図26の説明>   <Description of FIG. 26>

次に、図26を用いて帳票印刷されている印刷用紙が画像読取部(スキャナ)で読み取られ、読み取られたデータが入力された情報処理装置におけるデータ認識処理について説明する。   Next, a data recognition process in the information processing apparatus in which the printing paper on which the form is printed is read by the image reading unit (scanner) and the read data is input will be described with reference to FIG.

図26は、本発明の情報処理装置におけるデータ認識処理手順の一例を示すフローチャートである。   FIG. 26 is a flowchart showing an example of a data recognition processing procedure in the information processing apparatus of the present invention.

図26に示す各ステップは、情報処理装置101のCPU201が外部メモリ211等のメモリに格納されたプログラムをRAM203にロードして実行することにより実現される。   Each step shown in FIG. 26 is realized by the CPU 201 of the information processing apparatus 101 loading a program stored in a memory such as the external memory 211 into the RAM 203 and executing it.

ステップS2601では、図示省略されたスキャナ装置(画像読取部(スキャナ))で帳票の印刷用紙(帳票用紙)を読み取り処理した結果である画像を入力し記憶部に記憶する。すなわち、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する。スキャナ装置は情報処理装置にI/Fを介して直接接続されていてもよいし、ネットワークを介して通信可能な複合機のスキャナ部で読み取った画像をネットワーク通信で受信してもよい。   In step S2601, an image, which is a result of reading a form printing paper (form paper) with a scanner device (image reading unit (scanner)) (not shown), is input and stored in the storage unit. That is, the image data obtained by reading the printing paper on which the position information indicating the position of the area for performing the data recognition process is printed is stored. The scanner device may be directly connected to the information processing device via an I / F, or may receive an image read by a scanner unit of a multifunction peripheral that can communicate via a network via network communication.

次に、ステップS2602では、ステップS2601で入力され記憶部に記憶された画像に含まれているQRコード内のデータを全て読み込み取得する。すなわち、ここでは、QRコードから、データ認識処理を行う領域の位置と共に、データ認識処理を行う領域の位置であって、QRコードが配置されている位置も取得される。   Next, in step S2602, all the data in the QR code included in the image input in step S2601 and stored in the storage unit is read and acquired. That is, here, from the QR code, the position of the area where the data recognition process is performed and the position where the QR code is arranged are acquired together with the position of the area where the data recognition process is performed.

そして、ステップS2603では、QRコードから読み込んだデータを解析し、該データの中に、OCR定義情報が含まれているか否かを判定する。そして、OCR定義情報が含まれていると判定された場合は(YES)、ステップS2604に処理を進め、OCR定義情報が含まれていないと判定された場合は(NO)、ステップS2606に処理を進める。   In step S2603, the data read from the QR code is analyzed, and it is determined whether or not the OCR definition information is included in the data. If it is determined that the OCR definition information is included (YES), the process proceeds to step S2604. If it is determined that the OCR definition information is not included (NO), the process proceeds to step S2606. Proceed.

ステップS2604では、ステップS2601で入力された画像を解析して、QRコードが帳票用紙(印刷用紙)に印字されている位置(データ認識処理を行う領域の位置)を検出し、該位置の座標(印字位置座標)を取得する。   In step S2604, the image input in step S2601 is analyzed to detect the position where the QR code is printed on the form paper (printing paper) (the position of the area where the data recognition process is performed), and the coordinates of the position ( Get the print position coordinates).

ここで、印字位置座標とは、帳票用紙に印字されたQRコードの左上の頂点の座標(X、Y)と、右下の頂点の座標(X、Y)である。   Here, the print position coordinates are the coordinates (X, Y) of the upper left vertex and the coordinates (X, Y) of the lower right vertex of the QR code printed on the form paper.

そして、ステップS2605において、ステップS2604で取得した印字位置座標と、ステップS2602でQRコードから取得した標準印字位置座標との差を算出し、その差が、ステップS2602でQRコードから取得した誤差範囲(所定範囲)内であるか否かを判定する。   In step S2605, the difference between the print position coordinates acquired in step S2604 and the standard print position coordinates acquired from the QR code in step S2602 is calculated, and the difference is the error range (from the QR code in step S2602) ( It is determined whether it is within a predetermined range.

そして、ステップS2605で、当該差が、誤差範囲内であると判定された場合は(YES)、処理をステップS2609に移行する。一方、ステップS2605で、当該差が、誤差範囲を超えていると判定された場合は(NO)、当該差に従って、OCR処理を行う領域の座標を補正する補正量を算出する(ステップS2607)。ステップS2605の詳細処理は、図27を用いて、後で説明する。そして、ステップS2607で算出された補正量だけ、ステップS2602でQRコードから読み込んだOCR定義情報の認識領域をそれぞれ補正し(ステップS2608)、処理をステップS2609に移行する。   If it is determined in step S2605 that the difference is within the error range (YES), the process proceeds to step S2609. On the other hand, if it is determined in step S2605 that the difference exceeds the error range (NO), a correction amount for correcting the coordinates of the region where the OCR processing is performed is calculated according to the difference (step S2607). Detailed processing in step S2605 will be described later with reference to FIG. Then, the recognition area of the OCR definition information read from the QR code in step S2602 is corrected by the correction amount calculated in step S2607 (step S2608), and the process proceeds to step S2609.

すなわち、ステップS2608では、ステップS2604で検出されたQRコードが配置されている位置と、ステップS2602で取得されたQRコードの位置とに従って、ステップS2602で取得されたデータ認識処理(OCR処理)を行う領域の位置(OCR定義情報)を補正する(補正手段)。   That is, in step S2608, the data recognition process (OCR process) acquired in step S2602 is performed according to the position where the QR code detected in step S2604 is arranged and the position of the QR code acquired in step S2602. The position of the area (OCR definition information) is corrected (correction means).

ステップS2609では、ステップS2605で誤差範囲内であると判定された場合は(YES)、ステップS2602で読み込んだ図9、図10のデータ(OCR定義情報)を用いて、ステップS2601で入力された画像のOCR処理(データ認識処理)を実行する。すなわち、OCR定義情報に示される画像データの領域に対してOCR処理(データ認識処理)を行う。   In step S2609, if it is determined in step S2605 that it is within the error range (YES), the image input in step S2601 using the data (OCR definition information) of FIGS. 9 and 10 read in step S2602 is used. OCR processing (data recognition processing) is executed. That is, OCR processing (data recognition processing) is performed on the image data area indicated in the OCR definition information.

また、ステップS2609では、ステップS2605で誤差範囲を超えていると判定された場合は(NO)、ステップS2608で補正されたOCR定義情報を含むデータ(図9、図10のデータ)を用いて、ステップS2601で入力された画像のOCR処理(データ認識処理)を実行する。   In step S2609, if it is determined in step S2605 that the error range has been exceeded (NO), data including the OCR definition information corrected in step S2608 (data in FIGS. 9 and 10) is used. OCR processing (data recognition processing) of the image input in step S2601 is executed.

OCR定義情報には、認識領域の座標が含まれており、その座標で示される領域に対してOCR処理を行う。プリンタによる帳票用紙の印字位置のずれに応じて、ステップS2608でこの認識領域の座標を補正したことにより、精度良くデータ認識処理を実行することが可能となる。   The OCR definition information includes the coordinates of the recognition area, and the OCR process is performed on the area indicated by the coordinates. By correcting the coordinates of the recognition area in step S2608 according to the deviation of the printing position of the form paper by the printer, it is possible to execute the data recognition process with high accuracy.

そして、情報処理装置は、ステップS2609によるOCR処理の結果を表示部に出力し終了する。   Then, the information processing apparatus outputs the result of the OCR process in step S2609 to the display unit and ends.

また、ステップS2603において、QRコードから読み込んだデータの中に、OCR定義情報が含まれていないと判定された場合は(NO)、処理をステップS2606に移行し、図22に示すフローチャートの処理を実行して、処理を終了する。   If it is determined in step S2603 that the data read from the QR code does not include OCR definition information (NO), the process proceeds to step S2606, and the process of the flowchart illustrated in FIG. 22 is performed. Execute and finish the process.

OCR定義付加情報が付与されていない場合には、図22に示すフローチャートにおいて、ステップS2201で、帳票フォームデータの印刷用紙(帳票用紙)に印刷されている帳票識別情報を用いて、帳票フォームデータを識別し、識別された帳票フォームデータに対応する図9、図10のOCR定義テーブルを記憶部308から読み込む。   If the OCR definition additional information is not given, in the flowchart shown in FIG. 22, in step S2201, the form form data is converted using the form identification information printed on the form form data print form (form form). The OCR definition table shown in FIGS. 9 and 10 corresponding to the identified form data is read from the storage unit 308.

そして、ステップS2202において、読み込んだフォームのOCR定義テーブル(図9)と、オブジェクトのOCR定義テーブル(図10)内のデータを、OCRするために設定する。そして、ステップS2202で設定されたデータを用いてOCRを実行し(ステップS2203)、その認識結果を記憶部に記憶させるべく出力して(ステップS2204)処理を終了する。   In step S2202, the data in the read form OCR definition table (FIG. 9) and the object OCR definition table (FIG. 10) are set for OCR. Then, OCR is executed using the data set in step S2202 (step S2203), the recognition result is output to be stored in the storage unit (step S2204), and the process is terminated.

また、ステップS2601では、入力される画像(データ)が拡大又は縮小されている場合が考えられる。そこで、ステップS2604の処理を実行した後に、入力された画像が拡大又は縮小されているか否かを判定し、拡大又は縮小されていないと判定された場合は、処理をステップS2605に移行し、拡大又は縮小されていると判定された場合は、その拡縮されている割合(%)から、ステップS2602で取得した標準印字位置座標と、誤差範囲と、ステップS2604で取得した印字位置座標とを補正し、処理をステップS2605に移行するようにしてもよい。このような処理を追加することで、入力された画像(データ)が拡大又は縮小されている場合でも、適切にずれを補正し、認識処理の精度を向上させることが可能となる。
<図27の説明>
Further, in step S2601, the case where the input image (data) is enlarged or reduced can be considered. Therefore, after executing the process of step S2604, it is determined whether or not the input image has been enlarged or reduced. If it is determined that the input image has not been enlarged or reduced, the process proceeds to step S2605 to enlarge the image. Alternatively, when it is determined that the image has been reduced, the standard print position coordinates acquired in step S2602, the error range, and the print position coordinates acquired in step S2604 are corrected based on the enlargement / reduction ratio (%). The process may be shifted to step S2605. By adding such processing, even when the input image (data) is enlarged or reduced, it is possible to appropriately correct the deviation and improve the accuracy of the recognition processing.
<Description of FIG. 27>

次に、図27を用いて、図26に示すステップS2607に示すプリンタ印字位置ずれ補正処理の詳細処理について説明する。   Next, with reference to FIG. 27, detailed processing of the printer printing position deviation correction processing shown in step S2607 shown in FIG. 26 will be described.

図27に示す各ステップは、情報処理装置101のCPU201が外部メモリ211等のメモリに格納されたプログラムをRAM203にロードして実行することにより実現される。   Each step shown in FIG. 27 is realized by the CPU 201 of the information processing apparatus 101 loading a program stored in a memory such as the external memory 211 into the RAM 203 and executing it.

図27は、図26に示すステップS2607に示すプリンタ印字位置ずれ補正処理の詳細処理を示すフローチャートである。   FIG. 27 is a flowchart showing detailed processing of the printer printing position deviation correction processing shown in step S2607 shown in FIG.

図27に示す各ステップは、情報処理装置101のCPU201が外部メモリ211等のメモリに格納されたプログラムをRAM203にロードして実行することにより実現される。   Each step shown in FIG. 27 is realized by the CPU 201 of the information processing apparatus 101 loading a program stored in a memory such as the external memory 211 into the RAM 203 and executing it.

情報処理装置は、ステップS2602でQRコードから取得した標準印字位置座標と、印字位置座標との差から、ステップS2602でQRコードから取得したOCR定義情報の認識領域の座標を補正する補正量を算出する(ステップ2701)。ここで算出された補正量に従って、ステップS2608で、OCR定義情報の認識領域の座標を補正する。ここでは、更に、認識領域が、画像データの領域内に収まるように、クリアエリアや、画像データのサイズなどを考慮して、補正量を算出するようにしても良い。   The information processing apparatus calculates a correction amount for correcting the coordinates of the recognition area of the OCR definition information acquired from the QR code in step S2602 from the difference between the standard print position coordinates acquired from the QR code in step S2602 and the print position coordinates. (Step 2701). In step S2608, the coordinates of the recognition area of the OCR definition information are corrected according to the correction amount calculated here. Here, further, the correction amount may be calculated in consideration of the clear area, the size of the image data, and the like so that the recognition area falls within the image data area.

そして、情報処理装置は、ステップS2702で、ユーザの操作指示に従って、プリンタ管理サーバ104に通知を行うか否かを判定する(ステップS2702)。すなわち、ユーザの操作により、プリンタ管理サーバ104に通知を行う旨の指示を受け付けると(S2702:YES)、QRコードからプリンタ個体識別情報を取得して(ステップS2703)、当該プリンタ個体識別情報と、標準印字位置座標と印字位置座標との差をプリンタ管理サーバ104に送信する(ステップS2704)。そして、処理をステップS2608に戻す。
<図28の説明>
In step S2702, the information processing apparatus determines whether to notify the printer management server 104 in accordance with a user operation instruction (step S2702). That is, when an instruction to notify the printer management server 104 is received by a user operation (S2702: YES), the printer individual identification information is acquired from the QR code (step S2703), the printer individual identification information, The difference between the standard print position coordinates and the print position coordinates is transmitted to the printer management server 104 (step S2704). Then, the process returns to step S2608.
<Description of FIG. 28>

次に、図28を用いて、プリンタ管理サーバ104が実行するプリンタの印字位置調整処理について説明する。   Next, a printer print position adjustment process executed by the printer management server 104 will be described with reference to FIG.

図28は、プリンタ管理サーバ104が実行するプリンタの印字位置調整処理を示すフローチャートである。   FIG. 28 is a flowchart illustrating printer print position adjustment processing executed by the printer management server 104.

図28に示す各ステップは、プリンタ管理サーバ104のCPU201が外部メモリ211等のメモリに格納されたプログラムをRAM203にロードして実行することにより実現される。   Each step shown in FIG. 28 is realized by the CPU 201 of the printer management server 104 loading a program stored in a memory such as the external memory 211 into the RAM 203 and executing it.

プリンタ管理サーバ104は、情報処理装置101から、プリンタ個体識別情報と、標準印字位置座標と印字位置座標との差を受信すると(ステップS2801)、当該プリンタ個体識別情報に該当する(当該プリンタ個体識別情報を含む)プリンタ管理情報をプリンタ管理テーブル(図29)から取得する(ステップS2802)。ここで、プリンタ管理情報とは、プリンタ管理テーブル(図29)のレコードの情報である。   When receiving the printer individual identification information and the difference between the standard print position coordinates and the print position coordinates from the information processing apparatus 101 (step S2801), the printer management server 104 corresponds to the printer individual identification information (the printer individual identification Printer management information (including information) is acquired from the printer management table (FIG. 29) (step S2802). Here, the printer management information is information on a record in the printer management table (FIG. 29).

プリンタ管理テーブル(図29)は、プリンタ管理サーバ104の外部メモリに記憶されている。   The printer management table (FIG. 29) is stored in the external memory of the printer management server 104.

図29は、プリンタ管理テーブルの一例を示す図である。   FIG. 29 is a diagram illustrating an example of a printer management table.

プリンタ管理テーブルは、「No」、「個体識別情報」、「メーカー」、「機種」、「タイプ」、「設置場所」、「IPアドレス」、「リモート印字調整」、「メンテナンス開始可能時間」、「通知先」、「管理者」などの項目から構成される。   The printer management table includes “No”, “Individual identification information”, “Manufacturer”, “Model”, “Type”, “Installation location”, “IP address”, “Remote print adjustment”, “Maintenance startable time”, It consists of items such as “notification destination” and “administrator”.

「No」は、プリンタ管理情報(レコード)を識別するための識別情報である。「個体識別情報」は、プリンタを識別するプリンタ個体識別情報が格納される項目である。「メーカー」は、当該プリンタを製造しているメーカーの名前が格納される項目である。「機種」は、当該プリンタの機種名が格納される項目である。「タイプ」は、当該プリンタの種類(複合機、モノクロLBP(モノクロレーザープリンタ)、カラーLBP(カラーレーザープリンタ)など)を示す名称が格納される項目である。「設置場所」は、当該プリンタが設置されている場所を示す情報が格納される項目である。「IPアドレス」は、当該プリンタのIPアドレスが格納される項目である。「リモート印字調整」は、当該プリンタがリモートでの印字位置調整が実行可能か否かを示す情報(可または否)が格納される項目である。「メンテナンス開始可能時間」は、印字位置調整の実行開始可能時間が格納される項目である。「通知先」は、当該プリンタの管理者(メンテナンスをしているユーザ)に通知する通知先であるメールアドレスが格納される項目である。すなわち、「通知先」には、当該プリンタを管理する管理者が操作する管理者端末に送信するメールアドレスが格納される。「管理者」は、当該プリンタの管理者(メンテナンスをしているユーザ)の名前が格納される項目である。 “No” is identification information for identifying printer management information (record). “Individual identification information” is an item in which printer individual identification information for identifying a printer is stored. “Manufacturer” is an item in which the name of the manufacturer that manufactures the printer is stored. “Model” is an item in which the model name of the printer is stored. “Type” is an item in which a name indicating the type of the printer (multifunction machine, monochrome LBP (monochrome laser printer), color LBP (color laser printer), etc.) is stored. “Installation location” is an item in which information indicating a location where the printer is installed is stored. “IP address” is an item in which the IP address of the printer is stored. “Remote printing adjustment” is an item in which information (whether or not) indicating whether or not the printer can perform remote printing position adjustment is stored. The “maintenance startable time” is an item in which the print position adjustment execution startable time is stored. The “notification destination” is an item in which an e-mail address that is a notification destination to be notified to the administrator (user performing maintenance) of the printer is stored. That is, the “notification destination” stores a mail address to be transmitted to the administrator terminal operated by the administrator who manages the printer. “Administrator” is an item in which the name of the administrator (user performing maintenance) of the printer is stored.

そして、プリンタ管理サーバ104は、ステップS2802で、該当するプリンタ管理情報をプリンタ管理テーブル(図29)から取得すると、当該プリンタ管理情報に含まれている「リモート印字調整」の項目が「可」か「否」を判定する(ステップS2803)。すなわち、当該プリンタがリモートでの印字位置調整が実行可能か否かを判定する。   When the printer management server 104 acquires the corresponding printer management information from the printer management table (FIG. 29) in step S2802, whether the item “remote print adjustment” included in the printer management information is “permitted”. “No” is determined (step S2803). That is, it is determined whether or not the printer can perform remote print position adjustment.

そして、プリンタ管理サーバ104は、ステップS2803で「リモート印字調整」の項目が「可」と判定(リモートでの印字位置調整が実行可能なプリンタと判定)された場合は(YES)、処理をステップS2804に移行し、「リモート印字調整」の項目が「否」と判定(リモートでの印字位置調整が実行不可能なプリンタと判定)された場合は(NO)、処理をステップS2806に移行する。   If it is determined in step S2803 that the item “remote printing adjustment” is “possible” (determined as a printer capable of performing remote printing position adjustment) (YES), the printer management server 104 performs processing. If the “remote print adjustment” item is determined as “No” (determined as a printer that cannot perform remote print position adjustment) (NO), the process proceeds to step S2806.

ステップS2804において、プリンタ管理サーバ104は、取得したプリンタ管理情報に含まれる「メンテナンス開始可能時間」に示される印字位置調整の実行開始可能時間以降に、ステップS2801で受信したプリンタ個体識別情報により識別されるプリンタの印字位置調整を行うコマンド(リモート印字位置調整コマンド)を生成して登録する。ここで生成されるコマンドは、ステップS2801で受信した、標準印字位置座標と印字位置座標との差だけ印字位置を補正するようなコマンドである。   In step S 2804, the printer management server 104 is identified by the printer individual identification information received in step S 2801 after the print position adjustment execution start time indicated by “maintenance start possible time” included in the acquired printer management information. Generate and register a command (remote print position adjustment command) for adjusting the print position of the printer. The command generated here is a command that is received in step S2801, and that corrects the printing position by the difference between the standard printing position coordinates and the printing position coordinates.

そして、プリンタ管理サーバ104は、「メンテナンス開始可能時間」に示される印字位置調整の実行開始可能時間以降に、生成したコマンド(リモート印字位置調整コマンド)を、該プリンタ個体識別情報により識別されるプリンタに送信するようにスケジュールに登録し、スケジュールを開始する(ステップS2805)。そして、そのスケジュールの時間(メンテナンス開始可能時間)になると、プリンタ管理サーバ104は、当該生成したコマンドをプリンタに送信して、当該コマンドを受信したプリンタは、そのコマンドに従って、印字位置を補正する処理を実行する。   The printer management server 104 then identifies the generated command (remote print position adjustment command) after the print position adjustment execution start time indicated in the “maintenance start possible time” by the printer individual identification information. Is registered in the schedule so as to be transmitted, and the schedule is started (step S2805). When the scheduled time (maintenance startable time) is reached, the printer management server 104 transmits the generated command to the printer, and the printer that has received the command corrects the print position according to the command. Execute.

すなわち、プリンタ個体識別情報(プリンタ識別情報)で識別されるプリンタでの印字位置の補正を指示するべく、標準印字位置座標と印字位置座標との差を含むコマンドを、当該プリンタ識別情報で識別されるプリンタに送信する(送信手段)。   That is, a command including a difference between the standard print position coordinates and the print position coordinates is identified by the printer identification information in order to instruct correction of the print position in the printer identified by the printer individual identification information (printer identification information). (Sending means).

ステップS2806において、プリンタ管理サーバ104は、ステップS2802で取得したプリンタ管理情報に含まれる「通知先」に、プリンタの管理者(メンテナンスをしているユーザ)に通知する通知先であるメールアドレスが含まれている(登録されている)か否かを判定し、当該メールアドレスが含まれていると判定された場合(YES)、当該メールアドレスに、調整依頼を示す電子メールを送信する(ステップS2807)。ステップS2807で送信される電子メールには、ステップS2802で取得したプリンタ管理情報と、ステップS2801で受信した、標準印字位置座標と印字位置座標との差とが含まれている。   In step S <b> 2806, the printer management server 104 includes an e-mail address that is a notification destination to be notified to the printer administrator (user who is performing maintenance) in the “notification destination” included in the printer management information acquired in step S <b> 2802. Is determined (registered), and if it is determined that the e-mail address is included (YES), an e-mail indicating an adjustment request is transmitted to the e-mail address (step S2807). ). The e-mail transmitted in step S2807 includes the printer management information acquired in step S2802 and the difference between the standard print position coordinates and the print position coordinates received in step S2801.

一方、ステップS2806において、ステップS2802で取得したプリンタ管理情報に含まれる「通知先」に、プリンタの管理者(メンテナンスをしているユーザ)に通知する通知先であるメールアドレスが含まれていないと判定された場合は(NO)、ステップS2704で、プリンタ個体識別情報と、標準印字位置座標と印字位置座標との差とを送信した情報処理装置にその旨を返信して、処理を終了する。   On the other hand, in step S2806, if the “notification destination” included in the printer management information acquired in step S2802 does not include a mail address that is a notification destination to be notified to the printer administrator (user who is performing maintenance). If it is determined (NO), in step S2704, the fact is returned to the information processing apparatus that has transmitted the printer identification information and the difference between the standard print position coordinates and the print position coordinates, and the process is terminated.

また、本実施の形態では、図28に示す各ステップの処理をプリンタ管理サーバが実行することで説明したが、図28に示す各ステップの処理を情報処理装置101で実行するようにしてもよい。その場合は、ステップS2704で、プリンタ個体識別情報と、標準印字位置座標と印字位置座標との差をプリンタ管理サーバ104に送信するのではなく、自身の情報処理装置101内に送信するようにすればよい。   In the present embodiment, the process of each step shown in FIG. 28 has been described as being executed by the printer management server. However, the process of each step shown in FIG. 28 may be executed by the information processing apparatus 101. . In this case, in step S2704, the printer individual identification information and the difference between the standard print position coordinates and the print position coordinates are not transmitted to the printer management server 104, but are transmitted to the information processing apparatus 101 of their own. That's fine.

以上、本発明によれば、データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られ得られた画像データを解析することにより得られる、当該印刷用紙に印刷された、前記データ認識処理を行う領域の位置と、当該画像データに含まれる位置情報に示される位置とに従って、データ認識処理を行う領域の位置を補正することにより、データ認識処理の精度を向上させることができる。   As described above, according to the present invention, printed on the printing paper obtained by analyzing the image data obtained by reading the printing paper on which the position information indicating the position of the area where the data recognition process is performed is printed. The accuracy of the data recognition process can be improved by correcting the position of the area where the data recognition process is performed according to the position of the area where the data recognition process is performed and the position indicated by the position information included in the image data. it can.

また、本実施の形態によれば、帳票フォームデータの生成時に設定する設定内容を利用して、OCR処理を行うフィールド領域に対するOCR定義情報を生成し、生成されたOCR定義情報をQRコードのような付加情報に変換して帳票フォームデータの印刷データに付加して印刷させるので、ユーザによるフィールド領域のデータ認識情報の入力作業や、データ認識処理を行う情報処理装置にデータ認識情報を予め用意しておくという管理者の負担を軽減させることができる。   In addition, according to the present embodiment, the OCR definition information for the field area to be subjected to OCR processing is generated using the setting contents set when the form form data is generated, and the generated OCR definition information is converted into a QR code. The data recognition information is prepared in advance in the information processing device that performs the data recognition information input process of the field area by the user and the data recognition processing. This can reduce the burden on the administrator.

すなわち、帳票フォームデータの生成時に設定したフィールド領域に書き込まれるデータの属性情報(文字種、文字サイズ等)を用いてデータ認識情報(OCR定義情報)を自動的に生成し、生成されたデータ認識情報を、帳票フォームデータに付加して帳票フォームデータの印刷データを生成することである。これにより、帳票フォームデータの印刷用紙には、データ認識情報が付加されているので、この印刷用紙を読み取るだけで、データ認識情報を取得でき、データ認識処理(OCR処理)の精度が高くなる。   That is, the data recognition information (OCR definition information) is automatically generated using the attribute information (character type, character size, etc.) of the data written in the field area set when the form form data is generated, and the generated data recognition information Is added to the form form data to generate print data of the form form data. Thereby, since the data recognition information is added to the printing paper of the form form data, the data recognition information can be acquired only by reading the printing paper, and the accuracy of the data recognition processing (OCR processing) is increased.

以上、本発明の一実施形態を詳述したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   Although one embodiment of the present invention has been described in detail above, the present invention can take an embodiment as, for example, a system, an apparatus, a method, a program, or a storage medium. You may apply to the system comprised from an apparatus, and may apply to the apparatus which consists of one apparatus.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。   Another object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、プログラムコード自体及びそのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code itself and the storage medium storing the program code constitute the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(基本システム或いはオペレーティングシステム)などが実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (basic system or operating system) running on the computer based on the instruction of the program code. Needless to say, a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion board or function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

また上記のソフトウェアで実現する各処理を、ファームウェアやハードウェア構成にして、各処理を各手段として実現することも可能であり、本発明の技術的範囲はこのようなファームウェアやハードウェア構成による実現も含むものである。   In addition, each process realized by the above-described software can be realized as firmware or hardware configuration, and each process can be realized as each means. The technical scope of the present invention is realized by such firmware or hardware configuration. Is also included.

101 情報処理装置
102 情報処理装置
103 複合機
101 Information processing apparatus 102 Information processing apparatus 103 MFP

104 プリンタ管理サーバ
105 ネットワーク
104 Printer management server 105 Network

Claims (8)

データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置であって、
前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出手段と、
前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得手段と、
前記検出手段で検出された位置と、前記取得手段で取得された位置とに従って、前記取得手段で取得された位置を補正する補正手段と、
前記補正手段で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識手段と、
を備えることを特徴とする情報処理装置。
An information processing apparatus comprising storage means for storing image data obtained by reading a print sheet on which position information indicating the position of an area for performing data recognition processing is printed,
Detecting means for analyzing the image data stored in the storage means to detect the position of the area printed on the printing paper and performing the data recognition process;
An acquisition means for acquiring the position of the area for performing the data recognition processing indicated by the position information by reading the position information included in the image data stored in the storage means;
Correction means for correcting the position acquired by the acquisition means according to the position detected by the detection means and the position acquired by the acquisition means;
Data recognition means for performing data recognition processing on an area of image data stored in the storage means, which is indicated by a position obtained by correction by the correction means;
An information processing apparatus comprising:
前記記憶手段は、データ認識処理を行う領域の位置を示す位置情報が当該位置情報に示される印刷用紙の位置に印刷された印刷用紙が読みと取られることにより得られる画像データを記憶し、
前記検出手段は、前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された位置情報の位置を検出し、
前記取得手段は、前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された位置を取得することを特徴とする請求項1に記載の情報処理装置。
The storage means stores image data obtained by reading the print sheet printed at the position of the print sheet indicated by the position information, the position information indicating the position of the area where the data recognition process is performed,
The detection means detects the position of the position information printed on the printing paper by analyzing the image data stored in the storage means,
2. The information processing according to claim 1, wherein the acquisition unit acquires the position indicated by the position information by reading the position information included in the image data stored in the storage unit. apparatus.
前記検出手段で検出された位置と、前記取得手段で取得された位置との差が、所定範囲を超えているかを判定する判定手段と、
前記補正手段は、前記判定手段で、前記検出手段で検出された位置と、前記取得手段で取得された位置との差が、所定範囲を超えていると判定された場合に、前記検出手段で検出された位置と、前記取得手段で取得された位置とに従って、前記取得手段で取得された位置を補正することを特徴とする請求項1又は2に記載の情報処理装置。
Determining means for determining whether a difference between the position detected by the detecting means and the position acquired by the acquiring means exceeds a predetermined range;
The correction means is the detection means when the determination means determines that the difference between the position detected by the detection means and the position acquired by the acquisition means exceeds a predetermined range. The information processing apparatus according to claim 1, wherein the position acquired by the acquisition unit is corrected according to the detected position and the position acquired by the acquisition unit.
前記記憶手段は、データ認識処理を行う領域の位置を示す位置情報と、印刷されるプリンタを識別するプリンタ識別情報とが印刷された印刷用紙が読み取られることにより得られる画像データを記憶し、
前記取得手段は、前記記憶手段に記憶されている画像データを読み取ることにより、前記印刷用紙が印刷されたプリンタを識別するプリンタ識別情報を取得し、
前記取得手段で取得したプリンタ識別情報で識別されるプリンタでの印字位置の補正を指示するべく、前記検出手段で検出された位置と、前記取得手段で取得された位置との差を示す情報を送信する送信手段と、
を更に備えることを特徴とする請求項1乃至3の何れか1項に記載の情報処理装置。
The storage means stores image data obtained by reading a print sheet on which position information indicating a position of a region where data recognition processing is performed and printer identification information for identifying a printer to be printed are printed;
The acquisition unit acquires printer identification information for identifying a printer on which the printing paper is printed by reading image data stored in the storage unit;
Information indicating a difference between the position detected by the detection unit and the position acquired by the acquisition unit in order to instruct correction of the print position in the printer identified by the printer identification information acquired by the acquisition unit. A transmission means for transmitting;
The information processing apparatus according to claim 1, further comprising:
前記送信手段は、前記取得手段で取得したプリンタ識別情報で識別されるプリンタを管理する管理者が操作する管理者端末に、前記取得手段で取得したプリンタ識別情報、及び前記検出手段で検出された位置と、前記取得手段で取得された位置との差を示す情報に送信することを特徴とする請求項4に記載の情報処理装置。   The transmission unit detects the printer identification information acquired by the acquisition unit and the detection unit on an administrator terminal operated by an administrator who manages the printer identified by the printer identification information acquired by the acquisition unit. The information processing apparatus according to claim 4, wherein the information processing apparatus transmits information indicating a difference between the position and the position acquired by the acquisition unit. 帳票フォームデータに、データが書き込まれる領域を示すフィールド領域を設定するフィールド設定手段と、
前記フィールド設定手段で設定されるフィールド領域に書き込まれるデータの属性情報を設定する属性設定手段と、
前記属性設定手段で設定されたフィールド領域の属性情報から、前記帳票フォームデータの印刷用紙の当該フィールド領域のデータ認識処理で用いるデータ認識情報を生成するデータ認識情報生成手段と、
前記データ認識情報生成手段で生成されたデータ認識情報を付加して印刷データを生成する印刷データ生成手段と、
前記印刷データ生成手段で生成された印刷データを印刷するべく出力する出力手段と、
を更に備え、
前記データ認識情報生成手段は、前記属性設定手段で設定されたフィールド領域の属性情報から、データ認識処理を行う領域の位置を示す位置情報を含むデータ認識情報を生成し、
前記印刷データ生成手段は、前記データ認識情報生成手段で生成されたデータ認識情報を、当該位置情報に示される位置に付加して印刷データを生成することを特徴とする請求項1乃至5の何れか1項に記載の情報処理装置。
Field setting means for setting a field area indicating an area in which data is written in the form form data;
Attribute setting means for setting attribute information of data written in the field area set by the field setting means;
Data recognition information generating means for generating data recognition information used in data recognition processing of the field area of the printing paper of the form form data from the attribute information of the field area set by the attribute setting means;
Print data generating means for generating print data by adding the data recognition information generated by the data recognition information generating means;
Output means for outputting the print data generated by the print data generation means for printing;
Further comprising
The data recognition information generating means generates data recognition information including position information indicating the position of the area where data recognition processing is performed, from the attribute information of the field area set by the attribute setting means,
6. The print data generation unit generates the print data by adding the data recognition information generated by the data recognition information generation unit to the position indicated by the position information. The information processing apparatus according to claim 1.
データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置の制御方法であって、
前記情報処理装置の検出手段が、前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出工程と、
前記情報処理装置の取得手段が、前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得工程と、
前記情報処理装置の補正手段が、前記検出工程で検出された位置と、前記取得工程で取得された位置とに従って、前記取得工程で取得された位置を補正する補正工程と、
前記情報処理装置のデータ認識手段が、前記補正工程で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識工程と、
を備えることを特徴とする情報処理装置の制御方法。
A method for controlling an information processing apparatus including a storage unit that stores image data obtained by reading a print sheet on which position information indicating a position of an area for performing data recognition processing is printed,
A detecting step of detecting a position of an area on which the data recognition processing is performed, which is printed on the printing paper, by analyzing the image data stored in the storage unit, and a detecting unit of the information processing apparatus;
The acquisition unit of the information processing apparatus acquires the position of the area for performing the data recognition process indicated by the position information by reading the position information included in the image data stored in the storage unit. Acquisition process;
A correction step in which the correction means of the information processing apparatus corrects the position acquired in the acquisition step according to the position detected in the detection step and the position acquired in the acquisition step;
A data recognition step of performing a data recognition process on an area of image data stored in the storage unit, which is indicated by a position obtained by the data recognition unit of the information processing device being corrected in the correction step;
An information processing apparatus control method comprising:
データ認識処理を行う領域の位置を示す位置情報が印刷された印刷用紙が読み取られることにより得られる画像データを記憶する記憶手段を備えた情報処理装置で実行可能なプログラムあって、
前記情報処理装置を、
前記記憶手段に記憶されている画像データを解析することにより、前記印刷用紙に印刷された、前記データ認識処理を行う領域の位置を検出する検出手段と、
前記記憶手段に記憶されている画像データに含まれる前記位置情報を読み取ることにより、前記位置情報に示された、前記データ認識処理を行う領域の位置を取得する取得手段と、
前記検出手段で検出された位置と、前記取得手段で取得された位置とに従って、前記取得手段で取得された位置を補正する補正手段と、
前記補正手段で補正されることにより得られる位置で示される、前記記憶手段に記憶された画像データの領域に対してデータ認識処理を行うデータ認識手段として機能させることを特徴とするプログラム。


A program that can be executed by an information processing apparatus including a storage unit that stores image data obtained by reading a print sheet on which position information indicating a position of an area for performing data recognition processing is printed.
The information processing apparatus;
Detecting means for analyzing the image data stored in the storage means to detect the position of the area printed on the printing paper and performing the data recognition process;
An acquisition means for acquiring the position of the area for performing the data recognition processing indicated by the position information by reading the position information included in the image data stored in the storage means;
Correction means for correcting the position acquired by the acquisition means according to the position detected by the detection means and the position acquired by the acquisition means;
A program that functions as a data recognition unit that performs a data recognition process on an area of image data stored in the storage unit that is indicated by a position obtained by correction by the correction unit.


JP2010284848A 2010-12-21 2010-12-21 Information processing device, control method and program thereof Withdrawn JP2012133569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010284848A JP2012133569A (en) 2010-12-21 2010-12-21 Information processing device, control method and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010284848A JP2012133569A (en) 2010-12-21 2010-12-21 Information processing device, control method and program thereof

Publications (1)

Publication Number Publication Date
JP2012133569A true JP2012133569A (en) 2012-07-12

Family

ID=46649099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010284848A Withdrawn JP2012133569A (en) 2010-12-21 2010-12-21 Information processing device, control method and program thereof

Country Status (1)

Country Link
JP (1) JP2012133569A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019095849A (en) * 2017-11-17 2019-06-20 富士ゼロックス株式会社 Document processing apparatus and program
US11212865B2 (en) 2016-07-19 2021-12-28 Fujifilm Business Innovation Corp. Terminal apparatus and terminal control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11212865B2 (en) 2016-07-19 2021-12-28 Fujifilm Business Innovation Corp. Terminal apparatus and terminal control method
JP2019095849A (en) * 2017-11-17 2019-06-20 富士ゼロックス株式会社 Document processing apparatus and program
JP7035474B2 (en) 2017-11-17 2022-03-15 富士フイルムビジネスイノベーション株式会社 Document processing equipment and programs
US11301621B2 (en) 2017-11-17 2022-04-12 Fujifilm Business Innovation Corp. Document processing apparatus and non-transitory computer readable medium storing program
US11687705B2 (en) 2017-11-17 2023-06-27 Fujifilm Business Innovation Corp. Document processing apparatus and non-transitory computer readable medium storing program

Similar Documents

Publication Publication Date Title
US8068251B2 (en) Image forming apparatus including a finished image display unit
US8489988B2 (en) Image forming device, information processing device, and method for outputting a plurality of print preview images when detecting an event that makes production of a printed output difficult
US8564806B2 (en) Printing apparatus and printing system that provides for a printing product that includes a base file and an attached file
US20180160009A1 (en) Image processing apparatus and image forming apparatus
CN101951452A (en) Printing state set device, method, system and storage medium
US20150235111A1 (en) Information processing apparatus, information processing method, and recording medium
US8144988B2 (en) Document-image-data providing system, document-image-data providing device, information processing device, document-image-data providing method, information processing method, document-image-data providing program, and information processing program
CN104683633A (en) Image Processing System, Information Processing Apparatus, And Recordable Medium
CN102348031B (en) Image processing system, image processing apparatus, method for controlling display of function setting screen
US8355577B2 (en) Image processing apparatus and method
EP2230630B1 (en) Printer, and program for its operation screen.
US8824020B2 (en) Image editing apparatus, image editing method, image editing system, and recording medium
JP2015028730A (en) Printing system, control method therefor, and program, and printing server, control method therefor, and program
JP2012133569A (en) Information processing device, control method and program thereof
US9336467B2 (en) Information processing apparatus, information processing system, and recording medium
CN104375821A (en) Information processing apparatus, information processing method, and processing apparatus
JP5589381B2 (en) Information processing apparatus, information processing method, and program
JP5604814B2 (en) Information processing apparatus, information processing method, and program
US6851875B2 (en) Printer and print image reference system
CN102737372A (en) Proofreading apparatus, proofreading method, and recording medium
US9626606B2 (en) Data generating apparatus, data generating method, and non-transitory storage medium
JP2017184047A (en) Information processing apparatus, processing method of the same, and program
US20050111049A1 (en) Scanner driver program, information processing apparatus, and copy system
JP2015225535A (en) Information processor, and authentication printing system using same
JP7124859B2 (en) data output system, information processing system, data output method, program

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20130531

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130531

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140304