JP2000182030A - Image segmenting method and image segmenting device - Google Patents

Image segmenting method and image segmenting device

Info

Publication number
JP2000182030A
JP2000182030A JP10362174A JP36217498A JP2000182030A JP 2000182030 A JP2000182030 A JP 2000182030A JP 10362174 A JP10362174 A JP 10362174A JP 36217498 A JP36217498 A JP 36217498A JP 2000182030 A JP2000182030 A JP 2000182030A
Authority
JP
Japan
Prior art keywords
image
layout
field
skew amount
target
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
JP10362174A
Other languages
Japanese (ja)
Inventor
Toshiaki Haga
俊昭 芳賀
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP10362174A priority Critical patent/JP2000182030A/en
Publication of JP2000182030A publication Critical patent/JP2000182030A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To increase processing speed by eliminating useless skew correction in an image segmenting device to segment a field image at a specified position from a slip image. SOLUTION: In this image segmenting method, a layout is discriminated for the slip image 1m inputted from an image input part 1 by a bar code retrieving and recognizing part 3 and a kind of the slip is specified by a slip layout retrieving part 6. A position of a field for the purpose of segmenting the object slip is calculated from a slip layout data base 8 and an area including the surroundings of the field is calculated by an image segmenting part 9. Correction corresponding skew quantity Sq of the slip is performed only to the area and a desired field image 25 is segmented from the area at the image segmenting part 9.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、帳票上に記載され
た文字やバーコードを読取る文字読取システム等に採用
され、帳票イメージから所定場所にある読取り対象のフ
ィールドを切出す画像切出し方法と画像切出し装置とに
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to a character reading system or the like for reading characters and bar codes described on a form, and an image cutting method and image for cutting out a field to be read at a predetermined place from a form image. The present invention relates to a cutting device.

【0002】[0002]

【従来の技術】従来の画像切出し装置は、入力した帳票
イメージから読取り対象のフィールドを切出すが、複数
の帳票イメージを入力するときに、それらの帳票イメー
ジが正しい方向でない場合や、スキューが発生している
ことがある。この場合、帳票イメージ全体を回転させて
補正し、補正したイメージから読取り対象のフィールド
を切出していた。
2. Description of the Related Art A conventional image cutout apparatus cuts out fields to be read from an input form image. However, when a plurality of form images are input, if the form images are not in the correct direction or skew occurs. May have. In this case, the entire form image is rotated and corrected, and a field to be read is cut out from the corrected image.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
画像切出し装置及び画像切出し方法では、帳票メージ全
体を回転させて補正するので、処理に多くの時間がかか
っていた。
However, in the conventional image clipping apparatus and image clipping method, since the entire form image is rotated and corrected, it takes a lot of processing time.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
に、本発明のうちの第1の発明は、入力した対象帳票の
帳票イメージから、該対象帳票における所定場所のフィ
ールドイメージをスキュー補正した状態で切出す画像切
出し方法において、次のような方法を講じている。即
ち、画像データで構成される前記帳票イメージを入力
し、画像データメモリに格納する画像入力処理と、前記
画像データメモリに格納された前記帳票イメージを探索
して前記対象帳票の方向とスキュー量を検出すると共に
該対象帳票のレイアウトを識別するレイアウト識別処理
と、前記レイアウトの識別結果から前記対象帳票の帳票
種類を特定する帳票レイアウト検索処理とを行ってお
き、前記特定された帳票種類から、前記対象帳票の所定
場所のフィールド位置情報を求め、該フィールド位置情
報と前記レイアウト識別処理で検出された前記方向及び
スキュー量とに基づき、該スキュー量を考慮した前記フ
ィールドイメージを含む領域を前記格納された帳票イメ
ージから切出し、該領域に対してのみ該方向及びスキュ
ー量に対応する補正を行い、該補正後の領域から該所定
場所のフィールドイメージを切出すイメージ切出し処理
を行うようにしている。
In order to solve the above problems, a first aspect of the present invention is to correct a skew of a field image at a predetermined place in a target form from an input form image of the target form. The following method is employed in an image cutting method for cutting in a state. That is, the form image composed of image data is input, and image input processing for storing the form image in the image data memory, and searching the form image stored in the image data memory to determine the direction and the skew amount of the target form. A layout identification process for detecting and identifying a layout of the target form, and a form layout search process for specifying a form type of the target form from the layout identification result are performed, and the form is identified from the specified form type. Based on the field position information of a predetermined location of the target form, based on the field position information and the direction and the skew amount detected in the layout identification processing, the area including the field image considering the skew amount is stored. Cut out from the scanned form image and correct only the area corresponding to the direction and skew amount Performed, and to perform the image cutting-out processing for cutting out the field image of the predetermined location from the region after the correction.

