JPH09204419A - Device and method for processing image - Google Patents

Device and method for processing image

Info

Publication number
JPH09204419A
JPH09204419A JP1004596A JP1004596A JPH09204419A JP H09204419 A JPH09204419 A JP H09204419A JP 1004596 A JP1004596 A JP 1004596A JP 1004596 A JP1004596 A JP 1004596A JP H09204419 A JPH09204419 A JP H09204419A
Authority
JP
Japan
Prior art keywords
result
determination
extraction
image
processing
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.)
Granted
Application number
JP1004596A
Other languages
Japanese (ja)
Other versions
JP3581471B2 (en
Inventor
Kazuyuki Saito
和之 齋藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP1004596A priority Critical patent/JP3581471B2/en
Priority to US08/786,913 priority patent/US6201894B1/en
Publication of JPH09204419A publication Critical patent/JPH09204419A/en
Application granted granted Critical
Publication of JP3581471B2 publication Critical patent/JP3581471B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Character Input (AREA)
  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily judge whether any processing error is generated in area dividing processing or not by extracting a ruled line containing an original image having a format, discriminating whether the extracted result is correct or not based on format information and reporting the discriminated result. SOLUTION: The original image is read by a scanner 101 and transformed to binary image data and the ruled lines are extracted. For example, the ruled lines contained in the document of family register are extracted and from the positions, lengths and number or the Like of these ruled lines, the class of the family register document or items consisting of the family register document are identified. Further, the document of family register is Identified corresponding to the number of longitudinal ruled lines connected downward from the ruled lines. Next, ruled line extraction error discrimination processing is performed for discriminating the presence/absence of error in ruled line extraction processing based on the ruled lines. Concerning this discrimination, the presence/absence of error in ruled line extraction processing is discriminated by comparing the ruled lines provided by extraction processing with the ruled lines in the family register document. When there is any error, the presence of error is displayed on a display 108 and the correction of error is called to an operator.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、所定のフォーマッ
トを有する原稿画像に含まれる罫線を抽出する画像処理
装置及びその方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and method for extracting ruled lines included in a document image having a predetermined format.

【0002】[0002]

【従来の技術】従来の画像処理装置においては複数の罫
線を有する原稿画像に対し、その原稿画像に含まれる属
性毎に領域を分割する領域分割処理によって、罫線に囲
まれた領域を属性の一つとしてその領域を抽出してい
た。
2. Description of the Related Art In a conventional image processing apparatus, an original image having a plurality of ruled lines is divided into areas for each attribute included in the original image, and the area surrounded by the ruled lines is divided into attributes by an area dividing process. The area was extracted as one.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の画像処理装置では、領域分割処理によって罫線に囲
まれた領域を抽出できても、領域分割処理のミスの有無
はオペレータが目視で確認する必要があった。また、原
稿画像に含まれる所望の罫線に囲まれた領域を、その原
稿画像を構成する項目の1つとして抽出しようとしても
領域分割処理にミスが有る場合は、その項目を誤って取
り出してしまうという問題点があった。
However, in the above-mentioned conventional image processing apparatus, even if the region surrounded by the ruled lines can be extracted by the region dividing process, the operator needs to visually confirm whether or not there is a mistake in the region dividing process. was there. Further, if there is a mistake in the area division processing even if an area surrounded by a desired ruled line included in the original image is to be extracted as one of the items forming the original image, the item is mistakenly taken out. There was a problem.

【0004】本発明は上記の問題点を鑑みてなされたも
のであり、領域分割処理で生じる処理ミスの有無を容易
に判断することができ、かつ、処理ミスがある場合にそ
の処理ミスを容易に修正することができる画像処理装置
及びその方法を提供することを目的としている。また、
原稿画像に含まれる罫線を抽出する罫線抽出処理で生じ
る処理ミスを修正することで、常に正確な罫線を抽出が
可能とし、更に、抽出された罫線に基づいて、領域分割
処理を行うことで、領域分割処理で生じる処理ミスを軽
減する画像処理装置及びその方法を提供することを目的
としている。
The present invention has been made in view of the above problems, and it is possible to easily determine whether or not there is a processing error that occurs in the area division processing, and if there is a processing error, the processing error can be easily performed. It is an object of the present invention to provide an image processing apparatus and method that can be modified. Also,
By correcting the processing error that occurs in the ruled line extraction processing that extracts the ruled lines included in the original image, it is possible to always extract accurate ruled lines, and further, by performing the area division processing based on the extracted ruled lines, It is an object of the present invention to provide an image processing apparatus and a method thereof that reduce a processing error caused in the area division processing.

【0005】また、領域分割処理における操作の作業効
率を向上する画像処理装置及びその方法を提供すること
を目的としている。
It is another object of the present invention to provide an image processing apparatus and method for improving the work efficiency of the operation in the area division processing.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
め本発明による画像処理装置は以下の構成を備える。即
ち、所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する画像処理装置であって、前記所定のフォー
マットに関するフォーマット情報を記憶する記憶手段
と、前記所定のフォーマットを有する原稿画像に含まれ
る罫線を抽出する抽出手段と、前記フォーマット情報に
基づいて、前記抽出手段による抽出結果の正否を判定す
る判定手段と、前記判定手段の判定結果に基づいて、報
知する報知手段とを備える。
To achieve the above object, an image processing apparatus according to the present invention has the following configuration. That is, an image processing apparatus for extracting ruled lines included in a document image having a predetermined format, including storage means for storing format information regarding the predetermined format, and ruled lines included in the document image having the predetermined format. An extraction unit that extracts, a determination unit that determines whether the extraction result by the extraction unit is correct based on the format information, and a notification unit that notifies based on the determination result of the determination unit.

【0007】上記の他の目的を達成するための本発明に
よる画像処理装置は以下の構成を備える。即ち、所定の
フォーマットを有する原稿画像に含まれる罫線を抽出す
る画像処理装置であって、複数種類の所定のフォーマッ
トを有する原稿画像に関するそれぞれのフォーマット情
報を記憶する記憶手段と、前記所定のフォーマットを有
する原稿画像に含まれる罫線を抽出する抽出手段と、前
記抽出手段で抽出される罫線の特徴に基づいて、前記所
定のフォーマットを有する原稿画像の種類を識別する識
別手段と、前記識別手段で識別された種類に対応する所
定のフォーマットを有する原稿画像のフォーマット情報
に基づいて、前記抽出手段による抽出結果の正否を判定
する判定手段と、前記判定手段の判定結果に基づいて、
報知する報知手段とを備える。
An image processing apparatus according to the present invention for achieving the above other object has the following configuration. That is, an image processing apparatus for extracting a ruled line included in a document image having a predetermined format, a storage unit for storing format information of a plurality of types of document images having a predetermined format, and the predetermined format. Extraction means for extracting a ruled line included in the document image, a discriminating means for discriminating the type of the document image having the predetermined format based on the feature of the ruled line extracted by the extracting means, and discriminating by the discriminating means. Based on the format information of the document image having a predetermined format corresponding to the type, the determination means to determine the correctness of the extraction result by the extraction means, based on the determination result of the determination means,
And an informing means for informing.

【0008】また、好ましくは、前記判定手段の判定の
結果、前記抽出手段による抽出結果が正である場合、該
抽出結果に基づいて、前記所定のフォーマットを有する
原稿画像を複数の領域に分割する分割手段を更に備え
る。また、好ましくは、前記判定手段の判定の結果、前
記抽出手段による抽出結果に否がある場合、該抽出結果
の否を修正する修正手段を更に備える。修正手段を備え
ることで、抽出結果の否を修正することができるからで
ある。
Further, preferably, when the result of the determination by the determination means is that the extraction result by the extraction means is positive, the original image having the predetermined format is divided into a plurality of areas based on the extraction result. A dividing means is further provided. Further, preferably, when the result of the determination by the determination unit indicates that the extraction result by the extraction unit is negative, the correction unit further corrects the extraction result. This is because the presence or absence of the extraction result can be corrected by providing the correction means.

【0009】また、好ましくは、前記修正手段による修
正を行うか否かを指示する指示手段を更に備える。ま
た、好ましくは、前記分割手段は、前記修正手段で修正
された抽出結果に基づいて、前記所定のフォーマットを
有する原稿画像を複数の領域に分割する。
Further, it is preferable that the apparatus further comprises instruction means for instructing whether or not to make a correction by the correction means. Further, preferably, the dividing unit divides the document image having the predetermined format into a plurality of regions based on the extraction result corrected by the correcting unit.

【0010】また、好ましくは、前記報知手段は、前記
判定手段による判定結果を表示する。また、好ましく
は、前記報知手段は、前記判定手段による判定結果を音
を用いて報知する。また、好ましくは、前記判定手段の
判定の結果、前記抽出手段による抽出結果に否がある場
合、抽出結果に否が生じた可能性のある領域を、抽出結
果に否が生じていない領域と区別して表示する表示手段
を更に備える。区別して表示することで、ユーザに抽出
結果に否が生じた可能性のある罫線を把握しやすくする
ことができるからである。
Further, preferably, the notifying means displays the judgment result by the judging means. Further, preferably, the notifying unit notifies the determination result by the determining unit using sound. In addition, preferably, when the result of the determination by the determination means indicates that the extraction result by the extraction means is negative, the area in which the extraction result may have failed is separated from the area in which the extraction result does not fail. A display means for displaying separately is further provided. This is because by displaying them separately, it is possible for the user to easily understand the ruled line that may have resulted in a failure in the extraction result.

【0011】また、好ましくは、前記フォーマット情報
に基づいて、前記分割手段による分割結果の正否を判定
する判定手段を更に備える。また、好ましくは、前記判
定手段の判定の結果、前記分割手段による分割結果に否
がある場合、該分割結果の否を修正する修正手段を更に
備える。修正手段を備えることで、分割結果の否を修正
することができるからである。
Further, preferably, there is further provided a judging means for judging whether or not the division result by the dividing means is correct based on the format information. Further, preferably, when the result of the determination by the determining means indicates that the result of division by the dividing means is negative, there is further provided correction means for correcting the result of the division. This is because the presence or absence of the division result can be corrected by providing the correction means.

【0012】また、好ましくは、前記判定手段の判定の
結果、前記分割手段による分割結果の正否を表示する表
示手段を更に備える。表示手段を備えることで、ユーザ
に分割結果の正否を知らせることができるからである。
また、好ましくは、前記判定手段の判定の結果、前記分
割手段による分割結果に否がある場合、その旨を報知す
る報知手段を更に備える。報知手段を備えることで、ユ
ーザに分割結果に否があったことを知らせることができ
るからである。
[0012] Further, preferably, it further comprises display means for displaying whether the result of the determination by the determination means is correct or not. By providing the display means, it is possible to inform the user of the correctness of the division result.
Further, preferably, when the result of the determination made by the determining means indicates that the result of the division by the dividing means is negative, there is further provided a notifying means for notifying that effect. This is because the provision of the notification means allows the user to be notified that the division result is negative.

【0013】上記の目的を達成するための本発明による
画像処理方法は以下の構成を備える。即ち、所定のフォ
ーマットを有する原稿画像に含まれる罫線を抽出する画
像処理方法であって、前記所定のフォーマットに関する
フォーマット情報を記憶媒体に記憶する記憶工程と、前
記所定のフォーマットを有する原稿画像に含まれる罫線
を抽出する抽出工程と、前記フォーマット情報に基づい
て、前記抽出工程による抽出結果の正否を判定する判定
工程と、前記判定手段の判定結果に基づいて、報知する
報知工程とを備える。
An image processing method according to the present invention for achieving the above object has the following configuration. That is, an image processing method for extracting ruled lines included in a document image having a predetermined format, which includes a storage step of storing format information regarding the predetermined format in a storage medium, and a method of storing the format information in the document image having the predetermined format. An extraction step of extracting a ruled line to be performed, a determination step of determining whether the extraction result by the extraction step is correct based on the format information, and a notification step of notifying based on the determination result of the determination means.

【0014】上記の他の目的を達成するための本発明に
よる画像処理方法は以下の構成を備える。即ち、所定の
フォーマットを有する原稿画像に含まれる罫線を抽出す
る画像処理方法であって、複数種類の所定のフォーマッ
トを有する原稿画像に関するそれぞれのフォーマット情
報を記憶媒体に記憶する記憶工程と、前記所定のフォー
マットを有する原稿画像に含まれる罫線を抽出する抽出
工程と、前記抽出工程で抽出される罫線の特徴に基づい
て、前記所定のフォーマットを有する原稿画像の種類を
識別する識別工程と、前記識別工程で識別された種類に
対応する所定のフォーマットを有する原稿画像のフォー
マット情報に基づいて、前記抽出工程による抽出結果の
正否を判定する判定工程と、前記判定工程の判定結果に
基づいて、報知する報知工程とを備える。
An image processing method according to the present invention for achieving the above-mentioned other object has the following configuration. That is, it is an image processing method for extracting ruled lines included in a document image having a predetermined format, and a storage step of storing format information of a plurality of types of document images having a predetermined format in a storage medium; An extraction step of extracting a ruled line included in a document image having the format, an identification step of identifying the type of the document image having the predetermined format based on the feature of the ruled line extracted in the extraction step, and the identification Based on the format information of the original image having a predetermined format corresponding to the type identified in the step, a determination step of determining the correctness of the extraction result by the extraction step, and a notification based on the determination result of the determination step And a notification step.

【0015】また、好ましくは、前記判定工程の判定の
結果、前記抽出工程による抽出結果が正である場合、該
抽出結果に基づいて、前記所定のフォーマットを有する
原稿画像を複数の領域に分割する分割工程を更に備え
る。また、好ましくは、前記判定工程の判定の結果、前
記抽出工程による抽出結果に否がある場合、該抽出結果
の否を修正する修正工程を更に備える。
Further, preferably, when the result of the determination in the determination step is that the extraction result in the extraction step is positive, the original image having the predetermined format is divided into a plurality of areas based on the extraction result. The method further includes a dividing step. Further, preferably, if the result of the determination in the determination step is that the extraction result of the extraction step is negative, a correction step of correcting the extraction result is further provided.

【0016】また、好ましくは、前記修正工程による修
正を行うか否かを指示する指示工程を更に備える。ま
た、好ましくは、前記分割工程は、前記修正工程で修正
された抽出結果に基づいて、前記所定のフォーマットを
有する原稿画像を複数の領域に分割する。
[0016] Preferably, the method further comprises an instructing step for instructing whether or not to make the correction by the correcting step. Further, preferably, the dividing step divides the original image having the predetermined format into a plurality of areas based on the extraction result corrected by the correcting step.

【0017】また、好ましくは、前記報知工程は、前記
判定工程による判定結果を表示する。また、好ましく
は、前記報知工程は、前記判定工程による判定結果を音
を用いて報知する。また、好ましくは、前記判定工程の
判定の結果、前記抽出工程による抽出結果に否がある場
合、抽出結果に否が生じた可能性のある領域を、抽出結
果に否が生じていない領域と区別して表示する表示工程
を更に備える。
Further, preferably, the notification step displays the judgment result of the judgment step. Further, preferably, in the informing step, the determination result of the determining step is informed by sound. Also, preferably, when the result of the determination in the determination step is negative in the extraction result in the extraction step, the area in which the extraction result may be negative is separated from the area in which the extraction result is not negative. A display step of separately displaying is further provided.

【0018】また、好ましくは、前記フォーマット情報
に基づいて、前記分割工程による分割結果の正否を判定
する判定工程を更に備える。また、好ましくは、前記判
定工程の判定の結果、前記分割工程による分割結果に否
がある場合、該分割結果の否を修正する修正工程を更に
備える。
Further, preferably, the method further comprises a determination step of determining whether the division result by the division step is correct based on the format information. Further, preferably, if the result of the determination in the determination step is that the division result by the division step is negative, a correction step of correcting the division result is further provided.

【0019】また、好ましくは、前記判定工程の判定の
結果、前記分割工程による分割結果の正否を表示する表
示工程を更に備える。また、好ましくは、前記判定工程
の判定の結果、前記分割工程による分割結果に否がある
場合、その旨を報知する報知工程を更に備える。
[0019] Preferably, the method further comprises a display step of displaying the result of the determination in the determination step, whether the division result of the division step is correct or not. Further, preferably, when the result of the determination in the determination step indicates that the result of the division by the division step is negative, there is further provided a notification step of notifying the fact.

【0020】上記の目的を達成するための本発明による
コンピュータ可読メモリは以下の構成を備える。即ち、
画像処理のプログラムコードが格納されたコンピュータ
可読メモリであって、前記所定のフォーマットに関する
フォーマット情報を記憶媒体に記憶する記憶工程のコー
ドと、前記所定のフォーマットを有する原稿画像に含ま
れる罫線を抽出する抽出工程のコードと、前記フォーマ
ット情報に基づいて、前記抽出工程による抽出結果の正
否を判定する判定工程のコードと、前記判定手段の判定
結果に基づいて、報知する報知工程のコードとを備え
る。
A computer readable memory according to the present invention for achieving the above object has the following configuration. That is,
A computer-readable memory storing a program code for image processing, which extracts a code of a storage step of storing format information regarding the predetermined format in a storage medium and a ruled line included in a document image having the predetermined format. The code of the extraction step, the code of the determination step of determining the correctness of the extraction result by the extraction step based on the format information, and the code of the notification step of notifying based on the determination result of the determination means.

【0021】上記の他の目的を達成するための本発明に
よるコンピュータ可読メモリは以下の構成を備える。即
ち、画像処理のプログラムコードが格納されたコンピュ
ータ可読メモリであって、複数種類の所定のフォーマッ
トを有する原稿画像に関するそれぞれのフォーマット情
報を記憶媒体に記憶する記憶工程のコードと、前記所定
のフォーマットを有する原稿画像に含まれる罫線を抽出
する抽出工程のコードと、前記抽出工程で抽出される罫
線の特徴に基づいて、前記所定のフォーマットを有する
原稿画像の種類を識別する識別工程のコードと、前記識
別工程で識別された種類に対応する所定のフォーマット
を有する原稿画像のフォーマット情報に基づいて、前記
抽出工程による抽出結果の正否を判定する判定工程のコ
ードと、前記判定工程の判定結果に基づいて、報知する
報知工程のコードとを備える。
According to another aspect of the present invention, there is provided a computer readable memory having the following configuration. That is, it is a computer-readable memory storing a program code for image processing, and stores a code of a storage process for storing format information on each of document images having a plurality of types of predetermined formats in a storage medium, and the predetermined format. A code of an extraction step for extracting a ruled line included in the document image, and a code of an identification step for identifying the type of the document image having the predetermined format based on the feature of the ruled line extracted in the extraction step; Based on the format information of the document image having a predetermined format corresponding to the type identified in the identification step, the code of the determination step of determining the correctness of the extraction result by the extraction step, and the determination result of the determination step , And a code of a notification process for notification.

【0022】[0022]

【発明の実施の形態】以下、図面を参照して本発明の好
適な実施の形態を詳細に説明する。図1は本実施の形態
の画像処理装置の機能構成を示すブロック図である。図
1において、101はスキャナであり、原稿画像に光を
照射し、その反射光を読み取り電気信号に変換する。ま
た、スキャナ101より読み込まれた原稿画像は、イメ
ージデータとしてRAM107のVRAM領域に格納さ
れる。102はスキャナインターフェースであり、スキ
ャナ101で得られた電気信号を2値のデジタル電気信
号に変換し、他の装置構成要素に伝送する。103はポ
インティングデバイスとして機能するマウスであり、マ
ウス103を移動することでディスプレイ108上に表
示されるカーソル100を移動する。また、画面に表示
されるメニューにカーソル100を位置し、そのメニュ
ー上で付帯するボタン(不図示)を用いてドラッグ操
作、クリック操作を行うことで、その内容を実行するこ
とができる。104はマウスインタフェースであり、マ
ウス103からの信号を受け、それを他の装置構成要素
に伝送する。114はKB(キーボード)であり、キー
ボードを介してデータの入力や命令の実行を行う。11
3はKBインターフェースであり、KB114からの信
号を受け、それを他の装置構成要素に伝送する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing the functional arrangement of the image processing apparatus according to this embodiment. In FIG. 1, 101 is a scanner, which irradiates a document image with light and reads the reflected light to convert it into an electric signal. Further, the original image read by the scanner 101 is stored in the VRAM area of the RAM 107 as image data. A scanner interface 102 converts an electric signal obtained by the scanner 101 into a binary digital electric signal and transmits the binary digital electric signal to other device constituent elements. Reference numeral 103 denotes a mouse that functions as a pointing device. By moving the mouse 103, the cursor 100 displayed on the display 108 is moved. The contents can be executed by positioning the cursor 100 on a menu displayed on the screen and performing a drag operation or a click operation using a button (not shown) attached on the menu. A mouse interface 104 receives a signal from the mouse 103 and transmits it to another device component. Reference numeral 114 denotes a KB (keyboard), which inputs data and executes instructions via the keyboard. 11
Reference numeral 3 is a KB interface, which receives a signal from the KB 114 and transmits it to another device component.

【0023】105はCPUであり、装置全体の制御及
び後述する領域分割等の本発明で説明される処理や認識
処理を実行する。106はROMであり、CPU105
が実行する制御プログラム、各種処理プログラムやフォ
ントデータ等の各種データを格納している。107はR
AMであり、原稿画像の展開や領域分割処理のための作
業領域等として用いる。また、スキャナ101より読み
込まれたイメージデータ(2値画像データ)を格納する
ための所定の記憶領域としてVRAM領域を持つ。10
8はディスプレイであり、RAM107のVRAM領域
に格納されているイメージデータや本実施の形態で実行
される罫線抽出処理結果等を表示する。109はディス
プレイインターフェースである。
Reference numeral 105 denotes a CPU, which executes control of the entire apparatus and processing such as area division described later and recognition processing described in the present invention. 106 is a ROM, and the CPU 105
It stores various data such as a control program executed by the computer, various processing programs, and font data. 107 is R
AM, which is used as a work area or the like for developing a document image and area division processing. Further, it has a VRAM area as a predetermined storage area for storing image data (binary image data) read by the scanner 101. 10
A display 8 displays the image data stored in the VRAM area of the RAM 107, the ruled line extraction processing result executed in this embodiment, and the like. 109 is a display interface.

【0024】110はFDD(フロッピーディスクドラ
イブ)であり、FDを装着しデータの読み書きが可能で
ある。また、装着されたFD(不図示)に後述する処理
フローのプログラムを書き込み、該プログラムを本装置
のRAM107に読み込むことで処理を実行させること
ができる。111はFDDインターフェースである。そ
して、112は各装置構成要素を接続するバスである。
Reference numeral 110 denotes an FDD (floppy disk drive), which is capable of reading and writing data by mounting the FD. Further, it is possible to execute a process by writing a program of a processing flow described later in the attached FD (not shown) and reading the program into the RAM 107 of the present apparatus. 111 is an FDD interface. Further, 112 is a bus for connecting the respective components of the apparatus.

【0025】次に本実施の形態で実行される処理につい
て、図2のフローチャートを用いて説明する。図2は本
実施の形態で実行される処理の処理フローを示すフロー
チャートである。尚、本実施の形態で実行される処理
は、あらかじめ原稿画像を構成する罫線で囲まれる領域
(以下、この領域を項目と呼ぶ)が決まっているよう
な、例えば、図6に示すような戸籍文書等に適用した場
合について説明するが、これに限定されるものではな
い。例えば、構成が決まっている原稿画像であるなら
ば、どのようなものでも良い。
Next, the processing executed in this embodiment will be described with reference to the flowchart of FIG. FIG. 2 is a flowchart showing a processing flow of processing executed in this embodiment. It should be noted that the processing executed in the present embodiment is such that a region surrounded by ruled lines forming the document image (hereinafter, this region is referred to as an item) is determined in advance, for example, a family register as shown in FIG. A case where the invention is applied to a document or the like will be described, but the invention is not limited to this. For example, any original image may be used as long as it has a predetermined configuration.

【0026】まず、ステップS201で、原稿画像をス
キャナ101で読み込み2値画像データに変換する。ス
テップS202で、得られた2値画像データに対して、
2値画像データに含まれる罫線を抽出する罫線抽出処理
を行う。そして、抽出した罫線の座標データ等の情報を
ブロックデータとして図3のように記憶する。ここで、
図3に示されるブロックデータについて説明する。
First, in step S201, the original image is read by the scanner 101 and converted into binary image data. In step S202, for the obtained binary image data,
Ruled line extraction processing for extracting the ruled lines included in the binary image data is performed. Then, information such as the coordinate data of the extracted ruled lines is stored as block data as shown in FIG. here,
The block data shown in FIG. 3 will be described.

【0027】図3は本実施の形態のブロックデータの構
成を示す図である。図3は、RAM107に展開される
2値画像データに含まれる項目の位置を示すための始点
座標(X1,Y1)、終点座標(X2,Y2)、有効フ
ラグ、項目識別ID、認識順序、属性、組方向の情報を
格納する。始点座標は、図6に示されるような各罫線の
右端の位置座標、終点座標は、各罫線の左端の位置座標
を示す。有効フラグは、抽出された罫線が有効であるか
否かを示す。項目識別IDは、ここでは使用しない。認
識順序も、ここでは使用しない。属性は、領域分割処理
で分割単位である属性を格納する。本発明の場合、罫線
を示す属性が格納される。組方向も、ここでは使用しな
い。
FIG. 3 is a diagram showing the structure of block data according to the present embodiment. FIG. 3 shows start point coordinates (X1, Y1), end point coordinates (X2, Y2) for indicating the position of an item included in the binary image data expanded in the RAM 107, valid flag, item identification ID, recognition order, and attribute. , Stores information on the set direction. The start point coordinates indicate the position coordinates of the right end of each ruled line as shown in FIG. 6, and the end point coordinates indicate the position coordinates of the left end of each ruled line. The valid flag indicates whether or not the extracted ruled line is valid. The item identification ID is not used here. The recognition order is also not used here. The attribute stores an attribute which is a division unit in the area division processing. In the case of the present invention, the attribute indicating the ruled line is stored. The set direction is also not used here.

【0028】例えば、図6に示される戸籍文書に対し、
上述のステップS202の罫線抽出処理を行うと、ま
ず、戸籍文書に含まれる罫線を抽出し、その罫線の位
置、長さ、本数等から戸籍文書の種別や戸籍文書を構成
する項目の識別を行う。その罫線抽出処理の処理結果
が、図7に示されるように、罫線701や罫線702や
罫線703が存在すれば、その戸籍文書の項目の構成の
種別(以下、「ページタイプ」と呼ぶ)は、筆頭者が記
載されているページタイプ(以下、「筆頭者タイプ」と
呼ぶ)と識別される。また、罫線701や罫線702が
無く、罫線703のX1座標が上端の罫線704または
下端の罫線705と同じであれば、筆頭者が記載されて
いないページタイプ(以下、「非筆頭者タイプ」と呼
ぶ)と識別される。
For example, for the family register document shown in FIG.
When the ruled line extraction processing in step S202 described above is performed, first, the ruled lines included in the family register document are extracted, and the type of the family register document and the items that make up the family register document are identified from the position, length, number of the ruled lines, and the like. . As shown in FIG. 7, if the ruled line 701, the ruled line 702, and the ruled line 703 are present as the processing result of the ruled line extraction processing, the type of the configuration of the item of the family register document (hereinafter referred to as “page type”) is , The page type in which the first person is described (hereinafter referred to as “first person type”). If there is no ruled line 701 or ruled line 702 and the X1 coordinate of the ruled line 703 is the same as the ruled line 704 at the upper end or the ruled line 705 at the lower end, the page type in which the first person is not described (hereinafter referred to as “non-first person type”) Is called).

