JP2008131381A - Form generating device, form generating method, program and record medium - Google Patents

Form generating device, form generating method, program and record medium Download PDF

Info

Publication number
JP2008131381A
JP2008131381A JP2006314605A JP2006314605A JP2008131381A JP 2008131381 A JP2008131381 A JP 2008131381A JP 2006314605 A JP2006314605 A JP 2006314605A JP 2006314605 A JP2006314605 A JP 2006314605A JP 2008131381 A JP2008131381 A JP 2008131381A
Authority
JP
Japan
Prior art keywords
mark
data
stored
storage means
image
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
JP2006314605A
Other languages
Japanese (ja)
Inventor
Kyoji Moriuchi
京二 森内
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 IT Solutions Inc
Original Assignee
Canon Software 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 Software Inc filed Critical Canon Software Inc
Priority to JP2006314605A priority Critical patent/JP2008131381A/en
Publication of JP2008131381A publication Critical patent/JP2008131381A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically stick data read from one form to the other form to print without any complicated computer operation between a plurality of different forms. <P>SOLUTION: An area marked on a read form image is detected and stored as form mark information, and the form image is also stored. Further, the area marked on a read field image is detected and stored as field mark information. Further, this device is configured to be controlled by a CPU 101 of an MFP 100 so that a data image is read from a data paper, data of the area corresponding to the form mark information is obtained from the read data image, the obtained data is stored as a rectangular image orOCR result, the data stored as the rectangular image orOCR result is composited in the area corresponding to a mark stored as the field mark information of the form image. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、データ用紙からデータを読み取り、予め登録されているフォームにオーバレイ印刷する帳票生成装置および帳票生成方法およびプログラムおよび記録媒体に関する。   The present invention relates to a form generation device, a form generation method, a program, and a recording medium that read data from a data sheet and perform overlay printing on a pre-registered form.

従来より、指定された矩形エリア内の画像を取込む技術、あるいはその部分の画像のみを消去する技術が提案されている。   Conventionally, a technique for capturing an image in a designated rectangular area or a technique for erasing only the image of the portion has been proposed.

特許文献1には、原稿のどの領域をスキャナで検出するかを、ユーザが予め一般の蛍光カラーマーカ等を用いて矩形領域で囲んでおき、該囲まれた矩形領域だけを走査する自動走査領域選択装置が提案されている。   In Patent Document 1, an automatic scanning area in which an area of a document to be detected by a scanner is enclosed in a rectangular area by a user using a general fluorescent color marker or the like, and only the enclosed rectangular area is scanned. A selection device has been proposed.

特許文献2には、マーカ等により囲まれた領域の画像を原稿画像から除いて、該囲まれた領域の画像を除いた原稿画像を用紙の表面に複写し、且つ、前記囲まれた領域の画像を用紙の裏面に作像する複写機が提案されている。
特開2000−123181号公報 特開平06−178021号公報
In Patent Document 2, an image of an area surrounded by a marker or the like is removed from an original image, an original image excluding the image of the enclosed area is copied on the surface of a sheet, and the area of the enclosed area is Copiers that create images on the back of paper have been proposed.
JP 2000-123181 A Japanese Patent Laid-Open No. 06-178021

従来より、異なるフォームを用いて、一方のフォームから読み取ったデータを、もう一方のフォームに貼り付けて印刷したいといった要望がある。   Conventionally, there has been a demand for using different forms to print data read from one form by pasting it on the other form.

しかし、このような印刷を行おうとすると、従来の技術では、それぞれのフォームにおける各項目の位置情報と、フォーム間での項目の間連を、ユーザが逐次コンピュータ操作で指定していく必要があり、非常に煩雑な作業が強いられていた。   However, in order to perform such printing, in the conventional technology, it is necessary for the user to sequentially specify the position information of each item in each form and the connection between items between forms by computer operation. It was a very cumbersome task.

本発明は、上記の問題点を解決するためになされたもので、本発明の目的は、異なる複数のフォーム間での各項目の関連付けを煩雑なコンピュータ操作なしに行うことができ、一方のフォームから読み取ったデータをもう一方のフォームに自動で貼り付けて(ユーザによる個々の貼り付け操作無しに貼り付けて)印刷する仕組みを提供することである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to associate each item between a plurality of different forms without complicated computer operation. It is to provide a mechanism for automatically pasting the data read from the other form onto the other form (pasting without any individual pasting operation by the user) and printing.

本発明は、フォームデータとフィールドデータとを合成する帳票生成装置において、フォーム用紙からフォーム画像を読み取り、該読み取られたフォーム画像上のマーク付けされた領域を検出する第1の検出手段と、前記第1の検出手段により検出されたマーク付けされた領域の位置を記憶する第1の記憶手段と、前記フォーム画像を記憶する第2の記憶手段と、フィールド用紙からフィールド画像を読み取り、該読み取られたフィールド画像上のマーク付けされた領域を検出する第2の検出手段と、前記第2の検出手段により検出されたマーク付けされた領域の位置を記憶する第3の記憶手段と、前記第3の記憶手段に記憶されたマーク付けされた領域の位置に対応する領域のデータを取得する取得手段と、前記取得手段に取得されたデータを記憶する第4の記憶手段と、前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に記憶されたデータを合成する合成手段と、を有することを特徴とする。   The present invention provides a form generation device for combining form data and field data, wherein a first detection unit that reads a form image from form paper and detects a marked area on the read form image; A first storage means for storing the position of the marked area detected by the first detection means; a second storage means for storing the form image; and a field image read from a field sheet. Second detection means for detecting a marked area on the field image, third storage means for storing the position of the marked area detected by the second detection means, and the third Acquisition means for acquiring the data of the area corresponding to the position of the marked area stored in the storage means, and the data acquired by the acquisition means In the area corresponding to the position of the area corresponding to the mark stored in the first storage means of the form image stored in the second storage means. Synthesizing means for synthesizing data stored in the storage means.

本発明によれば、異なる複数のフォーム間で同一の項目を同一のマーカで指定するといった簡単な準備を行うだけで、従来のような複雑なフォームの登録を必要とせず、コンピュータの知識がないユーザでも容易に、異なる複数のフォーム間で一方のフォームから読み取ったデータをもう一方のフォームに自動で貼り付けて(ユーザによる個々の貼り付け操作無しに貼り付けて)印刷することができる等の効果を奏する。   According to the present invention, simple preparations such as designating the same item between a plurality of different forms with the same marker are not required, registration of a complicated form as in the prior art is not required, and there is no computer knowledge. The user can easily paste the data read from one form between different forms to the other form automatically (without any individual pasting operation by the user) There is an effect.

〔第1実施形態〕
図1は、本発明の一実施形態を示す帳票生成装置を適用可能な多機能周辺機器(MFP:Multi-Function Peripheral)の構成を説明するブロック図である。本実施形態では、MFP(カラーMFP)にてフォーム用紙とデータ用紙をスキャンして、当該MFP内でオーバレイ(合成処理)を行い、印刷を実施するものである。なお、パーソナルコンピュータ,スキャナ,プリンタにより本発明の帳票生成装置を構成してもよい。
[First Embodiment]
FIG. 1 is a block diagram illustrating the configuration of a multi-function peripheral (MFP) to which a form generation device showing an embodiment of the present invention can be applied. In this embodiment, a form sheet and a data sheet are scanned by an MFP (color MFP), and overlay (compositing process) is performed in the MFP to perform printing. The form generation device of the present invention may be configured by a personal computer, a scanner, and a printer.

100は、本発明の帳票生成装置としてのMFPである。このMFP100において、101はCPUであり、ROM103又はハードディスク(HDD)105に格納されたプログラムをRAM102上等で実行して、バス114を介して接続される各部の動作を制御することにより、MFP100全体を統括制御する。   Reference numeral 100 denotes an MFP as a form generation device of the present invention. In this MFP 100, 101 is a CPU, and a program stored in a ROM 103 or a hard disk (HDD) 105 is executed on the RAM 102 or the like, and the operation of each unit connected via the bus 114 is controlled, whereby the entire MFP 100 is controlled. Oversee and control.

104はハードディスクインタフェース(HDD I/F)であり、HDD105とのアクセスを制御する。   A hard disk interface (HDD I / F) 104 controls access to the HDD 105.

106はスキャン部であり、原稿の画像を読み取り、原稿画像に応じた画像データを出力する。107はプリンタ部であり、画像処理部108からの画像データに応じた画像を記録材上に記録する。   A scanning unit 106 reads an image of a document and outputs image data corresponding to the document image. A printer unit 107 records an image corresponding to the image data from the image processing unit 108 on a recording material.

画像処理部108は、画像データの合成等の画像処理を実行する(フォームデータに文字データを合成する)。109はOCR処理部であり、画像データから文字情報を認識する。113は文字サイズ変更処理部であり、画像処理部108によりフォームデータに合成される文字データの文字サイズを変更処理する。   The image processing unit 108 executes image processing such as synthesis of image data (synthesizes character data with form data). Reference numeral 109 denotes an OCR processing unit that recognizes character information from image data. A character size change processing unit 113 changes the character size of the character data combined with the form data by the image processing unit 108.

110はネットワークインタフェース(LAN I/F)で、図示しないネットワークとの通信を制御する。   A network interface (LAN I / F) 110 controls communication with a network (not shown).

111はI/Oであり、操作部112からの入力、操作部112へ出力を制御する。操作部112は、タッチパネルディスプレイ(操作パネル)とハードキーを備え、本MFP100への動作指示や動作設定等を行うためのものである。   Reference numeral 111 denotes an I / O that controls input from the operation unit 112 and output to the operation unit 112. The operation unit 112 includes a touch panel display (operation panel) and hard keys, and is used to perform operation instructions and operation settings for the MFP 100.

以下、図2〜図4を参照して、本発明の帳票生成装置における帳票生成処理の概要について説明する。   The outline of the form generation process in the form generation apparatus of the present invention will be described below with reference to FIGS.

<事前準備>
フォーム用の紙文書に、アンダーライン・マーカ(蛍光ペン等の(半透明な)インク)等の印を付けすることにより(蛍光ペン等の(半透明な)インクを塗布することにより)、差し替える部分を指定する(例えば、図2Aの201a〜201e)。
<Preparation>
Replace a paper document for forms by marking it with an underline marker ((translucent) ink such as a fluorescent pen) (by applying (translucent) ink such as a fluorescent pen) A part is designated (for example, 201a to 201e in FIG. 2A).

データ用の紙文書に、アンダーライン・マーカ等の印を付け、データ部分を指定する(例えば、図3Aの301a〜301e)。   An underline marker or the like is marked on the paper document for data, and the data portion is designated (for example, 301a to 301e in FIG. 3A).

なお、フォームとデータの関連付けは、アンダーライン・マーカ等の印によって関連付けられるものとする。また、矩形領域内にアンダーライン・マーカ等と同一の色で記述されている文字、あるいはマーク等にても関連付けられるものとする。   It is assumed that the form and data are associated with each other by a mark such as an underline marker. In addition, it is assumed that a character or a mark described in the same color as the underline marker or the like in the rectangular area is also associated.