【0005】第2の発明は、第1の発明の画像切出し方
法において、前記イメージ切出し処理は、前記スキュー
量が一定値以下の場合には、前記領域をそのまま前記所
定場所のフィールドイメージとして切出すようにしてい
る。第1及び第2の発明によれば、以上のように画像切
出し方法を構成したので、帳票の方向とスキュー量とレ
イアウトを識別した結果とが、レイアウト識別処理で求
められる。そのレイアウトの識別結果により、帳票種類
が帳票レイアウト検索処理で特定される。その帳票種類
から帳票の所定場所のフィールド位置情報がイメージ切
出し処理で求められる。イメージ切出し処理では、さら
に、フィールド位置情報と帳票の方向とスキュー量とに
基づき、フィールドイメージを含む領域を切出し、その
領域のみに対して方向とスキュー量に対応する補正を行
う。つまり、帳票イメージ全体に対しての補正は行わな
い。そして、補正された領域からフィールドイメージが
切出される。
According to a second aspect of the present invention, in the image extracting method according to the first aspect, in the image extracting process, when the skew amount is equal to or less than a predetermined value, the area is directly extracted as a field image of the predetermined location. Like that. According to the first and second aspects of the invention, since the image clipping method is configured as described above, the result of identifying the direction of the form, the skew amount, and the layout is obtained by the layout identification processing. The form type is specified in the form layout search process based on the layout identification result. Based on the form type, field position information of a predetermined place of the form is obtained by the image cutout processing. In the image clipping process, a region including a field image is further clipped based on the field position information, the direction of the form, and the skew amount, and only the region is corrected according to the direction and the skew amount. That is, correction is not performed on the entire form image. Then, a field image is cut out from the corrected area.

【0006】第3の発明は、入力した対象帳票の帳票イ
メージから、該対象帳票における所定場所のフィールド
イメージをスキュー補正した状態で切出す画像切出し装
置において、次のような構成にしている。即ち、画像デ
ータで構成される前記帳票イメージを入力し、画像デー
タメモリに格納する画像入力手段と、前記画像データメ
モリに格納された帳票イメージを探索して該帳票イメー
ジの方向とスキュー量とを検出すると共に、該帳票イメ
ージのレイアウトを識別し、識別結果のキー情報を出力
するレイアウト識別手段と、帳票種類とキー情報とが予
め対応して登録された第1のデータベースと、前記レイ
アウト識別手段から出力されたキー情報を用いて前記第
1のデータベースを検索し、前記対象帳票の帳票種類を
特定して出力するデータベース検索手段と、前記帳票種
類と該各帳票種類ごとのフィールド位置情報とが予め対
応して登録された第2のデータベースと、前記特定され
た帳票種類を用いて前記第2のデータベースを検索し、
前記帳票における前記フィールド位置情報を求め、前記
レイアウト識別手段で検出された方向及びスキュー量と
該フィールド位置情報とに基づき、該スキュー量を考慮
した前記所定場所のフィールドイメージを含む領域を前
記格納された帳票イメージから切出し、該領域に対して
のみ該方向及びスキュー量に対応する補正を行い、該補
正後の領域から該所定場所のフィールドイメージを切出
す切出し手段とを、備えている。
According to a third aspect of the present invention, there is provided an image extracting apparatus for extracting a field image of a predetermined location in a target form from a form image of the input target form in a skew-corrected state as follows. That is, image input means for inputting the form image composed of image data and storing the form image in the image data memory, searching for the form image stored in the image data memory, and determining the direction and the skew amount of the form image. A layout identifying means for detecting and identifying the layout of the form image and outputting key information as an identification result; a first database in which form types and key information are registered in advance in correspondence with each other; A database search unit that searches the first database using the key information output from the server, specifies and outputs the form type of the target form, and the form type and the field position information for each form type. Searching the second database using the second database registered in advance and the specified form type,
The field position information in the form is obtained, and based on the direction and the skew amount detected by the layout identifying means and the field position information, the area including the field image of the predetermined location in consideration of the skew amount is stored. And a cut-out unit that cuts out a field image of the predetermined place from the corrected area by performing a correction corresponding to the direction and the skew amount only on the area.

【0007】第4の発明は、第3の発明の画像切出し装
置において、前記切出し手段は、前記スキュー量が一定
値以下の場合には、前記領域をそのまま前記所定場所の
フィールドイメージとして切出す構成にしている。第3
及び第4の発明によれば、以上のように画像切出し装置
を構成したので、画像入力手段により、帳票イメージが
入力され、帳票イメージの方向及びスキュー量と帳票イ
メージのレイアウト識別結果のキー情報とがレイアウト
識別手段で求められる。キー情報に対応する帳票種類が
データベース検索手段で求められる。イメージ切出し手
段は、データベース検索手段で求めた帳票種類でフィー
ルド位置情報を求め、レイアウト識別手段で検出された
方向及びスキュー量と該フィールド位置情報とに基づ
き、該スキュー量を考慮したフィールドイメージを含む
領域を帳票イメージから切出し、該領域に対してのみ該
方向及びスキュー量に対応する補正を行う。つまり、帳
票イメージ全体での補正は、行われない。補正後の領域
から該所定場所のフィールドイメージがイメージ切出し
手段により、切出される。
According to a fourth aspect of the present invention, in the image extracting apparatus according to the third aspect, when the skew amount is equal to or less than a predetermined value, the extracting unit cuts the area as it is as a field image of the predetermined location. I have to. Third
According to the fourth aspect of the present invention, since the image cutout apparatus is configured as described above, the form image is input by the image input means, and the key information of the direction and skew amount of the form image and the layout identification result of the form image are input. Is obtained by the layout identifying means. The form type corresponding to the key information is obtained by the database search means. The image cutout means obtains field position information based on the form type obtained by the database search means, and includes a field image in which the skew amount is considered based on the direction and skew amount detected by the layout identification means and the field position information. An area is cut out from the form image, and correction corresponding to the direction and the skew amount is performed only on the area. That is, correction is not performed for the entire form image. A field image at the predetermined location is cut out from the corrected area by the image cutting means.

【0008】[0008]

【発明の実施の形態】図1は、本発明の実施形態を示す
画像切出し装置の構成図である。この画像切出し装置
は、例えば複数のバーコードが記載されると共に領収書
が記載された企業の料金支払い帳票の帳票イメージIm
から、領収書等のフィールドイメージを切出す装置であ
り、イメージスキャナ、デジタルカメラ等の画像入力デ
バイス或いは画像ファイルから帳票イメージImを入力
する画像入力手段である画像入力部1と、この入力した
帳票イメージImを格納する画像データメモリ2とを備
えている。画像データメモリ2には、バスBを介してレ
イアウト識別手段であるバーコード探索・認識部3と、
バーコード認識結果メモリ4とが接続され、バーコード
認識結果メモリ4には、バスBを介して帳票の種類を特
定するための第1のデータベースである企業コードデー
タベース(企業コードDB)5と、データベース検索手
段である帳票レイアウト検索部6と、帳票レイアウト検
索結果メモリ7とが接続されている。
FIG. 1 is a block diagram of an image extracting apparatus according to an embodiment of the present invention. This image cutout apparatus is, for example, a form image Im of a company's fee payment form in which a plurality of bar codes are described and a receipt is described.
And an image input unit 1 which is an image input device such as an image scanner or a digital camera or an image input means for inputting a form image Im from an image file. And an image data memory 2 for storing the image Im. The image data memory 2 includes a barcode search / recognition unit 3 serving as a layout identification unit via a bus B;
A bar code recognition result memory 4 is connected, and the bar code recognition result memory 4 has a company code database (company code DB) 5 as a first database for specifying the type of a form via a bus B; A form layout search unit 6 as a database search means and a form layout search result memory 7 are connected.

【0009】バーコード探索・認識部3は、画像データ
メモリ2に格納された帳票イメージImからバーコード
位置を探索して帳票の方向Drと該帳票のスキュー量S
qと該帳票イメージImの端点座標Cとを求めて出力す
ると共に、企業コードを求め、これをレイアウトのキー
情報Kyとして出力するものである。バーコード認識結
果メモリ4は、バーコード探索・認識部3が出力した情
報を格納するものである。企業コードデータベース5に
は、企業コードと、企業の帳票のレイアウト名と、企業
ごとに設定された2値化閾値とが対応して登録されてい
る。帳票レイアウト検索部6は、バーコード認識結果メ
モリ4に格納された識別結果に基づき、企業コードデー
タベース5を検索し、帳票のレイアウト名を抽出する機
能を有している。帳票レイアウト検索結果メモリ7は、
帳票レイアウト検索部6で抽出された帳票のレイアウト
名を格納するものである。
The barcode search / recognition unit 3 searches the form image Im stored in the image data memory 2 for a barcode position, and finds the form direction Dr and the skew amount S of the form.
q and the end point coordinates C of the form image Im are obtained and output, and a company code is obtained and output as key information Ky of the layout. The barcode recognition result memory 4 stores information output by the barcode search / recognition unit 3. In the company code database 5, a company code, a layout name of a business form, and a binarization threshold set for each company are registered in association with each other. The form layout search unit 6 has a function of searching the company code database 5 based on the identification result stored in the barcode recognition result memory 4 and extracting a form layout name. The form layout search result memory 7
The layout name of the form extracted by the form layout search unit 6 is stored.

【0010】バスBには、さらに、第2のデータベース
である帳票レイアウトデータベース(帳票レイアウトD
B)8と、イメージ切出し手段であるイメージ切出し部
9と、認識結果メモリ10と、制御部11とが接続され
ている。帳票レイアウトデータベース8には、帳票のレ
イアウト名と帳票におけるフィールド位置情報Fとが対
応して登録されている。イメージ切出し部9は、帳票の
レイアウト名で帳票レイアウトデータベース8を検索し
て帳票の目的のフィールド位置情報Fを求め、後述する
処理により、その目的のフィールドのイメージのみをス
キュー補正した状態で切出す機能を有している。認識結
果メモリ10は、切出されたフィールドのイメージを格
納するものである。制御部11は、装置全体の制御を行
うものである。
The bus B further includes a form layout database (form layout D) as a second database.
B) 8, an image extracting unit 9 as an image extracting unit, a recognition result memory 10, and a control unit 11 are connected. In the form layout database 8, a form layout name and field position information F in the form are registered in association with each other. The image cutout unit 9 searches the form layout database 8 using the form layout name to obtain the target field position information F of the form, and cuts out only the image of the target field in a state where the skew correction is performed by processing described later. Has a function. The recognition result memory 10 stores an image of the extracted field. The control unit 11 controls the entire apparatus.

【0011】図2は、図1の装置で行う画像切出し方法
の概要を示すフローチャートであり、図3は、図2中の
イメージ切出し処理S40の詳細を示すフローチャート
である。図4は、帳票の構成例を示す図である。これら
の図を参照しつつ、この画像切出し装置の各部の動作と
画像切出し方法とを説明する。この画像切出し装置で
は、図2のように、画像入力処理S10と、レイアウト
識別処理であるバーコード探索/認識処理S20と、帳
票レイアウト検索処理S30とを行っておき、図3の処
理S41〜48からなるイメージ切出し処理S40を行
い、帳票の所定場所に記載された領収書の部分のイメー
ジを切出す。ここで、対象帳票を構成例を説明する。対
象帳票には、料金支払い帳票用JAN(Japanese Artic
le Number )コード20が3段あるいは4段に印刷さ
れ、さらに、領収印21が捺印(または印刷)された領
収書22のフィールドが所定の場所に配置されているも
のとする。
FIG. 2 is a flowchart showing an outline of an image extracting method performed by the apparatus shown in FIG. 1, and FIG. 3 is a flowchart showing details of an image extracting process S40 in FIG. FIG. 4 is a diagram illustrating a configuration example of a form. With reference to these drawings, the operation of each part of the image clipping apparatus and the image clipping method will be described. In this image cutout apparatus, as shown in FIG. 2, an image input process S10, a barcode search / recognition process S20 as a layout identification process, and a form layout search process S30 are performed, and the processes S41 to S48 in FIG. Is performed, and an image of a receipt portion described in a predetermined place of the form is extracted. Here, a configuration example of the target form will be described. The target forms include JAN (Japanese Artic
le Number) code 20 is printed in three or four rows, and the field of the receipt 22 on which the receipt 21 is stamped (or printed) is arranged at a predetermined place.

【0012】画像切出し装置では、図2の最初の画像入
力処理S10において、多値画像データで構成された対
象帳票の帳票イメージImが画像入力部1に入力される
と、該画像入力部1は、必要に応じて帳票イメージIm
に対する前処理を行い、イメージImを画像データメモ
リ2に格納する。バーコード探索・認識処理S20にお
いて、バーコード探索・認識部3は、画像データメモリ
2に格納されたイメージImのレイアウトを探索し、バ
ーコード20の位置と、帳票イメージImにおける帳票
の方向Drと帳票のスキュー量Sqと該帳票イメージI
mの端点座標Cとを求め、バーコード認識結果メモリ4
に格納する。さらに、バーコード探索・認識部3は、そ
のバーコード20を認識して企業コードを求め、これを
レイアウトのキー情報Kyとしてバーコード認識結果メ
モリ4に格納する。
In the image extracting apparatus, when a form image Im of a target form composed of multi-value image data is input to the image input unit 1 in the first image input processing S10 of FIG. , Form image Im if necessary
Is performed, and the image Im is stored in the image data memory 2. In the barcode search / recognition process S20, the barcode search / recognition unit 3 searches the layout of the image Im stored in the image data memory 2, and determines the position of the barcode 20, the direction Dr of the form in the form image Im, and the like. Form skew amount Sq and form image I
and the end point coordinates C of the m.
To be stored. Further, the barcode search / recognition unit 3 recognizes the barcode 20 to obtain a company code, and stores it in the barcode recognition result memory 4 as layout key information Ky.

【0013】バーコード探索・認識処理S20の後の帳
票レイアウト検索処理S30において、帳票レイアウト
検索部6は、バーコード認識結果メモリ4からキー情報
Kyを読み出し、該キー情報Kyで企業コードデータベ
ース5を検索して帳票の種類を特定する帳票レイアウト
名Nと2値化閾値Thとを抽出する。この帳票レイアウ
ト名N及び2値化閾値Thが、帳票レイアウト検索結果
メモリ7に格納される。イメージ切出し処理S40にお
いて、イメージ切出し部9は、帳票レイアウト検索結果
メモリ7から帳票レイアウト名N及び2値化閾値Thを
読み出し、該レイアウト名Nで帳票レイアウトデータベ
ース8を検索する。
In a form layout search process S30 after the barcode search / recognition process S20, the form layout search unit 6 reads the key information Ky from the barcode recognition result memory 4, and uses the key information Ky to read the company code database 5 with the key information Ky. A form layout name N for specifying a form type by searching and a binarization threshold Th are extracted. The form layout name N and the binarization threshold Th are stored in the form layout search result memory 7. In the image cutout processing S40, the image cutout unit 9 reads out the form layout name N and the binarization threshold Th from the form layout search result memory 7, and searches the form layout database 8 using the layout name N.

