Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6965656B2 - Form management device and program - Google Patents
[go: Go Back, main page]

JP6965656B2 - Form management device and program - Google Patents

Form management device and program Download PDF

Info

Publication number
JP6965656B2
JP6965656B2 JP2017181078A JP2017181078A JP6965656B2 JP 6965656 B2 JP6965656 B2 JP 6965656B2 JP 2017181078 A JP2017181078 A JP 2017181078A JP 2017181078 A JP2017181078 A JP 2017181078A JP 6965656 B2 JP6965656 B2 JP 6965656B2
Authority
JP
Japan
Prior art keywords
item
information
area
detailed information
cpu
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.)
Active
Application number
JP2017181078A
Other languages
Japanese (ja)
Other versions
JP2019057135A (en
Inventor
邦彦 磯村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2017181078A priority Critical patent/JP6965656B2/en
Publication of JP2019057135A publication Critical patent/JP2019057135A/en
Application granted granted Critical
Publication of JP6965656B2 publication Critical patent/JP6965656B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Input (AREA)

Description

本発明は、帳票管理装置及びプログラムに関する。 The present invention relates to a form management device and a program.

従来、個人商店などで商取引に用いられる紙媒体の帳票に基づいて、当該帳票の情報記入欄に対応するデータを入力するための帳票フォーム情報を作成する技術が知られている。 Conventionally, there is known a technique for creating form information for inputting data corresponding to an information entry field of the form based on a paper form used for commercial transactions in a private store or the like.

例えば、未記入の帳票をスキャンして帳票画像を取得し、取得した帳票画像を基に帳票フォーム情報を作成する帳票フォーム登録方法が知られている(特許文献1参照)。また、上記と同様に取得した帳票画像から、記入欄が文字列記入用であるかマーク(チェックマーク等)記入用であるかを判定して帳票フォーマット情報を作成する帳票読取装置が知られている(特許文献2参照)。 For example, there is known a form form registration method in which a form image is acquired by scanning an unfilled form and form form information is created based on the acquired form image (see Patent Document 1). In addition, a form reading device that creates form format information by determining whether the entry field is for character string entry or mark (check mark, etc.) entry from the form image acquired in the same manner as above is known. (See Patent Document 2).

また、原文書(帳票)画像に含まれる線パターンで構成された物理的構造認識および論理構造認識結果から、表形状の情報記入欄を縦ユニット(カラム)及び横ユニット(レコード)の複数の入出力フィールドからなるテーブルとして扱い、原文書のフォームの書式情報を作成する帳票処理システムが知られている(特許文献3参照)。 In addition, from the results of physical structure recognition and logical structure recognition composed of line patterns included in the original document (form) image, a plurality of vertical units (columns) and horizontal units (records) are entered in the table-shaped information entry field. A form processing system that treats as a table consisting of output fields and creates format information of the form of the original document is known (see Patent Document 3).

特開2003−323586号公報Japanese Unexamined Patent Publication No. 2003-323586 特開平10−11531号公報Japanese Unexamined Patent Publication No. 10-11531 特開平3−179570号公報Japanese Unexamined Patent Publication No. 3-179570

帳票としては、複数のカラムの矩形領域からなる繰返領域(レコード)(例えば商品の個別データの記入領域)が繰り返された明細領域と、繰返領域と同じカラム構成であるが異なる種類のデータを入力するための類似領域(例えば個別データの合計の記入領域)と、を有するものがある。従来の帳票処理システムでは、類似領域を検出できず、類似領域にデータを入力するための設定情報を容易に作成できなかった。 The form includes a detail area in which a repeating area (record) consisting of rectangular areas of a plurality of columns (for example, an entry area for individual data of a product) is repeated, and data having the same column structure as the repeating area but different types of data. Some have a similar area for inputting (eg, a total entry area for individual data). In the conventional form processing system, a similar area could not be detected, and setting information for inputting data in the similar area could not be easily created.

本発明の課題は、帳票の情報記入欄に対応するデータを入力するための入力設定情報を容易に作成することである。 An object of the present invention is to easily create input setting information for inputting data corresponding to an information entry field of a form.

上記課題を解決するために、本発明の帳票管理装置は、帳票の画像データから、矩形領域からなる情報記入欄が第1の所定方向に複数配置された繰返領域が、第2の所定方向に繰り返し並んだ明細領域を検出する明細領域検出手段と、前記検出された明細領域における各情報記入欄に対応するデータ入力の設定をするための明細領域入力設定情報を作成する第1の作成手段と、前記帳票の画像データから、各矩形領域の並びが前記繰返領域に類似する領域であって、少なくとも1つの矩形領域が項目名称欄である類似領域を検出する類似領域検出手段と、前記検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための類似領域入力設定情報を作成する第2の作成手段と、を備える。 In order to solve the above problem, in the form management device of the present invention, from the image data of the form, a repeating area in which a plurality of information entry fields composed of rectangular areas are arranged in a first predetermined direction is set in a second predetermined direction. A detail area detecting means for detecting the detail areas repeatedly arranged in the above, and a first creating means for creating the detail area input setting information for setting the data input corresponding to each information entry field in the detected detail area. And the similar area detecting means for detecting the similar area in which the arrangement of each rectangular area is similar to the repeating area and at least one rectangular area is an item name column from the image data of the form. A second creation means for creating similar area input setting information for setting data input corresponding to each information entry field in the detected similar area is provided.

本発明によれば、帳票の情報記入欄に対応するデータを入力するための入力設定情報を容易に作成することである。 According to the present invention, it is possible to easily create input setting information for inputting data corresponding to the information entry field of the form.

本発明の実施の形態の帳票管理装置の機能構成を示すブロック図である。It is a block diagram which shows the functional structure of the form management apparatus of embodiment of this invention. (a)は、矩形領域テーブルの一例を示す図である。(b)は、直線テーブルの一例を示す図である。(A) is a figure which shows an example of a rectangular area table. (B) is a figure which shows an example of a linear table. 帳票の背景画像の一例を示す図である。It is a figure which shows an example of the background image of a form. 帳票における矩形領域及び直線の一例を示す図である。It is a figure which shows an example of a rectangular area and a straight line in a form. 矩形項目情報の一例を示す図である。It is a figure which shows an example of rectangular item information. 帳票フォーム情報の一例を示す図である。It is a figure which shows an example of form form information. 帳票から得られた帳票フォームの領域の一例を示す図である。It is a figure which shows an example of the area of the form form obtained from the form. 文字抽出テーブルの一例を示す図である。It is a figure which shows an example of a character extraction table. 矩形情報追加処理を示すフローチャートである。It is a flowchart which shows the rectangle information addition processing. 矩形項目情報作成処理を示すフローチャートである。It is a flowchart which shows the rectangle item information creation process. 帳票フォーム情報作成処理を示すフローチャートである。It is a flowchart which shows the form information creation process. 同一項目グループ検出処理を示すフローチャートである。It is a flowchart which shows the same item group detection processing. 項目情報追加処理を示すフローチャートである。It is a flowchart which shows the item information addition processing. 領域分割処理を示すフローチャートである。It is a flowchart which shows the area division processing. 明細情報追加処理を示すフローチャートである。It is a flowchart which shows the detailed information addition processing. 明細項目追加処理を示すフローチャートである。It is a flowchart which shows the item addition processing. 類似項目グループ検出処理を示すフローチャートである。It is a flowchart which shows the similar item group detection processing. 類似項目追加処理を示すフローチャートである。It is a flowchart which shows the similar item addition process.

以下、添付図面を参照して本発明に係る実施の形態を詳細に説明する。なお、本発明は、図示例に限定されるものではない。 Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. The present invention is not limited to the illustrated examples.

図1を参照して、本実施の形態の装置構成を説明する。図1は、帳票管理装置10の機能構成を示すブロック図である。 The apparatus configuration of this embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing a functional configuration of the form management device 10.

図1に示す帳票管理装置10は、個人商店などの店舗に設置された情報処理装置であり、店舗の顧客などに発行する帳票の情報を管理する。帳票管理装置10は、専用機としてもよく、汎用のPC(Personal Computer)などにより実現する構成としてもよい。 The form management device 10 shown in FIG. 1 is an information processing device installed in a store such as a private store, and manages information on forms to be issued to customers of the store. The form management device 10 may be a dedicated machine, or may be configured to be realized by a general-purpose PC (Personal Computer) or the like.

帳票管理装置10は、明細領域検出手段、第1の作成手段、類似領域検出手段、第2の作成手段としてのCPU(Central Processing Unit)11と、操作部12と、RAM(Random Access Memory)13と、表示部14と、記憶部15と、通信部16と、スキャナ部17と、印刷部18と、を備える。帳票管理装置10の各部は、バス19を介して接続されている。 The form management device 10 includes a detail area detecting means, a first creating means, a similar area detecting means, a CPU (Central Processing Unit) 11 as a second creating means, an operation unit 12, and a RAM (Random Access Memory) 13. A display unit 14, a storage unit 15, a communication unit 16, a scanner unit 17, and a printing unit 18 are provided. Each part of the form management device 10 is connected via a bus 19.

CPU11は、帳票管理装置10の各部を制御する。CPU11は、記憶部15に記憶されているシステムプログラム及びアプリケーションプログラムのうち、指定されたプログラムを読み出してRAM13に展開し、当該プログラムとの協働で、各種処理を実行する。 The CPU 11 controls each part of the form management device 10. The CPU 11 reads a designated program among the system programs and application programs stored in the storage unit 15 and expands them in the RAM 13, and executes various processes in cooperation with the program.

操作部12は、キーボードなどのキー入力部と、マウスなどのポインティングデバイスとを有し、キー入力及び位置入力を受け付け、その操作情報をCPU11に出力する。 The operation unit 12 has a key input unit such as a keyboard and a pointing device such as a mouse, receives key input and position input, and outputs the operation information to the CPU 11.

RAM13は、揮発性のメモリであり、各種のデータやプログラムを一時的に格納するワークエリアを形成する。表示部14は、LCD(Liquid Crystal Display)、EL(ElectroLuminescent)ディスプレイなどで構成され、CPU11から指示された表示情報に従い各種表示を行う。 The RAM 13 is a volatile memory and forms a work area for temporarily storing various data and programs. The display unit 14 is composed of an LCD (Liquid Crystal Display), an EL (ElectroLuminescent) display, and the like, and performs various displays according to display information instructed by the CPU 11.

記憶部15は、HDD(Hard Disk Drive)、SSD(Solid State Drive)などにより構成され、データ及びプログラムを書き込み及び読み出し可能な記憶部である。特に、記憶部15は、帳票管理に関する、帳票管理データベースD、帳票管理制御プログラムPを記憶している。 The storage unit 15 is composed of an HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like, and is a storage unit capable of writing and reading data and programs. In particular, the storage unit 15 stores the form management database D and the form management control program P related to form management.

帳票管理データベースDは、後述する矩形領域テーブル20、直線テーブル30、矩形項目情報40、帳票フォーム情報50、文字抽出テーブル60を含む。帳票管理制御プログラムPは、複数のプログラムモジュールからなり、後述する矩形情報追加処理、項目情報作成処理、帳票フォーム情報作成処理が実現されるプログラムである。 The form management database D includes a rectangular area table 20, a straight line table 30, a rectangular item information 40, a form form information 50, and a character extraction table 60, which will be described later. The form management control program P is a program composed of a plurality of program modules and realizes a rectangle information addition process, an item information creation process, and a form form information creation process, which will be described later.

通信部16は、ネットワークカードなどにより構成され、通信ネットワークに通信接続されて、当該通信ネットワーク上の機器との通信を行う。 The communication unit 16 is composed of a network card or the like, is connected to a communication network by communication, and communicates with a device on the communication network.

スキャナ部17は、CPU11の指示により、セットされた帳票などの原稿を光学的に読み取り、当該原稿の画像データを生成してCPU11に出力する読取部である。 The scanner unit 17 is a scanning unit that optically reads a set document such as a form according to an instruction from the CPU 11, generates image data of the document, and outputs the image data to the CPU 11.

印刷部18は、CPU11の指示により、文字などの印刷情報を用紙に印刷するプリンタである。例えば、後述する図3に示すように、帳票の背景画像F1が印刷された用紙がセットされ、印刷部18は、具体的な入力データを当該帳票の用紙に印刷して、入力データを含む帳票を作成する。 The printing unit 18 is a printer that prints printing information such as characters on paper according to instructions from the CPU 11. For example, as shown in FIG. 3 described later, a paper on which the background image F1 of the form is printed is set, and the printing unit 18 prints specific input data on the paper of the form, and the form including the input data is printed. To create.

次に、図2〜図8を参照して、記憶部15に記憶される情報を説明する。図2(a)は、矩形領域テーブル20を示す図である。図2(b)は、直線テーブル30を示す図である。図3は、帳票の背景画像F1を示す図である。図4は、帳票における矩形領域R1〜R118及び直線L1〜L5を示す図である。図5は、矩形項目情報40を示す図である。図6は、帳票フォーム情報50を示す図である。図7は、帳票から得られた帳票フォームの領域を示す図である。図8は、文字抽出テーブル60を示す図である。 Next, the information stored in the storage unit 15 will be described with reference to FIGS. 2 to 8. FIG. 2A is a diagram showing a rectangular area table 20. FIG. 2B is a diagram showing a straight line table 30. FIG. 3 is a diagram showing a background image F1 of the form. FIG. 4 is a diagram showing rectangular regions R1 to R118 and straight lines L1 to L5 in the form. FIG. 5 is a diagram showing rectangular item information 40. FIG. 6 is a diagram showing the form information 50. FIG. 7 is a diagram showing an area of a form form obtained from a form. FIG. 8 is a diagram showing a character extraction table 60.

図2(a)に示す矩形領域テーブルは、帳票に印刷された情報記入欄を含む帳票フォームの背景画像の矩形領域に関する情報のテーブルである。ここで、本実施の形態では、主として、店舗で使用され、具体的な文字列、数値などの情報が未記入の帳票がスキャンされ、例えば、図3に示す帳票の背景画像F1が取得される例を説明する。この帳票は、納品書(控)の帳票であり、上端、下端、左端、右端の4辺に囲まれた矩形と、左右に延在した直線と、を複数含む。 The rectangular area table shown in FIG. 2A is a table of information regarding the rectangular area of the background image of the form including the information entry field printed on the form. Here, in the present embodiment, a form mainly used in a store and in which information such as a specific character string and a numerical value is not entered is scanned, and for example, a background image F1 of the form shown in FIG. 3 is acquired. An example will be described. This form is a form of a delivery note (copy), and includes a plurality of rectangles surrounded by four sides of the upper end, the lower end, the left end, and the right end, and a straight line extending to the left and right.

帳票の背景画像F1は、左上端を原点として、第1の所定方向としての右方向のX軸と、第2の所定方向としての下方向のY軸と、の2次元座標の点からなるものとする。本実施の形態では、背景画像F1から帳票の具体的な情報を入力するための帳票フォーム画面情報を表示するための帳票フォーム情報50を作成することを目的とする。 The background image F1 of the form is composed of two-dimensional coordinate points of the X-axis in the right direction as the first predetermined direction and the Y-axis in the downward direction as the second predetermined direction, with the upper left end as the origin. And. An object of the present embodiment is to create the form form information 50 for displaying the form form screen information for inputting the specific information of the form from the background image F1.

より具体的には、図4に示すように、帳票の背景画像F1は、矩形領域R1〜R118及び直線L1〜L5を含む。 More specifically, as shown in FIG. 4, the background image F1 of the form includes rectangular regions R1 to R118 and straight lines L1 to L5.

矩形領域テーブル20は、名称21と、領域22と、のカラムを有する。名称21は、帳票の背景画像内の矩形領域の名称である。領域22は、名称21の矩形領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 The rectangular area table 20 has columns with the name 21 and the area 22. The name 21 is the name of the rectangular area in the background image of the form. The area 22 is a coordinate value of each side of the left end (X-axis), the upper end (Y-axis), the right end (X-axis), and the lower end (Y-axis) of the rectangular area of the name 21.

図2(b)に示すように、直線テーブル30は、帳票の背景画像内の直線に関する情報のテーブルである。直線テーブル30は、名称31と、領域32と、のカラムを有する。名称31は、帳票の背景画像内の直線の名称である。領域32は、名称31の直線を矩形として表した左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 As shown in FIG. 2B, the straight line table 30 is a table of information regarding straight lines in the background image of the form. The linear table 30 has columns of name 31 and region 32. Name 31 is the name of a straight line in the background image of the form. The area 32 is a coordinate value of each side of the left end (X-axis), the upper end (Y-axis), the right end (X-axis), and the lower end (Y-axis) representing the straight line of the name 31 as a rectangle.

図5に示すように、矩形項目情報40は、帳票の背景画像から取得された矩形領域と直線に対応して設定された矩形領域とに含まれる項目の情報(項目詳細情報)を項目グループ別に有する情報群である。項目グループとは、帳票の背景画像において、Y座標が同じ矩形領域の項目詳細情報をまとめた集合である。例えば、帳票の背景画像F1において、矩形領域R1〜R5は、1つの項目グループG1に含まれる。 As shown in FIG. 5, the rectangular item information 40 provides information (item detailed information) of items included in the rectangular area acquired from the background image of the form and the rectangular area set corresponding to the straight line for each item group. It is a group of information to have. The item group is a set of item detailed information in a rectangular area having the same Y coordinate in the background image of the form. For example, in the background image F1 of the form, the rectangular areas R1 to R5 are included in one item group G1.

矩形項目情報40は、図5上の矢印により関連付けられた項目グループ情報アドレス41、項目詳細情報アドレス42、項目詳細情報43の情報を有する。項目グループ情報アドレス41は、帳票の背景画像内の項目グループ情報のアドレス情報である。項目詳細情報アドレス42は、項目グループ情報アドレス41の項目グループに含まれる矩形領域の項目詳細情報43のアドレス情報である。例えば、項目グループ情報アドレス41は、含まれる先頭の項目詳細情報アドレス42のアドレスである。また、例えば、項目詳細情報アドレス42は、含まれる項目詳細情報43のアドレスである。 The rectangular item information 40 has information of the item group information address 41, the item detailed information address 42, and the item detailed information 43 associated with each other by the arrows on FIG. The item group information address 41 is the address information of the item group information in the background image of the form. The item detailed information address 42 is the address information of the item detailed information 43 of the rectangular area included in the item group of the item group information address 41. For example, the item group information address 41 is the address of the first item detailed information address 42 included. Further, for example, the item detailed information address 42 is the address of the included item detailed information 43.

項目詳細情報43は、項目詳細情報アドレス42の矩形領域に含まれる項目の詳細情報である。項目詳細情報43は、文字列431、項目区分432、領域433の情報を有する。文字列431は、項目詳細情報アドレス42の矩形領域に含まれる項目詳細情報の文字列である。項目区分432は、項目詳細情報アドレス42の矩形領域に含まれる項目詳細情報の区分である。項目区分432は、帳票フォームにおいて文字の入力を受け付ける出力項目と、帳票フォームにおいて文字列の表示のみを行う名称項目と、のいずれか1つである。領域433は、項目詳細情報アドレス42の矩形領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 The item detailed information 43 is detailed information of the item included in the rectangular area of the item detailed information address 42. The item detailed information 43 has information on the character string 431, the item category 432, and the area 433. The character string 431 is a character string of the item detailed information included in the rectangular area of the item detailed information address 42. The item classification 432 is a classification of the item detailed information included in the rectangular area of the item detailed information address 42. The item category 432 is one of an output item that accepts the input of characters in the form and a name item that only displays the character string in the form. The area 433 is a coordinate value of each side of the left end (X axis), the upper end (Y axis), the right end (X axis), and the lower end (Y axis) of the rectangular area of the item detailed information address 42.

図6に示すように、帳票フォーム情報50は、スキャンされた帳票について具体的な文字の入力を受け付ける帳票フォーム(画面)を設定するための情報である。帳票フォーム情報50は、項目情報50Aと、明細情報50Bと、を有する。 As shown in FIG. 6, the form form information 50 is information for setting a form form (screen) that accepts input of specific characters for the scanned form. The form information 50 has item information 50A and detailed information 50B.

図7に示すように、帳票の背景画像F1から得られた帳票フォーム情報50は、具体的な文字の入力を受け付ける情報記入欄の領域として、明細領域SP1と、繰返領域RP1と、出力項目T1〜T19と、に関する情報(項目詳細情報)を有する。明細情報50Bは、帳票において、X軸方向の同じ並びパターン(形状(幅)及び位置)の複数の矩形領域からなる繰返領域(例えば繰返領域PR1)がY軸方向に連続的に繰り返された明細領域(例えば明細領域SP1)の情報である。繰返領域RP1は、明細領域SP1のうちY軸方向に繰り返される項目グループ情報単位の領域である。繰返領域PR1には、出力項目T6〜T11が含まれる。項目情報50Aとは、帳票において、明細領域以外の情報記入欄の各矩形領域(例えば出力項目T1〜T5,T12〜T19)の情報である。 As shown in FIG. 7, the form information 50 obtained from the background image F1 of the form has a detail area SP1, a repeat area RP1, and output items as an area of an information entry field for accepting the input of specific characters. It has information (item detailed information) regarding T1 to T19. In the detailed information 50B, in the form, a repeating region (for example, repeating region PR1) composed of a plurality of rectangular regions having the same arrangement pattern (shape (width) and position) in the X-axis direction is continuously repeated in the Y-axis direction. It is the information of the detailed area (for example, the detailed area SP1). The repeat area RP1 is an area of the item group information unit that is repeated in the Y-axis direction in the detail area SP1. The repeat area PR1 includes output items T6 to T11. The item information 50A is information in each rectangular area (for example, output items T1 to T5, T12 to T19) of the information entry field other than the detail area in the form.

また、繰返領域PR1において、出力項目T9は、X軸方向に同じ幅の8個の矩形領域(R9〜R16)を1つに統合した矩形領域としている。また、繰返領域PR1と同じ並びパターン(形状(幅)及び位置)の矩形領域(R97〜R109)を有し、項目区分が異なる矩形領域(R97)を少なくとも1つ有する領域を、繰返領域PR1の類似領域AN1とする。類似領域AN1には、出力項目T12〜T16が含まれる。類似領域AN1においても、出力項目T14は、X軸方向に同じ幅の8個の矩形領域(R100〜R108)を1つに統合した矩形領域としている。 Further, in the repeat region PR1, the output item T9 is a rectangular region in which eight rectangular regions (R9 to R16) having the same width in the X-axis direction are integrated into one. Further, a region having a rectangular region (R97 to R109) having the same arrangement pattern (shape (width) and position) as the repeat region PR1 and having at least one rectangular region (R97) having a different item classification is a repeat region. Let it be a similar region AN1 of PR1. The similar region AN1 includes output items T12 to T16. Also in the similar region AN1, the output item T14 is a rectangular region in which eight rectangular regions (R100 to R108) having the same width in the X-axis direction are integrated into one.

帳票フォーム情報50は、図6の矢印で関連付けられるように、明細領域以外の領域の項目情報50Aとして、項目情報アドレス51、項目詳細情報アドレス52、項目詳細情報53と、明細領域の明細情報50Bとして、明細情報アドレス54、明細情報55、項目詳細情報アドレス56、項目詳細情報57と、の情報を有する。項目情報アドレス51は、項目情報50Aのアドレス情報である。項目詳細情報アドレス52は、項目情報アドレス51の項目情報に含まれる項目詳細情報53のアドレス情報である。項目情報アドレス51は、例えば、含まれる先頭の項目詳細情報アドレス52で表される。 As shown by the arrows in FIG. 6, the form information 50 includes the item information address 51, the item detailed information address 52, the item detailed information 53, and the detailed information 50B in the detailed area as the item information 50A in the area other than the detailed area. As the detailed information address 54, the detailed information 55, the item detailed information address 56, and the item detailed information 57, the information is provided. The item information address 51 is the address information of the item information 50A. The item detailed information address 52 is the address information of the item detailed information 53 included in the item information of the item information address 51. The item information address 51 is represented by, for example, the first item detailed information address 52 included.

項目詳細情報53は、項目情報50Aの項目詳細情報である。項目詳細情報53は、項目名531と、項目種532と、領域533と、の情報を有する。項目名531は、項目詳細情報アドレス52の項目詳細情報の出力項目の名称である。項目種532は、項目詳細情報アドレス52の項目詳細情報の出力項目の種類であり、例えば文字である。領域533は、項目詳細情報アドレス52の項目詳細情報の出力項目の矩形領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 The item detailed information 53 is the item detailed information of the item information 50A. The item detailed information 53 has information on the item name 531 and the item type 532 and the area 533. The item name 531 is the name of the output item of the item detailed information of the item detailed information address 52. The item type 532 is a type of an output item of the item detailed information of the item detailed information address 52, and is, for example, a character. The area 533 is the coordinate value of each side of the left end (X axis), the upper end (Y axis), the right end (X axis), and the lower end (Y axis) of the rectangular area of the output item of the item detailed information of the item detailed information address 52. Is.

明細情報アドレス54は、明細情報50Bのアドレス情報である。明細情報55は、明細情報アドレス54の繰返領域の項目詳細情報以外の明細領域に関する情報を有する。明細情報55は、明細領域551と、繰返領域552と、移動量553と、項目情報アドレス554と、の情報を有する。明細領域551は、明細情報アドレス54の明細領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。繰返領域552は、明細情報アドレス54の明細領域の繰返領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。移動量553は、明細情報アドレス54の明細領域の繰返領域のY軸方向の繰り返しの幅の値である。項目情報アドレス554は、明細情報アドレス54の明細領域の繰返領域の項目詳細情報アドレス56のアドレス情報である。項目詳細情報アドレス56は、明細情報アドレス54の明細領域の繰返領域の項目詳細情報57のアドレス情報である。項目情報アドレス554は、例えば、含まれる先頭の項目詳細情報アドレス56とされる。 The detailed information address 54 is the address information of the detailed information 50B. The detailed information 55 has information about the detailed area other than the item detailed information of the repeated area of the detailed information address 54. The detailed information 55 has information on the detailed area 551, the repeating area 552, the movement amount 553, and the item information address 554. The detail area 551 is a coordinate value of each side of the left end (X axis), the upper end (Y axis), the right end (X axis), and the lower end (Y axis) of the detail area of the detail information address 54. The repeat area 552 is a value of the coordinates of each side of the left end (X axis), the upper end (Y axis), the right end (X axis), and the lower end (Y axis) of the repeat area of the detail area of the detail information address 54. .. The movement amount 553 is a value of the width of repetition in the Y-axis direction of the repeat area of the detail area of the detail information address 54. The item information address 554 is the address information of the item detailed information address 56 of the repeating area of the detailed area of the detailed information address 54. The item detailed information address 56 is the address information of the item detailed information 57 in the repeating area of the detailed area of the detailed information address 54. The item information address 554 is, for example, the first item detailed information address 56 included.

項目詳細情報57は、明細情報アドレス54の明細領域の繰返領域の項目詳細情報である。項目詳細情報57は、項目名571と、項目種572と、領域573と、の情報を有する。項目名571は、項目詳細情報アドレス56の項目詳細情報の出力項目の名称である。項目種572は、項目詳細情報アドレス56の項目詳細情報の出力項目の種類であり、例えば文字である。領域573は、項目詳細情報アドレス56の項目詳細情報の出力項目の矩形領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 The item detailed information 57 is item detailed information of the repeating area of the detailed area of the detailed information address 54. The item detailed information 57 has information on the item name 571, the item type 572, and the area 573. The item name 571 is the name of the output item of the item detailed information of the item detailed information address 56. The item type 572 is a type of an output item of the item detailed information of the item detailed information address 56, and is, for example, a character. The area 573 is the coordinate value of each side of the left end (X axis), the upper end (Y axis), the right end (X axis), and the lower end (Y axis) of the rectangular area of the output item of the item detailed information of the item detailed information address 56. Is.

図8に示すように、文字抽出テーブル60は、帳票の背景画像のうちの文字を含む項目情報50Aの矩形領域から抽出された各文字部分の矩形領域の情報を有するテーブルである。文字抽出テーブル60は、文字61と、領域62と、のカラムを有する。文字61は、項目情報の矩形領域に含まれる各文字である。領域62は、文字61の文字のみの矩形領域の左端(X軸)、上端(Y軸)、右端(X軸)、下端(Y軸)の各辺の座標の値である。 As shown in FIG. 8, the character extraction table 60 is a table having information on the rectangular area of each character portion extracted from the rectangular area of the item information 50A including the characters in the background image of the form. The character extraction table 60 has columns of characters 61 and regions 62. The character 61 is each character included in the rectangular area of the item information. The area 62 is a coordinate value of each side of the left end (X-axis), the upper end (Y-axis), the right end (X-axis), and the lower end (Y-axis) of the rectangular area containing only the characters of the characters 61.

次に、図9〜図18を参照して、帳票管理装置10の動作を説明する。図9は、矩形情報追加処理を示すフローチャートである。図10は、矩形項目情報作成処理を示すフローチャートである。図11は、帳票フォーム情報作成処理を示すフローチャートである。図12は、同一項目グループ検出処理を示すフローチャートである。図13は、項目情報追加処理を示すフローチャートである。図14は、領域分割処理を示すフローチャートである。図15は、明細情報追加処理を示すフローチャートである。図16は、明細項目追加処理を示すフローチャートである。図17は、類似項目グループ検出処理を示すフローチャートである。図18は、類似項目追加処理を示すフローチャートである。 Next, the operation of the form management device 10 will be described with reference to FIGS. 9 to 18. FIG. 9 is a flowchart showing the rectangle information addition process. FIG. 10 is a flowchart showing a rectangular item information creation process. FIG. 11 is a flowchart showing the form information creation process. FIG. 12 is a flowchart showing the same item group detection process. FIG. 13 is a flowchart showing the item information addition process. FIG. 14 is a flowchart showing the area division process. FIG. 15 is a flowchart showing the detailed information addition process. FIG. 16 is a flowchart showing a detailed item addition process. FIG. 17 is a flowchart showing a similar item group detection process. FIG. 18 is a flowchart showing a similar item addition process.

先ず、図9を参照して、矩形情報追加処理を説明する。矩形情報追加処理は、帳票フォーム情報50を作成する対象の帳票をスキャンし、背景画像から矩形領域及び直線の情報を抽出し、直線に出力項目のための矩形領域を設定してその矩形領域の情報を追加する処理である。予め、ユーザにより、対象の帳票がスキャナ部17にセットされているものとする。 First, the rectangle information addition process will be described with reference to FIG. The rectangle information addition process scans the target form for which the form information 50 is created, extracts the information of the rectangle area and the straight line from the background image, sets the rectangle area for the output item in the straight line, and sets the rectangular area of the rectangle area. This is the process of adding information. It is assumed that the target form is set in the scanner unit 17 in advance by the user.

そして、帳票管理装置10において、例えば、操作部12を介してユーザから矩形情報追加処理の実行指示が入力されたことをトリガとして、CPU11は、記憶部15から読み出されて適宜RAM13に展開された帳票管理制御プログラムPの一部との協働により、矩形情報追加処理を実行する。 Then, in the form management device 10, for example, the CPU 11 is read from the storage unit 15 and appropriately expanded into the RAM 13 triggered by the input of the execution instruction of the rectangular information addition process from the user via the operation unit 12. Rectangle information addition processing is executed in collaboration with a part of the form management control program P.

図9に示すように、先ず、CPU11は、スキャナ部17により、セットされた帳票をスキャンし、その背景画像データを記憶部15に記憶する(ステップS11)。ステップS11では、例えば、図3の帳票の背景画像F1の背景画像データが記憶される。 As shown in FIG. 9, first, the CPU 11 scans the set form by the scanner unit 17, and stores the background image data in the storage unit 15 (step S11). In step S11, for example, the background image data of the background image F1 of the form of FIG. 3 is stored.

そして、CPU11は、ステップS11で取得された帳票の背景画像データを画像解析して矩形領域及び直線を抽出し、抽出した矩形領域及び直線の情報を取得して矩形領域テーブル20及び直線テーブル30を作成して記憶部15に記憶する(ステップS12)。ステップS12では、例えば、図4の矩形領域R1〜R115及び直線L1〜L5が取得される。ステップS12では、抽出された矩形領域にユニークな名称が付与されて名称21とされ、当該矩形領域の左端、上端、右端、下端の各辺の座標の値が領域22とされて矩形領域テーブル20が作成される。また、抽出された直線にユニークな名称が付与されて名称31とされ、当該直線の左端、上端、右端、下端の各辺の座標の値が領域32とされて直線テーブル30が作成される。 Then, the CPU 11 analyzes the background image data of the form acquired in step S11 to extract a rectangular area and a straight line, acquires the information of the extracted rectangular area and the straight line, and obtains the rectangular area table 20 and the straight line table 30. It is created and stored in the storage unit 15 (step S12). In step S12, for example, the rectangular regions R1 to R115 and the straight lines L1 to L5 of FIG. 4 are acquired. In step S12, a unique name is given to the extracted rectangular area to give the name 21, and the coordinate values of the left end, the upper end, the right end, and the lower end of the rectangular area are set to the area 22 and the rectangular area table 20 is used. Is created. Further, a unique name is given to the extracted straight line to give the name 31, and the coordinate values of the left end, the upper end, the right end, and the lower end of the straight line are set as the area 32, and the straight line table 30 is created.

そして、CPU11は、直線テーブル30の先頭レコードを直線情報として取得する(ステップS13)。そして、CPU11は、ステップS13又はS18で取得された直線情報があるか否かを判別する(ステップS14)。直線情報がない場合(ステップS14;NO)、矩形情報追加処理が終了する。 Then, the CPU 11 acquires the first record of the straight line table 30 as straight line information (step S13). Then, the CPU 11 determines whether or not there is the linear information acquired in step S13 or S18 (step S14). If there is no straight line information (step S14; NO), the rectangle information addition process ends.

直線情報がある場合(ステップS14;YES)、CPU11は、取得中の直線情報の領域32の上端及び下端が同じ(つまり左右方向の直線)であるか否かを判別する(ステップS15)。 When there is straight line information (step S14; YES), the CPU 11 determines whether or not the upper end and the lower end of the area 32 of the straight line information being acquired are the same (that is, straight lines in the left-right direction) (step S15).

上端及び下端が同じ場合(ステップS15;YES)、CPU11は、取得中の直線情報の領域32の下端が所定値としての50以上であるか否かを判別する(ステップS16)。ステップS16の所定値は、少なくとも出力項目(帳票フォームにおいて具体的な文字を入力する矩形領域)の高さを確保するための値である。 When the upper end and the lower end are the same (step S15; YES), the CPU 11 determines whether or not the lower end of the area 32 of the linear information being acquired is 50 or more as a predetermined value (step S16). The predetermined value in step S16 is a value for securing at least the height of the output item (rectangular area for inputting specific characters in the form).

下端が50以上である場合(ステップS16;YES)、CPU11は、取得中の直線情報の領域32の左端、右端、下端を同じとし、かつ上端−50(出力項目用の所定値)を上端とした矩形領域を設定し、当該矩形領域の情報を矩形領域テーブル20に追加する(ステップS17)。ステップS17では、例えば、図4の直線L3〜L5上に矩形領域R116〜R118が設定される。ステップS17では、設定された矩形領域にユニークな名称が付与されて名称21とされ、当該矩形領域の左端、上端、右端、下端の各辺の座標の値が領域22とされて矩形領域テーブル20にレコードが追加される。そして、CPU11は、直線テーブル30において、取得中の直線情報の次のレコードを直線情報として取得し(ステップS18)、ステップS14に移行する。上端及び下端が異なる場合(ステップS15;NO)、ステップS18に移行される。下端が50未満である場合(ステップS16;NO)、ステップS18に移行される。 When the lower end is 50 or more (step S16; YES), the CPU 11 sets the left end, the right end, and the lower end of the area 32 of the linear information being acquired to be the same, and sets the upper end -50 (predetermined value for the output item) as the upper end. The rectangular area is set, and the information of the rectangular area is added to the rectangular area table 20 (step S17). In step S17, for example, rectangular regions R116 to R118 are set on the straight lines L3 to L5 in FIG. In step S17, a unique name is given to the set rectangular area to be the name 21, and the coordinate values of the left end, the upper end, the right end, and the lower end of the rectangular area are set to the area 22 and the rectangular area table 20 is used. The record is added to. Then, the CPU 11 acquires the next record of the linear information being acquired in the linear table 30 as linear information (step S18), and proceeds to step S14. If the upper end and the lower end are different (step S15; NO), the process proceeds to step S18. If the lower end is less than 50 (step S16; NO), the process proceeds to step S18.

次いで、図10を参照して、矩形項目情報作成処理を説明する。矩形項目情報作成処理は、矩形情報追加処理で作成された矩形領域テーブル20から、矩形領域ごとの項目詳細情報を有する矩形項目情報40を作成する処理である。予め、矩形情報追加処理が実行され、帳票フォームを作成する対象の帳票の矩形領域テーブル20が記憶部15に記憶されているものとする。 Next, the rectangle item information creation process will be described with reference to FIG. The rectangular item information creation process is a process of creating rectangular item information 40 having item detailed information for each rectangular area from the rectangular area table 20 created by the rectangular information addition process. It is assumed that the rectangle information addition process is executed in advance and the rectangle area table 20 of the form to be created for creating the form is stored in the storage unit 15.

帳票管理装置10において、例えば、操作部12を介してユーザから矩形項目情報作成処理の実行指示が入力されたことをトリガとして、CPU11は、記憶部15から読み出されて適宜RAM13に展開された帳票管理制御プログラムPの一部との協働により、矩形項目情報作成処理を実行する。 In the form management device 10, for example, the CPU 11 is read from the storage unit 15 and appropriately expanded into the RAM 13 triggered by the user inputting the execution instruction of the rectangular item information creation process via the operation unit 12. The rectangle item information creation process is executed in cooperation with a part of the form management control program P.

図10に示すように、先ず、CPU11は、記憶部15に記憶された矩形領域テーブル20から先頭のレコードを矩形領域情報として取得する(ステップS21)。そして、CPU11は、ステップS21又はS39で取得された矩形領域情報があるか否かを判別する(ステップS22)。矩形領域情報がない場合(ステップS22;NO)、矩形項目情報作成処理が終了する。 As shown in FIG. 10, first, the CPU 11 acquires the first record as the rectangular area information from the rectangular area table 20 stored in the storage unit 15 (step S21). Then, the CPU 11 determines whether or not there is the rectangular area information acquired in step S21 or S39 (step S22). If there is no rectangular area information (step S22; NO), the rectangular item information creation process ends.

矩形領域情報がある場合(ステップS22;YES)、CPU11は、取得中の矩形領域情報に対応する空の項目詳細情報43を生成して記憶部15に記憶する(ステップS23)。 When there is rectangular area information (step S22; YES), the CPU 11 generates empty item detailed information 43 corresponding to the rectangular area information being acquired and stores it in the storage unit 15 (step S23).

そして、CPU11は、記憶部15に記憶された帳票の背景画像データを用いて、取得中の矩形領域情報の領域22の矩形領域内をOCR(Optical Character Recognition:光学文字認識)などにより文字認識し、当該矩形領域に認識された文字があるか否かを判別する(ステップS24)。矩形領域に文字がある場合(ステップS24;YES)、CPU11は、ステップS23で作成された項目詳細情報43の文字列431に、ステップS24で取得された文字列を設定する(ステップS25)。矩形領域に文字がない場合(ステップS24;NO)、CPU11は、ステップS23で作成された項目詳細情報43の文字列431に、空の情報を設定する(ステップS26)。 Then, the CPU 11 uses the background image data of the form stored in the storage unit 15 to recognize characters in the rectangular area of the rectangular area information area 22 being acquired by OCR (Optical Character Recognition) or the like. , It is determined whether or not there is a recognized character in the rectangular area (step S24). When there is a character in the rectangular area (step S24; YES), the CPU 11 sets the character string 431 of the item detailed information 43 created in step S23 to the character string acquired in step S24 (step S25). When there is no character in the rectangular area (step S24; NO), the CPU 11 sets empty information in the character string 431 of the item detailed information 43 created in step S23 (step S26).

そして、CPU11は、ステップS24で認識された文字列(文字)が矩形領域の左右方向の中央を跨ぐ位置に配置されているか否かを判別する(ステップS27)。文字列が矩形領域の中央を跨ぐ場合(ステップS27;YES)、CPU11は、ステップS24で認識された文字列(文字)が「年月」又は「年月日」であるか否かを判別する(ステップS28)。文字列が「年月」又は「年月日」である場合(ステップS28;YES)、CPU11は、ステップS23で作成された項目詳細情報43の項目区分432に「出力項目」を設定する(ステップS29)。ステップS29では、例えば、図4の背景画像F1において、「年月日」を含む矩形領域R11、文字「%」が右端に存在する矩形領域R111が、出力項目に設定される。なお、ここでは、番号が左端に存在する矩形領域R6,R19,R32,R45,R58,R71,R84は、左端の番号が小さく読み取られていないものとして出力項目に設定されるものとするが、仮に左端の番号が文字として扱われるとした場合にも出力項目に設定される。文字列が矩形領域の中央を跨がない場合(ステップS27;NO)、ステップS29に移行される。文字列が「年月」又は「年月日」でない場合(ステップS28;NO)、CPU11は、ステップS23で作成された項目詳細情報43の項目区分432に「名称項目」を設定する(ステップS30)。 Then, the CPU 11 determines whether or not the character string (character) recognized in step S24 is arranged at a position straddling the center in the left-right direction of the rectangular area (step S27). When the character string straddles the center of the rectangular area (step S27; YES), the CPU 11 determines whether or not the character string (character) recognized in step S24 is the "year / month" or the "year / month / day". (Step S28). When the character string is "year / month" or "year / month / day" (step S28; YES), the CPU 11 sets the "output item" in the item category 432 of the item detailed information 43 created in step S23 (step S28; YES). S29). In step S29, for example, in the background image F1 of FIG. 4, the rectangular area R11 including the “year / month / day” and the rectangular area R111 in which the character “%” exists at the right end are set as output items. Here, it is assumed that the rectangular areas R6, R19, R32, R45, R58, R71, and R84 whose numbers exist at the left end are set as output items as if the numbers at the left end are small and not read. Even if the leftmost number is treated as a character, it is set as an output item. If the character string does not straddle the center of the rectangular area (step S27; NO), the process proceeds to step S29. When the character string is not "year / month" or "year / month / day" (step S28; NO), the CPU 11 sets the "name item" in the item category 432 of the item detailed information 43 created in step S23 (step S30). ).

