JP5789120B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

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
Application number
JP2011093674A
Other languages
Japanese (ja)
Other versions
JP2012227738A (en
Inventor
文明 吉田
文明 吉田
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
Priority to JP2011093674A priority Critical patent/JP5789120B2/en
Publication of JP2012227738A publication Critical patent/JP2012227738A/en
Application granted granted Critical
Publication of JP5789120B2 publication Critical patent/JP5789120B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2004−173159号公報JP 2004-173159 A

しかしながら、従来の画像読み取り装置では、出力許可領域と出力禁止領域が混在した原稿を読み取る場合、マスク処理が不十分であると出力禁止領域が判読可能な状態で出力されてしまうという課題があった。   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.

図1は本発明の実施例1のMFPにおける画像読み取り装置を示す機能ブロック図である。FIG. 1 is a functional block diagram showing an image reading apparatus in the MFP according to the first embodiment of the present invention. 図2は図1中のモニタに表示された文字“イ”の外接矩形を示す図である。FIG. 2 is a diagram showing a circumscribed rectangle of the character “I” displayed on the monitor in FIG. 図3は図1中のモニタにおいて、マスクされた領域を示す図である。FIG. 3 is a view showing a masked area in the monitor shown in FIG. 図4は図1中のモニタにおいて、外接矩形領域とマスク領域とのずれの補正を示す図である。FIG. 4 is a diagram showing correction of deviation between the circumscribed rectangular area and the mask area in the monitor shown in FIG. 図5は図1中のモニタにおいて、文字列をマスクする動作を示す図である。FIG. 5 is a diagram showing an operation of masking a character string in the monitor shown in FIG. 図6は図1中のモニタにおいて、2行の文字列に亘ってマスクが指定された場合の動作を示す図である。FIG. 6 is a diagram showing an operation when a mask is specified over two lines of character strings in the monitor shown in FIG. 図7は本発明の実施例1における画像読み取り装置の動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the image reading apparatus according to the first embodiment of the present invention. 図8は図7中のステップS6のサブルーチンを示すフローチャートである。FIG. 8 is a flowchart showing a subroutine of step S6 in FIG. 図9は本発明の実施例2のMFPにおける画像読み取り装置を示す機能ブロック図である。FIG. 9 is a functional block diagram showing an image reading apparatus in the MFP according to the second embodiment of the present invention. 図10は図1中のモニタにおいて、左上がりに傾いた文字列をマスクする動作を示す図である。FIG. 10 is a diagram showing an operation of masking a character string inclined upward to the left in the monitor shown in FIG. 図11は図1中のモニタにおいて、右上がりに傾いた文字列をマスクする動作を示す図である。FIG. 11 is a diagram showing an operation of masking a character string inclined upward to the right in the monitor shown in FIG. 図12は本発明の実施例2における画像読み取り装置の動作を示すフローチャートである。FIG. 12 is a flowchart showing the operation of the image reading apparatus according to the second embodiment of the present invention. 図13は図12中のステップS20のサブルーチンを示すフローチャートである。FIG. 13 is a flowchart showing a subroutine of step S20 in FIG.

本発明を実施するための形態は、以下の好ましい実施例の説明を添付図面と照らし合わせて読むと、明らかになるであろう。但し、図面はもっぱら解説のためのものであって、本発明の範囲を限定するものではない。   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 mouse 6 are provided. An area designating unit (for example, a monitor controller) 4 that outputs a first boundary position of a mask area as a first boundary area to be controlled and output prohibited , and a monitor 5 that displays image data input from the monitor controller 4 , A mouse 6 that outputs movement information including its own moving direction, moving amount, and moving speed to the monitor controller 4; It has an output unit 7 for outputting 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 memory 2, the mask area setting unit obtains a second boundary position in a re-masking area as a second boundary area that is permitted to be output of a character or an image object ( For example, the first boundary position is corrected by comparing the first boundary position output by the character position detection unit) 11 and the monitor controller 4 with the second boundary position of the character or the image object, It has a mask correction unit 12 for setting a mask region.

スキャナ1は、メモリ2に接続されたフラットベッドスキャナであり、原稿を光学的に読み取り、読み取りデータを赤緑青(RGB)各16ビットの画像データに変換し、その画像データをメモリ2へ格納する機能を有している。   The scanner 1 is a flatbed scanner connected to the memory 2, optically reads a document, converts the read data into 16-bit red, green, and blue (RGB) image data, and stores the image data in the memory 2. It has a function.

第1のメモリ2は、スキャナ1、モニタコントローラ4、文字位置検出部11、及び合成部13に接続された半導体メモリであり、スキャナ1の出力する画像データを入力して格納する機能を有している。モニタコントローラ4、文字位置検出部11、又は合成部13のそれぞれは、メモリ2に格納された画像データを読み出すように構成されている。なお、メモリ2は、ハードディスクでもよい。   The first memory 2 is a semiconductor memory connected to the scanner 1, the monitor controller 4, the character position detection unit 11, and the synthesis unit 13, and has a function of inputting and storing image data output from the scanner 1. ing. Each of the monitor controller 4, the character position detection unit 11, or the synthesis unit 13 is configured to read image data stored in the memory 2. The memory 2 may be a hard disk.

第2のメモリ3は、モニタコントローラ4、及びマスク補正部12に接続された半導体メモリである。メモリ3は、マウス6で指定されたすべてのマスクの位置情報をモニタコントローラ4から入力して格納し、マスク補正部12の制御により、すべてのマスクの位置情報を出力するように構成されている。   The second memory 3 is a semiconductor memory connected to the monitor controller 4 and the mask correction unit 12. The memory 3 is configured to receive and store the position information of all masks designated by the mouse 6 from the monitor controller 4 and to output the position information of all masks under the control of the mask correction unit 12. .

モニタコントローラ4は、マウス6の移動情報により、モニタ5上のカーソルを移動させるように構成されている。マウス6のエンタキー6aが押された場合、モニタコントローラ4は、図示しないカーソルの位置情報を座標として、メモリ3へ出力する機能を有している。なお、カーソルの位置情報は、複数指定可能であるようになっている。   The monitor controller 4 is configured to move the cursor on the monitor 5 based on the movement information of the mouse 6. When the enter key 6a of the mouse 6 is pressed, the monitor controller 4 has a function of outputting the position information of a cursor (not shown) to the memory 3 as coordinates. Note that a plurality of cursor position information can be specified.

ここで使用される座標は、原点Oがモニタ5の左上頂点であり、原点Oから右方向を正のx軸、原点から下方向を正のy軸とするモニタ座標である。   The coordinates used here are monitor coordinates in which the origin O is the upper left vertex of the monitor 5, the right direction from the origin O is the positive x axis, and the downward direction from the origin is the positive y axis.

モニタコントローラ4は、更に、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが、始点及び終点の2か所で押されると、この2点を対角線としたマスク領域を生成してモニタ5に表示し、同時に第1の境界位置をメモリ3に記憶する機能を有している。 Further, when the enter key 6a of the mouse 6 is pressed at two positions of the start point and the end point while the image data is displayed on the monitor 5, the monitor controller 4 generates a mask area having these two points as diagonal lines. Then, it has a function of displaying on the monitor 5 and simultaneously storing the first boundary position in the memory 3.

モニタ5は、モニタコントローラ4に接続された平板型表示装置の1つである液晶(以下「LCD」という。)モニタであり、モニタコントローラ4から出力された画像データを入力して表示する機能を有している。なお、モニタ5は、ブラウン管モニタでもよい。   The monitor 5 is a liquid crystal (hereinafter referred to as “LCD”) monitor that is one of flat-panel display devices connected to the monitor controller 4, and has a function of inputting and displaying image data output from the monitor controller 4. Have. The monitor 5 may be a cathode ray tube monitor.

文字位置検出部11は、メモリ2、及びマスク補正部12に接続されたプログラムモジュールであり、メモリ2に格納されている画像データを入力し、その画像データについて文字認識を行い、文字位置情報として、すべての文字における外接矩形の左上座標PLnと右下座標PRnを記憶し、マスク補正部12に文字位置情報として出力する機能を有している。なお、この場合の座標は、原点Oが画像の左上頂点であり、原点Oから右方向を正のx軸、原点から下方向を正のy軸とするデータ座標である。   The character position detection unit 11 is a program module connected to the memory 2 and the mask correction unit 12, and receives image data stored in the memory 2, performs character recognition on the image data, and serves as character position information. The upper left coordinate PLn and the lower right coordinate PRn of the circumscribed rectangle in all characters are stored and output to the mask correction unit 12 as character position information. Note that the coordinates in this case are data coordinates where the origin O is the upper left vertex of the image, the right direction from the origin O is the positive x axis, and the downward direction from the origin is the positive y axis.

マスク補正部12は、メモリ3、文字位置検出部11、及び合成部13に接続されたプログラムモジュールであり、メモリ3に記憶されている複数のマスク領域の第1の境界位置をモニタコントローラ4から入力する。更に、文字位置検出部11からすべての第2の境界位置を入力し、第2の境界位置の座標をデータ座標からモニタ座標に変換し、各マスク領域の第1の境界位置である左上座標PLMと右下座標PRMを補正する機能を有している。   The mask correction unit 12 is a program module connected to the memory 3, the character position detection unit 11, and the synthesis unit 13. The first boundary positions of the plurality of mask areas stored in the memory 3 are obtained from the monitor controller 4. input. Further, all the second boundary positions are input from the character position detection unit 11, the coordinates of the second boundary positions are converted from the data coordinates to the monitor coordinates, and the upper left coordinates PLM which is the first boundary position of each mask area And the function of correcting the lower right coordinate PRM.

合成部13は、メモリ2、マスク補正部11、及び出力部7に接続されたプログラムモジュールであり、メモリ2から画像データを入力し、マスク補正部12から補正されたマスク位置情報を入力し、マスク領域内の画像データをR=0、G=0、B=0に変換し、変換された画像データを出力部7へ出力する機能を有している。この結果、マスク領域は、黒色に変換される。   The synthesis unit 13 is a program module connected to the memory 2, the mask correction unit 11, and the output unit 7. The image data is input from the memory 2, the corrected mask position information is input from the mask correction unit 12, The image data in the mask area is converted to R = 0, G = 0, and B = 0, and the converted image data is output to the output unit 7. As a result, the mask area is converted to black.

出力部7は、図示しない出力ボタンを有し、合成部13に接続されている。出力部の出力ボタンが押下されることで、合成部13からマスク変換済みのマスク画像データを入力し、例えば、図示しない電子写真方式のプリンタに出力する機能を有している。 The output unit 7 has an output button (not shown) and is connected to the combining unit 13. When the output button of the output unit 7 is pressed, the mask image data that has been subjected to mask conversion is input from the synthesizing unit 13 and output to, for example, an electrophotographic printer (not shown).

(実施例1の画像読み取り装置の動作)
図2は、図1中のモニタに表示された文字“イ”の外接矩形を示す図である。
(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 monitor 5 in FIG.

文字21は、文字本体21bと、この文字本体21bに所定の間隙を空けて外接する外接矩形21aとから構成されている。外接矩形21aは、文字認識技術において、実際に文字の認識を行う領域であり、位置情報として下記の表1に示すようなデータ座標の左上座標PLnと右下座標PRn(nは各文字の番号)を持っている。この各文字の座標は、文字位置検出部11がメモリ2の画像データを文字認識して生成する。   The character 21 includes a character main body 21b and a circumscribed rectangle 21a circumscribing the character main body 21b with a predetermined gap. The circumscribed rectangle 21a is an area where characters are actually recognized in the character recognition technology. As position information, the upper left coordinate PLn and the lower right coordinate PRn (n is the number of each character) as shown in Table 1 below. )have. The coordinates of each character are generated by the character position detection unit 11 recognizing the image data in the memory 2.

Figure 0005789120
Figure 0005789120

図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 monitor 5 in FIG.
The mask area 31 serving as the first boundary area to be prohibited from being output is a black rectangle whose diagonal is a straight line connecting the upper left coordinates PLM and the lower right coordinates PRM of the monitor coordinates. When the enter key 6 a of the mouse 6 is pressed, the mouse 6 outputs its movement information to the monitor controller 4. When the enter key 6a of the mouse 6 is pressed at two positions while the image data is displayed on the monitor 5, the monitor controller 4 generates a mask area 31 having these two points as diagonal lines. Information is an upper left coordinate PLM and a lower right coordinate PRM. This mask area is displayed in black on the monitor 7 by the monitor controller 5.

図4(a)、(b)は、図1中のモニタ5において、外接矩形領域21aとマスク領域31とのずれの補正を示す図である。   4A and 4B are diagrams showing correction of displacement between the circumscribed rectangular area 21a and the mask area 31 in the monitor 5 in FIG.

図4(a)は、文字21から文字25に対して、マスク領域31がずれて指定された場合のマスク補正前の状態を示している。   FIG. 4A shows a state before mask correction when the mask area 31 is specified with a deviation from the character 21 to the character 25.

複数の文字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 characters 21 to 25 are displayed on the monitor 5. Each character 21 to 25 has the coordinates shown in Table 1 because the character position detection unit 11 recognizes the image data in the memory 2 and generates the circumscribed rectangles 21a to 25a for each character 21 to 25. Has PLn and PRn. The characters 21 to 25 have character numbers 1 to 5, respectively. For example, the upper left coordinate PLn and the lower right coordinate PRn of the character 21 are the coordinates PL1, PR1. The characters 21 to 25 are detected by the mask correction unit 12 as characters in which the mask region 31 and the circumscribed rectangles 21a to 25a are shifted and overlapped.

図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 rectangle 21a character 21, the upper left coordinates and PLM match the mask region 31, and the lower right coordinates PR5 of the circumscribed rectangle 25a of characters 25, lower right coordinates PRM mask regions 31 matches .

図5(a)、(b)、(c)は、図1中のモニタ5において、文字列をマスクする動作を示す図である。   FIGS. 5A, 5B, and 5C are diagrams illustrating an operation of masking a character string in the monitor 5 in FIG.

図5(a)は、文字がマスクされる前の状態を示している。
スキャン画像41がモニタ5に表示されている。スキャン画像41は、スキャナ1が読み取った画像データであり、文字列42を有している。文字列42は、スキャナ1が読み取った原稿の文章であり、出力禁止領域43と、それ以外の出力許可領域とを有している。出力禁止領域43は、例えば、機密事項等のデータであり、出力が禁止されている部分である。
FIG. 5A shows a state before characters are masked.
A scanned image 41 is displayed on the monitor 5. The scanned image 41 is image data read by the scanner 1 and has a character string 42. The character string 42 is a document text read by the scanner 1 and has an output prohibition area 43 and other output permission areas. The output prohibition area 43 is, for example, data such as confidential matters, and is a portion where output is prohibited.

図5(b)は、マスク領域31の始点と終点が指定される際のスキャン画像41を示している。   FIG. 5B shows a scan image 41 when the start point and end point of the mask area 31 are designated.

始点44は、マスク領域31の左上座標PLMであり、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが押下された際のカーソルの位置情報である。終点45は、マスク領域31の右下座標PRMであり、画像データがモニタ5に表示されている状態で、マウス6のエンタキー6aが始点44の押下に続いて押された際のカーソルの位置情報である。   The start point 44 is the upper left coordinate PLM of the mask area 31 and is the position information of the cursor when the enter key 6a of the mouse 6 is pressed while the image data is displayed on the monitor 5. The end point 45 is the lower right coordinate PRM of the mask area 31, and the position information of the cursor when the enter key 6 a of the mouse 6 is pressed after the start point 44 is pressed in a state where the image data is displayed on the monitor 5. It is.

図5(c)は、マスク領域31が指定された状態を示している。
マスク領域31は、始点44、終点45をそれぞれマスク領域31の左上座標PLM、マスク領域31の右下座標PRMとして、モニタコントローラ4によって表示される。
FIG. 5C shows a state in which the mask area 31 is designated.
The mask area 31 is displayed by the monitor controller 4 with the start point 44 and the end point 45 as the upper left coordinate PLM of the mask area 31 and the lower right coordinate PRM of the mask area 31, respectively.

図6(a)、(b)、(c)、(d)は、図1中のモニタ5において、2行の文字列に亘ってマスク領域31が指定された場合の動作を示す図である。   FIGS. 6A, 6B, 6C, and 6D are diagrams showing operations when the mask region 31 is specified over two character strings in the monitor 5 in FIG. .

図6(a)は、複数の文字51〜56と、複数の文字57〜59との2行に亘ってマスク領域31が指定された場合のマスク補正前の状態を示している。   FIG. 6A shows a state before mask correction when the mask region 31 is designated over two lines of a plurality of characters 51 to 56 and a plurality of characters 57 to 59.

複数の文字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 characters 51 to 56 are displayed on the monitor 5. The plurality of characters 51 to 56 and the plurality of characters 57 to 59 are displayed in separate lines, and the character position detection unit 11 recognizes the image data in the memory 2 for each character, and each circumscribed rectangle. 51a to 59a are generated. Each circumscribed rectangle 51a to 59a has an upper left coordinate PLn and a lower right coordinate PRn, and the characters 51 to 59 have character numbers 1 to 9, respectively. For example, the upper left coordinate PLn and the lower right coordinate PRn of the character 51 are the upper left coordinate PL1 and the lower right coordinate PR1.

文字51〜56及び文字57〜59は、マスク補正部12によって、マスク領域31と外接矩形51a〜54a,57a〜59aの領域が重複した文字として検出されている。又、文字51〜53及び文字57〜59は、出力禁止領域であり、文字54〜56は、出力許可領域である。   The characters 51 to 56 and the characters 57 to 59 are detected by the mask correction unit 12 as characters in which the mask region 31 and the regions of the circumscribed rectangles 51a to 54a and 57a to 59a overlap. Characters 51 to 53 and characters 57 to 59 are output prohibited areas, and characters 54 to 56 are output permitted areas.

図6(b)は、文字51〜56と、文字57〜59との2行に渡ってマスク31が指定された場合のマスク補正後の状態を示している。   FIG. 6B shows a state after the mask correction when the mask 31 is designated over two lines of the characters 51 to 56 and the characters 57 to 59.

図6(a)と比べて、マスク領域31の左上座標PLMが外接矩形51aの左上座標PL1に、マスク領域31の右下座標PRMが外接矩形59aの右下座標PR9に変更されている。   Compared to FIG. 6A, the upper left coordinate PLM of the mask region 31 is changed to the upper left coordinate PL1 of the circumscribed rectangle 51a, and the lower right coordinate PRM of the mask region 31 is changed to the lower right coordinate PR9 of the circumscribed rectangle 59a.

図6(c)は、文字54に対して再マスクされた場合の再マスク補正前の状態を示している。   FIG. 6C shows a state before remask correction when the character 54 is remasked.

出力許可する第2の境界領域としての再マスク領域であるマスク領域32は、マスク領域31と同じ方法で生成され、マスク領域31上に重複する場所に再マスクを行っている。このマスク領域32は、再マスク補正後、マスク領域31の重複している場所と共にマスク補正部12によって消去される。 A mask area 32 which is a re-mask area as a second boundary area whose output is permitted is generated by the same method as the mask area 31, and re-masking is performed on the overlapping area on the mask area 31. The mask area 32 is erased by the mask correction unit 12 together with the overlapping area of the mask area 31 after remask correction.

図6(d)は、再マスク補正後の状態を示している。
文字54のマスク31が消去され、文字51〜53及び文字57〜59のみがマスク領域31によってマスクされている。
FIG. 6D shows a state after remask correction.
The mask 31 of the character 54 is deleted, and only the characters 51 to 53 and the characters 57 to 59 are masked by the mask region 31.

図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 memory 2. The memory 2 stores the input image data. In step S <b> 2, the monitor controller 4 displays the scan image 41 on the monitor 5 based on the image data in the memory 2.

ステップS3において、文字位置検出部11は、スキャン画像41の文字列42を文字認識し、全文字の位置情報を記憶する。   In step S3, the character position detection unit 11 recognizes the character string 42 of the scanned image 41 and stores the position information of all characters.

ステップS4において、モニタ5に表示されているスキャン画像41に対して、マウス6により、マスク領域31が指定される。図示しないカーソルがスキャン画像41の出力禁止領域43の左上付近である始点44にあるときに、マウス6のエンタキー6aが押されると、モニタコントローラ4は、カーソル位置情報を記憶する。   In step S <b> 4, the mask area 31 is designated by the mouse 6 for the scan image 41 displayed on the monitor 5. When the cursor (not shown) is at the start point 44 near the upper left of the output prohibited area 43 of the scanned image 41, when the enter key 6a of the mouse 6 is pressed, the monitor controller 4 stores the cursor position information.

次に、マウス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 mouse 6 moves the cursor to the end point 45 near the lower right of the output prohibited area 43 of the scan image 41. When the enter key 6a is pressed in this state, the monitor controller 4 generates a mask area 31 having a start point 44 and an end point 45 as diagonal lines and displays them on the monitor 5. Further, the monitor controller 4 outputs the position information of the start point 44 and the end point 45 to the memory 3, and the memory 3 stores the position information. If the output button of the output unit 7 is pressed, the process proceeds to step S6, and if not, the process returns to step S4. In step S <b> 6, the mask correction unit 12 corrects the position of the mask region 31.

ステップS7において、合成部13は、スキャン画像41に対して、ステップS6で位置補正されたマスク領域31内の画像データをR=0、G=0、B=0に変換する。ステップS8において、出力部7は、ステップS7で変換されたマスク画像データをMFP内の図示しない電子写真方式のプリンタに出力する。   In step S <b> 7, the composition unit 13 converts the image data in the mask area 31 whose position has been corrected in step S <b> 6 into R = 0, G = 0, and B = 0 for the scanned image 41. In step S8, the output unit 7 outputs the mask image data converted in step S7 to an electrophotographic printer (not shown) in the MFP.

図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 mask correction unit 12, correction of a state in which the mask area 31 is specified with a deviation from the characters 21 to 25 shown in FIG. 4 will be described.

ステップS11において、マスク補正部12は、マスク領域31と外接矩形21a〜25aの領域が重複した文字21〜25を検出する。このとき、文字位置検出部11に記憶された表1に示す外接矩形21a〜25aの座標をデータ座標からモニタ座標である左上座標PLn及び右下座標PRn(但し、n=1〜5)に変換して使用する。 In step S11, the mask correction unit 12 detects the characters 21 to 25 in which the mask region 31 and the circumscribed rectangles 21a to 25a overlap each other. At this time, the coordinates of the circumscribed rectangles 21a to 25a shown in Table 1 stored in the character position detection unit 11 are converted from the data coordinates to the upper left coordinates PLn and lower right coordinates PRn (n = 1 to 5) as monitor coordinates. And use it.

ステップS12において、マスク補正部12は、重複した文字の最も左にある文字21のデータ座標から、モニタ座標に変換した左上座標PL1と、マスク領域31の左上座標PLMとを比較し、一致したときには(YES)、ステップS13へ移行する。一致しないときには(NO)、ステップS14へ移行する。外接矩形21aの左上座標PL1は、文字位置検出部11から取得し、マスク領域31の左上座標PLMはメモリ3から取得する。 In step S12, the mask correction unit 12 compares the upper left coordinates PL1 converted from the data coordinates of the leftmost character 21 of the duplicated characters into the monitor coordinates and the upper left coordinates PLM of the mask area 31. (YES), the process proceeds to step S13. If they do not match (NO), the process proceeds to step S14. The upper left coordinate PL1 of the circumscribed rectangle 21a is acquired from the character position detection unit 11, and the upper left coordinate PLM of the mask area 31 is acquired from the memory 3.

マスク補正部12は、重複した文字の最も右にある文字25のデータ座標からモニタ座標に変換した右下座標PR5と、マスク領域31の右下座標PRMとを比較し、一致したときには(YES)、ステップS16へ移行し、一致しないときには(NO)、ステップS15へ移行する。外接矩形25aの右下座標PR5は、文字位置検出部11から取得し、マスク領域31の右下座標PRMは、メモリ3から取得する。   The mask correction unit 12 compares the lower right coordinates PR5 converted from the data coordinates of the rightmost character 25 of the duplicated characters to the monitor coordinates and the lower right coordinates PRM of the mask area 31, and when they match (YES). The process proceeds to step S16, and if they do not match (NO), the process proceeds to step S15. The lower right coordinate PR5 of the circumscribed rectangle 25a is acquired from the character position detection unit 11, and the lower right coordinate PRM of the mask area 31 is acquired from the memory 3.

ステップS14において、マスク補正部12は、マスク領域31の左上座標PLMのx、y座標を、外接矩形21aの左上座標PL1のx、y座標に変更する。ステップS15において、マスク補正部12は、マスク領域31の右下座標PRMのx、y座標を、外接矩形25aの右下座標PR5のx、y座標に変更する。   In step S14, the mask correction unit 12 changes the x and y coordinates of the upper left coordinate PLM of the mask area 31 to the x and y coordinates of the upper left coordinate PL1 of the circumscribed rectangle 21a. In step S15, the mask correction unit 12 changes the x and y coordinates of the lower right coordinate PRM of the mask area 31 to the x and y coordinates of the lower right coordinate PR5 of the circumscribed rectangle 25a.

ステップS16において、モニタコントローラ4は、ステップS11からステップS15の処理が行われたマスク領域31をモニタ5に表示する。   In step S <b> 16, the monitor controller 4 displays on the monitor 5 the mask area 31 that has undergone the processing from step S <b> 11 to step S <b> 15.

ここで、図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 mask area 31 is specified on the monitor 5, the mask area 31 may be specified over two lines of the characters 51 to 56 and the characters 57 to 59. In this sense, the mask area 31 is displayed in red. In this case, the upper left coordinate PLM of the mask area 31 by the mask correction unit 12 is the upper left coordinate PL1 having a small y coordinate when the upper left coordinate PL1 of the circumscribed rectangle 51a is compared with the y coordinate of the upper left coordinate PL7 of the circumscribed rectangle 57a. Changed to The lower right coordinate PRM of the mask area 31 is the lower right coordinate PR9 of the circumscribed rectangle 59a having a larger y coordinate when the lower right coordinate PR4 of the circumscribed rectangle 54a is compared with the y coordinate of the lower right coordinate PR9 of the circumscribed rectangle 59a. To be in the state shown in FIG.

次に、図6(c)に示すように、文字54〜56は、出力許可領域であるにもかかわらず文字54がマスクされているため、文字54に対してマスク領域31と同じ方法でマスク領域32が再マスクされる。その結果、マスク補正部12によって再マスク補正され、図6(d)に示す状態になる。   Next, as shown in FIG. 6C, the characters 54 to 56 are masked in the same manner as the mask region 31 because the characters 54 are masked even though they are output permission regions. Region 32 is remasked. As a result, re-mask correction is performed by the mask correction unit 12, and the state shown in FIG.

(実施例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 mask area 31. Therefore, even when reading a document in which an output permitted area and an output prohibited area are mixed, the output prohibited area is set. There is an effect that the data can be output in an unreadable state.

(実施例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 mask correction unit 12A is different from the mask correction unit 12 of the first embodiment. Other configurations are the same as those of the first embodiment.

マスク補正部12Aは、メモリ3と、合成部13と、文字位置検出部11とに接続されているプログラムモジュールである。マスク補正部12Aは、実施例1と同様に、メモリ3からすべてのマスクの位置情報を入力し、文字位置検出部11からすべての文字位置情報を入力する。マスク補正部12Aは、実施例1のマスク補正部12の機能に加え、スキャナの主走査方向に対して文字列が左上がりに傾いていた場合と、右上がり傾いていた場合とにより、補正方法を変えてマスク領域31の左上座標PLMと右下座標PRMとを補正する機能を有している。 The mask correction unit 12 </ b> A is a program module connected to the memory 3, the synthesis unit 13, and the character position detection unit 11. As in the first embodiment, the mask correction unit 12A inputs the position information of all the masks from the memory 3, and inputs all the character position information from the character position detection unit 11. In addition to the function of the mask correction unit 12 of the first embodiment, the mask correction unit 12A performs a correction method depending on whether the character string is tilted upward to the left or tilted upward to the main scanning direction of the scanner. And the function of correcting the upper left coordinate PLM and the lower right coordinate PRM of the mask area 31 is provided.

(実施例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 monitor 5 in FIG. FIGS. 11A, 11B, and 11C are diagrams illustrating an operation of masking a character string tilted upward to the right in the monitor 5 in FIG.

実施例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 characters 61 to 65 that are inclined upward to the left with respect to the main scanning direction of the scanner 1.

文字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 characters 61 to 65 are displayed on the monitor 5, and the character position detection unit 11 performs character recognition for each of the characters 61 to 65 in the image data in the memory 2 to generate circumscribed rectangles 61 a to 65 a. . The circumscribed rectangles 61a to 65a have an upper left coordinate PLn and a lower right coordinate PRn (where n = 1 to 5 ), and the characters 61 to 65 have character numbers 1 to 5, respectively. For example, the character 61 has an upper left coordinate PL1 and a lower right coordinate PR1. The characters 61 to 65 are detected by the mask correction unit 12 as characters in which the mask region 31 and the circumscribed rectangles 61a to 65a are shifted and overlapped.

図10(b)は、スキャナ1の主走査方向に対して、左上がりに傾いている文字61〜65に対するマスク補正後の状態を示している。   FIG. 10B shows a state after the mask correction for the characters 61 to 65 inclined to the left with respect to the main scanning direction of the scanner 1.

このように、スキャナ1の主走査方向に対して左上がりに傾いている文字61〜65に対しては、実施例1において説明した処理により、十分にマスクすることができる。   As described above, the characters 61 to 65 inclined to the left with respect to the main scanning direction of the scanner 1 can be sufficiently masked by the processing described in the first embodiment.

しかし、図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 characters 61 to 65 inclined to the right with respect to the main scanning direction of the scanner 1. In this state, the mask area 31 is designated for the characters 61 to 65 while leaving a part of the circumscribed rectangle 61 a of the character 61 and the circumscribed rectangle 65 a of the character 65.

図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 characters 61 to 65 inclined to the right with respect to the main scanning direction of the scanner 1. In this state, the mask region 31 does not mask the characters 61 and 65 with respect to the characters 61 to 65, and masks a part of the circumscribed rectangular region 62a of the character 62 and the circumscribed rectangular region 64a of the character 64. Yes.

図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 characters 61 to 65 inclined to the right with respect to the main scanning direction of the scanner 1. In this state, the x coordinate of the upper left coordinate PLM of the mask area 31 is equal to the x coordinate of the upper left coordinate PL1 of the circumscribed rectangle 61a, the y coordinate of the upper left coordinate PLM of the mask area 31 is equal to the y coordinate of PL5, and the mask area The x coordinate of the lower right coordinate PRM 31 is equal to the x coordinate of PR5, and the y coordinate of the lower right coordinate PRM of the mask area 31 is equal to the y coordinate of PRl. As a result, the characters 61 to 65 are completely covered with the mask region 31.

図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 mask correction unit 12A corrects the position of the mask 31.

図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 mask region 31. Similarly, PRM: x, y are the x coordinate and y coordinate of the lower right coordinate PRM of the mask area 31, and PL1: x, y are the x coordinate and y coordinate of the upper left coordinate PL1 of the circumscribed rectangle 61, PL5: y is the y coordinate of the upper left coordinate PL5 of the circumscribed rectangle 65, PR1: y is the y coordinate of the lower right coordinate PR1 of the circumscribed rectangle 61, and PR5: x is the x coordinate of the lower right coordinate PR5 of the circumscribed rectangle 65, respectively. Show.

実施例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 mask correction unit 12A determines that the y coordinate of the upper left coordinate PL1 of the leftmost character 61 in FIGS. 10A and 11A is the y coordinate of the upper left coordinate PL5 of the character 65. If it is smaller (YES), it is determined that the character string is rising to the right and the process proceeds to step S22. If not (NO), the character string is determined to be rising to the left and the process proceeds to step S12. Steps S12 to S15 similar to those in the first embodiment are executed, and the process proceeds to step S16 similar to that in the first embodiment.

実施例1と異なるステップS22において、マスク補正部12Aは、最も左にある文字61の左上座標PL1のx座標と、マスク31の左上座標PLMのx座標とが等しければ(YES)S23へ移行し、そうでなければ(NO)、補正のためにステップS26へ移行する。   In step S22 different from the first embodiment, the mask correction unit 12A proceeds to S23 if the x coordinate of the upper left coordinate PL1 of the leftmost character 61 is equal to the x coordinate of the upper left coordinate PLM of the mask 31 (YES). Otherwise (NO), the process proceeds to step S26 for correction.

ステップ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 rightmost character 65 is equal to the y coordinate of the upper left coordinate PLM of the mask 31 in step S23 (YES), the mask correction unit 12A proceeds to step S24. If not (NO), the process proceeds to step S27 to perform correction.

ステップ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 rightmost character 65 is equal to the x coordinate of the lower right coordinate PRM of the mask area 31 (YES), the mask correction unit 12A proceeds to step S25. Otherwise (NO), the process proceeds to step S28 for correction.

ステップ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 leftmost character 61 is equal to the y coordinate of the lower right coordinate PRM of the mask area 31 in step S25 (YES), the mask correction unit 12A proceeds to step S16. Otherwise (NO), the process proceeds to step S29 to perform correction.

ステップS26において、マスク補正部12Aは、マスク領域31の左上座標PLMのx座標を、外接矩形61aの左上座標PL1のx座標に変更する。ステップS27において、マスク補正部12Aは、マスク領域31の左上座標PLMのy座擦を、外接矩形65aの左上座標PL5のy座標に変更する。   In step S26, the mask correction unit 12A changes the x coordinate of the upper left coordinate PLM of the mask area 31 to the x coordinate of the upper left coordinate PL1 of the circumscribed rectangle 61a. In step S27, the mask correcting unit 12A changes the y-collision of the upper left coordinate PLM of the mask area 31 to the y coordinate of the upper left coordinate PL5 of the circumscribed rectangle 65a.

ステップS28において、マスク補正部12Aは、マスク領域31の右下座標PRMのx座標を、外接矩形65aの右下座標PR5のx座標に変更する。ステップS29において、マスク補正部12Aは、マスク領域31の右下座標PRMのy座標を、外接矩形61aの右下座PR1のy座標に変更する。   In step S28, the mask correction unit 12A changes the x coordinate of the lower right coordinate PRM of the mask region 31 to the x coordinate of the lower right coordinate PR5 of the circumscribed rectangle 65a. In step S29, the mask correction unit 12A changes the y coordinate of the lower right coordinate PRM of the mask area 31 to the y coordinate of the lower right seat PR1 of the circumscribed rectangle 61a.

実施例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 Embodiment 2, so as to correct the position of the mask by dividing the correction method to the case of inclined upward sloping and when tilted upward to the left with respect to the main scanning direction of the scanner 1 Yes. For this reason, when the scanner 1 reads an original, even if the original is inclined with respect to the main scanning direction of the scanner 1, an effect that a mask can be sufficiently obtained is obtained.

(変形例)
本発明は、上記実施例に限定されず、種々の利用形態や変形が可能である。この利用形態や変形例としては、例えば、次の(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 output unit 7, but for example, an inkjet printer, a thermal printer, a facsimile machine, etc. Is also applicable. Further, it may be a file output unit that outputs a JPEG, TIFF, or PDF file.

(b) 実施例1、2では、マスク領域31をR=0、G=0、B=0としたが、R=255、G=255,B=255として白で出力してもよい。   (B) In the first and second embodiments, the mask region 31 is set to R = 0, G = 0, and B = 0. However, the mask region 31 may be output in white as R = 255, G = 255, and B = 255.

(c) モニタ5は、原稿を一度に表示できる程度の、例えば、A4サイズのものでもよいし、それよりも小さくてもよい。原稿が一度に表示できない場合は、画面のスクロールや横移動によりマスクを行うことができる。   (C) The monitor 5 may be of an A4 size, for example, which can display a document at a time, or may be smaller than that. If the document cannot be displayed at once, it can be masked by scrolling or moving the screen.

(d) 実施例1、2では、マウス6で説明したが、マウス6の場合には、操作用のスペースが必要になる。マウス6に代えてトラックパッド、トラックボールを用いると、操作用のスペースはなくてもよい。   (D) In the first and second embodiments, the mouse 6 has been described. However, in the case of the mouse 6, a space for operation is required. When a track pad or a track ball is used instead of the mouse 6, there is no need for an operation space.

1 スキャナ
2 メモリ
3 メモリ
4 モニタコントローラ
5 モニタ
6 マウス
7 出力部
10,10A 制御部
11 文字位置検出部
12,12A マスク補正部
13 合成部
31 マスク領域
PLM マスク領域31の左上座標
PRM マスク領域31の右下座標
PLn 外接矩形の左上座標
PRn 外接矩形の右下座標
DESCRIPTION OF SYMBOLS 1 Scanner 2 Memory 3 Memory 4 Monitor controller 5 Monitor 6 Mouse 7 Output part 10, 10A Control part 11 Character position detection part 12, 12A Mask correction part 13 Compositing part 31 Mask area | region PLM The upper left coordinate PRM of the mask area | region 31 The mask area | region 31 Lower right coordinate PLn Upper left coordinate PRn circumscribed rectangle Lower right coordinate of circumscribed rectangle PRn

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の境界位置は、
前記記憶部に記憶された前記画像データ内の前記文字の外接矩形における対角線上の頂点であることを特徴とする請求項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の境界領域の形状は、
四角形であることを特徴とする請求項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の境界領域の前記第1の境界位置は、
前記第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.
JP2011093674A 2011-04-20 2011-04-20 Image reading device Expired - Fee Related JP5789120B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6938318B2 (en) 2017-10-03 2021-09-22 キヤノン株式会社 Information processing equipment, information processing methods and programs

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