【0029】更に、罫線703から下に連なる縦罫線の
本数によって、戸籍文書の識別がなされる。例えば、図
7に示される戸籍文書の場合は、養父および養母の両方
が記載されているタイプであると識別される。次に、S
203で、上述のステップS202の罫線抽出処理によ
って得られた罫線に基づいて、罫線抽出処理のミスの有
無を判定する罫線抽出ミス判定処理を行う。このミスの
判定は、上述のステップS202の罫線抽出処理によっ
て得られた罫線と、予め罫線の構成が定まっている戸籍
文書(図6参照)の罫線を比較することで罫線抽出処理
のミスの有無を判定する。尚、予め罫線の構成が定まっ
ている戸籍文書は、RAM106に格納されているとす
る。
Further, the family register document is identified by the number of vertical ruled lines extending from the ruled line 703. For example, in the case of the family register document shown in FIG. 7, both the adopted father and the adopted mother are identified as the described type. Next, S
At 203, based on the ruled line obtained by the ruled line extraction process of step S202, a ruled line extraction error determination process for determining whether or not there is a mistake in the ruled line extraction process is performed. The determination of this mistake is made by comparing the ruled line obtained by the ruled line extraction processing in step S202 described above with the ruled line of the family register document (see FIG. 6) whose ruled line configuration has been determined in advance to determine whether or not there is a ruled line extraction processing error. To judge. It is assumed that the family register document in which the ruled line configuration is predetermined is stored in the RAM 106.

【0030】罫線抽出処理のミスが有るとして判定され
るのは、例えば、図8に示されるように、スキャナ10
1で読み取った原稿画像の罫線がかすれていて罫線80
1のように抽出できなかったり、あるいは罫線803の
ように抽出された罫線が短くなってしまった場合に、罫
線抽出処理のミスがあると判定される。なぜなら、この
まま、処理を続けてしまうと、後述するブロック抽出処
理(ステップS207)の処理ミスを起こしたり、戸籍
文書の種別や項目の識別が不可能となるからである。
It is judged that there is a mistake in the ruled line extraction processing, for example, as shown in FIG.
The ruled lines of the original image read in 1 are faint and the ruled lines 80
When it is not possible to extract the ruled line like 1 or when the extracted ruled line like the ruled line 803 is shortened, it is determined that there is an error in the ruled line extraction processing. This is because if the processing is continued as it is, a processing error in the block extraction processing (step S207) described later will occur, and the type and item of the family register document cannot be identified.

【0031】ステップS204で、罫線抽出ミス判定処
理の処理結果をディスプレイ108に表示する罫線抽出
ミス判定結果表示処理を行う。ステップS205で、罫
線抽出ミス判定結果表示処理の処理結果より、罫線抽出
処理にミスが有るか否かを判定する。罫線抽出処理にミ
スがない場合、正常終了した旨をディスプレイ108に
表示し、ステップS207に進む。一方、罫線抽出処理
にミスがある場合、罫線抽出処理にミスがあった旨をデ
ィスプレイ108に表示し、罫線抽出処理のミスの修正
をオペレータに促し、ステップS206に進む。。
In step S204, ruled line extraction error determination result display processing for displaying the processing result of the ruled line extraction error determination processing on the display 108 is performed. In step S205, it is determined from the processing result of the ruled line extraction error determination result display processing whether or not there is an error in the ruled line extraction processing. If there is no mistake in the ruled line extraction processing, the fact that the processing has ended normally is displayed on the display 108, and the process proceeds to step S207. On the other hand, if there is a mistake in the ruled line extraction processing, the fact that there is a mistake in the ruled line extraction processing is displayed on the display 108, the operator is prompted to correct the mistake in the ruled line extraction processing, and the process proceeds to step S206. .

【0032】ステップS206で、罫線抽出ミス判定結
果表示処理によって罫線抽出処理のミスがあった旨が表
示された後、元原稿画像上に現在の罫線の罫線抽出状態
が表示される。そして、オペレータは修正対象を拡大、
縮小、移動、削除するか、新しいブロックを作成する等
の画像処理によって罫線抽出処理の処理結果を修正する
罫線修正処理を行う。
In step S206, after the fact that there is a mistake in the ruled line extraction processing is displayed by the ruled line extraction error determination result display processing, the current ruled line extraction state of the ruled line is displayed on the original document image. And the operator expands the correction target,
Ruled line correction processing is performed to correct the processing result of the ruled line extraction processing by image processing such as reduction, movement, deletion, or creation of a new block.

【0033】修正した結果は、オペレータがマウス10
3で修正終了ボタンを押す等によって指示することで、
修正された項目に対応するブロックデータが更新された
後、ステップS207に進む。例えば、罫線抽出ミス判
定結果表示処理において、罫線抽出処理にミスがあった
旨がディスプレイ108に表示されると、元原稿画像
(図6の戸籍文書)の上に処理結果(図8)が表示され
る。
The corrected result is displayed by the operator using the mouse 10
By instructing by pressing the correction end button in 3
After the block data corresponding to the corrected item is updated, the process proceeds to step S207. For example, in the ruled line extraction error determination result display process, when a message indicating that there is a mistake in the ruled line extraction process is displayed on the display 108, the process result (FIG. 8) is displayed on the original document image (family register document in FIG. 6). To be done.

【0034】元原稿画像画像上に現在の処理結果(図
8)が表示されると、オペレータはその中から、抽出さ
れていない罫線801(図8)を図9に示すような新し
い罫線901を作成する。同様にして、罫線803(図
8)を修正する(不図示)。そして、オペレータがマウ
ス103で修正終了のボタン902を指示することによ
って、修正された項目のブロックの内容は対応するブロ
ックデータに更新される。
When the current processing result (FIG. 8) is displayed on the original document image image, the operator selects a new ruled line 901 (FIG. 8) from the unextracted ruled line 801 (FIG. 8). create. Similarly, the ruled line 803 (FIG. 8) is corrected (not shown). Then, when the operator designates the modification end button 902 with the mouse 103, the content of the block of the modified item is updated to the corresponding block data.

【0035】ステップS207で、原稿画像に含まれる
罫線に囲まれた領域(項目)を抽出するブロック抽出処
理を行う。そして、抽出した項目の座標データ等の情報
をブロックデータとして図3のように記憶する。この場
合、始点座標(X1,Y1)、終点座標(X2,Y
2)、有効フラグ、項目識別ID、認識順序、属性、組
方向の情報を格納する。始点座標は、図11に示される
ような各項目の右上角の位置座標、終点座標は、各項目
の左下角の位置座標を示す。有効フラグは、抽出された
項目が有効であるか否かを示す。項目識別IDは、後述
する設定方法によって各項目の項目識別IDを格納す
る。認識順序は、各項目に記入されている文字を認識す
る場合の認識順序を格納する。属性は、領域分割処理で
分割単位である属性を格納する。本発明の場合、項目
(罫線で囲まれた領域)を示す属性が格納される。組方
向は、各項目に記入されている文字の方向(縦書きある
いは横書き)を示す情報を格納する。
In step S207, block extraction processing is performed to extract the area (item) surrounded by the ruled lines included in the original image. Then, information such as coordinate data of the extracted items is stored as block data as shown in FIG. In this case, the start point coordinates (X1, Y1) and the end point coordinates (X2, Y
2), the valid flag, the item identification ID, the recognition order, the attribute, and the information on the set direction are stored. The start point coordinates indicate the position coordinates of the upper right corner of each item as shown in FIG. 11, and the end point coordinates indicate the position coordinates of the lower left corner of each item. The valid flag indicates whether or not the extracted item is valid. The item identification ID stores the item identification ID of each item according to the setting method described later. The recognition order stores the recognition order when recognizing the characters entered in each item. The attribute stores an attribute which is a division unit in the area division processing. In the case of the present invention, attributes indicating items (areas surrounded by ruled lines) are stored. The set direction stores information indicating the direction of characters written in each item (vertical writing or horizontal writing).

【0036】次に、ステップS208で、原稿画像の項
目の構成を示すフォーマット情報からその原稿画像の項
目の構成を分類し、その原稿画像を構成する項目を識別
する項目識別処理を行う。尚、原稿画像の項目の構成を
識別する場合、その原稿画像を領域分割して得られるブ
ロックの位置、形状、面積、数等によって、その原稿画
像の項目の構成の種類を分類し、各項目を識別する。ま
た、フォーマット情報はあらかじめROM106に記憶
されているものとする。
Next, in step S208, the item configuration of the document image is classified from the format information indicating the configuration of the item of the document image, and the item identification process for identifying the item configuring the document image is performed. When identifying the configuration of the item of the document image, the type of configuration of the item of the document image is classified according to the position, shape, area, number, etc. of blocks obtained by dividing the document image into regions, and each item is classified. Identify. Further, it is assumed that the format information is stored in the ROM 106 in advance.

【0037】また、本実施の形態の原稿画像として用い
る戸籍文書の項目を分類し識別するために、各項目を分
類し識別するためのID(項目識別ID)を図4の
(a)〜(c)のように定義する。そして、各項目のI
Dを組み合わせることによって戸籍文書の項目を分類し
識別する。ここで、図4の(a)〜(c)に示されるI
D(項目識別ID)について説明する。
Further, in order to classify and identify the items of the family register document used as the manuscript image of the present embodiment, IDs (item identification IDs) for classifying and identifying the respective items are shown in FIGS. Define as in c). And I of each item
The items of the family register document are classified and identified by combining D. Here, I shown in (a) to (c) of FIG.
The D (item identification ID) will be described.

【0038】図4の(a)は、戸籍文書のページタイプ
の種別を定義するIDであり、戸籍文書の最上右にある
罫線に囲まれたブロック領域(図6参照)に書かれてい
る、「筆頭者」あるいは「非筆頭者」を種別として定義
している。図4の(b)は、戸籍文書のページの記載者
の種別を定義するIDであり、図4の(b)に示される
ような種別のIDが定義されている。図4の(c)は、
戸籍文書を構成する項目の項目名を定義するIDであ
り、図4の(c)に示されるような種別のIDが定義さ
れている。
FIG. 4A shows an ID that defines the type of page type of the family register document, which is written in the block area (see FIG. 6) surrounded by the ruled line at the top right of the family register document. “First person” or “non-first person” is defined as the type. 4B is an ID that defines the type of the person who describes the page of the family register document, and the type ID as shown in FIG. 4B is defined. (C) of FIG.
This is an ID that defines the item name of an item that constitutes the family register document, and the type ID as shown in FIG. 4C is defined.

【0039】次に、ステップS208で実行される項目
識別処理の詳細を、図10を用いて説明する。図10は
本実施の形態の項目識別処理の詳細な処理フローを示す
フローチャートである。まず、ステップS1001で、
戸籍文書のページタイプの種別を分類し識別する。この
識別の方法としては、戸籍文書の最右上にあるブロック
(項目)の形状によって、その戸籍文書のページタイプ
を識別する。
Details of the item identification processing executed in step S208 will be described below with reference to FIG. FIG. 10 is a flowchart showing a detailed processing flow of the item identification processing of this embodiment. First, in step S1001,
Classify and identify the page type of family register documents. As a method of this identification, the page type of the family register document is identified by the shape of the block (item) at the upper right of the family register document.

【0040】尚、識別の方法としては、例えば、戸籍文
書の最右上のブロックの幅がその高さよりも長い場合は
「筆頭者タイプ」として識別し、それ以外は「非筆頭者
タイプ」として識別することでページタイプを識別す
る。あるいは、最右上のブロックの幅が、そのブロック
のY1座標と同じY1座標を持つブロックの幅よりも大
きい場合は「筆頭者タイプ」として識別し、一方、最右
上のブロックの幅が、そのブロックのY1座標と同じY
1座標を持つブロックの幅が同じである場合は「非筆頭
者タイプ」として識別することもできる。
As a method of identification, for example, when the width of the upper right block of the family register document is longer than its height, it is identified as "first person type", and otherwise it is identified as "non-first person type". To identify the page type. Alternatively, if the width of the upper right block is larger than the width of a block having the same Y1 coordinate as that of the block, the block is identified as "first-type", while the width of the upper right block is the block. Same as Y1 coordinate of
If the blocks having one coordinate have the same width, they can be identified as "non-first person type".

【0041】再び、フローチャートの説明に戻る。ステ
ップS1001において、戸籍文書の最右上のブロック
の幅がその高さよりも長い場合は「筆頭者タイプ」とし
て識別し、ステップS1004に進む。一方、戸籍文書
の最右上のブロックの幅がその高さよりも短い場合は
「非筆頭者タイプ」として識別し、ステップS1002
に進む。
Returning to the explanation of the flow chart again. In step S1001, if the width of the upper right block of the family register document is longer than its height, the block is identified as "first person type", and the process proceeds to step S1004. On the other hand, if the width of the upper right block of the family register document is shorter than its height, the block is identified as "non-leader type", and step S1002.
Proceed to.

【0042】戸籍文書のページタイプが識別されたなら
ば、次に、更に詳細な戸籍文書の識別と項目の識別の鍵
となるブロック(以下、KEYブロックと呼ぶ)を、戸
籍文書に構成される各項目の相対的な位置関係に検出す
る。まず、ページタイプが「筆頭者タイプ」の場合、ス
テップS1004で、「本籍」というタイトルがついて
いるブロックと、編製された年月日が記載されている欄
の最初の行のブロックと、入籍データ等が記載されてい
る欄の最初の行のブロックと、「父」というタイトルが
ついているブロックをそれぞれKEY0〜3ブロックと
して検出し、各ブロックデータのアドレスを図5に示す
ようなKEYブロックデータ構造体に記憶する。
Once the page type of the family register document has been identified, a block (hereinafter referred to as a KEY block) that is a key for further detailed family register document identification and item identification is configured in the family register document. The relative position of each item is detected. First, in the case where the page type is the "first-person type", in step S1004, the block titled "Main registry", the block in the first row of the column in which the edited date is described, and the registration data The block in the first row of the column in which "etc." and the block with the title "Father" are detected as KEY0 to 3 blocks, and the address of each block data is as shown in FIG. Remember in the body.

【0043】ここで図5に示すKEYブロックデータ構
造体について説明する。図5は本実施の形態のKEYブ
ロックデータ構造体の構成を示す図である。図5におい
て、KEYブロック構造体は、戸籍文書を構成する項目
の識別の鍵となる項目の情報を記憶するものであり、図
に示すような6つのKEY0〜5ブロックが存在する。
そして、ページタイプの種別に応じて検出すべきKEY
ブロックが検出され、その検出されたKEYブロックの
ブロックデータを記憶する。
Now, the KEY block data structure shown in FIG. 5 will be described. FIG. 5 is a diagram showing the configuration of the KEY block data structure of the present embodiment. In FIG. 5, the KEY block structure stores the information of the items that are the key for identifying the items constituting the family register document, and there are six KEY0 to 5 blocks as shown in the figure.
Then, the KEY to be detected according to the type of page type
A block is detected and the block data of the detected KEY block is stored.

【0044】次に、ステップS1005で、検出したK
EY0〜3ブロックを用いて、各KEY0〜3ブロック
と共通する情報を持つ項目毎に、更に詳細に項目を抽出
し、抽出した項目に対し、項目識別IDを設定する。こ
の設定の詳細については、図11のフローチャートを用
いて後述する。一方、ページタイプが「非筆頭者タイ
プ」の場合、ステップS1002で、1人目の入籍デー
タが記載されている欄の最初の行のブロックと、1人目
の「父」というタイトルがついているブロックと、2人
目の入籍データ等が記載されている欄の最初の行のブロ
ックと、2人目の「父」というタイトルがついているブ
ロックをそれぞれKEY2〜5ブロックとして検出し、
その検出されたKEY2〜5ブロックのブロックデータ
をKEYブロック構造体に記憶する。
Next, in step S1005, the detected K
Using the EY0 to 3 blocks, items are extracted in more detail for each item having information common to each of the KEY0 to 3 blocks, and the item identification ID is set for the extracted items. Details of this setting will be described later with reference to the flowchart of FIG. On the other hand, when the page type is the “non-first person type”, in step S1002, the block in the first row of the column in which the enrollment data of the first person is described and the block titled “Father” of the first person The block in the first row of the column where the second person's enrollment data etc. is written and the block with the title "Father" of the second person are detected as KEY2-5 blocks, respectively.
The block data of the detected KEY2 to 5 blocks is stored in the KEY block structure.

【0045】次に、ステップS1003で、検出したK
EY2〜5ブロックを用いて、各KEY2〜5ブロック
と共通する情報を持つ項目毎に、更に詳細に項目を抽出
し、抽出した項目に対し、項目識別IDを設定する。こ
の設定の詳細については、図12のフローチャートを用
いて後述する。まず、ページタイプが「筆頭者タイプ」
の場合の項目識別IDを設定する処理について、図11
のフローチャートを用いて説明する。
Next, in step S1003, the detected K
Using the EY2 to 5 blocks, the item is extracted in more detail for each item having the information common to each of the KEY2 to 5 blocks, and the item identification ID is set for the extracted item. Details of this setting will be described later with reference to the flowchart of FIG. First, the page type is "first-person type"
11 shows the process of setting the item identification ID in the case of
This will be described with reference to the flowchart of.

【0046】図11は本実施の形態のページタイプが
「筆頭者タイプ」の場合の項目識別IDを設定する処理
の処理フローを示すフローチャートである。まず、ステ
ップS1101で、KEY0ブロック(図6の「本籍」
というタイトルがついているブロック)の下にある3つ
の同じ幅を持つブロックに対して、それぞれ項目識別I
Dを設定する。ステップS1102で、KEY1ブロッ
ク(図6の編製事項が記載されている欄の最初の行のブ
ロック)からKEY1ブロックを含めて左に4個のブロ
ックおよびその下にあるブロックは、同じ項目群(編製
事項の欄)とみなせるブロックであるので、これらのブ
ロックに項目識別IDを設定する。
FIG. 11 is a flow chart showing the processing flow of the processing for setting the item identification ID when the page type of this embodiment is the "first person type". First, in step S1101, the KEY0 block (“main registry” in FIG. 6)
For each of the three blocks with the same width under the block labeled
Set D. In step S1102, four blocks to the left including the KEY1 block from the KEY1 block (the block in the first row of the column in which the knitting items are described in FIG. 6) and the blocks below the same block have the same item group (editing). Since the blocks can be regarded as items), item identification IDs are set in these blocks.

【0047】ステップS1103で、KEY2ブロック
(図6の入籍データ等が記載されている欄の最初の行の
ブロック)からKEY2ブロックを含めて左に10個の
ブロックは、同じ項目群(入籍データ等の欄)とみなせ
るブロックであるので、これらのブロックに項目識別I
Dを設定する。ステップS1104で、KEY2ブロッ
クを含む項目群の下にあるブロックは、KEY3ブロッ
ク(図6の「父」というタイトルがついているブロッ
ク)からKEY3ブロックを含めて左にあるKEY3ブ
ロックと同じY1座標を持つブロックが存在し、そのブ
ロック数を計数する。そして、ステップS1105で、
計数されたブロック数に基づいて、KEY2ブロックを
含む項目群の下にあるブロックの項目識別IDを設定す
る。この設定の詳細については、図13のフローチャー
トを用いて後述する。
In step S1103, 10 blocks including the KEY2 block from the KEY2 block (the block in the first row of the column in which the registration data and the like in FIG. 6 are written) have the same item group (enrollment data, etc.). Column), the item identification I
Set D. In step S1104, the block below the item group including the KEY2 block has the same Y1 coordinate as the KEY3 block on the left including the KEY3 block from the KEY3 block (the block titled “father” in FIG. 6). There are blocks, and the number of blocks is counted. Then, in step S1105,
Based on the counted number of blocks, the item identification ID of the block under the item group including the KEY2 block is set. Details of this setting will be described later with reference to the flowchart of FIG.

【0048】次に、ページタイプが「非筆頭者タイプ」
の場合の項目識別IDを設定する処理について、図12
のフローチャートを用いて説明する。図12は本実施の
形態のページタイプが「非筆頭者タイプ」の場合の項目
識別IDを設定する処理の処理フローを示すフローチャ
ートである。まず、ステップS1201で、KEY2ブ
ロック(入籍データ等が記載されている欄の最初の行の
ブロック)からKEY2ブロックを含めて左に9個のブ
ロックは、同じ項目群(入籍データ等の欄)とみなせる
ブロックであるので、これらのブロックに項目識別ID
を設定する。
Next, the page type is "non-first person type"
12 shows the process of setting the item identification ID in the case of
This will be described with reference to the flowchart of. FIG. 12 is a flowchart showing the processing flow of the processing for setting the item identification ID when the page type of the present embodiment is the “non-first person type”. First, in step S1201, nine blocks to the left including the KEY2 block from the KEY2 block (the block in the first row of the column in which the enrollment data etc. are written) have the same item group (entry data etc. column). Since these blocks can be regarded, item identification IDs are added to these blocks.
Set.

【0049】ステップS1202で、KEY4ブロック
(2人目の入籍データ等が記載されている欄の最初の行
のブロック)からKEY4ブロックを含めて左に9個の
ブロックは、同じ項目群(2人目の入籍データ等の欄)
とみなせるブロックであるので、これらのブロックに項
目識別IDを設定する。ステップS1203で、KEY
2ブロックを含む項目群の下にあるブロックは、KEY
3ブロック(「父」というタイトルがついているブロッ
ク)からKEY3ブロックを含めて左にあるKEY3ブ
ロックと同じY1座標を持つブロックが存在し、そのブ
ロック数を計数する。そして、ステップS1204で、
計数されたブロック数に基づいて、KEY2ブロックを
含む項目群の下にあるブロックの項目識別IDを設定す
る。
In step S1202, the nine blocks to the left of the KEY4 block (the block in the first row of the column in which the registration data of the second person is recorded) including the KEY4 block have the same item group (the second one). (Registration data column)
Since these blocks can be regarded as, the item identification IDs are set in these blocks. In step S1203, KEY
The block below the item group including 2 blocks is KEY.
There is a block having the same Y1 coordinate as the KEY3 block on the left from the 3 blocks (the block with the title "Father"), and the number of blocks is counted. Then, in step S1204,
Based on the counted number of blocks, the item identification ID of the block under the item group including the KEY2 block is set.

【0050】ステップS1205で、KEY4ブロック
を含む項目群の下にあるブロックは、KEY5ブロック
(2人目の「父」というタイトルがついているブロッ
ク)からKEY5ブロックを含めて左にあるKEY5ブ
ロックと同じY1座標を持つブロックが存在し、そのブ
ロック数を計数する。そして、ステップS1206で、
計数されたブロック数に基づいて、KEY4ブロックを
含む項目群の下にあるブロックの項目識別IDを設定す
る。
In step S1205, the block below the item group including the KEY4 block is the same as the KEY5 block on the left including the KEY5 block from the KEY5 block (the block with the title "father" of the second person) Y1. There is a block with coordinates, and the number of blocks is counted. Then, in step S1206,
Based on the counted number of blocks, the item identification ID of the block below the item group including the KEY4 block is set.

【0051】次に、入籍データ等の欄の下にあるブロッ
クの項目識別IDを設定する処理の詳細について、図1
3のフローチャートを用いて説明する。図13は本実施
の形態の入籍データ等の欄の下にあるブロックの項目識
別IDを設定する処理の処理フローを示すフローチャー
トである。尚、図13のフローチャートは、図11のフ
ローチャートのステップS1104、図12のフローチ
ャートのステップS1204、ステップS1205で実
行される処理であるが、ここでは図11のフローチャー
トのステップS1104、つまり、ページタイプが「筆
頭者タイプ」の戸籍文書である場合を、例に挙げて説明
する。また、図12のフローチャートのステップS12
04、ステップS1205、つまり、ページタイプが
「非筆頭者タイプ」の戸籍文書である場合については、
同様の処理で実現されるので、ここでは省略する。
Next, the details of the process of setting the item identification ID of the block below the entry data column will be described with reference to FIG.
This will be described with reference to the flowchart of FIG. FIG. 13 is a flowchart showing a processing flow of processing for setting an item identification ID of a block below the entry data etc. column of the present embodiment. Note that the flowchart of FIG. 13 is the processing executed in step S1104 of the flowchart of FIG. 11, step S1204 of the flowchart of FIG. 12, and step S1205, but here, step S1104 of the flowchart of FIG. The case where the document is a family register document of "first person type" will be described as an example. In addition, step S12 of the flowchart of FIG.
04, step S1205, that is, when the page type is a "non-first person type" family register document,
Since it is realized by the same process, it is omitted here.

【0052】まず、ステップS1301で、計数された
ブロック数を判定し、ブロック数が4の場合は、実父母
のみが記載されているタイプ(以下、「実子タイプ」と
呼ぶ)と判定して、ステップS1302に進む。また、
ブロック数が5の場合は、養父あるいは養母のどちらか
一方のみが記載されているタイプ(以下、「養子タイプ
A」と呼ぶ)と判定して、ステップS1305に進む。
更に、ブロック数が6の場合は、養父および養母の両方
が記載されているタイプ(以下、「養子タイプB」と呼
ぶ)と判定して、ステップS1309に進む。
First, in step S1301, the number of blocks counted is determined. If the number of blocks is 4, it is determined that the type is the type in which only real parents are described (hereinafter referred to as "real child type"). It proceeds to step S1302. Also,
When the number of blocks is 5, it is determined that the type is one in which only one of the adoptive father and the adoptive mother is described (hereinafter referred to as “adoptive type A”), and the process proceeds to step S1305.
Further, when the number of blocks is 6, it is determined that both the adopted father and adopted mother are described (hereinafter referred to as “adopted type B”), and the process proceeds to step S1309.

