JP5789120B2 - Image reading device - Google Patents
Image reading device Download PDFInfo
- Publication number
- JP5789120B2 JP5789120B2 JP2011093674A JP2011093674A JP5789120B2 JP 5789120 B2 JP5789120 B2 JP 5789120B2 JP 2011093674 A JP2011093674 A JP 2011093674A JP 2011093674 A JP2011093674 A JP 2011093674A JP 5789120 B2 JP5789120 B2 JP 5789120B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- mask
- image reading
- reading apparatus
- boundary
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は、原稿を光学的に読み取る画像読み取り装置に係り、特に、読み取った画像の一部をマスクして出力する技術に関するものである。 The present invention relates to an image reading apparatus that optically reads a document, and more particularly to a technique for masking and outputting a part of a read image.
従来の画像読み取り装置は、例えば、電子写真方式による多機能プリンタ(MultiFunction Printer;以下「MFP」という。)等の一部を構成する画像読み取り装置であって、原稿をスキャナで読み取り、読み取った画像データを、各種装置に出力する機能を有している。 A conventional image reading apparatus is an image reading apparatus that constitutes a part of, for example, an electrophotographic multi-function printer (hereinafter referred to as “MFP”). It has a function of outputting data to various devices.
従来の画像読み取り装置では、原稿をスキャナで読み込む際に、モニタに読み取った画像を表示し、表示された画像に対してマウスでマスク領域を指定するマスク処理が行われている。このようなマスク処理においては、指定された領域を白データに変換してマスクを行っている。マスクを行う理由は様々あるが、例えば、印刷媒体に出力され、関係者以外に読まれると不都合が生じる機密文書等の出力禁止領域を判読不可能にして出力するためにマスクを行うことがある。 In a conventional image reading apparatus, when a document is read by a scanner, the read image is displayed on a monitor, and a mask process for specifying a mask area with a mouse is performed on the displayed image. In such a mask process, the specified area is converted into white data for masking. There are various reasons for masking. For example, masking may be performed to make an output-prohibited area such as a confidential document that is output to a print medium and inconvenient to be read by anyone other than the related party in an unreadable manner. .
下記の特許文献1には、スキャナによってプレスキャンした画像の出力禁止領域にマスクを設定し、再度、スキャンを行うことによって、マスクされた画像を得る技術が記載されている。 Japanese Patent Application Laid-Open No. 2004-228561 describes a technique for obtaining a masked image by setting a mask in an output prohibited area of an image prescanned by a scanner and performing scanning again.
しかしながら、従来の画像読み取り装置では、出力許可領域と出力禁止領域が混在した原稿を読み取る場合、マスク処理が不十分であると出力禁止領域が判読可能な状態で出力されてしまうという課題があった。 However, in the conventional image reading apparatus, when reading a document in which an output-permitted area and an output-prohibited area are mixed, there is a problem that if the mask process is insufficient, the output-prohibited area is output in a readable state. .
本発明の画像読み取り置は、原稿を光学的に読み取る画像読み取り部と、前記画像読み取り部で読み取られた画像データを記憶する記憶部と、前記記憶部に記憶された前記画像データを表示する表示部と、前記表示部に表示された前記画像データに対して指定された第1の境界領域の第1の境界位置を指定する領域指定部と、前記第1の境界位置と前記記憶部に記憶された前記画像データとに基づいて、出力禁止する前記第1の境界領域を設定するマスク領域設定部と、前記記憶部に記憶された前記画像データを、前記マスク領域設定部において設定された前記第1の境界領域とマスクして合成するマスク画像合成部と、前記マスク画像合成部で合成されたマスク画像データを出力する出力部と、を有している。 The image reading apparatus of the present invention includes an image reading unit that optically reads a document, a storage unit that stores image data read by the image reading unit, and a display that displays the image data stored in the storage unit An area designating unit for designating a first boundary position of a first boundary region designated for the image data displayed on the display unit, and storing the first boundary position and the storage unit in the storage unit A mask area setting unit that sets the first boundary area to be prohibited from output based on the image data that has been output; and the image data stored in the storage unit is set in the mask area setting unit A mask image combining unit configured to mask and combine with the first boundary region; and an output unit configured to output mask image data combined by the mask image combining unit.
そして、前記マスク領域設定部は、前記領域指定部を用いて、前記第1の境界領域を色を変えて表示しながら前記第1の境界領域の少なくとも一部と重なる、出力許可する第2の境界領域を設定し、前記マスク画像合成部は、前記第1の境界領域から前記第2の境界領域で囲われた文字を出力許可しながら、前記第2の境界領域から外れて前記第1の境界領域に掛かる前記文字の出力を禁止する合成を行うことを特徴とする。Then, the mask area setting unit uses the area designating unit to permit the output to overlap with at least a part of the first boundary area while displaying the first boundary area in a different color. A boundary area is set, and the mask image composition unit permits the first boundary area to deviate from the second boundary area while allowing the character enclosed by the second boundary area to be output. It is characterized in that the composition for prohibiting the output of the character in the boundary region is performed.
本発明の画像読み取り装置によれば、領域指定部で指定された第1の境界領域の第1の境界位置と、記憶部に記憶された画像データと、に基づいて出力禁止する第1の境界領域を設定し、更に、第1の境界領域を色を変えて表示しながら該第1の境界領域の少なくとも一部と重なる、出力許可する第2の境界領域を設定する構成になっている。そのため、マスキングが十分に行われ、出力禁止する第1の境界領域と出力許可する第2の境界領域とが混在した原稿を読み取る場合でも、出力禁止する第1の境界領域を確実に判読不可能な状態で出力できるという効果がある。 According to the image reading apparatus of the present invention, the first boundary whose output is prohibited based on the first boundary position of the first boundary region specified by the region specifying unit and the image data stored in the storage unit. An area is set, and further, a second boundary area that is allowed to be output and that overlaps at least a part of the first boundary area is set while displaying the first boundary area in a different color. Therefore, even when a document in which the first boundary area where output is prohibited and the second boundary area where output is permitted is read together with sufficient masking , the first boundary area where output is prohibited cannot be reliably read. There is an effect that it can output in a stable state.
本発明を実施するための形態は、以下の好ましい実施例の説明を添付図面と照らし合わせて読むと、明らかになるであろう。但し、図面はもっぱら解説のためのものであって、本発明の範囲を限定するものではない。 Modes for carrying out the present invention will become apparent from the following description of the preferred embodiments when read in light of the accompanying drawings. However, the drawings are only for explanation and do not limit the scope of the present invention.
(実施例1のMPFの構成)
図1は、本発明の実施例1のMFPにおける画像読み取り装置を示す機能ブロック図である。
(Configuration of MPF of Example 1)
FIG. 1 is a functional block diagram illustrating an image reading apparatus in the MFP according to the first embodiment of the present invention.
画像読み取り装置は、例えば、MFPの一部を構成する装置であって、原稿を読み取り、読み取った画像データをMFP内の図示しない電子写真式プリンタ等に出力するように構成されている。画像読み取り装置は、プログラム制御により画像読み取り装置全体を制御する中央処理装置(以下「CPU」という。)等で構成された制御部10と、原稿を読み取る画像読み取り部(例えば、スキャナ)1と、読み取った画像データを記憶する記憶部(例えば、第1のメモリ)2と、各種データを記憶する記憶部(例えば、第2のメモリ)3と、表示部(例えば、モニタ)5及びマウス6を制御し、出力禁止する第1の境界領域としてのマスク領域の第1の境界位置を出力する領域指定部(例えば、モニタコントローラ)4と、モニタコントローラ4から入力した画像データを表示するモニタ5と、自身の移動方向、移動量、及び移動速度からなる移動情報をモニタコントローラ4に出力するマウス6と、読み取った画像データを各種装置に出力する出力部7と、を有している。
The image reading apparatus is, for example, an apparatus constituting a part of the MFP, and is configured to read a document and output the read image data to an electrophotographic printer (not shown) in the MFP. The image reading apparatus includes a control unit 10 including a central processing unit (hereinafter referred to as “CPU”) that controls the entire image reading apparatus by program control, an image reading unit (for example, a scanner) 1 that reads a document, and the like. A storage unit (for example, a first memory) 2 for storing read image data, a storage unit (for example , a second memory) 3 for storing various data, a display unit (for example, a monitor) 5 and a
制御部10は、読み取った画像データにおけるマスク領域を設定するマスク領域設定部と、読み取った画像データをマスク領域でマスクしてマスク画像を合成するマスク画像合成部(以下単に「合成部」という。)13と、を有している。マスク領域設定部は、メモリ2に記憶された画像データに基づき、文字又は画像オブジェクトの、出力許可する第2の境界領域としての再マスク領域における第2の境界位置を取得するオブジェクト位置取得部(例えば、文字位置検出部)11と、モニタコントローラ4が出力した第1の境界位置を、文字又は画像オブジェクトの第2の境界位置に対して比較することにより第1の境界位置を補正して、マスク領域を設定するマスク補正部12と、を有している。
Control unit 10 includes a mask area setting section for setting a mask region in the read image data, the image data read mask image synthesizing unit for synthesizing the mask image was masked with the mask region (hereinafter simply referred to as "synthesis unit". ) has a 13. Based on the image data stored in the
スキャナ1は、メモリ2に接続されたフラットベッドスキャナであり、原稿を光学的に読み取り、読み取りデータを赤緑青(RGB)各16ビットの画像データに変換し、その画像データをメモリ2へ格納する機能を有している。
The scanner 1 is a flatbed scanner connected to the
第1のメモリ2は、スキャナ1、モニタコントローラ4、文字位置検出部11、及び合成部13に接続された半導体メモリであり、スキャナ1の出力する画像データを入力して格納する機能を有している。モニタコントローラ4、文字位置検出部11、又は合成部13のそれぞれは、メモリ2に格納された画像データを読み出すように構成されている。なお、メモリ2は、ハードディスクでもよい。
The
第2のメモリ3は、モニタコントローラ4、及びマスク補正部12に接続された半導体メモリである。メモリ3は、マウス6で指定されたすべてのマスクの位置情報をモニタコントローラ4から入力して格納し、マスク補正部12の制御により、すべてのマスクの位置情報を出力するように構成されている。
The
モニタコントローラ4は、マウス6の移動情報により、モニタ5上のカーソルを移動させるように構成されている。マウス6のエンタキー6aが押された場合、モニタコントローラ4は、図示しないカーソルの位置情報を座標として、メモリ3へ出力する機能を有している。なお、カーソルの位置情報は、複数指定可能であるようになっている。
The
ここで使用される座標は、原点Oがモニタ5の左上頂点であり、原点Oから右方向を正のx軸、原点から下方向を正のy軸とするモニタ座標である。
The coordinates used here are monitor coordinates in which the origin O is the upper left vertex of the
モニタコントローラ4は、更に、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが、始点及び終点の2か所で押されると、この2点を対角線としたマスク領域を生成してモニタ5に表示し、同時に第1の境界位置をメモリ3に記憶する機能を有している。
Further, when the
モニタ5は、モニタコントローラ4に接続された平板型表示装置の1つである液晶(以下「LCD」という。)モニタであり、モニタコントローラ4から出力された画像データを入力して表示する機能を有している。なお、モニタ5は、ブラウン管モニタでもよい。
The
文字位置検出部11は、メモリ2、及びマスク補正部12に接続されたプログラムモジュールであり、メモリ2に格納されている画像データを入力し、その画像データについて文字認識を行い、文字位置情報として、すべての文字における外接矩形の左上座標PLnと右下座標PRnを記憶し、マスク補正部12に文字位置情報として出力する機能を有している。なお、この場合の座標は、原点Oが画像の左上頂点であり、原点Oから右方向を正のx軸、原点から下方向を正のy軸とするデータ座標である。
The character
マスク補正部12は、メモリ3、文字位置検出部11、及び合成部13に接続されたプログラムモジュールであり、メモリ3に記憶されている複数のマスク領域の第1の境界位置をモニタコントローラ4から入力する。更に、文字位置検出部11からすべての第2の境界位置を入力し、第2の境界位置の座標をデータ座標からモニタ座標に変換し、各マスク領域の第1の境界位置である左上座標PLMと右下座標PRMを補正する機能を有している。
The
合成部13は、メモリ2、マスク補正部11、及び出力部7に接続されたプログラムモジュールであり、メモリ2から画像データを入力し、マスク補正部12から補正されたマスク位置情報を入力し、マスク領域内の画像データをR=0、G=0、B=0に変換し、変換された画像データを出力部7へ出力する機能を有している。この結果、マスク領域は、黒色に変換される。
The
出力部7は、図示しない出力ボタンを有し、合成部13に接続されている。出力部7の出力ボタンが押下されることで、合成部13からマスク変換済みのマスク画像データを入力し、例えば、図示しない電子写真方式のプリンタに出力する機能を有している。
The
(実施例1の画像読み取り装置の動作)
図2は、図1中のモニタ5に表示された文字“イ”の外接矩形を示す図である。
(Operation of the image reading apparatus of Embodiment 1)
FIG. 2 is a diagram showing a circumscribed rectangle of the character “I” displayed on the
文字21は、文字本体21bと、この文字本体21bに所定の間隙を空けて外接する外接矩形21aとから構成されている。外接矩形21aは、文字認識技術において、実際に文字の認識を行う領域であり、位置情報として下記の表1に示すようなデータ座標の左上座標PLnと右下座標PRn(nは各文字の番号)を持っている。この各文字の座標は、文字位置検出部11がメモリ2の画像データを文字認識して生成する。
The
図3は、図1中のモニタ5において、マスクされた領域を示す図である。
出力禁止する第1の境界領域としのマスク領域31は、モニタ座標の左上座標PLM、右下座標PRMを結ぶ直線を対角線とする黒色の四角形である。マウス6のエンタキー6aが押されると、マウス6が自身の移動情報をモニタコントローラ4へ出力する。画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが2箇所で押されると、モニタコントローラ4によって、この2点を対角線とするマスク領域31が生成され、マスク領域31の位置情報である左上座標PLMと右下座標PRMが決まる。このマスク領域は、モニタコントローラ5によって、モニタ7上に黒色で表示される。
FIG. 3 is a diagram showing a masked area in the
The
図4(a)、(b)は、図1中のモニタ5において、外接矩形領域21aとマスク領域31とのずれの補正を示す図である。
4A and 4B are diagrams showing correction of displacement between the circumscribed
図4(a)は、文字21から文字25に対して、マスク領域31がずれて指定された場合のマスク補正前の状態を示している。
FIG. 4A shows a state before mask correction when the
複数の文字21〜25がモニタ5に表示されている。各文字21〜25は、文字位置検出部11が各々の文字21〜25に対して、メモリ2の画像データを文字認識して外接矩形21a〜25aを生成しているため、表1に示す座標PLn、PRnを持っている。文字21〜25は、それぞれ1〜5の文字番号を持つ。例えば、文字21の左上座標PLnと右下座標PRnとは、座標PL1、PRlである。文字21〜25は、マスク補正部12によって、マスク領域31と外接矩形21a〜25aの領域とがずれて重なった文字として検出されている。
A plurality of
図4(b)は、マスク補正後の例を示している。
文字21の外接矩形21aの左上座標PL1と、マスク領域31の左上座標PLMとが一致し、文字25の外接矩形25aの右下座標PR5と、マスク領域31の右下座標PRMが一致している。
FIG. 4B shows an example after mask correction.
Upper left coordinates PL1 of the circumscribed
図5(a)、(b)、(c)は、図1中のモニタ5において、文字列をマスクする動作を示す図である。
FIGS. 5A, 5B, and 5C are diagrams illustrating an operation of masking a character string in the
図5(a)は、文字がマスクされる前の状態を示している。
スキャン画像41がモニタ5に表示されている。スキャン画像41は、スキャナ1が読み取った画像データであり、文字列42を有している。文字列42は、スキャナ1が読み取った原稿の文章であり、出力禁止領域43と、それ以外の出力許可領域とを有している。出力禁止領域43は、例えば、機密事項等のデータであり、出力が禁止されている部分である。
FIG. 5A shows a state before characters are masked.
A scanned
図5(b)は、マスク領域31の始点と終点が指定される際のスキャン画像41を示している。
FIG. 5B shows a
始点44は、マスク領域31の左上座標PLMであり、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが押下された際のカーソルの位置情報である。終点45は、マスク領域31の右下座標PRMであり、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが始点44の押下に続いて押された際のカーソルの位置情報である。
The
図5(c)は、マスク領域31が指定された状態を示している。
マスク領域31は、始点44、終点45をそれぞれマスク領域31の左上座標PLM、マスク領域31の右下座標PRMとして、モニタコントローラ4によって表示される。
FIG. 5C shows a state in which the
The
図6(a)、(b)、(c)、(d)は、図1中のモニタ5において、2行の文字列に亘ってマスク領域31が指定された場合の動作を示す図である。
FIGS. 6A, 6B, 6C, and 6D are diagrams showing operations when the
図6(a)は、複数の文字51〜56と、複数の文字57〜59との2行に亘ってマスク領域31が指定された場合のマスク補正前の状態を示している。
FIG. 6A shows a state before mask correction when the
複数の文字51〜56がモニタ5に表示されている。複数の文字51〜56と、複数の文字57〜59とは、別の行に表示され、文字位置検出部11が各々の文字に対してメモリ2の画像データを文字認識して、それぞれ外接矩形51a〜59aを生成している。各外接矩形51a〜59aは、左上座標PLn、右下座標PRnを持ち、文字51〜59がそれぞれ1から9の文字番号を持つ。例えば、文字51の左上座標PLnと右下座標PRnとは、左上座標PL1と右下座標PR1である。
A plurality of
文字51〜56及び文字57〜59は、マスク補正部12によって、マスク領域31と外接矩形51a〜54a,57a〜59aの領域が重複した文字として検出されている。又、文字51〜53及び文字57〜59は、出力禁止領域であり、文字54〜56は、出力許可領域である。
The
図6(b)は、文字51〜56と、文字57〜59との2行に渡ってマスク31が指定された場合のマスク補正後の状態を示している。
FIG. 6B shows a state after the mask correction when the
図6(a)と比べて、マスク領域31の左上座標PLMが外接矩形51aの左上座標PL1に、マスク領域31の右下座標PRMが外接矩形59aの右下座標PR9に変更されている。
Compared to FIG. 6A, the upper left coordinate PLM of the
図6(c)は、文字54に対して再マスクされた場合の再マスク補正前の状態を示している。
FIG. 6C shows a state before remask correction when the
出力許可する第2の境界領域としての再マスク領域であるマスク領域32は、マスク領域31と同じ方法で生成され、マスク領域31上に重複する場所に再マスクを行っている。このマスク領域32は、再マスク補正後、マスク領域31の重複している場所と共にマスク補正部12によって消去される。
A
図6(d)は、再マスク補正後の状態を示している。
文字54のマスク31が消去され、文字51〜53及び文字57〜59のみがマスク領域31によってマスクされている。
FIG. 6D shows a state after remask correction.
The
図7は、本発明の実施例1における画像読み取り装置の動作を示すフローチャートである。 FIG. 7 is a flowchart showing the operation of the image reading apparatus according to the first embodiment of the present invention.
ステップS1において、スキャナ1が原稿を読み取り、メモリ2に画像データを出力し、メモリ2は、入力した画像データを格納する。ステップS2において、モニタコントローラ4は、メモリ2の画像データを元にスキャン画像41をモニタ5に表示する。
In step S1, the scanner 1 reads a document and outputs image data to the
ステップS3において、文字位置検出部11は、スキャン画像41の文字列42を文字認識し、全文字の位置情報を記憶する。
In step S3, the character
ステップS4において、モニタ5に表示されているスキャン画像41に対して、マウス6により、マスク領域31が指定される。図示しないカーソルがスキャン画像41の出力禁止領域43の左上付近である始点44にあるときに、マウス6のエンタキー6aが押されると、モニタコントローラ4は、カーソル位置情報を記憶する。
In step S <b> 4, the
次に、マウス6の操作により、カーソルがスキャン画像41の出力禁止領域43の右下付近である終点45に移動される。この状態でエンタキー6aが押されると、モニタコントローラ4は、始点44と終点45とを対角線とするマスク領域31を生成してモニタ5上に表示する。更に、モニタコントローラ4は、始点44と終点45の位置情報をメモリ3に出力し、メモリ3は、それら位置情報を記憶する。出力部7の出力ボタンが押下された場合、ステップS6へ移行し、そうでない場合ステップS4へ戻る。ステップS6において、マスク補正部12は、マスク領域31の位置を補正する。
Next, the operation of the
ステップS7において、合成部13は、スキャン画像41に対して、ステップS6で位置補正されたマスク領域31内の画像データをR=0、G=0、B=0に変換する。ステップS8において、出力部7は、ステップS7で変換されたマスク画像データをMFP内の図示しない電子写真方式のプリンタに出力する。
In step S <b> 7, the
図8は、図7中のステップS6のサブルーチンを示すフローチャートである。
マスク補正部12の処理について、図4に示した文字21〜25に対して、マスク領域31がずれて指定された状態の補正について説明する。
FIG. 8 is a flowchart showing a subroutine of step S6 in FIG.
Regarding the processing of the
ステップS11において、マスク補正部12は、マスク領域31と外接矩形21a〜25aの領域が重複した文字21〜25を検出する。このとき、文字位置検出部11に記憶された表1に示す外接矩形21a〜25aの座標をデータ座標からモニタ座標である左上座標PLn及び右下座標PRn(但し、n=1〜5)に変換して使用する。
In step S11, the
ステップS12において、マスク補正部12は、重複した文字の最も左にある文字21のデータ座標から、モニタ座標に変換した左上座標PL1と、マスク領域31の左上座標PLMとを比較し、一致したときには(YES)、ステップS13へ移行する。一致しないときには(NO)、ステップS14へ移行する。外接矩形21aの左上座標PL1は、文字位置検出部11から取得し、マスク領域31の左上座標PLMはメモリ3から取得する。
In step S12, the
マスク補正部12は、重複した文字の最も右にある文字25のデータ座標からモニタ座標に変換した右下座標PR5と、マスク領域31の右下座標PRMとを比較し、一致したときには(YES)、ステップS16へ移行し、一致しないときには(NO)、ステップS15へ移行する。外接矩形25aの右下座標PR5は、文字位置検出部11から取得し、マスク領域31の右下座標PRMは、メモリ3から取得する。
The
ステップS14において、マスク補正部12は、マスク領域31の左上座標PLMのx、y座標を、外接矩形21aの左上座標PL1のx、y座標に変更する。ステップS15において、マスク補正部12は、マスク領域31の右下座標PRMのx、y座標を、外接矩形25aの右下座標PR5のx、y座標に変更する。
In step S14, the
ステップS16において、モニタコントローラ4は、ステップS11からステップS15の処理が行われたマスク領域31をモニタ5に表示する。
In step S <b> 16, the
ここで、図6に示したマスク指定の動作について説明する。
図6(a)に示すように、モニタ5上でマスク領域31を指定する際、文字51〜56と、文字57〜59の2行に亘ってマスク領域31が指定される場合があり、警告の意味でマスク領域31は、赤く表示される。この場合、マスク補正部12によってマスク領域31の左上座標PLMは、外接矩形51aの左上座標PL1と、外接矩形57aの左上座標PL7のy座標と、を比較したときのy座標が小さい左上座標PL1に変更される。マスク領域31の右下座標PRMは、外接矩形54aの右下座標PR4と、外接矩形59aの右下座標PR9のy座標と、を比較したときのy座標が大きい外接矩形59aの右下座標PR9に変更され、図6(b)に示す状態となる。
Here, the mask designation operation shown in FIG. 6 will be described.
As shown in FIG. 6A, when the
次に、図6(c)に示すように、文字54〜56は、出力許可領域であるにもかかわらず文字54がマスクされているため、文字54に対してマスク領域31と同じ方法でマスク領域32が再マスクされる。その結果、マスク補正部12によって再マスク補正され、図6(d)に示す状態になる。
Next, as shown in FIG. 6C, the
(実施例1の効果)
本実施例1の画像読み取り装置によれば、マスク領域31の位置補正を行うことでマスキングが十分に行われるため、出力許可領域と出力禁止領域が混在した原稿を読み取る場合でも、出力禁止領域を確実に判読不可能な状態で出力できるという効果がある。
(Effect of Example 1)
According to the image reading apparatus of the first embodiment, masking is sufficiently performed by correcting the position of the
(実施例2の構成)
図9は、本発明の実施例2のMFPにおける画像読み取り装置を示す機能ブロック図であり、実施例1を示す図1中の要素と共通の要素には共通の符号が付されている。
(Configuration of Example 2)
FIG. 9 is a functional block diagram illustrating an image reading apparatus in the MFP according to the second embodiment of the present invention. Elements common to the elements in FIG. 1 illustrating the first embodiment are denoted by common reference numerals.
実施例2における画像読み取り装置の構成は、実施例1とほぼ同様である。本実施例2と実施例1との相違点は、マスク補正部12Aの構成が実施例1のマスク補正部12と異なっている点である。その他の構成は、実施例1と同様である。
The configuration of the image reading apparatus in the second embodiment is substantially the same as that of the first embodiment. The difference between the second embodiment and the first embodiment is that the configuration of the
マスク補正部12Aは、メモリ3と、合成部13と、文字位置検出部11とに接続されているプログラムモジュールである。マスク補正部12Aは、実施例1と同様に、メモリ3からすべてのマスクの位置情報を入力し、文字位置検出部11からすべての文字位置情報を入力する。マスク補正部12Aは、実施例1のマスク補正部12の機能に加え、スキャナの主走査方向に対して文字列が左上がりに傾いていた場合と、右上がり傾いていた場合とにより、補正方法を変えてマスク領域31の左上座標PLMと右下座標PRMとを補正する機能を有している。
The
(実施例2の画像読み取り装置の動作)
図10(a)、(b)は、図1中のモニタ5において、左上がりに傾いた文字列をマスクする動作を示す図である。図11(a)、(b)、(c)は、図1中のモニタ5において、右上がりに傾いた文字列をマスクする動作を示す図である。
(Operation of Image Reading Apparatus of Example 2)
FIGS. 10A and 10B are diagrams showing an operation of masking a character string inclined upward to the left in the
実施例1では、スキャナ1が原稿を読み取る際、スキャナ1の主走査方向、即ち、モニタ座標のx軸方向に対して原稿が傾いて設置された場合、正確にマスクできない虞がある。 In the first embodiment, when the scanner 1 reads an original, if the original is placed at an inclination with respect to the main scanning direction of the scanner 1, that is, the x-axis direction of the monitor coordinates, there is a possibility that the mask cannot be accurately performed.
例えば、図10(a)に示すように、スキャナ1の主走査方向に対して左上がりに傾いていた場合に対して、実施例1の処理で補正を行った場合には、図10(b)に示す状態になるので、十分にマスクすることができる。 For example, as shown in FIG. 10A, when correction is performed in the processing of the first embodiment with respect to the case where the scanner 1 is inclined upward to the main scanning direction, FIG. ), The mask can be sufficiently masked.
左上がりに傾いている文字をマスクする動作について、図10(a)、(b)を用いて、更に詳細に説明する。 The operation of masking characters that are tilted to the left will be described in more detail with reference to FIGS. 10 (a) and 10 (b).
図10(a)は、スキャナ1の主走査方向に対して左上がりに傾いている複数の文字61〜65に対するマスク補正前の状態を示している。
FIG. 10A shows a state before mask correction for a plurality of
文字61〜65は、モニタ5に表示されており、文字位置検出部11がメモリ2の画像データ内の各々の文字61〜65に対して、文字認識を行い、外接矩形61a〜65aを生成する。外接矩形61a〜65aは、左上座標PLn及び右下座標PRn(但し、n=1〜5)を持ち、文字61〜65は、それぞれ1から5の文字番号を持つ。例えば、文字61は、左上座標PL1及び右下座標PR1を持つ。文字61〜65は、マスク補正部12によって、マスク領域31と外接矩形61a〜65aの領域がずれて重なった文字として検出されている。
The
図10(b)は、スキャナ1の主走査方向に対して、左上がりに傾いている文字61〜65に対するマスク補正後の状態を示している。
FIG. 10B shows a state after the mask correction for the
このように、スキャナ1の主走査方向に対して左上がりに傾いている文字61〜65に対しては、実施例1において説明した処理により、十分にマスクすることができる。
As described above, the
しかし、図11(a)に示すように、右上がりに傾いていた場合に対してマスクを行うと、図11(b)に示すように左右端の文字がマスクされないことになり、マスクが不十分になる。この場合の補正について、図11を用いて説明する。 However, as shown in FIG. 11 (a), if masking is performed for a case in which it is inclined upward, the left and right characters are not masked as shown in FIG. It will be enough. The correction in this case will be described with reference to FIG.
図11(a)は、スキャナ1の主走査方向に対して右上がりに傾いている文字61〜65に対するマスク補正前の状態を示している。この状態では、マスク領域31が文字61〜65に対して、文字61の外接矩形61aと文字65の外接矩形65aとの一部を残して指定されている。
FIG. 11A shows a state before the mask correction for the
図11(b)は、スキャナ1の主走査方向に対して右上がりに傾いている文字61〜65に対するマスク補正後の状態を示している。この状態では文字61〜65に対してマスク領域31は、文字61と文字65とをマスクしないで、文字62の外接矩形領域62aと、文字64の外接矩形領域64aとの一部をマスクしている。
FIG. 11B shows a state after the mask correction for the
図11(c)は、スキャナ1の主走査方向に対して右上がりに傾いている文字61〜65に対するマスク補正後の状態を示している。この状態ではマスク領域31の左上座標PLMのx座標と、外接矩形61aの左上座標PL1のx座標とが等しく、マスク領域31の左上座標PLMのy座標と、PL5のy座標が等しく、マスク領域31の右下座標PRMのx座標とPR5のx座標が等しく、且つマスク領域31の右下座標PRMのy座標と、PRlのy座標が等しい。この結果、文字61〜65がマスク領域31によって、完全に覆われている。
FIG. 11C shows a state after the mask correction for the
図12は、本発明の実施例2における画像読み取り装置の動作を示すフローチャートである。 FIG. 12 is a flowchart showing the operation of the image reading apparatus according to the second embodiment of the present invention.
本実施例2における画像読み取り装置の動作は、実施例1とほぼ同様である。本実施例2においては、図7の実施例1の動作を示すフローチャートのステップS6がステップS20に置き換えられている点が実施例1と異なる。他のステップS1〜S5,S7,S8は、実施例1と同様である。実施例1と異なるステップ20において、マスク補正部12Aは、マスク31の位置を補正する。
The operation of the image reading apparatus in the second embodiment is substantially the same as that in the first embodiment. The second embodiment is different from the first embodiment in that step S6 in the flowchart showing the operation of the first embodiment in FIG. 7 is replaced with step S20. Other steps S1 to S5, S7, and S8 are the same as those in the first embodiment. In step 20 different from the first embodiment, the
図13は、図12中のステップS20のサブルーチンを示すフローチャートであり、実施例1を示す図8中のステップと共通のステップには共通の符号が付されている。 FIG. 13 is a flowchart showing a subroutine of step S20 in FIG. 12, and steps common to those in FIG. 8 showing the first embodiment are denoted by common reference numerals.
図13中のPLM:x、yは、マスク領域31の左上座標PLMのx座標及びy座標を示す。同様に、PRM:x、yは、マスク領域31の右下座標PRMのx座標及びy座標を、PL1:x、yは、外接矩形61の左上座標PL1のx座標及びy座標を、PL5:yは外接矩形65の左上座標PL5のy座標を、PR1:yは、外接矩形61の右下座標PR1のy座標を、PR5:xは、外接矩形65の右下座標PR5のx座標をそれぞれ示す。
PLM: x, y in FIG. 13 indicate the x coordinate and y coordinate of the upper left coordinate PLM of the
実施例1と同様のステップS11において、文字検出処理が実行される。実施例1と異なるステップS21において、マスク補正部12Aは、図10(a)及び図11(a)における最も左にある文字61の左上座標PL1のy座標が文字65の左上座標PL5のy座標より小さければ(YES)、文字列は右上がりと判断して、ステップS22へ移行し、そうでなければ(NO)、文字列は左上がりと判断して、ステップS12へ移行する。実施例1と同様のステップS12〜S15が実行され、実施例1と同様のステップS16へ進む。
In step S11 similar to the first embodiment, a character detection process is executed. In step S21 different from that in the first embodiment, the
実施例1と異なるステップS22において、マスク補正部12Aは、最も左にある文字61の左上座標PL1のx座標と、マスク31の左上座標PLMのx座標とが等しければ(YES)S23へ移行し、そうでなければ(NO)、補正のためにステップS26へ移行する。
In step S22 different from the first embodiment, the
ステップS23において、マスク補正部12Aは、最も右にある文字65の左上座標PL5のy座標と、マスク31の左上座標PLMのy座標とが等しければ(YES)、ステップS24へ移行し、そうでなければ(NO)、補正を行うためにステップS27へ移行する。
In step S23, if the y coordinate of the upper left coordinate PL5 of the
ステップS24において、マスク補正部12Aは、最も右にある文字65の右下座標PR5のx座標と、マスク領域31の右下座標PRMのx座標とが等しければ(YES)、ステップS25へ進み、そうでなければ(NO)、補正を行うためにステップS28へ移行する。
In step S24, if the x coordinate of the lower right coordinate PR5 of the
ステップS25において、マスク補正部12Aは、最も左にある文字61の左上座標PR1のy座標と、マスク領域31の右下座標PRMのy座標とが等しければ(YES)、ステップS16へ移行し、そうでなければ(NO)、補正を行うためにステップS29へ移行する。
In step S25, if the y coordinate of the upper left coordinate PR1 of the
ステップS26において、マスク補正部12Aは、マスク領域31の左上座標PLMのx座標を、外接矩形61aの左上座標PL1のx座標に変更する。ステップS27において、マスク補正部12Aは、マスク領域31の左上座標PLMのy座擦を、外接矩形65aの左上座標PL5のy座標に変更する。
In step S26, the
ステップS28において、マスク補正部12Aは、マスク領域31の右下座標PRMのx座標を、外接矩形65aの右下座標PR5のx座標に変更する。ステップS29において、マスク補正部12Aは、マスク領域31の右下座標PRMのy座標を、外接矩形61aの右下座PR1のy座標に変更する。
In step S28, the
実施例1と同様のステップS16において、モニタ表示処理が実行され、モニタ7に図11(c)に示すマスク補正結果が表示される。 In step S16 similar to that of the first embodiment, monitor display processing is executed, and the mask correction result shown in FIG.
(実施例2の効果)
実施例2の画像読み取り装置によれば、スキャナ1の主走査方向に対して左上がりに傾いていた場合と右上がり傾いていた場合との補正方法を分けてマスクの位置補正を行うようにしている。このため、スキャナ1が原稿を読み取る際、スキャナ1の主走査方向に対して原稿が傾いて設置されていても、十分にマスクができるという効果が得られる。
(Effect of Example 2)
According to the image reading apparatus of
(変形例)
本発明は、上記実施例に限定されず、種々の利用形態や変形が可能である。この利用形態や変形例としては、例えば、次の(a)〜(d)のようなものがある。
(Modification)
The present invention is not limited to the above-described embodiments, and various usage forms and modifications are possible. For example, the following forms (a) to (d) are used as the usage form and the modified examples.
(a) 実施例1、2では、出力部7のマスク画像データの出力先として、MFP内の電子写真式プリンタを用いて説明したが、例えば、インクジェットプリンタ、サーマルプリンタ、ファクシミリ装置等であっても適用可能である。更に、JPEG、TIFF、又はPDFファイルを出力するファイル出力ユニットでもよい。
(A) In the first and second embodiments, the electrophotographic printer in the MFP has been described as the output destination of the mask image data of the
(b) 実施例1、2では、マスク領域31をR=0、G=0、B=0としたが、R=255、G=255,B=255として白で出力してもよい。
(B) In the first and second embodiments, the
(c) モニタ5は、原稿を一度に表示できる程度の、例えば、A4サイズのものでもよいし、それよりも小さくてもよい。原稿が一度に表示できない場合は、画面のスクロールや横移動によりマスクを行うことができる。
(C) The
(d) 実施例1、2では、マウス6で説明したが、マウス6の場合には、操作用のスペースが必要になる。マウス6に代えてトラックパッド、トラックボールを用いると、操作用のスペースはなくてもよい。
(D) In the first and second embodiments, the
1 スキャナ
2 メモリ
3 メモリ
4 モニタコントローラ
5 モニタ
6 マウス
7 出力部
10,10A 制御部
11 文字位置検出部
12,12A マスク補正部
13 合成部
31 マスク領域
PLM マスク領域31の左上座標
PRM マスク領域31の右下座標
PLn 外接矩形の左上座標
PRn 外接矩形の右下座標
DESCRIPTION OF SYMBOLS 1
Claims (12)
前記画像読み取り部で読み取られた画像データを記憶する記憶部と、
前記記憶部に記憶された前記画像データを表示する表示部と、
前記表示部に表示された前記画像データに対して指定された第1の境界領域の第1の境界位置を指定する領域指定部と、
前記第1の境界位置と前記記憶部に記憶された前記画像データとに基づいて、出力禁止する前記第1の境界領域を設定するマスク領域設定部と、
前記記憶部に記憶された前記画像データを、前記マスク領域設定部において設定された前記第1の境界領域とマスクして合成するマスク画像合成部と、
前記マスク画像合成部で合成されたマスク画像データを出力する出力部と、
を有する画像読み取り装置であって、
前記マスク領域設定部は、
前記領域指定部を用いて、前記第1の境界領域を色を変えて表示しながら前記第1の境界領域の少なくとも一部と重なる、出力許可する第2の境界領域を設定し、
前記マスク画像合成部は、
前記第1の境界領域から前記第2の境界領域で囲われた文字を出力許可しながら、前記第2の境界領域から外れて前記第1の境界領域に掛かる前記文字の出力を禁止する合成を行う、
ことを特徴とする画像読み取り装置。 An image reading unit for optically reading a document;
A storage unit for storing image data read by the image reading unit;
A display unit for displaying the image data stored in the storage unit;
An area designating unit for designating a first boundary position of the first boundary area designated for the image data displayed on the display unit;
A mask area setting unit for setting the first boundary area to be prohibited based on the first boundary position and the image data stored in the storage unit;
A mask image combining unit that combines the image data stored in the storage unit with the first boundary region set in the mask region setting unit ;
An output unit for outputting mask image data synthesized by the mask image synthesis unit;
An image reading apparatus having
The mask area setting unit
Using the region designating unit, setting a second boundary region that permits output, overlapping at least a part of the first boundary region while displaying the first boundary region in a different color,
The mask image composition unit
A composition for prohibiting the output of the character that is outside the second boundary region and is applied to the first boundary region while allowing the character surrounded by the second boundary region from the first boundary region. Do,
An image reading apparatus.
前記記憶部に記憶された前記画像データに基づき、前記第2の境界領域における前記文字の第2の境界位置を取得するオブジェクト位置取得部を有し、
前記領域指定部で指定された前記第1の境界領域における前記第1の境界位置と、前記オブジェクト位置取得部で取得された前記第2の境界領域における前記第2の境界位置と、を比較して前記第1の境界領域を設定することを特徴とする請求項1記載の画像読み取り装置。 The mask area setting unit
An object position acquisition unit that acquires a second boundary position of the character in the second boundary region based on the image data stored in the storage unit;
The first boundary position in the first boundary region specified by the region specifying unit is compared with the second boundary position in the second boundary region acquired by the object position acquisition unit. The image reading apparatus according to claim 1, wherein the first boundary area is set .
前記記憶部に記憶された前記画像データ内の前記文字の外接矩形における対角線上の頂点であることを特徴とする請求項2記載の画像読み取り装置。 The second boundary position is
Image reading apparatus according to claim 2, characterized in that the vertices on the diagonal line in the circumscribed rectangle of the character in the image data stored in the storage unit.
四角形であることを特徴とする請求項1記載の画像読み取り装置。 The shape of the first boundary region specified by the region specifying unit is
The image reading apparatus according to claim 1, wherein the image reading apparatus is a quadrangle.
前記第1の境界領域の対角線上の頂点の座標であることを特徴とする請求項4記載の画像読み取り装置。 The first boundary position of the first boundary region specified by the region specifying unit is:
5. The image reading apparatus according to claim 4, wherein the coordinates of the vertexes on the diagonal line of the first boundary area are coordinates.
ハードディスク又は半導体メモリであることを特徴とする請求項1記載の画像読み取り装置。 The storage unit
The image reading apparatus according to claim 1, wherein the image reading apparatus is a hard disk or a semiconductor memory.
平板型表示装置又はブラウン管モニタであることを特徴とする請求項1記載の画像読み取り装置。 The display unit
2. The image reading apparatus according to claim 1, wherein the image reading apparatus is a flat panel display or a cathode ray tube monitor.
電子写真プリンタ、インクジェットプリンタ、又はサーマルプリンタのいずれか1つに前記マスク画像データを出力することを特徴とする請求項1記載の画像読み取り装置。 The output unit is
The image reading apparatus according to claim 1, wherein the mask image data is output to any one of an electrophotographic printer, an inkjet printer, and a thermal printer.
ファクシミリ装置に前記マスク画像データを出力することを特徴とする請求項1記載の画像読み取り装置。 The output unit is
2. The image reading apparatus according to claim 1, wherein the mask image data is output to a facsimile apparatus.
画像ファイルであることを特徴とする請求項1記載の画像読み取り装置。 The mask image data is
The image reading apparatus according to claim 1, wherein the image reading apparatus is an image file.
JPEG、TIFF、又はPDFファイルのいずれか1つであることを特徴とする請求項10記載の画像読み取り装置。 The image file is
The image reading apparatus according to claim 10, wherein the image reading apparatus is any one of a JPEG, TIFF, or PDF file.
フラットベッドスキャナであることを特徴とする請求項1記載の画像読み取り装置。 The reading unit is
The image reading apparatus according to claim 1, wherein the image reading apparatus is a flatbed scanner.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011093674A JP5789120B2 (en) | 2011-04-20 | 2011-04-20 | Image reading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011093674A JP5789120B2 (en) | 2011-04-20 | 2011-04-20 | Image reading device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012227738A JP2012227738A (en) | 2012-11-15 |
JP5789120B2 true JP5789120B2 (en) | 2015-10-07 |
Family
ID=47277447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011093674A Expired - Fee Related JP5789120B2 (en) | 2011-04-20 | 2011-04-20 | Image reading device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5789120B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6938318B2 (en) | 2017-10-03 | 2021-09-22 | キヤノン株式会社 | Information processing equipment, information processing methods and programs |
-
2011
- 2011-04-20 JP JP2011093674A patent/JP5789120B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012227738A (en) | 2012-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4772888B2 (en) | Image processing apparatus, image forming apparatus, image processing method, program, and recording medium thereof | |
JP5060404B2 (en) | Image processing apparatus, image processing method, and program | |
JPH11272871A (en) | Processor and method for image processing and record medium | |
US10460421B2 (en) | Image processing apparatus and storage medium | |
JP2008118215A (en) | Image processing apparatus, method and program | |
JP2010034683A (en) | Image processing apparatus, and program | |
JP2009217811A (en) | Image reading device, method for reading image, and image reading program | |
JP2008154106A (en) | Concealing method, image processor and image forming apparatus | |
JP2008118210A (en) | Image processing apparatus, method and program | |
JP2010278545A (en) | Device and method for determining density of bar code and program | |
JP5491774B2 (en) | Data entry system and data entry method | |
JP5369976B2 (en) | Information processing system | |
US8180102B2 (en) | Image processing device, image processing method, program, and recording medium | |
US20110194154A1 (en) | Image Processing Apparatus, Method, And Computer Program | |
JP5789120B2 (en) | Image reading device | |
JP6953957B2 (en) | Image processing equipment and programs | |
JP2011166778A (en) | Image-forming device, and method of correcting image and program for the same | |
US11140276B2 (en) | Image processing apparatus, non-transitory storage medium, and image processing method | |
JP4650303B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP4797882B2 (en) | Image processing apparatus and image processing method | |
JP2019029882A (en) | Image processing device | |
JP2019029884A (en) | Image processing device | |
JP6145877B2 (en) | Color mode determination apparatus and program | |
JP2011076674A (en) | Program and apparatus for geenrating data for printing label | |
JP2011077669A (en) | Document reader with preview function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20131127 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150106 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150223 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20150714 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150731 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5789120 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |