JP2002057873A - Apparatus and method of removing preprinting - Google Patents

Apparatus and method of removing preprinting

Info

Publication number
JP2002057873A
JP2002057873A JP2000240055A JP2000240055A JP2002057873A JP 2002057873 A JP2002057873 A JP 2002057873A JP 2000240055 A JP2000240055 A JP 2000240055A JP 2000240055 A JP2000240055 A JP 2000240055A JP 2002057873 A JP2002057873 A JP 2002057873A
Authority
JP
Japan
Prior art keywords
image
ruled line
coordinate
input image
reference image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2000240055A
Other languages
Japanese (ja)
Inventor
Toshinori Hase
俊徳 長谷
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2000240055A priority Critical patent/JP2002057873A/en
Publication of JP2002057873A publication Critical patent/JP2002057873A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To eliminate such a problem that when an image is expanded or contracted in the transfer direction due to a variation in transfer speed at the time of fetching the image by an image input unit, or when there is a deviation in position of preprinting due to the expansion or contraction of a formed document sheet or the like, a reference image and a preprinting of an inputted image cannot be aligned correctly, thus decreasing the removing accuracy of preprinting. SOLUTION: A ruled line deviation detector 5 detects a quantity of deviation between ruled lines which are judged identical by a ruled line comparison means 4. A positional deviation calculating means 7 calculates a quantity of positional deviation at any point on a formed document, based on the deviation between the ruled lines detected by the ruled line deviation detecting means 5. Based on the quantity of positional deviation calculated by the positional deviation calculating means 7, a coordinate transformation means 8 conducts at least one of operations among parallel movement, rotation, and expansion and contraction of an inputted image, An image comparing means 9 compares the inputted image subjected to coordinate transformation by means of the coordinate transformation means 8 with the reference image, and then remove a preprinting part from the inputted image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プレ印刷除去装置
及び方法に関し、特に、予め印刷された罫線や文字等の
プレ印刷を含む、未記入の帳票の画像を参照画像として
記憶し、記入済みの帳票の画像を入力画像として、入力
画像上のプレ印刷を除去した画像を生成するための方法
及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for removing preprints, and more particularly, to an image of an unfilled form including preprinted ruled lines and characters, which is stored as a reference image, and to which a preprinted form has been filled. The present invention relates to a method and an apparatus for generating an image from which a preprint is removed from an input image, using the image of the form as an input image.

【0002】[0002]

【従来の技術】非ドロップアウトカラー印刷された帳票
をOCRで読み取らせたいとき、大量の帳票の画像を電
子ファイリングするために画像圧縮時の圧縮率をなるべ
く高くしたいとき等に、帳票画像上からプレ印刷部分を
除去し、記入文字のみを残した画像が必要となる場合が
ある。
2. Description of the Related Art When a form printed in non-dropout color is to be read by an OCR, or when it is desired to increase the compression ratio at the time of image compression as much as possible for electronic filing of a large number of forms, the form image can be read from the form image. In some cases, an image in which the preprinted portion is removed and only the entered characters are left is required.

【0003】帳票画像のプレ印刷を除去するため、ある
いは入力画像と参照画像のプレ印刷が一致するかどうか
調べるためには、入力画像と参照画像のプレ印刷を照合
するという処理が行われる。その際、両者の帳票位置や
傾きの違いを吸収するため、入力画像に対して平行移動
や回転を施すという操作が行われる。そのような従来の
技術として、特開平11−120288号公報、特開平
8−77333号公報、特開平8−255237号公報
等が開示されている。
In order to remove preprinting of a form image or to check whether the preprinting of an input image and a reference image match, a process of collating the preprinting of an input image and a reference image is performed. At this time, an operation of performing parallel movement or rotation on the input image is performed in order to absorb the difference between the form position and the inclination of the two. JP-A-11-120288, JP-A-8-77333, JP-A-8-255237, and the like disclose such conventional techniques.

【0004】特開平11−120288号公報に記載の
画像のずれ検出方法では、入力画像と参照画像のずれを
検出するため、黒ランヒストグラムを利用して参照画像
の中の罫線を少しずつ平行移動させることによって、入
力画像の罫線との一致の度合いを調べるという方法を採
っている。
In the image shift detecting method described in Japanese Patent Application Laid-Open No. H11-120288, in order to detect a shift between an input image and a reference image, a ruled line in the reference image is gradually translated by using a black run histogram. In this case, the degree of matching with the ruled line of the input image is checked.

【0005】特開平8−77333号公報に記載の電子
ファイリング装置では、入力画像と参照画像を照合する
方法として、入力画像を少しずつ平行移動及び回転させ
る度に参照画像とのプレ印刷の一致の度合いを調べ、最
も一致の度合いの高い位置を見つけるという方法を採っ
ている。
In the electronic filing apparatus described in Japanese Patent Application Laid-Open No. Hei 8-77333, as a method of comparing an input image with a reference image, every time the input image is translated and rotated little by little, the pre-print coincidence with the reference image is determined. The degree is checked, and the method of finding the position with the highest degree of matching is adopted.

【0006】特開平8−255237号公報に記載のデ
ータ蓄積装置では、入力画像と参照画像上の帳票を、各
々罫線の傾きを用いて正立化し、正立化した画像同士を
上下左右にずらしながら、重なり具合の最も大きい位置
を見つけることで両者の位置合わせを行うという方法を
採っている。
[0006] In the data storage device described in Japanese Patent Application Laid-Open No. 8-255237, a form on an input image and a form on a reference image are erected using the inclination of ruled lines, and the erected images are shifted vertically and horizontally. However, a method is employed in which the position of the two is adjusted by finding the position where the degree of overlap is greatest.

【0007】[0007]

【発明が解決しようとする課題】しかし、上記従来の画
像のずれ検出方法等においては、入力画像と参照画像の
プレ印刷を位置合わせする際に画像全体の平行移動、ま
たは平行移動及び回転しか行っていないため、画像入力
装置による画像取得時に搬送速度のむらに起因する搬送
方向への画像の伸縮が生じた場合には、入力画像と参照
画像のプレ印刷を正確に位置合わせすることができない
ため、プレ印刷の除去精度が低下するという問題があっ
た。
However, in the above-described conventional method for detecting a displacement of an image or the like, when aligning the pre-printing of the input image and the pre-printing of the reference image, only the parallel movement or the parallel movement and rotation of the entire image is performed. Because, when the image is expanded or contracted in the transport direction due to uneven transport speed during image acquisition by the image input device, the pre-print of the input image and the reference image cannot be accurately aligned, There is a problem that the removal accuracy of the pre-printing is reduced.

【0008】また、上記従来の画像のずれ検出方法等に
おいては、両画像の位置合わせの手段を画像全体の平行
移動と回転のみに依存しているため、帳票の用紙の伸縮
等により入力画像と参照画像のプレ印刷の位置がずれて
いる場合には、位置ずれを補正することができないとい
う問題があった。
In the above-described conventional method for detecting a displacement between images, the means for aligning the two images depends only on the parallel movement and rotation of the entire image. When the pre-print position of the reference image is shifted, there is a problem that the position shift cannot be corrected.