ステップS29又はS30の後、CPU11は、取得中の矩形領域情報の領域22の左端、上端、右端、下端の値を、ステップS23で作成された項目詳細情報43の領域433に設定する(ステップS31)。そして、CPU11は、ステップS31で設定された領域433の上端及び下端が、後述するステップS38でRAMに記憶された一つ前に取得された矩形領域情報の上端及び下端と一致するか否かを判別する(ステップS32)。初めてステップS32が実行される場合には、RAM13に一つ前に取得された矩形領域情報が記憶されていない。 After step S29 or S30, the CPU 11 sets the values of the left end, the upper end, the right end, and the lower end of the rectangular area information area 22 being acquired in the area 433 of the item detailed information 43 created in step S23 (step S31). ). Then, the CPU 11 determines whether or not the upper and lower ends of the area 433 set in step S31 coincide with the upper and lower ends of the previously acquired rectangular area information stored in the RAM in step S38 described later. Determine (step S32). When step S32 is executed for the first time, the previously acquired rectangular area information is not stored in the RAM 13.

上端及び下端が一致しない場合(ステップS32;NO)、取得中及び一つ前に取得された矩形領域情報が異なる項目グループであり、又は取得中の矩形領域情報が新規な項目グループであり、CPU11は、新規の項目グループ情報を作成し、当該項目グループ情報の項目詳細情報アドレス42を設定し、ステップS23で作成された項目詳細情報43に関連付けて記憶部15に記憶する(ステップS33)。 When the upper end and the lower end do not match (step S32; NO), the rectangular area information being acquired and acquired immediately before is a different item group, or the rectangular area information being acquired is a new item group, and the CPU 11 Creates new item group information, sets the item detailed information address 42 of the item group information, and stores it in the storage unit 15 in association with the item detailed information 43 created in step S23 (step S33).

そして、CPU11は、矩形項目情報40がないか否かを判別する(ステップS34)。矩形項目情報40がない場合(ステップS34;YES)、CPU11は、矩形項目情報40を作成し、作成した矩形項目情報40に、ステップS33で作成された項目グループ情報の項目グループ情報アドレス41を設定し、ステップS33で作成された項目詳細情報アドレス42に関連付けて記憶部15に記憶する(ステップS35)。 Then, the CPU 11 determines whether or not there is the rectangular item information 40 (step S34). When there is no rectangular item information 40 (step S34; YES), the CPU 11 creates the rectangular item information 40, and sets the item group information address 41 of the item group information created in step S33 in the created rectangular item information 40. Then, it is stored in the storage unit 15 in association with the item detailed information address 42 created in step S33 (step S35).

矩形項目情報40がある場合(ステップS34;NO)、CPU11は、既存の矩形項目情報40を拡張して、ステップS33で作成された項目グループ情報の項目グループ情報アドレス41を設定し、ステップS33で作成された項目詳細情報アドレス42に関連付けて記憶部15に記憶する(ステップS36)。 When there is rectangular item information 40 (step S34; NO), the CPU 11 extends the existing rectangular item information 40 to set the item group information address 41 of the item group information created in step S33, and in step S33. It is stored in the storage unit 15 in association with the created item detailed information address 42 (step S36).

上端及び下端が一致する場合(ステップS32;YES)、取得中及び一つ前に取得された矩形領域情報が同じ項目グループであり、CPU11は、ステップS33で作成された既存の項目グループ情報を拡張し、当該項目グループ情報の項目詳細情報アドレス42を設定し、ステップS23で作成された項目詳細情報43と、ステップS35又はS36で設定された項目グループ情報アドレス41と、に関連付けて記憶部15に記憶する(ステップS37)。 When the upper end and the lower end match (step S32; YES), the rectangular area information being acquired and acquired immediately before is the same item group, and the CPU 11 extends the existing item group information created in step S33. Then, the item detailed information address 42 of the item group information is set, and the item detailed information 43 created in step S23 and the item group information address 41 set in step S35 or S36 are associated with the storage unit 15. Store (step S37).

ステップS35,S36又はS37の実行後、CPU11は、ステップS31で設定された取得中の矩形領域情報に対応する項目詳細情報43の領域433をRAM13に記憶する(ステップS38)。そして、CPU11は、矩形領域テーブル20から次のレコードを矩形領域情報として取得し(ステップS39)、ステップS22に移行する。 After executing steps S35, S36 or S37, the CPU 11 stores the area 433 of the item detailed information 43 corresponding to the rectangular area information being acquired set in step S31 in the RAM 13 (step S38). Then, the CPU 11 acquires the next record as the rectangular area information from the rectangular area table 20 (step S39), and proceeds to step S22.

次に、図11〜図18を参照して、帳票フォーム情報作成処理を説明する。帳票フォーム情報作成処理は、矩形項目情報作成処理で作成された矩形項目情報40から、帳票の帳票フォーム情報50を作成する処理である。予め、矩形項目情報作成処理が実行され、帳票フォーム情報50を作成する対象の帳票の矩形項目情報40が記憶部15に記憶されているものとする。 Next, the form information creation process will be described with reference to FIGS. 11 to 18. The form form information creation process is a process of creating the form form information 50 of the form from the rectangular item information 40 created by the rectangular item information creation process. It is assumed that the rectangle item information creation process is executed in advance, and the rectangle item information 40 of the form for which the form information 50 is to be created is stored in the storage unit 15.

帳票管理装置10において、例えば、操作部12を介してユーザから帳票フォーム情報作成処理の実行指示が入力されたことをトリガとして、CPU11は、記憶部15から読み出されて適宜RAM13に展開された帳票管理制御プログラムPの一部との協働により、帳票フォーム情報作成処理を実行する。 In the form management device 10, for example, the CPU 11 is read from the storage unit 15 and appropriately expanded into the RAM 13 triggered by the user inputting an execution instruction of the form information creation process via the operation unit 12. Form management The form information creation process is executed in cooperation with a part of the form management control program P.

図11に示すように、先ず、CPU11は、記憶部15に記憶された矩形項目情報40から先頭の項目グループ情報アドレス41に対応する情報を項目グループ情報g1として取得する(ステップS41)。そして、CPU11は、ステップS41,S48又はS50で取得された項目グループ情報g1があるか否かを判別する(ステップS42)。項目グループ情報g1がない場合(ステップS42;NO)、帳票フォーム情報作成処理が終了する。 As shown in FIG. 11, first, the CPU 11 acquires the information corresponding to the head item group information address 41 from the rectangular item information 40 stored in the storage unit 15 as the item group information g1 (step S41). Then, the CPU 11 determines whether or not there is the item group information g1 acquired in steps S41, S48 or S50 (step S42). If there is no item group information g1 (step S42; NO), the form information creation process ends.

項目グループ情報g1がある場合(ステップS42;YES)、CPU11は、矩形項目情報40から項目グループ情報g1の次の項目グループ情報アドレス41に対応する情報を項目グループ情報g2として取得する(ステップS43)。そして、CPU11は、ステップS43で取得された項目グループ情報g2があるか否かを判別する(ステップS44)。項目グループ情報g2がある場合(ステップS44;YES)、CPU11は、同一項目グループ検出処理を実行する(ステップS45)。 When there is the item group information g1 (step S42; YES), the CPU 11 acquires the information corresponding to the item group information address 41 next to the item group information g1 from the rectangular item information 40 as the item group information g2 (step S43). .. Then, the CPU 11 determines whether or not there is the item group information g2 acquired in step S43 (step S44). When there is item group information g2 (step S44; YES), the CPU 11 executes the same item group detection process (step S45).

ここで、図12を参照して、ステップS45の同一項目グループ検出処理を説明する。先ず、CPU11は、取得中の項目グループ情報g1,g2が同一の構成(項目区分、領域(X軸方向の左端、右端の各辺の座標))であるか否かを示す同一構成フラグを「真(同一構成である)」に設定する(ステップS61)。そして、CPU11は、取得中の項目グループ情報g1の先頭の項目詳細情報43を項目詳細情報d1として取得する(ステップS62)。そして、CPU11は、取得中の項目グループ情報g2の先頭の項目詳細情報43を項目詳細情報d2として取得する(ステップS63)。 Here, the same item group detection process in step S45 will be described with reference to FIG. First, the CPU 11 sets the same configuration flag indicating whether or not the item group information g1 and g2 being acquired have the same configuration (item classification, area (coordinates of each side of the left end and the right end in the X-axis direction)). It is set to "true (same configuration)" (step S61). Then, the CPU 11 acquires the first item detailed information 43 of the item group information g1 being acquired as the item detailed information d1 (step S62). Then, the CPU 11 acquires the item detailed information 43 at the beginning of the item group information g2 being acquired as the item detailed information d2 (step S63).

そして、CPU11は、ステップS62又はS67で取得された項目詳細情報d1と、ステップS63又はS68で取得された項目詳細情報d2と、の両方があるか否かを判別する(ステップS64)。項目詳細情報d1,d2がない場合(ステップS64;NO)、同一項目グループ検出処理が終了する。項目詳細情報d1,d2がある場合(ステップS64;YES)、CPU11は、取得中の項目詳細情報d1,d2の項目区分432が同じであるか否かを判別する(ステップS65)。 Then, the CPU 11 determines whether or not there is both the item detailed information d1 acquired in step S62 or S67 and the item detailed information d2 acquired in step S63 or S68 (step S64). If the item detailed information d1 and d2 are not present (step S64; NO), the same item group detection process ends. When there is item detailed information d1 and d2 (step S64; YES), the CPU 11 determines whether or not the item division 432 of the item detailed information d1 and d2 being acquired is the same (step S65).

項目区分432が同じである場合(ステップS65;YES)、CPU11は、取得中の項目詳細情報d1,d2の領域433の左端及び右端が同じであるか否かを判別する(ステップS66)。左端及び右端が同じである場合(ステップS66;YES)、CPU11は、取得中の項目グループ情報g1の次の項目詳細情報43を項目詳細情報d1として取得する(ステップS67)。そして、CPU11は、取得中の項目グループ情報g2の次の項目詳細情報43を項目詳細情報d2として取得し(ステップS68)、ステップS64に移行する。 When the item division 432 is the same (step S65; YES), the CPU 11 determines whether or not the left end and the right end of the area 433 of the item detailed information d1 and d2 being acquired are the same (step S66). When the left end and the right end are the same (step S66; YES), the CPU 11 acquires the next item detailed information 43 of the item group information g1 being acquired as the item detailed information d1 (step S67). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g2 being acquired as the item detailed information d2 (step S68), and proceeds to step S64.

項目区分432が異なる場合(ステップS65;NO)、又は左端及び右端が同じでない場合(ステップS66;NO)、CPU11は、項目グループ情報g1,g2の同一構成フラグを「偽(同一構成でない)」に設定し(ステップS69)、同一項目グループ検出処理を終了する。 When the item classification 432 is different (step S65; NO), or when the left end and the right end are not the same (step S66; NO), the CPU 11 sets the same configuration flag of the item group information g1 and g2 to "false (not the same configuration)". (Step S69), and the same item group detection process ends.

同一項目グループ検出処理により、例えば、図7の帳票の背景画像F1における繰返領域RP1と同一の項目区分、形状及び位置の矩形領域からなる領域(矩形領域R19〜R31)の項目グループ情報の同一構成フラグが「真」に設定される。 By the same item group detection processing, for example, the item group information of the area (rectangular area R19 to R31) consisting of the rectangular area having the same item classification, shape and position as the repeating area RP1 in the background image F1 of the form of FIG. 7 is the same. The configuration flag is set to "true".

図11に戻り、ステップS45の実行後、CPU11は、ステップS45で設定された同一構成フラグが「真」であるか否かを判別する(ステップS46)。同一構成フラグが「偽」である場合(ステップS46;NO)、CPU11は、項目情報追加処理を実行する(ステップS47)。 Returning to FIG. 11, after executing step S45, the CPU 11 determines whether or not the same configuration flag set in step S45 is “true” (step S46). When the same configuration flag is "false" (step S46; NO), the CPU 11 executes the item information addition process (step S47).

ここで、図13を参照して、ステップS47の項目情報追加処理を説明する。図13に示すように、先ず、CPU11は、取得中の項目グループ情報g1の先頭の項目詳細情報43を項目詳細情報d3として取得する(ステップS71)。そして、CPU11は、ステップS71又はS75で取得された項目詳細情報d3があるか否かを判別する(ステップS72)。項目詳細情報d3がない場合(ステップS72;NO)、項目情報追加処理が終了する。 Here, the item information addition process in step S47 will be described with reference to FIG. As shown in FIG. 13, first, the CPU 11 acquires the first item detailed information 43 of the item group information g1 being acquired as the item detailed information d3 (step S71). Then, the CPU 11 determines whether or not there is the item detailed information d3 acquired in step S71 or S75 (step S72). If there is no item detailed information d3 (step S72; NO), the item information addition process ends.

項目詳細情報d3がある場合(ステップS72;YES)、CPU11は、項目詳細情報d3の項目区分432を判別する(ステップS73)。項目区分432が「名称項目」である場合(ステップS73;名称項目)、CPU11は、名称項目の文字列をRAM13に記憶する(ステップS74)。そして、CPU11は、取得中の項目グループ情報g1の次の項目詳細情報43を項目詳細情報d3として取得し(ステップS75)、ステップS72に移行する。 When there is item detailed information d3 (step S72; YES), the CPU 11 determines the item division 432 of the item detailed information d3 (step S73). When the item category 432 is a "name item" (step S73; name item), the CPU 11 stores the character string of the name item in the RAM 13 (step S74). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g1 being acquired as the item detailed information d3 (step S75), and proceeds to step S72.

項目区分432が「出力項目」である場合(ステップS73;出力項目)、CPU11は、項目詳細情報53としての項目詳細情報e1を作成し、取得中の項目詳細情報d3の領域433の左端、上端及び下端を項目詳細情報e1の領域533の左端、上端及び下端に設定する(ステップS76)。 When the item category 432 is an "output item" (step S73; output item), the CPU 11 creates the item detailed information e1 as the item detailed information 53, and the left end and the upper end of the area 433 of the item detailed information d3 being acquired. And the lower end are set to the left end, the upper end, and the lower end of the area 533 of the item detailed information e1 (step S76).

そして、CPU11は、取得中の項目詳細情報d3の文字列431に文字列があるか否かを判別する(ステップS77)。文字列431に文字列がない場合(ステップS77;NO)、CPU11は、取得中の項目詳細情報d3の領域433の右端を、ステップS76で作成された項目詳細情報e1の領域533の右端に設定する(ステップS78)。 Then, the CPU 11 determines whether or not there is a character string in the character string 431 of the item detailed information d3 being acquired (step S77). When there is no character string in the character string 431 (step S77; NO), the CPU 11 sets the right end of the area 433 of the item detailed information d3 being acquired to the right end of the area 533 of the item detailed information e1 created in step S76. (Step S78).

そして、CPU11は、項目情報アドレス51及び項目詳細情報アドレス52を設定し、項目情報アドレス51、項目詳細情報アドレス52、項目詳細情報e1を関連付けて帳票フォーム情報50の項目情報50Aとして記憶部15に記憶する(ステップS79)。ステップS79において、例えば、項目情報アドレス51は、項目詳細情報アドレス52の先頭レコードのアドレスに設定される。ステップS79において、帳票フォーム情報50(及び項目情報アドレス51)が既に記憶部15に記憶されている場合に、記憶されている帳票フォーム情報50(及び項目情報アドレス51)に、項目詳細情報アドレス52及び項目詳細情報e1が追加される。 Then, the CPU 11 sets the item information address 51 and the item detailed information address 52, associates the item information address 51, the item detailed information address 52, and the item detailed information e1 with each other, and stores the item information 50A of the form information 50 in the storage unit 15. Store (step S79). In step S79, for example, the item information address 51 is set to the address of the first record of the item detailed information address 52. In step S79, when the form information 50 (and the item information address 51) is already stored in the storage unit 15, the item detailed information address 52 is stored in the stored form information 50 (and the item information address 51). And item detailed information e1 is added.

そして、CPU11は、ステップS74でRAM13に名称項目の文字列が記憶されているか否かを判別する(ステップS80)。名称項目の文字列が記憶されていない場合(ステップS80;YES)、CPU11は、RAM13に記憶されている名称項目の文字列を、記憶部15の帳票フォーム情報50の項目詳細情報e1の項目名531に設定し、項目種532に「文字」を設定する(ステップS81)。 Then, the CPU 11 determines in step S74 whether or not the character string of the name item is stored in the RAM 13 (step S80). When the character string of the name item is not stored (step S80; YES), the CPU 11 stores the character string of the name item stored in the RAM 13 as the item name of the item detailed information e1 of the form information 50 of the storage unit 15. It is set to 531 and "character" is set to the item type 532 (step S81).

そして、CPU11は、RAM13に記憶されている名称項目の文字列を削除し(ステップS82)、ステップS75に移行する。名称項目の文字列が記憶されていない場合(ステップS80;NO)、ステップS82に移行される。文字列431に文字列がある場合(ステップS77;YES)、CPU11は、領域分割処理を実行し(ステップS83)、ステップS82に移行する。 Then, the CPU 11 deletes the character string of the name item stored in the RAM 13 (step S82), and proceeds to step S75. If the character string of the name item is not stored (step S80; NO), the process proceeds to step S82. When there is a character string in the character string 431 (step S77; YES), the CPU 11 executes the area division process (step S83), and proceeds to step S82.

ここで、図14を参照して、ステップS83の領域分割処理を説明する。図14に示すように、先ず、CPU11は、取得中の詳細項目情報d3の文字列431、領域433を用いて、記憶部15に記憶された帳票の背景画像データを画像解析し、文字列431の各文字のみの矩形領域を文字抽出情報として取得して文字抽出テーブル60を作成して記憶部15に記憶する(ステップS91)。ステップS91において、画像解析により取得された文字列431の各文字が文字61に設定され、各文字の矩形領域の左端、上端、右端、下端の各辺の座標の値が領域62に設定される。例えば、図8の文字抽出テーブル60は、図4の帳票の背景画像F1の矩形領域R116が画像解析されて作成されたものである。 Here, the area division process of step S83 will be described with reference to FIG. As shown in FIG. 14, first, the CPU 11 uses the character string 431 and the area 433 of the detailed item information d3 being acquired to perform image analysis of the background image data of the form stored in the storage unit 15, and the character string 431. The rectangular area of only each character of is acquired as character extraction information, a character extraction table 60 is created, and the character extraction table 60 is stored in the storage unit 15 (step S91). In step S91, each character of the character string 431 acquired by image analysis is set to the character 61, and the coordinate values of the left end, the upper end, the right end, and the lower end of the rectangular area of each character are set to the area 62. .. For example, the character extraction table 60 of FIG. 8 is created by image analysis of the rectangular region R116 of the background image F1 of the form of FIG.

そして、CPU11は、文字抽出テーブル60から先頭のレコードを文字抽出情報として取得する(ステップS92)。そして、CPU11は、ステップS92又はS101で取得された文字抽出情報があるか否かを判別する(ステップS93)。文字抽出情報がある場合(ステップS93;YES)、CPU11は、ステップS76で作成された項目詳細情報e1の領域533の右端に、取得中の文字抽出情報の領域62の左端を設定する(ステップS94)。 Then, the CPU 11 acquires the first record from the character extraction table 60 as character extraction information (step S92). Then, the CPU 11 determines whether or not there is the character extraction information acquired in step S92 or S101 (step S93). When there is character extraction information (step S93; YES), the CPU 11 sets the left end of the area 62 of the character extraction information being acquired at the right end of the area 533 of the item detailed information e1 created in step S76 (step S94). ).

そして、CPU11は、ステップS74でRAM13に名称項目の文字列が記憶されているか否かを判別する(ステップS95)。名称項目の文字列が記憶されている場合(ステップS95;YES)、CPU11は、RAM13に記憶されている名称項目の文字列を項目詳細情報e1の項目名531に設定し、項目種532に「文字」を設定する(ステップS96)。名称項目の文字列が記憶されていない場合(ステップS95;NO)、CPU11は、取得中の文字抽出情報の文字61を項目詳細情報e1の項目名531に設定し、項目種532に「文字」を設定する(ステップS97)。 Then, the CPU 11 determines in step S74 whether or not the character string of the name item is stored in the RAM 13 (step S95). When the character string of the name item is stored (step S95; YES), the CPU 11 sets the character string of the name item stored in the RAM 13 to the item name 531 of the item detailed information e1, and sets the item type 532 to ". "Character" is set (step S96). When the character string of the name item is not stored (step S95; NO), the CPU 11 sets the character 61 of the character extraction information being acquired to the item name 531 of the item detailed information e1, and sets the item type 532 to "character". Is set (step S97).

ステップS96又はS97の実行後、CPU11は、RAM13に記憶されている名称項目の文字列を削除する(ステップS98)。そして、ステップS79と同様に、CPU11は、項目情報アドレス51及び項目詳細情報アドレス52を設定し、項目情報アドレス51、項目詳細情報アドレス52、項目詳細情報e1を関連付けて帳票フォーム情報50の項目情報50Aとして記憶部15に記憶する(ステップS99)。 After executing step S96 or S97, the CPU 11 deletes the character string of the name item stored in the RAM 13 (step S98). Then, similarly to step S79, the CPU 11 sets the item information address 51 and the item detailed information address 52, and associates the item information address 51, the item detailed information address 52, and the item detailed information e1 with the item information of the form information 50. It is stored in the storage unit 15 as 50A (step S99).

そして、CPU11は、項目詳細情報53としての次の項目詳細情報e1を作成し、取得中の文字抽出情報の右端を項目詳細情報e1の領域533の左端に設定し、取得中の項目詳細情報d3の領域433の上端及び下端を項目詳細情報e1の領域533の上端及び下端に設定する(ステップS100)。そして、CPU11は、文字抽出テーブル60から次のレコードを文字抽出情報として取得し(ステップS101)、ステップS93に移行する。 Then, the CPU 11 creates the next item detailed information e1 as the item detailed information 53, sets the right end of the character extraction information being acquired to the left end of the area 533 of the item detailed information e1, and sets the item detailed information d3 being acquired. The upper end and the lower end of the area 433 of the above are set to the upper end and the lower end of the area 533 of the item detailed information e1 (step S100). Then, the CPU 11 acquires the next record as the character extraction information from the character extraction table 60 (step S101), and proceeds to step S93.

文字抽出情報がない場合(ステップS93;NO)、CPU11は、ステップS76又はS100で作成された項目詳細情報e1を削除し(ステップS102)、領域分割処理を終了する。 When there is no character extraction information (step S93; NO), the CPU 11 deletes the item detailed information e1 created in step S76 or S100 (step S102), and ends the area division process.

領域分割処理により、例えば、図4の帳票の背景画像F1における矩形領域R116が、図7の帳票の背景画像F1の帳票フォームにおける「年」「月」「日」を除く出力項目T1〜T3の矩形領域に分割される。また、文字「%」が右端に存在する矩形領域R111は、帳票の背景画像F1の帳票フォームにおける「%」を除く出力項目T17の矩形領域に設定される。 By the area division processing, for example, the rectangular area R116 in the background image F1 of the form of FIG. 4 is the output items T1 to T3 excluding the "year", "month", and "day" in the form of the background image F1 of the form of FIG. Divided into rectangular areas. Further, the rectangular area R111 in which the character "%" exists at the right end is set in the rectangular area of the output item T17 excluding "%" in the form form of the background image F1 of the form.

また、項目情報追加処理により、例えば、図7の帳票の背景画像F1の帳票フォームにおける出力項目T1〜T5,T17〜T19に対応する項目情報(項目情報アドレス51、項目詳細情報アドレス52(項目詳細情報D1アドレス〜項目詳細情報D5アドレス、項目詳細情報D17アドレス〜項目詳細情報D19アドレス)、項目詳細情報53)が帳票フォーム情報50に追加される。 Further, by the item information addition processing, for example, the item information corresponding to the output items T1 to T5 and T17 to T19 in the form form of the background image F1 of the form of FIG. 7 (item information address 51, item detailed information address 52 (item details). Information D1 address to item detailed information D5 address, item detailed information D17 address to item detailed information D19 address), and item detailed information 53) are added to the form information 50.

図11に戻り、ステップS47の実行後、CPU11は、矩形項目情報40から次の項目グループ情報アドレス41に対応する情報を項目グループ情報g1として取得し(ステップS48)、ステップS42に移行する。同一構成フラグが「真」である場合(ステップS46;YES)、CPU11は、明細情報追加処理を実行する(ステップS49)。 Returning to FIG. 11, after executing step S47, the CPU 11 acquires the information corresponding to the next item group information address 41 from the rectangular item information 40 as the item group information g1 (step S48), and proceeds to step S42. When the same configuration flag is "true" (step S46; YES), the CPU 11 executes the detailed information addition process (step S49).

ここで、図15を参照して、ステップS49の明細情報追加処理を説明する。図15に示すように、先ず、CPU11は、矩形項目情報40から取得中の項目グループ情報g1の1つ前の項目グループ情報アドレス41に対応する情報を項目グループ情報g3として取得する(ステップS111)。 Here, the detailed information addition process in step S49 will be described with reference to FIG. As shown in FIG. 15, first, the CPU 11 acquires the information corresponding to the item group information address 41 immediately before the item group information g1 being acquired from the rectangular item information 40 as the item group information g3 (step S111). ..

そして、CPU11は、項目グループ情報g3から先頭の項目詳細情報43を項目詳細情報d4として取得する(ステップS112)。そして、CPU11は、ステップS112で取得した項目詳細情報d4の項目区分432が「名称項目」であるか否かを判別する(ステップS113)。項目区分432が「名称項目」である場合(ステップS113;YES)、CPU11は、項目グループ情報g3を明細名称項目グループ情報として設定する(ステップS114)。 Then, the CPU 11 acquires the first item detailed information 43 from the item group information g3 as the item detailed information d4 (step S112). Then, the CPU 11 determines whether or not the item category 432 of the item detailed information d4 acquired in step S112 is a "name item" (step S113). When the item category 432 is a "name item" (step S113; YES), the CPU 11 sets the item group information g3 as the item name item group information (step S114).

そして、CPU11は、帳票フォーム情報50の明細情報アドレス54を設定し、空の明細情報55を設定し、明細情報55を明細情報アドレス54に関連付けて記憶部15に記憶する(ステップS115)。そして、CPU11は、取得中の項目グループ情報g1の先頭の項目詳細情報43を項目詳細情報d5として取得する(ステップS116)。 Then, the CPU 11 sets the detailed information address 54 of the form information 50, sets the empty detailed information 55, associates the detailed information 55 with the detailed information address 54, and stores the detailed information 55 in the storage unit 15 (step S115). Then, the CPU 11 acquires the first item detailed information 43 of the item group information g1 being acquired as the item detailed information d5 (step S116).

そして、CPU11は、ステップS115で作成された明細情報55の繰返領域552の左端、上端、下端に、取得中の項目詳細情報d5の左端、上端、下端を設定する(ステップS117)。そして、CPU11は、取得中の項目グループ情報g1の最後の項目詳細情報43を項目詳細情報d6として取得する(ステップS118)。そして、CPU11は、ステップS115で作成された明細情報55の繰返領域552の右端に、取得中の項目詳細情報d6の右端を設定する(ステップS119)。 Then, the CPU 11 sets the left end, the upper end, and the lower end of the item detailed information d5 being acquired at the left end, the upper end, and the lower end of the repeat area 552 of the detailed information 55 created in step S115 (step S117). Then, the CPU 11 acquires the last item detailed information 43 of the item group information g1 being acquired as the item detailed information d6 (step S118). Then, the CPU 11 sets the right end of the item detailed information d6 being acquired at the right end of the repeat area 552 of the detailed information 55 created in step S115 (step S119).

そして、CPU11は、ステップS115で作成された明細情報55の明細領域551の左端、上端、右端に、ステップS117,S119で設定された繰返領域552の左端、上端、右端を設定する(ステップS120)。そして、CPU11は、ステップS115で作成された明細情報55の移動量553に、取得中の項目詳細情報d6の下端−上端を算出して設定する(ステップS121)。そして、CPU11は、明細項目追加処理を実行する(ステップS122)。 Then, the CPU 11 sets the left end, the upper end, and the right end of the repeat area 552 set in steps S117 and S119 at the left end, the upper end, and the right end of the detail area 551 of the detail information 55 created in step S115 (step S120). ). Then, the CPU 11 calculates and sets the lower end-upper end of the item detailed information d6 being acquired in the movement amount 553 of the detailed information 55 created in step S115 (step S121). Then, the CPU 11 executes the detail item addition process (step S122).

ここで、図16を参照して、ステップS122の明細項目追加処理を説明する。図16に示すように、先ず、CPU11は、ステップS114で設定された明細名称項目グループ情報があるか否かを判別する(ステップS131)。明細名称項目グループ情報がない場合(ステップS131;NO)、CPU11は、記憶部15に記憶されている帳票フォーム情報50の明細情報50Bの項目詳細情報57としての項目詳細情報e2を作成し、取得中の項目グループ情報g1の項目詳細情報43の全内容を、項目詳細情報e2の項目詳細情報57に設定し、項目詳細情報アドレス56を設定し、項目情報アドレス554、項目詳細情報アドレス56、項目詳細情報e2を関連付けて記憶部15の帳票フォーム情報50の明細情報50Bに記憶し(ステップS132)、明細項目追加処理を終了する。 Here, the detail item addition process of step S122 will be described with reference to FIG. As shown in FIG. 16, first, the CPU 11 determines whether or not there is the item name item group information set in step S114 (step S131). When there is no detail name item group information (step S131; NO), the CPU 11 creates and acquires the item detail information e2 as the item detail information 57 of the detail information 50B of the form information 50 stored in the storage unit 15. The entire contents of the item detailed information 43 of the item group information g1 in the item are set in the item detailed information 57 of the item detailed information e2, the item detailed information address 56 is set, the item information address 554, the item detailed information address 56, and the item. The detailed information e2 is associated with the detailed information e2 and stored in the detailed information 50B of the form information 50 of the storage unit 15 (step S132), and the detailed item addition process is completed.

明細名称項目グループ情報がある場合(ステップS131;YES)、CPU11は、明細名称項目グループ情報の先頭の項目詳細情報43を項目詳細情報d7として取得する(ステップS133)。そして、CPU11は、取得中の項目グループ情報g1の先頭の項目詳細情報43を項目詳細情報d8として取得する(ステップS134)。 When there is detail name item group information (step S131; YES), the CPU 11 acquires the item detail information 43 at the beginning of the detail name item group information as item detail information d7 (step S133). Then, the CPU 11 acquires the first item detailed information 43 of the item group information g1 being acquired as the item detailed information d8 (step S134).

そして、CPU11は、ステップS133又はS153で取得された項目詳細情報d7と、ステップS134又はS154で取得された項目詳細情報d8と、の両方があるか否かを判別する(ステップS135)。項目詳細情報d7,d8がない場合(ステップS135;NO)、明細項目追加処理が終了する。項目詳細情報d7,d8がある場合(ステップS135;YES)、CPU11は、記憶部15に記憶されている帳票フォーム情報50の明細情報50Bの項目詳細情報57としての項目詳細情報e2を作成し、取得中の項目詳細情報d8の領域433の左端、上端、下端を、項目詳細情報e2の領域573の左端、上端、下端に設定し、項目詳細情報アドレス56を設定し、項目情報アドレス554、項目詳細情報アドレス56、項目詳細情報e2を関連付けて記憶部15の帳票フォーム情報50の明細情報50Bに記憶する(ステップS136)。 Then, the CPU 11 determines whether or not there is both the item detailed information d7 acquired in step S133 or S153 and the item detailed information d8 acquired in step S134 or S154 (step S135). If the item detailed information d7 and d8 are not present (step S135; NO), the detail item addition process ends. When there are item detailed information d7 and d8 (step S135; YES), the CPU 11 creates the item detailed information e2 as the item detailed information 57 of the detailed information 50B of the form information 50 stored in the storage unit 15. The left end, upper end, and lower end of the area 433 of the item detailed information d8 being acquired are set to the left end, upper end, and lower end of the area 573 of the item detailed information e2, the item detailed information address 56 is set, the item information address 554, and the item. The detailed information address 56 and the item detailed information e2 are associated with each other and stored in the detailed information 50B of the form information 50 of the storage unit 15 (step S136).

そして、CPU11は、変数countに1を設定する(ステップS137)。そして、CPU11は、項目詳細情報d7の領域433の右端が、項目詳細情報d8の領域433の右端よりも大きいか否かを判別する(ステップS138)。項目詳細情報d7の右端が項目詳細情報d8の右端よりも大きい場合(ステップS138;YES)、CPU11は、ステップS140でRAM13に項目詳細情報d8の領域433の幅が記憶されていない、又はRAM13に記憶されている幅と取得中の項目詳細情報d8の領域433のX軸方向の幅とが同じか否かを判別する(ステップS139)。 Then, the CPU 11 sets the variable count to 1 (step S137). Then, the CPU 11 determines whether or not the right end of the area 433 of the item detailed information d7 is larger than the right end of the area 433 of the item detailed information d8 (step S138). When the right end of the item detailed information d7 is larger than the right end of the item detailed information d8 (step S138; YES), the CPU 11 does not store the width of the area 433 of the item detailed information d8 in the RAM 13 in step S140, or the RAM 13 stores the width of the area 433. It is determined whether or not the stored width and the width in the X-axis direction of the area 433 of the item detailed information d8 being acquired are the same (step S139).

