JP2001229312A - Method and device for segmenting image - Google Patents

Method and device for segmenting image

Info

Publication number
JP2001229312A
JP2001229312A JP2000038495A JP2000038495A JP2001229312A JP 2001229312 A JP2001229312 A JP 2001229312A JP 2000038495 A JP2000038495 A JP 2000038495A JP 2000038495 A JP2000038495 A JP 2000038495A JP 2001229312 A JP2001229312 A JP 2001229312A
Authority
JP
Japan
Prior art keywords
image
input
size
cutout
sprocket
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
JP2000038495A
Other languages
Japanese (ja)
Inventor
Kiyoshi Ishihara
清志 石原
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 JP2000038495A priority Critical patent/JP2001229312A/en
Publication of JP2001229312A publication Critical patent/JP2001229312A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To correctly segment a partial image even in a document image with a sprocket. SOLUTION: The document image inputted by a document image input part 26 is stored in a document image memory 23. A layout discriminatining part 27 detects a barcode in the document image stored in the memory 23 and retrieves a layout database (DB) 24 based on the detected result to obtain registered information (record) corresponding to the document image. As for a prescribed position registered in the record obtained by the part 27, an image detecting/segmenting part 28 segments the position corresponding to the document stored in the memory 23 and segments the segmented partial image in an image memory 25.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イメージスキャ
ナ、ファクシミリ(以下「FAX」という。)、画像フ
ァイル等から帳票イメージを入力し、予め登録された帳
票の部分イメージを切り出すイメージ切り出し方法及び
イメージ切り出し装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image cutting method and an image cutting method for inputting a form image from an image scanner, a facsimile (hereinafter referred to as "FAX"), an image file or the like, and cutting out a partial image of the form registered in advance. It concerns the device.

【0002】[0002]

【従来の技術】図2(A)〜(D)は、従来用いられて
いる帳票の構成例を示す図であり、同図(A)はスプロ
ケットが切り離された帳票の図、同図(B)は左スプロ
ケット付きの帳票の図、同図(C)は右スプロケット付
きの帳票の図、及び同図(D)は左右にスプロケットが
付いた帳票の図である。
2. Description of the Related Art FIGS. 2 (A) to 2 (D) are diagrams showing an example of the configuration of a conventionally used form. FIG. 2 (A) is a diagram of a form with sprockets separated, and FIG. ) Is a diagram of a report with a left sprocket, FIG. 4C is a diagram of a report with a right sprocket, and FIG. 4D is a diagram of a report with sprockets on the left and right.

【0003】電気、水道、ガス、電話等といった公共料
金支払い帳票等の帳票10では、例えば、企業コード
(電力会社名)がaaa、帳票名(電気料金)がAAA
の場合、幅Wa及び高さHaの長方形の用紙の左側に、
料金支払い帳票用JAN(Japanese Article Number)
のバーコード11が3段あるいは4段に印刷され、さら
に、右側に領収印が捺印あるいは印刷された領収書12
の領域が設けられている。領収書12の領域は、幅Wa
1、高さHa1の大きさである。帳票10の側面には、
左スプロケット13Lがミシン目14Lを介して、ある
いは右スプロケット13Rがミシン目14Rを介して付
着されている。左スプロケット13Lの幅はLa、右ス
プロケット13Rの幅はRaである。これらの左スプロ
ケット13Lあるいは右スプロケット13Rは、多数の
帳票10が印刷されたテープ状の連続紙の位置決めや紙
送り動作のために設けられている。
In a form 10 such as a utility bill payment form such as electricity, water, gas, telephone, etc., for example, the company code (power company name) is aaa, and the form name (electricity charge) is AAA.
In the case of, on the left side of a rectangular sheet of width Wa and height Ha,
JAN (Japanese Article Number) for fee payment form
Is printed in three or four rows, and a receipt is printed or stamped on the right.
Area is provided. The area of the receipt 12 has a width Wa.
1. The size of the height Ha1. On the side of the form 10,
A left sprocket 13L is attached via a perforation 14L, or a right sprocket 13R is attached via a perforation 14R. The width of the left sprocket 13L is La, and the width of the right sprocket 13R is Ra. The left sprocket 13L or the right sprocket 13R is provided for positioning and feeding a tape-shaped continuous paper on which a large number of forms 10 are printed.

【0004】従来、図2のような帳票10における領収
書12の部分イメージを切り出すためのイメージ切り出
し方法あるいはイメージ切り出し装置では、イメージス
キャナ、FAX、画像ファイル等から、帳票10の帳票
イメージImを入力する。この際、左スプロケット13
Lあるいは右スプロケット13Rは、読み取りのために
不要であるので、切り取られてから帳票イメージImに
変換されて入力される。複数の帳票イメージImを入力
する場合、これらの帳票イメージImが正しい方向でな
いときに、スキュー(ずれ)が生じることがあるので、
帳票イメージImの全体を回転させて補正する。
Conventionally, in an image extracting method or an image extracting apparatus for extracting a partial image of a receipt 12 in a form 10 as shown in FIG. 2, a form image Im of the form 10 is inputted from an image scanner, a facsimile, an image file or the like. I do. At this time, the left sprocket 13
Since the L or right sprocket 13R is unnecessary for reading, it is cut and then converted into a form image Im and input. When a plurality of form images Im are input, skew (shift) may occur when these form images Im are not in the correct direction.
The entire form image Im is rotated and corrected.

【0005】帳票登録時には、帳票イメージImの幅方
向をX軸、高さ方向をY軸として、予めバーコード11
の企業コードaaaや帳票名AAAに対応して、例え
ば、該帳票イメージImの左上端の座標(xo
o )、切り出し対象となる領収書12の領域の左上端
の座標(Xa 1,Ya 1)、及び領収書12の領域のサ
イズ等が登録されている。そのため、イメージ切り出し
時には、回転補正された帳票イメージImの左上端の座
標(xo ,yo )を検出し、登録された切り出し位置の
座標(Xa 1,Ya 1)及び切り出しサイズを取得し、
領収書12の領域の部分イメージの切り出しを行ってい
た。
At the time of form registration, the bar code 11 is set in advance with the width direction of the form image Im as the X axis and the height direction as the Y axis.
Corresponding to the company code aaa and the form name AAA, for example, the coordinates (x o ,
y o), coordinates of the upper left point of the area of the receipt 12 to be cut target (X a 1, Y a 1 ), and the size or the like of the area of the receipt 12 has been registered. Therefore, when the image cutting out, the coordinates of the upper left point of the rotation corrected form image Im (x o, y o) is detected and registered clipping position coordinates (X a 1, Y a 1 ) and acquires the clipping size And
The partial image of the area of the receipt 12 was cut out.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
イメージ切り出し方法あるいはイメージ切り出し装置で
は、次のような課題があった。図2(B)〜(D)のよ
うなスプロケット付き帳票10を読み取り対象にする場
合、スプロケット13L,13Rは読み取りの際には不
要となるので、切り取ってから帳票イメージImの入力
を行うことが必要である。ところが、オペレータの切り
取りミス等によって、帳票イメージ取得時にスプロケッ
ト13L,13Rが付着されたまま運用されることがあ
る。このような場合、帳票イメージIm中の帳票端がス
プロケット幅分広がるため、読み取り基準点にずれが生
じ、部分イメージを正しく切り出せないという課題があ
った。
However, the conventional image clipping method or image clipping apparatus has the following problems. When the form 10 with sprockets as shown in FIGS. 2B to 2D is to be read, the sprockets 13L and 13R are not required at the time of reading. Therefore, the form image Im may be cut out and then input. is necessary. However, due to an operator's cutting error or the like, the sprockets 13L and 13R may be operated with the sprockets 13L and 13R attached when the form image is acquired. In such a case, the form edge in the form image Im is widened by the width of the sprocket, so that the reading reference point is shifted, and there is a problem that a partial image cannot be cut out correctly.