<実現方法>
<オペレーション(フォームの登録)>
図2Aは、本発明の帳票生成装置におけるフォーム登録処理を説明する模式図である。
<Realization method>
<Operation (Form registration)>
FIG. 2A is a schematic diagram for explaining a form registration process in the form generation apparatus of the present invention.

図2Aにおいて、210は本実施形態の操作パネルであり、MFP100の操作部112に設けられたものである。この操作パネル210には、「フォームの登録」ボタン211,「フィールドの登録」ボタン212,「オーバレイの実施」ボタン213,「キャンセル」ボタン214が表示されている。   In FIG. 2A, reference numeral 210 denotes an operation panel according to the present embodiment, which is provided on the operation unit 112 of the MFP 100. On the operation panel 210, a “form registration” button 211, a “field registration” button 212, an “execute overlay” button 213, and a “cancel” button 214 are displayed.

ユーザは、MFP100のスキャン部106の原稿台(不図示)にフォーム用の紙文書(フォーム用紙200)をセットし、操作パネル210より「フォームの登録」ボタン211を選択(タッチ)する。   The user sets a paper document for form (form paper 200) on a document table (not shown) of the scanning unit 106 of the MFP 100, and selects (touches) a “register form” button 211 from the operation panel 210.

これにより、MFP100は、スキャン部106の原稿台にセットされたフォーム用の紙文書(フォーム用紙200)をスキャンする。そして、MFP100は、スキャン部106から出力されるフォーム画像データをRAM102内に保存する。   Accordingly, MFP 100 scans the form paper document (form paper 200) set on the document table of scan unit 106. Then, the MFP 100 stores the form image data output from the scan unit 106 in the RAM 102.

次に、MFP100は、上記保存されたフォーム画像データよりマーク位置(矩形領域)を認識する(例えば、201a〜201e)。また、MFP100は、矩形内にアンダーライン・マーカ等と同一の色で記述されている文字、マーク(例えば、201a内の星印1)も検出する。   Next, the MFP 100 recognizes the mark position (rectangular region) from the stored form image data (for example, 201a to 201e). The MFP 100 also detects characters and marks (for example, a star 1 in 201a) described in the same color as the underline marker in the rectangle.

そして、このマーク検出後、MFP100は、OCR処理部109を有する場合は、検出した矩形領域内のOCR認識(文字、フォントタイプ、フォントサイズの認識)を実行する。そして、項番号を発番し(1,2,3,・・・の順に発番)、該項番号,上記マーク検出及びOCR認識結果をフォームマーク情報202(図2B)としてMFP100のHDD105内に保存する。   After detecting the mark, when the MFP 100 has the OCR processing unit 109, the MFP 100 executes OCR recognition (character, font type, font size recognition) in the detected rectangular area. Then, item numbers are issued (in the order of 1, 2, 3,...), And the item numbers, the mark detection, and the OCR recognition result are stored in the HDD 105 of the MFP 100 as form mark information 202 (FIG. 2B). save.

図2Bは、本実施形態のフォームマーク情報を説明する模式図である。   FIG. 2B is a schematic diagram illustrating form mark information according to the present embodiment.

図2B(a)に示すように、保存対象となる情報は、項目番号,矩形位置情報(左上X座標,左上Y座標,矩形縦サイズ,矩形横サイズ)、色情報(R・G・B)、線種情報(ドットパターン)、フォント情報(フォントタイプ、フォントサイズ、文字色(R・G・B))、紐付け情報等である。なお、フォームマーク情報の一例を図2B(b)に示す。   As shown in FIG. 2B (a), information to be saved includes item number, rectangular position information (upper left X coordinate, upper left Y coordinate, rectangular vertical size, rectangular horizontal size), color information (R, G, B). Line type information (dot pattern), font information (font type, font size, character color (R / G / B)), association information, and the like. An example of the form mark information is shown in FIG. 2B (b).

以下、フォーム登録処理の説明に戻る。   Hereinafter, the description returns to the form registration process.

次に、MFP100は、RAM102内に保持されていたフォーム画像データの矩形領域内から、上記検出したマーク(アンダーライン・マーカ等同一の色で記述されている文字、あるいはマーク)を消去する。   Next, the MFP 100 erases the detected mark (characters or marks described in the same color, such as an underline marker) from the rectangular area of the form image data held in the RAM 102.

そして、MFP100は、上記処理をフォーム画像データ内の全てのマークに対して行い、全てのマークに対して処理が終了すると、フォーム画像データをHDD105に保存する。   Then, the MFP 100 performs the above process on all the marks in the form image data, and stores the form image data in the HDD 105 when the process is completed for all the marks.

図2Cは、本実施形態のフォーム画像の保存イメージを説明する模式図である。   FIG. 2C is a schematic diagram illustrating a saved image of the form image according to the present embodiment.

図2Cに示すように、フォーム画像データ(フォーム用紙200に対応)からマークを消去した画像データがフォーム画像203として保存される。そして、フォーム登録処理を終了する。   As shown in FIG. 2C, the image data in which the mark is deleted from the form image data (corresponding to the form paper 200) is stored as the form image 203. Then, the form registration process ends.

<オペレーション(フィールドの登録)>
図3Aは、本発明の帳票生成装置におけるフィールド登録処理を説明する模式図である。
<Operation (Register Field)>
FIG. 3A is a schematic diagram for explaining field registration processing in the form generation device of the present invention.

ユーザは、MFP100のスキャン部106の原稿台(不図示)にフィールド用の紙文書(フィールド用紙300a,300b)をセットし、操作パネル210より「フィールドの登録」ボタン212を選択(タッチ)する。   The user sets a field paper document (field papers 300 a and 300 b) on a document table (not shown) of the scanning unit 106 of the MFP 100, and selects (touches) a “register field” button 212 from the operation panel 210.

これにより、MFP100は、スキャン部106の原稿台にセットされたフィールド用紙(300a,300b等)を1枚スキャンする。そして、MFP100は、スキャン部106から出力されるフィールド画像データをRAM102内に保存する。なお、ここでMFP100は、フィールド用紙番号を発番しRAM102内に保存する。なお、フィールド用紙番号は1,2,3,・・・の順に発番する。   As a result, the MFP 100 scans one field sheet (300a, 300b, etc.) set on the document table of the scanning unit 106. Then, the MFP 100 stores the field image data output from the scan unit 106 in the RAM 102. Here, the MFP 100 issues a field sheet number and stores it in the RAM 102. The field paper numbers are issued in the order of 1, 2, 3,.

次に、MFP100は、上記保存されたフィールド画像データよりマーク位置(矩形領域)を認識する(例えば、フィールド用紙300aの場合301a〜301c、フィールド用紙300bの場合301d〜301e)。また、MFP100は、矩形内にアンダーライン・マーカ等と同一の色で記述されている文字、マーク(例えば、301a内の星印1)も検出する。以下、これらの認識情報をフィールドマークと呼ぶ。   Next, the MFP 100 recognizes the mark position (rectangular region) from the stored field image data (for example, 301a to 301c for the field paper 300a and 301d to 301e for the field paper 300b). The MFP 100 also detects characters and marks (for example, a star 1 in 301a) described in the same color as the underline marker in the rectangle. Hereinafter, these pieces of recognition information are referred to as field marks.

次に、MFP100は、HDD105に保存されたフォームマーク情報202を取得し、上記認識したフィールドマークの色情報,線種情報が一致するものを検出する。そして、一致するものがあった場合は、MFP100は、該一致したフィールドマークをフィールドマーク情報302(図3B)としてMFP100のHDD105内に保存する。   Next, the MFP 100 acquires the form mark information 202 stored in the HDD 105, and detects that the color information and line type information of the recognized field mark match. If there is a match, the MFP 100 stores the matched field mark in the HDD 105 of the MFP 100 as field mark information 302 (FIG. 3B).

図3Bは、本実施形態のフィールドマーク情報を説明する模式図である。   FIG. 3B is a schematic diagram illustrating field mark information according to the present embodiment.

図3B(a)に示すように、保存対象となる情報は、発番されたフィールド用紙番号,一致したフォームマーク情報(図2B)の項目番号,検出された矩形位置情報(左上X座標,左上Y座標,矩形縦サイズ,矩形横サイズ)、色情報(R・G・B)、線種情報(ドットパターン)、紐付け情報等である。なお、フィールドマーク情報の一例を図3B(b)に示す。   As shown in FIG. 3B (a), the information to be saved includes the number of the field sheet number issued, the item number of the matched form mark information (FIG. 2B), the detected rectangular position information (upper left X coordinate, upper left) Y coordinate, rectangular vertical size, rectangular horizontal size), color information (R, G, B), line type information (dot pattern), association information, and the like. An example of field mark information is shown in FIG. 3B (b).

以下、フィールド登録処理の説明に戻る。   Hereinafter, the description returns to the field registration process.

そして、MFP100は、上記処理をフォーム画像データ内の全てのマークに対して行い、全てのマークに対して処理が終了すると、次のフィールド用紙に対する処理を行う。そして、全てのフィールド用紙に対する処理が終了すると、フィールド登録処理を終了する。   Then, the MFP 100 performs the above process for all the marks in the form image data, and when the process is completed for all the marks, performs the process for the next field sheet. When the processing for all field sheets is completed, the field registration process is terminated.

<オペレーション(オーバレイの実施)>
図4Aは、本発明の帳票生成装置におけるオーバレイの実施処理を説明する模式図である。
<Operation (overlay implementation)>
FIG. 4A is a schematic diagram for explaining overlay execution processing in the form generation device of the present invention.

オーバレイの実施は、データ読取処理,オーバレイ処理,印刷処理の順に実行される。   The overlay is executed in the order of data reading processing, overlay processing, and printing processing.

まず、データ読取処理について説明する。   First, the data reading process will be described.

ユーザは、MFP100のスキャン部106の原稿台(不図示)にデータの紙文書(データ用紙400)をセットし、操作パネル210より「オーバレイの実施」ボタン213を選択(タッチ)する。   The user sets a paper document (data sheet 400) of data on a document table (not shown) of the scanning unit 106 of the MFP 100, and selects (touches) an “execute overlay” button 213 from the operation panel 210.

これにより、MFP100は、スキャン部106の原稿台にセットされたデータ用紙400を1枚スキャンする。そして、MFP100は、スキャン部106から出力されるデータ画像をRAM102内に保存する。なお、ここでMFP100は、フィールド用紙番号を発番しRAM102内に保存する。なお、フィールド用紙番号は1,2,3,・・・の順に発番する。   As a result, the MFP 100 scans one data sheet 400 set on the document table of the scanning unit 106. Then, the MFP 100 stores the data image output from the scanning unit 106 in the RAM 102. Here, the MFP 100 issues a field sheet number and stores it in the RAM 102. The field paper numbers are issued in the order of 1, 2, 3,.

