JP2000339407A - Picture processor, picture processing method and computer readable storage medium - Google Patents

Picture processor, picture processing method and computer readable storage medium

Info

Publication number
JP2000339407A
JP2000339407A JP11150005A JP15000599A JP2000339407A JP 2000339407 A JP2000339407 A JP 2000339407A JP 11150005 A JP11150005 A JP 11150005A JP 15000599 A JP15000599 A JP 15000599A JP 2000339407 A JP2000339407 A JP 2000339407A
Authority
JP
Japan
Prior art keywords
area
information
image
template
input image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP11150005A
Other languages
Japanese (ja)
Inventor
Hiroaki Ikeda
裕章 池田
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 JP11150005A priority Critical patent/JP2000339407A/en
Publication of JP2000339407A publication Critical patent/JP2000339407A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a picture processor for recognizing the dislocation of a template and a slip picture without using a special mark for dislocation detection and to provide a picture processing method and a computer readable storage medium. SOLUTION: Plural areas are extracted from an inputted slip picture and the area (corresponding area) corresponding to one noticed area selected from areas which are previously stored in a template is retrieved from the extracted areas (S201-S203). When the corresponding area can be detected, shift quantity with the noticed area is calculated by using a coordinate value and the template is allocated to the slip picture in response to the calculated shift quantity. Thus, the dislocation of the slip picture against the template is corrected (S204-S205).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置及び
画像処理方法及びコンピュータ読み取り可能な記憶媒体
に関する。
The present invention relates to an image processing apparatus, an image processing method, and a computer-readable storage medium.

【0002】[0002]

【従来の技術】従来より、帳票をスキャナ等によって読
み取り、その読み取った画像情報(帳票画像)に対して
文字認識処理を施すことによって当該帳票に記載されて
いる文字や数字を認識したり、或いは、バーコードやマ
ークの読み取り等を行う画像処理装置が提案されてい
る。
2. Description of the Related Art Conventionally, a form has been read by a scanner or the like, and the read image information (form image) has been subjected to character recognition processing to recognize characters and numerals described in the form. An image processing apparatus for reading a bar code or a mark has been proposed.

【0003】一般に、このような画像処理装置において
は、読み取るべき帳票に含まれる文字認識を行うべき領
域の情報等がテンプレート情報(以下、テンプレート)
として予め記憶されている。そして、読み取った帳票の
文字認識処理に際しては、その読み取った帳票の画像情
報(入力画像)に対してテンプレートを重ねあわせ、当
該帳票の画像情報のうち、テンプレートに文字認識領域
として記憶されている範囲内の画像情報に対する文字認
識が行われる。
In general, in such an image processing apparatus, information on an area for character recognition included in a form to be read is used as template information (hereinafter, template).
Is stored in advance. In the character recognition processing of the read form, the template is superimposed on the image information (input image) of the read form, and the image information of the form included in the area stored as the character recognition area in the template Character recognition is performed on the image information in.

【0004】その際、テンプレートと入力画像の位置と
が所定の位置関係で重ね合わせられておらずにずれてい
ると、所定の文字認識領域に対応する画像情報を処理で
きない。このため、帳票に位置合わせ用のマークを予め
印刷しておき、画像処理装置に予め記憶するテンプレー
トにも、そのマークの位置を記憶しておくことにより、
帳票の入力画像をテンプレートに重ねあわせるときに
は、テンプレートに記憶している位置合わせ用マークの
位置付近に存在する帳票画像の位置合わせ用マークを探
すことにより、テンプレートに記憶されたマークと入力
画像上にあるマークとを十分に重ねあわせ、これによ
り、テンプレートと入力画像とのずれを吸収するように
構成されている。
[0004] At this time, if the position of the template and the position of the input image are not superimposed in a predetermined positional relationship but are shifted, image information corresponding to a predetermined character recognition area cannot be processed. For this reason, a mark for alignment is printed in advance on a form, and the position of the mark is also stored in a template stored in advance in the image processing apparatus.
When the input image of the form is superimposed on the template, by searching for the registration mark of the form image near the position of the alignment mark stored in the template, It is configured such that a certain mark is sufficiently overlapped, thereby absorbing a shift between the template and the input image.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
従来例の方法では、帳票上に位置合わせ用のマークが存
在しない帳票、或いは何らかの原因によって入力画像の
中にマークが含まれない場合等は位置ずれを取り除くこ
とができず、位置ずれを生じた帳票は誤った処理結果を
出力したり、処理不能となる欠点がある。
However, in the above-described conventional method, the position of a mark in which no alignment mark exists on the form, or the case where the mark is not included in the input image due to any cause, is used. There is a drawback that the form cannot be removed, and the form in which the position is displaced outputs an incorrect processing result or cannot be processed.

【0006】本発明は上記の問題点を解消するためにな
されたもので、本発明は、位置ずれ検出用の特別なマー
クを使用せずに、テンプレートと入力画像(入力された
画像)との位置ずれを認識する画像処理装置及び画像処
理方法及びコンピュータ読み取り可能な記憶媒体の提供
を目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and the present invention provides a method of combining a template with an input image (input image) without using a special mark for detecting a displacement. It is an object of the present invention to provide an image processing apparatus, an image processing method, and a computer-readable storage medium for recognizing displacement.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
め、本発明に係る画像処理装置は、以下の構成を特徴と
する。
To achieve the above object, an image processing apparatus according to the present invention has the following configuration.

【0008】即ち、所定フォーマットの入力画像から、
その入力画像に含まれる複数の領域を抽出し、その抽出
した各領域の位置情報を検出する領域抽出手段と、テン
プレート情報として、画像に含まれるべき所定領域のサ
イズ及び位置情報を予め記憶している記憶手段と、前記
記憶手段にテンプレート情報として記憶している前記所
定領域のサイズ情報のうち少なくとも何れか1つ選択し
たサイズ情報に対応する領域を、前記領域抽出手段によ
って抽出した各領域の中から検索する検索手段と、前記
検索手段によって対応する領域が検出できたときに、そ
の検出した領域と、前記テンプレート情報の中から選択
した領域とのずれ量を、それら領域の位置情報に基づい
て検出することにより、前記入力画像と前記テンプレー
ト情報との相対的なずれ量を認識するずれ量認識手段と
を備えることを特徴とする。
That is, from an input image of a predetermined format,
A plurality of regions included in the input image are extracted, and region extraction means for detecting position information of each of the extracted regions, and, as template information, size and position information of a predetermined region to be included in the image are stored in advance. Storage means, and an area corresponding to size information selected at least one of the size information of the predetermined area stored as template information in the storage means in each area extracted by the area extraction means. And a search unit that searches from the search unit, and when a corresponding region is detected by the search unit, a shift amount between the detected region and a region selected from the template information is determined based on the position information of those regions. A shift amount recognizing means for detecting a relative shift amount between the input image and the template information by detecting the shift amount. To.

【0009】また、例えば前記記憶手段には、前記テン
プレート情報のうち、前記検索手段にて検索を行うとき
に検索の対象とすべき領域を特定する情報が予め登録さ
れており、前記検索手段は、前記記憶手段に登録されて
いる領域だけを検索の対象とすると良い。
Further, for example, in the storage means, information for specifying an area to be searched when searching by the search means is registered in advance in the template information, and the search means It is preferable that only the area registered in the storage means is to be searched.

【0010】また、例えば前記検索手段は、前記テンプ
レート情報の中から1つ選択した領域に対応する領域
を、前記領域抽出手段によって抽出した各領域の中から
検索すると共に、前記ずれ量認識手段は、前記検索手段
が検出した1組の領域の位置情報に基づいて、前記入力
画像と前記テンプレート情報との相対的なずれ量を認識
すると良い。
Further, for example, the search means searches for an area corresponding to one area selected from the template information from each area extracted by the area extraction means, and the displacement amount recognition means It is preferable that a relative shift amount between the input image and the template information is recognized based on the position information of the set of areas detected by the search unit.

【0011】または、上記の目的を達成するため、本発
明に係る画像処理方法は、以下の構成を特徴とする。
Alternatively, in order to achieve the above object, an image processing method according to the present invention has the following configuration.

【0012】即ち、所定フォーマットの入力画像から、
その入力画像に含まれる複数の領域を抽出し、その抽出
した各領域の位置情報を検出する領域抽出工程と、テン
プレート情報として該入力画像に含まれるべき所定領域
のサイズ及び位置情報を予め記憶している記憶装置か
ら、前記所定領域のサイズ情報のうち少なくとも何れか
1つ選択し、その選択したサイズ情報に対応する領域
を、前記領域抽出工程にて抽出した各領域の中から検索
する検索工程と、前記検索工程にて対応する領域が検出
できたときに、その検出した領域と、前記テンプレート
情報の中から選択した領域とのずれ量を、それら領域の
位置情報に基づいて検出することにより、前記入力画像
と前記テンプレート情報との相対的なずれ量を認識する
ずれ量認識工程とを有することを特徴とする。
That is, from an input image in a predetermined format,
An area extracting step of extracting a plurality of areas included in the input image and detecting position information of each of the extracted areas; and previously storing size and position information of a predetermined area to be included in the input image as template information. A search step of selecting at least one of the size information of the predetermined area from the storage device, and searching for an area corresponding to the selected size information from the areas extracted in the area extraction step. And, when a corresponding area is detected in the search step, by detecting a shift amount between the detected area and an area selected from the template information based on the position information of those areas. And a shift amount recognizing step of recognizing a relative shift amount between the input image and the template information.

【0013】また、例えば前記テンプレート情報のう
ち、前記検索工程にて検索を行うときに検索の対象とす
べき領域を特定する情報を、前記記憶装置に予め登録し
ておき、前記検索工程において、前記記憶装置に登録さ
れている領域だけを検索の対象とすると良い。
[0013] For example, of the template information, information for specifying an area to be searched when performing a search in the search step is registered in the storage device in advance, and in the search step, Preferably, only the area registered in the storage device is to be searched.

【0014】また、例えば前記検索工程において、前記
テンプレート情報の中から1つ選択した領域に対応する
領域を、前記領域抽出工程にて抽出した各領域の中から
検索すると共に、前記ずれ量認識工程において、前記検
索工程で検出した1組の領域の位置情報に基づいて、前
記入力画像と前記テンプレート情報との相対的なずれ量
を認識すると良い。
In the searching step, for example, an area corresponding to one area selected from the template information is searched from each area extracted in the area extracting step. In the method, it is preferable to recognize a relative shift amount between the input image and the template information based on position information of a set of areas detected in the search step.

【0015】更に、上記の画像処理装置及び画像処理方
法を、コンピュータによって実現するプログラムコード
が格納されている、コンピュータ読み取り可能な記憶媒
体を特徴とする。
Further, the invention is characterized by a computer-readable storage medium storing a program code for realizing the image processing apparatus and the image processing method by a computer.

【0016】[0016]

【発明の実施の形態】以下、本発明に係る画像処理装置
を、入力画像の一例として帳票画像を扱う場合に適用し
た実施形態として、図面を参照して詳細に説明する。
尚、本発明に係る画像処理装置の処理対象は、帳票画像
に限られるものではなく、罫線等により仕切られた複数
の領域を含む入力画像であれば適用することができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image processing apparatus according to the present invention will be described in detail with reference to the drawings as an embodiment applied to a case where a form image is handled as an example of an input image.
The processing target of the image processing apparatus according to the present invention is not limited to a form image, but may be applied to any input image including a plurality of areas separated by ruled lines or the like.

【0017】[第1の実施形態]図1は、本発明を適用
可能な画像処理装置の構成を示すブロック図である。
[First Embodiment] FIG. 1 is a block diagram showing a configuration of an image processing apparatus to which the present invention can be applied.

【0018】同図において、101はCPUであり、R
OM102に予め格納されている制御プログラムに従っ
て本装置全体の制御を行う。103はRAMであり、C
PU101の主記憶、あるいは帳票画像等の記憶領域と
して機能する。104は磁気ディスク等の外部記憶装置
であり、108は帳票を光学的に読み取るためのイメー
ジスキャナである。また、105はディスプレイ、10
6はキーボード、107はマウス等のポインティングデ
バイスである。109はネットワークインターフェイス
であり、帳票画像や、後述するテンプレートのデータ等
を外部装置と送受信することができる。
In FIG. 1, reference numeral 101 denotes a CPU;
The control of the entire apparatus is performed according to a control program stored in the OM 102 in advance. 103 is a RAM, and C
It functions as a main memory of the PU 101 or a storage area for a form image or the like. Reference numeral 104 denotes an external storage device such as a magnetic disk, and reference numeral 108 denotes an image scanner for optically reading a form. 105 is a display, 10
Reference numeral 6 denotes a keyboard, and 107, a pointing device such as a mouse. Reference numeral 109 denotes a network interface which can transmit and receive a form image, template data described later, and the like to and from an external device.

【0019】次に、図1に示す画像処理装置が実行する
動作について説明する。
Next, the operation executed by the image processing apparatus shown in FIG. 1 will be described.

【0020】図2は、第1の実施形態における画像処理
装置の帳票処理を示すフローチャートである。
FIG. 2 is a flowchart showing the form processing of the image processing apparatus according to the first embodiment.

【0021】同図において、ステップS201:一般的
な構成を有するイメージスキャナ108により、所定の
フォーマットの帳票を読み取ることにより、当該帳票の
画像(帳票画像)を入手する。尚、帳票画像は、ネット
ワークインタフェース109を介して外部装置から入手
しても良い。
In FIG. 1, step S201: an image (form image) of the form is obtained by reading a form in a predetermined format by the image scanner 108 having a general configuration. The form image may be obtained from an external device via the network interface 109.

【0022】ステップS202:入力された帳票画像の
中から領域を抽出する。領域の抽出方法については、例
えば、特開平8−235349号で示される方法を用い
れば良い。
Step S202: An area is extracted from the input form image. As a method for extracting a region, for example, a method disclosed in JP-A-8-235349 may be used.

【0023】この領域抽出処理の結果、例えば図4に示
すフォーマットを有する帳票の場合は、矩形ブロック形
状の領域401から領域403が抽出される。ここで、
領域403は表領域であり、更にセル単位の領域404
から領域412が抽出される。
As a result of the region extraction processing, for example, in the case of a form having the format shown in FIG. 4, a region 403 is extracted from a region 401 having a rectangular block shape. here,
An area 403 is a table area, and further includes an area 404 in cell units.
Are extracted from the region 412.

【0024】一方、図5は、図4に示す帳票(帳票画
像)の比較対象となるテンプレートであり、このテンプ
レートには、図5に概念的に示す当該テンプレートに含
まれる各領域の位置(2次元座標値)の他に、更に、各
領域の大きさ及び読み取り処理(文字認識処理)を制御
する情報が予め記憶されている。ここで、読み取り処理
の制御情報には、文字認識やバーコード等の読み取り方
法が含まれており、特に、記憶されている読み取り方法
が文字認識処理の場合には、手書き文字や活字数字等の
字種等が更に含まれている。尚、表領域である領域50
3の場合は、読み取り処理は行わないが、存在すべき
(記載されているべき)文字及び数字の行数や列数等の
情報を記憶しておく。
On the other hand, FIG. 5 shows a template to be compared with the form (form image) shown in FIG. 4. This template includes the position (2) of each area conceptually included in the template shown in FIG. In addition to (dimensional coordinate values), information for controlling the size of each area and reading processing (character recognition processing) is stored in advance. Here, the control information of the reading process includes a reading method such as character recognition or a bar code. In particular, when the stored reading method is the character recognition process, the control information of the handwriting character or the printed numeral is used. Character types and the like are further included. In addition, the area 50 which is the table area
In the case of 3, the reading process is not performed, but information such as the number of lines and columns of characters and numbers that should exist (should be described) is stored.

【0025】これらの情報を含むテンプレートは、予め
作成され、外部記憶装置104等に記憶しておく。
A template including these pieces of information is created in advance and stored in the external storage device 104 or the like.

【0026】ステップS203:ステップS202で抽
出した領域(以下、抽出領域)の中から、テンプレート
に予め記憶された領域に対応する抽出領域を決定する。
ここで、対応する領域(以下、対応領域)の決定方法に
ついて説明する。
Step S203: From among the regions extracted in step S202 (hereinafter referred to as "extracted regions"), an extracted region corresponding to a region previously stored in the template is determined.
Here, a method of determining a corresponding area (hereinafter, corresponding area) will be described.

【0027】図3は、第1の実施形態における対応領域
の決定処理を示すフローチャートであり、図2のステッ
プS203の詳細を示す。
FIG. 3 is a flowchart showing the processing for determining the corresponding area in the first embodiment, and shows the details of step S203 in FIG.

【0028】同図において、ステップS301:テンプ
レートに含まれる複数の領域のうち何れか1つを注目す
る領域(以下、注目領域)として選択し、その選択した
注目領域の左上の座標を取得する。
Referring to FIG. 3, in step S301, one of a plurality of regions included in a template is selected as a region of interest (hereinafter, region of interest), and the upper left coordinates of the selected region of interest are obtained.

【0029】ステップS302:帳票画像から抽出した
領域情報の全てについて対応領域を検索したか否かを判
断し、NOのときにはステップS303に進み、YES
のときには処理を終了する。
Step S302: It is determined whether or not the corresponding area has been searched for all the area information extracted from the form image. If NO, the process proceeds to Step S303, and YES
If, the process ends.

【0030】ステップS303:帳票画像から抽出した
領域情報のうち何れか1つの領域情報の左上の座標を取
得し、その座標と、ステップS301で取得した注目領
域の左上の座標とを比較することにより、当該領域が注
目領域の近傍に有るかどうかを判定する。
Step S303: By acquiring the upper left coordinates of any one of the area information extracted from the form image, and comparing the coordinates with the upper left coordinates of the attention area acquired in step S301. Then, it is determined whether or not the area is near the attention area.

【0031】ここで、近傍に有るかどうかの判定は、予
め定めておいた座標値の許容範囲を注目領域の左上の座
標に当てはめ、その範囲内に現在判定対象としている領
域の左上の座標が存在するかどうかを調べることにより
行う。この許容範囲には、イメージスキャナ108の帳
票の搬送精度が高ければ小さめに設定することができ、
そうでなければ大きめに設定する。
Here, the determination as to whether or not there is a neighborhood is made by applying a predetermined allowable range of coordinate values to the upper left coordinates of the attention area, and the upper left coordinates of the area to be currently determined within the range are determined. This is done by checking for the existence. This allowable range can be set to a smaller value if the form transport accuracy of the image scanner 108 is high.
If not, set it larger.

【0032】ステップS305:ステップS303の判
断でYESのとき、即ち、帳票画像の中から現在判定対
象としている領域が、テンプレートの注目領域の近傍に
存在すると判定された場合には、当該領域を、ステップ
S301でテンプレートの中から選択した注目領域に対
する対応領域として設定し、以降の処理を終了する。
Step S305: If the determination in step S303 is YES, that is, if it is determined that the area currently being determined from the form image is present near the target area of the template, the area is In step S301, the region is set as a region corresponding to the region of interest selected from the templates, and the subsequent processing ends.

【0033】ステップS304:ステップS303の判
断でNOのとき、即ち、帳票画像の中から現在判定対象
としている領域が、テンプレートの注目領域の近傍には
存在しないと判定された場合には、帳票画像の中から新
たな判定対象とする領域を選択し、ステップS302に
戻る。
Step S304: If the determination in step S303 is NO, that is, if it is determined that the area currently being determined from the form image does not exist near the target area of the template, the form image Is selected as a new area to be determined, and the process returns to step S302.

【0034】次に、図2のステップS204以降の説明
に戻る。
Next, the description returns to step S204 and subsequent steps in FIG.

【0035】ステップS204:前ステップまでの処理
により、テンプレートの注目領域に対応する対応領域が
得られたので、ステップS204では、テンプレートと
入力画像のずれの量を求める。ずれの量の算出は、当該
注目領域の左上の座標と、対応領域の左上の座標との差
を算出することにより行う。
Step S204: Since the corresponding area corresponding to the attention area of the template has been obtained by the processing up to the previous step, the amount of deviation between the template and the input image is determined in step S204. The calculation of the amount of shift is performed by calculating the difference between the upper left coordinates of the attention area and the upper left coordinates of the corresponding area.

【0036】ステップS205:テンプレートを、ステ
ップS204で算出したずれ量だけずらすことにより、
入力した帳票画像に当てはめる(或いは、テンプレート
に対して帳票画像をずれ量だけずらすように構成しても
よい)。
Step S205: By shifting the template by the shift amount calculated in step S204,
This is applied to the input form image (or the form image may be shifted by a shift amount with respect to the template).

【0037】ステップS206:当該算出したずれ量分
だけステップS205にて補正された帳票画像に対し
て、文字認識処理、或いは表解析等の認識処理を施す。
これらの認識処理自体は、一般的な方法を採用するもの
とし、本実施形態における詳細な説明は省略する。
Step S206: The form image corrected by the calculated shift amount in step S205 is subjected to a character recognition process or a recognition process such as a table analysis.
A general method is used for the recognition processing itself, and detailed description in the present embodiment will be omitted.

【0038】以上説明したように、本実施形態によれ
ば、テンプレートと帳票とに、上述した従来例の如くマ
ークを付加する等のずれを補正するための特別な情報の
付加、マークの印刷を行わなくても、テンプレートと帳
票画像とのずれの量を求めることができる。これによ
り、ずれ量の算出に用いた領域内を含め、帳票画像に含
まれる文字認識等を行うべき所定の領域を正確に求めら
れるため、ずれ量を算出した後工程においてそのずれ量
を補正した画像に対して実行する文字認識等の所定の処
理を正確に行うことができる。
As described above, according to the present embodiment, the addition of special information for correcting a shift such as the addition of a mark to the template and the form as in the above-described conventional example and the printing of the mark are performed. Even without performing this, it is possible to determine the amount of deviation between the template and the form image. As a result, a predetermined area included in the form image in which character recognition and the like should be performed, including the area used for calculating the shift amount, can be accurately obtained, and the shift amount is corrected in a process after calculating the shift amount. Predetermined processing such as character recognition performed on an image can be accurately performed.

【0039】また、本実施形態によれば、テンプレート
に予め保存されている領域情報に対応する領域が、帳票
画像の中から全て抽出できない場合にも、何れか1つの
注目領域とその注目領域に対応する対応領域とが検出で
きれば、テンプレートと帳票画像とのずれの量を求める
ことができる。
According to the present embodiment, even if all the regions corresponding to the region information stored in the template cannot be extracted from the form image, any one region of interest and the region of interest If a corresponding area can be detected, the amount of deviation between the template and the form image can be determined.

【0040】尚、画像の読み込み(入力)は、イメージ
スキャナ108に限るものではなく、外部記憶等にあら
かじめ記憶されたものであってもよい。また、ネットワ
ークインターフェイス109を介し、通信手段を用いて
遠隔地にあるイメージスキャナや記憶装置等を使用して
もよい。また、傾きを除去する処理や、ノイズを消去す
る処理が画像の読み込み時に行うように構成してもよ
い。
The reading (input) of the image is not limited to the image scanner 108, but may be an image stored in an external storage or the like in advance. Further, an image scanner, a storage device, or the like at a remote place may be used by using communication means via the network interface 109. Further, the processing for removing the inclination and the processing for eliminating the noise may be performed at the time of reading the image.

【0041】また、領域抽出処理の方法や、テンプレー
トの構成についても、同様の効果が得られるものであれ
ば上記説明に限るものではない。
Further, the method of the region extraction processing and the configuration of the template are not limited to the above description as long as similar effects can be obtained.

【0042】また、ステップS303の判定処理に利用
する情報は、各領域の左上の座標に限ったものではな
く、領域の四隅や大きさの情報、中心の座標等を用いて
もよい。
The information used in the determination processing in step S303 is not limited to the upper left coordinates of each area, but may be information on the four corners and size of the area, the coordinates of the center, and the like.

【0043】また、本実施形態では、ステップS204
でずれ量を求めるに際して、注目領域の左上の座標と、
対応領域の左上の座標との差を利用したが、例えば、領
域の中心座標の差や、領域の四隅の座標の差の平均等を
利用しても良い。また、複数の注目領域を使用し、それ
らのずれの量の平均を入力画像とテンプレートのずれの
量とするように構成してもよい。
In the present embodiment, step S204
When calculating the shift amount by using the coordinates of the upper left of the attention area,
Although the difference from the upper left coordinates of the corresponding region is used, for example, a difference between the center coordinates of the region and an average of the differences between the coordinates of the four corners of the region may be used. In addition, a configuration may be used in which a plurality of attention areas are used, and the average of the amounts of shift is used as the amount of shift between the input image and the template.

【0044】[第2の実施形態]次に、上述した第1の
実施形態を基本とする第2の実施形態を説明する。以下
の説明では、第1の実施形態と異なる部分を中心に説明
するものとし、図1に示す画像処理装置の構成等の重複
する説明は省略する。
[Second Embodiment] Next, a second embodiment based on the above-described first embodiment will be described. In the following description, portions different from those of the first embodiment will be mainly described, and redundant description of the configuration of the image processing apparatus shown in FIG. 1 will be omitted.

【0045】本実施形態では、まず、予め対応領域を探
すべき領域をテンプレートに記憶しておく。即ち、図5
に示す例の場合には、入力されるであろうほとんどの帳
票画像の中から安定して抽出されるであろう領域50
1、503、504、505、506の各領域、或いは
それら各領域の一部の領域を、対応領域を検索すべき領
域としてテンプレートに予め登録しておき、これら登録
した領域を対象として、対応領域の決定処理を行う。
In this embodiment, first, an area in which a corresponding area is to be searched is stored in a template in advance. That is, FIG.
In the case of the example shown in FIG. 5, an area 50 that will be stably extracted from most of the form images that will be input.
1, 503, 504, 505, and 506, or a part of each of these areas, is registered in the template in advance as an area to be searched for a corresponding area. Is determined.

【0046】図6は、第2の実施形態における対応領域
の決定処理を示すフローチャートであり、図2のステッ
プS203の詳細を示す。
FIG. 6 is a flowchart showing the processing for determining the corresponding area in the second embodiment, and shows the details of step S203 in FIG.

【0047】同図において、ステップS601:帳票画
像から抽出した領域情報の全てについて対応領域を検索
したか否かを判断し、NOのときにはステップS602
に進み、YESのときには処理を終了する。
In the figure, step S601: It is determined whether or not the corresponding area has been searched for all the area information extracted from the form image. If NO, step S602
And the process ends when the result is YES.

【0048】ステップS602:テンプレート内の現在
注目している注目領域が、対応領域を探すべき領域であ
るか否かを、予め記憶している登録情報によって調べ、
YESのとき(対応領域を探すべき領域のとき)にはス
テップS603に進み、NOのとき(対応領域を探すべ
き領域ではないとき)にはステップS608に進む。
Step S602: It is checked whether or not the attention area in the template that is currently focused on is an area in which a corresponding area is to be searched, based on registration information stored in advance.
When the determination is YES (when the corresponding region is a region to be searched), the process proceeds to step S603. When the determination is NO (when the corresponding region is not a region to be searched), the process proceeds to step S608.

【0049】ステップS603:テンプレートに含まれ
る複数の領域のうち、現在注目している注目領域の左上
の座標を取得する。
Step S603: The coordinates of the upper left corner of the attention area of interest are acquired from among a plurality of areas included in the template.

【0050】ステップS604:帳票画像から抽出した
領域情報の全てについて対応領域を検索したか否かを判
断し、NOのときにはステップS605に進み、YES
のときにはステップS608に進む。
Step S604: It is determined whether or not the corresponding area has been searched for all the area information extracted from the form image. If NO, the process proceeds to Step S605, and YES
If so, the process proceeds to step S608.

【0051】ステップS605:帳票画像から抽出した
領域情報のうち何れか1つの領域情報の左上の座標を取
得し、その座標と、ステップS603で取得した注目領
域の左上の座標とを比較することにより、当該領域が注
目領域の近傍に有るかどうかを、第1の実施形態と同様
に判定する。
Step S605: The upper left coordinates of any one of the area information extracted from the form image are obtained, and the coordinates are compared with the upper left coordinates of the attention area obtained in step S603. It is determined whether or not the region is near the region of interest, as in the first embodiment.

【0052】ステップS606:ステップS605の判
断でYESのとき、即ち、帳票画像の中から現在判定対
象としている領域が、テンプレートの注目領域の近傍に
存在すると判定された場合には、当該領域を、現在の注
目領域に対する対応領域として設定し、ステップS60
8に進む。
Step S606: If the determination in step S605 is YES, that is, if it is determined that the area currently being determined from the form image is near the target area of the template, the area is determined as follows: It is set as a corresponding area to the current attention area, and step S60
Proceed to 8.

【0053】ステップS607:ステップS605の判
断でNOのとき、即ち、帳票画像の中から現在判定対象
としている領域が、テンプレートの注目領域の近傍には
存在しないと判定された場合には、帳票画像の中から新
たな判定対象とする領域を選択し、ステップS604に
戻る。
Step S607: If the determination in step S605 is NO, that is, if it is determined that the area currently being determined from the form image does not exist near the attention area of the template, the form image , A new area to be determined is selected, and the process returns to step S604.

【0054】ステップS608:テンプレートに含まれ
る他の領域を新たな注目領域の候補として選択し、ステ
ップS601に戻る。
Step S608: Another area included in the template is selected as a candidate for a new area of interest, and the process returns to step S601.

【0055】以上説明した本実施形態によれば、テンプ
レートの情報の中に予め登録した対応領域を検索すべき
領域に対して個々に対応領域を検出する。このため、係
る第2の実施形態における対応領域の決定処理を図2に
示す帳票処理のステップS203に適用することによ
り、テンプレートと帳票とに、上述した従来例の如くマ
ークを付加する等のずれを補正するための特別な情報の
付加、マークの印刷を行わなくても、テンプレートと帳
票画像とのずれの量を、第1の実施形態と比較して更に
確実に求めることができる。
According to the above-described embodiment, the corresponding areas are individually detected for the areas to be searched for the corresponding areas registered in advance in the information of the template. For this reason, by applying the corresponding area determination processing in the second embodiment to step S203 of the form processing shown in FIG. 2, a shift such as adding a mark between the template and the form as in the above-described conventional example is performed. The amount of deviation between the template and the form image can be obtained more reliably than in the first embodiment without adding special information for correcting the error and printing the mark.

【0056】[0056]

【他の実施形態】尚、上述した各実施形態は、複数の機
器(例えばホストコンピュータ、インタフェイス機器、
スキャナ等)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機、ファクシミリ
装置など)に適用してもよい。
[Other Embodiments] In each of the above-described embodiments, a plurality of devices (for example, a host computer, an interface device,
The present invention may be applied to a system including a scanner or the like, or may be applied to a device including one device (for example, a copying machine, a facsimile machine, or the like).

【0057】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納されたプログ
ラムコードを読み出し実行することによっても、達成さ
れることは言うまでもない。この場合、記憶媒体から読
み出されたプログラムコード自体が前述した実施形態の
機能を実現することになり、そのプログラムコードを記
憶した記憶媒体は本発明を構成することになる。また、
コンピュータが読み出したプログラムコードを実行する
ことにより、前述した実施形態の機能が実現されるだけ
でなく、そのプログラムコードの指示に基づき、コンピ
ュータ上で稼働しているオペレーティングシステム(OS)
などが実際の処理の一部または全部を行い、その処理に
よって前述した実施形態の機能が実現される場合も含ま
れることは言うまでもない。
Further, an object of the present invention is to supply a storage medium (or a recording medium) in which program codes of software for realizing the functions of the above-described embodiments are recorded to a system or an apparatus, and to provide a computer (or a computer) of the system or the apparatus. It is needless to say that the present invention can also be achieved by a CPU or an MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Also,
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also the operating system (OS) running on the computer based on the instructions of the program code.
It is needless to say that a case in which the functions of the above-described embodiments are implemented by performing part or all of the actual processing.

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

【0059】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明した(図2及び図3または図
6に示すフローチャートに対応するプログラムコードが
格納されることになる。
When the present invention is applied to the storage medium, the storage medium stores the program code corresponding to the flowchart described above (FIG. 2, FIG. 3, or FIG. 6).

【0060】[0060]

【発明の効果】以上説明したように、本発明によれば、
位置ずれ検出用の特別なマークを使用せずに、テンプレ
ートと入力画像との位置ずれを認識する画像処理装置及
び画像処理方法及びコンピュータ読み取り可能な記憶媒
体の提供が実現する。
As described above, according to the present invention,
An image processing apparatus, an image processing method, and a computer-readable storage medium that recognize a position shift between a template and an input image without using a special mark for position shift detection are realized.

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

【図1】本発明を適用可能な画像処理装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus to which the present invention can be applied.

【図2】第1の実施形態における画像処理装置の帳票処
理を示すフローチャートである。
FIG. 2 is a flowchart illustrating a form process of the image processing apparatus according to the first embodiment.

【図3】第1の実施形態における対応領域の決定処理を
示すフローチャートである。
FIG. 3 is a flowchart illustrating a process of determining a corresponding area according to the first embodiment.

【図4】第1の実施形態において一例として使用すると
ころの、帳票画像に含まれる複数の領域を示す図であ
る。
FIG. 4 is a diagram illustrating a plurality of areas included in a form image, which are used as an example in the first embodiment.

【図5】図4に示す帳票(帳票画像)の比較対象となる
テンプレートを示す図である。
FIG. 5 is a diagram showing a template to be compared with the form (form image) shown in FIG. 4;

【図6】第2の実施形態における対応領域の決定処理を
示すフローチャートである。
FIG. 6 is a flowchart illustrating a process of determining a corresponding area according to the second embodiment.

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

101:CPU, 102:ROM, 103:RAM, 104:外部記憶装置, 105:ディスプレイ, 106:キーボード, 107:ポインティングデバイス, 108:イメージスキャナ, 109:ネットワークインターフェイス, 101: CPU, 102: ROM, 103: RAM, 104: external storage device, 105: display, 106: keyboard, 107: pointing device, 108: image scanner, 109: network interface,

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 所定フォーマットの入力画像から、その
入力画像に含まれる複数の領域を抽出し、その抽出した
各領域の位置情報を検出する領域抽出手段と、 テンプレート情報として、画像に含まれるべき所定領域
のサイズ及び位置情報を予め記憶している記憶手段と、 前記記憶手段にテンプレート情報として記憶している前
記所定領域のサイズ情報のうち少なくとも何れか1つ選
択したサイズ情報に対応する領域を、前記領域抽出手段
によって抽出した各領域の中から検索する検索手段と、 前記検索手段によって対応する領域が検出できたとき
に、その検出した領域と、前記テンプレート情報の中か
ら選択した領域とのずれ量を、それら領域の位置情報に
基づいて検出することにより、前記入力画像と前記テン
プレート情報との相対的なずれ量を認識するずれ量認識
手段と、を備えることを特徴とする画像処理装置。
1. An area extracting means for extracting a plurality of areas included in an input image from an input image in a predetermined format, detecting position information of each of the extracted areas, and being included in the image as template information. Storage means for storing size and position information of the predetermined area in advance; and an area corresponding to size information selected at least one of the size information of the predetermined area stored as template information in the storage means. Searching means for searching among the areas extracted by the area extracting means; and when a corresponding area is detected by the searching means, the detected area and the area selected from the template information By detecting the amount of displacement based on the position information of those regions, the relative displacement between the input image and the template information is detected. An image processing apparatus comprising: a shift amount recognizing unit that recognizes a shift amount.
【請求項2】 前記記憶手段には、前記テンプレート情
報のうち、前記検索手段にて検索を行うときに検索の対
象とすべき領域を特定する情報が予め登録されており、 前記検索手段は、前記記憶手段に登録されている領域だ
けを検索の対象とすることを特徴とする請求項1記載の
画像処理装置。
2. The storage unit has registered therein in advance, of the template information, information for specifying an area to be searched when performing a search by the search unit. 2. The image processing apparatus according to claim 1, wherein only an area registered in the storage unit is to be searched.
【請求項3】 前記検索手段は、前記テンプレート情報
の中から1つ選択した領域に対応する領域を、前記領域
抽出手段によって抽出した各領域の中から検索すると共
に、 前記ずれ量認識手段は、前記検索手段が検出した1組の
領域の位置情報に基づいて、前記入力画像と前記テンプ
レート情報との相対的なずれ量を認識することを特徴と
する請求項1記載の画像処理装置。
3. The search means searches for an area corresponding to one area selected from the template information from each area extracted by the area extraction means, and the shift amount recognition means comprises: 2. The image processing apparatus according to claim 1, wherein a relative shift amount between the input image and the template information is recognized based on position information of a set of areas detected by the search unit.
【請求項4】 更に、前記所定フォーマットの原稿を読
み取ることにより、前記入力画像を入手する原稿読み取
り手段を備えることを特徴とする請求項1乃至請求項3
の何れかに記載の画像処理装置。
4. The apparatus according to claim 1, further comprising a document reading unit that obtains the input image by reading the document in the predetermined format.
The image processing device according to any one of the above.
【請求項5】 更に、前記入力画像を外部装置より入手
する画像入手手段を備えることを特徴とする請求項1乃
至請求項3の何れかに記載の画像処理装置。
5. The image processing apparatus according to claim 1, further comprising an image obtaining unit that obtains the input image from an external device.
【請求項6】 更に、前記ずれ量認識手段により認識し
たずれ量を補正した前記入力画像を文字認識する文字認
識手段を備えることを特徴とする請求項1記載の画像処
理装置。
6. The image processing apparatus according to claim 1, further comprising a character recognizing unit for recognizing a character of the input image in which the shift amount recognized by the shift amount recognizing unit is corrected.
【請求項7】 前記入力画像は、帳票を表わす画像であ
ることを特徴とする請求項1記載の画像処理装置。
7. The image processing apparatus according to claim 1, wherein the input image is an image representing a form.
【請求項8】 所定フォーマットの入力画像から、その
入力画像に含まれる複数の領域を抽出し、その抽出した
各領域の位置情報を検出する領域抽出工程と、 テンプレート情報として該入力画像に含まれるべき所定
領域のサイズ及び位置情報を予め記憶している記憶装置
から、前記所定領域のサイズ情報のうち少なくとも何れ
か1つ選択し、その選択したサイズ情報に対応する領域
を、前記領域抽出工程にて抽出した各領域の中から検索
する検索工程と、 前記検索工程にて対応する領域が検出できたときに、そ
の検出した領域と、前記テンプレート情報の中から選択
した領域とのずれ量を、それら領域の位置情報に基づい
て検出することにより、前記入力画像と前記テンプレー
ト情報との相対的なずれ量を認識するずれ量認識工程
と、を有することを特徴とする画像処理方法。
8. An area extracting step of extracting a plurality of areas included in the input image from an input image of a predetermined format and detecting position information of each of the extracted areas, and including the area information as template information in the input image. From the storage device in which the size and position information of the predetermined area to be stored are stored in advance, at least one of the size information of the predetermined area is selected, and an area corresponding to the selected size information is selected in the area extraction step. A search step of searching from among the extracted areas, and when a corresponding area is detected in the search step, a shift amount between the detected area and the area selected from the template information is calculated. A shift amount recognizing step of recognizing a relative shift amount between the input image and the template information by detecting based on the position information of those areas. Image processing method, characterized in that.
【請求項9】 前記テンプレート情報のうち、前記検索
工程にて検索を行うときに検索の対象とすべき領域を特
定する情報を、前記記憶装置に予め登録しておき、 前記検索工程において、前記記憶装置に登録されている
領域だけを検索の対象とすることを特徴とする請求項8
記載の画像処理方法。
9. In the template information, information for specifying an area to be searched when performing a search in the search step is registered in the storage device in advance, and in the search step, 9. The search method according to claim 8, wherein only areas registered in the storage device are searched.
The image processing method described in the above.
【請求項10】 前記検索工程において、前記テンプレ
ート情報の中から1つ選択した領域に対応する領域を、
前記領域抽出工程にて抽出した各領域の中から検索する
と共に、 前記ずれ量認識工程において、前記検索工程で検出した
1組の領域の位置情報に基づいて、前記入力画像と前記
テンプレート情報との相対的なずれ量を認識することを
特徴とする請求項8記載の画像処理方法。
10. An area corresponding to an area selected from the template information in the search step,
A search is performed from among the respective regions extracted in the region extraction step, and in the shift amount recognition step, the input image and the template information are compared with each other based on the position information of the set of regions detected in the search step. 9. The image processing method according to claim 8, wherein a relative shift amount is recognized.
【請求項11】 更に、前記ずれ量認識工程にて認識し
たずれ量を補正した前記入力画像を文字認識する文字認
識工程を有することを特徴とする請求項8記載の画像処
理方法。
11. The image processing method according to claim 8, further comprising a character recognizing step of recognizing a character of the input image in which the shift amount recognized in the shift amount recognizing step is corrected.
【請求項12】 前記入力画像は、帳票を表わす画像で
あることを特徴とする請求項8記載の画像処理方法。
12. The image processing method according to claim 8, wherein the input image is an image representing a form.
【請求項13】 請求項1乃至請求項7の何れかに記載
の画像処理装置としてコンピュータを動作させるプログ
ラムコードが格納されていることを特徴とするコンピュ
ータ読み取り可能な記憶媒体。
13. A computer-readable storage medium storing a program code for operating a computer as the image processing apparatus according to claim 1. Description:
【請求項14】 請求項8乃至請求項11の何れかに記
載の画像処理方法をコンピュータによって実現可能なプ
ログラムコードが格納されていることを特徴とするコン
ピュータ読み取り可能な記憶媒体。
14. A computer-readable storage medium storing a program code capable of realizing the image processing method according to claim 8 by a computer.
JP11150005A 1999-05-28 1999-05-28 Picture processor, picture processing method and computer readable storage medium Withdrawn JP2000339407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11150005A JP2000339407A (en) 1999-05-28 1999-05-28 Picture processor, picture processing method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11150005A JP2000339407A (en) 1999-05-28 1999-05-28 Picture processor, picture processing method and computer readable storage medium

Publications (1)

Publication Number Publication Date
JP2000339407A true JP2000339407A (en) 2000-12-08

Family

ID=15487398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11150005A Withdrawn JP2000339407A (en) 1999-05-28 1999-05-28 Picture processor, picture processing method and computer readable storage medium

Country Status (1)

Country Link
JP (1) JP2000339407A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259991A (en) * 2001-02-28 2002-09-13 Sony Corp Image processor and its method
CN100369050C (en) * 2004-08-06 2008-02-13 佳能株式会社 Image processing system and image tampering assesment method and control program of the same
US8254683B2 (en) 2005-03-18 2012-08-28 Fujitsu Limited Code image processing method
JP2013150270A (en) * 2012-01-23 2013-08-01 Ricoh Co Ltd Image processing device, program, and image processing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259991A (en) * 2001-02-28 2002-09-13 Sony Corp Image processor and its method
CN100369050C (en) * 2004-08-06 2008-02-13 佳能株式会社 Image processing system and image tampering assesment method and control program of the same
US8094946B2 (en) 2004-08-06 2012-01-10 Canon Kabushiki Kaisha Image processing system and image tampering assessment method and control program of the same
US8254683B2 (en) 2005-03-18 2012-08-28 Fujitsu Limited Code image processing method
JP2013150270A (en) * 2012-01-23 2013-08-01 Ricoh Co Ltd Image processing device, program, and image processing method

Similar Documents

Publication Publication Date Title
JP3580670B2 (en) Method for associating input image with reference image, apparatus therefor, and storage medium storing program for implementing the method
US20070242882A1 (en) Image processing apparatus for identifying the position of a process target within an image
JP2011130439A (en) Image alignment method for image comparison and document authentication
JP4594952B2 (en) Character recognition device and character recognition method
US7120316B2 (en) Image processing method and apparatus and storage medium
US6968501B2 (en) Document format identification apparatus and method
JP2000339407A (en) Picture processor, picture processing method and computer readable storage medium
JP3600380B2 (en) Image processing method and fax character recognition device
JP2006235786A (en) Image processor, image processing method and computer program
JP3814334B2 (en) Image processing apparatus and method
JPH08329187A (en) Document reader
JP4143245B2 (en) Image processing method and apparatus, and storage medium
JP4309881B2 (en) ID card recognition apparatus and ID card recognition method
JP2005208934A (en) Document distribution processing device and program
JP7310151B2 (en) Mark selection device and image processing device
JP2824372B2 (en) Report recognition device
JP2008123446A (en) Log information management system, log information management device, log information management method, and log information management program
JP2011065311A (en) Image processor and image processing program
JP2009193170A (en) Character recognition device and character recognition method
JPH11250179A (en) Character reocognition device and its method
JP2000331116A (en) Slip and its identification device and method
JP6435636B2 (en) Information processing apparatus and information processing program
JP3412998B2 (en) Image processing apparatus and method
JPH11224307A (en) Device and method for recognizing document
JP2000322512A (en) Device and method for processing document

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060801