【0007】本発明は、前記従来技術が持っていた課題
を解決し、スプロケット付きの帳票イメージでも、この
帳票イメージ中の部分イメージを正しく切り出すことが
できるイメージ切り出し方法及びイメージ切り出し装置
を提供することを目的とする。
An object of the present invention is to solve the problems of the prior art and to provide an image clipping method and an image clipping device capable of correctly clipping a partial image in a form image even with a form image with a sprocket. With the goal.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に、本発明のうちの第1の発明は、イメージ切り出し方
法において、左右に切り離し可能な紙送り領域が付着さ
れた帳票、あるいはその紙送り領域が切り取られた帳票
が、電気信号に変換された帳票イメージを入力する帳票
イメージ入力処理と、前記入力された入力帳票イメージ
に対して、この入力帳票イメージを検索することによ
り、またはオペレータの入力により、該入力帳票イメー
ジ中の帳票の種別を識別して識別結果を出力する帳票種
別識別処理と、前記帳票の紙送り領域を切り離した状態
での帳票サイズ、左右の紙送り領域の幅、及び帳票中心
からの切り出しイメージの相対位置が予め登録されてい
る帳票レイアウトデータベース(以下、データベースを
「DB」という。)を、前記識別結果を用いて検索して
該当する登録情報を出力する帳票レイアウトデータ検索
処理と、前記登録情報に含まれる帳票サイズ、及び紙送
り領域幅から該紙送り領域の付き方の各パターンに対応
した帳票想定サイズを算出し、前記入力帳票イメージか
ら検出された帳票端座標及び実帳票サイズの内の該実帳
票サイズと該帳票想定サイズとを比較して該紙送り領域
の付き方を判別し、該帳票端座標を補正する帳票端座標
補正処理と、前記補正された帳票端座標を基に帳票中心
座標を算出し、前記登録情報に含まれる帳票中心からの
切り出しイメージの相対位置により決定される位置の部
分イメージを、前記入力帳票イメージから切り出すイメ
ージ切り出し処理と、を有している。
According to a first aspect of the present invention, there is provided an image cutting method, comprising: a form to which a paper feed area capable of being separated to the left and right is attached; The form in which the feed area is cut out is a form image input process for inputting a form image converted into an electric signal, and, for the input form image, searching for this input form image, or By input, form type identification processing for identifying the form type in the input form image and outputting the identification result, form size in a state where the paper feed area of the form is separated, width of left and right paper feed areas, And a form layout database (hereinafter, the database is referred to as “DB”) in which the relative position of the cutout image from the center of the form is registered in advance. A form layout data search process for searching and outputting corresponding registration information by using the identification result; and forming a form size included in the registration information, and a width of the paper feed area to each pattern of attaching the paper feed area. The corresponding assumed form size is calculated, and the form end coordinates detected from the input form image and the actual form size of the actual form size are compared with the form assumed size to determine how to attach the paper feed area. Then, a form end coordinate correction process for correcting the form end coordinates, calculating form center coordinates based on the corrected form end coordinates, and determining the form center coordinates included in the registration information by a relative position of a cutout image from the form center. Image cut-out processing for cutting out a partial image at a position to be set from the input form image.

【0009】第2の発明は、第1の発明のイメージ切り
出し方法において、切り離し可能な紙送り領域は、ミシ
ン目を介して付着されたスプロケットである。
According to a second aspect, in the image cutting method according to the first aspect, the detachable paper feed area is a sprocket attached through a perforation.

【0010】第3の発明は、イメージ切り出し装置にお
いて、左右に切り離し可能なスプロケットが付着された
帳票、あるいはそのスプロケットが切り取られた帳票
が、電気信号に変換された帳票イメージを入力する帳票
イメージ入力手段と、前記入力された入力帳票イメージ
に対して、この入力帳票イメージを検索することによ
り、またはオペレータの入力により、該入力帳票イメー
ジ中の帳票の種別を識別してキー情報を出力する帳票種
別識別手段と、前記帳票のスプロケットを切り離した状
態での帳票サイズ、左右のスプロケット幅、及び帳票中
心からの切り出しイメージの相対位置が予め登録されて
いる帳票レイアウトDBと、前記キー情報で前記帳票レ
イアウトDBを検索して該当する登録情報を出力する帳
票レイアウトデータ検索手段と、前記入力帳票イメージ
を検索して帳票端を検出し、この帳票端から実帳票サイ
ズを求めて該帳票端座標と該実帳票サイズを出力する帳
票端検出手段と、前記登録情報に含まれる帳票サイズ、
及びスプロケット幅から該スプロケットの付き方の各パ
ターンに対応した帳票想定サイズを算出し、前記帳票端
検出手段から出力された実帳票サイズと該帳票想定サイ
ズとを比較して該スプロケットの付き方を判別し、前記
帳票端検出手段から出力された帳票端座標を補正する帳
票端座標補正手段と、前記補正された帳票端座標を基に
帳票中心座標を算出し、前記登録情報に含まれる帳票中
心からの切り出しイメージの相対位置により決定される
位置の部分イメージを、前記入力帳票イメージから切り
出すイメージ切り出し手段と、を有している。
According to a third aspect of the present invention, there is provided an image cutout apparatus for inputting a form to which a sprocket which can be cut off from the left and right is attached, or a form to which the sprocket has been cut is converted into an electric signal. Means and a form type for retrieving the input form image by retrieving the input form image or inputting an operator to identify the type of the form in the input form image and to output key information An identification unit, a form layout DB in which a form size, a left and right sprocket width, and a relative position of a cutout image from the center of the form in a state where a sprocket of the form is separated are registered in advance, and the form layout based on the key information. Form layout data search that searches the DB and outputs the corresponding registration information Means, a form edge detecting means for searching the input form image to detect a form edge, obtaining an actual form size from the form edge, and outputting the form edge coordinates and the actual form size; and Form size,
And an estimated form size corresponding to each pattern of how to attach the sprocket from the sprocket width and comparing the actual form size output from the form end detecting means with the assumed form size to determine how to attach the sprocket. A form end coordinate correcting means for determining and correcting form end coordinates output from the form end detecting means; calculating form center coordinates based on the corrected form end coordinates; and calculating a form center included in the registration information. And an image cutout unit for cutting out a partial image at a position determined by the relative position of the cutout image from the input form image.

【0011】このように、第1〜第3の発明の構成を採
用したことにより、帳票イメージ入力処理(帳票イメー
ジ入力手段)によって帳票イメージが入力されると、帳
票種別識別処理(帳票種別識別手段)では、入力帳票イ
メージ中の帳票の種別を識別して識別結果(キー情報)
を出力する。帳票レイアウトDBには、帳票の紙送り領
域(例えば、ミシン目を介して付着されたスプロケッ
ト)を切り離した状態での帳票サイズ、左右のスプロケ
ット幅、及び帳票中心からの切り出しイメージの相対位
置が予め登録されている。そして、帳票レイアウトデー
タ検索処理(帳票レイアウトデータ検索手段)では、帳
票種別識別処理(帳票種別識別手段)によって出力され
た識別結果(キー情報)で、帳票レイアウトDBを検索
して該当する登録情報を出力し、帳票端座標補正処理
(帳票端座標補正手段)へ送る。また、帳票端検出手段
では、入力帳票イメージを検索して帳票端を検出し、こ
の帳票端から実帳票サイズを求めて該帳票端座標と該実
帳票サイズを出力し、帳票端座標補正処理(帳票端座標
補正手段)へ送る。
As described above, by adopting the first to third aspects of the present invention, when a form image is input by the form image input processing (form image input means), the form type identification processing (form type identification means) ) Identifies the form type in the input form image and identifies the result (key information)
Is output. In the form layout DB, the form size, left and right sprocket widths, and the relative position of the cut-out image from the center of the form in a state where the paper feed area (for example, a sprocket attached through a perforation) of the form are separated are previously set. It is registered. In the form layout data search processing (form layout data search means), the form layout DB is searched by using the identification result (key information) output by the form type identification processing (form type identification means), and the corresponding registration information is retrieved. It is output and sent to form end coordinate correction processing (form end coordinate correction means). In addition, the form edge detecting means detects the form edge by searching the input form image, obtains the actual form size from the form edge, outputs the form edge coordinates and the actual form size, and performs form edge coordinate correction processing ( Form end coordinate correction means).

【0012】帳票端座標補正処理(帳票端座標補正手
段)では、登録情報に含まれる帳票サイズ、及びスプロ
ケット幅から該スプロケットの付き方の各パターン(例
えば、左右無し、左のみ、右のみ、左右共の全部または
一部)に対応した帳票想定サイズを算出し、帳票端検出
手段から出力された実帳票サイズと該帳票想定サイズと
を比較して、該スプロケットの付き方を判別し、該帳票
端検出手段から出力された帳票端座標を補正し、イメー
ジ切り出し処理(イメージ切り出し手段)へ送る。イメ
ージ切り出し処理(イメージ切り出し手段)では、補正
された帳票端座標を基に帳票中心座標を算出し、登録情
報に含まれる帳票中心からの切り出しイメージの相対位
置により決定される位置の部分イメージを、入力帳票イ
メージから切り出す。
In the form end coordinate correction processing (form end coordinate correcting means), each pattern (for example, no left / right, only left, only right, left / right) is determined based on the form size and sprocket width included in the registration information. And the actual form size output from the form edge detection means is compared with the assumed form size to determine the sprocket attachment. The form edge coordinates output from the edge detection means are corrected and sent to the image cutout processing (image cutout means). In the image cutout processing (image cutout means), the form center coordinates are calculated based on the corrected form end coordinates, and the partial image at the position determined by the relative position of the cutout image from the form center included in the registration information is calculated. Cut out from input form image.

【0013】第4の発明は、イメージ切り出し方法にお
いて、切り出し対象となる帳票が、電気信号に変換され
た帳票イメージを入力する帳票イメージ入力処理と、前
記入力された入力帳票イメージに対して、切り出しの基
準となる基準マークを検出し、この検出結果に応じたキ
ー情報及び該基準マークの位置を出力する基準マーク検
出処理と、切り出しの基準となる基準マークからの切り
出しイメージの相対位置が予め登録されている帳票レイ
アウトDBを、前記キー情報で検索して該当する登録情
報を出力する帳票レイアウトデータ検索処理と、前記登
録情報に含まれる基準マークからの切り出しイメージの
相対位置により決定される位置の部分イメージを、前記
入力帳票イメージから切り出すイメージ切り出し処理
と、を有している。
According to a fourth aspect of the present invention, in the image cutting method, a form to be cut out is a form image input process for inputting a form image converted into an electric signal, and a cutout is performed on the input form image. A reference mark detection process for detecting a reference mark serving as a reference, and outputting key information and a position of the reference mark according to the detection result, and a relative position of a cutout image from the reference mark serving as a cutout reference are registered in advance. A form layout data search process for searching the form layout DB that has been performed using the key information and outputting the corresponding registration information, and a position determined by a relative position of a cutout image from a reference mark included in the registration information. Image cutout processing for cutting out a partial image from the input form image.

【0014】第5の発明は、第4の発明のイメージ切り
出し方法において、基準マークは、バーコードである。
According to a fifth aspect, in the image cutting method according to the fourth aspect, the reference mark is a bar code.

【0015】第6の発明は、イメージ切り出し装置にお
いて、切り出し対象となる帳票が、電気信号に変換され
た帳票イメージを入力する帳票イメージ入力手段と、前
記入力された入力帳票イメージに対して、切り出しの基
準となるバーコードを検出し、この検出結果に応じたキ
ー情報及び該バーコードの位置を出力するバーコード検
出手段と、切り出しの基準となるバーコードからの切り
出しイメージの相対位置が予め登録されている帳票レイ
アウトDBと、前記キー情報で前記帳票レイアウトDB
を検索して該当する登録情報を出力する帳票レイアウト
データ検索手段と、前記登録情報に含まれるバーコード
からの切り出しイメージの相対位置により決定される位
置の部分イメージを、前記入力帳票イメージから切り出
すイメージ切り出し手段と、を有している。
According to a sixth aspect of the present invention, in the image cutout apparatus, a form to be cut is a form image input means for inputting a form image converted into an electric signal, and the form is cut out from the input form image. A bar code detecting means for detecting a bar code serving as a reference of the bar code and outputting the key information and the position of the bar code corresponding to the detection result, and a relative position of a cut image from the bar code serving as a cut reference are registered in advance Form layout DB and the form layout DB based on the key information.
And a form layout data search unit for searching for the corresponding registration information, and an image for cutting out a partial image at a position determined by a relative position of a cutout image from a barcode included in the registration information from the input form image. Cutting means.

【0016】このように、第4〜第6の発明の構成を採
用したことにより、帳票イメージ入力処理(帳票イメー
ジ入力手段)によって帳票イメージが入力されると、基
準マーク検出処理(バーコード検出手段)により、入力
帳票イメージに対して切り出しの基準となる基準マーク
(例えば、バーコード)が検出され、この検出結果に応
じたキー情報及び該バーコードの位置が出力され、帳票
レイアウトデータ検索処理(帳票レイアウトデータ検索
手段)へ送られる。帳票レイアウトデータ検索処理(帳
票レイアウトデータ検索手段)では、入力されたキー情
報で帳票レイアウトDBを検索して該当する登録情報を
出力し、イメージ切り出し処理(イメージ切り出し手
段)へ送る。イメージ切り出し処理(イメージ切り出し
手段)では、登録情報に含まれるバーコードからの切り
出しイメージの相対位置により決定される位置の部分イ
メージを、入力帳票イメージから切り出す。
As described above, by adopting the configurations of the fourth to sixth aspects of the present invention, when a form image is input by the form image input processing (form image input means), the reference mark detection processing (bar code detection means) ), A reference mark (for example, a barcode) serving as a cutout reference is detected from the input form image, key information corresponding to the detection result and the position of the barcode are output, and a form layout data search process ( Form layout data search means). In the form layout data search processing (form layout data search means), the form layout DB is searched with the input key information, and the corresponding registration information is output, and sent to the image cutout processing (image cutout means). In the image cutout processing (image cutout means), a partial image at a position determined by the relative position of the cutout image from the barcode included in the registration information is cut out from the input form image.

【0017】[0017]

【発明の実施の形態】(第1の実施形態)図1は本発明
の第1の実施形態を示すイメージ切り出し装置の構成
図、及び図3は図1の帳票レイアウトDBの登録情報を
示す図である。このイメージ切り出し装置は、例えば、
図2に示すような各帳票(企業)を識別するバーコード
11の印字された公共料金支払い帳票等の帳票10の帳
票イメージIm(この帳票イメージImでは背景部分と
帳票部分の色が異なる。)を入力し、各帳票10の部分
イメージ(例えば、領収書12の領域のイメージ)を切
り出す装置であり、中央処理装置(以下「CPU」とい
う。)を有するコンピュータ、あるいは個別回路等で構
成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) FIG. 1 is a block diagram of an image cutout apparatus according to a first embodiment of the present invention, and FIG. 3 is a view showing registration information of a form layout DB of FIG. It is. This image cutout device, for example,
A form image Im of the form 10 such as a utility bill payment form printed with a barcode 11 for identifying each form (company) as shown in FIG. 2 (the background image and the form part have different colors in this form image Im). Is input, and a device that cuts out a partial image of each form 10 (for example, an image of the area of the receipt 12) is configured by a computer having a central processing unit (hereinafter, referred to as a “CPU”) or an individual circuit. I have.

【0018】イメージ切り出し装置は、装置全体の制御
を行う制御部21を有している。制御部21には、バス
22を介して、該制御部21によってアクセスされる帳
票イメージメモリ23、帳票レイアウトDB24、及び
切り出しイメージメモリ25が接続されている。帳票イ
メージメモリ23は、入力された図2の帳票10の帳票
イメージImを格納するメモリである。帳票レイアウト
DB24は、帳票毎の情報を格納する機能をもち、これ
には予め帳票10の情報が登録されている。帳票レイア
ウトDB24には、例えば、図3に示すように、予め、
電力会社(aaa)等の企業コードと、電気料金(AA
A)等の帳票名と、幅(Wa等)・高さ(Ha等)の帳
票サイズと、切り取り可能な紙送り領域である左(La
等)・右(Ra等)のスプロケット幅と、部分イメージ
である領収書12の領域の帳票中心からの相対位置(X
a 1,Ya 1等)、及び幅(Wa1等)・高さ(Ha1
等)のサイズとが登録されている。切り出しイメージメ
モリ25は、切り出された部分イメージを格納するメモ
リである。
The image clipping device has a control unit 21 for controlling the entire device. The control unit 21 is connected via a bus 22 to a form image memory 23, a form layout DB 24, and a cut-out image memory 25 accessed by the control unit 21. The form image memory 23 is a memory for storing the input form image Im of the form 10 in FIG. The form layout DB 24 has a function of storing information for each form, in which information of the form 10 is registered in advance. In the form layout DB 24, for example, as shown in FIG.
A company code such as an electric power company (aaa) and an electricity charge (AA)
A), a form size such as width (Wa, etc.) and height (Ha, etc.), and a left (La
Etc.) and right (Ra etc.) sprocket width and the relative position (X
a 1, Y a 1, etc.), and the width (Wa1, etc.) and height (Ha1
Etc.) are registered. The cut-out image memory 25 is a memory for storing the cut-out partial image.

【0019】また、バス22には、帳票イメージ入力処
理を行う帳票イメージ入力部26と、レイアウト識別処
理を行うレイアウト識別部27と、イメージ検出/切り
出し処理を行うイメージ検出/切り出し部28とが接続
されている。帳票イメージ入力部26は、帳票イメージ
入力手段26aを有している。帳票イメージ入力手段2
6aは、イメージスキャナ、FAX等の画像入力デバイ
スまたは画像ファイル等から、背景部分と帳票部分の色
の異なる帳票イメージImを入力し、この入力した帳票
イメージImを帳票イメージメモリ23に格納する機能
を有している。
A form image input unit 26 for performing a form image input process, a layout identification unit 27 for performing a layout identification process, and an image detection / cutout unit 28 for performing an image detection / cutout process are connected to the bus 22. Have been. The form image input unit 26 has a form image input unit 26a. Form image input means 2
6a has a function of inputting a form image Im having a background portion and a form portion having different colors from an image input device such as an image scanner or a facsimile or an image file and storing the input form image Im in the form image memory 23. Have.

【0020】レイアウト識別部27は、帳票種別識別処
理を行う帳票種別識別手段27aと、帳票レイアウトデ
ータ検索処理を行う帳票レイアウトデータ検索手段27
bとを有している。帳票種別識別手段27aは、入力さ
れた帳票イメージImに対して、該帳票イメージImの
探索/認識(例えば、バーコード11の探索/認識)に
より、またはオペレータの入力により、該入力帳票イメ
ージIm中の帳票の種別を識別し、識別結果(例えば、
企業コードaaa等のキー情報)を出力する機能を有し
ている。帳票レイアウトデータ検索手段27bは、キー
情報で帳票レイアウトDB24を検索し、入力された帳
票イメージImに対応した登録情報(レコード)を出力
する機能を有している。
The layout identifying unit 27 includes a form type identifying unit 27a for performing a form type identifying process, and a form layout data searching unit 27 for performing a form layout data searching process.
b. The form type identifying unit 27a searches the input form image Im by searching / recognizing the form image Im (for example, searching / recognizing the barcode 11) or by inputting by an operator. The type of the form is identified, and the identification result (for example,
Key information such as company code aaa). The form layout data search unit 27b has a function of searching the form layout DB 24 with key information and outputting registration information (record) corresponding to the input form image Im.

【0021】イメージ検出/切り出し部28は、帳票端
検出処理を行う帳票端検出手段28aと、帳票端座標補
正処理を行う帳票端座標補正手段28bと、イメージ切
り出し処理を行うイメージ切り出し手段28cとを有し
ている。帳票端検出手段28aは、入力された帳票イメ
ージImを検索して帳票端(例えば、図2(A)の帳票
10のイメージの上下左右の四隅)を検出し、この帳票
端から実帳票サイズを求めて、該帳票端座標及び実帳票
サイズを出力する機能を有している。
The image detection / cutout unit 28 includes a form end detection unit 28a for performing a form end detection process, a form end coordinate correction unit 28b for performing a form end coordinate correction process, and an image cutout unit 28c for performing an image cutout process. Have. The form edge detecting means 28a searches the input form image Im to detect the form edges (for example, the upper, lower, left, and right corners of the image of the form 10 in FIG. 2A), and determines the actual form size from the form edges. It has a function to output the form end coordinates and the actual form size.

【0022】帳票端座標補正手段28bは、帳票レイア
ウトデータ検索手段27bから出力されたレコードに含
まれる帳票サイズ及びスプロケット幅からスプロケット
の付き方の各パターン(例えば、左右なし、左のみ、右
のみ、左右共の全部または一部)に対応した帳票想定サ
イズを求め、帳票端検出手段28aから出力された実帳
票サイズと比較することによってスプロケットの付き方
を判別し、該帳票端検出手段28aから出力された帳票
端座標を補正する機能を有している。イメージ切り出し
手段28cは、帳票端座標補正手段28bにより補正さ
れた帳票端座標を基に、帳票中心座標を算出し、帳票レ
イアウトデータ検索手段27bから出力されたレコード
に含まれる帳票中心からの切り出しイメージの相対位置
により決定される位置の部分イメージ(例えば、領収書
12の領域)を切り出し、この切り出した部分イメージ
を切り出しイメージメモリ25に格納する機能を有して
いる。
The form edge coordinate correcting means 28b determines each pattern of sprocket attachment based on the form size and sprocket width included in the record output from the form layout data retrieving means 27b (for example, no left / right, only left, only right, The expected form size corresponding to all or part of the left and right sides is obtained, and the form is attached to the actual form output from the form end detecting means 28a to determine the sprocket attachment. It has a function of correcting the entered form end coordinates. The image cutout means 28c calculates the form center coordinates based on the form end coordinates corrected by the form end coordinate correcting means 28b, and cuts out the form from the form center included in the record output from the form layout data search means 27b. Has a function of cutting out a partial image (for example, the area of the receipt 12) at a position determined by the relative position of the received image, and storing the cut out partial image in the cut-out image memory 25.

【0023】図4は図1のイメージ切り出し装置を用い
たイメージ切り出し方法の処理を示すフローチャート、
及び図5は図4のイメージ検出/切り出し処理を示すフ
ローチャートである。
FIG. 4 is a flowchart showing the processing of an image cutting method using the image cutting apparatus of FIG.
FIG. 5 is a flowchart showing the image detection / cutout processing of FIG.

【0024】以下、図4及び図5を参照しつつ、図1の
イメージ切り出し装置を用いたイメージ切り出し方法を
説明する。図4において、処理が開始されると、帳票イ
メージ入力処理S10において、帳票イメージ入力手段
26aは、イメージスキャナ等の画像入力デバイスまた
は画像ファイル等から、図2のような帳票10の帳票イ
メージImを入力し、帳票イメージメモリ23に格納し
てレイアウト識別処理S20へ進む。レイアウト識別処
理S20へ進む。レイアウト識別処理S20の帳票種別
識別処理S21において、帳票種別識別手段27aは、
例えば、帳票イメージメモリ23に格納された帳票イメ
ージIm中のバーコード(図2の帳票10のバーコード
11に対応)を探索して認識するバーコード探索/認識
処理を行い、帳票レイアウトデータ検索処理S22へ進
む。帳票レイアウトデータ検索処理S22において、帳
票レイアウトデータ検索手段27bは、帳票種別識別処
理S21の認識結果として得られる企業コード(例え
ば、図3のaaa)で帳票レイアウトDB24を検索
し、帳票イメージImに対応したレコードを取得し、イ
メージ検出/切り出し処理S30へ進む。
Hereinafter, an image clipping method using the image clipping device of FIG. 1 will be described with reference to FIGS. In FIG. 4, when the process is started, in a form image input process S10, the form image input means 26a converts the form image Im of the form 10 as shown in FIG. 2 from an image input device such as an image scanner or an image file. The user inputs the information, stores it in the form image memory 23, and proceeds to layout identification processing S20. The process proceeds to layout identification processing S20. In the form type identification processing S21 of the layout identification processing S20, the form type identification means 27a
For example, a barcode search / recognition process for searching and recognizing a barcode (corresponding to the barcode 11 of the form 10 in FIG. 2) in the form image Im stored in the form image memory 23 is performed, and a form layout data search process is performed. Proceed to S22. In the form layout data search processing S22, the form layout data search means 27b searches the form layout DB 24 with a company code (for example, aaa in FIG. 3) obtained as a recognition result of the form type identification processing S21, and corresponds to the form image Im. The obtained record is acquired, and the process proceeds to the image detection / cutout processing S30.

【0025】イメージ検索/切り出し処理S30におい
て、イメージ検出/切り出し部28は、帳票レイアウト
データ検索処理S22で取得されたレコードに登録され
た領収書位置について、帳票イメージメモリ23に格納
された帳票イメージImの該当する位置を切り出し、こ
の切り出した部分イメージを切り出しイメージメモリ2
5に格納する。
In the image search / cutout processing S30, the image detection / cutout unit 28 determines the form image Im stored in the form image memory 23 for the receipt position registered in the record acquired in the form layout data search processing S22. And cuts out the corresponding position of the image, and cuts out the cut out partial image.
5 is stored.

【0026】このイメージ検出/切り出し処理S30の
詳細を、図5を参照しつつ説明する。図5のイメージ検
出/切り出し処理S30が開始されると、帳票想定サイ
ズ算出処理S31aにおいて、帳票端座標補正手段28
bは、帳票レイアウトデータ検索処理S22で取得され
たレコード中の帳票サイズ、及びスプロケット幅から、
各パターン(例えば、図2(A)のようなスプロケット
なし、図2(B)のような左スプロケット13Lあり、
図2(C)のような右スプロケット13Rあり、図2
(D)のような両スプロケット13L,13Rあり)時
の帳票想定サイズを算出し、帳票サイズ比較処理S31
bへ進む。帳票サイズ比較処理S31bにおいて、帳票
端検出手段28aは、帳票イメージメモリ23に格納さ
れた帳票イメージImを検索し、帳票端(例えば、図2
の帳票10の四隅に対応する帳票端座標)を検出して実
帳票サイズを算出する。すると、帳票端座標補正手段2
8bは、算出された実帳票サイズと各パターンの帳票想
定サイズとを比較し、スプロケット13L,13Rの付
き方の判別処理(即ち、スプロケット判別処理)S31
cへ進む。
The details of the image detection / cutout processing S30 will be described with reference to FIG. When the image detection / cutout processing S30 of FIG. 5 is started, the form end coordinate correction unit 28 is executed in the form assumed size calculation processing S31a.
b is based on the form size and the sprocket width in the record acquired in the form layout data search processing S22,
Each pattern (for example, there is no sprocket as shown in FIG. 2 (A), there is a left sprocket 13L as shown in FIG. 2 (B),
There is a right sprocket 13R as shown in FIG.
The form assumed size at the time of both sprockets 13L and 13R as in (D) is calculated, and form size comparison processing S31
Proceed to b. In the form size comparison process S31b, the form end detection unit 28a searches the form image Im stored in the form image memory 23, and finds the form end (for example, FIG.
(The form end coordinates corresponding to the four corners of the form 10) and calculate the actual form size. Then, the form end coordinate correcting means 2
8b compares the calculated actual form size with the assumed form size of each pattern, and determines how to attach the sprockets 13L and 13R (ie, sprocket determination processing) S31.
Proceed to c.

【0027】スプロケット判別処理S31cの処理S3
1c−1において、帳票端座標補正手段28bは、入力
された帳票イメージImの誤差を考慮して、実帳票サイ
ズが帳票想定サイズのどれとも一致しないと判断した場
合には、帳票サイズが異常であるとして処理を終了し、
どれかに一致する場合には次の処理S31c−2へ進
む。帳票端座標補正手段28bは、実帳票サイズと一致
した帳票想定サイズが、「左スプロケットあり」または
「右スプロケットあり」であった場合(処理S31c−
2)、かつ左スプロケットの幅(図2(B)のLaに対
応))と右スプロケットの幅(図2(C)のRaに対
応))が入力された帳票イメージImの誤差を考慮して
一致する場合(処理S31c−3)には、識別不可であ
るとして処理を終了し、それ以外の場合であれば帳票端
補正処理S31dへ進む。なお、処理S31−2におい
て、左スプロケットなしまたは右スプロケットなしの場
合、つまりスプロケットなしあるいは両方スプロケット
ありの場合には、処理S31dへ進む。
Processing S3 of sprocket discrimination processing S31c
In 1c-1, the form edge coordinate correcting unit 28b considers the error of the input form image Im and determines that the actual form size does not match any of the assumed form sizes, and determines that the form size is abnormal. Processing ends as there is
If any one of them matches, the process proceeds to the next step S31c-2. The form end coordinate correcting unit 28b determines that the form assumed size that matches the actual form size is “with left sprocket” or “with right sprocket” (processing S31c-
2) In addition, the width of the left sprocket (corresponding to La in FIG. 2 (B)) and the width of the right sprocket (corresponding to Ra in FIG. 2 (C)) are considered in consideration of the error of the form image Im input. If they match (process S31c-3), the process is terminated because it is not identifiable, otherwise the process proceeds to the form edge correction process S31d. In step S31-2, if there is no left sprocket or no right sprocket, that is, if there is no sprocket or both sprockets, the process proceeds to step S31d.

【0028】帳票端補正処理S31dにおいて、帳票端
座標補正手段28bは、実帳票サイズと一致した帳票想
定サイズに応じて、帳票端を補正する。例えば、図2
(A)のような「スプロケットなし」であれば、実帳票
サイズそのままを帳票サイズとし、図2(B)のような
「左スプロケットあり」の場合には、帳票左上端の位置
を帳票中心寄りに左スプロケット幅分ずらし、図2
(C)のような「右スプロケットあり」の場合には、帳
票右上端の位置を帳票中心寄りに右スプロケット幅分ず
らし、図2(D)のような「両方スプロケットあり」の
場合には、「左スプロケットあり」と「右スプロケット
あり」の両方の補正を行い、帳票中心算出処理S32a
へ進む。
In the form end correction process S31d, the form end coordinate correcting means 28b corrects the form end according to the assumed form size that matches the actual form size. For example, FIG.
In the case of “without sprocket” as in (A), the actual form size is used as the form size, and in the case of “with left sprocket” as in FIG. 2B, the position of the upper left corner of the form is closer to the center of the form. Shifted by the left sprocket width to
In the case of “with right sprocket” as in (C), the upper right end of the form is shifted toward the center of the form by the right sprocket width, and in the case of “with both sprockets” as in FIG. Correction of both “with left sprocket” and “with right sprocket” is performed, and form center calculation processing S32a
Proceed to.

【0029】帳票中心算出処理S32aにおいて、イメ
ージ切り出し手段28cは、帳票端補正処理S31dで
算出された帳票端座標を基に帳票中心点を算出し、部分
イメージ切り出し処理S32bへ進む。部分イメージ切
り出し処理S32bにおいて、イメージ切り出し手段2
8cは、算出された帳票中心点からレコードに登録され
た部分イメージである領収書(図2の12に対応)の相
対位置(例えば、Xa1,Ya1)及びサイズ(例え
ば、Wa1,Ha1)に応じた部分イメージを切り出
し、この切り出した部分イメージを切り出しイメージメ
モリ25に格納する。これにより、入力された帳票イメ
ージIm中の領収書部分の部分イメージが、切り出しイ
メージメモリ25に格納されたことになる。
In the form center calculation processing S32a, the image cutout means 28c calculates the form center point based on the form end coordinates calculated in the form end correction processing S31d, and proceeds to the partial image cutout processing S32b. In the partial image cutout processing S32b, the image cutout means 2
8c is based on the relative position (for example, Xa1, Ya1) and size (for example, Wa1, Ha1) of the receipt (corresponding to 12 in FIG. 2) which is a partial image registered in the record from the calculated form center point. The extracted partial image is cut out, and the cut out partial image is stored in the cut-out image memory 25. As a result, the partial image of the receipt portion in the input form image Im is stored in the cut-out image memory 25.

【0030】この第1の実施形態では、次のような効果
がある。予め左右のスプロケット幅を帳票レイアウトD
B24に登録しておき、入力された帳票イメージIm中
の帳票サイズと、スプロケット(図2の13L,13R
に対応)の付き方の組み合わせを考慮した帳票想定サイ
ズとを比較するようにしたので、オペレータのミス等に
よってスプロケット13L,13Rが切り取られないス
プロケット付きの帳票イメージImが入力された場合で
も、部分イメージである領収書イメージをずれることな
く正確に切り出すことができる。
The first embodiment has the following effects. Form layout D with left and right sprocket widths in advance
B24, and the form size in the input form image Im and the sprocket (13L, 13R in FIG. 2)
) Is compared with the assumed form size in consideration of the combination of the attachments, so that even if the form image Im with the sprocket is not input because the sprockets 13L and 13R cannot be cut off due to an operator's mistake, etc. The receipt image, which is an image, can be accurately cut out without shifting.

【0031】(第2の実施形態)図6は本発明の第2の
実施形態を示すイメージ切り出し装置の構成図、及び図
7は図6の帳票レイアウトDBの登録情報を示す図であ
る。この図6及び図7において、第1の実施形態を示す
図1及び図3中の要素と共通の要素には共通の符号が付
されている。このイメージ切り出し装置は、第1の実施
形態と同様に、図2に示すような各帳票(企業)を識別
する基準マーク(例えば、バーコード11)の印字され
た公共料金支払い帳票等の帳票10の帳票イメージIm
を入力し、各帳票イメージImの部分イメージ(例え
ば、領収書イメージ)を切り出す装置であり、CPUを
用いたコンピュータ、あるいは個別回路等で構成されて
いる。
(Second Embodiment) FIG. 6 is a view showing the arrangement of an image extracting apparatus according to a second embodiment of the present invention, and FIG. 7 is a view showing registration information of the form layout DB of FIG. In FIGS. 6 and 7, components common to those in FIGS. 1 and 3 showing the first embodiment are denoted by the same reference numerals. As in the first embodiment, this image cutout apparatus is a form 10 such as a utility bill payment form printed with a reference mark (for example, a barcode 11) for identifying each form (company) as shown in FIG. Form image Im
Is input and a partial image (for example, a receipt image) of each form image Im is cut out, and is configured by a computer using a CPU or an individual circuit.

【0032】イメージ切り出し装置は、装置全体を制御
する制御部21Aを有している。制御部21Aには、バ
ス22を介して、第1の実施形態と同様の帳票イメージ
メモリ23、及び切り出しイメージメモリ25が接続さ
れると共に、第1の実施形態とは異なる構成の帳票レイ
アウトDB24Aが接続されている。帳票レイアウトD
B24Aは、帳票毎の情報を格納する機能を有し、これ
には図7に示すような帳票の情報(企業コード、帳票
名、領収書の位置及びサイズ)が登録されている。ま
た、バス22には、第1の実施形態と同様の帳票イメー
ジ入力手段26aを有する帳票イメージ入力部26が接
続されると共に、第1の実施形態と異なる構成のレイア
ウト識別部27A、及びイメージ切り出し部28Aが接
続されている。
The image clipping device has a control unit 21A for controlling the entire device. A form image memory 23 and a cut-out image memory 25 similar to those of the first embodiment are connected to the control unit 21A via a bus 22, and a form layout DB 24A having a configuration different from that of the first embodiment. It is connected. Form layout D
The B24A has a function of storing information for each form, in which information of the form (company code, form name, position and size of the receipt) as shown in FIG. 7 is registered. A form image input unit 26 having a form image input unit 26a similar to that of the first embodiment is connected to the bus 22, and a layout identification unit 27A having a configuration different from that of the first embodiment, The unit 28A is connected.

【0033】レイアウト識別部27Aは、レイアウト識
別処理を行うものであり、基準マーク検出処理を行う基
準マーク検出手段27cと、帳票レイアウトデータ検索
処理を行う帳票レイアウトデータ検索手段27dとを有
している。基準マーク検出手段27cは、帳票イメージ
メモリ23に格納された帳票イメージImに対して、基
準マーク(例えば、図2のバーコード11のイメージ)
を探索して認識し、このバーコードイメージの認識結果
に応じたキー情報及び探索されたバーコードイメージの
位置を出力するバーコード探索/認識処理を行う機能を
有している。帳票レイアウトデータ検索手段27dは、
予め基準となるバーコードからの切り出しイメージの相
対位置が登録されている帳票レイアウトDB24Aをキ
ー情報で検索し、該当する登録情報(レコード)を出力
する機能を有している。イメージ切り出し部28Aは、
イメージ切り出し処理を行うイメージ切り出し手段28
dを有している。イメージ切り出し手段28dは、帳票
レイアウトデータ検索手段27dが取得したレコードに
登録された領収書位置について、帳票イメージメモリ2
3に格納された帳票イメージImの該当する位置を切り
出し、この切り出した部分イメージを切り出しイメージ
メモリ25に格納する機能を有している。
The layout identifying section 27A performs a layout identifying process, and includes a reference mark detecting section 27c for performing a reference mark detecting process and a form layout data searching section 27d for performing a form layout data searching process. . The reference mark detection unit 27c applies a reference mark (for example, the image of the barcode 11 in FIG. 2) to the form image Im stored in the form image memory 23.
Has a function of performing barcode search / recognition processing for outputting key information corresponding to the recognition result of the barcode image and the position of the searched barcode image. The form layout data search means 27d
It has a function of searching the form layout DB 24A in which the relative position of the cut-out image from the reference barcode is registered in advance by key information, and outputting the corresponding registration information (record). The image cutout unit 28A
Image cutting means 28 for performing image cutting processing
d. The image cutout unit 28d stores the form image memory 2 with respect to the receipt position registered in the record acquired by the form layout data search unit 27d.
3 has a function of cutting out a corresponding position of the form image Im stored in the image data 3 and storing the cut out partial image in the image memory 25.

【0034】図8は、図6のイメージ切り出し装置を用
いたイメージ切り出し方法の処理を示すフローチャート
である。以下、この図8を参照しつつ、イメージ切り出
し方法を説明する。
FIG. 8 is a flowchart showing the processing of an image clipping method using the image clipping device of FIG. Hereinafter, an image cutting method will be described with reference to FIG.

【0035】図8において、処理が開始されると、帳票
イメージ入力処理S10において、帳票イメージ入力手
段26aは、イメージスキャナ等の画像入力デバイスま
たは画像ファイル等から、図2に示す帳票10の帳票イ
メージImを入力し、帳票イメージメモリ23に格納
し、レイアウト調整処理S20Aへ進む。レイアウト識
別処理S20Aの基準マーク検出処理(例えば、バーコ
ード探索/認識処理)S21Aにおいて、基準マーク検
出手段27cは、帳票イメージメモリ23に格納された
帳票イメージImに対して、基準となるバーコード(図
2のバーコード11のイメージに対応)を探索して認識
し、このバーコードイメージの認識結果に応じたキー情
報(例えば、図7のaaa等の企業コード)及び探索さ
れたバーコードイメージの位置を出力し、帳票レイアウ
トデータ検索処理S22Aへ進む。帳票レイアウトデー
タ検索処理S22Aにおいて、帳票レイアウトデータ検
索手段27dは、基準マーク検出処理S21Aにより出
力された企業コードで帳票レイアウトDB24Aを検索
し、帳票イメージImに対応した該当するレコードを出
力し、イメージ切り出し処理S30Aへ進む。
In FIG. 8, when the process is started, in a form image input process S10, the form image input means 26a receives a form image of the form 10 shown in FIG. 2 from an image input device such as an image scanner or an image file. Im is input, stored in the form image memory 23, and proceeds to the layout adjustment processing S20A. In a reference mark detection process (for example, a barcode search / recognition process) S21A of the layout identification process S20A, the reference mark detection unit 27c outputs a barcode (reference) to the form image Im stored in the form image memory 23 as a reference. The barcode image (corresponding to the image of the barcode 11 in FIG. 2) is searched for and recognized, and key information (for example, a company code such as aaa in FIG. 7) corresponding to the recognition result of the barcode image and the searched barcode image The position is output, and the process proceeds to form layout data search processing S22A. In the form layout data search processing S22A, the form layout data search means 27d searches the form layout DB 24A with the company code output in the fiducial mark detection processing S21A, outputs a corresponding record corresponding to the form image Im, and cuts out the image. Proceed to process S30A.

【0036】イメージ切り出し処理S30Aにおいて、
イメージ切り出し手段28dは、帳票レイアウトデータ
検索処理S22Aにより出力されたレコードに登録され
た領収書位置について、基準マーク検出処理S21Aで
検出されたバーコードイメージの位置を基点として、帳
票イメージメモリ23に格納された帳票イメージImの
該当する位置(即ち、領収書の部分イメージ)を切り出
し、この切り出した部分イメージを切り出しイメージメ
モリ25に格納する。
In the image cutting process S30A,
The image cutout means 28d stores the receipt position registered in the record output in the form layout data search processing S22A in the form image memory 23 based on the barcode image position detected in the reference mark detection processing S21A. A corresponding position (that is, a partial image of a receipt) of the formed form image Im is cut out, and the cut out partial image is stored in the cut-out image memory 25.

【0037】この第2の実施形態では、次のような効果
がある。予めバーコード11を基点とした領収書位置を
帳票レイアウトDB24Aに登録しておき、入力された
帳票イメージIm中のバーコードイメージの位置を探索
し、このバーコードイメージを基点として領収書イメー
ジを切り出すようにしたので、図2のようなスプロケッ
ト付き帳票10のイメージImが入力された場合でも、
部分イメージである領収書イメージをずれることなく正
しく切り出すことができる。
The second embodiment has the following effects. The receipt position based on the barcode 11 is registered in the form layout DB 24A in advance, the position of the barcode image in the input form image Im is searched, and the receipt image is cut out based on the barcode image. Therefore, even if the image Im of the form 10 with sprockets as shown in FIG. 2 is input,
Receipt images that are partial images can be cut out correctly without shifting.

【0038】(利用形態)本発明は、上記実施形態に限
定されず、種々の変形や利用形態が可能である。この変
形や利用形態としては、例えば、次のようなものがあ
る。 (a) 図4の帳票種別識別処理S21では、バーコー
ド11を探索して帳票種別を識別するようにしたが、帳
票10の罫線の特徴による識別、部分画像の特徴による
識別、あるいは帳票IDの認識による識別等により、帳
票種別を識別するようにしても、第1の実施形態とほぼ
同様の効果が得られる。
(Usage Form) The present invention is not limited to the above embodiment, and various modifications and utilization forms are possible. For example, there are the following modifications and uses. (A) In the form type identification process S21 in FIG. 4, the bar code 11 is searched to identify the form type. However, the form type is identified by the ruled line feature, the partial image is identified by the feature, or the form ID is identified. Even if the form type is identified by recognition or the like, substantially the same effects as in the first embodiment can be obtained.

【0039】(b) 図8の基準マーク検出処理S21
Aでは、基準マークとしてバーコード11を検出するよ
うにしたが、帳票10中に星印等の他の基準となるマー
クがあれば、このマークを検出するようにしても、第2
の実施形態とほぼ同様の効果が得られる。
(B) Reference mark detection processing S21 in FIG.
In A, the barcode 11 is detected as a reference mark. However, if there is another mark such as an asterisk in the form 10, if this mark is detected, the second mark may be detected.
Almost the same effects as those of the embodiment can be obtained.

【0040】(c) 図1のレイアウト識別部27及び
イメージ検出/切り出し部28、あるいは図6のレイア
ウト識別部27A及びイメージ切り出し部28Aは、図
示の手段以外の手段で構成してもよい。
(C) The layout identifying section 27 and the image detecting / cutting section 28 in FIG. 1 or the layout identifying section 27A and the image cutting section 28A in FIG. 6 may be constituted by means other than the illustrated means.

【0041】(d) 上記実施形態では、イメージの切
り出し方法あるいは装置について説明したが、このイメ
ージ切り出し方法あるいは装置は、例えば、文字認識装
置(OCR)での文字の読み取り位置の決定にも使用可
能である。
(D) In the above embodiment, the method or apparatus for cutting out an image has been described. However, the method or apparatus for cutting out an image can be used, for example, for determining a character reading position in a character recognition device (OCR). It is.

【0042】[0042]

【発明の効果】以上詳細に説明したように、本発明のう
ちの第1〜第3の発明によれば、予め左右の紙送り領域
(例えば、左右のスプロケット)の幅を帳票レイアウト
DBに登録しておき、入力された帳票イメージ中の帳票
サイズと、紙送り領域の付き方の組み合わせを考慮した
帳票想定サイズとを比較するようにしたので、ミス等に
よって紙送り領域が切り離されずに紙送り領域付きの帳
票のイメージが入力された場合でも、この帳票イメージ
中の部分イメージをずれることなく正確に切り出すこと
ができる。
As described above in detail, according to the first to third aspects of the present invention, the widths of the left and right paper feed areas (for example, the right and left sprockets) are registered in the form layout DB in advance. In addition, the form size in the input form image is compared with the assumed form size in consideration of the combination of the paper feed area, so the paper feed area is not separated due to mistakes etc. Even when an image of a form with a region is input, a partial image in the form image can be accurately cut out without shifting.

【0043】第4〜第6の発明によれば、予め基準マー
ク(例えば、バーコード)を基点とした切り出し位置を
帳票レイアウトDBに登録しておき、入力された帳票イ
メージ中の基準マークの位置を探索し、この基準マーク
を基点として部分イメージを切り出すようにしたので、
紙送り領域(例えば、スプロケット)付きの帳票イメー
ジが入力された場合でも、部分イメージをずれることな
く正確に切り出すことができる。
According to the fourth to sixth aspects of the present invention, a cutout position based on a reference mark (for example, a barcode) is registered in the form layout DB in advance, and the position of the reference mark in the input form image is registered. , And cut out the partial image based on this fiducial mark,
Even when a form image with a paper feed area (for example, a sprocket) is input, a partial image can be cut out accurately without displacement.

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

【図1】本発明の第1の実施形態を示すイメージ切り出
し装置の構成図である。
FIG. 1 is a configuration diagram of an image cutout device according to a first embodiment of the present invention.

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

【図3】図1の帳票レイアウトDBの登録情報を示す図
である。
FIG. 3 is a diagram showing registration information of a form layout DB of FIG. 1;

【図4】第1のイメージ切り出し方法の処理を示すフロ
ーチャートである。
FIG. 4 is a flowchart illustrating a process of a first image clipping method.

【図5】図4のイメージ検出/切り出し処理を示すフロ
ーチャートである。
FIG. 5 is a flowchart showing the image detection / cutout processing of FIG. 4;

【図6】本発明の第2の実施形態を示すイメージ切り出
し装置の構成図である。
FIG. 6 is a configuration diagram of an image cutout device according to a second embodiment of the present invention.

【図7】図6の帳票レイアウトDBの登録情報を示す図
である。
FIG. 7 is a diagram showing registration information of a form layout DB of FIG. 6;

【図8】図6のイメージ切り出し方法の処理を示すフロ
ーチャートである。
FIG. 8 is a flowchart illustrating a process of the image cutout method of FIG. 6;

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

21,21A 制御部 23 帳票イメージメモリ 24,24A 帳票レイアウトDB 25 切り出しイメージメモリ 26 帳票イメージ入力部 26A 帳票イメージ入力手段 27,27A レイアウト識別部 27a 帳票種別識別手段 27b,27d 帳票レイアウトデータ検索手段 27c 基準マーク検出手段 28 イメージ検出/切り出し部 28A イメージ切り出し部 28a 帳票端検出手段 28b 帳票端座標補正手段 28c,28d イメージ切り出し手段 S10 帳票イメージ入力処理 S20,S20A レイアウト識別処理 S21 帳票種別識別処理 S21A 基準マーク検出処理 S22,S22A 帳票レイアウトデータ検索処理 S30 イメージ検出/切り出し処理 S30A イメージ切り出し処理 S31 帳票端座標補正処理 S31a 帳票想定サイズ算出処理 S31b 帳票サイズ比較処理 S31c スプロケット判定処理 S31d 帳票端補正処理 S32 イメージ切り出し処理 S32a 帳票中心算出処理 S32b 部分イメージ切り出し処理 21, 21A control unit 23 form image memory 24, 24A form layout DB 25 cutout image memory 26 form image input unit 26A form image input unit 27, 27A layout identification unit 27a form type identification unit 27b, 27d form layout data search unit 27c reference Mark detecting means 28 Image detecting / cutout part 28A Image cutting part 28a Form edge detecting means 28b Form edge coordinate correcting means 28c, 28d Image cutting means S10 Form image input processing S20, S20A Layout identifying processing S21 Form type identifying processing S21A Reference mark detecting Processing S22, S22A Form layout data search processing S30 Image detection / cutout processing S30A Image cutout processing S31 Form end coordinate correction processing S31a Vote assumed size calculation process S31b form size comparison process S31c sprocket determination processing S31d form end correction process S32 image cutout processing S32a form central calculation processing S32b partial image extraction process

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 左右に切り離し可能な紙送り領域が付着
された帳票、あるいはその紙送り領域が切り取られた帳
票が、電気信号に変換された帳票イメージを入力する帳
票イメージ入力処理と、 前記入力された入力帳票イメージに対して、この入力帳
票イメージを検索することにより、またはオペレータの
入力により、該入力帳票イメージ中の帳票の種別を識別
して識別結果を出力する帳票種別識別処理と、 前記帳票の紙送り領域を切り離した状態での帳票サイ
ズ、左右の紙送り領域の幅、及び帳票中心からの切り出
しイメージの相対位置が予め登録されている帳票レイア
ウトデータベースを、前記識別結果を用いて検索して該
当する登録情報を出力する帳票レイアウトデータ検索処
理と、 前記登録情報に含まれる帳票サイズ、及び紙送り領域幅
から該紙送り領域の付き方の各パターンに対応した帳票
想定サイズを算出し、前記入力帳票イメージから検出さ
れた帳票端座標及び実帳票サイズの内の該実帳票サイズ
と該帳票想定サイズとを比較して該紙送り領域の付き方
を判別し、該帳票端座標を補正する帳票端座標補正処理
と、 前記補正された帳票端座標を基に帳票中心座標を算出
し、前記登録情報に含まれる帳票中心からの切り出しイ
メージの相対位置により決定される位置の部分イメージ
を、前記入力帳票イメージから切り出すイメージ切り出
し処理と、 を有することを特徴とするイメージ切り出し方法。
1. A form image input processing for inputting a form to which a paper feed area detachable to the left and right has been attached or a form from which the paper feed area has been cut out is converted into an electric signal. A form type identification process for retrieving the input form image for the input form image or by inputting an operator to identify the type of the form in the input form image and to output an identification result; A form layout database in which the form size in the state where the form feed area of the form is separated, the width of the left and right form feed areas, and the relative position of the cutout image from the form center is registered in advance using the identification result. Form layout data search processing for outputting corresponding registration information, and the form size and paper feed area included in the registration information The form assumed size corresponding to each pattern of the manner of attaching the paper feed area is calculated from the width, and the actual form size and the form assumed size of the form end coordinates and the actual form size detected from the input form image are used. And comparing the form end coordinates with the form feed area, correcting the form end coordinates, and calculating the form center coordinates based on the corrected form end coordinates. An image clipping method comprising: clipping a partial image at a position determined by a relative position of a clipped image from a center of a contained form from the input form image.
【請求項2】 切り離し可能な紙送り領域は、ミシン目
を介して付着されたスプロケットであることを特徴とす
る請求項1記載のイメージ切り出し方法。
2. The image cutting method according to claim 1, wherein the detachable paper feed area is a sprocket attached through a perforation.
【請求項3】 左右に切り離し可能なスプロケットが付
着された帳票、あるいはそのスプロケットが切り取られ
た帳票が、電気信号に変換された帳票イメージを入力す
る帳票イメージ入力手段と、 前記入力された入力帳票イメージに対して、この入力帳
票イメージを検索することにより、またはオペレータの
入力により、該入力帳票イメージ中の帳票の種別を識別
してキー情報を出力する帳票種別識別手段と、 前記帳票のスプロケットを切り離した状態での帳票サイ
ズ、左右のスプロケット幅、及び帳票中心からの切り出
しイメージの相対位置が予め登録されている帳票レイア
ウトデータベースと、 前記キー情報で前記帳票レイアウトデータベースを検索
して該当する登録情報を出力する帳票レイアウトデータ
検索手段と、 前記入力帳票イメージを検索して帳票端を検出し、この
帳票端から実帳票サイズを求めて該帳票端座標と該実帳
票サイズを出力する帳票端検出手段と、 前記登録情報に含まれる帳票サイズ、及びスプロケット
幅から該スプロケットの付き方の各パターンに対応した
帳票想定サイズを算出し、前記帳票端検出手段から出力
された実帳票サイズと該帳票想定サイズとを比較して該
スプロケットの付き方を判別し、前記帳票端検出手段か
ら出力された帳票端座標を補正する帳票端座標補正手段
と、 前記補正された帳票端座標を基に帳票中心座標を算出
し、前記登録情報に含まれる帳票中心からの切り出しイ
メージの相対位置により決定される位置の部分イメージ
を、前記入力帳票イメージから切り出すイメージ切り出
し手段と、 を有することを特徴とするイメージ切り出し装置。
3. A form image input means for inputting a form to which a sprocket detachable to the left and right is attached or a form from which the sprocket has been cut out and which is converted into an electric signal, and said input form For the image, by searching for this input form image, or by operator input, form type identification means for identifying the type of the form in the input form image and outputting key information, and a sprocket of the form A form layout database in which the form size in the separated state, the width of the left and right sprockets, and the relative position of the cutout image from the form center are registered in advance, and the form layout database is searched with the key information, and the corresponding registration information is searched. Form layout data searching means for outputting A form edge detecting means for searching for a form edge by searching for a page, obtaining an actual form size from the form end, and outputting the form end coordinates and the actual form size, a form size included in the registration information, A form assumed size corresponding to each pattern of how to attach the sprocket is calculated from the sprocket width, and the actual form size output from the form end detecting means is compared with the form assumed size to determine how to attach the sprocket. A form edge coordinate correcting means for correcting the form edge coordinates output from the form edge detecting means, calculating form center coordinates based on the corrected form edge coordinates, and calculating the form center coordinates from the form center included in the registration information. Image cutting means for cutting out a partial image at a position determined by the relative position of the cut-out image from the input form image. Cutting device.
【請求項4】 切り出し対象となる帳票が、電気信号に
変換された帳票イメージを入力する帳票イメージ入力処
理と、 前記入力された入力帳票イメージに対して、切り出しの
基準となる基準マークを検出し、この検出結果に応じた
キー情報及び該基準マークの位置を出力する基準マーク
検出処理と、 切り出しの基準となる基準マークからの切り出しイメー
ジの相対位置が予め登録されている帳票レイアウトデー
タベースを、前記キー情報で検索して該当する登録情報
を出力する帳票レイアウトデータ検索処理と、 前記登録情報に含まれる基準マークからの切り出しイメ
ージの相対位置により決定される位置の部分イメージ
を、前記入力帳票イメージから切り出すイメージ切り出
し処理と、 を有することを特徴とするイメージ切り出し方法。
4. A form image input process for inputting a form image converted into an electric signal for a form to be cut out, and detecting a fiducial mark serving as a cutout reference for the input form image. A reference mark detection process for outputting key information corresponding to the detection result and the position of the reference mark, and a form layout database in which the relative position of the cutout image from the reference mark serving as the cutout reference is registered in advance, A form layout data search process for searching for key information and outputting corresponding registration information, and a partial image at a position determined by a relative position of an image cut out from a reference mark included in the registration information, from the input form image. An image clipping method, comprising: clipping an image.
【請求項5】 基準マークは、バーコードであることを
特徴とする請求項4記載のイメージ切り出し方法。
5. The method according to claim 4, wherein the reference mark is a barcode.
【請求項6】 切り出し対象となる帳票が、電気信号に
変換された帳票イメージを入力する帳票イメージ入力手
段と、 前記入力された入力帳票イメージに対して、切り出しの
基準となるバーコードを検出し、この検出結果に応じた
キー情報及び該バーコードの位置を出力するバーコード
検出手段と、 切り出しの基準となるバーコードからの切り出しイメー
ジの相対位置が予め登録されている帳票レイアウトデー
タベースと、 前記キー情報で前記帳票レイアウトデータベースを検索
して該当する登録情報を出力する帳票レイアウトデータ
検索手段と、 前記登録情報に含まれるバーコードからの切り出しイメ
ージの相対位置により決定される位置の部分イメージ
を、前記入力帳票イメージから切り出すイメージ切り出
し手段と、 を有することを特徴とするイメージ切り出し装置。
6. A form image input means for inputting a form image converted into an electric signal to form a form to be cut out, and detecting a bar code serving as a cut-out reference for the input form image. A barcode detecting means for outputting key information and the position of the barcode corresponding to the detection result; a form layout database in which a relative position of a cutout image from a barcode serving as a cutout reference is registered in advance; A form layout data search unit that searches the form layout database with key information and outputs corresponding registration information; and a partial image at a position determined by a relative position of a cut-out image from a barcode included in the registration information. Image cutout means for cutting out from the input form image, Image cut-out device for the butterflies.
JP2000038495A 2000-02-16 2000-02-16 Method and device for segmenting image Withdrawn JP2001229312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000038495A JP2001229312A (en) 2000-02-16 2000-02-16 Method and device for segmenting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000038495A JP2001229312A (en) 2000-02-16 2000-02-16 Method and device for segmenting image

Publications (1)

Publication Number Publication Date
JP2001229312A true JP2001229312A (en) 2001-08-24

Family

ID=18562223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000038495A Withdrawn JP2001229312A (en) 2000-02-16 2000-02-16 Method and device for segmenting image

Country Status (1)

Country Link
JP (1) JP2001229312A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7926732B2 (en) 2006-04-03 2011-04-19 Kabushiki Kaisha Toshiba OCR sheet-inputting device, OCR sheet, program for inputting an OCR sheet and program for drawing an OCR sheet form

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7926732B2 (en) 2006-04-03 2011-04-19 Kabushiki Kaisha Toshiba OCR sheet-inputting device, OCR sheet, program for inputting an OCR sheet and program for drawing an OCR sheet form

Similar Documents

Publication Publication Date Title
US6111984A (en) Method for matching input image with reference image, apparatus for the same, and storage medium storing program for implementing the method
JP3636809B2 (en) Image processing method
US9626738B2 (en) Image processing apparatus, image processing method, and storage medium
US7680329B2 (en) Character recognition apparatus and character recognition method
US6683983B1 (en) Document-inclination detector
JPH096914A (en) Method and processor for image processing
JP2001229312A (en) Method and device for segmenting image
JP3600380B2 (en) Image processing method and fax character recognition device
US20060204105A1 (en) Image recognition method
JP3640488B2 (en) Image processing method
US11082576B2 (en) Image reading apparatus, image reading method, and image reading system
JPH07249099A (en) Discriminating device for slip
JP2003030654A (en) Pattern identification device, pattern identification method and program for pattern identification
JP2002024743A (en) Image reading system and image reading method
JP4009314B2 (en) Form layout identification method and form layout identification system
JP2001326774A (en) Device and method for document read and storage medium
JPH10124610A (en) Optical character reading device
JP3022655B2 (en) Character recognition device
JPH0991372A (en) Optical character reader and detecting method for tile angle of document
JP2000182030A (en) Image segmenting method and image segmenting device
JP3932201B2 (en) Form type identification device and recording medium
JP2000339407A (en) Picture processor, picture processing method and computer readable storage medium
JP3356819B2 (en) Mark recognition device
EP2945099B1 (en) Character presence determination system and character presence determination method
JPH0221385A (en) Printer

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: 20070501