【0009】そこで、本発明は上記従来の画像のずれ検
出方法等における問題点に鑑みてなされたものであっ
て、画像取得時の搬送速度のむらに起因する搬送方向へ
の画像の伸縮や帳票自体の伸縮等による、入力画像と参
照画像間のプレ印刷の位置ずれに頑健なプレ印刷除去装
置及び方法を提供することを目的とする。
In view of the above, the present invention has been made in view of the problems in the above-described conventional image shift detecting method and the like. It is an object of the present invention to provide a pre-print removal apparatus and method that are robust against a pre-print position shift between an input image and a reference image due to expansion and contraction of the image.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明は、プレ印刷除去装置であっ
て、入力画像と参照画像の各々の帳票の罫線のうち、同
一罫線同士を検出する罫線照合手段と、該罫線照合手段
により同一罫線と判断された罫線同士のずれ量を検出す
る罫線ずれ量検出手段と、該罫線ずれ量検出手段により
検出された罫線ずれ量をもとに、帳票上の任意の点にお
ける位置ずれ量を計算する位置ずれ量算出手段と、該位
置ずれ量算出手段により計算された位置ずれ量をもと
に、前記入力画像の平行移動、回転、伸縮の少なくとも
一つを行う座標変換手段と、該座標変換手段によって座
標変換された入力画像と前記参照画像とを照合して入力
画像からプレ印刷部分を除去する画像照合手段とを備え
たことを特徴とする。
According to a first aspect of the present invention, there is provided a pre-printing and removing apparatus, wherein the same ruled line among the ruled lines of each form of an input image and a reference image is formed. A ruled line matching means for detecting, a ruled line displacement amount detecting means for detecting a displacement amount between ruled lines determined to be the same ruled line by the ruled line matching means, and a ruled line displacement amount detected by the ruled line displacement amount detecting means. A position shift amount calculating means for calculating a position shift amount at an arbitrary point on a form; and a translation, rotation, expansion and contraction of the input image based on the position shift amount calculated by the position shift amount calculation means. Coordinate conversion means for performing at least one, and image collation means for collating the input image subjected to coordinate transformation by the coordinate transformation means and the reference image and removing a preprinted portion from the input image, I do.

【0011】請求項2記載の発明は、プレ印刷除去方法
であって、入力画像と参照画像の各々の帳票の罫線のう
ち、同一罫線同士を検出するステップと、同一罫線と判
断された罫線同士のずれ量を検出するステップと、検出
された罫線ずれ量をもとに、帳票上の任意の点における
位置ずれ量を計算するステップと、計算された位置ずれ
量をもとに、前記入力画像の平行移動、回転、伸縮の少
なくとも一つを行うステップと、座標変換された入力画
像と前記参照画像とを照合して入力画像からプレ印刷部
分を除去するステップとを備えたことを特徴とする。
According to a second aspect of the present invention, there is provided a pre-print removal method, comprising the steps of detecting the same ruled line among the ruled lines of each form of the input image and the reference image; Detecting the amount of misalignment, calculating the amount of misalignment at an arbitrary point on the form based on the detected amount of misalignment of the ruled line, and calculating the input image based on the calculated amount of misalignment. And performing a step of performing at least one of translation, rotation, and expansion and contraction, and a step of collating the coordinate-converted input image with the reference image and removing a preprinted portion from the input image. .

【0012】そして、請求項1または2記載の発明によ
れば、入力画像と参照画像の各々の帳票にプレ印刷され
た横罫線を用いて帳票縦方向の画像の位置ずれを補正し
てから、入力画像と参照画像のプレ印刷を照合するた
め、画像入力装置の帳票搬送速度のむら等に起因する搬
送方向への画像の伸縮に頑健なプレ印刷除去処理を実現
できる。
According to the first or second aspect of the present invention, the position of the image in the vertical direction of the form is corrected using the horizontal ruled line preprinted on each form of the input image and the reference image, and Since the pre-printing of the input image and the reference image are collated, it is possible to realize a pre-print removal process that is robust against expansion and contraction of the image in the transport direction due to unevenness in the form transport speed of the image input device.

【0013】また、請求項1または2記載の発明によれ
ば、入力画像と参照画像の各々の帳票にプレ印刷された
横罫線及び縦罫線を用いて帳票の縦方向及び横方向の画
像の位置ずれを補正してから、入力画像と参照画像のプ
レ印刷を照合するため、帳票の伸縮等による縦方向及び
横方向へのプレ印刷の位置ずれに頑健なプレ印刷除去処
理を実現できる。
According to the first or second aspect of the present invention, the position of the image in the vertical direction and the horizontal direction of the form is determined by using the horizontal ruled line and the vertical ruled line preprinted on each form of the input image and the reference image. Since the pre-printing of the input image and the reference image is collated after correcting the misalignment, a pre-print removal process that is robust against misalignment of pre-printing in the vertical and horizontal directions due to expansion and contraction of a form can be realized.

【0014】[0014]

【発明の実施の形態】次に、本発明にかかるプレ印刷除
去装置及び方法の実施の形態について図面を参照しなが
ら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of a preprint removal apparatus and method according to the present invention will be described with reference to the drawings.

【0015】図1は、本発明にかかるプレ印刷除去装置
の一実施の形態を示し、このプレ印刷除去装置は、帳票
位置検出手段1と、罫線座標検出手段2と、罫線検出手
段3と、罫線照合手段4と、罫線ずれ量検出手段5と、
プレ印刷除去手段6と、罫線ずれ量記憶メモリ10と、
参照画像記憶メモリ11とで構成されている。プレ印刷
除去手段6は、位置ずれ量算出手段7と、座標変換手段
8と、画像照合手段9を含んでいる。
FIG. 1 shows an embodiment of a pre-print removing apparatus according to the present invention. The pre-print removing apparatus includes a form position detecting means 1, a ruled line coordinate detecting means 2, a ruled line detecting means 3, Ruled line collating means 4, ruled line displacement amount detecting means 5,
A pre-print removing unit 6, a ruled line displacement amount storage memory 10,
And a reference image storage memory 11. The pre-print removal unit 6 includes a displacement amount calculation unit 7, a coordinate conversion unit 8, and an image comparison unit 9.

【0016】次に、上記各手段の機能について説明す
る。
Next, the function of each means will be described.

【0017】帳票位置検出手段1は、帳票画像上の帳票
の左上隅の座標と帳票の傾きを検出する。罫線座標検出
手段2は、帳票画像上の帳票にプレ印刷された罫線の座
標を検出する。罫線検出手段3は、帳票画像上の帳票に
プレ印刷された罫線を検出し、罫線の傾きを求める。
The form position detecting means 1 detects the coordinates of the upper left corner of the form on the form image and the inclination of the form. The ruled line coordinate detecting means 2 detects the coordinates of ruled lines preprinted on a form on a form image. The ruled line detection means 3 detects a ruled line preprinted on a form on a form image, and obtains the inclination of the ruled line.

【0018】罫線照合手段4は、入力画像と参照画像の
各々について検出された罫線のうち、同一罫線同士を対
応づける。罫線ずれ量検出手段5は、罫線照合手段4に
より対応づけられた罫線に対して、罫線に垂直な方向へ
の両罫線の位置ずれ量を検出する。位置ずれ量算出手段
7は、罫線ずれ量検出手段5により検出された罫線の位
置ずれ量を基に、帳票上の任意の点における入力画像と
参照画像の位置ずれ量を計算する。
The ruled line matching means 4 associates the same ruled line among the ruled lines detected for each of the input image and the reference image. The ruled line shift amount detecting means 5 detects a positional shift amount of both ruled lines in a direction perpendicular to the ruled line with respect to the ruled line associated by the ruled line matching means 4. The displacement amount calculating means 7 calculates the displacement amount of the input image and the reference image at an arbitrary point on the form based on the displacement amount of the ruled line detected by the ruled line displacement amount detecting means 5.

【0019】座標変換手段8は、入力画像と参照画像の
プレ印刷位置が一致するように、入力画像を座標変換す
る。画像照合手段9は、参照画像と座標変換後の入力画
像の同じ位置の画素値を照合する。
The coordinate conversion means 8 converts the coordinates of the input image so that the pre-print positions of the input image and the reference image match. The image matching unit 9 compares pixel values at the same position in the input image after coordinate conversion with the reference image.

【0020】プレ印刷除去手段6は、位置ずれ量算出手
段7により計算された位置ずれ量と帳票位置検出手段1
により検出された入力画像と参照画像の各々の帳票左上
隅座標、及び罫線検出手段3により検出された罫線の傾
きに基づいて、両画像上の帳票のプレ印刷を照合し、入
力画像上のプレ印刷を除去した画像を出力する。
The pre-print removing means 6 includes the position shift amount calculated by the position shift amount calculating means 7 and the form position detecting means 1.
Based on the coordinates of the upper left corner of each form of the input image and the reference image detected by the above and the inclination of the ruled line detected by the ruled line detecting means 3, the preprinting of the forms on both images is collated, Outputs the image with print removed.

【0021】罫線ずれ量記憶メモリ10は、罫線ずれ量
検出手段5で検出した罫線ずれ量を格納する。参照画像
記憶メモリ11は、未記入の帳票の画像を参照画像とし
て格納する。
The ruled line shift amount storage memory 10 stores the ruled line shift amount detected by the ruled line shift amount detecting means 5. The reference image storage memory 11 stores an unfilled form image as a reference image.

【0022】次に、図2のフローチャートを主に参照し
て本実施の形態の全体の動作について詳細に説明する。
Next, the overall operation of the present embodiment will be described in detail mainly with reference to the flowchart of FIG.

【0023】帳票位置検出手段1は、参照画像上の帳票
の上辺の直線L1と左辺の直線L2を検出し、その交点
を帳票左上隅の座標(x_ref, y_ref)として検出する。ま
た、帳票の上辺L1の傾きθsp_refを検出する(図2の
ステップS1)。
The form position detecting means 1 detects a straight line L1 on the upper side and a straight line L2 on the left side of the form on the reference image, and detects an intersection thereof as coordinates (x_ref, y_ref) of an upper left corner of the form. Further, the inclination θsp_ref of the upper side L1 of the form is detected (Step S1 in FIG. 2).

【0024】次に、罫線座標検出手段2は、図4に示す
ように、前記帳票位置検出手段1により検出された画像
の帳票左上隅の座標(x_ref, y_ref)を原点とし、帳票上
辺の傾きθsp_ref方向にx軸、それに直交する方向にy
軸をとることにより定義される座標系において、x軸方
向及びy軸方向の各々に対して帳票上の黒画素を投影
し、x軸投影ヒストグラム及びy軸投影ヒストグラムを
生成する(図2のステップS2)。
Next, as shown in FIG. 4, the ruled line coordinate detecting means 2 uses the coordinates (x_ref, y_ref) of the upper left corner of the form of the image detected by the form position detecting means 1 as the origin, and the inclination of the upper side of the form. x-axis in θsp_ref direction, y in direction perpendicular to it
In the coordinate system defined by taking the axes, black pixels on the form are projected in each of the x-axis direction and the y-axis direction to generate an x-axis projection histogram and a y-axis projection histogram (step in FIG. 2). S2).

【0025】次に、図5に示すように、x軸投影ヒスト
グラム上の極大値をとるx座標のうち、予め定められた
しきい値PEAK_THよりも度数の高い座標(ピーク位置)
を、縦罫線の存在するx座標として検出する(図2のス
テップS3)。同様に、図6に示すように、y軸投影ヒ
ストグラム上の極大値をとるy座標のうち、予め定めら
れたしきい値PEAK_THよりも度数の高い座標(ピーク位
置)を、横罫線の存在するy座標として検出する。
Next, as shown in FIG. 5, among the x-coordinates having the maximum value on the x-axis projection histogram, the coordinates (peak position) having a frequency higher than a predetermined threshold value PEAK_TH.
Is detected as the x coordinate at which the vertical ruled line exists (step S3 in FIG. 2). Similarly, as shown in FIG. 6, among the y-coordinates having the maximum values on the y-axis projection histogram, the coordinates (peak positions) having a frequency higher than a predetermined threshold value PEAK_TH are defined as horizontal ruled lines. Detected as y coordinate.

【0026】次に、罫線検出手段3は、前記罫線座標検
出手段2により検出された縦罫線の存在するx座標上を
y軸方向に辿っていき、y軸方向に延びる連続した黒画
素を縦罫線として検出すると同時に、その縦罫線の傾き
を求める。次に、前記罫線座標検出手段により検出され
た横罫線の存在するy座標上をx軸方向に辿っていき、
x軸方向に延びる連続した黒画素を横罫線として検出す
ると同時に、その横罫線の傾きを求める。次に、罫線検
出手段3は、検出した罫線の各々の傾きを平均化し、そ
れをプレ印刷の傾きθfm_refとする(図2のステップS
4)。
Next, the ruled line detecting means 3 follows the x-coordinate where the vertical ruled line detected by the ruled line coordinate detecting means 2 exists in the y-axis direction, and successively black pixels extending in the y-axis direction. At the same time as detecting a ruled line, the inclination of the vertical ruled line is obtained. Next, it traces in the x-axis direction on the y coordinate where the horizontal ruled line detected by the ruled line coordinate detecting means exists,
Consecutive black pixels extending in the x-axis direction are detected as horizontal ruled lines, and the inclination of the horizontal ruled lines is obtained. Next, the ruled line detecting means 3 averages the inclination of each of the detected ruled lines and sets the average as the preprint inclination θfm_ref (step S in FIG. 2).
4).

【0027】次に、罫線座標検出手段2を再度適用し、
前記帳票位置検出手段1により検出された画像の帳票左
上隅の座標(x_ref, y_ref)を原点とし、前記罫線検出手
段3により求められたプレ印刷の傾きθfm_ref方向にx
軸、それに直交する方向にy軸をとることにより定義さ
れる座標系(以下、この座標系を帳票座標系と呼ぶ)に
おいて、x軸方向及びy軸方向の各々に対して帳票上の
黒画素を投影し、x軸投影ヒストグラム及びy軸投影ヒ
ストグラムを生成する(図2のステップS5)。次に、
x軸投影ヒストグラム上の極大値をとるx座標のうち、
予め定められたしきい値PEAK_THよりも度数の高い座標
を、縦罫線の存在するx座標として検出する。同様に、
y軸投影ヒストグラム上の極大値をとるy座標のうち、
予め定められたしきい値PEAK_THよりも度数の高い座標
を横罫線の存在するy座標として検出する(図2のステ
ップS6)。
Next, the ruled line coordinate detecting means 2 is applied again,
Using the coordinates (x_ref, y_ref) of the upper left corner of the form of the image detected by the form position detecting means 1 as the origin, x in the direction θfm_ref of the pre-print inclination calculated by the ruled line detecting means 3
In a coordinate system defined by taking the y-axis in a direction perpendicular to the axis (hereinafter, this coordinate system is referred to as a form coordinate system), black pixels on the form are defined for each of the x-axis direction and the y-axis direction. To generate an x-axis projection histogram and a y-axis projection histogram (step S5 in FIG. 2). next,
Among the x-coordinates that take the maximum value on the x-axis projection histogram,
A coordinate having a frequency higher than a predetermined threshold value PEAK_TH is detected as an x coordinate having a vertical ruled line. Similarly,
Of the y-coordinates that take the maximum value on the y-axis projection histogram,
A coordinate having a frequency higher than a predetermined threshold value PEAK_TH is detected as a y-coordinate having a horizontal ruled line (step S6 in FIG. 2).