【0014】図5は、帳票レイアウトデータベース8の
概要を示す図である。帳票レイアウトデータベース8に
は、帳票レイアウト名Nと各帳票におけるフィールド位
置情報Fとが、図5のように対応して格納されている。
帳票レイアウトデータベース8の検索により、領収書の
位置情報Fが求められる。イメージ切出し部9は、さら
に、画像データメモリ2から帳票イメージImを読み出
すと共に、バーコード認識結果メモリ4から帳票の方向
Dr、スキュー量Sq及び帳票端座標Cを読み出し、以
下のように目的のフィールドイメージを切り出す。イメ
ージ切出し部9は、図3の処理S41及びS42で、2
値化閾値Thで帳票イメージImを2値化する。このよ
うに、帳票種類に応じた2値化を行う事により、例えば
印刷色の異なる帳票に対しても、適切なイメージが得ら
れる。
FIG. 5 is a diagram showing an outline of the form layout database 8. The form layout database 8 stores a form layout name N and field position information F in each form as shown in FIG.
The position information F of the receipt is obtained by searching the form layout database 8. The image cutout unit 9 further reads out the form image Im from the image data memory 2 and also reads out the form direction Dr, the skew amount Sq, and the form end coordinate C from the barcode recognition result memory 4, and outputs the target field as follows. Cut out the image. In steps S41 and S42 of FIG.
The form image Im is binarized by the binarization threshold Th. In this manner, by performing binarization according to the form type, an appropriate image can be obtained even for forms having different print colors, for example.

【0015】図6は、帳票イメージImの座標を示す図
であり、図7(a),(b)は、領収書22の位置計算
を示す図である。2値化の後の処理S43において、イ
メージ切出し部9は、帳票端座標Cから帳票の中心座標
Oを計算する。中心座標Oの計算の後の処理S44にお
いて、イメージ切出し部9は、中心座標Oを基点とし
て、フィールド位置情報Fとスキュー量Sqとに基づ
き、図7(a)のように、領収書22の端部23の位置
を算出する。ここで、帳票の方向Drが正規の方向とは
逆になっている場合には、領収書22の端部23の位置
を、図7(b)のように、中心Oから逆転させて計算す
る。
FIG. 6 is a diagram showing the coordinates of the form image Im, and FIGS. 7A and 7B are diagrams showing the calculation of the position of the receipt 22. FIG. In the processing S43 after the binarization, the image cutout unit 9 calculates the center coordinates O of the form from the form end coordinates C. In the process S44 after the calculation of the center coordinates O, the image cutout unit 9 starts from the center coordinates O based on the field position information F and the skew amount Sq as shown in FIG. The position of the end 23 is calculated. Here, when the direction Dr of the form is opposite to the normal direction, the position of the end 23 of the receipt 22 is inverted from the center O as shown in FIG. .

【0016】図8(a),(b)は、領域の切出しの概
念を示す図である。領収書22の端部23の算出が終了
したイメージ切出し部9は、処理S45を行い、領収書
22のサイズとスキュー量Sqとに基づき、領収書22
とそのスキュー量Sqに応じて決まる周辺を含む部分と
によって構成される領域24を、切り出す。帳票の方向
が正規な場合の領域24は、図8(a)の用になり、方
向が異なる場合には図8(b)のようになる。なお、こ
の領域22を切出すときには、当該画像切出し装置が出
力する対象に適した密度に変換しつつ、切出しを行う。
FIGS. 8A and 8B are views showing the concept of region extraction. The image cutout unit 9 in which the calculation of the end portion 23 of the receipt 22 is completed performs the processing S45, and based on the size of the receipt 22 and the skew amount Sq, the receipt 22 is processed.
An area 24 composed of a portion including a periphery determined according to the skew amount Sq is cut out. The area 24 when the form direction is normal is as shown in FIG. 8A, and when the direction is different, it is as shown in FIG. 8B. When the area 22 is cut out, the image is cut out while being converted into a density suitable for the output target of the image cutting apparatus.

【0017】図9は、領域の補正を示す図である。イメ
ージ切出し部9は、領域24に対する回転を処理S46
を行い、スキュー量Sqの補正を行う。さらに、イメー
ジ切出し部9は、必要に応じて領域24を回転させて領
収書22の縦横を所望の方向に揃える。
FIG. 9 is a diagram showing correction of an area. The image cutout unit 9 processes the rotation with respect to the region 24 (S46).
And the skew amount Sq is corrected. Further, the image cutout unit 9 rotates the area 24 as necessary to align the length and width of the receipt 22 in a desired direction.

【0018】図10は、フィールドイメージの切出しを
示す図である。処理S46の後の処理S47において、
イメージ切出し部9は、スキュー量Sqが許容範囲内か
否かを判定し、許容範囲内であれば、回転処理された領
域24を領収書22のフィールドイメージ25としてそ
のまま認識結果メモリ10に格納する。また、スキュー
量Sqが許容範囲を越えている場合には領域24では面
積が広すぎるので、処理S48において、後処理の障害
にならないように、領収書22のフィールドイメージ2
5を切出して認識結果メモリ10に格納する。画像入力
処理S10からイメージ切出し処理S40の一連の処理
により、帳票イメージImから、切出し目的の領収書2
2のフィールドイメージ25が切出され、スキュー補正
や回転補正されて認識結果メモリ10に格納されたこと
になる。制御部11は、外部の例えばプリンタ等に認識
結果メモリ10に格納されたフィールドイメージ25を
出力する。
FIG. 10 is a diagram showing extraction of a field image. In the processing S47 after the processing S46,
The image cutout unit 9 determines whether the skew amount Sq is within an allowable range, and if it is within the allowable range, stores the rotated area 24 as a field image 25 of the receipt 22 in the recognition result memory 10 as it is. . If the skew amount Sq exceeds the allowable range, the area of the region 24 is too large, so that in the process S48, the field image 2 of the receipt 22 is set so as not to hinder post-processing.
5 is cut out and stored in the recognition result memory 10. By a series of processing from the image input processing S10 to the image extraction processing S40, the receipt 2 for the extraction purpose is extracted from the form image Im.
2, the skew correction and the rotation correction are stored in the recognition result memory 10. The control unit 11 outputs the field image 25 stored in the recognition result memory 10 to an external device such as a printer.

【0019】以上のように、この画像切出し装置では、
イメージ切出し部9を、帳票種類の帳票レイアウト名N
を用いて帳票レイアウトデータベース8を検索し、帳票
イメージImにおけるフィールド位置情報Fを求め、方
向Dr及びスキュー量Sqと該フィールド位置情報Fと
に基づき、領収書22のフィールドを含む領域24を帳
票イメージImから切出し、該領域24に対してのみ回
転処理S46で補正を行い、フィールドイメージ25を
切出すようにしている。そのため、帳票イメージIm全
体に補正を行う場合に比べて、処理が少なくなり、フィ
ールドイメージ25が切出されるまでの時間を短縮でき
る。その上、スキュー量Sqの判定を処理S47で行
い、該スキュー量Sqによっては処理S48での切出し
を省略するので、さらに、処理速度の短縮が図れる。
As described above, in this image extracting apparatus,
The image cutout unit 9 is set to the form layout name N of the form type.
Is used to search the form layout database 8 to obtain field position information F in the form image Im. Based on the direction Dr, the skew amount Sq, and the field position information F, the area 24 including the field of the receipt 22 is converted to the form image. The image is cut out from Im, the correction is performed only on the area 24 in the rotation processing S46, and the field image 25 is cut out. Therefore, as compared with the case where the entire form image Im is corrected, the number of processes is reduced, and the time until the field image 25 is cut can be reduced. In addition, the skew amount Sq is determined in step S47, and the cutout in step S48 is omitted depending on the skew amount Sq, so that the processing speed can be further reduced.

【0020】なお、本発明は、上記実施形態に限定され
ず種々の変形が可能である。例えば、上記実施形態で
は、バーコード20が印刷された帳票を対象とし、該バ
ーコード20の位置等から帳票の方向や企業コードを求
めるようにしたが、バーコード20がなくても、帳票上
に方向検出のできるマーク等が付されるか、或は、レイ
アウトを識別できる罫線やシート識別記号等が付されて
いれば、適用可能である。
Note that the present invention is not limited to the above embodiment, and various modifications are possible. For example, in the above-described embodiment, the form and the company code of the form are determined from the position and the like of the barcode 20 on the form on which the barcode 20 is printed. This is applicable as long as a mark or the like that can detect the direction is attached to the mark or a ruled line or sheet identification symbol that can identify the layout is attached to the mark.

【0021】[0021]

【発明の効果】以上詳細に説明したように、第1及び第
2の発明によれば、画像入力処理とレイアウト識別処理
と、帳票レイアウト検索処理とを行って、対象帳票の帳
票種類を特定しておき、イメージ切出し処理では、帳票
イメージ全体に対する補正を行わず、対象帳票の所定場
所のフィールドが含まれる領域を切出して該領域にのみ
帳票の方向やスキュー量に対応する補正を行って、所定
の場所のフィールドイメージを切出すようにしている。
そのため、目的のフィールドイメージが出力されるまで
の処理を削減でき、その分、処理時間を短縮できる。
As described above in detail, according to the first and second aspects, the image input processing, the layout identification processing, and the form layout search processing are performed to specify the form type of the target form. In the image cutout process, the entire form image is not corrected, but an area including a field at a predetermined location of the target form is cut out, and only the area is corrected according to the direction and skew amount of the form. The field image of the place is cut out.
Therefore, the processing until the target field image is output can be reduced, and the processing time can be shortened accordingly.

【0022】第3及び第4の発明によれば、画像入力手
段と、レイアウト識別手段と、データベース検索手段
と、第1及び第2のデータベースと、イメージ切出し手
段を設け、イメージ切出し手段では、帳票イメージ全体
に対する補正を行わず、対象帳票の所定場所のフィール
ドが含まれる領域を切出して該領域にのみ帳票の方向や
スキュー量に対応する補正を行って、所定の場所のフィ
ールドイメージを切出す構成にしている。そのため、目
的のフィールドイメージが出力されるまでの処理を削減
でき、その分、処理時間を短縮できる。
According to the third and fourth aspects, the image input means, the layout identification means, the database search means, the first and second databases, and the image cutout means are provided. A configuration in which a field including a field at a predetermined location of a target form is cut out without performing correction on the entire image, a correction corresponding to the direction and skew amount of the form is performed only on the area, and a field image at a predetermined location is cut out. I have to. Therefore, the processing until the target field image is output can be reduced, and the processing time can be shortened accordingly.

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

【図1】本発明の実施形態を示す画像切出し装置の構成
図である。
FIG. 1 is a configuration diagram of an image cutout apparatus according to an embodiment of the present invention.

【図2】図1の装置で行う画像切出し方法の概要を示す
フローチャートである。
FIG. 2 is a flowchart showing an outline of an image clipping method performed by the apparatus of FIG.

【図3】図2中のイメージ切出し処理S40の詳細を示
すフローチャートである。
FIG. 3 is a flowchart showing details of an image cutting process S40 in FIG. 2;

【図4】帳票の構成例を示す図である。FIG. 4 is a diagram illustrating a configuration example of a form.

【図5】帳票レイアウトデータベース8の概要を示す図
である。
FIG. 5 is a diagram showing an outline of a form layout database 8;

【図6】帳票イメージの座標を示す図である。FIG. 6 is a diagram showing coordinates of a form image.

【図7】領収書の位置計算を示す図である。FIG. 7 is a diagram showing position calculation of a receipt.

【図8】領域の切出しの概念を示す図である。FIG. 8 is a diagram showing a concept of cutting out an area.

【図9】領域の補正を示す図である。FIG. 9 is a diagram illustrating correction of an area.

【図10】フィールドイメージの切出しを示す図であ
る。
FIG. 10 is a diagram illustrating extraction of a field image.

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

1 画像入力部 2 画像データメモリ 3 バーコード探索・認識部 4 バーコード認識結果メモリ 5 企業コードデータベース 6 帳票レイアウト検索部 7 帳票レイアウト検索結果メモリ 8 帳票レイアウトデータベース 9 イメージ切出し部 10 認識結果メモリ 20 バーコード 22 領収書 24 領域 25 フィールドイメージ S10 画像入力処理 S20 バーコード探索・認識処理 S30 帳票レイアウト検索処理 S40 イメージ切出し処理 DESCRIPTION OF SYMBOLS 1 Image input part 2 Image data memory 3 Barcode search / recognition part 4 Barcode recognition result memory 5 Company code database 6 Form layout search part 7 Form layout search result memory 8 Form layout database 9 Image extraction part 10 Recognition result memory 20 Bar Code 22 Receipt 24 Area 25 Field image S10 Image input processing S20 Barcode search / recognition processing S30 Form layout search processing S40 Image extraction processing

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力した対象帳票の帳票イメージから、
該対象帳票における所定場所のフィールドイメージをス
キュー補正した状態で切出す画像切出し方法において、 画像データで構成される前記帳票イメージを入力し、画
像データメモリに格納する画像入力処理と、 前記画像データメモリに格納された前記帳票イメージを
探索して前記対象帳票の方向とスキュー量とを検出する
と共に該対象帳票のレイアウトを識別するレイアウト識
別処理と、 前記レイアウトの識別結果から前記対象帳票の帳票種類
を特定する帳票レイアウト検索処理とを行っておき、 前記特定された帳票種類から、前記対象帳票の所定場所
のフィールド位置情報を求め、該フィールド位置情報と
前記レイアウト識別処理で検出された前記方向及びスキ
ュー量とに基づき、該スキュー量を考慮した前記フィー
ルドイメージを含む領域を前記格納された帳票イメージ
から切出し、該領域に対してのみ該方向及びスキュー量
に対応する補正を行い、該補正後の領域から該所定場所
のフィールドイメージを切出すイメージ切出し処理を行
うことを特徴とする画像切出し方法。
1. From a form image of an input target form,
An image extracting method for extracting a field image at a predetermined location in a target form in a skew-corrected state, comprising: inputting the form image composed of image data and storing the form image in an image data memory; A layout identification process for detecting the direction and skew amount of the target form by searching the form image stored in the target form and identifying a layout of the target form; and determining a form type of the target form from the layout identification result. A form layout search process to be specified is performed, and field position information of a predetermined place of the target form is obtained from the specified form type, and the field position information and the direction and skew detected in the layout identification process are obtained. Based on the skew amount. A region corresponding to the direction and skew amount is cut out only from the stored form image, and a field image at the predetermined location is cut out from the corrected region. An image cutting method characterized by the above-mentioned.
【請求項2】 前記イメージ切出し処理は、前記スキュ
ー量が一定値以下の場合には、前記領域をそのまま前記
所定場所のフィールドイメージとして切出すことを特徴
とする請求項1記載の画像切出し方法。
2. The image cutting method according to claim 1, wherein in the image cutting processing, when the skew amount is equal to or smaller than a predetermined value, the area is cut as it is as a field image of the predetermined location.
【請求項3】 入力した対象帳票の帳票イメージから、
該対象帳票における所定場所のフィールドイメージをス
キュー補正した状態で切出す画像切出し装置において、 画像データで構成される前記帳票イメージを入力し、画
像データメモリに格納する画像入力手段と、 前記画像データメモリに格納された帳票イメージを探索
して該帳票イメージの方向とスキュー量とを検出すると
共に、該帳票イメージのレイアウトを識別し、識別結果
のキー情報を出力するレイアウト識別手段と、 帳票種類と前記キー情報とが予め対応して登録された第
1のデータベースと、 前記レイアウト識別手段から出力された前記キー情報を
用いて前記第1のデータベースを検索し、前記対象帳票
の帳票種類を特定して出力するデータベース検索手段
と、 前記帳票種類と該各帳票種類ごとのフィールド位置情報
とが予め対応して登録された第2のデータベースと、 前記特定された帳票種類を用いて前記第2のデータベー
スを検索し、前記帳票における前記フィールド位置情報
を求め、前記レイアウト識別手段で検出された方向及び
スキュー量と該フィールド位置情報とに基づき、該スキ
ュー量を考慮した前記所定場所のフィールドイメージを
含む領域を前記格納された帳票イメージから切出し、該
領域に対してのみ該方向及びスキュー量に対応する補正
を行い、該補正後の領域から該所定場所のフィールドイ
メージを切出すイメージ切出し手段とを、備えたことを
特徴とする画像切出し装置。
3. From the input form image of the target form,
An image cutout device for cutting out a field image at a predetermined location in the target form in a state where the skew is corrected; an image input means for inputting the form image composed of image data and storing the form image in an image data memory; Layout identifying means for searching the form image stored in the form image, detecting the direction and skew amount of the form image, identifying the layout of the form image, and outputting key information of the identification result, A first database in which key information is registered in advance in correspondence with the first database, using the key information output from the layout identifying means, searching for the first database, specifying a form type of the target form; The database search means to be output, and the form type and field position information for each form type are stored in advance. A second database registered accordingly, and a search of the second database using the specified form type, obtaining the field position information in the form, the direction detected by the layout identifying means, Based on the skew amount and the field position information, an area including the field image at the predetermined location in consideration of the skew amount is cut out from the stored form image, and only the area corresponds to the direction and the skew amount. An image extracting device for performing a correction and extracting a field image at the predetermined location from the area after the correction.
【請求項4】 前記イメージ切出し手段は、前記スキュ
ー量が一定値以下の場合には前記領域をそのまま前記所
定場所のフィールドイメージとして切出す構成にしたこ
とを特徴とする請求項3記載の画像切出し装置。
4. The image clipping device according to claim 3, wherein the image clipping means is configured to clip the area as it is as a field image of the predetermined location when the skew amount is equal to or less than a predetermined value. apparatus.
JP10362174A 1998-12-21 1998-12-21 Image segmenting method and image segmenting device Withdrawn JP2000182030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10362174A JP2000182030A (en) 1998-12-21 1998-12-21 Image segmenting method and image segmenting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10362174A JP2000182030A (en) 1998-12-21 1998-12-21 Image segmenting method and image segmenting device

Publications (1)

Publication Number Publication Date
JP2000182030A true JP2000182030A (en) 2000-06-30

Family

ID=18476158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10362174A Withdrawn JP2000182030A (en) 1998-12-21 1998-12-21 Image segmenting method and image segmenting device

Country Status (1)

Country Link
JP (1) JP2000182030A (en)

Similar Documents

Publication Publication Date Title
US20020018071A1 (en) Method and apparatus for identification of documents, and computer product
JP2010061471A (en) Character recognition device and program
JP6624120B2 (en) Character recognition device, character recognition method, character recognition program, and computer-readable recording medium storing character recognition program
JP2000182030A (en) Image segmenting method and image segmenting device
US20100329537A1 (en) Computer-implemented methods of identifying an optical character recognition (ocr) font to assist an operator in setting up a bank remittance coupon application
JP2003030654A (en) Pattern identification device, pattern identification method and program for pattern identification
JP2002032704A (en) System and method for document processing, storage medium, and document
JP3090070B2 (en) Form identification method and device
JP3959451B2 (en) Image reading system
JP4009314B2 (en) Form layout identification method and form layout identification system
CN115131806B (en) Method and system for identifying OCR (optical character recognition) image information of various certificates based on deep learning
JP4096458B2 (en) Image reading system
JP3919390B2 (en) Character recognition device
JP2868392B2 (en) Handwritten symbol recognition device
JPH10124610A (en) Optical character reading device
JP2022186250A (en) Image processing device, image processing method, and program
JP2665226B2 (en) Character recognition device
JP2005242786A (en) Form identification apparatus and form identification method
JP4580520B2 (en) Character recognition method and character recognition apparatus
JP4544691B2 (en) Character reader
JPH10187885A (en) Character recognizer and storage medium storing character recognition processing
JP2003099709A (en) Misread character correction method and optical character recognition device
KR100817835B1 (en) Form editor document resistrating method using barcode
JPH09326007A (en) Character recognition correcting device and its correcting method
JP2002279344A (en) Character recognition device and method, and recording medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060307