次に、MFP100は、発番したフィールド用紙番号に紐つけられたフィールドマーク情報302内のいずれかの項目に対応する位置情報を取得し、該位置情報に基づいて上記データ画像の矩形領域を切り出す。   Next, the MFP 100 acquires position information corresponding to any item in the field mark information 302 associated with the issued field sheet number, and cuts out a rectangular area of the data image based on the position information. .

さらに、MFP100は、OCR処理部109を有する場合は、上記切り出した矩形領域内のOCR認識(文字)を実施する。そして、MFP100は、上記切り出しに用いた位置情報に対応する項目番号,上記OCR認識結果,切り出した矩形領域画像データを、矩形画像orOCR結果401(図4B)としてMFP100のHDD105内に保存する。   Further, when the MFP 100 includes the OCR processing unit 109, the MFP 100 performs OCR recognition (characters) in the cut out rectangular area. Then, the MFP 100 stores the item number corresponding to the position information used for the cutout, the OCR recognition result, and the cutout rectangular area image data in the HDD 105 of the MFP 100 as a rectangular image or OCR result 401 (FIG. 4B).

図4Bは、本実施形態の矩形画像orOCR結果を説明する模式図である。   FIG. 4B is a schematic diagram illustrating a rectangular image or OCR result of the present embodiment.

図4B(a)に示すように、保存対象となる情報は、対応するフィールドマーク情報の項目番号,文字データ(OCR処理部を備える場合のみ),矩形領域画像データである。なお、矩形画像orOCR結果401の一例を図4B(b)に示す。   As shown in FIG. 4B (a), the information to be stored is the item number of the corresponding field mark information, character data (only when an OCR processing unit is provided), and rectangular area image data. An example of the rectangular image or OCR result 401 is shown in FIG. 4B (b).

以下、データ読取処理の説明に戻る。   Hereinafter, the description returns to the data reading process.

そして、MFP100は、フィールド用紙番号に対応する全ての項目に対して上記切り出し処理〜保存処理を行う。そして、前記フィールド用紙番号に対応する全ての項目に対して処理が終了すると、MFP100は、さらにフィールドマーク情報302内の全ての項目に読み取ったデータの紐つけが終了したか判定し、まだ終了していない場合は、次のデータ用紙に対する処理を行う。   Then, the MFP 100 performs the above-described clipping process through storage process for all items corresponding to the field sheet number. When the processing for all the items corresponding to the field sheet number is completed, the MFP 100 further determines whether the association of the read data to all the items in the field mark information 302 has been completed, and has ended. If not, the next data sheet is processed.

そして、フィールドマーク情報302内の全ての項目に対して読み取ったデータの紐つけが終了した場合には、オーバレイ処理に処理を移行させる。   When the association of the read data with respect to all items in the field mark information 302 is completed, the processing is shifted to overlay processing.

オーバレイ処理では、まず、MFP100は、保存されているフォームマーク情報202,フォーム画像203,矩形画像orOCR結果401を取得する。   In overlay processing, first, the MFP 100 obtains saved form mark information 202, a form image 203, and a rectangular image or OCR result 401.

そして、MFP100がOCR処理部109を備えている場合は、MFP100は、矩形画像orOCR結果401内の各文字データを、項目番号が一致するフォームマーク情報202の矩形領域位置情報に対応する位置に、フォームマーク情報202のフォント情報(フォントタイプ,フォントサイズ,色等)にて貼り付ける。   If the MFP 100 includes the OCR processing unit 109, the MFP 100 sets each character data in the rectangular image or OCR result 401 to a position corresponding to the rectangular area position information of the form mark information 202 with the matching item number. It is pasted with the font information (font type, font size, color, etc.) of the form mark information 202.

一方、MFP100がOCR処理部109を備えている場合は、MFP100は、矩形画像orOCR結果401内の各画像データを、項目番号が一致するフォームマーク情報202内の矩形領域位置情報に対応するフォーム画像203内の位置に貼り付ける。   On the other hand, when the MFP 100 includes the OCR processing unit 109, the MFP 100 converts each image data in the rectangular image or OCR result 401 to the form image corresponding to the rectangular area position information in the form mark information 202 with the matching item number. Paste it at a position in 203.

そして、貼り付けが全て終了してフォーム画像203に対して印刷処理を実行する。   Then, all the pasting is completed, and the printing process is executed on the form image 203.

以上の読み取り処理,オーバレイ処理,印刷処理を、原稿台上のデータ用紙400が無くなるまで繰り返し実行する。   The above reading process, overlay process, and printing process are repeated until the data sheet 400 on the document table is exhausted.

以下、図5〜図10のフローチャートを参照して、本発明の帳票生成装置における帳票生成処理について詳細に説明する。   Hereinafter, the form generation processing in the form generation apparatus of the present invention will be described in detail with reference to the flowcharts of FIGS.

図5は、本発明における第1の制御処理手順の一例を示すフローチャートであり、図1に示したMFP100における帳票生成処理に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S501〜S511は各ステップを示す。   FIG. 5 is a flowchart showing an example of a first control processing procedure according to the present invention, and corresponds to the form generation processing in the MFP 100 shown in FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S501 to S511 denote steps.

まず、操作パネル210の「フォームの登録」ボタン211が押下(タッチ)されると、ステップS501において、CPU101は、原稿台にセットされたフォーム用の紙文書(フォーム用紙200)をスキャン部106によりスキャンさせ、スキャン部106から出力されるフォーム画像データをRAM102内に保存する。   First, when the “form registration” button 211 on the operation panel 210 is pressed (touched), in step S501, the CPU 101 causes the scanning unit 106 to scan a paper document for form (form paper 200) set on the document table. The form image data output from the scan unit 106 is stored in the RAM 102.

次に、ステップS502において、CPU101は、フォーム登録処理を行い、フォームマーク情報202,フォーム画像203をHDD105に保存する。なお、フォーム登録処理の詳細は後述する図6に示す。   Next, in step S <b> 502, the CPU 101 performs form registration processing and stores the form mark information 202 and the form image 203 in the HDD 105. Details of the form registration process are shown in FIG.

次に、操作パネル210の「フィールドの登録」ボタン212が押下(タッチ)されると、ステップS503において、CPU101は、原稿台にセットされたフィールド用紙300の有無を判定し、フィールド用紙300が有ると判定した場合には、ステップS504において、フィールド用紙300をスキャン部106によりスキャンさせ、スキャン部106から出力されるフィールド用紙データをRAM102内に保存する。なお、図示しないが、ここで、CPU101は、フィールド用紙番号を発番しRAM102内に保存する。なお、フィールド用紙番号は1,2,3,・・・の順に発番する。   Next, when the “register field” button 212 on the operation panel 210 is pressed (touched), in step S503, the CPU 101 determines the presence or absence of the field sheet 300 set on the document table, and the field sheet 300 is present. In step S504, the field sheet 300 is scanned by the scanning unit 106, and the field sheet data output from the scanning unit 106 is stored in the RAM 102. Although not shown, the CPU 101 issues a field paper number and stores it in the RAM 102. The field paper numbers are issued in the order of 1, 2, 3,.

次に、ステップS505において、CPU101は、フィールド登録処理を行い、フィールドマーク情報302をHDD105に保存する。なお、フィールド登録処理の詳細は後述する図7に示す。   In step S <b> 505, the CPU 101 performs field registration processing and saves the field mark information 302 in the HDD 105. Details of the field registration process are shown in FIG.

そして、CPU101は、ステップS503に処理を戻す。   Then, the CPU 101 returns the process to step S503.

そして、ステップS503で、原稿台上のフィールド用紙300が終了したと判定した場合には、CPU101は、操作パネル210の「オーバレイの実施」ボタン213が押下(タッチ)されるまで待機する。   If it is determined in step S503 that the field sheet 300 on the document table has been completed, the CPU 101 waits until the “execute overlay” button 213 on the operation panel 210 is pressed (touched).

そして、操作パネル210の「オーバレイの実施」ボタン213が押下(タッチ)されると、ステップS506において、CPU101は、原稿台にセットされたデータ用紙400の有無を判定し、データ用紙400が有ると判定した場合には、ステップS507において、データ用紙400をスキャン部106によりスキャンさせ、スキャン部106から出力されるデータ画像をRAM102内に保存する。なお、図示しないが、ここで、CPU101は、フィールド用紙番号を発番しRAM102内に保存する。なお、フィールド用紙番号は1,2,3,・・・の順に発番する。   When the “execute overlay” button 213 on the operation panel 210 is pressed (touched), in step S506, the CPU 101 determines whether or not the data sheet 400 is set on the document table. If it is determined, the data sheet 400 is scanned by the scanning unit 106 in step S507, and the data image output from the scanning unit 106 is stored in the RAM 102. Although not shown, the CPU 101 issues a field paper number and stores it in the RAM 102. The field paper numbers are issued in the order of 1, 2, 3,.

次に、ステップS508において、CPU101は、データ読取処理を行い、フォームマーク情報内の項目と読み取り情報(矩形情報orOCR情報)とを紐付けた矩形画像orOCR結果401をHDD105に保存する。なお、データ読取処理の詳細は後述する図8に示す。   Next, in step S <b> 508, the CPU 101 performs data reading processing, and stores in the HDD 105 a rectangular image or OCR result 401 in which items in the form mark information and reading information (rectangular information or OCR information) are linked. Details of the data reading process are shown in FIG.

次に、ステップS509において、CPU101は、データ読取処理でフォームマーク情報内の全項目の紐付けが終了したか否かを判定し、まだ終了していないと判定した場合には、ステップS506に処理を戻し、次のデータ用紙のスキャン処理を行う。   Next, in step S509, the CPU 101 determines whether or not the association of all items in the form mark information has been completed in the data reading process. If it is determined that it has not been completed, the process proceeds to step S506. And the next data sheet is scanned.

一方、ステップS509で、データ読取処理でフォームマーク情報内の全項目の紐付けが終了したと判断した場合には、ステップS510に処理を進める。   On the other hand, if it is determined in step S509 that all items in the form mark information have been linked in the data reading process, the process proceeds to step S510.

ステップS510では、CPU101は、オーバレイ処理を実行し、オーバレイされたフォーム画像をプリンタ部107に印刷処理させ、印刷結果402を出力させる。そして、ステップS506に処理を戻し、次のデータ用紙に処理を移行させる。   In step S510, the CPU 101 executes overlay processing, causes the printer unit 107 to print the overlaid form image, and outputs a print result 402. Then, the process returns to step S506 to shift the process to the next data sheet.

そして、ステップS506で、原稿台上のデータ用紙400が終了したと判断した場合には、CPU101は、本帳票生成処理を終了する。   If it is determined in step S506 that the data sheet 400 on the document table has been completed, the CPU 101 ends the form generation process.

以下、図6を参照して、図5のステップS502に示したフォーム登録処理について詳細に説明する。   Hereinafter, the form registration process shown in step S502 of FIG. 5 will be described in detail with reference to FIG.