【0028】次に、入力画像の帳票位置や罫線の位置等
を検出するが、その手段は参照画像に対して行ったのと
全く同じ手順で、前記帳票位置検出手段1と、罫線座標
検出手段2と、罫線検出手段3とを入力画像に対して適
用する(図2のステップS7〜S12)。その結果、参
照画像に対して適用した場合と同様に、入力画像の帳票
左上隅の座標(x_in, y_in)と、プレ印刷の傾きθfm_in
を得る。また、入力画像の帳票左上隅の座標(x_in, y_i
n)と、プレ印刷の傾きθfm_inによって定義される帳票
座標系における、入力画像上の縦罫線の存在するx座標
と横罫線の存在するy座標が検出される。
Next, the form position of the input image, the position of the ruled line, and the like are detected by the same procedure as that performed for the reference image. 2 and the ruled line detection means 3 are applied to the input image (steps S7 to S12 in FIG. 2). As a result, the coordinates (x_in, y_in) of the upper left corner of the form of the input image and the inclination θfm_in
Get. In addition, the coordinates (x_in, y_i
n) and the x coordinate where the vertical ruled line exists and the y coordinate where the horizontal ruled line exist on the input image in the form coordinate system defined by the inclination θfm_in of the pre-printing are detected.

【0029】次に、罫線照合手段4は、前記罫線座標検
出手段2の2度目の適用時に検出された参照画像と入力
画像の各々に対する縦罫線の存在するx座標のうち、座
標の差の絶対値が事前に設定したしきい値PEAK_LAG_LIM
ITよりも小さいもの同士を対応付け、それらを同じ縦罫
線を表すx座標のペア[pkx_in(i),pkx_ref(i)], i=1,2,
…,m とする(図2のステップS13)。ここで、mは対
応づけに成功したペアの個数である。また、pkx_in(i)
< pkx_in(i+1)、pkx_ref(i) < pkx_ref(i+1)を満たすも
のとする。
Next, the ruled line collating means 4 determines the absolute coordinate difference between the x-coordinates of the reference image and the input image detected at the second application of the ruled line coordinate detecting means 2 and the vertical ruled lines. Threshold PEAK_LAG_LIM with pre-set value
Those smaller than IT are associated with each other, and they are paired with the x coordinate [pkx_in (i), pkx_ref (i)], i = 1,2,
, M (step S13 in FIG. 2). Here, m is the number of pairs successfully associated. Also, pkx_in (i)
<pkx_in (i + 1), pkx_ref (i) <pkx_ref (i + 1).

【0030】次に、罫線照合手段4は、2度目の適用時
の罫線座標検出手段2により検出された参照画像と入力
画像の各々に対する横罫線の存在するy座標のうち、座
標の差の絶対値が事前に設定したしきい値PEAK_LAG_LIM
ITよりも小さいもの同士を対応付け、それらを同じ横罫
線を表すy座標のペア[pky_in(j),pky_ref(j)], j=1,2,
…,n とする。ここで、nは対応づけに成功したペアの個
数である。
Next, the ruled line collating means 4 determines the absolute value of the coordinate difference among the y-coordinates where the horizontal ruled lines exist for each of the reference image and the input image detected by the ruled line coordinate detecting means 2 at the time of the second application. Threshold PEAK_LAG_LIM with pre-set value
Those smaller than IT are associated with each other, and they are paired with the y coordinate representing the same horizontal ruled line [pky_in (j), pky_ref (j)], j = 1,2,
…, N. Here, n is the number of pairs successfully associated.

【0031】次に、罫線ずれ量検出手段5は、図7に示
すように、罫線照合手段4により生成されたx座標のペ
ア[pkx_in(i),pkx_ref(i)]の各々について、式(1)に
より、第iペアに対応する縦罫線の存在するx座標上の
相対的な罫線ずれ量lag_x(i)を求める(図2のステップ
S14)。
Next, as shown in FIG. 7, the ruled line shift amount detecting means 5 calculates an equation (Px_in (i), pkx_ref (i)) for each of the x coordinate pairs [pkx_in (i), pkx_ref (i)] generated by the ruled line matching means 4. According to 1), a relative ruled line shift amount lag_x (i) on the x coordinate where the vertical ruled line corresponding to the i-th pair exists is obtained (step S14 in FIG. 2).

【0032】 lag_x(i)=pkx_in(i)-pkx_ref(i) …(式1) また、pkx_ref(i)とlag_x(i)を関連づけて罫線ずれ量保
存メモリに格納する。罫線ずれ量保存メモリには、図8
のように、pkx_ref(i) < pkx_ref(i+1)を満たしつつ格
納されるものとする。
Lag_x (i) = pkx_in (i) -pkx_ref (i) (Equation 1) Further, pkx_ref (i) and lag_x (i) are stored in the ruled line deviation amount storage memory in association with each other. 8 is stored in the ruled line deviation amount storage memory.
It is assumed that pkx_ref (i) <pkx_ref (i + 1) is stored while satisfying.

【0033】次に、罫線ずれ量検出手段5は、それらの
y座標のペアの各々について、式(2)により、第jペ
アに対応する横罫線の存在するy座標上の相対的な罫線
ずれ量lag_y(j)を求める。
Next, the ruled line shift amount detecting means 5 calculates the relative ruled line shift on the y coordinate where the horizontal ruled line corresponding to the j-th pair exists, by using equation (2) for each pair of the y coordinates. Find the quantity lag_y (j).

【0034】 lag_y(j)=pky_in(j)-pky_ref(j) …(式2) また、pky_ref(j)とlag_y(j)を関連づけて罫線ずれ量保
存メモリに格納する。尚、罫線ずれ量保存メモリには、
pky_ref(j) < pky_ref(j+1)を満たしつつ格納されるも
のとする。
Lag_y (j) = pky_in (j) -pky_ref (j) (Equation 2) Also, pky_ref (j) and lag_y (j) are stored in the ruled line deviation amount storage memory in association with each other. In addition, the ruled line deviation amount storage memory contains
It shall be stored while satisfying pky_ref (j) <pky_ref (j + 1).

【0035】次に、プレ印刷除去手段6は、参照画像の
帳票上の各画素位置(x,y)について、位置ずれ量算出手
段7、座標変換手段8、及び画像照合手段9を適用す
る。これにより、入力画像を参照画像と照合し、入力画
像からプレ印刷を除去した画像を生成し、それを結果画
像として出力する。
Next, the pre-print removing means 6 applies the displacement calculating means 7, the coordinate converting means 8 and the image comparing means 9 to each pixel position (x, y) on the form of the reference image. As a result, the input image is compared with the reference image, an image in which the pre-print is removed from the input image is generated, and the image is output as a result image.

【0036】まず、プレ印刷除去手段6は、参照画像内
の帳票上のある画素を注目点(x,y)として1つ選択する
(図3のステップS20)。
First, the pre-print removing means 6 selects one pixel on the form in the reference image as a point of interest (x, y) (step S20 in FIG. 3).

【0037】位置ずれ量算出手段7は、罫線ずれ量検出
手段5により検出されたx軸方向の罫線ずれ量lag_x(i)
と、それに対応づけられて記憶されている参照画像上の
縦罫線位置のx座標pkx_ref(i)をもとに、参照画像上の
注目点(x,y)の帳票座標系での座標(Xs,Ys)における帳票
座標系のx軸方向への位置ずれ量dx(Xs)を求める(図3
のステップS21)。同様に、罫線ずれ量検出手段5に
より検出されたy方向の罫線ずれ量lag_y(j)とそれに対
応づけられて記憶されている参照画像上の横罫線位置の
y座標pky_ref(j)をもとに、帳票座標系での帳票上の座
標(Xs,Ys)における帳票座標系のy軸方向への位置ずれ
量dy(Ys)を求める(図3のステップS22)。
The position shift amount calculating means 7 calculates the ruled line shift amount lag_x (i) in the x-axis direction detected by the ruled line shift amount detecting means 5.
And the coordinate (Xs, xs) of the point of interest (x, y) on the reference image in the form coordinate system based on the x coordinate pkx_ref (i) of the vertical ruled line position on the reference image stored in association with the , Ys), the displacement amount dx (Xs) of the form coordinate system in the x-axis direction is obtained (FIG. 3).
Step S21). Similarly, the ruled line displacement amount lag_y (j) in the y direction detected by the ruled line displacement amount detection means 5 and the horizontal ruled line position on the reference image stored in association with it.
Based on the y-coordinate pky_ref (j), a displacement amount dy (Ys) in the y-axis direction of the form coordinate system at the coordinates (Xs, Ys) on the form in the form coordinate system is obtained (step S22 in FIG. 3). ).

【0038】次に、参照画像上の帳票座標系での座標(X
s, Ys)における位置ずれ量dy(Xs),dy(Ys)の求め方につ
いて説明する。
Next, the coordinates (X in the form coordinate system on the reference image)
A method for obtaining the displacement amounts dy (Xs) and dy (Ys) in (s, Ys) will be described.

【0039】x座標Xsにおける帳票座標系のx軸方向の
位置ずれ量dx(Xs)は、x座標Xsの位置により、次の3通
りのうちのいずれかの方法で求められる。
The displacement dx (Xs) in the x-axis direction of the form coordinate system at the x-coordinate Xs can be obtained by one of the following three methods depending on the position of the x-coordinate Xs.

【0040】(a)x=Xsが隣接する2つの縦罫線に挟ま
れる領域に位置している場合には、x軸方向の位置ずれ
量dx(Xs)は、x=Xsを挟むx軸の区間[pkx_ref(i),pkx_ref
(i+1)]において、縦罫線位置におけるx軸方向の罫線ず
れ量[lag_x(i),lag_x(i+1)]間を式(3)により線形補
間することにより求める。
(A) When x = Xs is located in an area sandwiched between two adjacent vertical ruled lines, the amount of displacement dx (Xs) in the x-axis direction is determined by the x-axis offset of x = Xs. Interval [pkx_ref (i), pkx_ref
(i + 1)], linear interpolation is performed between the ruled line shift amounts [lag_x (i), lag_x (i + 1)] in the x-axis direction at the vertical ruled line position using equation (3).

【0041】 dx(Xs)=((pkx_ref(i+1)-Xs)*lag_x(i)+(Xs-pkx_ref(i))*lag_x(i+1))/(pkx_ ref(i+1)-pkx_ref(i)) …(式3) (b)x=Xsが最も左の縦罫線のx座標pkx_ref(1)よりも
小さい場合には、x=Xsにおける位置ずれ量dx(Xs)は、最
も左の縦罫線の罫線ずれ量lag_x(1)とする。
Dx (Xs) = ((pkx_ref (i + 1) -Xs) * lag_x (i) + (Xs-pkx_ref (i)) * lag_x (i + 1)) / (pkx_ref (i + 1) -pkx_ref (i)) (Equation 3) (b) If x = Xs is smaller than the x coordinate pkx_ref (1) of the leftmost vertical ruled line, the displacement dx (Xs) at x = Xs is The ruled line shift amount lag_x (1) of the leftmost vertical ruled line is set.

【0042】(c)x=Xsが最も右の縦罫線のx座標pkx_
lag(m)よりも大きい場合には、x=Xsにおける位置ずれ量
dx(Xs)は、最も右の縦罫線の罫線ずれ量lag_x(m)とす
る。
(C) x = Xs is the x coordinate pkx_ of the rightmost vertical ruled line
If it is larger than lag (m), the displacement amount at x = Xs
dx (Xs) is the ruled line shift amount lag_x (m) of the rightmost vertical ruled line.

【0043】同様に、y座標Ysにおける帳票座標系のy
軸方向の位置ずれ量dy(Ys)は、y座標Ysの位置により、
次の3通りのうちのいずれかの方法で求められる。
Similarly, y in the form coordinate system at y coordinate Ys
The axial displacement dy (Ys) is determined by the position of the y coordinate Ys.
It is obtained by one of the following three methods.

【0044】(a)y=Ysが隣接する2つの横罫線に挟ま
れる領域に位置している場合には、y軸方向の位置ずれ
量dy(Ys)は、y=Ysを挟むy軸の区間[pky_ref(j),pky_ref
(j+1)]において、横罫線位置におけるy軸方向の罫線ず
れ量[lag_y(j),lag_y(j+1)]間を式(4)により線形補
間することにより求める。
(A) When y = Ys is located in an area sandwiched between two adjacent horizontal ruled lines, the displacement amount dy (Ys) in the y-axis direction is calculated based on the y-axis sandwiching y = Ys. Interval [pky_ref (j), pky_ref
(j + 1)], the amount of displacement of the ruled line in the y-axis direction [lag_y (j), lag_y (j + 1)] at the horizontal ruled line position is obtained by linear interpolation using equation (4).

【0045】 dy(Ys)=((pky_ref(j+1)-Ys)*lag_y(j)+(Ys-pky_ref(j))*lag_y(j+1))/(pky_ ref(j+1)-pky_ref(j)) …(式4) (b)y=Ysが最も上の横罫線のy座標pky_ref(1)よりも
小さい場合には、y=Ysにおける位置ずれ量dy(Ys)は、最
も上の横罫線上の罫線ずれ量lag_y(1)とする。
Dy (Ys) = ((pky_ref (j + 1) -Ys) * lag_y (j) + (Ys-pky_ref (j)) * lag_y (j + 1)) / (pky_ref (j + 1) -pky_ref (j)) (Equation 4) (b) If y = Ys is smaller than the y coordinate pky_ref (1) of the top horizontal ruled line, the displacement dy (Ys) at y = Ys is The ruled line shift amount lag_y (1) on the uppermost horizontal ruled line is set.

【0046】(c)y=Ysが最も下の横罫線のy座標pky_
lag(n)よりも大きい場合には、y=Ysにおける位置ずれ量
dy(Ys)は、最も下の横罫線上の罫線ずれ量lag_y(n)とす
る。
(C) y = Ys is the y coordinate pky_ of the lowermost horizontal ruled line
If it is larger than lag (n), the amount of displacement at y = Ys
dy (Ys) is a ruled line shift amount lag_y (n) on the lowest horizontal ruled line.

【0047】次に、座標変換手段8は、図9に示す座標
変換式を用いて、入力画像のプレ印刷の位置が参照画像
のプレ印刷の位置に一致するように入力画像を座標変換
した変換画像上の画素値を求める(図3のステップS2
3)。図9に示す座標変換式は、入力画像を平行移動及
び回転させるだけでなく、罫線の位置ずれを補正するよ
うに入力画像を伸縮することを意味する。
Next, the coordinate conversion means 8 uses the coordinate conversion formula shown in FIG. 9 to perform coordinate conversion on the input image so that the pre-print position of the input image matches the pre-print position of the reference image. Find pixel values on the image (step S2 in FIG. 3)
3). The coordinate conversion formula shown in FIG. 9 means not only moving and rotating the input image but also expanding and contracting the input image so as to correct the displacement of the ruled line.

【0048】次に、画像照合手段9は、前記画像変換手
段8により生成された変換画像と参照画像とで、同じ画
素位置にある画素同士を照らし合わせ、変換画像からプ
レ印刷部分を除去した記入文字のみを残した画像をプレ
印刷除去画像として出力する。すなわち、参照画像上の
注目点(x,y)の画素が白画素で、変換画像上の注目点(x,
y)の画素が黒画素であった場合には、変換画像上の注目
点(x,y)の画素を記入文字画素であると判断し、結果画
像上の注目点(x,y)の画素値を黒画素とする。それ以外
の場合には、結果画像上の注目点(x,y)の画素値を白画
素とする(図3のステップS24)。
Next, the image collating means 9 illuminates the pixels at the same pixel position with the converted image generated by the image converting means 8 and the reference image, and removes the preprinted portion from the converted image. An image leaving only characters is output as a pre-print removal image. That is, the pixel of interest (x, y) on the reference image is a white pixel, and the interest point (x, y) on the converted image is
If the pixel of (y) is a black pixel, the pixel of the point of interest (x, y) on the converted image is determined to be an input character pixel, and the pixel of the point of interest (x, y) on the result image is determined. Let the value be a black pixel. In other cases, the pixel value of the target point (x, y) on the result image is set as a white pixel (step S24 in FIG. 3).

【0049】次に、参照画像内の帳票上の全ての画素を
選択済みかどうか判断し(図3のステップS25)、未
選択の画素があればステップS20に戻り、未選択の画
素を次の注目点として1つ選択する。全ての画素が選択
済みであれば、結果画像をプレ印刷除去画像として出力
する。
Next, it is determined whether or not all pixels on the form in the reference image have been selected (step S25 in FIG. 3). If there is an unselected pixel, the process returns to step S20, and the unselected pixel is replaced with the next pixel. One is selected as a point of interest. If all pixels have been selected, the result image is output as a pre-print removal image.

【0050】次に、本実施の形態の効果について説明す
る。
Next, the effect of this embodiment will be described.

【0051】本実施の形態では、位置ずれ量算出手段7
により帳票上の任意の点における位置ずれ量を罫線に基
づいて算出し、座標変換手段8により、平行移動と回転
だけでなく、罫線が一致するような入力画像の伸縮をも
行うように構成されている。そのため、画像取得時の帳
票搬送速度のむらに起因する搬送方向の画像のずれだけ
でなく、用紙の伸縮等による帳票の上下及び左右方向へ
の罫線の位置ずれをも補正することができる。
In this embodiment, the displacement amount calculating means 7
Is calculated based on the ruled line, and the coordinate conversion means 8 performs not only parallel movement and rotation but also expansion and contraction of the input image such that the ruled line matches. ing. Therefore, it is possible to correct not only the image displacement in the transport direction due to the unevenness of the form transport speed at the time of image acquisition, but also the displacement of the ruled lines in the vertical and horizontal directions of the form due to the expansion and contraction of the paper.

【0052】次に、具体的な実施例を用いて本実施の形
態の動作を説明する。
Next, the operation of this embodiment will be described using a specific example.

【0053】図10に示すような、記入済みの帳票20
1をスキャナ等の画像入力装置で取り込んだ2値画像2
00に対してプレ印刷除去を行う場合について説明す
る。尚、このとき、図11に示すような、同じ書式情報
がプレ印刷された未記入の帳票301を前記画像入力装
置で取り込んだ2値画像300が参照画像記憶メモリ1
1に格納されているものとする。
A completed form 20 as shown in FIG.
1 is a binary image captured by an image input device such as a scanner 2
A case where pre-print removal is performed for 00 will be described. At this time, as shown in FIG. 11, a binary image 300 obtained by the image input device with the blank form 301 preprinted with the same format information is stored in the reference image storage memory 1.
1 is stored.

【0054】帳票位置検出手段1は、参照画像記憶メモ
リ11内に格納されている参照画像300の、未記入帳
票301の左上隅の座標(x_ref, y_ref)及び帳票上辺の
傾きθsp_refを検出する(図2のステップS1)。
The form position detecting means 1 detects the coordinates (x_ref, y_ref) of the upper left corner of the blank form 301 and the inclination θsp_ref of the top side of the form in the reference image 300 stored in the reference image storage memory 11 ( Step S1 in FIG. 2).

【0055】罫線座標検出手段2は、参照画像300の
x軸投影ヒストグラム(図5)とy軸投影ヒストグラム
(図6)を生成する(図2のステップS2)。次に、罫
線座標検出手段2は、図5に示すx軸投影ヒストグラム
上の2つのピーク位置px1、px2を、縦罫線の存在するx
座標として検出する。同様に、図6に示すy軸投影ヒス
トグラム上の6つのピーク位置py1、py2、py3、py4、py
5、py6を、横罫線の存在するy座標として検出する(図
2のステップS3)。
The ruled line coordinate detecting means 2 generates an x-axis projection histogram (FIG. 5) and a y-axis projection histogram (FIG. 6) of the reference image 300 (step S2 in FIG. 2). Next, the ruled line coordinate detecting means 2 determines two peak positions px1 and px2 on the x-axis projection histogram shown in FIG.
Detect as coordinates. Similarly, six peak positions py1, py2, py3, py4, and py on the y-axis projection histogram shown in FIG.
5. py6 is detected as the y coordinate where the horizontal ruled line exists (step S3 in FIG. 2).

【0056】次に、罫線検出手段3は、前記罫線座標検
出手段2により検出された縦罫線の存在するx座標上を
もとに縦罫線を検出すると同時に、その縦罫線の傾きを
求める(図2のステップS4)。次に、前記罫線座標検
出手段2により検出された横罫線の存在するy座標上を
もとに横罫線を検出すると同時に、その横罫線の傾きを
求める。次に、罫線検出手段3は、検出した罫線の各々
の傾きの平均値を計算し、それをプレ印刷の傾きθfm_r
efとする。
Next, the ruled line detecting means 3 detects a vertical ruled line based on the x-coordinate where the vertical ruled line detected by the ruled line coordinate detecting means 2 exists, and at the same time, obtains the inclination of the vertical ruled line (see FIG. 2 step S4). Next, a horizontal ruled line is detected based on the y-coordinate where the horizontal ruled line detected by the ruled line coordinate detecting means 2 exists, and at the same time, the inclination of the horizontal ruled line is obtained. Next, the ruled line detection means 3 calculates the average value of the slopes of the detected ruled lines, and calculates the average value of the preprinted slope θfm_r.
ef.