【0053】計数されたブロック数が4の場合、つま
り、「実子タイプ」である場合、ステップS1302
で、KEY3ブロックから左に2番目のブロックの形状
が横長であるか否かを判定する。横長である場合(ステ
ップS1302でYES)、「既婚(夫か妻)タイプ」
と判定して、ステップS1303に進む。一方、横長で
ない場合(ステップS1302でNO)、「未婚タイ
プ」と判定して、ステップS1304に進む。
If the counted number of blocks is 4, that is, if it is the "real child type", step S1302.
Then, it is determined whether or not the shape of the second block to the left of the KEY3 block is horizontally long. If it is horizontally long (YES in step S1302), "married (husband or wife) type"
Then, the process proceeds to step S1303. On the other hand, if it is not horizontally long (NO in step S1302), it is determined to be “unmarried type” and the process proceeds to step S1304.

【0054】ステップS1303では、「実子タイプ」
及び「既婚(夫か妻)タイプ」として、KEY3ブロッ
クとの相対位置関係から項目識別IDを設定する。ま
た、ステップS1304では、「実子タイプ」及び「未
婚タイプ」として、KEY3ブロックとの相対位置関係
から項目識別IDを設定する。計数されたブロック数が
5の場合、つまり、「養子タイプA」である場合、ステ
ップS1305で、KEY3ブロックから左に3番目の
ブロックの形状が横長であるか否かを判定する。横長で
ある場合(ステップS1305でYES)、「既婚(夫
か妻)タイプ」と判定して、ステップS1306に進
む。一方、横長でない場合(ステップS1305でN
O)、「未婚タイプ」と判定して、ステップS1307
に進む。
In step S1303, "real child type"
Also, as the “married (husband or wife) type”, the item identification ID is set from the relative positional relationship with the KEY3 block. In step S1304, the item identification IDs are set as the “real child type” and the “unmarried type” based on the relative positional relationship with the KEY3 block. When the counted number of blocks is 5, that is, when the type is “adoptive type A”, in step S1305, it is determined whether or not the shape of the third block to the left of the KEY3 block is horizontally long. If it is horizontally long (YES in step S1305), it is determined to be “married (husband or wife) type” and the process proceeds to step S1306. On the other hand, if it is not horizontally long (N in step S1305)
O), the unmarried type is determined, and step S1307
Proceed to.

【0055】ステップS1306では、「実子タイプ」
及び「既婚(夫か妻)タイプ」として、KEY3ブロッ
クとの相対位置関係から項目識別IDを設定する。ま
た、ステップS1307では、「実子タイプ」及び「未
婚タイプ」として、KEY3ブロックとの相対位置関係
から項目識別IDを設定する。計数されたブロック数が
6の場合、つまり、「養子タイプB」である場合、ステ
ップS1309で、KEY3ブロックから左に4番目の
ブロックの形状が横長であるか否かを判定する。横長で
ある場合(ステップS1309でYES)、「既婚(夫
か妻)タイプ」と判定して、ステップS910に進む。
一方、横長でない場合(ステップS1309でNO)、
「未婚タイプ」と判定して、ステップS1311に進
む。
In step S1306, "real child type"
Also, as the “married (husband or wife) type”, the item identification ID is set from the relative positional relationship with the KEY3 block. In step S1307, the item identification IDs are set as the “real child type” and the “unmarried type” based on the relative positional relationship with the KEY3 block. When the number of counted blocks is 6, that is, when the block is “adoptive type B”, in step S1309, it is determined whether the shape of the fourth block to the left of the KEY3 block is horizontally long. If it is horizontally long (YES in step S1309), it is determined to be “married (husband or wife) type” and the process proceeds to step S910.
On the other hand, if it is not horizontally long (NO in step S1309),
The type is determined to be "unmarried" and the process proceeds to step S1311.

【0056】ステップS1310では、「実子タイプ」
及び「既婚(夫か妻)タイプ」として、KEY3ブロッ
クとの相対位置関係から項目識別IDを設定する。ま
た、ステップS1311では、「実子タイプ」及び「未
婚タイプ」として、KEY3ブロックとの相対位置関係
から項目識別IDを設定する。以上説明したように、本
実施の形態によれば、戸籍文書に含まれる罫線の構成を
識別することで、罫線抽出処理の処理ミスの有無を判定
することができる。また、罫線抽出処理の処理ミスがあ
る場合でも、その処理ミスを修正することができる。
In step S1310, "real child type"
Also, as the “married (husband or wife) type”, the item identification ID is set from the relative positional relationship with the KEY3 block. In step S1311, the item identification IDs are set as the “real child type” and the “unmarried type” based on the relative positional relationship with the KEY3 block. As described above, according to the present embodiment, the presence or absence of a processing error in the ruled line extraction processing can be determined by identifying the configuration of the ruled lines included in the family register document. Further, even if there is a processing error in the ruled line extraction processing, the processing error can be corrected.

【0057】また、抽出された罫線、あるいは修正済み
の罫線に基づいて、領域分割処理を行うので、領域分割
処理を正確に行うことができる。更に、上述の罫線抽出
処理と、罫線抽出ミス判定処理と、罫線抽出ミス判定結
果表示処理と、ブロック抽出処理と、項目識別処理を設
けて罫線抽出処理のミスの修正を行うことができるよう
にすることにより、ミスの有無の判断が容易になり、操
作性を向上し、処理全体の時間の短縮が図ることができ
る。
Further, since the area dividing process is performed based on the extracted ruled line or the corrected ruled line, the region dividing process can be performed accurately. Further, the ruled line extraction process, the ruled line extraction error determination process, the ruled line extraction error determination result display process, the block extraction process, and the item identification process described above are provided so that the error in the ruled line extraction process can be corrected. By doing so, it is possible to easily determine whether or not there is a mistake, improve operability, and reduce the time required for the entire processing.

【0058】以上の様にして項目ごとに分類されたブロ
ック抽出結果を得ることができる。尚、罫線抽出ミス判
定処理において、罫線抽出ミスが有ると判定された場合
に、罫線抽出ミス判定結果表示処理で、元原稿画像の上
に間違っている可能性のある罫線を、他の罫線と区別し
やすいように、その罫線の色や形状を替えて表示するこ
とも可能である。
As described above, the block extraction result classified by each item can be obtained. If it is determined that there is a ruled line extraction error in the ruled line extraction error determination process, the ruled line extraction error determination result display process determines a ruled line that may be incorrect on the original document image as another ruled line. The colors and shapes of the ruled lines can be changed and displayed for easy distinction.

【0059】尚、上述のステップS208の項目識別処
理の処理結果から、更にステップS207のブロック抽
出処理のミスの有無を判定し、ブロック抽出処理のミス
をオペレータが修正するような処理を更に追加した構成
にすることも可能である。例えば、図2のフローチャー
トのステップS208の項目識別処理の後に、上述の構
成を付加した図14に示されるようなフローチャートに
よって、容易に実現される。
Further, from the processing result of the item identification processing in step S208, it is further determined whether or not there is a mistake in the block extraction processing in step S207, and the operator further corrects the mistake in the block extraction processing. It can be configured. For example, it is easily realized by the flowchart as shown in FIG. 14 in which the above-described configuration is added after the item identification processing in step S208 of the flowchart in FIG.

【0060】図14は本実施の形態の他の構成によって
実行される処理の処理フローを示すフローチャートであ
る。まず、ステップS1401で、原稿画像をスキャナ
101で読み込み2値画像データに変換する。ステップ
S1402で、得られた2値画像データに対して、2値
画像データに含まれる罫線を抽出する罫線抽出処理を行
う。そして、抽出した罫線の座標データ等の情報をブロ
ックデータとして図3のように記憶する。
FIG. 14 is a flow chart showing a processing flow of processing executed by another configuration of the present embodiment. First, in step S1401, the original image is read by the scanner 101 and converted into binary image data. In step S1402, a ruled line extraction process for extracting a ruled line included in the binary image data is performed on the obtained binary image data. Then, information such as the coordinate data of the extracted ruled lines is stored as block data as shown in FIG.

【0061】次に、S1403で、上述のステップS1
402の罫線抽出処理によって得られた罫線に基づい
て、罫線抽出処理のミスの有無を判定する罫線抽出ミス
判定処理を行う。ステップS1404で、罫線抽出ミス
判定処理の処理結果をディスプレイ108に表示する罫
線抽出ミス判定結果表示処理を行う。ステップS140
5で、罫線抽出ミス判定結果表示処理の処理結果より、
罫線抽出処理にミスが有るか否かを判定する。罫線抽出
処理にミスがない場合、正常終了した旨をディスプレイ
108に表示し、ステップS1407に進む。一方、領
域分割処理にミスがある場合、領域分割処理にミスがあ
った旨をディスプレイ108に表示し、領域分割処理の
ミスの修正をオペレータに促し、ステップS1406に
進む。
Next, in S1403, the above-mentioned step S1 is executed.
Based on the ruled line obtained by the ruled line extraction processing of 402, ruled line extraction error determination processing for determining whether there is a mistake in the ruled line extraction processing is performed. In step S1404, ruled line extraction error determination result display processing for displaying the processing result of the ruled line extraction error determination processing on the display 108 is performed. Step S140
In step 5, from the processing result of the ruled line extraction error determination result display processing,
It is determined whether or not there is an error in the ruled line extraction processing. If there is no mistake in the ruled line extraction processing, the fact that the processing has ended normally is displayed on the display 108, and the flow advances to step S1407. On the other hand, if there is a mistake in the area division processing, the fact that the area division processing has an error is displayed on the display 108, the operator is prompted to correct the mistake in the area division processing, and the process proceeds to step S1406.

【0062】ステップS1406で、領域分割判定結果
表示処理によって領域分割処理のミスがあった旨が表示
された後、元原稿画像上に現在のブロックの領域分割状
態が表示される。そして、オペレータは修正対象を拡
大、縮小、移動、削除するか、新しいブロックを作成す
る等の画像処理によって罫線抽出処理の処理結果を修正
する罫線修正修正処理を行う。
In step S1406, after the area division determination result display processing indicates that there is an area division processing error, the area division state of the current block is displayed on the original document image. Then, the operator performs ruled line correction and correction processing for correcting the processing result of the ruled line extraction processing by image processing such as enlarging, reducing, moving, and deleting the correction target, or creating a new block.

【0063】修正した結果は、オペレータがマウス10
3で修正終了ボタンを押す等によって指示することで、
修正された項目に対応するブロックデータが更新された
後、ステップS1407に進む。ステップS1407
で、原稿画像に含まれる罫線に囲まれた領域(項目)を
抽出するブロック抽出処理を行う。そして、抽出した項
目の座標データ等の情報をブロックデータとして図3の
ように記憶する。
The corrected result is displayed by the operator using the mouse 10
By instructing by pressing the correction end button in 3
After the block data corresponding to the corrected item is updated, the process proceeds to step S1407. Step S1407
Then, a block extraction process for extracting an area (item) surrounded by ruled lines included in the original image is performed. Then, information such as coordinate data of the extracted items is stored as block data as shown in FIG.

【0064】次に、ステップS1408で、原稿画像の
項目の構成を示すフォーマット情報からその原稿画像の
項目の構成を分類し、その原稿画像を構成する項目を識
別する項目識別処理を行う。尚、項目識別処理は、図2
のステップS208と同様なので、その詳細は省略す
る。ステップS1409で、上述のステップS1407
のブロック抽出処理によって得られた項目に基づいて、
ブロック抽出処理のミスの有無を判定するブロック抽出
ミス判定処理を行う。
Next, in step S1408, the item configuration of the document image is classified from the format information indicating the configuration of the item of the document image, and the item identification process for identifying the item configuring the document image is performed. The item identification process is shown in FIG.
Since it is the same as step S208 of, the details thereof will be omitted. In step S1409, step S1407 described above.
Based on the items obtained by the block extraction process of
Block extraction error determination processing is performed to determine whether or not there is a block extraction processing error.

【0065】ブロック抽出処理にミスが有ると判定され
るのは、以下に説明されるよう場合である。例えば、原
稿画像に含まれる文字と罫線との重複やノイズ等によっ
て、図15に示されるような罫線1501が罫線抽出処
理によって誤って検出されると、ブロック抽出処理によ
って本来分離して抽出されるべきでないブロックがブロ
ックB1505とブロックB1503のように分離して
抽出されてしまう。この場合、罫線1504等の存在に
よって、この原稿画像は罫線抽出処理で「筆頭者タイ
プ」と判定され、罫線抽出ミス判定処理ではミスがない
と判定されたとする。そして、ブロック抽出処理におい
て、ブロックB1502は幅が高さよりも長いので「筆
頭者タイプ」と判定するが、その下のブロックB150
5の幅が高さよりも長いので、「筆頭者タイプ」と識別
することに矛盾が生じる。その結果、この場合は、ブロ
ック抽出処理のミスとして判定される。
The case where it is determined that there is a mistake in the block extraction processing is in the case described below. For example, when a ruled line 1501 as shown in FIG. 15 is erroneously detected by the ruled line extraction process due to overlapping of characters and ruled lines included in the original image, noise, or the like, the ruled line extraction process is originally separated and extracted by the block extraction process. Blocks that should not be used are separated and extracted like block B1505 and block B1503. In this case, it is assumed that, due to the presence of the ruled lines 1504 and the like, this document image is determined to be the “leader type” in the ruled line extraction processing, and that there is no error in the ruled line extraction error determination processing. Then, in the block extraction processing, the width of the block B1502 is longer than the height, so it is determined to be the "first person type", but the block B150 below it is determined.
Since the width of 5 is longer than the height, there is a contradiction in distinguishing it from the "leader type". As a result, in this case, it is determined as an error in the block extraction processing.

【0066】ステップS1410で、ブロック抽出ミス
判定処理の処理結果をディスプレイ108に表示するブ
ロック抽出ミス判定結果表示処理を行う。ステップS1
411で、ブロック抽出ミス判定結果表示処理の処理結
果より、ブロック抽出処理にミスが有るか否かを判定す
る。ブロック抽出処理にミスがない場合、正常終了した
旨をディスプレイ108に表示する。一方、ブロック抽
出処理にミスがある場合、ブロック抽出処理にミスがあ
った旨をディスプレイ108に表示し、ブロック抽出処
理のミスの修正をオペレータに促し、ステップS141
2に進む。
In step S1410, block extraction error determination result display processing for displaying the processing result of the block extraction error determination processing on the display 108 is performed. Step S1
At 411, it is determined from the processing result of the block extraction error determination result display processing whether or not there is an error in the block extraction processing. If there is no mistake in the block extraction processing, the fact that the processing has ended normally is displayed on the display 108. On the other hand, if there is a mistake in the block extraction process, the fact that there is a mistake in the block extraction process is displayed on the display 108, and the operator is prompted to correct the mistake in the block extraction process.
Proceed to 2.

【0067】ステップS1412で、ブロック抽出ミス
判定結果表示処理によってブロック抽出処理のミスがあ
った旨が表示された後、元原稿画像上に現在の項目のブ
ロック抽出状態が表示される。そして、オペレータは修
正対象を拡大、縮小、移動、削除するか、新しいブロッ
クを作成する等の画像処理によってブロック抽出処理の
処理結果を修正するブロック修正処理を行う。
In step S1412, after the block extraction error determination result display process indicates that there is a block extraction error, the block extraction state of the current item is displayed on the original document image. Then, the operator performs block correction processing for correcting the processing result of the block extraction processing by image processing such as enlarging, reducing, moving, deleting the correction target, or creating a new block.

【0068】修正した結果は、オペレータがマウス10
3で修正終了ボタンを押す等によって指示することで、
修正された項目に対応するブロックデータが更新された
後、ステップS1408で、再度、項目識別処理が実行
される。例えば、ブロック抽出ミス判定結果表示処理に
おいて、ブロック抽出処理にミスがあった旨がディスプ
レイ108に表示されると、元原稿画像(図6の戸籍文
書)の上に処理結果(図15)が表示される。
The corrected result is obtained by the operator using the mouse 10
By instructing by pressing the correction end button in 3
After the block data corresponding to the corrected item is updated, the item identification process is executed again in step S1408. For example, in the block extraction error determination result display process, when a message indicating that there is an error in the block extraction process is displayed on the display 108, the process result (FIG. 15) is displayed on the original document image (family register document of FIG. 6). To be done.

【0069】元原稿画像画像上に現在の処理結果(図1
5)が表示されると、オペレータはその中から、間違っ
て抽出されているブロックB1505を削除し、ブロッ
クB1503を図16に示すようなブロック1602の
ように変形し修正する。そして、オペレータがマウス1
03で修正終了のボタン1603を指示することによっ
て、修正された項目のブロックの内容は対応するブロッ
クデータに更新され、再度、項目識別処理が実行され
る。
The current processing result (see FIG.
When 5) is displayed, the operator deletes the block B1505 that is erroneously extracted from the list, and modifies the block B1503 by transforming it into a block 1602 as shown in FIG. And the operator is mouse 1
When the correction end button 1603 is designated by 03, the contents of the block of the corrected item are updated to the corresponding block data, and the item identification process is executed again.

【0070】そして、項目識別処理の結果からブロック
抽出判定処理を行う。この場合、ブロック抽出処理のミ
スが修正されたので、ブロック抽出判定結果表示処理に
よってディスプレイ108にその旨が表示された後、正
常終了する。また、罫線抽出ミス判定処理で罫線抽出処
理のミスが判定された場合に、罫線修正処理において罫
線を修正する修正処理と、あるいはそのまま修正せずに
ブロック抽出処理を行いブロック修正処理において、罫
線抽出処理のミスを含むブロックを修正する修正処理の
いずれかの修正処理を選択できるような構成にすること
で、より処理時間が短くてすむ修正処理を選択すること
ができる。その結果、より効率よく処理全体を実行する
ことができる。
Then, block extraction determination processing is performed based on the result of the item identification processing. In this case, since the mistake in the block extraction processing has been corrected, after the fact is displayed on the display 108 by the block extraction determination result display processing, the processing ends normally. In addition, when a ruled line extraction error determination process determines a ruled line extraction process error, the ruled line correction process corrects the ruled line, or the block extraction process is performed without correcting the ruled line extraction process. By adopting a configuration in which any one of the correction processes for correcting the block including the processing error can be selected, the correction process that requires a shorter processing time can be selected. As a result, the entire process can be executed more efficiently.

【0071】例えば、図14のフローチャートのステッ
プS1405の後に、上述の構成を付加した図17に示
されるようなフローチャートによって、容易に実現され
る。図17は本実施の形態の他の構成によって実行され
る処理の処理フローを示すフローチャートである。ま
ず、ステップS1701で、原稿画像をスキャナ101
で読み込み2値画像データに変換する。ステップS17
02で、得られた2値画像データに対して、2値画像デ
ータに含まれる罫線を抽出する罫線抽出処理を行う。そ
して、抽出した罫線の座標データ等の情報をブロックデ
ータとして図3のように記憶する。
For example, after the step S1405 of the flowchart of FIG. 14, it is easily realized by the flowchart shown in FIG. 17 in which the above-mentioned configuration is added. FIG. 17 is a flow chart showing a processing flow of processing executed by another configuration of the present embodiment. First, in step S1701, the original image is scanned by the scanner 101.
Read and convert to binary image data. Step S17
In 02, a ruled line extraction process for extracting a ruled line included in the binary image data is performed on the obtained binary image data. Then, information such as the coordinate data of the extracted ruled lines is stored as block data as shown in FIG.

【0072】次に、S1703で、上述のステップS1
702の罫線抽出処理によって得られた罫線に基づい
て、罫線抽出処理のミスの有無を判定する罫線抽出ミス
判定処理を行う。ステップS1704で、罫線抽出ミス
判定処理の処理結果をディスプレイ108に表示する罫
線抽出ミス判定結果表示処理を行う。ステップS170
5で、罫線抽出ミス判定結果表示処理の処理結果より、
罫線抽出処理にミスが有るか否かを判定する。罫線抽出
処理にミスがない場合、正常終了した旨をディスプレイ
108に表示し、ステップS1709に進む。一方、領
域分割処理にミスがある場合、領域分割処理にミスがあ
った旨をディスプレイ108に表示し、ステップS17
07に進む。
Next, in S1703, the above-mentioned step S1 is executed.
Based on the ruled line obtained by the ruled line extraction process 702, a ruled line extraction error determination process for determining whether there is a mistake in the ruled line extraction process is performed. In step S1704, ruled line extraction error determination result display processing for displaying the processing result of the ruled line extraction error determination processing on the display 108 is performed. Step S170
In step 5, from the processing result of the ruled line extraction error determination result display processing,
It is determined whether or not there is an error in the ruled line extraction processing. If there is no mistake in the ruled line extraction processing, the fact that the processing has ended normally is displayed on the display 108, and the flow advances to step S1709. On the other hand, if there is a mistake in the area division processing, the fact that there is a mistake in the area division processing is displayed on the display 108, and step S17
Proceed to 07.

【0073】ステップS1707で、領域分割処理のミ
スの修正を行うか否かをオペレータに促す修正選択処理
を行う。修正を行う場合、ステップS1708に進む。
一方、修正を行わず処理を続行する場合、ステップS1
709に進む。ステップS1708で、領域分割判定結
果表示処理によって領域分割処理のミスがあった旨が表
示された後、元原稿画像上に現在のブロックの領域分割
状態が表示される。そして、オペレータは修正対象を拡
大、縮小、移動、削除するか、新しいブロックを作成す
る等の画像処理によって罫線抽出処理の処理結果を修正
する罫線修正修正処理を行う。
In step S1707, a correction selection process is performed which prompts the operator to correct the mistake in the area division process. When making a correction, the process advances to step S1708.
On the other hand, if the process is to be continued without correction, step S1
Proceed to 709. In step S1708, after the area division determination result display processing indicates that there is an area division error, the area division state of the current block is displayed on the original document image. Then, the operator performs ruled line correction and correction processing for correcting the processing result of the ruled line extraction processing by image processing such as enlarging, reducing, moving, and deleting the correction target, or creating a new block.

【0074】修正した結果は、オペレータがマウス10
3で修正終了ボタンを押す等によって指示することで、
修正された項目に対応するブロックデータが更新された
後、ステップS1709に進む。ステップS1709
で、原稿画像に含まれる罫線に囲まれた領域(項目)を
抽出するブロック抽出処理を行う。そして、抽出した項
目の座標データ等の情報をブロックデータとして図3の
ように記憶する。
The corrected result is displayed by the operator using the mouse 10
By instructing by pressing the correction end button in 3
After the block data corresponding to the corrected item is updated, the process proceeds to step S1709. Step S1709
Then, a block extraction process for extracting an area (item) surrounded by ruled lines included in the original image is performed. Then, information such as coordinate data of the extracted items is stored as block data as shown in FIG.

【0075】次に、ステップS1711で、原稿画像の
項目の構成を示すフォーマット情報からその原稿画像の
項目の構成を分類し、その原稿画像を構成する項目を識
別する項目識別処理を行う。尚、項目識別処理は、図2
のステップS208と同様なので、その詳細は省略す
る。ステップS1712で、上述のステップS1709
のブロック抽出処理によって得られた項目に基づいて、
ブロック抽出処理のミスの有無を判定するブロック抽出
ミス判定処理を行う。
Next, in step S1711, the item configuration of the document image is classified from the format information indicating the configuration of the item of the document image, and the item identification process for identifying the item configuring the document image is performed. The item identification process is shown in FIG.
Since it is the same as step S208 of, the details thereof will be omitted. In step S1712, the above step S1709.
Based on the items obtained by the block extraction process of
Block extraction error determination processing is performed to determine whether or not there is a block extraction processing error.

【0076】ステップS1713で、ブロック抽出ミス
判定処理の処理結果をディスプレイ108に表示するブ
ロック抽出ミス判定結果表示処理を行う。ステップS1
714で、ブロック抽出ミス判定結果表示処理の処理結
果より、ブロック抽出処理にミスが有るか否かを判定す
る。ブロック抽出処理にミスがない場合、正常終了した
旨をディスプレイ108に表示する。一方、ブロック抽
出処理にミスがある場合、ブロック抽出処理にミスがあ
った旨をディスプレイ108に表示し、ブロック抽出処
理のミスの修正をオペレータに促し、ステップS171
0に進む。
In step S1713, a block extraction error determination result display process for displaying the processing result of the block extraction error determination process on the display 108 is performed. Step S1
At 714, it is determined from the processing result of the block extraction error determination result display processing whether or not there is an error in the block extraction processing. If there is no mistake in the block extraction processing, the fact that the processing has ended normally is displayed on the display 108. On the other hand, if there is a mistake in the block extraction process, the fact that there is a mistake in the block extraction process is displayed on the display 108, and the operator is prompted to correct the mistake in the block extraction process.
Go to 0.

【0077】ステップS1710で、ブロック抽出ミス
判定結果表示処理によってブロック抽出処理のミスがあ
った旨が表示された後、元原稿画像上に現在の項目のブ
ロック抽出状態が表示される。そして、オペレータは修
正対象を拡大、縮小、移動、削除するか、新しいブロッ
クを作成する等の画像処理によってブロック抽出処理の
処理結果を修正するブロック修正処理を行う。
In step S1710, after the block extraction error determination result display process indicates that there is a block extraction error, the block extraction state of the current item is displayed on the original document image. Then, the operator performs block correction processing for correcting the processing result of the block extraction processing by image processing such as enlarging, reducing, moving, deleting the correction target, or creating a new block.

【0078】修正した結果は、オペレータがマウス10
3で修正終了ボタンを押す等によって指示することで、
修正された項目に対応するブロックデータが更新された
後、ステップS1711で、再度、項目識別処理が実行
される。そして、項目識別処理の結果からブロック抽出
判定処理を行う。この場合、ブロック抽出処理のミスが
修正されたので、ブロック抽出判定結果表示処理によっ
てディスプレイ108にその旨が表示された後、正常終
了する。
The corrected result is obtained by the operator using the mouse 10
By instructing by pressing the correction end button in 3
After the block data corresponding to the corrected item is updated, the item identification process is executed again in step S1711. Then, the block extraction determination process is performed based on the result of the item identification process. In this case, since the mistake in the block extraction processing has been corrected, after the fact is displayed on the display 108 by the block extraction determination result display processing, the processing ends normally.