図6は、本発明における第2の制御処理手順の一例を示すフローチャートであり、図5のステップS502に示したフォーム登録処理に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S601〜S608は各ステップを示す。   FIG. 6 is a flowchart showing an example of the second control processing procedure in the present invention, and corresponds to the form registration processing shown in step S502 of FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S601 to S608 indicate each step.

まず、ステップS601において、CPU101は、RAM102に保存されているフォーム画像データを取得し、ステップS602において、上記取得したフォーム画像データよりマーク位置検出処理を実行して、マーク位置(矩形領域)の認識を行い、矩形内にアンダーライン・マーカ等と同一の色で記述されている文字、マークも検出する。なお、このマーク位置検出処理の詳細は後述する図10に示す。   First, in step S601, the CPU 101 acquires form image data stored in the RAM 102. In step S602, the CPU 101 executes mark position detection processing from the acquired form image data to recognize the mark position (rectangular region). To detect characters and marks described in the same color as the underline marker in the rectangle. Details of this mark position detection process are shown in FIG.

次に、ステップS603において、CPU101は、ステップS602で検出された全てのマークに対してS604〜S607の処理が終了したか否かを判定し、まだ終了していないと判定した場合には、ステップS602で検出したマークのうち未処理のいずれかのマークを選択し(以下、このマークを現在のマークと呼ぶ)、ステップS604に処理を進める。   Next, in step S603, the CPU 101 determines whether or not the processing of S604 to S607 has been completed for all the marks detected in step S602. Among the marks detected in S602, any unprocessed mark is selected (hereinafter, this mark is referred to as the current mark), and the process proceeds to step S604.

ステップS604では、CPU101は、MFP100にOCR処理部109が設けられているか否かを判定し、OCR処理部109が設けられていると判定した場合には、ステップS605に処理を進める。   In step S604, the CPU 101 determines whether or not the MFP 100 is provided with the OCR processing unit 109. If it is determined that the OCR processing unit 109 is provided, the process proceeds to step S605.

ステップS605では、CPU101は、現在のマークに対応する矩形領域内のOCR認識(文字、フォントタイプ、フォントサイズの認識)を実行し、ステップS606において、項目番号を発番して、該項目番号とともに上記マーク検出及びOCR認識結果をフォームマーク情報202(図2B)としてHDD105内に保存する。   In step S605, the CPU 101 executes OCR recognition (character, font type, font size recognition) in the rectangular area corresponding to the current mark. In step S606, the CPU 101 issues an item number together with the item number. The mark detection and OCR recognition results are stored in the HDD 105 as form mark information 202 (FIG. 2B).

一方、ステップS604で、MFP100にOCR処理部109が設けられていないと判定した場合には、CPU101は、そのままステップS606に処理を進め、項目番号を発番して、該項目番号とともに上記マーク検出結果をフォームマーク情報202(図2B)としてHDD105内に保存する。   On the other hand, if it is determined in step S604 that the OCR processing unit 109 is not provided in the MFP 100, the CPU 101 proceeds to step S606 as it is, issues an item number, and detects the mark together with the item number. The result is stored in the HDD 105 as form mark information 202 (FIG. 2B).

次に、ステップS607において、CPU101は、RAM102内に保持されていたフォーム画像データから、現在のマーク(アンダーライン・マーカ等同一の色で記述されている文字、あるいはマーク)に対応する矩形領域を消去する(図2C参照)。そして、CPU101は、ステップS602に処理を戻す。   Next, in step S607, the CPU 101 creates a rectangular area corresponding to the current mark (characters or marks described in the same color, such as underline markers) from the form image data held in the RAM 102. Erase (see FIG. 2C). Then, the CPU 101 returns the process to step S602.

そして、ステップS603で、ステップS602で検出された全てのマークに対してS604〜S607の処理が終了したと判定した場合には、CPU101は、ステップS608において、RAM102内に保持され、マーク領域が削除されたフォーム画像203(図2C)をHDD105に保存し、処理を終了する。   If it is determined in step S603 that the processing in steps S604 to S607 has been completed for all the marks detected in step S602, the CPU 101 retains the mark area in the RAM 102 in step S608 and deletes the mark area. The formed form image 203 (FIG. 2C) is stored in the HDD 105, and the process is terminated.

以下、図7を参照して、図5のステップS505に示したフィールド登録処理について詳細に説明する。   Hereinafter, the field registration process shown in step S505 of FIG. 5 will be described in detail with reference to FIG.

図7は、本発明における第3の制御処理手順の一例を示すフローチャートであり、図5のステップS503に示したフィールド登録処理に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S701〜S707は各ステップを示す。   FIG. 7 is a flowchart showing an example of the third control processing procedure in the present invention, and corresponds to the field registration processing shown in step S503 of FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S701 to S707 indicate steps.

まず、ステップS701において、CPU101は、RAM102に保存されているフィールド画像データ,フィールド用紙番号を取得する。   First, in step S <b> 701, the CPU 101 acquires field image data and field sheet number stored in the RAM 102.

次に、ステップS702において、CPU101は、上記取得したフォーム画像データよりマーク位置検出処理を実行して、マーク位置(矩形領域)の認識を行い、矩形内にアンダーライン・マーカ等と同一の色で記述されている文字、マークも検出する。なお、このマーク位置検出処理の詳細は後述する図10に示す。   In step S702, the CPU 101 executes mark position detection processing from the acquired form image data, recognizes the mark position (rectangular area), and uses the same color as the underline marker in the rectangle. Detects written characters and marks. Details of this mark position detection process are shown in FIG.

次に、ステップS703において、CPU101は、ステップS702で検出された全てのマークに対してS704〜S707の処理が終了したか否かを判定し、まだ終了していないと判定した場合には、ステップS602で検出したマークのうち未処理のいずれかのマークを選択し(以下、このマークを現在のマークと呼ぶ)、ステップS704に処理を進める。   Next, in step S703, the CPU 101 determines whether or not the processing of S704 to S707 has been completed for all the marks detected in step S702. Of the marks detected in S602, any unprocessed mark is selected (hereinafter, this mark is referred to as the current mark), and the process proceeds to step S704.

ステップS704では、CPU101は、HDD105に保存されているフォームマーク情報202からフォーム情報を1つ取得する処理を行い、ステップS705に処理を進める。   In step S704, the CPU 101 performs processing for acquiring one form information from the form mark information 202 stored in the HDD 105, and proceeds to step S705.

ステップS705では、CPU101は、全てのフォームマーク情報の読み込みを終了しており、ステップS704でフォームマーク情報を取得できなかった否かを判定する。   In step S705, the CPU 101 finishes reading all the form mark information, and determines whether the form mark information could not be acquired in step S704.

ステップS705では、CPU101は、まだ全てのフォームマーク情報を読み込みが終了しておらず、ステップS704でフォームマーク情報を取得できたと判定した場合には、ステップS706に処理を進める。   In step S705, if the CPU 101 determines that all the form mark information has not been read yet and has acquired the form mark information in step S704, the process proceeds to step S706.

ステップS706では、CPU101は、ステップS704で取得したフォームマーク情報と現在のマークの色情報,線種等が一致するか否かを判定し、一致しないと判定した場合には、ステップS704に処理を戻し、次のフォームマーク情報を取得する。   In step S706, the CPU 101 determines whether the form mark information acquired in step S704 matches the current mark color information, line type, and the like. If it is determined that they do not match, the process proceeds to step S704. Return and get the next form mark information.

そして、ステップS706で、ステップS704で取得したフォームマーク情報と現在のマークの色情報,線種等が一致すると判断した場合には、ステップS707に処理を進める。   If it is determined in step S706 that the form mark information acquired in step S704 matches the color information, line type, etc. of the current mark, the process proceeds to step S707.

ステップS707において、CPU101は、フィールド用紙番号,項目番頭とともに、現在のマークの検出結果をフィールドマーク情報302(図3B)としてHDD105内に保存する。そして、ステップS703に処理を戻す。   In step S707, the CPU 101 saves the current mark detection result in the HDD 105 as field mark information 302 (FIG. 3B) together with the field sheet number and item head. Then, the process returns to step S703.

また、ステップS705では、既に全てのフォームマーク情報の読み込みを終了しており、ステップS704でフォームマーク情報を取得できなかったと判定した場合、ステップS703に処理を戻す。   If it is determined in step S705 that reading of all form mark information has already been completed and form mark information has not been acquired in step S704, the process returns to step S703.

そして、ステップS703で、ステップS702で検出された全てのマークに対してS704〜S707の処理が終了したと判定した場合には、CPU101は、処理を終了する。   If it is determined in step S703 that the processing in steps S704 to S707 has been completed for all the marks detected in step S702, the CPU 101 ends the processing.

以下、図8を参照して、図5のステップS508に示したデータ読取処理について詳細に説明する。   Hereinafter, the data reading process shown in step S508 of FIG. 5 will be described in detail with reference to FIG.

図8は、本発明における第4の制御処理手順の一例を示すフローチャートであり、図5のステップS508に示したデータ読取処理に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S801〜S808は各ステップを示す。   FIG. 8 is a flowchart showing an example of the fourth control processing procedure in the present invention, and corresponds to the data reading processing shown in step S508 of FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S801 to S808 indicate steps.

まず、ステップS801において、CPU101は、RAM102に保存されているデータ画像,フィールド用紙番号を取得し、ステップS802において、CPU101は、ステップS802で取得したフィールド用紙番号に対応するフィールドマーク情報302をHDD105から取得する。   First, in step S801, the CPU 101 acquires a data image and a field paper number stored in the RAM 102. In step S802, the CPU 101 acquires field mark information 302 corresponding to the field paper number acquired in step S802 from the HDD 105. get.

次に、ステップS803において、CPU101は、ステップS802で取得した全てのフィールドマーク情報に対してS804〜S808の処理が終了したか否かを判定し、まだ終了していないと判定した場合には、ステップS802で取得したフィールドマーク情報のうち矩形画像orOCR結果401にデータが格納されていない項目番号の最も小さいフィールドマーク情報を選択し(以下、このフィールドマーク情報を現在のフィールドマーク情報と呼ぶ)、ステップS804に処理を進める。   Next, in step S803, the CPU 101 determines whether or not the processing in steps S804 to S808 has been completed for all the field mark information acquired in step S802. Of the field mark information acquired in step S802, the field mark information having the smallest item number for which no data is stored in the rectangular image or OCR result 401 is selected (hereinafter, this field mark information is referred to as current field mark information). The process proceeds to step S804.

ステップS804では、CPU101は、現在のフィールドマーク情報に対応する位置情報に基づいて画像データの矩形領域を切り出し、該切り出した矩形領域からマークを消去する。   In step S804, the CPU 101 cuts out a rectangular area of the image data based on the position information corresponding to the current field mark information, and deletes the mark from the cut out rectangular area.

次に、ステップS805において、CPU101は、MFP100にOCR処理部109が設けられているか否かを判定し、OCR処理部109が設けられていると判定した場合には、ステップS806に処理を進める。   In step S805, the CPU 101 determines whether the MFP 100 is provided with the OCR processing unit 109. If the CPU 101 determines that the OCR processing unit 109 is provided, the process proceeds to step S806.

ステップS806では、CPU101は、OCR処理部109を用いて、ステップS804で切り出した矩形領域内のOCR認識(文字)を実行し、ステップS807において、現在のフィールドマーク情報に対応する項目のOCR認識結果を矩形画像orOCR結果401(図4B)の文字データとしてHDD105内に保存する。そして、ステップS808に処理を進める。   In step S806, the CPU 101 executes OCR recognition (characters) in the rectangular area cut out in step S804 using the OCR processing unit 109, and in step S807, the OCR recognition result of the item corresponding to the current field mark information. Are stored in the HDD 105 as character data of the rectangular image or OCR result 401 (FIG. 4B). Then, the process proceeds to step S808.

一方、ステップS805で、MFP100にOCR処理部109が設けられていないと判定した場合には、CPU101は、そのままステップS808に処理を進める。   On the other hand, if it is determined in step S805 that the OCR processing unit 109 is not provided in the MFP 100, the CPU 101 advances the process to step S808 as it is.

ステップS808では、CPU101は、ステップS804で切り出した矩形領域画像を現在のフィールドマーク情報に対応する項目のOCR認識結果を矩形画像orOCR結果401(図4B)の画像データとしてHDD105内に保存する。そして、ステップS803に処理を戻す。   In step S808, the CPU 101 stores the OCR recognition result of the item corresponding to the current field mark information in the HDD 105 as the image data of the rectangular image or OCR result 401 (FIG. 4B) for the rectangular area image cut out in step S804. Then, the process returns to step S803.

そして、ステップS803で、ステップS802で取得した全てのフィールドマーク情報に対してS804〜S808の処理が終了したと判断した場合には、CPU101は、本データ読み取り処理を終了する。   If it is determined in step S803 that the processes in steps S804 to S808 have been completed for all field mark information acquired in step S802, the CPU 101 ends the data reading process.

以下、図9を参照して、図5のステップS510に示したオーバレイ処理(合成処理)について詳細に説明する。   Hereinafter, with reference to FIG. 9, the overlay process (synthesis process) shown in step S510 of FIG. 5 will be described in detail.

図9は、本発明における第5の制御処理手順の一例を示すフローチャートであり、図5のステップS510に示したオーバレイ処理(合成処理)に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S901〜S907は各ステップを示す。   FIG. 9 is a flowchart showing an example of the fifth control processing procedure according to the present invention, and corresponds to the overlay processing (synthesis processing) shown in step S510 of FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S901 to S907 indicate each step.

まず、ステップS901において、CPU101は、HDD105に保存されているフォーム画像203を取得する。   First, in step S <b> 901, the CPU 101 acquires the form image 203 stored in the HDD 105.

次に、ステップS902において、CPU101は、HDD105から矩形画像orOCR結果401を取得する。   In step S <b> 902, the CPU 101 acquires a rectangular image or OCR result 401 from the HDD 105.

次に、ステップS903において、ステップS902で取得した全ての矩形画像orOCR結果に対してS904〜S907の処理が終了したと判定したか否かを判定し、まだ全ての矩形画像orOCR結果に対してS904〜S907の処理が終了していないと判定した場合には、CPU101は、ステップS902で検出した矩形画像orOCR結果のうち未処理のいずれかの矩形画像orOCR結果を選択し(以下、この矩形画像orOCR結果を現在の矩形画像orOCR結果と呼ぶ)、ステップS904に処理を進める。   Next, in step S903, it is determined whether or not the processing of S904 to S907 has been completed for all the rectangular images or OCR results acquired in step S902, and S904 is still performed for all the rectangular images or OCR results. If the CPU 101 determines that the processing in S907 has not been completed, the CPU 101 selects one of the unprocessed rectangular images orOCR results from the rectangular image orOCR results detected in step S902 (hereinafter, this rectangular image orOCR). The result is called a current rectangular image or OCR result), and the process proceeds to step S904.

ステップS904では、CPU101は、HDD105からフォーム画像203を取得し、ステップS905に処理を進める。   In step S904, the CPU 101 acquires the form image 203 from the HDD 105, and advances the process to step S905.

次に、ステップS905において、CPU101は、MFP100にOCR処理部109が設けられているか否かを判定し、OCR処理部109が設けられていると判定した場合には、ステップS906に処理を進める。   Next, in step S905, the CPU 101 determines whether or not the MFP 100 is provided with the OCR processing unit 109. If the CPU 101 determines that the OCR processing unit 109 is provided, the process proceeds to step S906.

ステップS906では、CPU101は、現在の矩形画像orOCR結果と項目番号が一致するフォームマーク情報の矩形領域位置情報に対応する矩形領域に、該フォームマーク情報のフォント情報(フォントタイプ、フォントサイズ、色等)にて、現在の矩形画像orOCR結果内の文字データを貼り付ける。なお、領域サイズが異なる場合は、CPU101は文字サイズ変更処理部113を用いて領域サイズに合わせたフォントサイズにて貼り付ける。また、CPU101は、縦横比を判断して自動的に縦書き、あるいは横書きに変更して貼り付けを行うように制御する。そして、ステップS903に処理を戻す。   In step S906, the CPU 101 adds font information (font type, font size, color, etc.) of the form mark information to a rectangular area corresponding to the rectangular area position information of the form mark information whose item number matches the current rectangular image or OCR result. ), The character data in the current rectangular image or OCR result is pasted. If the area sizes are different, the CPU 101 uses the character size change processing unit 113 to paste the fonts in accordance with the area size. Further, the CPU 101 determines that the aspect ratio is determined, and automatically controls the vertical writing or the horizontal writing to be pasted. Then, the process returns to step S903.

一方、ステップS905で、MFP100にOCR処理部109が設けられていないと判定した場合には、ステップS907に処理を進める。   On the other hand, if it is determined in step S905 that the OCR processing unit 109 is not provided in the MFP 100, the process proceeds to step S907.

ステップS907では、CPU101は、現在の矩形画像orOCR結果と項目番号が一致するフォームマーク情報の矩形領域位置情報に対応する矩形領域に、現在の矩形画像orOCR結果内の画像データを貼り付ける。なお、領域サイズが異なる場合は、CPU101は画像データを領域サイズに合わせて拡縮して貼り付ける。そして、ステップS903に処理を戻す。   In step S907, the CPU 101 pastes the image data in the current rectangular image or OCR result into the rectangular area corresponding to the rectangular area position information of the form mark information whose item number matches the current rectangular image or OCR result. If the area sizes are different, the CPU 101 enlarges / reduces the image data according to the area size and pastes the image data. Then, the process returns to step S903.

そして、ステップS903で、ステップS902で取得した全ての矩形画像orOCR結果に対してS904〜S907の処理が終了したと判定した場合には、CPU101は、本オーバレイ処理を終了する。   If it is determined in step S903 that the processing in steps S904 to S907 has been completed for all the rectangular images or OCR results acquired in step S902, the CPU 101 ends the overlay processing.

以下、図10を参照して、図6のステップS602,図7のステップS702に示したマーク検出処理について詳細に説明する。   Hereinafter, with reference to FIG. 10, the mark detection process shown in step S602 in FIG. 6 and step S702 in FIG. 7 will be described in detail.

図10は、本発明における第6の制御処理手順の一例を示すフローチャートであり、図6のステップS602,図7のステップS702に示したマーク検出処理に対応する。なお、このフローチャートの処理は、図1に示したCPU101がROM103又はHDD105に格納されるプログラムをRAM102上で実行することにより実現される。また、図中、S1001〜S1005は各ステップを示す。   FIG. 10 is a flowchart showing an example of the sixth control processing procedure in the present invention, and corresponds to the mark detection processing shown in step S602 in FIG. 6 and step S702 in FIG. Note that the processing in this flowchart is realized by the CPU 101 illustrated in FIG. 1 executing a program stored in the ROM 103 or the HDD 105 on the RAM 102. In the figure, S1001 to S1005 indicate each step.

まず、ステップS1001において、CPU101は、対象となる画像データより色を持つ画素を検出する(特徴抽出(色))。   First, in step S1001, the CPU 101 detects a pixel having a color from target image data (feature extraction (color)).

次に、ステップS1002において、CPU101は、ステップS1001で抽出した色を持つ画素より線を抽出し、抽出した線から線種(ドットパターン)を特定する(特徴抽出(線種))。   Next, in step S1002, the CPU 101 extracts a line from the pixel having the color extracted in step S1001, and specifies a line type (dot pattern) from the extracted line (feature extraction (line type)).

次に、ステップS1003において、CPU101は、ステップS1002で抽出した線・線種より形の判断を行う(特徴抽出(形))。例えば、同一の色・線種の線分が4点で重なり、且つ、交わった線分が長方形をなす場合は「長方形」と判断する。また、同一の色・線種の線分が重なっていない場合は「アンダーライン」と判断する。   Next, in step S1003, the CPU 101 determines the shape based on the line / line type extracted in step S1002 (feature extraction (shape)). For example, if line segments of the same color / line type overlap at four points and the intersecting line segments form a rectangle, it is determined as “rectangular”. Also, if the line segments of the same color / line type do not overlap, it is determined as “underline”.

次に、ステップS1004において、CPU101は、ステップS1003の特徴抽出(形)で長方形と判断されたか否かを判定し、長方形と判断されたと判定した場合には、ステップS1005に処理を進める。   Next, in step S1004, the CPU 101 determines whether or not the feature extraction (shape) in step S1003 has been determined to be a rectangle. If it is determined to be a rectangle, the process proceeds to step S1005.

ステップS1005では、CPU101は、ステップS1003で長方形と判断した各線分の接線が繋がっていない場合、各線分を延長し交差するように補正する(長方形の補正を行う)。そして、本マーク検出処理を終了する。   In step S1005, if the tangents of the line segments determined to be rectangular in step S1003 are not connected, the CPU 101 corrects the line segments so that they extend and intersect (rectangular correction). Then, the mark detection process ends.

一方、ステップS1004で、ステップS1003の特徴抽出(形)で長方形と判断されなかったと判定した場合には、CPU101は、このまま本マーク検出処理を終了させる。   On the other hand, if it is determined in step S1004 that the feature extraction (shape) in step S1003 has not determined to be a rectangle, the CPU 101 ends the mark detection process as it is.

なお、図10には示していないが、同時に矩形内にアンダーライン・マーカ等と同一の色で記述されている文字・マーカの検出については、CPU101が、上記と同様に特徴抽出(色、形等)を実施した後、統計的アプローチにて対象となる識別マークの特徴分布より文字・マークを特定するものとする。   Although not shown in FIG. 10, for the detection of characters / markers described in the same color as the underline / marker in the rectangle at the same time, the CPU 101 performs feature extraction (color, shape, etc.) as described above. Etc.), the character / mark is identified from the characteristic distribution of the target identification mark by a statistical approach.