【0057】次に、罫線座標検出手段2は、前記帳票位
置検出手段1により検出された画像の帳票左上隅の座標
(x_ref, y_ref)、及び前記罫線検出手段3により求めら
れたプレ印刷の傾きθfm_refにより定義される帳票座標
系において、x軸方向及びy軸方向の各々に対して帳票
上の黒画素を投影し、図示しないx軸投影ヒストグラム
及びy軸投影ヒストグラムを生成する(図2のステップ
S5)。次に、このx軸投影ヒストグラム上のピーク位
置を、縦罫線の存在するx座標として検出する。同様
に、y軸投影ヒストグラム上のピーク位置を横罫線の存
在するy座標として検出する(図2のステップS6)。
Next, the ruled line coordinate detecting means 2 calculates the coordinates of the upper left corner of the form of the image detected by the form position detecting means 1.
In the form coordinate system defined by (x_ref, y_ref) and the preprint inclination θfm_ref obtained by the ruled line detection means 3, black pixels on the form are projected in each of the x-axis direction and the y-axis direction. Then, an x-axis projection histogram and a y-axis projection histogram (not shown) are generated (step S5 in FIG. 2). Next, the peak position on the x-axis projection histogram is detected as the x coordinate where the vertical ruled line exists. Similarly, the peak position on the y-axis projection histogram is detected as the y coordinate where the horizontal ruled line exists (step S6 in FIG. 2).

【0058】次に、入力画像200の帳票位置や罫線の
位置等を検出する(図2のステップS7〜S12)。そ
の結果、入力画像の帳票左上隅の座標(x_in, y_in)と、
プレ印刷の傾きθfm_inを得る。また、入力画像の帳票
左上隅の座標(x_in, y_in)と、プレ印刷の傾きθfm_in
によって定義される帳票座標系における、入力画像上の
縦罫線の存在するx座標と横罫線の存在するy座標が検
出される。
Next, the position of the form and the position of the ruled line of the input image 200 are detected (steps S7 to S12 in FIG. 2). As a result, the coordinates (x_in, y_in) of the upper left corner of the form of the input image and
Obtain the preprint inclination θfm_in. Also, the coordinates (x_in, y_in) of the upper left corner of the form of the input image and the inclination θfm_in
In the form coordinate system defined by the above, the x coordinate where the vertical ruled line exists and the y coordinate where the horizontal ruled line exists on the input image are detected.

【0059】次に、罫線照合手段4は、前記罫線座標検
出手段2により検出された参照画像300と入力画像2
00の各々に対する縦罫線の存在するx座標のうち、同
じ縦罫線を表すx座標のペア[pkx_in(i),pkx_ref(i)]を
見つける。
Next, the ruled line collating means 4 compares the reference image 300 detected by the ruled line coordinate detecting means 2 with the input image 2.
Among the x-coordinates where the vertical ruled lines exist for each of 00, a pair [pkx_in (i), pkx_ref (i)] of the x-coordinate representing the same vertical ruled line is found.

【0060】次に、罫線照合手段4は、前記罫線座標検
出手段2により検出された参照画像300と入力画像2
00の各々に対する横罫線の存在するy座標のうち、同
じ横罫線を表すy座標のペア[pky_in(j),pky_ref(j)]を
見つける(図2のステップS13)。
Next, the ruled line collating means 4 compares the reference image 300 detected by the ruled line coordinate detecting means 2 with the input image 2.
Among the y-coordinates where horizontal ruled lines exist for each of 00, a pair of y-coordinates [pky_in (j), pky_ref (j)] representing the same horizontal ruled line is found (step S13 in FIG. 2).

【0061】次に、罫線ずれ量検出手段5は、縦罫線の
存在するx座標上の相対的な罫線ずれ量lag_x(i)、及び
横罫線の存在するy座標上の相対的な罫線ずれ量lag_y
(j)を求める(図2のステップS14)。
Next, the ruled line shift amount detecting means 5 calculates the relative ruled line shift amount lag_x (i) on the x coordinate where the vertical ruled line exists and the relative ruled line shift amount on the y coordinate where the horizontal ruled line exists. lag_y
(j) is obtained (step S14 in FIG. 2).

【0062】次に、プレ印刷除去手段6は、参照画像の
帳票上の各画素位置(x,y)について、位置ずれ量算出手
段7、座標変換手段8、及び画像照合手段9を適用す
る。それにより、入力画像を参照画像と照合し、入力画
像からプレ印刷を除去した結果画像400を生成し、そ
れを結果画像として出力する(図2のステップS1
5)。
Next, the pre-print removing unit 6 applies the displacement calculating unit 7, the coordinate converting unit 8, and the image comparing unit 9 to each pixel position (x, y) on the form of the reference image. Thereby, the input image is compared with the reference image, a result image 400 obtained by removing the pre-printing from the input image is generated, and the result image is output as the result image (step S1 in FIG. 2).
5).

【0063】[0063]

【発明の効果】以上説明したように、本発明によれば、
入力画像の平行移動及び回転に加えて、伸縮を行うこと
ができるため、画像取得時の搬送速度のむらに起因する
搬送方向への画像の伸縮や、帳票自体の伸縮等が存在す
る場合でも、入力画像と参照画像間のプレ印刷の位置ず
れを検出し、プレ印刷除去を行うことができるプレ印刷
除去装置及び方法を提供することができる。
As described above, according to the present invention,
In addition to the parallel movement and rotation of the input image, expansion and contraction can be performed, so even if there is expansion or contraction of the image in the conveyance direction due to uneven conveyance speed at the time of image acquisition, expansion or contraction of the form itself, etc. It is possible to provide a pre-print removal apparatus and method capable of detecting a pre-print displacement between an image and a reference image and performing pre-print removal.

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

【図1】本発明にかかるプレ印刷除去装置の一実施の形
態の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an embodiment of a preprint removal apparatus according to the present invention.

【図2】本発明にかかるプレ印刷除去装置の一実施の形
態の動作を示す流れ図である。
FIG. 2 is a flowchart showing the operation of an embodiment of the preprint removal apparatus according to the present invention.

【図3】本発明にかかるプレ印刷除去装置のプレ印刷除
去手段の動作を示す流れ図である。
FIG. 3 is a flowchart showing an operation of a pre-print removing unit of the pre-print removing apparatus according to the present invention.

【図4】本発明にかかるプレ印刷除去装置における画素
投影ヒストグラムの生成方法を示す図である。
FIG. 4 is a diagram showing a method for generating a pixel projection histogram in the preprint removal apparatus according to the present invention.

【図5】本発明にかかるプレ印刷除去装置におけるx軸
画素投影ヒストグラムのピーク検出方法を示す図であ
る。
FIG. 5 is a diagram illustrating a method of detecting a peak of an x-axis pixel projection histogram in the pre-print removal apparatus according to the present invention.

【図6】本発明にかかるプレ印刷除去装置におけるy軸
画素投影ヒストグラムのピーク検出方法を示す図であ
る。
FIG. 6 is a diagram showing a peak detection method of a y-axis pixel projection histogram in the pre-print removal apparatus according to the present invention.

【図7】本発明にかかるプレ印刷除去装置における罫線
ずれ量の検出方法を示す図である。
FIG. 7 is a diagram illustrating a method for detecting a ruled line shift amount in the pre-print removal apparatus according to the present invention.

【図8】本発明にかかるプレ印刷除去装置における罫線
ずれ量記憶メモリの格納方法を示す図である。
FIG. 8 is a diagram showing a storage method of a ruled line shift amount storage memory in the pre-print removal apparatus according to the present invention.

【図9】本発明にかかるプレ印刷除去装置における座標
変換を表す式である。
FIG. 9 is an equation showing coordinate transformation in the preprint removal apparatus according to the present invention.

【図10】本発明にかかるプレ印刷除去装置の一実施例
における入力画像の例を示す図である。
FIG. 10 is a diagram showing an example of an input image in one embodiment of the preprint removal apparatus according to the present invention.

