JP2004178002A - Retouch extraction device, retouch extraction method, program therefor and recording medium - Google Patents
Retouch extraction device, retouch extraction method, program therefor and recording medium Download PDFInfo
- Publication number
- JP2004178002A JP2004178002A JP2002339955A JP2002339955A JP2004178002A JP 2004178002 A JP2004178002 A JP 2004178002A JP 2002339955 A JP2002339955 A JP 2002339955A JP 2002339955 A JP2002339955 A JP 2002339955A JP 2004178002 A JP2004178002 A JP 2004178002A
- Authority
- JP
- Japan
- Prior art keywords
- image
- images
- correlation
- difference
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、手書き文字入力システムに対する加筆抽出方法に関するものであり加筆抽出および加筆画像作成の抽出精度を向上させる加筆抽出装置、加筆抽出方法、加筆抽出プログラム及び記録媒体に関する。
【0002】
【従来の技術】
従来、文書画像ファイリング装置に登録された画像データの内容を更新する際には、装置内に取り込まれた画像データに対して直接書き込み処理を行うか、または別に文字データを用意して重ね合わせるなどの方法がある。また、紙ベースで加筆修正した更新画像を読み取り、この更新画像を記録する方法もある。
【0003】
従来の技術例としては、文書処理装置において、手書きで記入された情報を画像情報として検出する手段の1つとして用いることにより、入力された加筆重畳画像をブロック分割した後、その小領域毎に差分をとり、スキューが発生しているか否かを確認しながら最適な位置合わせを行う文書処理装置がある(例えば、特許文献1参照)。また、画像の中の、外枠の隅などの特徴的な四点を検出し、それぞれの点が電子原稿画像中の対応する点に移動する様に補完処理を行う方法や、一点を対応点へ平行移動しその点を中心に回転させ伸縮などを行うアフィン変換式により補正処理を行う方法などで、位置合わせを行った後に差分処理を行う文書画像ファイリング装置及び文書画像更新方法がある(例えば、特許文献2参照)。また、マーク未記入の原稿画像とマークが記入された加筆重畳画像との差分画像を生成し、差分画像における各チェック領域内の黒画素数および黒画素割合を算出することでマークの有無を判定するマーク認識装置がある(例えば、特許文献3参照)。
【0004】
【特許文献1】
特開平5−244387号公報
【特許文献2】
特開2001−283231号公報
【特許文献3】
特開平11−265422号公報
【0005】
【発明が解決しようとする課題】
しかしながら、上述の特許文献1から3記載の従来例は、いずれも電子画像と、印刷とスキャンのプロセスを通過する加筆重畳画像とでは印刷文字の太さが異なることを考慮に入れていない。さらに、特許文献1記載の文書処理装置および特許文献3記載のマーク認識装置は、差分処理後のノイズ除去等に関して何ら対策がなされておらず、差分処理後の画像には細かいノイズ成分が残る場合がある。また、特許文献2記載の文書画像ファイリング装置および文書画像更新方法および特許文献3記載のマーク認識装置は、プリント時の紙送りムラ、ドラム回転ムラ、スキャン時における光学系の速度ムラなどによる加筆した画像の局所的な倍率の変動に対応できない。
【0006】
本発明は上記事情に鑑みてなされたものであり、電子画像と加筆重畳画像から加筆画像を作成する際に、領域を分割して位置合わせをしつつ、両画像の文字線幅の違いを考慮に入れて差分処理を行う事により、より精度の高い加筆抽出を行う加筆抽出装置、加筆抽出方法、加筆抽出プログラム及び記録媒体を提供することを目的としている。
【0007】
【課題を解決するための手段】
かかる目的を達成するために、請求項1記載の加筆抽出装置は、電子文書の原稿画像と、電子文書を紙へ出力した後に手書きの加筆が重畳した状態で画像読取装置により再び電子化された画像とを細分化する領域分割手段と、領域分割手段によって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関手段と、画像相関手段によって前記位置合わせが行われた画像間での画像差分処理と同時に、位置からずらした画像間での差分処理を行う画像差分手段とを有することを特徴としている。
【0008】
請求項2記載の加筆抽出装置は、請求項1記載の加筆抽出装置において、画像相関手段は、計算の対象となる2枚の画像の画素値の総和や画像の面積に依存しない相関値を算出することを特徴としている。
【0009】
請求項3記載の加筆抽出装置は、請求項1記載の加筆抽出装置において、画像差分手段は、画像相関手段によって位置合わせが行われた画像間の相関値が所定の閾値Th1 以上の場合にのみ差分処理を行うことを特徴としている。
【0010】
請求項4記載の加筆抽出装置は、請求項1記載の加筆抽出装置において、画像差分手段は、画像相関手段によって位置合わせが行われ、その位置からわずかにずらした画像間の相関値が所定の閾値Th2 以上の場合にのみ差分処理を行うことを特徴としている。
【0011】
請求項5記載の加筆抽出方法は、電子文書の原稿画像と、電子文書を紙へ出力した後に手書きの加筆が重畳した状態で画像読取装置により再び電子化された画像とを細分化する領域分割ステップと、領域分割ステップによって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関ステップと、画像相関ステップによって位置合わせが行われた画像間での画像差分処理と同時に、位置合わせの位置からわずかにずらした画像間での差分処理を行う画像差分ステップとを有することを特徴としている。
【0012】
請求項6記載の加筆抽出方法は、請求項5記載の加筆抽出方法において、画像相関ステップは、計算の対象となる2枚の画像の画素値の総和や画像の面積に依存しない相関値を算出することを特徴としている。
【0013】
請求項7記載の加筆抽出方法は、請求項5記載の加筆抽出方法において、画像差分ステップは、前記画像相関ステップによって位置合わせが行われた画像間の相関値が所定の閾値Th1 以上の場合にのみ差分処理を行うことを特徴としている。
【0014】
請求項8記載の加筆抽出方法は、請求項5記載の加筆抽出方法において、画像差分ステップは、画像相関ステップによって位置合わせが行われ、その位置からわずかにずらした画像間の相関値が所定の閾値Th2 以上の場合にのみ差分処理をすることを特徴としている。
【0015】
請求項9記載のプログラムは、電子文書を紙へ出力した後に手書きの加筆が重畳した状態で前記電子文書の原稿画像と、画像読取装置で再び電子化された画像とを細分化する領域分割処理と、領域分割処理によって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関処理と、画像相関処理によって位置合わせが行われた画像間での画像差分処理と同時に、位置からずらした画像間での差分処理を行う画像差分処理と、をコンピュータに実行させることを特徴としている。
【0016】
請求項10記載の記録媒体は、電子文書の原稿画像と、電子文書を紙へ出力した後に手書きの加筆が重畳した状態で画像読取装置により再び電子化された画像とを細分化する領域分割処理と、領域分割処理によって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関処理と、画像相関処理によって位置合わせが行われた画像間での画像差分処理と同時に、位置合わせの位置からずらした画像間での差分処理を行う画像差分処理と、をコンピュータに実行させるためのプログラムを記録していることを特徴としている。
【0017】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照しながら詳細に説明する。
【0018】
図2に本発明での加筆抽出の処理手順を示す。S101では加筆抽出を行う領域の個数N、大きさなどを設定し、電子原稿画像とその画像を紙に出力した後に加筆されスキャナなどの画像読取装置で取り込まれた加筆重畳画像を入力する。S102では領域数変数nを1に設定する。S103では加筆抽出の対象となる領域を加筆重畳画像から切り出し、同時に電子原稿画像からは、先に加筆重畳画像から抽出した領域に対応した領域を切り出す。S104ではS103で切り出された電子原稿画像をMヶに小領域に細分化する。
【0019】
図3は細分化ステップS104の詳細であり図3(a)はS103で切り出された電子原稿画像の抽出領域O(x,y)を格子状に分割しておりその分割された小領域それぞれをoij(x,y)とする。S105では小領域数変数mを1に設定する。S106ではS104で細分化され作成された電子原稿画像の小領域oij(x,y)が加筆重畳画像上でどの位置に対応するかを決める為に、各々の小領域と加筆重畳画像A(x,y)との相関値の分布を計算する。この時に電子原稿画像と同様に加筆重畳画像の方もS104で細分化しそれをaij(x,y)とすると、空間的に対応する両画像の小領域同士、oij(x,y)とaij(x,y)で相関値計算を行う方が計算時間の観点からも効率的である。
【0020】
それを示したのが図3(b)でありこの図では加筆重畳画像側の抽出領域A(x,y)をO(x,y)と同様に細分化し対応する位置を探すためにaij(x,y)をoij(x,y)よりも大きな領域として抽出している。この相関値計算の結果、相関値が最も高い値を取る1つの画像の相対位置を「最も確からしい位置」とする。
【0021】
ここでS106において計算される相関値の分布は、以降の工程で設定する閾値を領域によらずに一意に設定するためには式(1)のように電子原稿画像と加筆彫像画像、それぞれ小領域内の画素値の総和や小領域の面積に依存しないものにしておくとよい。式(1)の場合はoij(x,y)とaij(x,y)がどのような大きさ画像であっても必ず−1.0から+1.0の間の値を取り、特に画素値が0または1しか取らない2値画像に関しては0から+1.0までの値を取る。
【0022】
【数1】
【0023】
S107での2枚の画像間で3×3画素ずらし差分処理を示したのが図3である。S401にはS106で算出された相関値の分布C(x,y)と『最も確からしい位置』(xm ,ym )が入力される。S401では(xm ,ym )での相関値C(xm ,ym )がある閾値Th1 よりも大きいかどうかの判定を行う。大きければS402に進みそうでなければS107自体を抜け、図2のS108に進む。以下のS402、S403およびS406〜S409は(xm ,ym )とその周囲の3×3の領域での繰り返し処理を示したものである。この領域の大きさを変える場合はS402、S403での設定値、S406、S408での加算値、S407、S409での条件値を変更する。S404ではS402とS403において変更された位置(xm +x,ym +y)での相関値C(xm +x,ym +y)が閾値Th2 (<Th1 )を超えているかどうかの判定を行う。越えていなければS408まで進み画素ずらし量を変化させる。超えている場合はS405に進みここで加筆重畳画像と電子原稿画像、2枚の小領域画像の位置関係を(xm +x,ym +y)に対応する位置とし画像差分処理を行う。
【0024】
このような「画素ずらし」での差分処理を行う理由は、電子原稿画像と加筆重畳画像との間の線幅の違いにある。図5は電子原稿画像と加筆重畳画像の拡大図であるが、図5左のように電子原稿画像上で太さ1ドットの線をいったん紙に出力しスキャナなどのデバイスで再び画像として取りこむと、図5右のように線幅は太化されその太さも局所的にバラツキのある線となる。これが差分処理に影響し加筆重畳画像の原稿成分の引き残しが発生する為、上記のS107ような画素ずらしでの差分処理が単純な差分処理よりも有効となる。
【0025】
ここまでの処理を終えた結果例が図6である。図6左が加筆重畳画像の小領域、図5中が電子原稿画像の小領域、図6右が2つの小領域画像に対し蒸気の処理を行い精製した加筆画像である。S108においてmを1だけ増加させた後S109において小領域変数mが上限Mを超えているか否かを判定を行い、超えていなければS106から処理を繰り返す。
【0026】
図7及び図8はこうして作成された加筆画像の一部である。図左が加筆重畳画像、図右が加筆画像の一部となる。すべての小領域についての処理を終える、つまり、mがMを超えるとS110では差分処理後の画像を白紙の画像のS103で抽出した位置に挿入する事で加筆のみの画像を作成する。S111に領域数変数nを1だけ増加させた後S112においてnが上限Nを超えているかどうかの判定を行い、超えていなければS103から処理を繰り返す。nがNを超えるとS113においてS110において張り合わされた加筆画像を出力する。
【0027】
図1に本発明での加筆抽出装置の一実施例を示す。801は領域抽出部であり図2のS101で設定される抽出領域設定情報とが加筆重畳画像と電子原稿画像の両画像入力され、その領域情報に基づいてS103での所望の領域切り出しを両画像から行う。802は領域細分部でありここでは領域抽出部501で切り出された電子原稿画像の領域に対してS104の領域細分化を行う。803は画像相関部であり領域細分部802において細分化された小領域画像に対しS106の画像相関計算を実行し2つの画像間のズレ量を算出する。804は差分処理部で領域細分部802から入力される小領域画像と画像相関部803で算出されたズレ量に基いて位置合わせを行い電子原稿画像と加筆重畳画像との間でS107の画素ずらし差分処理を行う。805は画像合成部で領域抽出部801から入力される抽出領域情報に基づいて差分処理部804から入力される差分処理後の画像、つまり加筆画像の張り合わせ処理S110を実行しS113の加筆画像の出力を行う。
【0028】
【発明の効果】
請求項1記載の加筆抽出装置によれば、電子文書の原稿画像と前記電子文書を紙へ出力した後に手書きの加筆が重畳した状態でスキャナ等の画像読取装置で再び電子化された画像とを細分化する領域分割手段と、領域分割手段によって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関手段と、画像相関手段によって位置合わせが行われた画像間での画像差分処理と同時にその位置からわずかにずらした画像間での差分処理を行う画像差分手段とを有しているので、加筆の抽出精度が向上する。
【0029】
請求項2記載の加筆抽出装置によれば、請求項1記載の加筆抽出装置において、画像相関手段は、計算の対象となる2枚の画像の画素値の総和や画像の面積に依存しない相関値を算出することを特徴とするので、閾値を一意に設定する事が可能になり計算効率が向上する。
【0030】
請求項3記載の加筆抽出装置によれば、請求項1記載の加筆抽出装置において、画像差分手段は、画像相関手段によって位置合わせが行われた画像間の相関値が所定の閾値Th1 以上の場合にのみ差分処理をすることを特徴とするので、加筆の抽出精度が向上する。
【0031】
請求項4記載の加筆抽出装置によれば、請求項1記載の加筆抽出装置において、画像差分手段は、画像相関手段によって位置合わせが行われその位置からわずかにずらした画像間の相関値が所定の閾値Th2 以上の場合にのみ差分処理をすることを特徴とするので、加筆の抽出精度が向上する。
【0032】
請求項5記載の加筆抽出方法によれば、電子文書の原稿画像と電子文書を紙へ出力した後に手書きの加筆が重畳した状態でスキャナ等の画像読取装置で再び電子化された画像とを細分化する領域分割ステップと、領域分割ステップによって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関ステップと、画像相関ステップによって位置合わせが行われた画像間での画像差分処理と同時にその位置からわずかにずらした画像間での差分処理を行う画像差分ステップとを有しているので、加筆の抽出精度が向上する。
【0033】
請求項6記載の加筆抽出方法によれば、請求項5記載の加筆抽出方法において、画像相関ステップは、計算の対象となる2枚の画像の画素値の総和や画像の面積に依存しない相関値を算出することを特徴とするので、閾値を一意に設定する事が可能になり、計算効率が向上する。
【0034】
請求項7記載の加筆抽出方法によれば、請求項5記載の加筆抽出方法において、画像差分ステップは、画像相関ステップによって位置合わせが行われた画像間の相関値が所定の閾値Th1 以上の場合にのみ差分処理をすることを特徴とするので、加筆の抽出精度が向上する。
【0035】
請求項8記載の加筆抽出方法によれば、請求項5記載の加筆抽出方法において、画像差分ステップは、画像相関ステップによって位置合わせが行われ、その位置からわずかにずらした画像間の相関値が所定の閾値Th2 以上の場合にのみ差分処理をすることを特徴とするので、加筆の抽出精度が向上する。
【0036】
請求項9記載のプログラムによれば、電子文書を紙へ出力した後に手書きの加筆が重畳した状態で電子文書の原稿画像と、画像読取装置で再び電子化された画像とを細分化する領域分割処理と、領域分割処理によって分割されたそれぞれの領域に対して前記画像間の位置合わせを行うために相関計算を行う画像相関処理と、画像相関処理によって位置合わせが行われた画像間での画像差分処理と同時に、その位置からずらした画像間での差分処理を行う画像差分処理とを有することを特徴としているので、加筆の抽出精度が向上する。
【0037】
請求項10記載の記録媒体によれば、電子文書の原稿画像と電子文書を紙へ出力した後に手書きの加筆が重畳した状態でスキャナ等の画像読取装置で再び電子化された画像とを細分化する領域分割処理と、領域分割処理によって分割されたそれぞれの領域に対して画像間の位置合わせを行うために相関計算を行う画像相関処理と、画像相関処理によって位置合わせが行われた画像間での画像差分処理と同時に、その位置からずらした画像間での差分処理を行う画像差分処理と、をコンピュータに実行させるためのプログラムを記録していることを特徴としているので、加筆の抽出精度が向上する。
【図面の簡単な説明】
【図1】本発明の実施の形態である加筆抽出装置の構成を示す構成図である。
【図2】本発明の実施の形態に係る加筆抽出の処理手順を示すフローチャートである。
【図3】本発明の実施の形態に係る細分化ステップの例を示す図である。
【図4】本発明の実施の形態に係る画素ずらし差分処理の処理手順を示すフローチャートである。
【図5】本発明の実施の形態に係る電子原稿画像と加筆重畳画像の例を示す拡大図である。
【図6】本発明の実施の形態に係る画素ずらし差分処理後の結果例を示す図である。
【図7】本発明の実施の形態に係る画素ずらし差分処理によって作成された加筆画像の第1の例を示す図である。
【図8】本発明の実施の形態に係る画素ずらし差分処理によって作成された加筆画像の第2の例を示す図である。
【符号の説明】
800 加筆抽出装置
801 領域抽出部
802 領域細分部
803 画像相関部
804 差分処理部
805 画像合成部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a handwriting extraction method for a handwritten character input system, and more particularly to a handwriting extraction device, a handwriting extraction method, a handwriting extraction program, and a recording medium that improve the extraction accuracy of handwriting extraction and handwriting image creation.
[0002]
[Prior art]
Conventionally, when updating the content of image data registered in the document image filing device, write processing is directly performed on the image data imported into the device, or character data is separately prepared and superimposed. There is a method. There is also a method of reading a retouched updated image on a paper basis and recording the updated image.
[0003]
As a conventional technology example, in a document processing apparatus, by using information written by hand as one of means for detecting as image information, an input retouched superimposed image is divided into blocks, and each of the small areas is divided into blocks. There is a document processing apparatus that takes a difference and performs optimal alignment while checking whether or not skew has occurred (for example, see Patent Document 1). Also, a method of detecting characteristic four points such as corners of an outer frame in an image and performing a complementing process such that each point moves to a corresponding point in the electronic document image, or a method of detecting one point as a corresponding point For example, there is a document image filing apparatus and a document image updating method for performing a difference process after performing a position alignment by a method of performing a correction process using an affine transformation formula for performing a parallel movement, rotating around the point, and expanding / contracting the point (for example, , Patent Document 2). In addition, a difference image is generated between a document image with no mark and a retouched superimposed image with a mark, and the presence or absence of a mark is determined by calculating the number of black pixels and the ratio of black pixels in each check area in the difference image. There is a mark recognizing device that performs the operation (for example, see Patent Document 3).
[0004]
[Patent Document 1]
Japanese Patent Application Laid-Open No. H5-244387 [Patent Document 2]
JP 2001-283231 A [Patent Document 3]
JP-A-11-265422
[Problems to be solved by the invention]
However, none of the conventional examples described in
[0006]
The present invention has been made in view of the above circumstances, and when creating a retouched image from an electronic image and a retouched superimposed image, taking into account the difference in character line width between the two images while dividing and aligning the area. It is an object of the present invention to provide a retouching extraction device, a retouching extraction method, a retouching extraction program, and a recording medium for performing retouching with higher accuracy by performing difference processing in a retouching process.
[0007]
[Means for Solving the Problems]
In order to achieve this object, the retouch extraction device according to
[0008]
According to a second aspect of the present invention, in the retouching and extracting apparatus according to the first aspect, the image correlation unit calculates a sum of pixel values of two images to be calculated and a correlation value independent of an area of the image. It is characterized by doing.
[0009]
Categories extraction apparatus according to
[0010]
According to a fourth aspect of the present invention, in the retouching and extracting apparatus according to the first aspect, the image difference unit is positioned by the image correlating unit, and a correlation value between the images slightly shifted from the position is determined by a predetermined value. It is characterized by performing the differential processing only when the threshold value Th 2 or more.
[0011]
The method for extracting and adding a portion according to
[0012]
According to a sixth aspect of the present invention, in the retouching and extracting method according to the fifth aspect, the image correlation step calculates a sum of pixel values of two images to be calculated and a correlation value independent of an area of the image. It is characterized by doing.
[0013]
Categories extraction method according to
[0014]
According to a further aspect of the present invention, in the retouching extraction method according to the fifth aspect, the image difference step is performed by an image correlation step, and a correlation value between images slightly shifted from the position is determined by a predetermined value. is characterized in that the differential processing only when the threshold value Th 2 or more.
[0015]
10. The program according to claim 9, wherein after the electronic document is output to paper, a handwritten retouch is superimposed, and the original image of the electronic document is subdivided into an image digitized again by the image reading device. And image correlation processing for performing a correlation calculation in order to perform alignment between images for each area divided by the area division processing, and image difference processing between images that have been aligned by the image correlation processing At the same time, the present invention is characterized in that a computer executes image difference processing for performing difference processing between images shifted from the position.
[0016]
11. The recording medium according to claim 10, wherein the original image of the electronic document is divided into an image digitized again by the image reading apparatus in a state in which handwriting is superimposed after outputting the electronic document on paper. And image correlation processing for performing a correlation calculation in order to perform alignment between images for each area divided by the area division processing, and image difference processing between images that have been aligned by the image correlation processing At the same time, it is characterized in that a program for causing a computer to execute an image difference process for performing a difference process between images shifted from the alignment position is recorded.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0018]
FIG. 2 shows a processing procedure of retouching extraction in the present invention. In step S101, the number N, size, and the like of areas to be retouched are set, and an electronic original image and a retouched superimposed image that has been retouched after being output on paper and captured by an image reading device such as a scanner are input. In S102, the number-of-regions variable n is set to one. In S103, a region to be retouched is extracted from the retouched superimposed image, and at the same time, an area corresponding to the region previously extracted from the retouched superimposed image is cut out from the electronic document image. In S104, the electronic document image cut out in S103 is subdivided into M small areas.
[0019]
FIG. 3 shows the details of the subdividing step S104. FIG. 3A shows the extraction area O (x, y) of the electronic document image cut out in S103 divided in a grid pattern, and the divided small areas are each divided. Let o ij (x, y). In S105, the small area number variable m is set to 1. In S106, in order to determine the position of the small area o ij (x, y) of the electronic document image subdivided and created in S104 on the retouched superimposed image, each of the small areas and the retouched superimposed image A ( x, y) is calculated. At this time, similarly to the electronic original image, the retouched superimposed image is also subdivided in S104 and is defined as a ij (x, y), and the small regions of both spatially corresponding images, o ij (x, y) and Performing the correlation value calculation with a ij (x, y) is more efficient in terms of calculation time.
[0020]
This is shown in FIG. 3B. In this figure, a ij is used to subdivide the extraction area A (x, y) on the side of the retouched superimposed image in the same manner as O (x, y) and search for a corresponding position. (X, y) is extracted as a region larger than o ij (x, y). As a result of the correlation value calculation, the relative position of one image having the highest correlation value is defined as the “most likely position”.
[0021]
Here, the distribution of the correlation values calculated in S106 is based on the electronic original image and the hand-drawn engraved image as shown in Expression (1) in order to uniquely set the threshold value set in the subsequent steps regardless of the area. It is preferable that the value does not depend on the sum of the pixel values in the area or the area of the small area. In the case of equation (1), o ij (x, y) and a ij (x, y) always take values between −1.0 and +1.0 regardless of the size of the image. A binary image having a pixel value of only 0 or 1 takes a value from 0 to +1.0.
[0022]
(Equation 1)
[0023]
FIG. 3 shows the 3 × 3 pixel shift difference processing between the two images in S107. Distribution C (x, y) of the correlation value calculated in S106 to S401 as "most probable position" (x m, y m) are inputted. In S401 (x m, y m) correlation value C (x m, y m) in the determination of whether or larger than a threshold Th 1 there is performed. If it is larger, the process proceeds to S402. If not, the process exits S107 itself and proceeds to S108 in FIG. The following S402, S403, and S406 to S409 show the repetition processing in (x m , y m ) and the surrounding 3 × 3 area. When the size of this area is changed, the set values in S402 and S403, the added values in S406 and S408, and the condition values in S407 and S409 are changed. Changed position in S402 and S403 in S404 (x m + x, y m + y) correlation value C (x m + x, y m + y) in the determination of whether exceeds the
[0024]
The reason for performing such a difference process by “pixel shift” is a difference in line width between the electronic document image and the retouched superimposed image. FIG. 5 is an enlarged view of the electronic original image and the retouched superimposed image. As shown on the left side of FIG. 5, when a line having a thickness of 1 dot is once output on paper and re-captured as an image by a device such as a scanner. As shown in the right side of FIG. 5, the line width is thickened, and the thickness is also a line having local variation. This affects the difference processing, and the document component of the added superimposed image is left behind, so that the difference processing by pixel shift as described in S107 is more effective than the simple difference processing.
[0025]
FIG. 6 shows an example of the result obtained after the above processing. 6 shows a small area of the retouched superimposed image, FIG. 5 shows a small area of the electronic original image, and FIG. 6 right shows a retouched image obtained by performing steam processing on the two small area images and refining them. After m is increased by 1 in S108, it is determined in S109 whether or not the small area variable m exceeds the upper limit M. If not, the process is repeated from S106.
[0026]
FIGS. 7 and 8 show a part of the retouched image thus created. The left part of the drawing is a superimposed image, and the right part of the drawing is a part of the modified image. When the processing for all the small areas is completed, that is, when m exceeds M, in S110, the image after the difference processing is inserted at the position extracted in S103 of the blank image to create an image with only the retouching. After increasing the number-of-regions variable n by 1 in S111, it is determined in S112 whether n exceeds the upper limit N. If not, the process is repeated from S103. If n exceeds N, the retouched image attached in S110 is output in S113.
[0027]
FIG. 1 shows an embodiment of a retouching and extracting apparatus according to the present invention.
[0028]
【The invention's effect】
According to the retouch extraction device of the first aspect, the original image of the electronic document and the image digitized again by an image reading device such as a scanner in a state where the handwriting is superimposed after the electronic document is output to paper are superimposed. An area dividing unit that subdivides the image, an image correlating unit that performs a correlation calculation to perform an alignment between images for each of the regions divided by the area dividing unit, and an image that is aligned by the image correlating unit Image difference means for performing difference processing between images slightly shifted from the position at the same time as image difference processing between images, so that the accuracy of addition of a pen can be improved.
[0029]
According to the second aspect of the present invention, in the retouching and extracting apparatus according to the first aspect, the image correlating means includes a correlation value independent of a sum of pixel values of two images to be calculated and an area of the image. , The threshold value can be uniquely set, and the calculation efficiency is improved.
[0030]
According to Categories extraction apparatus according to
[0031]
According to the retouching and extracting apparatus of the fourth aspect, in the retouching and extracting apparatus of the first aspect, the image difference unit is positioned by the image correlating unit, and a correlation value between the images slightly shifted from the position is determined. since, characterized in that the only difference processing in the case of the threshold value Th 2 or more, thereby improving the retouch extraction accuracy.
[0032]
According to the retouch extraction method according to the fifth aspect, the original image of the electronic document and the image digitized again by the image reading device such as a scanner with the handwritten retouch superimposed after the electronic document is output to paper are subdivided. An image dividing step, an image correlation step of performing a correlation calculation to perform an alignment between images for each of the regions divided by the area dividing step, and an image alignment performed by the image correlation step. And an image difference step for performing a difference process between images slightly shifted from the position at the same time as the image difference process in step (1).
[0033]
According to the retouching and extracting method according to the sixth aspect, in the retouching and extracting method according to the fifth aspect, the image correlation step is a correlation value that does not depend on a sum of pixel values of two images to be calculated or an area of the image. , The threshold value can be uniquely set, and the calculation efficiency is improved.
[0034]
According to Categories extraction method according to
[0035]
According to the retouching and extracting method according to the eighth aspect, in the retouching and extracting method according to the fifth aspect, in the image difference step, alignment is performed by an image correlation step, and a correlation value between images slightly shifted from the position is calculated. since, characterized in that the differential processing only when the predetermined threshold value Th 2 or more, thereby improving the retouch extraction accuracy.
[0036]
According to the program of the ninth aspect, after the electronic document is output to paper, the area division for subdividing the original image of the electronic document and the image digitized again by the image reading device in a state in which the handwriting is superimposed. Processing, image correlation processing for performing a correlation calculation for performing alignment between the images with respect to each area divided by the area division processing, and images between the images aligned by the image correlation processing. Since the difference processing is performed simultaneously with the difference processing and the difference processing between the images shifted from the position is performed, the extraction accuracy of the correction is improved.
[0037]
According to the recording medium of the tenth aspect, the document image of the electronic document and the image digitized again by the image reading device such as the scanner in a state where the handwriting is superimposed after the electronic document is output to paper are superimposed. Area division processing, image correlation processing for performing correlation calculation to perform image alignment for each area divided by the area division processing, and image alignment performed by the image correlation processing. And a program for causing a computer to execute image difference processing for performing difference processing between images shifted from the position at the same time as the image difference processing of the above. improves.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing a configuration of a retouching and extracting apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart showing a processing procedure of retouching extraction according to the embodiment of the present invention.
FIG. 3 is a diagram illustrating an example of a subdivision step according to the embodiment of the present invention.
FIG. 4 is a flowchart illustrating a processing procedure of a pixel shift difference process according to the embodiment of the present invention.
FIG. 5 is an enlarged view showing an example of an electronic document image and a retouched superimposed image according to the embodiment of the present invention.
FIG. 6 is a diagram illustrating an example of a result after a pixel shift difference process according to the embodiment of the present invention.
FIG. 7 is a diagram showing a first example of a retouched image created by the pixel shift difference process according to the embodiment of the present invention.
FIG. 8 is a diagram showing a second example of a retouched image created by the pixel shift difference process according to the embodiment of the present invention.
[Explanation of symbols]
800
Claims (10)
前記領域分割手段によって分割されたそれぞれの領域に対して前記画像間の位置合わせを行うために相関計算を行う画像相関手段と、
前記画像相関手段によって前記位置合わせが行われた画像間での画像差分処理と同時に、前記位置からずらした画像間での差分処理を行う画像差分手段と、
を有することを特徴とする加筆抽出装置。Area dividing means for subdividing a document image of an electronic document and an image digitized again by the image reading apparatus in a state where handwriting is superimposed after outputting the electronic document on paper;
Image correlation means for performing a correlation calculation to perform alignment between the images for each area divided by the area division means,
Simultaneously with the image difference processing between the images that have been aligned by the image correlation means, image difference means that performs difference processing between images shifted from the position,
A retouching and extracting apparatus characterized by having:
前記領域分割ステップによって分割されたそれぞれの領域に対して前記画像間の位置合わせを行うために相関計算を行う画像相関ステップと、
前記画像相関ステップによって前記位置合わせが行われた前記画像間での画像差分処理と同時に、前記位置からわずかにずらした画像間での差分処理を行う画像差分ステップと、
を有することを特徴とする加筆抽出方法。An area dividing step of subdividing the original image of the electronic document and the image digitized again by the image reading device in a state where the handwritten retouch is superimposed after outputting the electronic document to paper,
An image correlation step of performing a correlation calculation to perform alignment between the images for each area divided by the area division step;
Simultaneously with the image difference processing between the images subjected to the alignment by the image correlation step, an image difference step of performing a difference processing between images slightly shifted from the position,
A retouch extraction method characterized by having:
前記領域分割処理によって分割されたそれぞれの領域に対して前記画像間の位置合わせを行うために相関計算を行う画像相関処理と、
前記画像相関処理によって前記位置合わせが行われた前記画像間での画像差分処理と同時に、前記位置からずらした前記画像間での差分処理を行う画像差分処理と、
をコンピュータに実行させるための加筆抽出プログラム。An area dividing process for subdividing the original image of the electronic document in a state where the handwritten retouch is superimposed after outputting the electronic document on paper, and the image digitized again by the image reading device,
Image correlation processing for performing a correlation calculation to perform alignment between the images for each area divided by the area division processing,
Simultaneously with the image difference processing between the images subjected to the alignment by the image correlation processing, image difference processing to perform a difference processing between the images shifted from the position,
Program to make a computer execute.
前記領域分割処理によって分割されたそれぞれの領域に対して前記画像間の位置合わせを行うために相関計算を行う画像相関処理と、
前記画像相関処理によって前記位置合わせが行われた前記画像間での画像差分処理と同時に、前記位置からずらした前記画像間での差分処理を行う画像差分処理と、
をコンピュータに実行させるための加筆抽出プログラムを記録した記録媒体。A region division process of subdividing an original image of an electronic document and an image digitized again by an image reading device such as a scanner in a state where handwriting is superimposed after outputting the electronic document on paper,
Image correlation processing for performing a correlation calculation to perform alignment between the images for each area divided by the area division processing,
Simultaneously with the image difference processing between the images subjected to the alignment by the image correlation processing, image difference processing to perform a difference processing between the images shifted from the position,
Recording medium for recording a retouching extraction program for causing a computer to execute the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002339955A JP2004178002A (en) | 2002-11-22 | 2002-11-22 | Retouch extraction device, retouch extraction method, program therefor and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002339955A JP2004178002A (en) | 2002-11-22 | 2002-11-22 | Retouch extraction device, retouch extraction method, program therefor and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004178002A true JP2004178002A (en) | 2004-06-24 |
JP2004178002A5 JP2004178002A5 (en) | 2006-03-09 |
Family
ID=32702768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002339955A Pending JP2004178002A (en) | 2002-11-22 | 2002-11-22 | Retouch extraction device, retouch extraction method, program therefor and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004178002A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009086860A (en) * | 2007-09-28 | 2009-04-23 | Fuji Xerox Co Ltd | Image processor, image processing system, and program |
JP2010079507A (en) * | 2008-09-25 | 2010-04-08 | Fuji Xerox Co Ltd | Image processor and image processing program |
-
2002
- 2002-11-22 JP JP2002339955A patent/JP2004178002A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009086860A (en) * | 2007-09-28 | 2009-04-23 | Fuji Xerox Co Ltd | Image processor, image processing system, and program |
US8363064B2 (en) | 2007-09-28 | 2013-01-29 | Fuji Xerox Co., Ltd. | Image processing apparatus, image processing system, image processing method, and computer-readable medium |
JP2010079507A (en) * | 2008-09-25 | 2010-04-08 | Fuji Xerox Co Ltd | Image processor and image processing program |
US8311322B2 (en) | 2008-09-25 | 2012-11-13 | Fuji Xerox Co., Ltd. | Image processing apparatus, image processing method, and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7840092B2 (en) | Medium processing method, copying apparatus, and data filing apparatus | |
JP4510092B2 (en) | Digital watermark embedding and detection | |
US5003614A (en) | Image processing system | |
JP5861503B2 (en) | Image inspection apparatus and method | |
JP2007335920A (en) | Image processing apparatus and image processing program | |
JP2010009509A (en) | Image processor, image processing method, program thereof, and storage medium | |
JPH08287184A (en) | Picture cutting-out device and character recognition device | |
US7983485B2 (en) | System and method for identifying symbols for processing images | |
JP4565396B2 (en) | Image processing apparatus and image processing program | |
JP4275973B2 (en) | Retouched image extraction apparatus, program, storage medium, and retouched image extraction method | |
US8254693B2 (en) | Image processing apparatus, image processing method and program | |
JP6035157B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP4120795B2 (en) | Retouching extraction device and retouching extraction method | |
JP2019159932A (en) | Information processing device and program | |
JP2002109521A (en) | Device and method for processing document | |
JP2004178002A (en) | Retouch extraction device, retouch extraction method, program therefor and recording medium | |
JP2006253842A (en) | Image processor, image forming apparatus, program, storage medium and image processing method | |
JP2012221372A (en) | Business form, business form processor, business form processing method and recording medium | |
WO2001093188A1 (en) | Method for processing document, recorded medium on which document processing program is recorded and document processor | |
JP3726415B2 (en) | Image processing method and apparatus | |
US7066566B2 (en) | Print inspection apparatus, printing system, method of inspecting print data and program | |
CN114419632A (en) | OCR training sample generation method, device and system | |
JP5146199B2 (en) | Difference extraction apparatus and difference extraction program | |
JP2007328652A (en) | Image processing device and image processing program | |
JP2009141525A (en) | Apparatus and method of processing image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050223 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060124 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070928 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071002 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071106 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080108 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080128 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080304 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080318 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080415 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080514 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20080619 |
|
A912 | Removal of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20080711 |