また、文字・マークについては、統計的アプローチを実施することから、予め特定しておくものとする。なお、上述の統計的アプローチとは、事前にシステムにて使用する文字・マークを色,線種,角の数,線分の数等の情報を登録しておくことによって文字・マークを特定していく方法を示す。   The characters and marks are identified in advance because a statistical approach is performed. The statistical approach described above specifies characters / marks by registering information such as color, line type, number of corners, number of line segments, etc. in advance for the characters / marks used in the system. Show how to go.

以上示したように、異なる複数のフォーム間で同一の項目を同一のマーカで指定するといった簡単な準備を行うだけで、異なる複数のフォーム間での各項目の関連付けを可能とし、一方のフォームから読み取ったデータをもう一方のフォームに自動で貼り付けて(ユーザによる個々の貼り付け操作無しに貼り付けて)印刷することができる。   As described above, it is possible to associate each item between multiple different forms by simply preparing the same item with the same marker between different forms. The read data can be automatically pasted on the other form (pasted without any individual pasting operation by the user) and printed.

従って、従来のような複雑なフォームの登録を必要とせず、コンピュータの知識がないユーザでも容易に使用することが可能となる。   Therefore, it is not necessary to register a complicated form as in the conventional case, and even a user without computer knowledge can easily use it.

例えば、本発明を年賀状印刷に用いる場合、ユーザは、年賀状の宛先の郵便番号,住所,氏名の矩形をマーカ等にて指定してフォームの登録を行い、また、昨年受け取った年賀状の送り主の郵便番号,住所,氏名の矩形をマーカ等にて指定してフィールドの登録を行い、続いてオーバレイの実施を指示するだけで、年賀状印刷アプリケーション等を所有していなくても、年賀状の印刷を容易に行うことができる。   For example, when the present invention is used for New Year's card printing, the user registers the form by specifying the postal code, address, and name rectangle of the New Year's card with a marker or the like, and the mail of the sender of the New Year's card received last year Easily print New Year's cards even if you don't have a New Year's card printing application by simply registering fields by specifying the number, address, and name rectangles with markers, etc., and then instructing the implementation of the overlay. It can be carried out.

また、証券あるいはギフト用申込票等においても上記と同様な方法にて申込票から個伝票、あるいは個伝票から次期申込票等が簡単に作成することができる。   In addition, in the application form for securities or gifts, an individual slip from the application slip or the next application slip from the individual slip can be easily created by the same method as described above.

〔他の実施形態1〕
フォーム用紙200に図11に示すような演算を定義したマークを記載することにより、CPU101が定義された演算を行って該演算結果をフィールド画像に貼り付けるように構成してもよい。
[Other embodiment 1]
A mark defining a calculation as shown in FIG. 11 may be written on the form sheet 200 so that the CPU 101 performs the defined calculation and pastes the calculation result on the field image.

図11は、フォーム用紙200上に記載可能な演算結果を貼り付ける矩形領域を定義するマークの一例を示した模式図である。   FIG. 11 is a schematic diagram showing an example of a mark that defines a rectangular area to which a calculation result that can be written on the form paper 200 is pasted.

図11において、1101は、((「マーク1111の項目の値」+「マーク1112の項目の値」―「マーク1113の項目の値」)×「マーク1114の項目の値」)の演算結果を貼り付ける矩形領域を定義したマークである。   In FIG. 11, 1101 indicates the calculation result of (“value of item of mark 1111” + “value of item of mark 1112” − “value of item of mark 1113”) × “value of item of mark 1114”). A mark that defines a rectangular area to be pasted.

また、1102は、(「マーク1111の項目の値」÷「マーク1112の項目の値」)の演算結果を貼り付ける矩形領域を定義したマークである。   Reference numeral 1102 denotes a mark that defines a rectangular area to which a calculation result of “(value of item of mark 1111” ÷ “value of item of mark 1112”) is pasted.

さらに、1103は、((「マーク1111の項目の値」+「マーク1112の項目の値」)×1.05)の演算結果を貼り付ける矩形領域を定義したマークである。   Further, reference numeral 1103 denotes a mark that defines a rectangular area to which a calculation result of ((“item value of mark 1111” + “item value of mark 1112”) × 1.05) is pasted.

また、1104は、(全ての「マーク1111の項目の値」の合計)の演算結果を貼り付ける矩形領域を定義したマークである。なお、この場合、フィールド用紙300内にマーク1111が複数指定されているものとする。   Reference numeral 1104 denotes a mark that defines a rectangular area to which the calculation result (total of all “values of items of the mark 1111”) is pasted. In this case, it is assumed that a plurality of marks 1111 are designated in the field paper 300.

さらに、1105は、(全ての「マーク1112の項目の値」の乗算)の演算結果を貼り付ける矩形領域を定義したマークである。なお、この場合、フィールド用紙300内にマーク1112が複数指定されているものとする。   Further, reference numeral 1105 denotes a mark that defines a rectangular area to which the operation result of (multiplication of all “values of items of the mark 1112”) is pasted. In this case, it is assumed that a plurality of marks 1112 are designated in the field paper 300.

なお、このような演算を定義したマークは、例えば「math」等をマークの右角に記載する等として他のマークと区別可能なものとする。   It should be noted that a mark defining such an operation is distinguishable from other marks by, for example, “math” or the like being written in the right corner of the mark.

そして、CPU101は、フォームの登録の際に、項目番号,矩形位置情報,色情報,フォント情報,紐付け情報とともに、このように定義された演算式を、フォームマーク情報202に、登録するものとする。例えば、1101の場合、演算式として「(項目1+項目2―項目3)×項目4」等を登録するものとする。   When registering the form, the CPU 101 registers the arithmetic expression defined in this way in the form mark information 202 together with the item number, rectangular position information, color information, font information, and association information. To do. For example, in the case of 1101, “(item 1 + item 2−item 3) × item 4” or the like is registered as an arithmetic expression.

なお、図11で示した演算の定義は一例であり、あらゆる数式の演算結果の貼り付けを定義可能である。   Note that the definition of the calculation shown in FIG. 11 is an example, and the pasting of the calculation result of any mathematical expression can be defined.

以上のように、フォーム用紙に演算を定義したマークを記載するだけで、単に、あるフォームから読み取ったデータを他のフォームに貼り付けるだけでなく、あるフォームから読み取ったデータの演算結果を他のフォームに貼り付けて印刷することが容易にできるようになる。   As described above, simply writing the mark that defines the calculation on the form paper, not only pasting the data read from one form into another form, but also the calculation result of the data read from one form to another It can be easily pasted and printed on a form.

また、1106は、「マーク1111の項目の値」,「マーク1112の項目の値」,「マーク1113の項目の値」,「マーク1114の項目の値」を用いて作成した円グラフを貼り付ける矩形領域を定義したマークである。このように、グラフ名とそのグラフに用いるデータを定義したマークをフォーム用紙200上に記載することにより、CPU101が定義されたグラフを作成してフィールド画像に貼り付けるように構成してもよい。   Also, 1106 pastes a pie chart created using “item value of mark 1111”, “value of item of mark 1112”, “value of item of mark 1113”, and “value of item of mark 1114”. A mark that defines a rectangular area. As described above, the graph that defines the graph name and the data used for the graph is described on the form sheet 200, so that the CPU 101 may create the defined graph and paste it on the field image.

なお、このようなグラフを定義したマークは、例えば「graph」等をマークの右角に記載する等として他のマークと区別可能なものとする。   Note that a mark defining such a graph can be distinguished from other marks by, for example, “graph” or the like being written in the right corner of the mark.

このように、フォーム用紙にグラフを定義したマークを記載するだけで、あるフォームから読み取ったデータを用いたグラフを作成して他のフォームに貼り付けて印刷することが容易にできるようになる。   As described above, it is possible to easily create a graph using data read from a certain form, paste it on another form, and print it by simply describing the mark defining the graph on the form sheet.

〔他の実施形態2〕
「フィールドの登録」の際に、フィールド用紙を1枚毎スキャンする毎に、ユーザに、そのフィールド用紙の枚数(例えば、「1」,「2」,「可変量」等)を指定させてフィールドの登録を行わせるように構成してもよい。
[Other embodiment 2]
When “field registration” is performed, each time a field sheet is scanned, the user specifies the number of field sheets (for example, “1”, “2”, “variable amount”, etc.) You may comprise so that registration may be performed.

例えば、まず図3Aに示したフィールド用紙300aを「1」枚と指定し、続いてフィールド用紙300bを「可変量」と指定してフィールドの登録を行ったとする。これにより、フィールドマーク情報302に、項目番号,矩形位置情報,色情報,線種情報,紐付け情報とともに、上記用紙枚数が登録される。   For example, it is assumed that the field sheet 300a shown in FIG. 3A is designated as “1”, and then the field sheet 300b is designated as “variable amount” and field registration is performed. As a result, the number of sheets is registered in the field mark information 302 together with the item number, rectangular position information, color information, line type information, and association information.

そして、上記の場合、1枚のフィールド用紙300aに対応するデータ用紙,複数枚のフィールド用紙300bを一組のデータ用紙とし、これを複数組、MFPにセットして、オーバレイの実施を指示することにより、上記一組のデータ用紙から読み取ったデータをフォーム画像に貼り付けて印刷することが可能となる。   In the above case, a data sheet corresponding to one field sheet 300a and a plurality of field sheets 300b are set as a set of data sheets, and a plurality of sets are set in the MFP to instruct the execution of overlay. Thus, the data read from the set of data sheets can be pasted and printed on the form image.

なお、上述のようにフィールド用紙の枚数に「可変量」が指定された場合、CPU101は、各フィールド用紙の特徴(例えば、(X1,Y1)の位置に画像「注文書」が有る等)を登録しておくものとする。そして、データ用紙の読み取りを行った際に、そのデータ用紙がどのフィールド用紙に対応しているかを、マッチング等の方法により判断して、読み取り処理を行うものとする。   Note that when “variable amount” is designated as the number of field sheets as described above, the CPU 101 displays the characteristics of each field sheet (for example, the image “order sheet” is located at the position (X1, Y1)). It shall be registered. Then, when the data sheet is read, it is determined which field sheet the data sheet corresponds to by a method such as matching, and the reading process is performed.

なお、上記各図で示した各種データの構成及びその内容はこれに限定されるものではなく、用途や目的に応じて、様々な構成や内容で構成されることは言うまでもない。   It should be noted that the configuration and contents of the various data shown in the above drawings are not limited to this, and needless to say, they are configured with various configurations and contents depending on applications and purposes.

以上、一実施形態について示したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記録媒体等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   Although one embodiment has been described above, the present invention can take an embodiment as, for example, a system, apparatus, method, program, or recording medium, and specifically includes a plurality of devices. The present invention may be applied to a system including a single device.

以下、図12に示すメモリマップを参照して本発明に係る帳票生成装置で読み取り可能なデータ処理プログラムの構成について説明する。   The configuration of the data processing program that can be read by the form generation device according to the present invention will be described below with reference to the memory map shown in FIG.

図12は、本発明に係る本発明に係る帳票生成装置で読み取り可能な各種データ処理プログラムを格納する記録媒体(記憶媒体)のメモリマップを説明する図である。   FIG. 12 is a diagram for explaining a memory map of a recording medium (storage medium) that stores various data processing programs that can be read by the form generation device according to the present invention.

なお、特に図示しないが、記録媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側のOS等に依存する情報、例えばプログラムを識別表示するアイコン等も記憶される場合もある。   Although not specifically shown, information for managing a program group stored in the recording medium, for example, version information, creator, etc. is also stored, and information depending on the OS on the program reading side, for example, a program is identified and displayed. Icons may also be stored.

さらに、各種プログラムに従属するデータも上記ディレクトリに管理されている。また、インストールするプログラムやデータが圧縮されている場合に、解凍するプログラム等も記憶される場合もある。   Further, data depending on various programs is also managed in the directory. In addition, when a program or data to be installed is compressed, a program to be decompressed may be stored.

本実施形態における図5,図6,図7,図8,図9,図10に示す機能が外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記録媒体により、あるいはネットワークを介して外部の記録媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。   The functions shown in FIGS. 5, 6, 7, 8, 9, and 10 in this embodiment may be performed by a host computer by a program installed from the outside. In this case, the present invention is applied even when an information group including a program is supplied to the output device from a recording medium such as a CD-ROM, a flash memory, or an FD, or from an external recording medium via a network. Is.

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

この場合、記録媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記録媒体は本発明を構成することになる。   In this case, the program code itself read from the recording medium realizes the novel function of the present invention, and the recording medium storing the program code constitutes the present invention.

プログラムコードを供給するための記録媒体としては、例えば、フレキシブルディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,DVD−ROM,磁気テープ,不揮発性のメモリカード,ROM,EEPROM,シリコンディスク等を用いることができる。   As a recording medium for supplying the program code, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, DVD-ROM, magnetic tape, nonvolatile memory card, ROM, EEPROM, A silicon disk 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 (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that 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等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the recording medium is written in a memory provided in a function expansion board inserted in the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのソフトウェアによって表されるプログラムを格納した記録媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or apparatus. In this case, by reading a recording medium storing a program represented by software for achieving the present invention into the system or apparatus, the system or apparatus can enjoy the effects of the present invention.

さらに、本発明を達成するためのソフトウェアによって表されるプログラムをネットワーク上のサーバ,データベース等から通信プログラムによりダウンロードして読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Furthermore, by downloading and reading out a program represented by software for achieving the present invention from a server, database, etc. on a network using a communication program, the system or apparatus can enjoy the effects of the present invention. It becomes.

なお、上述した各実施形態およびその変形例を組み合わせた構成も全て本発明に含まれるものである。   In addition, all the structures which combined each embodiment mentioned above and its modification are also included in this invention.

以上示したように、異なる複数のフォーム間で、煩雑なコンピュータ操作なしに、一方のフォームから読み取ったデータをもう一方のフォームに自動で貼り付けて印刷できるようにする仕組を提供することができる。   As described above, it is possible to provide a mechanism that allows data read from one form to be automatically pasted and printed between different forms without complicated computer operation. .

年賀状の印刷等に利用可能である。まず、ユーザは、年賀状の宛先の郵便番号,住所,氏名の矩形をマーカ等にて指定してフォームの登録を指示する。次に、ユーザは、昨年受け取った年賀状の送り主の郵便番号,住所,氏名の矩形をマーカ等にて指定してフィールドの登録を指示する。最後に、ユーザは、オーバレイの実施を指示する。これにより、年賀状印刷アプリケーション等を所有していなくても、昨年の年賀状から今年の年賀状の印刷を容易に行うことができる。   It can be used for printing New Year's cards. First, the user instructs registration of a form by designating a postal code, address, and name rectangle of the New Year's card with a marker or the like. Next, the user designates the postal code, address, and name rectangle of the sender of the New Year's card received last year with a marker or the like, and instructs field registration. Finally, the user instructs the implementation of the overlay. As a result, even if you do not have a New Year's card printing application, you can easily print this year's New Year's card from last year's New Year's card.

また、証券あるいはギフト用申込票等においても上記と同様な方法にて申込票から個伝票、あるいは個伝票から次期申込票等が簡単に作成することができる。   In addition, in the application form for securities or gifts, an individual slip from the application slip or the next application slip from the individual slip can be easily created by the same method as described above.

本発明の一実施形態を示す帳票生成装置を適用可能な多機能周辺機器(MFP:Multi-Function Peripheral)の構成を説明するブロック図である。1 is a block diagram illustrating a configuration of a multi-function peripheral (MFP) to which a form generation device showing an embodiment of the present invention can be applied. 本発明の帳票生成装置におけるフォーム登録処理を説明する模式図である。It is a schematic diagram explaining the form registration process in the form production | generation apparatus of this invention. 本実施形態のフォームマーク情報を説明する模式図である。It is a schematic diagram explaining the form mark information of this embodiment. 本実施形態のフォーム画像の保存イメージを説明する模式図である。It is a schematic diagram explaining the preservation | save image of the form image of this embodiment. 本発明の帳票生成装置におけるフィールド登録処理を説明する模式図である。It is a schematic diagram explaining the field registration process in the form production | generation apparatus of this invention. 本実施形態のフィールドマーク情報を説明する模式図である。It is a schematic diagram explaining the field mark information of this embodiment. 本発明の帳票生成装置におけるオーバレイの実施処理を説明する模式図である。It is a schematic diagram explaining the implementation process of the overlay in the form production | generation apparatus of this invention. 本実施形態の矩形画像orOCR結果を説明する模式図である。It is a schematic diagram explaining the rectangular image orOCR result of this embodiment. 本発明における第1の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 1st control processing procedure in this invention. 本発明における第2の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 2nd control processing procedure in this invention. 本発明における第3の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 3rd control processing procedure in this invention. 本発明における第4の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 4th control processing procedure in this invention. 本発明における第5の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 5th control processing procedure in this invention. 本発明における第6の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 6th control processing procedure in this invention. フォーム用紙200上に記載可能な演算結果を貼り付ける矩形領域を定義するマークの一例を示した模式図である。FIG. 5 is a schematic diagram showing an example of a mark that defines a rectangular area to which a calculation result that can be written on form paper 200 is pasted. 本発明に係る本発明に係る帳票生成装置で読み取り可能な各種データ処理プログラムを格納する記録媒体(記憶媒体)のメモリマップを説明する図である。It is a figure explaining the memory map of the recording medium (storage medium) which stores the various data processing program which can be read with the form production | generation apparatus which concerns on this invention concerning this invention.

符号の説明Explanation of symbols

100 MFP
101 CPU
102 RAM
103 ROM
105 HDD
106 スキャン部
107 プリンタ部
108 画像処理部
109 OCR処理部
112 操作部
113 文字サイズ変更処理部
200 フォーム用紙
202 フォームマーク情報
203 フォーム画像
210 操作パネル
300 フィールド用紙
302 フィールドマーク情報
400 データ用紙
401 矩形画像orOCR結果
402 印刷結果
100 MFP
101 CPU
102 RAM
103 ROM
105 HDD
106 Scan unit 107 Printer unit 108 Image processing unit 109 OCR processing unit 112 Operation unit 113 Character size change processing unit 200 Form paper 202 Form mark information 203 Form image 210 Operation panel 300 Field paper 302 Field mark information 400 Data paper 401 Rectangular image or OCR Result 402 Print result

Claims (14)

フォームデータとフィールドデータとを合成する帳票生成装置において、
フォーム用紙からフォーム画像を読み取り、該読み取られたフォーム画像上のマーク付けされた領域を検出する第1の検出手段と、
前記第1の検出手段により検出されたマーク付けされた領域の位置を記憶する第1の記憶手段と、
前記フォーム画像を記憶する第2の記憶手段と、
フィールド用紙からフィールド画像を読み取り、該読み取られたフィールド画像上のマーク付けされた領域を検出する第2の検出手段と、
前記第2の検出手段により検出されたマーク付けされた領域の位置を記憶する第3の記憶手段と、
前記第3の記憶手段に記憶されたマーク付けされた領域の位置に対応する領域のデータを取得する取得手段と、
前記取得手段に取得されたデータを記憶する第4の記憶手段と、
前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に記憶されたデータを合成する合成手段と、
を有することを特徴とする帳票生成装置。
In the form generation device that combines form data and field data,
First detection means for reading a form image from form paper and detecting a marked area on the read form image;
First storage means for storing the position of the marked area detected by the first detection means;
Second storage means for storing the form image;
Second detection means for reading a field image from field paper and detecting a marked area on the read field image;
Third storage means for storing the position of the marked area detected by the second detection means;
Obtaining means for obtaining data of an area corresponding to the position of the marked area stored in the third storage means;
Fourth storage means for storing data acquired by the acquisition means;
The data stored in the fourth storage means is combined with the area corresponding to the position of the area corresponding to the mark stored in the first storage means of the form image stored in the second storage means. Combining means;
A form generation device characterized by comprising:
前記第1の検出手段及び前記第2の検出手段は、同一の特徴を有するマークによりマーク付けされた領域を検出する、ことを特徴とする請求項1に記載の帳票生成装置。   The form generation apparatus according to claim 1, wherein the first detection unit and the second detection unit detect a region marked by a mark having the same characteristic. 前記第1の検出手段及び前記第2の検出手段は、前記マーク付けされた領域を、マークの色,線種を含む特徴で識別して検出する、ことを特徴とする請求項2に記載の帳票生成装置。   The said 1st detection means and the said 2nd detection means identify and detect the said marked area | region with the characteristic containing the color and line | wire type of a mark, The detection method of Claim 2 characterized by the above-mentioned. Form generation device. 前記第1の検出手段及び前記第2の検出手段により検出されるマークは、マーカ線により特徴付けられたマークである、ことを特徴とする請求項3に記載の帳票生成装置。   The form generation apparatus according to claim 3, wherein the mark detected by the first detection unit and the second detection unit is a mark characterized by a marker line. 前記第2の記憶手段は、前記フォーム用紙から読み取られたフォーム画像から前記第1の検出手段により検出されたマーク付けされた領域を削除した画像データをフォーム画像として記憶する、ことを特徴とする請求項1乃至4のいずれかに記載の帳票生成装置。   The second storage means stores, as a form image, image data obtained by deleting the marked area detected by the first detection means from the form image read from the form paper. The form production | generation apparatus in any one of Claims 1 thru | or 4. 前記第1の記憶手段は、前記第1の検出手段により検出されたマーク付けされた領域の位置とサイズを記憶するものであり、
前記合成手段は、前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に記憶されたデータを、前記第1の記憶手段に記憶されたマークに対応する領域のサイズに合わせて拡大又は縮小して合成する、ことを特徴とする請求項1乃至5のいずれかに記載の帳票生成装置。
The first storage means stores the position and size of the marked area detected by the first detection means,
The synthesizing means is stored in the fourth storage means in an area corresponding to the position of the area corresponding to the mark stored in the first storage means of the form image stored in the second storage means. The form generation according to any one of claims 1 to 5, characterized in that the data is combined by being enlarged or reduced in accordance with the size of the area corresponding to the mark stored in the first storage means. apparatus.
前記取得手段に取得されたデータの文字認識を行う文字認識手段を設け、
前記第4の記憶手段は、前記取得手段に取得されたデータと、前記文字認識手段による文字認識結果とを記憶するものであり、
前記合成手段は、前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に記憶された文字認識結果を合成する、ことを特徴とする請求項1乃至6のいずれかに記載の帳票生成装置。
A character recognition unit for performing character recognition of the acquired data in the acquisition unit;
The fourth storage means stores data acquired by the acquisition means and a character recognition result by the character recognition means,
The synthesizing means is stored in the fourth storage means in an area corresponding to the position of the area corresponding to the mark stored in the first storage means of the form image stored in the second storage means. The form generation apparatus according to claim 1, wherein the character recognition results are combined.
前記第1の検出手段により検出されたマーク付けされた領域に存在する文字のフォント情報を認識するフォント情報認識手段を設け、
前記第1の記憶手段は、前記第1の検出手段により検出されたマーク付けされた領域の位置と、前記フォント情報認識手段によるフォント情報認識結果とを記憶するものであり、
前記合成手段は、前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第1の記憶手段に記憶されたフォント情報に対応するフォントで、前記第4の記憶手段に記憶された文字認識結果を合成する、ことを特徴とする請求項7に記載の帳票生成装置。
Font information recognition means for recognizing font information of characters existing in the marked area detected by the first detection means;
The first storage means stores the position of the marked area detected by the first detection means and the font information recognition result by the font information recognition means,
The synthesizing unit is stored in the first storage unit in an area corresponding to a position of an area corresponding to the mark stored in the first storage unit of the form image stored in the second storage unit. 8. The form generation apparatus according to claim 7, wherein the character recognition result stored in the fourth storage unit is synthesized with a font corresponding to the font information.
前記第1の記憶手段は、前記第1の検出手段により検出されたマーク付けされた領域の位置とサイズを記憶するものであり、
前記合成手段は、前記文字認識手段により認識された文字認識結果を、前記第1の記憶手段に記憶されたマークに対応する領域のサイズに合わせてフォントサイズを拡大又は縮小する、ことを特徴とする請求項7乃至8記載の帳票生成装置。
The first storage means stores the position and size of the marked area detected by the first detection means,
The synthesizing unit enlarges or reduces the font size in accordance with the size of the area corresponding to the mark stored in the first storage unit, the character recognition result recognized by the character recognition unit. The form generation device according to claim 7 to 8.
前記第1の検出手段により検出されるマークは、前記第2の検出手段により検出されるマークと同一の特徴を有するマークを用いた演算式を定義可能なものであり、
前記第1の検出手段により検出されたマークに演算が定義されている場合には、前記第1の記憶手段は、該マーク付けされた領域の位置と、前記定義された演算式とを記憶するものであり、
前記合成手段は、前記第2の記憶手段に記憶されるフォーム画像の前記第1の記憶手段に記憶されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に記憶された文字認識結果の前記第1の記憶手段に記憶されたマークにより定義された演算式による演算結果を合成する、ことを特徴とする請求項7乃至9のいずれかに記載の帳票生成装置。
The mark detected by the first detection means can define an arithmetic expression using a mark having the same characteristics as the mark detected by the second detection means,
When a calculation is defined for the mark detected by the first detection means, the first storage means stores the position of the marked area and the defined calculation expression. Is,
The synthesizing means is stored in the fourth storage means in an area corresponding to the position of the area corresponding to the mark stored in the first storage means of the form image stored in the second storage means. The form generation device according to claim 7, wherein the calculation result by the arithmetic expression defined by the mark stored in the first storage means of the character recognition result is synthesized.
前記取得手段は、データが記載されたデータ画像の前記第3の記憶手段に記憶された領域のデータを取得することを特徴とする請求項1乃至10に記載の帳票生成装置。   The form generation apparatus according to claim 1, wherein the acquisition unit acquires data of an area stored in the third storage unit of a data image in which data is described. フォームデータとフィールドデータとをオーバレイする帳票生成方法において、
フォーム用紙からフォーム画像を読み取り、該読み取られたフォーム画像上のマーク付けされた領域を検出する第1の検出ステップと、
前記第1の検出ステップにより検出されたマーク付けされた領域の位置を第1の記憶手段に登録させ、前記フォーム画像を第2の記憶手段に登録させる第1の登録ステップと、
フィールド用紙からフィールド画像を読み取り、該読み取られたフィールド画像上のマーク付けされた領域を検出する第2の検出ステップと、
前記第2の検出ステップにより検出されたマーク付けされた領域の位置を第3の記憶手段に登録させる第2の登録ステップと、
前記第3の記憶手段に登録されたマーク付けされた領域の位置に対応する領域のデータを取得する取得ステップと、
前記取得ステップに取得されたデータを第4の記憶手段を登録する第3の登録ステップと、
前記第2の記憶手段に登録されたフォーム画像の前記第1の記憶手段に登録されたマークに対応する領域の位置に対応する領域に、前記第4の記憶手段に登録されたデータを合成する合成ステップと、
を有することを特徴とする帳票生成方法。
In the form generation method that overlays form data and field data,
A first detection step of reading a form image from form paper and detecting a marked area on the read form image;
A first registration step of registering the position of the marked area detected by the first detection step in a first storage unit and registering the form image in a second storage unit;
A second detection step of reading a field image from field paper and detecting a marked area on the read field image;
A second registration step for registering the position of the marked area detected by the second detection step in a third storage means;
An acquisition step of acquiring data of an area corresponding to the position of the marked area registered in the third storage unit;
A third registration step of registering the data acquired in the acquisition step in a fourth storage means;
The data registered in the fourth storage means is combined with the area corresponding to the position of the area corresponding to the mark registered in the first storage means of the form image registered in the second storage means. A synthesis step;
A form generation method characterized by comprising:
請求項1乃至11に記載された帳票生成装置をコンピュータに実現させるためのプログラム、又は、請求項12に記載された帳票生成方法をコンピュータに実行させるためのプログラム。   The program for making a computer implement | achieve the form production | generation apparatus described in Claim 1 thru | or 11 or the program for making a computer perform the form production | generation method described in Claim 12. 請求項1乃至11に記載された帳票生成装置をコンピュータに実現させるためのプログラム、又は、請求項12に記載された帳票生成方法をコンピュータに実行させるためのプログラムをコンピュータが読み取り可能に記憶した記録媒体。   A program for causing a computer to implement the form generation device according to claim 1 or a program for causing a computer to execute the form generation method according to claim 12 in a computer-readable storage Medium.
JP2006314605A 2006-11-21 2006-11-21 Form generating device, form generating method, program and record medium Withdrawn JP2008131381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006314605A JP2008131381A (en) 2006-11-21 2006-11-21 Form generating device, form generating method, program and record medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006314605A JP2008131381A (en) 2006-11-21 2006-11-21 Form generating device, form generating method, program and record medium

Publications (1)

Publication Number Publication Date
JP2008131381A true JP2008131381A (en) 2008-06-05

Family

ID=39556789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006314605A Withdrawn JP2008131381A (en) 2006-11-21 2006-11-21 Form generating device, form generating method, program and record medium

Country Status (1)

Country Link
JP (1) JP2008131381A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015182328A (en) * 2014-03-25 2015-10-22 カシオ計算機株式会社 Layout detection print device and method
JP2017092947A (en) * 2015-11-09 2017-05-25 ぺんてる株式会社 Learning support program, learning support device, learning tool formation notebook, and learning tool formation method
CN108132762A (en) * 2016-12-01 2018-06-08 京瓷办公信息系统株式会社 Image processing apparatus and image forming apparatus
JP2018093336A (en) * 2016-12-01 2018-06-14 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image forming apparatus
JP2018098678A (en) * 2016-12-14 2018-06-21 京セラドキュメントソリューションズ株式会社 Image forming apparatus
US11531503B2 (en) 2020-11-09 2022-12-20 Kyocera Document Solutions Inc. Image processing apparatus and image processing system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015182328A (en) * 2014-03-25 2015-10-22 カシオ計算機株式会社 Layout detection print device and method
JP2017092947A (en) * 2015-11-09 2017-05-25 ぺんてる株式会社 Learning support program, learning support device, learning tool formation notebook, and learning tool formation method
CN108132762A (en) * 2016-12-01 2018-06-08 京瓷办公信息系统株式会社 Image processing apparatus and image forming apparatus
JP2018093336A (en) * 2016-12-01 2018-06-14 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image forming apparatus
US10270934B2 (en) 2016-12-01 2019-04-23 Kyocera Document Solutions Inc. Image processing apparatus and image forming apparatus
CN108132762B (en) * 2016-12-01 2021-07-13 京瓷办公信息系统株式会社 Image processing apparatus and image forming apparatus
JP2018098678A (en) * 2016-12-14 2018-06-21 京セラドキュメントソリューションズ株式会社 Image forming apparatus
US11531503B2 (en) 2020-11-09 2022-12-20 Kyocera Document Solutions Inc. Image processing apparatus and image processing system

Similar Documents

Publication Publication Date Title
JP3962721B2 (en) Document processing apparatus and document processing method
US7880919B2 (en) Image processing apparatus and method
JP2008131381A (en) Form generating device, form generating method, program and record medium
JP2016139982A (en) Image processing apparatus and image forming system
US7444036B2 (en) Device, method, and recording medium for processing a document having document data and a set of related data
JP2003046746A (en) Method and apparatus for processing image
JP2000168294A (en) Electronic white board system
JP2009070232A (en) Print data generation apparatus
JP2000181988A (en) Optical character reader
JP6481204B2 (en) Information processing apparatus, processing method thereof, and program
JP5935376B2 (en) Copy machine
JP2006309622A (en) Image processor, image processing method, image processing program and recording medium
JP2020099030A (en) Information processing apparatus and information processing method
JP2020099031A (en) Information processing apparatus and information processing method
JP2016111390A (en) Image formation apparatus
JP2004025576A (en) Image processor, image processing method, and storage medium and program readable by computer
JP2004287907A (en) Disclosure document creation device
JP2001273509A (en) Method and device for editing document picture
JP2005184261A (en) Color corrector
JP5063207B2 (en) Color conversion processing apparatus, method, recording medium, and program
JP2007173938A (en) Image processor, image processing method and program
JP2002279420A (en) Method and device for image processing and recording medium stored with program for making computer perform processing in device thereof
JP2005316665A (en) Document processor
JP6520761B2 (en) Information processing apparatus and program
JP2800254B2 (en) Image single character processing device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080403

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100202