RAM13に幅が記憶されていない又は幅が同じである場合(ステップS139;YES)、CPU11は、取得中の項目詳細情報d8の領域433の右端−左端を算出してRAM13に記憶する(ステップS140)。そして、CPU11は、取得中の項目グループ情報g1の次の項目詳細情報43を項目詳細情報d8として取得し(ステップS141)、ステップS138に移行する。 When the width is not stored in the RAM 13 or the width is the same (step S139; YES), the CPU 11 calculates the right end-left end of the area 433 of the item detailed information d8 being acquired and stores it in the RAM 13 (step S140). ). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g1 being acquired as the item detailed information d8 (step S141), and proceeds to step S138.

RAM13に幅が記憶されており幅が同じでない場合(ステップS139;YES)、CPU11は、ステップS136又はS145で作成された項目詳細情報e2の領域573の右端に、取得中の項目詳細情報d8の領域433の左端を設定する(ステップS142)。そして、CPU11は、ステップS142で右端が設定された項目詳細情報e2の項目名571に、取得中の項目詳細情報d7の文字列431に変数countを付加した情報を設定する(ステップS143)。 When the width is stored in the RAM 13 and the widths are not the same (step S139; YES), the CPU 11 sets the item detailed information d8 being acquired at the right end of the area 573 of the item detailed information e2 created in step S136 or S145. The left end of the area 433 is set (step S142). Then, the CPU 11 sets the item name 571 of the item detailed information e2 whose right end is set in step S142 with information obtained by adding the variable count to the character string 431 of the item detailed information d7 being acquired (step S143).

そして、CPU11は、変数countを1増加する(ステップS144)。そして、CPU11は、記憶部15に記憶されている帳票フォーム情報50の明細情報50Bの項目詳細情報57としての項目詳細情報e2を作成し、取得中の項目詳細情報d8の領域433の左端、上端、下端を、項目詳細情報e2の領域573の左端、上端、下端に設定し、項目詳細情報アドレス56を設定し、項目情報アドレス554、項目詳細情報アドレス56、項目詳細情報e2を関連付けて記憶部15の帳票フォーム情報50の明細情報50Bに記憶する(ステップS145)。そして、CPU11は、取得中の項目グループ情報g1の次の項目詳細情報43を項目詳細情報d8として取得し(ステップS146)、ステップS138に移行する。 Then, the CPU 11 increments the variable count by 1 (step S144). Then, the CPU 11 creates the item detailed information e2 as the item detailed information 57 of the detailed information 50B of the form information 50 stored in the storage unit 15, and the left end and the upper end of the area 433 of the item detailed information d8 being acquired. , The lower end is set to the left end, the upper end, and the lower end of the area 573 of the item detailed information e2, the item detailed information address 56 is set, and the item information address 554, the item detailed information address 56, and the item detailed information e2 are associated with the storage unit. It is stored in the detailed information 50B of the form information 50 of the 15 forms (step S145). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g1 being acquired as the item detailed information d8 (step S146), and proceeds to step S138.

項目詳細情報d7の右端が項目詳細情報d8の右端以下の場合(ステップS138;NO)、CPU11は、ステップS140でRAM13に項目詳細情報d8の領域433の幅が記憶されているか否かを判別する(ステップS147)。RAM13に幅が記憶されている場合(ステップS147;YES)、CPU11は、ステップS136又はS145で作成された項目詳細情報e2の領域573の右端に、取得中の項目詳細情報d8の領域433の左端を設定する(ステップS148)。 When the right end of the item detailed information d7 is equal to or less than the right end of the item detailed information d8 (step S138; NO), the CPU 11 determines in step S140 whether or not the width of the area 433 of the item detailed information d8 is stored in the RAM 13. (Step S147). When the width is stored in the RAM 13 (step S147; YES), the CPU 11 is at the right end of the area 573 of the item detailed information e2 created in step S136 or S145, and at the left end of the area 433 of the item detailed information d8 being acquired. Is set (step S148).

そして、CPU11は、ステップS148で右端が設定された項目詳細情報e2の項目名571に、取得中の項目詳細情報d7の文字列431に変数countを付加した情報を設定する(ステップS149)。そして、CPU11は、変数countを1増加する(ステップS150)。 Then, the CPU 11 sets the item name 571 of the item detailed information e2 whose right end is set in step S148 with information obtained by adding the variable count to the character string 431 of the item detailed information d7 being acquired (step S149). Then, the CPU 11 increments the variable count by 1 (step S150).

そして、CPU11は、記憶部15に記憶されている帳票フォーム情報50の項目情報の項目詳細情報57としての項目詳細情報e2を作成し、取得中の項目詳細情報d8の領域433を、項目詳細情報e2の領域573に設定し、項目詳細情報アドレス56を設定し、項目情報アドレス554、項目詳細情報アドレス56、項目詳細情報e2を関連付けて記憶部15の帳票フォーム情報50の明細情報50Bに記憶する(ステップS151)。そして、CPU11は、ステップS151で領域573が設定された項目詳細情報e2の項目名571に、取得中の項目詳細情報d7の文字列431に変数countを付加した情報を設定する(ステップS152)。 Then, the CPU 11 creates the item detailed information e2 as the item detailed information 57 of the item information of the form information 50 stored in the storage unit 15, and sets the area 433 of the item detailed information d8 being acquired as the item detailed information. Set in the area 573 of e2, set the item detailed information address 56, and store the item information address 554, the item detailed information address 56, and the item detailed information e2 in the detailed information 50B of the form information 50 of the storage unit 15 in association with each other. (Step S151). Then, the CPU 11 sets the item name 571 of the item detailed information e2 in which the area 573 is set in step S151 with information obtained by adding the variable count to the character string 431 of the item detailed information d7 being acquired (step S152).

そして、CPU11は、明細名称項目グループ情報の次の項目詳細情報43を項目詳細情報d7として取得する(ステップS153)。そして、CPU11は、取得中の項目グループ情報g1の次の項目詳細情報43を項目詳細情報d8として取得し(ステップS154)、ステップS138に移行する。 Then, the CPU 11 acquires the next item detailed information 43 of the detailed name item group information as the item detailed information d7 (step S153). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g1 being acquired as the item detailed information d8 (step S154), and proceeds to step S138.

RAM13に幅が記憶されていない場合(ステップS147;NO)、CPU11は、ステップS136で作成された項目詳細情報e2の領域573の右端に、取得中の項目詳細情報d8の領域433の右端を設定する(ステップS155)。そして、CPU11は、ステップS155で領域573の右端が設定された項目詳細情報e2の項目名571に、取得中の項目詳細情報d7の文字列431を設定し(ステップS156)、ステップS153に移行する。 When the width is not stored in the RAM 13 (step S147; NO), the CPU 11 sets the right end of the area 433 of the item detailed information d8 being acquired at the right end of the area 573 of the item detailed information e2 created in step S136. (Step S155). Then, the CPU 11 sets the character string 431 of the item detailed information d7 being acquired in the item name 571 of the item detailed information e2 in which the right end of the area 573 is set in step S155 (step S156), and proceeds to step S153. ..

明細情報追加処理により、例えば、図7の帳票の背景画像F1の帳票フォームにおける明細領域SP1及び繰返領域RP1(出力項目T6〜T11)に対応する明細情報50B(明細情報アドレス54、明細情報55、項目詳細情報アドレス56(項目詳細情報D6アドレス〜項目詳細情報D11アドレス)、項目詳細情報57)が帳票フォーム情報50に追加される。また、明細情報追加処理により、矩形領域R9〜R16は、出力項目T9に統合される。 By the detail information addition processing, for example, the detail information 50B (detail information address 54, detail information 55) corresponding to the detail area SP1 and the repeat area RP1 (output items T6 to T11) in the form of the background image F1 of the form of FIG. 7 , Item detailed information address 56 (item detailed information D6 address to item detailed information D11 address), item detailed information 57) are added to the form information 50. Further, the rectangular areas R9 to R16 are integrated into the output item T9 by the detailed information addition processing.

図15に戻り、ステップS122の実行後、CPU11は、ステップS45と同様の同一項目グループ検出処理を実行する(ステップS123)。そして、CPU11は、ステップS123で設定された同一構成フラグが「真」であるか否かを判別する(ステップS124)。同一構成フラグが「真」である場合(ステップS124;YES)、CPU11は、ステップS115で作成された明細情報55の明細領域551の下端に、取得中の項目グループ情報g2の項目詳細情報43の領域433の下端を設定する(ステップS125)。 Returning to FIG. 15, after executing step S122, the CPU 11 executes the same item group detection process as in step S45 (step S123). Then, the CPU 11 determines whether or not the same configuration flag set in step S123 is "true" (step S124). When the same configuration flag is "true" (step S124; YES), the CPU 11 places the item detailed information 43 of the item group information g2 being acquired at the lower end of the detail area 551 of the detail information 55 created in step S115. The lower end of the area 433 is set (step S125).

そして、CPU11は、矩形項目情報40の取得中の項目グループ情報g2の次の項目グループ情報アドレス41に対応する情報を項目グループ情報g2として取得し(ステップS126)、ステップS123に移行する。同一構成フラグが「真」である場合(ステップS124;YES)、CPU11は、類似項目グループ検出処理を実行する(ステップS127)。 Then, the CPU 11 acquires the information corresponding to the item group information address 41 next to the item group information g2 being acquired for the rectangular item information 40 as the item group information g2 (step S126), and proceeds to step S123. When the same configuration flag is "true" (step S124; YES), the CPU 11 executes the similar item group detection process (step S127).

ここで、図17を参照して、ステップS127の類似項目グループ検出処理を説明する。図17に示すように、先ず、CPU11は、取得中の項目グループ情報g1,g2の類似項目フラグを「真(類似である)」に設定する(ステップS161)。そして、CPU11は、取得中の項目グループ情報g1の先頭の項目詳細情報43を項目詳細情報d9として取得する(ステップS162)。そして、CPU11は、取得中の項目グループ情報g2の先頭の項目詳細情報43を項目詳細情報d10として取得する(ステップS163)。 Here, the similar item group detection process in step S127 will be described with reference to FIG. As shown in FIG. 17, first, the CPU 11 sets the similar item flag of the item group information g1 and g2 being acquired to "true (similar)" (step S161). Then, the CPU 11 acquires the first item detailed information 43 of the item group information g1 being acquired as the item detailed information d9 (step S162). Then, the CPU 11 acquires the item detailed information 43 at the beginning of the item group information g2 being acquired as the item detailed information d10 (step S163).

そして、CPU11は、ステップS162又はS166で取得された項目詳細情報d9と、ステップS163又はS167で取得された項目詳細情報d10と、の両方があるか否かを判別する(ステップS164)。項目詳細情報d9,d10がない場合(ステップS164;NO)、類似項目グループ検出処理が終了する。項目詳細情報d9,d10がある場合(ステップS164;YES)、CPU11は、取得中の項目詳細情報d9,d10の領域433の左端及び右端が同じであるか否かを判別する(ステップS165)。 Then, the CPU 11 determines whether or not there is both the item detailed information d9 acquired in step S162 or S166 and the item detailed information d10 acquired in step S163 or S167 (step S164). If the item detailed information d9 and d10 are not present (step S164; NO), the similar item group detection process ends. When there are item detailed information d9 and d10 (step S164; YES), the CPU 11 determines whether or not the left end and the right end of the area 433 of the item detailed information d9 and d10 being acquired are the same (step S165).

左端及び右端が同じである場合(ステップS165;YES)、CPU11は、項目グループ情報g1の次の項目詳細情報43を項目詳細情報d9として取得する(ステップS166)。そして、CPU11は、項目グループ情報g2の次の項目詳細情報43を項目詳細情報d10として取得し(ステップS167)、ステップS164に移行する。 When the left end and the right end are the same (step S165; YES), the CPU 11 acquires the next item detailed information 43 of the item group information g1 as the item detailed information d9 (step S166). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g2 as the item detailed information d10 (step S167), and proceeds to step S164.

左端及び右端が異なる場合(ステップS165;NO)、CPU11は、取得中の項目グループ情報g1,g2の類似項目フラグを「偽(類似である)」に設定し(ステップS168)、類似項目グループ検出処理を終了する。 When the left end and the right end are different (step S165; NO), the CPU 11 sets the similar item flag of the item group information g1 and g2 being acquired to "false (similar)" (step S168), and detects the similar item group. End the process.

類似項目グループ検出処理により、例えば、図7の帳票の背景画像F1における繰返領域RP1と同一の形状及び位置の矩形領域(R98〜R109)からなり異なる項目区分(名称項目)の矩形領域(R97)を含む類似領域AN1の項目グループ情報の同一構成フラグが「真」に設定される。 By the similar item group detection processing, for example, a rectangular area (R97) having a different item classification (name item) is composed of a rectangular area (R98 to R109) having the same shape and position as the repeating area RP1 in the background image F1 of the form of FIG. The same configuration flag of the item group information of the similar area AN1 including) is set to "true".

図15に戻り、ステップS127の実行後、CPU11は、ステップS127で設定された類似項目フラグが「真」であるか否かを判別する(ステップS128)。類似項目フラグが「偽」である場合(ステップS128;NO)、類似項目グループ検出処理が終了する。類似項目フラグが「真」である場合(ステップS128;YES)、CPU11は、類似項目追加処理を実行し(ステップS129)、明細情報追加処理を終了する。 Returning to FIG. 15, after executing step S127, the CPU 11 determines whether or not the similar item flag set in step S127 is “true” (step S128). When the similar item flag is "false" (step S128; NO), the similar item group detection process ends. When the similar item flag is "true" (step S128; YES), the CPU 11 executes the similar item addition process (step S129), and ends the detailed information addition process.

ここで、図18を参照して、ステップS171の類似項目追加処理を説明する。図17に示すように、先ず、CPU11は、記憶部15に記憶されている帳票フォーム情報50の明細情報55の先頭の項目詳細情報57を項目詳細情報d11として取得する(ステップS171)。 Here, the process of adding similar items in step S171 will be described with reference to FIG. As shown in FIG. 17, first, the CPU 11 acquires the item detailed information 57 at the head of the detailed information 55 of the form information 50 stored in the storage unit 15 as the item detailed information d11 (step S171).

そして、CPU11は、取得中の項目グループ情報g2の先頭の項目詳細情報43を項目詳細情報d12として取得する(ステップS172)。そして、CPU11は、ステップS171又はS176で取得された項目詳細情報d11と、ステップS172又はS177で取得された項目詳細情報d12と、の両方があるか否かを判別する(ステップS173)。項目詳細情報d11,d12がない場合(ステップS173;NO)、類似項目追加処理が終了する。 Then, the CPU 11 acquires the item detailed information 43 at the beginning of the item group information g2 being acquired as the item detailed information d12 (step S172). Then, the CPU 11 determines whether or not there is both the item detailed information d11 acquired in step S171 or S176 and the item detailed information d12 acquired in step S172 or S177 (step S173). If the item detailed information d11 and d12 are not present (step S173; NO), the similar item addition process ends.

項目詳細情報d11,d12がある場合(ステップS173;YES)、CPU11は、取得中の項目詳細情報d12の項目区分432が「出力項目」か否かを判別する(ステップS174)。項目区分432が「名称項目」である場合(ステップS174;NO)、CPU11は、取得中の項目詳細情報d12の文字列431をRAM13に記憶する(ステップS175)。 When there are item detailed information d11 and d12 (step S173; YES), the CPU 11 determines whether or not the item category 432 of the item detailed information d12 being acquired is an “output item” (step S174). When the item category 432 is a "name item" (step S174; NO), the CPU 11 stores the character string 431 of the item detailed information d12 being acquired in the RAM 13 (step S175).

そして、CPU11は、記憶部15に記憶されている帳票フォーム情報50の明細情報55の次の項目詳細情報57を項目詳細情報d11として取得する(ステップS176)。そして、CPU11は、取得中の項目グループ情報g2の次の項目詳細情報43を項目詳細情報d12として取得し(ステップS177)、ステップS173に移行する。 Then, the CPU 11 acquires the next item detailed information 57 of the detailed information 55 of the form information 50 stored in the storage unit 15 as the item detailed information d11 (step S176). Then, the CPU 11 acquires the next item detailed information 43 of the item group information g2 being acquired as the item detailed information d12 (step S177), and proceeds to step S173.

項目区分432が「出力項目」である場合(ステップS174;YES)、CPU11は、記憶部15に記憶されている帳票フォーム情報50の項目情報50Aの項目詳細情報53としての項目詳細情報e3を作成し、取得中の項目詳細情報d12の領域433の左端、上端及び下端を、項目詳細情報e3の領域533の左端、上端及び下端に設定する(ステップS178)。 When the item category 432 is an "output item" (step S174; YES), the CPU 11 creates the item detailed information e3 as the item detailed information 53 of the item information 50A of the form information 50 stored in the storage unit 15. Then, the left end, upper end, and lower end of the area 433 of the item detailed information d12 being acquired are set to the left end, upper end, and lower end of the area 533 of the item detailed information e3 (step S178).

そして、CPU11は、取得中の項目詳細情報d12の領域433の右端が、取得中の項目詳細情報d11の領域573の右端より小さいか否かを判別する(ステップS179)。項目詳細情報d12の右端が項目詳細情報d11の右端よりも小さい場合(ステップS179;YES)、CPU11は、取得中の項目グループ情報g2の次の項目詳細情報43を項目詳細情報d12として取得し(ステップS180)、ステップS179に移行する。 Then, the CPU 11 determines whether or not the right end of the area 433 of the item detailed information d12 being acquired is smaller than the right end of the area 573 of the item detailed information d11 being acquired (step S179). When the right end of the item detailed information d12 is smaller than the right end of the item detailed information d11 (step S179; YES), the CPU 11 acquires the next item detailed information 43 of the item group information g2 being acquired as the item detailed information d12 (step S179; YES). Step S180) and step S179.

項目詳細情報d12の右端が項目詳細情報d11の右端以上の場合(ステップS179;NO)、CPU11は、取得中の項目詳細情報d12の領域433の右端を項目詳細情報e3の領域533の右端に設定する(ステップS181)。そして、CPU11は、ステップS175でRAM13に名称項目の文字列が記憶されているか否かを判別する(ステップS182)。 When the right end of the item detailed information d12 is equal to or greater than the right end of the item detailed information d11 (step S179; NO), the CPU 11 sets the right end of the area 433 of the item detailed information d12 being acquired to the right end of the area 533 of the item detailed information e3. (Step S181). Then, the CPU 11 determines in step S175 whether or not the character string of the name item is stored in the RAM 13 (step S182).

名称項目の文字列が記憶されている場合(ステップS182;YES)、CPU11は、(取得中の項目詳細情報d11の項目名571)+(RAM13に記憶されている名称項目の文字列)を項目詳細情報e3の項目名531に設定し、項目種532に「文字」を設定する(ステップS183)。 When the character string of the name item is stored (step S182; YES), the CPU 11 sets (item name 571 of the item detailed information d11 being acquired) + (character string of the name item stored in the RAM 13) as an item. The item name 531 of the detailed information e3 is set, and the item type 532 is set to "character" (step S183).

名称項目の文字列が記憶されていない場合(ステップS182;NO)、CPU11は、取得中の項目詳細情報d11の項目名571を項目詳細情報e3の項目名531に設定し、項目種532に「文字」を設定する(ステップS184)。そして、CPU11は、項目詳細情報アドレス52を設定し、項目情報アドレス51、項目詳細情報アドレス52、項目詳細情報e3を関連付けて記憶部15の帳票フォーム情報50に記憶し(ステップS185)、ステップS176に移行する。 When the character string of the name item is not stored (step S182; NO), the CPU 11 sets the item name 571 of the item detailed information d11 being acquired to the item name 531 of the item detailed information e3, and sets the item type 532 to ". "Character" is set (step S184). Then, the CPU 11 sets the item detailed information address 52, associates the item information address 51, the item detailed information address 52, and the item detailed information e3 and stores them in the form information 50 of the storage unit 15 (step S185), and steps S176. Move to.

類似項目追加処理により、例えば、図7の帳票の背景画像F1の帳票フォームにおける類似領域AN1(出力項目T12〜T16)に対応する項目情報50A(項目情報アドレス51、項目詳細情報アドレス52(項目詳細情報D12アドレス〜項目詳細情報D16アドレス)、項目詳細情報53)が帳票フォーム情報50に追加される。また、類似項目追加処理により、矩形領域R100〜R107は、出力項目T14に統合されている。 By the similar item addition processing, for example, the item information 50A (item information address 51, item detailed information address 52 (item details) corresponding to the similar areas AN1 (output items T12 to T16) in the form of the form background image F1 of the form of FIG. 7). Information D12 address to item detailed information D16 address) and item detailed information 53) are added to the form information 50. Further, the rectangular areas R100 to R107 are integrated with the output item T14 by the similar item addition process.

図11に戻り、ステップS49の実行後、CPU11は、矩形項目情報40から明細情報追加処理で最後に取得(参照)した項目グループ情報g2の次の項目グループ情報アドレス41に対応する情報を項目グループ情報g2として取得し(ステップS50)、ステップS42に移行する。項目グループ情報g2がない場合(ステップS44;NO)、CPU11は、ステップS47と同様に項目情報追加処理を実行し(ステップS51)、帳票フォーム作成処理を終了する。 Returning to FIG. 11, after executing step S49, the CPU 11 selects the information corresponding to the next item group information address 41 of the item group information g2 last acquired (referenced) from the rectangular item information 40 in the detailed information addition process. It is acquired as information g2 (step S50), and the process proceeds to step S42. When there is no item group information g2 (step S44; NO), the CPU 11 executes the item information addition process (step S51) in the same manner as in step S47, and ends the form form creation process.

帳票フォーム情報50が作成されて記憶部15に記憶された後、帳票管理装置10は、帳票フォーム情報50を用いて、帳票のデータ入力を受け付ける。例えば、帳票管理装置10のCPU11は、帳票フォーム情報50を用いて、図7に示すような帳票の背景画像F1上に、出力項目、明細領域及び繰返領域を情報記入欄として配置して表示部14に表示し、操作部12を介して、ユーザからの、出力項目のデータと、明細領域における繰り返し数分の繰返領域のデータとの入力を受け付け、当該入力されたデータを帳票データとして記憶部15に記憶する。 After the form information 50 is created and stored in the storage unit 15, the form management device 10 accepts the data input of the form using the form information 50. For example, the CPU 11 of the form management device 10 uses the form information 50 to arrange and display output items, a detail area, and a repeat area as information entry fields on the background image F1 of the form as shown in FIG. It is displayed in the unit 14, and the input of the data of the output item and the data of the repeat area for the number of repetitions in the detail area is received from the user via the operation unit 12, and the input data is used as the form data. It is stored in the storage unit 15.

あるいは、出力項目、明細領域及び繰返領域に対応するデータが予め記憶部15に記憶又は通信部16を介して通信接続された外部機器(データベースサーバなど)に記憶されている場合に、帳票管理装置10のCPU11は、当該データを記憶部15又は外部機器から取得し、帳票フォーム情報50を用いて、帳票の出力項目のデータと、明細領域の繰り返し数分の繰返領域のデータとに変換し、当該変換されたデータを帳票データとして記憶部15に記憶する。そして、帳票管理装置10のCPU11は、印刷部18により、入力された帳票データを、背景画像が印刷された帳票の用紙の各情報記入欄に印刷して、帳票データが印刷された帳票を作成する。 Alternatively, when the data corresponding to the output item, the detail area, and the repeat area is stored in the storage unit 15 in advance or stored in an external device (database server, etc.) communicated via the communication unit 16, the form is managed. The CPU 11 of the device 10 acquires the data from the storage unit 15 or an external device, and uses the form information 50 to convert the data of the output items of the form into the data of the repeating area for the number of repetitions of the detail area. Then, the converted data is stored in the storage unit 15 as form data. Then, the CPU 11 of the form management device 10 prints the input form data in each information entry field of the form on which the background image is printed by the printing unit 18 to create a form on which the form data is printed. do.

以上、本実施の形態によれば、帳票管理装置10のCPU11は、帳票の画像データから、矩形領域からなる情報記入欄がX軸方向に複数配置された繰返領域RP1が、Y軸方向に繰り返し並んだ明細領域SP1を検出し、検出された明細領域SP1における各情報記入欄に対応するデータ入力の設定をするための明細情報50Bを作成する。また、CPU11は、帳票の画像データから、各矩形領域の並びが繰返領域RP1に類似する領域であって、少なくとも1つの矩形領域が名称項目である類似領域AN1を検出し、検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための項目情報50Aを作成する。 As described above, according to the present embodiment, in the CPU 11 of the form management device 10, the repeat area RP1 in which a plurality of information entry fields composed of rectangular areas are arranged in the X-axis direction from the image data of the form is arranged in the Y-axis direction. The detailed area SP1 that is repeatedly arranged is detected, and the detailed information 50B for setting the data input corresponding to each information entry field in the detected detailed area SP1 is created. Further, the CPU 11 detects a similar area AN1 in which the arrangement of each rectangular area is similar to the repeating area RP1 and at least one rectangular area is a name item from the image data of the form, and the detected similarity. Item information 50A for setting the data input corresponding to each information entry field in the area is created.

このため、帳票の情報記入欄に対応するデータを入力するための入力設定情報としての帳票フォーム情報50(明細情報50B及び項目情報50A)を容易に作成できる。 Therefore, the form information 50 (detailed information 50B and item information 50A) as input setting information for inputting the data corresponding to the information entry field of the form can be easily created.

また、CPU11は、繰返領域RP1の情報記入欄(矩形領域)ごとの第1の項目名を有する明細情報50Bを作成する。CPU11は、類似領域AR1において出力項目の情報記入欄ごとに、類似領域AR1の名称項目の第2の項目名と、第1の項目名と、を含む第3の項目名を設定して項目情報50Aを作成する。このため、類似領域AR1の第3の項目名により、類似領域AR1に対応する繰返領域RP1の第1の項目名と、類似領域AR1の名称項目の第2の項目名と、の関連付けを表すことができる。 Further, the CPU 11 creates detailed information 50B having a first item name for each information entry field (rectangular area) of the repeat area RP1. The CPU 11 sets a third item name including a second item name and a first item name of the name item of the similar area AR1 for each information entry field of the output item in the similar area AR1, and sets the item information. Create 50A. Therefore, the third item name of the similar area AR1 indicates the association between the first item name of the repeating area RP1 corresponding to the similar area AR1 and the second item name of the name item of the similar area AR1. be able to.

また、CPU11は、繰返領域RP1においてX軸方向に並んだ複数の情報記入欄(出力項目T9,T10)が同じ第1の項目名に対応する場合に、複数の情報記入欄のそれぞれに、第1の項目名を含みかつ互いに識別可能な識別番号(1,2)を付した第4の項目名を設定して明細情報50Bを作成する。CPU11は、繰返領域RP1の第4の項目名が設定された情報記入欄に対応する類似領域AR1の情報記入欄(出力項目T14,T15)に第4の項目名を含む項目名を設定して項目情報50Aを作成する。このため、繰返領域RP1(明細領域SP1)及び類似領域AR1の第4の項目名により、同じ第1の項目名に対応する異なる情報記入欄(出力項目)を互いに識別可能に設定できる。 Further, when the plurality of information entry fields (output items T9 and T10) arranged in the X-axis direction in the repeat area RP1 correspond to the same first item name, the CPU 11 fills each of the plurality of information entry fields. Detailed information 50B is created by setting a fourth item name including the first item name and having identification numbers (1, 2) that can be distinguished from each other. The CPU 11 sets an item name including the fourth item name in the information entry field (output items T14, T15) of the similar area AR1 corresponding to the information entry field in which the fourth item name of the repeat area RP1 is set. Item information 50A is created. Therefore, different information entry fields (output items) corresponding to the same first item name can be set so as to be distinguishable from each other by the fourth item name of the repeat area RP1 (detailed area SP1) and the similar area AR1.

また、CPU11は、明細領域SP1の上に位置する名称項目の矩形領域(R1〜R5)から第1の項目名を取得する。このため、繰返領域RP1(明細領域SP1)の各情報記入欄の第1の項目名を容易に取得できる。 Further, the CPU 11 acquires the first item name from the rectangular area (R1 to R5) of the name item located above the detail area SP1. Therefore, the first item name of each information entry column of the repeat area RP1 (detailed area SP1) can be easily obtained.

また、CPU11は、繰返領域RP1においてX軸方向に同じ幅の複数の情報記入欄が連続して並ぶ場合に、当該複数の情報記入欄(矩形領域R1〜R16)を1つの情報記入欄(出力項目T9)に統合して明細情報50Bを作成する。CPU11は、繰返領域RP1の統合された情報記入欄に対応する類似領域AN1の複数の情報記入欄(矩形領域R100〜R107)を1つの情報記入欄(出力項目T14)に統合して項目情報50Aを作成する。このため、金額の複数の桁などの情報記入欄において、金額などのデータ入力を容易にできる。 Further, when a plurality of information entry fields having the same width are continuously arranged in the repeat area RP1, the CPU 11 uses one information entry field (rectangular areas R1 to R16) as one information entry field (rectangular area R1 to R16). The detailed information 50B is created by integrating with the output item T9). The CPU 11 integrates a plurality of information entry fields (rectangular areas R100 to R107) of the similar area AN1 corresponding to the integrated information entry field of the repeat area RP1 into one information entry field (output item T14) for item information. Create 50A. Therefore, it is possible to easily input data such as the amount of money in the information entry field such as a plurality of digits of the amount of money.

以上の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体として記憶部15のHDD、SSDを使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、フラッシュメモリや、CD−ROMなどの可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。 In the above description, an example in which the HDD and SSD of the storage unit 15 are used as the computer-readable medium of the program according to the present invention has been disclosed, but the present invention is not limited to this example. As another computer-readable medium, a portable recording medium such as a flash memory or a CD-ROM can be applied. A carrier wave is also applied to the present invention as a medium for providing data of a program according to the present invention via a communication line.

なお、上記実施の形態における記述は、本発明に係る帳票管理装置及びプログラムの一例であり、これに限定されるものではない。 The description in the above embodiment is an example of the form management device and the program according to the present invention, and is not limited thereto.

例えば、上記実施の形態では、矩形情報追加処理、矩形項目情報作成処理、帳票フォーム情報作成処理などの処理を帳票管理装置10で実行する構成としたが、これに限定されるものではない。例えば、帳票管理装置10などの端末装置が通信部16を介してサーバに接続され、端末装置でスキャナ部17によりスキャンされた帳票の背景画像データがサーバに送信され、サーバが、矩形情報追加処理、矩形項目情報作成処理、帳票フォーム情報作成処理などの処理を実行し、作成した帳票フォーム情報を端末装置に提供する構成としてもよい。 For example, in the above embodiment, the form management device 10 executes processing such as rectangle information addition processing, rectangle item information creation processing, and form form information creation processing, but the present invention is not limited to this. For example, a terminal device such as the form management device 10 is connected to the server via the communication unit 16, the background image data of the form scanned by the scanner unit 17 in the terminal device is transmitted to the server, and the server performs the rectangular information addition process. , The rectangular item information creation process, the form form information creation process, and the like may be executed, and the created form form information may be provided to the terminal device.

また、上記実施の形態における帳票管理装置10の各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱することのない範囲で適宜変更可能であることは勿論である。 Further, it goes without saying that the detailed configuration and detailed operation of each component of the form management device 10 in the above embodiment can be appropriately changed without departing from the spirit of the present invention.

本発明の実施の形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
帳票の画像データから、矩形領域からなる情報記入欄が第1の所定方向に複数配置された繰返領域が、第2の所定方向に繰り返し並んだ明細領域を検出する明細領域検出手段と、
前記検出された明細領域における各情報記入欄に対応するデータ入力の設定をするための明細領域入力設定情報を作成する第1の作成手段と、
前記帳票の画像データから、各矩形領域の並びが前記繰返領域に類似する領域であって、少なくとも1つの矩形領域が項目名称欄である類似領域を検出する類似領域検出手段と、
前記検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための類似領域入力設定情報を作成する第2の作成手段と、を備える帳票管理装置。
<請求項2>
前記第1の作成手段は、前記繰返領域の情報記入欄ごとの第1の項目名を有する明細領域入力設定情報を作成し、
前記第2の作成手段は、前記類似領域において情報記入欄ごとに、当該類似領域の項目名称欄の第2の項目名と、前記第1の項目名と、を含む第3の項目名を設定して前記類似領域入力設定情報を作成する請求項1に記載の帳票管理装置。
<請求項3>
前記第1の作成手段は、前記繰返領域において前記第1の所定方向に並んだ複数の情報記入欄が同じ第1の項目名に対応する場合に、当該複数の情報記入欄のそれぞれに、当該第1の項目名を含みかつ互いに識別可能な第4の項目名を設定して前記明細領域入力設定情報を作成し、
前記第2の作成手段は、前記繰返領域の前記第4の項目名が設定された情報記入欄に対応する前記類似領域の情報記入欄に当該第4の項目名を含む項目名を設定して前記類似領域入力設定情報を作成する請求項1又は2に記載の帳票管理装置。
<請求項4>
前記第1の作成手段は、前記明細領域の上に位置する項目名称欄の矩形領域から前記第1の項目名を取得する請求項3に記載の帳票管理装置。
<請求項5>
前記第1の作成手段は、前記繰返領域において前記第1の所定方向に同じ幅の複数の情報記入欄が連続して並ぶ場合に、当該複数の情報記入欄を1つの情報記入欄に統合して前記明細領域入力設定情報を作成し、
前記第2の作成手段は、前記繰返領域の統合された情報記入欄に対応する前記類似領域の複数の情報記入欄を1つの情報記入欄に統合して前記類似領域入力設定情報を作成する請求項1から4のいずれか一項に記載の帳票管理装置。
<請求項6>
コンピュータを、
帳票の画像データから、矩形領域からなる情報記入欄が第1の所定方向に複数配置された繰返領域が、第2の所定方向に繰り返し並んだ明細領域を検出する明細領域検出手段、
前記検出された明細領域における各情報記入欄に対応するデータ入力の設定をするための明細領域入力設定情報を作成する第1の作成手段、
前記帳票の画像データから、各矩形領域の並びが前記繰返領域に類似する領域であって、少なくとも1つの矩形領域が項目名称欄である類似領域を検出する類似領域検出手段、
前記検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための類似領域入力設定情報を作成する第2の作成手段、
として機能させるためのプログラム。
Although the embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and the equivalent scope thereof.
The inventions described in the claims originally attached to the application of this application are added below. The claims in the appendix are as specified in the claims originally attached to the application for this application.
[Additional Notes]
<Claim 1>
From the image data of the form, a detail area detecting means for detecting a detail area in which a plurality of information entry fields composed of rectangular areas are arranged repeatedly in a first predetermined direction are repeatedly arranged in a second predetermined direction.
A first creation means for creating detail area input setting information for setting data input corresponding to each information entry field in the detected detail area, and
From the image data of the form, a similar area detecting means for detecting a similar area in which the arrangement of each rectangular area is similar to the repeating area and at least one rectangular area is an item name column.
A form management device including a second creation means for creating similar area input setting information for setting data input corresponding to each information entry field in the detected similar area.
<Claim 2>
The first creation means creates detailed area input setting information having a first item name for each information entry field of the repeat area.
The second creating means sets a third item name including the second item name of the item name column of the similar area and the first item name for each information entry field in the similar area. The form management device according to claim 1, wherein the similar area input setting information is created.
<Claim 3>
When the plurality of information entry fields arranged in the first predetermined direction correspond to the same first item name in the repetition area, the first creation means can be applied to each of the plurality of information entry fields. The detailed area input setting information is created by setting a fourth item name that includes the first item name and is mutually identifiable.
The second creation means sets an item name including the fourth item name in the information entry field of the similar area corresponding to the information entry field in which the fourth item name of the repeat area is set. The form management device according to claim 1 or 2, wherein the similar area input setting information is created.
<Claim 4>
The form management device according to claim 3, wherein the first creation means acquires the first item name from a rectangular area of an item name column located above the detail area.
<Claim 5>
The first creation means integrates the plurality of information entry fields into one information entry field when a plurality of information entry fields having the same width are continuously arranged in the first predetermined direction in the repetition area. To create the detail area input setting information,
The second creation means integrates a plurality of information entry fields of the similar area corresponding to the integrated information entry field of the repeat area into one information entry field to create the similar area input setting information. The form management device according to any one of claims 1 to 4.
<Claim 6>
Computer,
A detail area detecting means for detecting a detail area in which a plurality of information entry fields composed of rectangular areas are arranged repeatedly in a first predetermined direction from image data of a form in a second predetermined direction.
A first creation means for creating detail area input setting information for setting data input corresponding to each information entry field in the detected detail area,
A similar area detecting means for detecting a similar area in which the arrangement of each rectangular area is similar to the repeating area and at least one rectangular area is an item name column from the image data of the form.
A second creation means for creating similar area input setting information for setting data input corresponding to each information entry field in the detected similar area,
A program to function as.

10 帳票管理装置
11 CPU
12 操作部
13 RAM
14 表示部
15 記憶部
16 通信部
17 スキャナ部
18 印刷部
19 バス
10 Form management device 11 CPU
12 Operation unit 13 RAM
14 Display unit 15 Storage unit 16 Communication unit 17 Scanner unit 18 Printing unit 19 Bus

Claims (6)

帳票の画像データから、矩形領域からなる情報記入欄が第1の所定方向に複数配置された繰返領域が、第2の所定方向に繰り返し並んだ明細領域を検出する明細領域検出手段と、
前記検出された明細領域における各情報記入欄に対応するデータ入力の設定をするための明細領域入力設定情報を作成する第1の作成手段と、
前記帳票の画像データから、各矩形領域の並びが前記繰返領域に類似する領域であって、少なくとも1つの矩形領域が項目名称欄である類似領域を検出する類似領域検出手段と、
前記検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための類似領域入力設定情報を作成する第2の作成手段と、を備える帳票管理装置。
From the image data of the form, a detail area detecting means for detecting a detail area in which a plurality of information entry fields composed of rectangular areas are arranged repeatedly in a first predetermined direction are repeatedly arranged in a second predetermined direction.
A first creation means for creating detail area input setting information for setting data input corresponding to each information entry field in the detected detail area, and
From the image data of the form, a similar area detecting means for detecting a similar area in which the arrangement of each rectangular area is similar to the repeating area and at least one rectangular area is an item name column.
A form management device including a second creation means for creating similar area input setting information for setting data input corresponding to each information entry field in the detected similar area.
前記第1の作成手段は、前記繰返領域の情報記入欄ごとの第1の項目名を有する明細領域入力設定情報を作成し、
前記第2の作成手段は、前記類似領域において情報記入欄ごとに、当該類似領域の項目名称欄の第2の項目名と、前記第1の項目名と、を含む第3の項目名を設定して前記類似領域入力設定情報を作成する請求項1に記載の帳票管理装置。
The first creation means creates detailed area input setting information having a first item name for each information entry field of the repeat area.
The second creating means sets a third item name including the second item name of the item name column of the similar area and the first item name for each information entry field in the similar area. The form management device according to claim 1, wherein the similar area input setting information is created.
前記第1の作成手段は、前記繰返領域において前記第1の所定方向に並んだ複数の情報記入欄が同じ第1の項目名に対応する場合に、当該複数の情報記入欄のそれぞれに、当該第1の項目名を含みかつ互いに識別可能な第4の項目名を設定して前記明細領域入力設定情報を作成し、
前記第2の作成手段は、前記繰返領域の前記第4の項目名が設定された情報記入欄に対応する前記類似領域の情報記入欄に当該第4の項目名を含む項目名を設定して前記類似領域入力設定情報を作成する請求項1又は2に記載の帳票管理装置。
When the plurality of information entry fields arranged in the first predetermined direction correspond to the same first item name in the repetition area, the first creation means can be applied to each of the plurality of information entry fields. The detailed area input setting information is created by setting a fourth item name that includes the first item name and is mutually identifiable.
The second creation means sets an item name including the fourth item name in the information entry field of the similar area corresponding to the information entry field in which the fourth item name of the repeat area is set. The form management device according to claim 1 or 2, wherein the similar area input setting information is created.
前記第1の作成手段は、前記明細領域の上に位置する項目名称欄の矩形領域から前記第1の項目名を取得する請求項3に記載の帳票管理装置。 The form management device according to claim 3, wherein the first creation means acquires the first item name from a rectangular area of an item name column located above the detail area. 前記第1の作成手段は、前記繰返領域において前記第1の所定方向に同じ幅の複数の情報記入欄が連続して並ぶ場合に、当該複数の情報記入欄を1つの情報記入欄に統合して前記明細領域入力設定情報を作成し、
前記第2の作成手段は、前記繰返領域の統合された情報記入欄に対応する前記類似領域の複数の情報記入欄を1つの情報記入欄に統合して前記類似領域入力設定情報を作成する請求項1から4のいずれか一項に記載の帳票管理装置。
The first creation means integrates the plurality of information entry fields into one information entry field when a plurality of information entry fields having the same width are continuously arranged in the first predetermined direction in the repetition area. To create the detail area input setting information,
The second creation means integrates a plurality of information entry fields of the similar area corresponding to the integrated information entry field of the repeat area into one information entry field to create the similar area input setting information. The form management device according to any one of claims 1 to 4.
コンピュータを、
帳票の画像データから、矩形領域からなる情報記入欄が第1の所定方向に複数配置された繰返領域が、第2の所定方向に繰り返し並んだ明細領域を検出する明細領域検出手段、
前記検出された明細領域における各情報記入欄に対応するデータ入力の設定をするための明細領域入力設定情報を作成する第1の作成手段、
前記帳票の画像データから、各矩形領域の並びが前記繰返領域に類似する領域であって、少なくとも1つの矩形領域が項目名称欄である類似領域を検出する類似領域検出手段、
前記検出された類似領域における各情報記入欄に対応するデータ入力の設定をするための類似領域入力設定情報を作成する第2の作成手段、
として機能させるためのプログラム。
Computer,
A detail area detecting means for detecting a detail area in which a plurality of information entry fields composed of rectangular areas are arranged repeatedly in a first predetermined direction from image data of a form in a second predetermined direction.
A first creation means for creating detail area input setting information for setting data input corresponding to each information entry field in the detected detail area,
A similar area detecting means for detecting a similar area in which the arrangement of each rectangular area is similar to the repeating area and at least one rectangular area is an item name column from the image data of the form.
A second creation means for creating similar area input setting information for setting data input corresponding to each information entry field in the detected similar area,
A program to function as.
JP2017181078A 2017-09-21 2017-09-21 Form management device and program Active JP6965656B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017181078A JP6965656B2 (en) 2017-09-21 2017-09-21 Form management device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017181078A JP6965656B2 (en) 2017-09-21 2017-09-21 Form management device and program

Publications (2)

Publication Number Publication Date
JP2019057135A JP2019057135A (en) 2019-04-11
JP6965656B2 true JP6965656B2 (en) 2021-11-10

Family

ID=66107614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017181078A Active JP6965656B2 (en) 2017-09-21 2017-09-21 Form management device and program

Country Status (1)

Country Link
JP (1) JP6965656B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6565106B1 (en) * 2018-07-10 2019-08-28 株式会社ミトリ Workflow system and program thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5642288A (en) * 1994-11-10 1997-06-24 Documagix, Incorporated Intelligent document recognition and handling
JP6252296B2 (en) * 2014-03-27 2017-12-27 富士通株式会社 Data identification method, data identification program, and data identification apparatus

Also Published As

Publication number Publication date
JP2019057135A (en) 2019-04-11

Similar Documents

Publication Publication Date Title
US10824801B2 (en) Interactively predicting fields in a form
JP2007279828A (en) Form processing device, form creation device, form, program for form processing, program for form creation
US20200272850A1 (en) Information display method, information display system, and storage medium
JP2012190434A (en) Form defining device, form defining method, program and recording medium
CN112740201A (en) Ink data generating device, method and program
JP2020140450A (en) Structured data generation method and structured data generation device
JP6965656B2 (en) Form management device and program
JP5623574B2 (en) Form identification device and form identification method
JP7470264B1 (en) LAYOUT ANALYSIS SYSTEM, LAYOUT ANALYSIS METHOD, AND PROGRAM
JP6965657B2 (en) Form management device and program
JP3898645B2 (en) Form format editing device and form format editing program
JP4834351B2 (en) Character recognition device and character recognition method
JP7507331B1 (en) LAYOUT ANALYSIS SYSTEM, LAYOUT ANALYSIS METHOD, AND PROGRAM
JP2025157719A (en) Drawing processing device and drawing processing method
JPWO2020044537A1 (en) Image matching device, image matching method, and program
KR20250116889A (en) Table information extracting device and method
Balreira et al. Assessing similarity in handwritten texts
JP2008108114A (en) Document processing apparatus and document processing method
JP4517822B2 (en) Image processing apparatus and program
CN110226183A (en) Information presentation device, information cuing method and program
Peng et al. Document image matching based on component blocks
JP3878174B2 (en) Record extraction method, record extraction device, and record extraction program
JP6984440B2 (en) Image processing device, image processing method, and image processing program
JP2022043435A (en) Document classification apparatus and program
Mironovsky et al. Graphological analysis and identification of handwritten texts

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200903

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210908

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210921

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211004

R150 Certificate of patent or registration of utility model

Ref document number: 6965656

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250