【図11】本発明にかかるプレ印刷除去装置の一実施例
における参照画像の例を示す図である。
FIG. 11 is a diagram showing an example of a reference image in an embodiment of the preprint removing apparatus according to the present invention.

【図12】本発明にかかるプレ印刷除去装置の一実施例
における結果画像の例を示す図である。
FIG. 12 is a view showing an example of a result image in one embodiment of the pre-print removal apparatus according to the present invention.

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

1 帳票位置検出手段 2 罫線座標検出手段 3 罫線検出手段 4 罫線照合手段 5 罫線ずれ量検出手段 6 プレ印刷除去手段 7 位置ずれ量算出手段 8 座標変換手段 9 画像照合手段 10 罫線ずれ量記憶メモリ 11 参照画像記憶メモリ 100 参照画像 101 未記入帳票 200 入力画像 201 記入済み帳票 300 参照画像 301 未記入帳票 400 結果画像 REFERENCE SIGNS LIST 1 form position detecting means 2 ruled line coordinate detecting means 3 ruled line detecting means 4 ruled line collating means 5 ruled line displacement amount detecting means 6 preprint removing means 7 positional displacement amount calculating means 8 coordinate converting means 9 image collating means 10 ruled line displacement amount storage memory 11 Reference image storage memory 100 Reference image 101 Blank form 200 Input image 201 Filled form 300 Reference image 301 Blank form 400 Result image

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2C087 AA12 BD01 BD24 CB03 CB04 5B057 AA11 BA02 CA12 CA16 CB12 CB16 CC01 CD02 CD03 CD05 CH11 DA07 DA08 DB02 DC03 DC19 DC32 5C076 AA03 AA21 AA22 AA24 BA01 BA06 CB05 5L096 FA03 FA36 FA66 GA08 MA03 ────────────────────────────────────────────────── ─── Continued on the front page F term (reference) 2C087 AA12 BD01 BD24 CB03 CB04 5B057 AA11 BA02 CA12 CA16 CB12 CB16 CC01 CD02 CD03 CD05 CH11 DA07 DA08 DB02 DC03 DC19 DC32 5C076 AA03 AA21 AA22 AA24 BA01 BA06 CB05 FA03FA03 GA03

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力画像と参照画像の各々の帳票の罫線
のうち、同一罫線同士を検出する罫線照合手段と、 該罫線照合手段により同一罫線と判断された罫線同士の
ずれ量を検出する罫線ずれ量検出手段と、 該罫線ずれ量検出手段により検出された罫線ずれ量をも
とに、帳票上の任意の点における位置ずれ量を計算する
位置ずれ量算出手段と、 該位置ずれ量算出手段により計算された位置ずれ量をも
とに、前記入力画像の平行移動、回転、伸縮の少なくと
も一つを行う座標変換手段と、 該座標変換手段によって座標変換された入力画像と前記
参照画像とを照合して入力画像からプレ印刷部分を除去
する画像照合手段とを備えたことを特徴とするプレ印刷
除去装置。
A rule matching means for detecting the same ruled line among the ruled lines of each form of an input image and a reference image; and a ruled line for detecting an amount of displacement between ruled lines determined to be the same ruled line by the ruled line matching means. Displacement amount detection means; displacement amount calculation means for calculating a displacement amount at an arbitrary point on a form based on the displacement amount of the ruled line detected by the displacement amount detection means; Based on the displacement calculated by (1), a coordinate conversion unit that performs at least one of translation, rotation, and expansion / contraction of the input image; and the input image and the reference image that have been coordinate-converted by the coordinate conversion unit. An image collating means for collating and removing a preprint portion from an input image.
【請求項2】 入力画像と参照画像の各々の帳票の罫線
のうち、同一罫線同士を検出するステップと、 同一罫線と判断された罫線同士のずれ量を検出するステ
ップと、 検出された罫線ずれ量をもとに、帳票上の任意の点にお
ける位置ずれ量を計算するステップと、 計算された位置ずれ量をもとに、前記入力画像の平行移
動、回転、伸縮の少なくとも一つを行うステップと、 座標変換された入力画像と前記参照画像とを照合して入
力画像からプレ印刷部分を除去するステップとを備えた
ことを特徴とするプレ印刷除去方法。
2. A step of detecting the same ruled line among the ruled lines of each form of the input image and the reference image; a step of detecting a shift amount between the ruled lines determined to be the same ruled line; Calculating a displacement amount at an arbitrary point on the form based on the displacement amount; and performing at least one of translation, rotation, and expansion / contraction of the input image based on the calculated displacement amount. And a step of collating the coordinate-converted input image with the reference image to remove a preprint portion from the input image.
JP2000240055A 2000-08-08 2000-08-08 Apparatus and method of removing preprinting Withdrawn JP2002057873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000240055A JP2002057873A (en) 2000-08-08 2000-08-08 Apparatus and method of removing preprinting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000240055A JP2002057873A (en) 2000-08-08 2000-08-08 Apparatus and method of removing preprinting

Publications (1)

Publication Number Publication Date
JP2002057873A true JP2002057873A (en) 2002-02-22

Family

ID=18731483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000240055A Withdrawn JP2002057873A (en) 2000-08-08 2000-08-08 Apparatus and method of removing preprinting

Country Status (1)

Country Link
JP (1) JP2002057873A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016100780A (en) * 2014-11-21 2016-05-30 京セラドキュメントソリューションズ株式会社 Image processing device
CN109409180A (en) * 2017-08-16 2019-03-01 富士施乐株式会社 Image analysis apparatus and image analysis method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016100780A (en) * 2014-11-21 2016-05-30 京セラドキュメントソリューションズ株式会社 Image processing device
CN109409180A (en) * 2017-08-16 2019-03-01 富士施乐株式会社 Image analysis apparatus and image analysis method
CN109409180B (en) * 2017-08-16 2023-08-18 富士胶片商业创新有限公司 Image analysis device and image analysis method

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
US7969631B2 (en) Image processing apparatus, image processing method and computer readable medium storing image processing program
JP3636809B2 (en) Image processing method
WO2004051575A1 (en) Characteristic region extraction device, characteristic region extraction method, and characteristic region extraction program
JP2008147976A (en) Image inclination correction device and image inclination correcting method
AU2008246275A1 (en) Image processor, image processing method and image processing program
JP6665595B2 (en) Character recognition device, method and program
JP2007241356A (en) Image processor and image processing program
JP2005208847A (en) Image defect detecting apparatus and image forming apparatus
US5887083A (en) Method of processing image information based on object model
JP6413542B2 (en) Image processing apparatus and image processing program
JP2002057873A (en) Apparatus and method of removing preprinting
JP2005184685A (en) Image processing device, program, and recording medium
CN113536822B (en) Two-dimensional code correction method and device and computer readable storage medium
JPH1091783A (en) Method for positioning picture and device for recognizing facsimile character and computer storage medium
JP3303246B2 (en) Image processing device
JPH09147109A (en) Method and device for specific mark detection
JP2001101399A (en) Method for detecting image inclination, method for detecting margin, method for correcting image inclination and document image processor
JP3640488B2 (en) Image processing method
JP2015156166A (en) Map correction method and map correction device
US9325872B2 (en) Image processing apparatus
JP2007328652A (en) Image processing device and image processing program
JP2007249580A (en) Image processor, image processing program and image processing method
JP3932201B2 (en) Form type identification device and recording medium
JP2000339407A (en) Picture processor, picture processing method and computer readable storage medium

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