【0079】尚、本発明は、複数の機器(例えばホスト
コンピュータ、インタフェース機器、リーダ、プリンタ
等)から構成されるシステムに適用しても、一つの機器
からなる装置(例えば、複写機、ファクシミリ装置等)
に適用してもよい。また、本発明の目的は、前述した実
施形態の機能を実現するソフトウェアのプログラムコー
ドを記録した記憶媒体を、システムあるいは装置に供給
し、そのシステムあるいは装置のコンピュータ(または
CPUやMPU)が記憶媒体に格納されたプログラムコ
ードを読出し実行することによっても、達成されること
は言うまでもない。
Even when the present invention is applied to a system composed of a plurality of devices (eg, host computer, interface device, reader, printer, etc.), a device composed of one device (eg, copying machine, facsimile device). etc)
May be applied. Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the program.

【0080】この場合、記憶媒体から読出されたプログ
ラムコード自体が上述した実施の形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。プログラムコードを供
給するための記憶媒体としては、例えば、フロッピディ
スク、ハードディスク、光ディスク、光磁気ディスク、
CD−ROM、CD−R、磁気テープ、不揮発性のメモ
リカード、ROMなどを用いることができる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk,
A CD-ROM, a CD-R, a magnetic tape, a non-volatile memory card, a ROM or the like can be used.

【0081】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施の形態の機能
が実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

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

【0083】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図18あるいは図19のメモリマップ例に示
す各モジュールを記憶媒体に格納することになる。すな
わち、図18では、少なくとも「記憶モジュール」、
「抽出モジュール」、「判定モジュール」および「報知
モジュール」の各モジュールのプログラムコードを記憶
媒体に格納すればよい。
When the present invention is applied to the above-mentioned storage medium, the storage medium stores the program code corresponding to the above-mentioned flowchart. Briefly, the memory shown in FIG. 18 or FIG. Each module shown in the map example will be stored in the storage medium. That is, in FIG. 18, at least a “storage module”,
The program code of each of the “extraction module”, the “determination module”, and the “notification module” may be stored in the storage medium.

【0084】尚、「記憶モジュール」は、所定のフォー
マットに関するフォーマット情報を記憶する。「抽出モ
ジュール」は、所定のフォーマットを有する原稿画像に
含まれる罫線を抽出する。「判定モジュール」は、フォ
ーマット情報に基づいて、抽出結果の正否を判定する。
「報知モジュール」は、判定結果に基づいて、報知す
る。
The "storage module" stores format information regarding a predetermined format. The “extraction module” extracts ruled lines included in a document image having a predetermined format. The "judgment module" judges whether the extraction result is correct based on the format information.
The "notification module" notifies based on the determination result.

【0085】また、図19では、少なくとも「記憶モジ
ュール」、「抽出モジュール」、「識別モジュール」、
「判定モジュール」および「報知モジュール」の各モジ
ュールのプログラムコードを記憶媒体に格納すればよ
い。尚、「記憶モジュール」は、複数種類の所定のフォ
ーマットを有する原稿画像に関するそれぞれのフォーマ
ット情報を記憶する。「抽出モジュール」は、所定のフ
ォーマットを有する原稿画像に含まれる罫線を抽出す
る。「識別モジュール」は、抽出される罫線の特徴に基
づいて、所定のフォーマットを有する原稿画像の種類を
識別する。「判定モジュール」は、識別された種類に対
応する所定のフォーマットを有する原稿画像のフォーマ
ット情報に基づいて、抽出結果の正否を判定する判定。
「報知モジュール」は、判定結果に基づいて、報知す
る。
Further, in FIG. 19, at least "storage module", "extraction module", "identification module",
The program code of each of the “determination module” and the “notification module” may be stored in the storage medium. The "storage module" stores each format information regarding a document image having a plurality of types of predetermined formats. The “extraction module” extracts ruled lines included in a document image having a predetermined format. The "identification module" identifies the type of document image having a predetermined format based on the characteristics of the extracted ruled lines. The “judgment module” judges whether the extraction result is correct or not based on the format information of the document image having a predetermined format corresponding to the identified type.
The "notification module" notifies based on the determination result.

【0086】[0086]

【発明の効果】以上の説明からも明らかなように、本発
明によれば、領域分割処理で生じる処理ミスの有無を容
易に判断することができ、かつ、処理ミスがある場合に
その処理ミスを容易に修正することができる画像処理装
置及びその方法を提供できる。また、原稿画像に含まれ
る罫線を抽出する罫線抽出処理で生じる処理ミスを修正
することで、常に正確な罫線を抽出が可能とし、更に、
抽出された罫線に基づいて、領域分割処理を行うこと
で、領域分割処理で生じる処理ミスを軽減する画像処理
装置及びその方法を提供することを目的としている。
As is apparent from the above description, according to the present invention, it is possible to easily determine whether or not there is a processing error that occurs in the area division processing, and if there is a processing error, the processing error. It is possible to provide an image processing apparatus and method capable of easily modifying the image processing apparatus. In addition, by correcting the processing error that occurs in the ruled line extraction processing that extracts the ruled lines included in the original image, it is possible to always extract accurate ruled lines.
An object of the present invention is to provide an image processing apparatus and a method thereof that reduce a processing error caused by the area division processing by performing the area division processing based on the extracted ruled lines.

【0087】また、領域分割処理における操作の作業効
率を向上する画像処理装置及びその方法を提供できる。
Further, it is possible to provide an image processing apparatus and method for improving the work efficiency of the operation in the area division processing.

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

【図1】本実施の形態の画像処理装置の機能構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a functional configuration of an image processing apparatus according to this embodiment.

【図2】本実施の形態で実行される処理の処理フローを
示すフローチャートである。
FIG. 2 is a flowchart showing a processing flow of processing executed in this embodiment.

【図3】本実施の形態のブロックデータの構成を示す図
である。
FIG. 3 is a diagram showing a configuration of block data according to the present embodiment.

【図4】本実施の形態の項目識別IDの構成を示すであ
る。
FIG. 4 shows a structure of an item identification ID according to the present embodiment.

【図5】本実施の形態のKEYブロックデータ構造体の
構成を示す図である。
FIG. 5 is a diagram showing a configuration of a KEY block data structure according to the present embodiment.

【図6】本実施の形態の原稿画像の例を示す図である。FIG. 6 is a diagram showing an example of a document image according to the present embodiment.

【図7】本実施の形態の原稿画像に対して実行した罫線
抽出処理の処理結果を示す図である。
FIG. 7 is a diagram showing a processing result of ruled line extraction processing executed on a document image according to the present embodiment.

【図8】本実施の形態の原稿画像に対して実行した罫線
抽出処理にミスがあった時の処理結果を示す図である。
FIG. 8 is a diagram showing a processing result when there is an error in the ruled line extraction processing executed for the document image of the present embodiment.

【図9】本実施の形態の原稿画像に対して実行した罫線
抽出処理にミスがあった時の処理結果を修正する処理を
示す図である。
FIG. 9 is a diagram showing a process of correcting a process result when there is an error in the ruled line extraction process executed on the document image of the present embodiment.

【図10】本実施の形態の項目識別処理の詳細な処理フ
ローを示すフローチャートである。
FIG. 10 is a flowchart showing a detailed processing flow of item identification processing according to the present embodiment.

【図11】本実施の形態のページタイプが「筆頭者タイ
プ」の場合の項目識別IDを設定する処理の処理フロー
を示すフローチャートである。
FIG. 11 is a flowchart showing a processing flow of processing for setting an item identification ID when the page type of the present embodiment is “first person type”.

【図12】本実施の形態のページタイプが「非筆頭者タ
イプ」の場合の項目識別IDを設定する処理の処理フロ
ーを示すフローチャートである。
FIG. 12 is a flowchart showing a processing flow of processing for setting an item identification ID when the page type of the present embodiment is “non-first person type”.

【図13】本実施の形態の入籍データ等の欄の下にある
ブロックに項目識別IDを設定する処理の処理フローを
示すフローチャートである。
FIG. 13 is a flowchart showing a processing flow of processing of setting an item identification ID in a block below a field of enrollment data and the like according to the present embodiment.

【図14】本実施の形態の他の構成によって実行される
処理の処理フローを示すフローチャートである。
FIG. 14 is a flowchart showing a processing flow of processing executed by another configuration of the present embodiment.

【図15】本実施の形態の原稿画像に対して実行したブ
ロック抽出処理にミスがあった時の処理結果を示す図で
ある。
FIG. 15 is a diagram showing a processing result when there is an error in the block extraction processing executed for the document image of the present embodiment.

【図16】本実施の形態の原稿画像に対して実行したブ
ロック抽出処理にミスがあった時の処理結果を修正する
処理を示す図である。
FIG. 16 is a diagram showing processing for correcting the processing result when there is an error in the block extraction processing executed for the original image according to the present embodiment.

【図17】本実施の形態の他の構成によって実行される
処理の処理フローを示すフローチャートである。
FIG. 17 is a flowchart showing a processing flow of processing executed by another configuration of the present embodiment.

【図18】本発明で実行される処理フローのプログラム
を記憶させたFDのメモリマップの構造を示す図であ
る。
FIG. 18 is a diagram showing a structure of a memory map of an FD in which a program of a processing flow executed in the present invention is stored.

【図19】本発明で実行される処理フローのプログラム
を記憶させたFDのメモリマップの構造を示す図であ
る。
FIG. 19 is a diagram showing a structure of a memory map of an FD in which a program of a processing flow executed in the present invention is stored.

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

101 スキャナ 102 スキャナインタフェース 103 マウス 104 マウスインタフェース 105 CPU 106 ROM 107 RAM 108 ディスプレイ 109 ディスプレイインタフェース 110 FDD 111 FDDインタフェース 112 バス 113 KBインタフェース 114 KB 101 Scanner 102 Scanner Interface 103 Mouse 104 Mouse Interface 105 CPU 106 ROM 107 RAM 108 Display 109 Display Interface 110 FDD 111 FDD Interface 112 Bus 113 KB Interface 114 KB

Claims (28)

【特許請求の範囲】[Claims] 【請求項1】 所定のフォーマットを有する原稿画像に
含まれる罫線を抽出する画像処理装置であって、 前記所定のフォーマットに関するフォーマット情報を記
憶する記憶手段と、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出手段と、 前記フォーマット情報に基づいて、前記抽出手段による
抽出結果の正否を判定する判定手段と、 前記判定手段の判定結果に基づいて、報知する報知手段
とを備えることを特徴とする画像処理装置。
1. An image processing apparatus for extracting ruled lines included in a document image having a predetermined format, comprising: storage means for storing format information relating to the predetermined format, and a storage unit included in the document image having the predetermined format. Extraction means for extracting a ruled line to be extracted, determination means for determining whether the extraction result by the extraction means is correct based on the format information, and notification means for notifying based on the determination result of the determination means. A characteristic image processing device.
【請求項2】 所定のフォーマットを有する原稿画像に
含まれる罫線を抽出する画像処理装置であって、 複数種類の所定のフォーマットを有する原稿画像に関す
るそれぞれのフォーマット情報を記憶する記憶手段と、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出手段と、 前記抽出手段で抽出される罫線の特徴に基づいて、前記
所定のフォーマットを有する原稿画像の種類を識別する
識別手段と、 前記識別手段で識別された種類に対応する所定のフォー
マットを有する原稿画像のフォーマット情報に基づい
て、前記抽出手段による抽出結果の正否を判定する判定
手段と、 前記判定手段の判定結果に基づいて、報知する報知手段
とを備えることを特徴とする画像処理装置。
2. An image processing apparatus for extracting ruled lines included in a document image having a predetermined format, comprising: storage means for storing respective format information relating to a plurality of types of document images having a predetermined format; Extracting means for extracting a ruled line included in a document image having the format, identifying means for identifying the type of the document image having the predetermined format based on the feature of the ruled line extracted by the extracting means, and the identifying Determination means for determining whether the extraction result by the extraction means is correct based on the format information of the document image having a predetermined format corresponding to the type identified by the determination means, and to notify based on the determination result of the determination means An image processing apparatus comprising: a notification unit.
【請求項3】 前記判定手段の判定の結果、前記抽出手
段による抽出結果が正である場合、該抽出結果に基づい
て、前記所定のフォーマットを有する原稿画像を複数の
領域に分割する分割手段を更に備えることを特徴とする
請求項1又は請求項2に記載の画像処理装置。
3. If the result of the determination by the determining means is that the extraction result by the extracting means is positive, a dividing means for dividing the original image having the predetermined format into a plurality of areas based on the extraction result is provided. The image processing device according to claim 1, further comprising:
【請求項4】 前記判定手段の判定の結果、前記抽出手
段による抽出結果に否がある場合、該抽出結果の否を修
正する修正手段を更に備えることを特徴とする請求項1
又は請求項2に記載の画像処理装置。
4. If the result of the determination made by the determination means indicates that the extraction result by the extraction means is negative, a correction means for correcting the extraction result is further provided.
Alternatively, the image processing apparatus according to claim 2.
【請求項5】 前記修正手段による修正を行うか否かを
指示する指示手段を更に備えることを特徴とする請求項
4に記載の画像処理装置。
5. The image processing apparatus according to claim 4, further comprising instruction means for instructing whether or not to make a correction by the correction means.
【請求項6】 前記分割手段は、前記修正手段で修正さ
れた抽出結果に基づいて、前記所定のフォーマットを有
する原稿画像を複数の領域に分割することを特徴とする
請求項5に記載の画像処理装置。
6. The image according to claim 5, wherein the dividing unit divides the original image having the predetermined format into a plurality of areas based on the extraction result corrected by the correcting unit. Processing equipment.
【請求項7】 前記報知手段は、前記判定手段による判
定結果を表示することを特徴とする請求項1又は請求項
2に記載の画像処理装置。
7. The image processing apparatus according to claim 1, wherein the notification unit displays a determination result of the determination unit.
【請求項8】 前記報知手段は、前記判定手段による判
定結果を音を用いて報知することを特徴とする請求項1
又は請求項2に記載の画像処理装置。
8. The informing means informs the determination result of the determining means using a sound.
Alternatively, the image processing apparatus according to claim 2.
【請求項9】 前記判定手段の判定の結果、前記抽出手
段による抽出結果に否がある場合、抽出結果に否が生じ
た可能性のある領域を、抽出結果に否が生じていない領
域と区別して表示する表示手段を更に備えることを特徴
とする請求項1又は請求項2に記載の画像処理装置。
9. If the result of the determination by the determination means indicates that the extraction result by the extraction means is negative, the area that may have failed in the extraction result is separated from the area in which the extraction result has not failed. The image processing apparatus according to claim 1, further comprising display means for displaying separately.
【請求項10】 前記フォーマット情報に基づいて、前
記分割手段による分割結果の正否を判定する判定手段を
更に備えることを特徴とする請求項1又は請求項2に記
載の画像処理装置。
10. The image processing apparatus according to claim 1, further comprising a determination unit that determines whether or not the division result by the division unit is correct based on the format information.
【請求項11】 前記判定手段の判定の結果、前記分割
手段による分割結果に否がある場合、該分割結果の否を
修正する修正手段を更に備えることを特徴とする請求項
10に記載の画像処理装置。
11. The image according to claim 10, further comprising a correction unit that corrects the result of the division when the result of the determination by the determination unit indicates that the result of the division by the dividing unit is negative. Processing equipment.
【請求項12】 前記判定手段の判定の結果、前記分割
手段による分割結果の正否を表示する表示手段を更に備
えることを特徴とする請求項10に記載の画像処理装
置。
12. The image processing apparatus according to claim 10, further comprising display means for displaying whether the result of the determination made by the determination means is correct or not.
【請求項13】 前記判定手段の判定の結果、前記分割
手段による分割結果に否がある場合、その旨を報知する
報知手段を更に備えることを特徴とする請求項10に記
載の画像処理装置。
13. The image processing apparatus according to claim 10, further comprising a notifying unit for notifying that the result of the determination made by the determining unit indicates that the result of the division by the dividing unit is negative.
【請求項14】 所定のフォーマットを有する原稿画像
に含まれる罫線を抽出する画像処理方法であって、 前記所定のフォーマットに関するフォーマット情報を記
憶媒体に記憶する記憶工程と、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出工程と、 前記フォーマット情報に基づいて、前記抽出工程による
抽出結果の正否を判定する判定工程と、 前記判定手段の判定結果に基づいて、報知する報知工程
とを備えることを特徴とする画像処理方法。
14. An image processing method for extracting a ruled line included in an original image having a predetermined format, comprising a storage step of storing format information regarding the predetermined format in a storage medium, and an original having the predetermined format. An extraction step of extracting ruled lines included in the image, a determination step of determining whether the extraction result by the extraction step is correct based on the format information, and a notification step of notifying based on the determination result of the determination means. An image processing method comprising:
【請求項15】 所定のフォーマットを有する原稿画像
に含まれる罫線を抽出する画像処理方法であって、 複数種類の所定のフォーマットを有する原稿画像に関す
るそれぞれのフォーマット情報を記憶媒体に記憶する記
憶工程と、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出工程と、 前記抽出工程で抽出される罫線の特徴に基づいて、前記
所定のフォーマットを有する原稿画像の種類を識別する
識別工程と、 前記識別工程で識別された種類に対応する所定のフォー
マットを有する原稿画像のフォーマット情報に基づい
て、前記抽出工程による抽出結果の正否を判定する判定
工程と、 前記判定工程の判定結果に基づいて、報知する報知工程
とを備えることを特徴とする画像処理方法。
15. An image processing method for extracting ruled lines included in a document image having a predetermined format, comprising a storage step of storing respective format information regarding a plurality of types of document images having a predetermined format in a storage medium. An extracting step of extracting a ruled line included in the document image having the predetermined format, and an identifying step of identifying the type of the document image having the predetermined format based on the feature of the ruled line extracted in the extracting step. A determination step of determining whether the extraction result by the extraction step is correct, based on format information of a document image having a predetermined format corresponding to the type identified in the identification step, and based on the determination result of the determination step. And an informing step of informing.
【請求項16】 前記判定工程の判定の結果、前記抽出
工程による抽出結果が正である場合、該抽出結果に基づ
いて、前記所定のフォーマットを有する原稿画像を複数
の領域に分割する分割工程を更に備えることを特徴とす
る請求項14又は請求項15に記載の画像処理方法。
16. If the result of the determination in the determination step is that the extraction result of the extraction step is positive, a division step of dividing the original image having the predetermined format into a plurality of areas based on the extraction result is performed. The image processing method according to claim 14 or 15, further comprising:
【請求項17】 前記判定工程の判定の結果、前記抽出
工程による抽出結果に否がある場合、該抽出結果の否を
修正する修正工程を更に備えることを特徴とする請求項
14又は請求項15に記載の画像処理方法。
17. The method according to claim 14 or 15, further comprising a correction step of correcting the extraction result if the extraction result of the extraction step is negative as a result of the determination in the determination step. The image processing method described in.
【請求項18】 前記修正工程による修正を行うか否か
を指示する指示工程を更に備えることを特徴とする請求
項17に記載の画像処理方法。
18. The image processing method according to claim 17, further comprising an instructing step of instructing whether or not to perform the correction by the correction step.
【請求項19】 前記分割工程は、前記修正工程で修正
された抽出結果に基づいて、前記所定のフォーマットを
有する原稿画像を複数の領域に分割することを特徴とす
る請求項18に記載の画像処理方法。
19. The image according to claim 18, wherein the dividing step divides the original image having the predetermined format into a plurality of areas based on the extraction result corrected by the correcting step. Processing method.
【請求項20】 前記報知工程は、前記判定工程による
判定結果を表示することを特徴とする請求項14又は請
求項15に記載の画像処理方法。
20. The image processing method according to claim 14, wherein the notification step displays a determination result of the determination step.
【請求項21】 前記報知工程は、前記判定工程による
判定結果を音を用いて報知することを特徴とする請求項
14又は請求項15に記載の画像処理方法。
21. The image processing method according to claim 14, wherein the notifying step notifies the determination result of the determining step using sound.
【請求項22】 前記判定工程の判定の結果、前記抽出
工程による抽出結果に否がある場合、抽出結果に否が生
じた可能性のある領域を、抽出結果に否が生じていない
領域と区別して表示する表示工程を更に備えることを特
徴とする請求項14又は請求項15に記載の画像処理方
法。
22. As a result of the judgment in the judgment step, if the extraction result of the extraction step is negative, the area that may have failed in the extraction result is separated from the area that has not failed in the extraction result. The image processing method according to claim 14 or 15, further comprising a display step of displaying separately.
【請求項23】 前記フォーマット情報に基づいて、前
記分割工程による分割結果の正否を判定する判定工程を
更に備えることを特徴とする請求項14又は請求項15
に記載の画像処理方法。
23. The method according to claim 14, further comprising a determination step of determining whether or not the division result by the division step is correct based on the format information.
The image processing method according to 1.
【請求項24】 前記判定工程の判定の結果、前記分割
工程による分割結果に否がある場合、該分割結果の否を
修正する修正工程を更に備えることを特徴とする請求項
23に記載の画像処理方法。
24. The image according to claim 23, further comprising a correction step of correcting the result of the division when the result of the determination in the determination step indicates that the result of the division by the division step is negative. Processing method.
【請求項25】 前記判定工程の判定の結果、前記分割
工程による分割結果の正否を表示する表示工程を更に備
えることを特徴とする請求項23に記載の画像処理方
法。
25. The image processing method according to claim 23, further comprising a display step of displaying, as a result of the determination in the determination step, whether or not the division result by the division step is correct.
【請求項26】 前記判定工程の判定の結果、前記分割
工程による分割結果に否がある場合、その旨を報知する
報知工程を更に備えることを特徴とする請求項23に記
載の画像処理方法。
26. The image processing method according to claim 23, further comprising a notifying step of notifying, when the result of the determination in the determination step shows that the division result by the division step is negative.
【請求項27】 画像処理のプログラムコードが格納さ
れたコンピュータ可読メモリであって、 前記所定のフォーマットに関するフォーマット情報を記
憶媒体に記憶する記憶工程のコードと、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出工程のコードと、 前記フォーマット情報に基づいて、前記抽出工程による
抽出結果の正否を判定する判定工程のコードと、 前記判定手段の判定結果に基づいて、報知する報知工程
のコードとを備えることを特徴とするコンピュータ可読
メモリ。
27. A computer-readable memory in which a program code for image processing is stored, including a code of a storage step of storing format information regarding the predetermined format in a storage medium, and an original image having the predetermined format. A code of an extraction step for extracting a ruled line to be extracted, a code of a determination step of determining whether the extraction result by the extraction step is correct based on the format information, and a notification step of informing based on the determination result of the determination means. A computer-readable memory comprising: a code.
【請求項28】 画像処理のプログラムコードが格納さ
れたコンピュータ可読メモリであって、 複数種類の所定のフォーマットを有する原稿画像に関す
るそれぞれのフォーマット情報を記憶媒体に記憶する記
憶工程のコードと、 前記所定のフォーマットを有する原稿画像に含まれる罫
線を抽出する抽出工程のコードと、 前記抽出工程で抽出される罫線の特徴に基づいて、前記
所定のフォーマットを有する原稿画像の種類を識別する
識別工程のコードと、 前記識別工程で識別された種類に対応する所定のフォー
マットを有する原稿画像のフォーマット情報に基づい
て、前記抽出工程による抽出結果の正否を判定する判定
工程のコードと、 前記判定工程の判定結果に基づいて、報知する報知工程
のコードとを備えることを特徴とするコンピュータ可読
メモリ。
28. A computer-readable memory storing a program code for image processing, the code of a storage step of storing format information on a document image having a plurality of types of predetermined formats in a storage medium; The code of the extraction step for extracting the ruled lines included in the original image having the format, and the code of the identification step for identifying the type of the original image having the predetermined format based on the characteristics of the ruled lines extracted in the extraction step And a code of a determination step of determining the correctness of the extraction result by the extraction step, based on the format information of the document image having a predetermined format corresponding to the type identified in the identification step, and the determination result of the determination step And a code of an informing step for informing the computer. Readable memory.
JP1004596A 1996-01-23 1996-01-24 Image processing apparatus and method Expired - Fee Related JP3581471B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1004596A JP3581471B2 (en) 1996-01-24 1996-01-24 Image processing apparatus and method
US08/786,913 US6201894B1 (en) 1996-01-23 1997-01-22 Method and apparatus for extracting ruled lines or region surrounding ruled lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1004596A JP3581471B2 (en) 1996-01-24 1996-01-24 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH09204419A true JPH09204419A (en) 1997-08-05
JP3581471B2 JP3581471B2 (en) 2004-10-27

Family

ID=11739432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1004596A Expired - Fee Related JP3581471B2 (en) 1996-01-23 1996-01-24 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3581471B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954550B2 (en) 2000-11-29 2005-10-11 Omron Corporation Image processing method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954550B2 (en) 2000-11-29 2005-10-11 Omron Corporation Image processing method and apparatus

Also Published As

Publication number Publication date
JP3581471B2 (en) 2004-10-27

Similar Documents

Publication Publication Date Title
US6411731B1 (en) Template-based image recognition and extraction
US8422796B2 (en) Image processing device
US6201894B1 (en) Method and apparatus for extracting ruled lines or region surrounding ruled lines
US8819545B2 (en) Digital comic editor, method and non-transitory computer-readable medium
US20130326341A1 (en) Digital comic editor, method and non-transitorycomputer-readable medium
JP5439455B2 (en) Electronic comic editing apparatus, method and program
JPH11259655A (en) Method and device for processing image
JP4785655B2 (en) Document processing apparatus and document processing method
US20080253660A1 (en) Image processing apparatus and method for controlling the same
JPH11306197A (en) Processor and method for image processing, and computer-readable memory
CN113378839A (en) Information processing apparatus, information processing method, and computer readable medium
JP2006221569A (en) Document processing system, document processing method, program, and storage medium
US8355577B2 (en) Image processing apparatus and method
EP1202213A2 (en) Document format identification apparatus and method
JPH09204419A (en) Device and method for processing image
US8059138B2 (en) Image processing and arranging system, image processing and arranging method, and computer readable medium for image processing and arranging
JP3554097B2 (en) Image processing apparatus and method
JPH11110479A (en) Method and device for processing characters and storage medium
JP5673277B2 (en) Image processing apparatus and program
JP6030915B2 (en) Image rearrangement method, image rearrangement system, and image rearrangement program
JP3412999B2 (en) Image processing apparatus and method
JP3412998B2 (en) Image processing apparatus and method
JP2002109470A (en) Image recognition device, image recognition method, and computer readable recording medium stored with image recognition program
JP2002049890A (en) Device and method for recognizing picture and computer- readable recording medium where picture recognizing program is recorded
US8473856B2 (en) Information processing apparatus, information processing method, and information processing program

Legal Events

Date Code Title Description
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: 20040705

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040723

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees