Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5904024B2 - Image reading device - Google Patents
[go: Go Back, main page]

JP5904024B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP5904024B2
JP5904024B2 JP2012133604A JP2012133604A JP5904024B2 JP 5904024 B2 JP5904024 B2 JP 5904024B2 JP 2012133604 A JP2012133604 A JP 2012133604A JP 2012133604 A JP2012133604 A JP 2012133604A JP 5904024 B2 JP5904024 B2 JP 5904024B2
Authority
JP
Japan
Prior art keywords
area
document
image
reading
value
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.)
Active
Application number
JP2012133604A
Other languages
Japanese (ja)
Other versions
JP2013258574A (en
Inventor
加藤 哲也
哲也 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2012133604A priority Critical patent/JP5904024B2/en
Publication of JP2013258574A publication Critical patent/JP2013258574A/en
Application granted granted Critical
Publication of JP5904024B2 publication Critical patent/JP5904024B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は,原稿を読み取る画像読取装置に関する。さらに詳細には,本などの綴じられた原稿を見開きの状態で読み取った場合には,読み取った原稿の画像データに画像処理を施す技術に関するものである。   The present invention relates to an image reading apparatus that reads a document. More specifically, the present invention relates to a technique for performing image processing on image data of a read original when the bound original such as a book is read in a spread state.

従来から,例えば特許文献1に開示されているように,原稿載置台に載置された原稿を読み取った際,その読み取った画像データのうち,濃度差が大きい箇所であるエッジ部分を抽出する技術が知られている。本文献では,4辺のエッジの一部のみしか抽出できなかった場合でも,抽出したエッジ部分に基づいて原稿の画像領域を推定できるとされている。   2. Description of the Related Art Conventionally, as disclosed in Patent Document 1, for example, when a document placed on a document placement table is read, an edge portion that is a portion having a large density difference is extracted from the read image data. It has been known. In this document, even if only a part of the four edges can be extracted, the image area of the document can be estimated based on the extracted edge portion.

また,画像読取装置が本などの綴じられた原稿を見開きの状態としたもの(以下,「見開き原稿」という)を読み取った場合,読み取った画像データでは,右側のページと左側のページとを繋ぐ綴じ部が黒い領域となることがある。画像の中央部に大きな黒領域があると,見栄えがよくない。これに対し,原稿の綴じ部に相当する黒領域を特定し,特定された領域の画像データを白色に変換する処理を行う技術も知られている。例えば,綴じ部に相当する黒領域の境界を前述のエッジ部分を抽出する技術によって特定し,特定された境界に基づいて黒領域を処理する技術がある。   Also, when the image reading device reads a book that has been bound into a book or the like (hereinafter referred to as a “page spread document”), the read image data connects the right page and the left page. The binding portion may be a black region. If there is a large black area in the center of the image, it will not look good. On the other hand, a technique is also known in which a black area corresponding to the binding portion of the document is specified, and image data in the specified area is converted to white. For example, there is a technique in which a black area boundary corresponding to a binding portion is specified by the technique for extracting the edge portion described above, and the black area is processed based on the specified boundary.

特開2008−35173号公報JP 2008-35173 A

しかしながら,前記した従来の技術には,次のような問題があった。すなわち,原稿によっては,綴じ部付近まで文字等の情報が記録されているものがある。一方,綴じ部の黒領域のサイズは,ユーザの原稿の押さえ方によって変化する。そのため,ユーザの原稿の押さえ方によっては,綴じ部付近の情報が綴じ部に含まれてしまうことがある。綴じ部に含まれた情報は画像処理によって喪失してしまうことから,読み取り後の画像データには原稿に含まれる情報の一部が欠けることになる。そのため,ユーザは原稿の内容を把握し難い。   However, the conventional technique described above has the following problems. That is, depending on the manuscript, information such as characters is recorded up to the vicinity of the binding portion. On the other hand, the size of the black area of the binding portion changes depending on how the user holds the document. Therefore, depending on how the user holds down the document, information near the binding portion may be included in the binding portion. Since the information included in the binding portion is lost by image processing, a part of the information included in the document is missing in the image data after reading. Therefore, it is difficult for the user to grasp the contents of the manuscript.

本発明は,前記した従来の技術が有する問題点を解決するためになされたものである。すなわちその課題とするところは,見開き原稿の読み取り後の画像データにおける情報の欠損を抑制する画像読取装置を提供することにある。   The present invention has been made to solve the above-described problems of the prior art. That is, an object of the present invention is to provide an image reading apparatus that suppresses information loss in image data after reading a spread original.

この課題の解決を目的としてなされた画像読取装置は,原稿の画像を読み取る読取部と,前記読取部が読み取った画像データから,各画素における濃度の勾配の値に対して原稿の領域の抽出に用いる第1閾値を境として,第1の値の画素と第2の値の画素とにより構成される第1エッジ画像を生成する第1生成部と,前記読取部が読み取った画像データから,各画素における濃度の勾配の値に対して第1閾値よりも濃度の勾配が緩やかな値である第2閾値を境として,第1の値の画素と第2の値の画素とにより構成される第2エッジ画像を生成する第2生成部と,前記第1エッジ画像から,前記第1の値である画素によって連続して囲まれる領域を原稿領域の範囲として決定する原稿範囲決定部と,前記第2エッジ画像から,前記原稿範囲決定部が決定した前記原稿領域内の,第2の値である画素により構成される領域のうち,面積が最も大きい領域を特定領域の範囲として決定する特定範囲決定部と,前記原稿領域と前記特定領域とを用いて,前記原稿領域の画像データに対して画像処理を行う画像処理部と,を備えることを特徴としている。   In order to solve this problem, an image reading apparatus includes a reading unit that reads an image of a document, and extracts a document region from the image data read by the reading unit with respect to the value of the density gradient in each pixel. From a first threshold value to be used as a boundary, a first generation unit that generates a first edge image composed of pixels having a first value and pixels having a second value, and image data read by the reading unit, A first value pixel and a second value pixel are defined with a second threshold value, which is a value whose density gradient is gentler than the first threshold value with respect to the density gradient value of the pixel. A second generation unit that generates a two-edge image; a document range determination unit that determines, from the first edge image, a region continuously surrounded by pixels having the first value as a range of a document region; From the two-edge image, the document range determination A specific range determining unit that determines a region having the largest area as a range of the specific region among the regions constituted by pixels of the second value in the original region determined by the copy unit, the original region and the specific region And an image processing unit that performs image processing on the image data of the document area using the area.

本明細書に開示される画像読取装置は,原稿の画像を読み取る読取部を有している。読取部が読み取る原稿としては,シート状の原稿であってもよいし,見開き原稿であってもよい。さらに,画像読取装置は,第1エッジ画像を生成する第1生成部と,第2エッジ画像を生成する第2生成部とを有している。第1生成部と第2生成部とは,各画素の濃度の勾配の値をそれぞれ異なる閾値を境に2値化して,それぞれのエッジ画像を生成する。なお,濃度の勾配の値は,各画素における近隣の画素に対する濃度差を指標する値であり,以下では,単に「濃度差値」という。濃度差値は,例えば,読み取った画像データをフィルタ処理することにより各画素について得られるものである。あるいは,濃度差値は,単に,各画素の濃度値と隣接する画素の濃度値との差であってもよい。   An image reading apparatus disclosed in this specification has a reading unit that reads an image of a document. The original read by the reading unit may be a sheet-like original or a spread original. The image reading apparatus further includes a first generation unit that generates a first edge image and a second generation unit that generates a second edge image. The first generation unit and the second generation unit binarize the density gradient value of each pixel with different thresholds as boundaries, and generate respective edge images. The value of the density gradient is a value indicating the density difference with respect to neighboring pixels in each pixel, and is simply referred to as “density difference value” below. The density difference value is obtained for each pixel by, for example, filtering the read image data. Alternatively, the density difference value may simply be the difference between the density value of each pixel and the density value of an adjacent pixel.

第1生成部において用いる第1閾値は,読取部が読み取った画像データから,原稿の領域の抽出に用いるのに適した値である。第1閾値は,原稿ページの外周によって生じるラインを抽出するための閾値であるとともに,紙面の凹凸による濃度差は抽出しない値であることが好ましい。一方,第2生成部において用いる第2閾値は,第1閾値より緩やかな勾配を抽出できる値である。第2閾値は,紙面の凹凸による濃度差をも抽出する値であることが好ましい。なお,閾値を境とする第1の値の画素とは,濃度差値が閾値より大きい画素であり,第2の値の画素とは,濃度差値が閾値以下の画素である。   The first threshold value used in the first generation unit is a value suitable for use in extracting a document area from image data read by the reading unit. The first threshold is preferably a threshold for extracting a line generated by the outer periphery of the document page, and a value that does not extract a density difference due to unevenness on the paper surface. On the other hand, the second threshold value used in the second generation unit is a value that can extract a gentler gradient than the first threshold value. The second threshold is preferably a value that also extracts a density difference due to unevenness on the paper surface. The first value pixel with the threshold as the boundary is a pixel whose density difference value is larger than the threshold value, and the second value pixel is a pixel whose density difference value is equal to or less than the threshold value.

さらに画像読取装置は,原稿範囲決定部と特定範囲決定部とを有している。原稿範囲決定部は,第1エッジ画像の第1の値の画素,すなわち,濃度差値が第1閾値より大の画素によって連続して囲まれる領域を原稿領域の範囲とする。例えば,原稿が見開き原稿であれば,2ページ分の画像を含む領域が原稿領域に決定される。原稿からの反射光によって画像データとして取得された領域の全体を原稿領域としてもよい。あるいは,原稿の領域全体から,他のページの端部の重なりによって,ページの両脇に暗部となって現れる領域を除いた領域を原稿領域としてもよい。また,原稿がシート状であれば,シート全体に対応する領域が原稿領域に決定される。   Further, the image reading apparatus has a document range determination unit and a specific range determination unit. The document range determination unit sets the range of the document region as a region that is continuously surrounded by pixels having the first value of the first edge image, that is, pixels having a density difference value larger than the first threshold value. For example, if the original is a two-page original, an area including two pages of images is determined as the original area. The entire area acquired as image data by reflected light from the original may be used as the original area. Alternatively, an area obtained by excluding an area appearing as a dark portion on both sides of a page due to overlapping of edge portions of other pages from the entire area of the original may be used as the original area. If the original is a sheet, an area corresponding to the entire sheet is determined as the original area.

特定範囲決定部は,原稿領域内であって,第2エッジ画像の第2の値の画素,すなわち,濃度差が第2閾値以下の画素が連続することにより構成される領域のうち,面積が最も大きい領域を特定領域の範囲に決定する。濃度差が第2閾値以下の画素は,近隣との濃度差が極めて小さい画素に相当する。例えば,見開き原稿の綴じ部を黒く読み取った領域は,端部の境界付近では徐々に濃度が変化するものの,影が写り込んだ中心部分では隣接画素との濃度差が殆どない。一方,原稿の紙面を読み取った領域では,原稿表面の凹凸の影響を受けて微小な濃度差が生じるため,ほとんどの画素の濃度差値が第2閾値より大きい。従って,特定範囲決定部は,見開き原稿を読み取った場合には,綴じ部の中心部分だけを特定領域として決定する。その結果,綴じ部の境界付近を特定領域の範囲外とすることができる。   The specific range determination unit has an area of the second region of the original region, that is, a region constituted by a series of pixels having a density difference equal to or smaller than the second threshold value in the second edge image. The largest area is determined as the range of the specific area. A pixel having a density difference equal to or smaller than the second threshold corresponds to a pixel having a very small density difference from the neighborhood. For example, in a region where the binding portion of a spread document is read in black, the density gradually changes near the boundary of the edge, but there is almost no density difference from the adjacent pixels in the central portion where the shadow is reflected. On the other hand, in the area where the document surface is read, a minute density difference is generated due to the unevenness of the document surface, so that the density difference value of most pixels is larger than the second threshold value. Therefore, the specific range determining unit determines only the center portion of the binding portion as the specific region when the spread original is read. As a result, the vicinity of the boundary of the binding portion can be outside the range of the specific area.

さらに,画像読取装置は,画像処理部を有している。画像処理部は,原稿範囲決定部によって決定された原稿領域と特定範囲決定部によって決定された特定領域とを用いて,原稿領域の範囲内の画像データを処理する。画像処理部は,画像処理として,例えば,原稿領域のうち特定領域以外の範囲の画像データを抽出する処理を行う。あるいは,画像処理部は,特定領域の範囲内の画像を白色や下地色に変換する処理をしてもよい。特定範囲決定部によって決定される特定領域には,綴じ部の境界付近が含まれないので,画像処理部は,綴じ部の境界付近の画像データを処理しない。従って,綴じ部の境界付近を含む綴じ部全体を画像処理する場合と比較して,原稿の情報が欠損する可能性は低い。   Furthermore, the image reading apparatus has an image processing unit. The image processing unit processes image data within the range of the document area using the document area determined by the document range determination unit and the specific area determined by the specific range determination unit. As the image processing, for example, the image processing unit performs a process of extracting image data in a range other than the specific area in the document area. Alternatively, the image processing unit may perform processing for converting an image within the specific area into white or a base color. Since the specific area determined by the specific range determination unit does not include the vicinity of the binding portion boundary, the image processing unit does not process the image data near the binding portion boundary. Therefore, the possibility that the document information is lost is lower than in the case where the entire binding portion including the vicinity of the boundary of the binding portion is subjected to image processing.

また,本明細書に開示される画像読取装置は,前記原稿領域と前記特定領域とから,前記原稿領域のうち抽出の対象となる抽出領域を決定する抽出領域決定部を備え,前記画像処理部は,前記読取部が読み取った画像データから前記抽出領域に対応する領域を抽出する処理を行ってもよい。   Further, the image reading device disclosed in the present specification includes an extraction region determination unit that determines an extraction region to be extracted from the document region from the document region and the specific region, and the image processing unit May perform a process of extracting an area corresponding to the extraction area from the image data read by the reading unit.

抽出領域決定部は,決定された原稿領域と特定領域とを使って,画像データのうちの抽出領域を決定する。抽出領域決定部は,例えば,画像データのうち,原稿領域に含まれ,特定領域に含まれない範囲を抽出領域とする。見開き原稿では,綴じ部の中心部分だけが特定領域として決定されているので,このようにすることにより原稿領域のうち綴じ部の中心部分を除いた範囲の画像データが得られる。さらに,見開き原稿では,特定領域によって原稿領域が分断されるので,各ページの画像データを抽出してもよい。このようにすれば,原稿の範囲に相当する画像データを残して,周辺部分が削除されるので,必要とされる部分のみのコンパクトな画像データを得ることができる。従って,原稿の種類や,ユーザによる原稿のセットされる向き等にかかわらず,文字の欠損等の可能性が少ない画像を抽出することができる。   The extraction area determination unit determines an extraction area in the image data using the determined document area and the specific area. For example, the extraction area determination unit sets a range included in the document area and not included in the specific area in the image data as the extraction area. In a spread document, only the central portion of the binding portion is determined as the specific region. Thus, image data in a range excluding the central portion of the binding portion in the original region is obtained. Further, in the spread document, the document area is divided by the specific area, so that image data of each page may be extracted. In this way, since the peripheral portion is deleted while leaving the image data corresponding to the range of the document, compact image data of only the required portion can be obtained. Therefore, it is possible to extract an image with a low possibility of character loss or the like regardless of the type of document and the orientation of the document set by the user.

また,本明細書に開示される画像読取装置は,前記第2エッジ画像中に前記特定領域に対応する領域が存在するか否かを判断する存在判断部を備え,前記抽出領域決定部は,前記存在判断部が前記特定領域に対応する領域が存在しないと判断した場合に,前記原稿領域を前記抽出領域に決定するとよい。   The image reading device disclosed in the present specification includes a presence determination unit that determines whether or not a region corresponding to the specific region exists in the second edge image, and the extraction region determination unit includes: When the presence determination unit determines that there is no area corresponding to the specific area, the document area may be determined as the extraction area.

存在判断部は,例えば,特定範囲決定部によって決定された特定領域の面積が,あらかじめ決めた限界面積以下である場合には,特定領域が存在しないと判断する。あるいは,存在判断部は,特定範囲決定部によって決定された特定領域の面積が,画像データ全体の面積に占める割合が,あらかじめ決めた限界割合以下である場合には,特定領域が存在しないと判断してもよい。存在判断部は,例えば,画像データ中に濃度差値が第2閾値以下の画素が多数集まっている領域がなければ,特定領域に対応する領域が存在しないと判断する。特定領域に対応する領域が存在しない場合には,画像処理部の処理範囲を原稿領域の範囲と同等とすることが好ましい。   For example, when the area of the specific region determined by the specific range determination unit is equal to or less than a predetermined limit area, the presence determination unit determines that the specific region does not exist. Alternatively, the presence determination unit determines that the specific region does not exist when the ratio of the area of the specific region determined by the specific range determination unit is equal to or less than a predetermined limit ratio. May be. For example, the presence determination unit determines that there is no region corresponding to the specific region if there is no region in the image data where many pixels having a density difference value equal to or smaller than the second threshold are gathered. When there is no area corresponding to the specific area, it is preferable that the processing range of the image processing unit is equal to the range of the document area.

また,本明細書に開示される画像読取装置は,前記特定領域に対応する領域が前記原稿領域の中央に位置するか否かを判断する位置判断部を備え,前記抽出領域決定部は,前記位置判断部にて前記特定領域に対応する領域が前記原稿領域の中央に位置しないと判断された場合に,前記原稿領域を前記抽出領域に決定するとよい。特定領域に対応する領域が原稿領域の中央に位置しない場合には,その特定領域が綴じ部ではなく,原稿が見開き原稿ではない可能性がある。見開き原稿ではない場合には,原稿領域をそのまま抽出領域に決定する方が好ましい。   The image reading apparatus disclosed in the present specification further includes a position determination unit that determines whether or not an area corresponding to the specific area is located in the center of the document area, and the extraction area determination unit includes When the position determination unit determines that the area corresponding to the specific area is not located at the center of the document area, the document area may be determined as the extraction area. If the area corresponding to the specific area is not located at the center of the document area, there is a possibility that the specific area is not a binding portion and the document is not a spread document. If it is not a double-page spread document, it is preferable to determine the document area as an extraction area as it is.

また,本明細書に開示される画像読取装置は,載置された前記原稿を前記読取部が読み取り可能な読取領域を有する原稿台と,前記読取領域の境界の一部を前記特定領域が構成しているか否かを判断する境界判断部を備え,前記抽出領域決定部は,前記位置判断部にて前記特定領域に対応する領域が前記原稿領域の中央に位置しないと判断され,かつ,前記境界判断部にて前記読取領域の境界の一部を前記特定領域が構成していると判断された場合に,前記原稿領域のうち前記特定領域以外の範囲を前記抽出領域に決定するとよい。   Further, the image reading device disclosed in the present specification includes a document table having a reading area where the reading unit can read the placed document, and the specific area constituting a part of the boundary of the reading area. A boundary determination unit that determines whether or not the extraction region determination unit determines that the region corresponding to the specific region is not located in the center of the document region by the position determination unit; and When the boundary determination unit determines that the specific area constitutes a part of the boundary of the reading area, a range other than the specific area in the document area may be determined as the extraction area.

特定領域に対応する領域が原稿領域の中央に位置しない場合でも,読取領域の境界の一部を特定領域が構成している場合には,見開き原稿の片方のページである可能性がある。例えば,ユーザが片方のページのみを原稿台に載置した場合には,特定領域の長手方向が読取領域の境界に沿って配置されることもある。従って,境界判断部によって,読取領域の境界の一部を特定領域が構成していると判断された場合には,特定領域を加味した抽出処理を行って原稿の情報が欠損する可能性を低くする方が望ましい。   Even if the area corresponding to the specific area is not located at the center of the original area, if the specific area constitutes a part of the boundary of the reading area, there is a possibility that it is one page of the spread original. For example, when the user places only one page on the document table, the longitudinal direction of the specific area may be arranged along the boundary of the reading area. Therefore, when the boundary determination unit determines that the specific area constitutes a part of the boundary of the reading area, it is less likely that the document information is lost by performing an extraction process taking the specific area into account. Is preferable.

また,本明細書に開示される画像読取装置は,前記読取部に所定の解像度で原稿を読み取らせる第1読取モードと,前記読取部に前記第1読取モードよりも低解像度で原稿を読み取らせる第2読取モードとを切り替える切替部を備え,前記読取部は,前記第2読取モードで原稿を読み取った後,前記第1読取モードで当該原稿を読み取り,前記第1生成部は,前記読取部が前記第2読取モードで読み取った画像データから前記第1エッジ画像を生成し,前記第2生成部は,前記読取部が前記第2読取モードで読み取った画像データから前記第2エッジ画像を生成し,前記画像処理部は,前記読取部が前記第1読取モードで読み取った画像データに対して前記画像処理を行うとよい。各エッジ画像の生成と加工処理とを分けて行うことにより,同時期の処理負荷を軽減することができる。   Further, the image reading apparatus disclosed in the present specification causes the reading unit to read a document at a predetermined resolution, and causes the reading unit to read a document at a lower resolution than the first reading mode. A switching unit that switches between the second reading mode, the reading unit reads the document in the first reading mode after reading the document in the second reading mode, and the first generation unit includes the reading unit; Generates the first edge image from the image data read in the second reading mode, and the second generation unit generates the second edge image from the image data read by the reading unit in the second reading mode. The image processing unit may perform the image processing on the image data read by the reading unit in the first reading mode. By separately generating and processing each edge image, the processing load at the same time can be reduced.

なお,前記第2閾値は,原稿の表面の凹凸による濃度の勾配の値を検知する値であるとよい。このようにすれば,第2エッジ画像は,原稿の下地部分をも含む。従って,綴じ部のように光が到達しないことによる暗部だけを適切に抽出することができる。   The second threshold value may be a value for detecting a value of density gradient due to unevenness on the surface of the document. In this way, the second edge image includes the background portion of the document. Therefore, it is possible to appropriately extract only the dark part due to the light not reaching like the binding part.

また,本明細書に開示される画像読取装置は,前記第1エッジ画像中で,前記原稿領域の一辺から内側へ所定幅以内の範囲内に,前記第1の値である画素が連続するエッジ線がある場合に,前記原稿領域の範囲を最も内側の前記エッジ線により構成される範囲に変更するとよい。原稿領域の一辺から内側へ所定幅以内の範囲内に,その一辺とほぼ平行にエッジ線が現れる場合には,他のページの端部によるエッジ線であると判定できる。つまり,エッジ線が現れる部分には,原稿の情報は含まれていないと判断してもよい。そこで,最も内側のエッジ線を原稿領域の境界とすることができる。   Further, the image reading apparatus disclosed in the present specification is configured such that the first edge image includes an edge in which pixels having the first value are continuous within a predetermined width from one side to the inside of the document area. When there is a line, the range of the document area may be changed to a range constituted by the innermost edge line. If an edge line appears in a range within a predetermined width from one side to the inside of the document area and substantially parallel to that side, it can be determined that the edge line is due to the edge of another page. That is, it may be determined that the portion where the edge line appears does not include document information. Therefore, the innermost edge line can be used as the boundary of the document area.

本発明によれば,見開き原稿の読み取り後の画像データにおける情報の欠損を抑制する画像読取装置が実現される。   According to the present invention, an image reading apparatus that suppresses information loss in image data after reading a spread original is realized.

実施の形態にかかるMFPのカバーを開いた状態の外観を示す斜視図である。FIG. 2 is a perspective view showing an external appearance of the MFP according to the embodiment with a cover opened. 図1に示したMFPの電気的構成を示すブロック図である。FIG. 2 is a block diagram showing an electrical configuration of the MFP shown in FIG. 1. 画像読取処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an image reading process. 画像読取処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an image reading process. (a)読み取り結果の画像の例,(b)(a)の1行の画像濃度値の例,(c)(b)の画素における濃度差値の例を示す説明図である。5A is an explanatory diagram illustrating an example of an image of a reading result, FIG. 5B is an explanatory diagram illustrating an example of an image density value of one line in FIG. 5A, and FIG. 第1エッジ画像の例を示す説明図である。It is explanatory drawing which shows the example of a 1st edge image. 第2エッジ画像の例を示す説明図である。It is explanatory drawing which shows the example of a 2nd edge image. 原稿領域の例を示す説明図である。It is explanatory drawing which shows the example of a document area | region. 原稿領域の例を示す説明図である。It is explanatory drawing which shows the example of a document area | region. 見開き原稿の片側を読み取った画像データの例を示す説明図である。It is explanatory drawing which shows the example of the image data which read one side of the facing original. 図10の第1エッジ画像の例を示す説明図である。It is explanatory drawing which shows the example of the 1st edge image of FIG. 図10の第2エッジ画像の例を示す説明図である。It is explanatory drawing which shows the example of the 2nd edge image of FIG.

以下,本発明にかかる画像読取装置を具体化した実施の形態について,添付図面を参照しつつ詳細に説明する。本形態は,画像読取機能および画像形成機能を備えた複合機(MFP:Multi Function Peripheral )に本発明を適用したものである。   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments embodying an image reading apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, the present invention is applied to a multi-function peripheral (MFP) having an image reading function and an image forming function.

[MFPの構成]
本形態のMFP100の外観を,図1に示す。MFP100は,用紙に画像を印刷する画像形成部1と,原稿の画像を読み取る画像読取部2(読取部の一例)とを備えている。画像形成部1は,図には現れていないが,画像読取部2の本体部10の下部に設けられている。画像形成部1の画像形成方式は,電子写真方式であっても,インクジェット方式であってもよい。また,カラー画像の形成が可能であっても,モノクロ画像専用であってもよい。
[MFP configuration]
An appearance of the MFP 100 according to this embodiment is shown in FIG. MFP 100 includes an image forming unit 1 that prints an image on a sheet, and an image reading unit 2 (an example of a reading unit) that reads an image of a document. Although not shown in the drawing, the image forming unit 1 is provided at the lower part of the main body 10 of the image reading unit 2. The image forming method of the image forming unit 1 may be an electrophotographic method or an ink jet method. Further, even if a color image can be formed, it may be dedicated to a monochrome image.

画像読取部2は,図1に示すように,画像の読み取りを行う本体部10と,カバー20とを備えている。カバー20は,本体部10の上方に位置するとともに一辺が本体部10と接続し,本体部10に対して回動自在に設けられている。なお,カバー20は,自動原稿供給装置(ADF:Auto Document Feeder)を備えていてもよい。   As shown in FIG. 1, the image reading unit 2 includes a main body unit 10 that reads an image and a cover 20. The cover 20 is positioned above the main body 10 and has one side connected to the main body 10 so as to be rotatable with respect to the main body 10. The cover 20 may include an automatic document feeder (ADF: Auto Document Feeder).

本体部10は,その上面に,コンタクトガラス11(原稿台の一例)を備えている。ユーザは,原稿の読み取りを実行する場合に,読み取り面を下向きにしてコンタクトガラス11の上に原稿を載置する。画像読取部2が読み取り可能な読取領域は,コンタクトガラス11の範囲内であって,後述するイメージセンサ15の可動範囲内である。あるいは,コンタクトガラス11の外周に沿って,読み取り不可能な領域が設けられている場合もある。その場合には,読み取り不可能な領域の内側の領域が,読取領域である。   The main body 10 includes a contact glass 11 (an example of a document table) on the upper surface thereof. When reading a document, the user places the document on the contact glass 11 with the reading surface facing downward. The reading area that can be read by the image reading unit 2 is within the range of the contact glass 11 and within the movable range of the image sensor 15 described later. Alternatively, an unreadable region may be provided along the outer periphery of the contact glass 11. In that case, the area inside the unreadable area is the reading area.

さらに,本体部10の内部であってコンタクトガラス11の下方には,原稿の画像を読み取るイメージセンサ15が設けられている。イメージセンサ15は,主走査方向に光学素子が一列に並んで配置されており,副走査方向に移動可能に設けられている。イメージセンサ15は,コンタクトガラス11に載置された原稿に向けて光を照射し,その原稿からの反射光を電気信号に変換して出力する。イメージセンサ15としては,例えば,CIS(Contact−Image−Sensor)やCCD(Charge−Coupled−Device)が適用可能である。   Further, an image sensor 15 that reads an image of a document is provided inside the main body 10 and below the contact glass 11. The image sensor 15 has optical elements arranged in a line in the main scanning direction, and is provided so as to be movable in the sub scanning direction. The image sensor 15 emits light toward the document placed on the contact glass 11, converts the reflected light from the document into an electrical signal, and outputs it. As the image sensor 15, for example, a contact-image-sensor (CIS) or a charge-coupled device (CCD) is applicable.

また,MFP100は,その前面側に,各種のボタン(例えば,スタートキー,ストップキー,テンキーの各ボタン)によって構成されるボタン群41,液晶ディスプレイからなる表示部42を備えた操作パネル40を備えている。このボタン群41や表示部42により,動作状況の表示やユーザによる操作の入力が可能になっている。   The MFP 100 further includes, on the front side thereof, an operation panel 40 including a button group 41 including various buttons (for example, buttons for a start key, a stop key, and a numeric keypad) and a display unit 42 including a liquid crystal display. ing. The button group 41 and the display unit 42 allow the operation status to be displayed and the operation input by the user to be performed.

[MFPの電気的構成]
続いて,MFP100の電気的構成について説明する。MFP100は,図2に示すように,CPU31と,ROM32と,RAM33と,NVRAM(Non Volatile RAM)34とを備えた制御部30を有している。制御部30は,画像形成部1と,画像読取部2と,操作パネル40と,ネットワークインターフェース37と,USBインターフェース38とに,電気的に接続している。
[Electric configuration of MFP]
Next, the electrical configuration of the MFP 100 will be described. As illustrated in FIG. 2, the MFP 100 includes a control unit 30 that includes a CPU 31, a ROM 32, a RAM 33, and an NVRAM (Non Volatile RAM) 34. The control unit 30 is electrically connected to the image forming unit 1, the image reading unit 2, the operation panel 40, the network interface 37, and the USB interface 38.

ROM32には,MFP100を制御するための各種制御プログラムや画像処理プログラム,各種設定,初期値等が記憶されている。さらにROM32には,後述する第1エッジ画像および第2エッジ画像を生成するための閾値を記憶する領域が確保され,第1閾値45と第2閾値46とが記憶されている。第1閾値45および第2閾値46は,MFP100の画像読取部2の性能や濃度差値を算出するためのフィルタの種類等に基づいて,あらかじめ決定されて記憶されている。また,ROM32には,特定領域を決定する閾値である限界面積47も記憶されている。   The ROM 32 stores various control programs and image processing programs for controlling the MFP 100, various settings, initial values, and the like. Further, the ROM 32 has an area for storing a threshold value for generating a first edge image and a second edge image, which will be described later, and stores a first threshold value 45 and a second threshold value 46. The first threshold 45 and the second threshold 46 are determined and stored in advance based on the performance of the image reading unit 2 of the MFP 100, the type of filter for calculating the density difference value, and the like. The ROM 32 also stores a limit area 47 that is a threshold for determining a specific area.

RAM33は,各種制御プログラムが読み出される作業領域として,あるいは画像読取部2で読み取った原稿の画像データやネットワークインターフェース37を介して送られてくる画像データを一時的に記憶する記憶領域として,利用される。RAM33は,後述する第1エッジ画像および第2エッジ画像を一時的に記憶する記憶領域としても利用される。NVRAM34は,不揮発性を有する記憶手段であって,各種設定等を保存する記憶領域として利用される。   The RAM 33 is used as a work area from which various control programs are read, or as a storage area for temporarily storing image data of a document read by the image reading unit 2 and image data sent via the network interface 37. The The RAM 33 is also used as a storage area for temporarily storing a first edge image and a second edge image, which will be described later. The NVRAM 34 is a non-volatile storage means and is used as a storage area for storing various settings.

CPU31(第1生成部,第2生成部,原稿範囲決定部,特定範囲決定部,画像処理部,抽出領域決定部,存在判断部,位置判断部,境界判断部,切替部の一例)は,MFP100における画像読取機能,画像形成機能等の各種機能を実現するための演算を実行し,制御の中枢となるものである。CPU31は,ROM32から読み出した制御プログラムに従って,その処理結果をRAM33またはNVRAM34に記憶させながら,MFP100の各構成要素を制御する。   CPU 31 (an example of a first generation unit, a second generation unit, a document range determination unit, a specific range determination unit, an image processing unit, an extraction region determination unit, a presence determination unit, a position determination unit, a boundary determination unit, and a switching unit) Calculations for realizing various functions such as an image reading function and an image forming function in the MFP 100 are executed and become the center of control. The CPU 31 controls each component of the MFP 100 according to the control program read from the ROM 32 while storing the processing result in the RAM 33 or the NVRAM 34.

また,CPU31は,例えば,ROM32から読み出した画像処理プログラムに従って,画像読取部2にて読み取った画像データに画像処理を施す。さらに,CPU31は,画像読取部2の読取解像度を切り替える。画像読取部2による画像読取モードには,読取解像度の異なる2種類のスキャンとして,本スキャンとプレスキャンとがある。本スキャンは,ユーザによって指示された解像度でのスキャンである。本スキャンは,第1読取モードに相当する。また,プレスキャンは,本スキャンより低解像度でのスキャンであり,第2読取モードに相当する。CPU31は,プレスキャンと本スキャンとのいずれかを選択して画像読取部2を動作させる。   Further, the CPU 31 performs image processing on the image data read by the image reading unit 2 in accordance with, for example, an image processing program read from the ROM 32. Further, the CPU 31 switches the reading resolution of the image reading unit 2. The image reading mode by the image reading unit 2 includes a main scan and a pre-scan as two types of scans having different reading resolutions. The main scan is a scan at a resolution designated by the user. The main scan corresponds to the first reading mode. The pre-scan is a scan at a lower resolution than the main scan and corresponds to the second reading mode. The CPU 31 selects either pre-scan or main scan and operates the image reading unit 2.

ネットワークインターフェース37は,ネットワークに接続される。MFP100は,このネットワークインターフェース37を介して他の情報処理装置(不図示。例えば,コンピュータ)とのデータ通信が可能になっている。また,USBインターフェース38は,USB接続が可能な周辺機器(不図示。例えば,フラッシュメモリ)に接続される。MFP100は,このUSBインターフェース38を介して外部の周辺機器等とデータ通信が可能になっている。   The network interface 37 is connected to the network. The MFP 100 can perform data communication with another information processing apparatus (not shown, for example, a computer) via the network interface 37. The USB interface 38 is connected to a peripheral device (not shown, for example, a flash memory) capable of USB connection. The MFP 100 can perform data communication with an external peripheral device or the like via the USB interface 38.

[ブックスキャンモード]
続いて,MFP100のブックスキャンモードについて,図3と図4のフローチャートを参照しつつ説明する。ブックスキャンモードは,見開き原稿の画像を画像読取部2に読み取らせ,画像読取部2が読み取った画像データから,原稿の情報が含まれている範囲が決定され,ページ毎の画像が形成されるモードである。さらにMFP100は,形成した画像を,ユーザの指示に従って出力する。
[Book Scan Mode]
Next, the book scan mode of the MFP 100 will be described with reference to the flowcharts of FIGS. In the book scan mode, an image of a spread original is read by the image reading unit 2, a range including document information is determined from image data read by the image reading unit 2, and an image for each page is formed. Mode. Further, MFP 100 outputs the formed image in accordance with a user instruction.

ユーザは,ブックスキャンモードの実行を指示する際には,カバー20を開放し,見開き原稿の読み取り面を下向きとしてコンタクトガラス11上にセットする。さらに,ユーザは,原稿を押さえつつ,ボタン群41のうちブックスキャンモードの読取開始を指示するボタンを押す。このボタンの押下が,ブックスキャンモードの実行の開始指示となる。   When instructing execution of the book scan mode, the user opens the cover 20 and sets it on the contact glass 11 with the reading surface of the spread original facing downward. Further, the user presses a button instructing to start reading in the book scan mode in the button group 41 while pressing the document. Pressing this button serves as an instruction to start execution of the book scan mode.

以下,ブックスキャンモードの実行の開始指示を受け付けたことを契機にCPU31によって実行されるブックスキャン読取処理について説明する。CPU31は,ブックスキャンモードの実行指示を受けると,まず,画像読取部2にプレスキャンを行わせる(図3のS101)。つまり,CPU31はS101において,画像読取部2に,ユーザによって指示されたスキャン解像度より低解像度での読み取りを行わせる。さらにCPU31は,S101で取得した画像データをRAM33に記憶させる。   Hereinafter, a book scan reading process executed by the CPU 31 when an instruction to start execution of the book scan mode is received will be described. When receiving an instruction to execute the book scan mode, the CPU 31 first causes the image reading unit 2 to perform prescan (S101 in FIG. 3). That is, in S101, the CPU 31 causes the image reading unit 2 to read at a lower resolution than the scan resolution instructed by the user. Further, the CPU 31 stores the image data acquired in S101 in the RAM 33.

プレスキャンで得られる画像データは,本スキャン,すなわちユーザによって指示されたスキャン解像度での読み取りで得られる画像データよりデータ量が少ない。従って,プレスキャンで得た画像データを利用して後述の処理を行うことにより,本スキャンデータを用いる場合に比較して,処理に要する時間が短縮される。   The image data obtained by the pre-scan has a smaller data amount than the image data obtained by the main scan, that is, reading at the scan resolution specified by the user. Therefore, by performing the process described later using image data obtained by pre-scanning, the time required for the process is shortened compared to the case of using the main scan data.

見開き原稿を読み取った場合の画像データの例を図5の(a)に示す。S101において得られた画像データ51は,2ページ分のページ領域53,54とそれらの間の暗部55,さらに両ページの外側にできる他ページの端部による暗部56,57を含む。ただし,この段階では,ページ領域53と暗部55との境界及びページ領域54と暗部55との境界は明確なものではない。なお,画像データ51は,原稿のサイズや原稿のコンタクトガラス11上での載置位置によって,図5の(a)に示した範囲より外周側にさらに暗部等を含む場合もある。   FIG. 5A shows an example of image data when a facing document is read. The image data 51 obtained in S101 includes page areas 53 and 54 for two pages, a dark portion 55 between them, and dark portions 56 and 57 due to the ends of other pages formed outside both pages. However, at this stage, the boundary between the page area 53 and the dark part 55 and the boundary between the page area 54 and the dark part 55 are not clear. Note that the image data 51 may further include a dark portion or the like on the outer peripheral side from the range shown in FIG. 5A depending on the size of the document and the placement position of the document on the contact glass 11.

図5に示した例では,画像データ51のうち,図5(a)中に一点鎖線で示した注目列の画素の画像濃度は,例えば図5(b)に示すような形状となる。図5(b)中では,イメージセンサ15による受光量が大きい画素ほど,より上方にプロットされる。つまり,図5(b)中で上方の画素ほど濃度が高い画素であり,下方ほど濃度が低い画素である。つまり,印刷文字と印刷文字との間の紙面を読み取った画素は全体的に白く濃度が高い画素であり,印刷文字の箇所では黒く濃度が低い画素が現れている。ただし,原稿の下地部分や印刷部分にも,原稿の表面の凹凸等があるため,画像データの値はかなりばらついている。   In the example shown in FIG. 5, the image density of the pixel in the target column indicated by the alternate long and short dash line in FIG. 5A in the image data 51 has a shape as shown in FIG. 5B, for example. In FIG. 5 (b), the pixels with a larger amount of light received by the image sensor 15 are plotted higher. That is, in FIG. 5B, the upper pixel is a higher density pixel, and the lower pixel is a lower density pixel. That is, the pixels that read the paper surface between the printed characters are pixels that are generally white and have a high density, and pixels that are dark and have a low density appear at the printed characters. However, the values of the image data vary considerably because there are irregularities on the surface of the document in the background portion and the print portion of the document.

続いてCPU31は,S101において読み取った画像データ51にフィルタ処理を施し,各画素の濃度差値を得る(図3のS102)。S102において,CPU31は,各画素について,その周辺の画素の画像濃度に方向性に応じた重み付けをするフィルタをかけて2乗和をとる。S102の結果得られる各画素の濃度差値は,周辺画素からの濃度の勾配を指標する値であり,勾配が急峻である画素ほど,大きい値となる。   Subsequently, the CPU 31 performs a filtering process on the image data 51 read in S101 to obtain a density difference value of each pixel (S102 in FIG. 3). In S102, the CPU 31 calculates a sum of squares for each pixel by applying a filter that weights the image density of the surrounding pixels according to the directionality. The density difference value of each pixel obtained as a result of S102 is a value indicating the gradient of density from the surrounding pixels, and a pixel having a steeper gradient has a larger value.

例えば,図5(a)の画像データにフィルタ処理をした結果のうち,前述の注目列の各画素の濃度差値は,図5(c)に示すようになる。図5(c)で横軸は,濃度差値が0の画素であり,近隣の画素との濃度差が全くない画素である。印刷文字と下地との境目の画素は,近隣との濃度差が大きいので,図5(c)中で突出した値となって現れる。一方,原稿の下地部分の濃度差値は,前述の境目の画素ほど大きくはないが0よりは大きい値であり,図5(c)中に範囲Dで示すように,一定の範囲内でばらついた値である。   For example, among the results of filtering the image data of FIG. 5A, the density difference value of each pixel in the target column is as shown in FIG. 5C. In FIG. 5C, the horizontal axis is a pixel having a density difference value of 0, and is a pixel having no density difference from neighboring pixels. The pixel at the boundary between the printed character and the background has a large density difference from the neighborhood, and thus appears as a protruding value in FIG. On the other hand, the density difference value of the background portion of the document is not as large as the pixel at the boundary described above, but is a value larger than 0, and varies within a certain range as indicated by a range D in FIG. Value.

そして,原稿の綴じ部に起因する暗部55は,色むらがほとんど無く,図5(b)に示したようにばらつきのほとんど無い影画像である。つまり,暗部55では,近隣の画素との濃度差が極めて小さい。そのため,暗部55に含まれる画素の濃度差値は,図5(c)に示したように,ほぼ0である。原稿の領域内においては,暗部55以外の箇所で,濃度差値が極めて小さい画素が集まっていることはほとんどない。   The dark portion 55 resulting from the binding portion of the document is a shadow image with almost no color unevenness and almost no variation as shown in FIG. That is, in the dark part 55, the density difference with the neighboring pixels is extremely small. For this reason, the density difference value of the pixels included in the dark portion 55 is almost 0 as shown in FIG. In the document area, pixels with extremely small density difference values are rarely gathered at locations other than the dark portion 55.

次に,CPU31は,ROM32から第1閾値45と第2閾値46(図2参照)を読み出す(図3のS103)。第1閾値45と第2閾値46は,図3のS102にてCPU31が算出した濃度差値(例えば,図5(c))を2値化するための閾値である。第1閾値45と第2閾値46は,MFP100の出荷前にあらかじめ決められ,ROM32に記憶されている。   Next, the CPU 31 reads the first threshold value 45 and the second threshold value 46 (see FIG. 2) from the ROM 32 (S103 in FIG. 3). The first threshold value 45 and the second threshold value 46 are threshold values for binarizing the density difference value (for example, FIG. 5C) calculated by the CPU 31 in S102 of FIG. The first threshold 45 and the second threshold 46 are determined in advance before shipment of the MFP 100 and are stored in the ROM 32.

第1閾値45は,図5(c)に示したように,下地部分の濃度差値である範囲Dの上限よりも大きい値である。従って,CPU31は,第1閾値45を用いて,原稿の外周に相当するラインや,文字の外枠を抽出することができる。一方,第2閾値46は,第1閾値45よりも小さい値である。第2閾値46は,図5(c)に示したように,下地部分の濃度差値である範囲Dの下限と同程度かそれ以下の値である。なお,CPU31は,S103を,S101より先に実行してもよいし,S101とS102の間に実行してもよいし,S101やS102と並行して実行してもよい。   As shown in FIG. 5C, the first threshold 45 is a value larger than the upper limit of the range D that is the density difference value of the background portion. Therefore, the CPU 31 can use the first threshold value 45 to extract a line corresponding to the outer periphery of the document and an outer frame of characters. On the other hand, the second threshold value 46 is a value smaller than the first threshold value 45. As shown in FIG. 5C, the second threshold value 46 is a value that is equal to or less than the lower limit of the range D that is the density difference value of the background portion. The CPU 31 may execute S103 before S101, may be executed between S101 and S102, or may be executed in parallel with S101 and S102.

次に,CPU31は,図3のS103で読み出した第1閾値45を用いて,S102で得られた濃度差値を2値化することにより,第1エッジ画像を生成する(S105)。画像データ51の第1エッジ画像61の例を図6に示す。図6は,第1閾値45より大きい濃度差値を有する画素が連続して現れることによるエッジ線を,破線で表したものである。ただし,図中で小さい英大文字は,見やすさのために実線で示した。ここにおいて,CPU31は,第1生成部として機能する。   Next, the CPU 31 generates a first edge image by binarizing the density difference value obtained in S102 using the first threshold value 45 read in S103 of FIG. 3 (S105). An example of the first edge image 61 of the image data 51 is shown in FIG. FIG. 6 shows an edge line represented by a broken line due to successive appearance of pixels having density difference values larger than the first threshold 45. However, small capital letters in the figure are shown as solid lines for ease of viewing. Here, the CPU 31 functions as a first generation unit.

図5(c)に示したように,第1閾値45は,範囲Dの上限より大きい値である。従って,図6に示したように,図3のS105で得られる第1エッジ画像61は,画像データ51からページ枠や文字の輪郭枠をエッジ線として抽出した画像である。一方,ページとページとの間の暗部55(図5(a)参照)のように,徐々に濃度が変化する箇所では,近隣画素との濃度差が中程度であり,濃度差値が第1閾値45を下回ることがある。図6に示した例では,暗部55の範囲を大きく含んだエッジ線だけが,抽出されている。S105の後,CPU31は,生成した第1エッジ画像61をRAM33に保存する(S106)。   As shown in FIG. 5C, the first threshold 45 is a value larger than the upper limit of the range D. Therefore, as shown in FIG. 6, the first edge image 61 obtained in S <b> 105 of FIG. 3 is an image obtained by extracting a page frame and a character outline frame as edge lines from the image data 51. On the other hand, in a portion where the density gradually changes, such as a dark portion 55 (see FIG. 5A) between pages, the density difference from neighboring pixels is medium, and the density difference value is the first. May fall below threshold 45. In the example shown in FIG. 6, only the edge line that largely includes the range of the dark part 55 is extracted. After S105, the CPU 31 stores the generated first edge image 61 in the RAM 33 (S106).

また,CPU31は,図3のS105〜S106と並行して,第2エッジ画像の生成も行う。つまり,CPU31は,S103で読み出した第2閾値46を用いて,S102で得られた濃度差値を2値化することにより,第2エッジ画像63を生成する(S108)。画像データ51の第2エッジ画像63の例を図7に示す。図7は,濃度差値が第2閾値46より大きい画素を黒く表したものである。ここにおいて,CPU31は,第2生成部として機能する。   The CPU 31 also generates a second edge image in parallel with S105 to S106 in FIG. That is, the CPU 31 generates the second edge image 63 by binarizing the density difference value obtained in S102 using the second threshold value 46 read in S103 (S108). An example of the second edge image 63 of the image data 51 is shown in FIG. FIG. 7 shows pixels whose density difference value is larger than the second threshold value 46 in black. Here, the CPU 31 functions as a second generation unit.

図5(c)に示したように,第2閾値46は,範囲Dの下限以下の値である。従って,下地部分を含むほとんどの画素の濃度差値が第2閾値46より大きい。そのため,図7に示すように,図3のS108で得られる第2エッジ画像63では,ほとんどの画素が黒で表される。図7中に白く現れているのは,画像データ51のうち近隣の画素との濃度差がほとんど無い箇所だけである。   As shown in FIG. 5C, the second threshold value 46 is a value equal to or lower than the lower limit of the range D. Accordingly, the density difference value of most pixels including the background portion is larger than the second threshold value 46. Therefore, as shown in FIG. 7, in the second edge image 63 obtained in S108 of FIG. 3, most pixels are represented in black. In FIG. 7, white portions appear only in the portions of the image data 51 where there is almost no density difference from neighboring pixels.

つまり,第2エッジ画像63においてまとまって白く現れる範囲は,暗部55の中央部の濃度差がほとんど無い範囲だけである。下地部分には,濃度差値が範囲Dを下回る画素がわずかに現れることがあるが,まとまって現れることはない。濃度差値が範囲Dを下回る画素は,図7中では,白四角で示されている。S108の後,CPU31は,第2エッジ画像63をRAM33に保存する(S109)。   That is, the range that appears white in the second edge image 63 is only the range in which there is almost no density difference in the central portion of the dark portion 55. In the background portion, pixels with density difference values below the range D may appear slightly, but they do not appear together. Pixels whose density difference values are below the range D are indicated by white squares in FIG. After S108, the CPU 31 stores the second edge image 63 in the RAM 33 (S109).

図3のS106とS109とが終了した後,CPU31は,第1エッジ画像61のエッジ線に基づいて原稿領域の範囲を決定する(S111)。CPU31は具体的には,図8に示すように,第1エッジ画像61に現れたエッジ線で囲まれる領域のうち最も外側の範囲を原稿領域66と決定する。原稿領域66は,原稿による反射光を受光することによってできた画像データの範囲をすべて含む。   After S106 and S109 in FIG. 3 are completed, the CPU 31 determines the range of the document area based on the edge line of the first edge image 61 (S111). Specifically, as shown in FIG. 8, the CPU 31 determines the document area 66 as the outermost area among the areas surrounded by the edge lines appearing in the first edge image 61. The document area 66 includes the entire range of image data generated by receiving reflected light from the document.

CPU31はさらに,原稿領域66の内側に,その境界をなす一辺に平行なエッジ線が境界から所定幅以内の範囲にある場合には,原稿領域66を,平行なエッジ線のうち最も内側のエッジ線により構成される範囲にしてもよい。例えば,平行なエッジ線のうち最も内側のエッジ線により構成される範囲を原稿領域66と決定したり,第1エッジ画像61に現れたエッジ線で囲まれる領域のうち最も外側の範囲を,平行なエッジ線のうち最も内側のエッジ線により構成される範囲に変更したりする。   Further, when the edge line parallel to one side forming the boundary is within the predetermined width from the boundary, the CPU 31 sets the document area 66 as the innermost edge of the parallel edge lines. You may make it the range comprised with a line. For example, the range constituted by the innermost edge lines among the parallel edge lines is determined as the document area 66, or the outermost area among the areas surrounded by the edge lines appearing in the first edge image 61 is set as the parallel Or change to a range constituted by the innermost edge line.

平行なエッジ線とは,原稿領域66の境界をなす一辺と少なくとも一部が平行であって,原稿領域の当該一辺に交わる二辺の一方の辺から他方の辺まで至るエッジ線である。これにより,原稿領域66は,図9に示す範囲に変更される。なお,原稿領域とは,原稿のうちユーザが視認する文字や画像がある領域である。   The parallel edge line is an edge line that extends from one side of two sides that intersect at least a part of one side forming the boundary of the document region 66 to the other side. As a result, the document area 66 is changed to the range shown in FIG. Note that the document area is an area of the document where characters and images that the user can visually recognize.

S111において決定される原稿領域66は,両側のページのページ領域53,54をともに含む最小の矩形領域である。原稿領域66には,画像データ51のうち,ページ領域53,54とそれらの間の暗部55とが含まれる。ここにおいて,CPU31は,原稿範囲決定部として機能する。   The document area 66 determined in S111 is a minimum rectangular area including both the page areas 53 and 54 of the pages on both sides. The document area 66 includes page areas 53 and 54 of the image data 51 and a dark portion 55 between them. Here, the CPU 31 functions as a document range determination unit.

次に,CPU31は,図3のS111において決定された原稿領域66内で,第2エッジ画像63に基づいて特定領域を決定する(S113)。CPU31は,第2エッジ画像63中で,濃度差の小さい画素が連続することによって構成されている領域のうち,面積が最も大きい領域を,特定領域の範囲に決定する。図7の例では,CPU31は,暗部55の中央部による白領域の範囲を特定領域64に決定する。ここにおいて,CPU31は,特定範囲決定部として機能する。   Next, the CPU 31 determines a specific area based on the second edge image 63 in the document area 66 determined in S111 of FIG. 3 (S113). In the second edge image 63, the CPU 31 determines a region having the largest area as a range of the specific region among regions formed by successive pixels with small density differences. In the example of FIG. 7, the CPU 31 determines the range of the white area at the center of the dark part 55 as the specific area 64. Here, the CPU 31 functions as a specific range determining unit.

ただし,CPU31は,面積が小さすぎる領域を特定領域の範囲に決定することはない。つまり,濃度差の小さい画素が連続する領域の面積がいずれも,ROM32に記憶されている限界面積47より小さい場合には,CPU31は,特定領域が存在しないと判断する。例えば,原稿が見開き原稿ではなく,単なるシートであった場合には,綴じ部がない。そのため,ページ領域内の白四角部分を特定領域と判断することを回避するため,面積が小さすぎる領域を特定領域の判定対象外とする。CPU31は,特定領域が存在しないと判断した場合には,特定領域64を記憶する領域に特定領域が存在しないことを示す情報を入力する。   However, the CPU 31 does not determine a region whose area is too small as the range of the specific region. In other words, if the area of the region where pixels having a small density difference are continuous is smaller than the limit area 47 stored in the ROM 32, the CPU 31 determines that the specific region does not exist. For example, when the document is not a spread document but a simple sheet, there is no binding portion. Therefore, in order to avoid determining the white square portion in the page area as the specific area, the area having an area that is too small is excluded from the determination target of the specific area. When the CPU 31 determines that the specific area does not exist, the CPU 31 inputs information indicating that the specific area does not exist in the area where the specific area 64 is stored.

そして,CPU31は,図3のS111で決定した原稿領域66と,S113で決定した特定領域64とに基づいて,画像データ51の画像処理を行う(S115)。画像処理の内容については後述する。   Then, the CPU 31 performs image processing of the image data 51 based on the document area 66 determined in S111 of FIG. 3 and the specific area 64 determined in S113 (S115). Details of the image processing will be described later.

図3のS115の後,CPU31は,画像処理後の画像データをユーザの指示に基づいて出力する(S117)。例えば,CPU31は,画像形成部1に画像データを印刷させる。または,CPU31は,ユーザの指示に従って,画像データをファイル化して対象機器に送信してもよい。CPU31は,例えばネットワークインターフェース37を介して他の情報処理装置に画像データを送信させる。あるいは,CPU31は,USBインターフェース38を介して接続するフラッシュメモリ(不図示)等の記憶手段に画像データを記憶させてもよい。これで,ブックスキャン読取処理は終了する。   After S115 in FIG. 3, the CPU 31 outputs the image data after the image processing based on a user instruction (S117). For example, the CPU 31 causes the image forming unit 1 to print image data. Alternatively, the CPU 31 may convert the image data into a file and send it to the target device in accordance with a user instruction. The CPU 31 causes the image data to be transmitted to another information processing apparatus via the network interface 37, for example. Alternatively, the CPU 31 may store image data in storage means such as a flash memory (not shown) connected via the USB interface 38. This completes the book scan reading process.

[画像処理]
次に,ブックスキャン読取処理中の図3のS115において実行される画像処理の内容について,図4のフローチャートを参照しつつ説明する。
[Image processing]
Next, the contents of the image processing executed in S115 of FIG. 3 during the book scan reading process will be described with reference to the flowchart of FIG.

まず,CPU31は,図3のS113において特定領域が決定されたか否かを判断する(図4のS201)。図3のS113において特定領域64が決定されなかった場合は,RAM33の特定領域64を記憶する領域には,特定領域が存在しないことを示す情報が入力されている。RAM33に特定領域が存在しないことを示す情報が入力されていれば,CPU31は,画像データ51には特定領域がないと判断する(S201:No)。さもなければ,CPU31は,特定領域64が決定されていると判断する(S201:Yes)。   First, the CPU 31 determines whether or not a specific area has been determined in S113 of FIG. 3 (S201 of FIG. 4). When the specific area 64 is not determined in S113 of FIG. 3, information indicating that the specific area does not exist is input to the area storing the specific area 64 of the RAM 33. If the information indicating that the specific area does not exist is input to the RAM 33, the CPU 31 determines that the image data 51 does not have the specific area (S201: No). Otherwise, the CPU 31 determines that the specific area 64 has been determined (S201: Yes).

特定領域がない場合は(S201:No),例えば,原稿が見開き原稿ではなく,シート状の原稿の場合である。原稿がシート状である場合には,綴じ部は存在せず,画像データ51のうち原稿領域66の全体が,出力すべき画像データの範囲である。そこで,CPU31は,抽出の対象となる抽出領域を,原稿領域66に決定する(S203)。ここにおいて,CPU31は,抽出領域決定部として機能する。   When there is no specific area (S201: No), for example, the original is not a spread original but a sheet-like original. When the document is in a sheet form, the binding portion does not exist, and the entire document area 66 in the image data 51 is the range of the image data to be output. Therefore, the CPU 31 determines the extraction area to be extracted as the document area 66 (S203). Here, the CPU 31 functions as an extraction region determination unit.

次に,CPU31は,画像読取部2に本スキャンを行わせる(S205)。そして,CPU31は,本スキャンによって得られた画像データのうち,S203で決定した抽出領域に対応する範囲の画像データを抽出し,これを出力用の画像データとしてRAM33に記憶させる(S206)。CPU31は,S206の後,画像処理を終了し,図3に戻ってS117へ進む。   Next, the CPU 31 causes the image reading unit 2 to perform a main scan (S205). Then, the CPU 31 extracts image data in a range corresponding to the extraction area determined in S203 from the image data obtained by the main scan, and stores it in the RAM 33 as output image data (S206). After S206, the CPU 31 ends the image processing, returns to FIG. 3, and proceeds to S117.

一方,図4のS201の説明に戻って,CPU31が,第2エッジ画像63に特定領域があると判断した場合は(S201:Yes),特定領域64を綴じ部と見なせるか否かを判断する。そのために,CPU31は,特定領域64が原稿領域66の中央付近にあるか否かを判断する(S210)。ここにおいて,CPU31は,位置判断部として機能する。   On the other hand, returning to the description of S201 in FIG. 4, if the CPU 31 determines that the second edge image 63 has a specific area (S201: Yes), it determines whether the specific area 64 can be regarded as a binding portion. . Therefore, the CPU 31 determines whether or not the specific area 64 is near the center of the document area 66 (S210). Here, the CPU 31 functions as a position determination unit.

図4のS210において,CPU31は,例えば,原稿領域66の中央に相当する画素を含むあらかじめ決めた大きさの範囲内に,特定領域64の一部が含まれるか否かを判断する。またあるいは,CPU31は,特定領域64が,原稿領域66を2つに分断する配置であるか否かをも判断するとよい。つまり,特定領域64の配置が原稿領域66の綴じ部に相当すると見なせる場合には,CPU31は,原稿領域66から特定領域64を除く範囲が情報を含む画像範囲であると判断する。   In S210 of FIG. 4, the CPU 31 determines whether or not a part of the specific area 64 is included within a predetermined size range including a pixel corresponding to the center of the document area 66, for example. Alternatively, the CPU 31 may also determine whether or not the specific area 64 is arranged to divide the document area 66 into two. That is, when it can be considered that the arrangement of the specific area 64 corresponds to the binding portion of the document area 66, the CPU 31 determines that the range excluding the specific area 64 from the document area 66 is an image range including information.

そこで,CPU31は,図4のS210において,特定領域64が原稿領域66の中央部であると判断した場合には(S210:Yes),特定領域64を綴じ部と見なす。特定領域64を綴じ部と見なす場合には,CPU31は,抽出領域を,原稿領域66のうち特定領域64を除いた範囲に決定する(S213)。ここにおいて,CPU31は,抽出領域決定部として機能する。   Therefore, when the CPU 31 determines in S210 of FIG. 4 that the specific area 64 is the center of the document area 66 (S210: Yes), the CPU 31 regards the specific area 64 as a binding portion. When the specific area 64 is regarded as the binding portion, the CPU 31 determines the extraction area as a range excluding the specific area 64 in the document area 66 (S213). Here, the CPU 31 functions as an extraction region determination unit.

次に,CPU31は,画像読取部2に本スキャンを行わせる(図4のS215)。そして,CPU31は,本スキャンによって得られた画像データのうち,S213で決定した抽出領域に対応する範囲の画像データを抽出し,これを出力用の画像データとしてRAM33に記憶させる(S216)。   Next, the CPU 31 causes the image reading unit 2 to perform a main scan (S215 in FIG. 4). Then, the CPU 31 extracts image data in a range corresponding to the extraction area determined in S213 from the image data obtained by the main scan, and stores it in the RAM 33 as output image data (S216).

図4のS213で抽出される抽出領域は,図6に示した原稿領域66から,図7に示した特定領域64を除いた範囲である。つまり,抽出領域は,原稿領域66が特定領域64により2つに分割された計2ページ分の領域である。そこで,CPU31は,これらの2つの領域をそれぞれ別の画像データとして扱うことができる。具体的には,CPU31は,各ページに対応する2つの画像データを抽出する。   The extraction area extracted in S213 of FIG. 4 is a range obtained by excluding the specific area 64 shown in FIG. 7 from the document area 66 shown in FIG. That is, the extraction area is an area corresponding to two pages in which the document area 66 is divided into two by the specific area 64. Therefore, the CPU 31 can handle these two areas as different image data. Specifically, the CPU 31 extracts two image data corresponding to each page.

前述のように,特定領域64には,暗部の中央部の極めて暗い部分のみが含まれている。従って,例えば図6に文字「J」で示したように,暗部とページ領域との境目に情報が存在しても,その情報が失われることはない。S216の後,CPU31は,画像処理を終了し,図3に戻ってS117へ進む。   As described above, the specific region 64 includes only a very dark portion at the center of the dark portion. Therefore, for example, as indicated by the letter “J” in FIG. 6, even if information exists at the boundary between the dark part and the page area, the information is not lost. After S216, the CPU 31 ends the image processing, returns to FIG. 3, and proceeds to S117.

一方,図4のS210の説明に戻って,CPU31が,特定領域64が原稿領域66の中央部でないと判断した場合には(S210:No),その特定領域64の配置をさらに詳細に確認する。具体的には,CPU31は,特定領域64が,画像読取部2の読み取り可能な範囲の境界である読取枠に掛かっているか否かを判断する。すなわち,CPU31は,特定領域64が画像データ51のうち最も外側の画素の一部を含むか否かを判断する(S220)。ここにおいて,CPU31は,境界判断部として機能する。   On the other hand, returning to the description of S210 in FIG. 4, when the CPU 31 determines that the specific area 64 is not the central portion of the document area 66 (S210: No), the arrangement of the specific area 64 is confirmed in more detail. . Specifically, the CPU 31 determines whether or not the specific area 64 is on a reading frame that is a boundary of a readable range of the image reading unit 2. That is, the CPU 31 determines whether or not the specific area 64 includes a part of the outermost pixel in the image data 51 (S220). Here, the CPU 31 functions as a boundary determination unit.

本形態において,画像読取部2の読み取り可能な範囲は,コンタクトガラス11の範囲である。ユーザが,見開き原稿のうちの1ページのみを読み取るように原稿をセットすると,コンタクトガラス11の縁辺に沿って綴じ部が配置されることがある。コンタクトガラス11の縁辺に沿って綴じ部が配置された場合には,図10に示すような画像データが得られる。図10の画像データに基づいて生成される,第1エッジ画像の例を図11に示す。さらに,図10の画像データに基づいて生成される,第2エッジ画像の例を図12に示す。   In this embodiment, the readable range of the image reading unit 2 is the range of the contact glass 11. When the user sets the original so that only one page of the two-page spread original is read, a binding portion may be arranged along the edge of the contact glass 11. When the binding portion is arranged along the edge of the contact glass 11, image data as shown in FIG. 10 is obtained. An example of the first edge image generated based on the image data of FIG. 10 is shown in FIG. Further, FIG. 12 shows an example of the second edge image generated based on the image data of FIG.

図10〜図12に示した例では,特定領域64が原稿領域66の中央部ではないけれども,CPU31は,特定領域64を綴じ部と判断して除去することが望ましい。そこで特定領域64を綴じ部と判断して除去することが望ましい場合には例えば,CPU31は,特定領域64の長手方向が,読取枠の縁辺に沿っているか否かをも確認するとよい。そして,CPU31は,特定領域64の形状と配置に基づいて,特定領域64を綴じ部と判断するか否かを決定する。   In the example shown in FIGS. 10 to 12, although the specific area 64 is not the central portion of the document area 66, the CPU 31 determines that the specific area 64 is a binding portion and removes it. Therefore, if it is desirable to determine and remove the specific area 64 as a binding portion, for example, the CPU 31 may confirm whether or not the longitudinal direction of the specific area 64 is along the edge of the reading frame. Then, the CPU 31 determines whether or not to determine the specific area 64 as a binding portion based on the shape and arrangement of the specific area 64.

そして,CPU31は,図4のS220において特定領域64が読取枠に掛かっていると判断した場合には(S220:Yes),CPU31は,抽出領域を,原稿領域66のうち特定領域64を除いた範囲に決定する(S223)。ここにおいて,CPU31は,抽出領域決定部として機能する。   When the CPU 31 determines that the specific area 64 is in the reading frame in S220 of FIG. 4 (S220: Yes), the CPU 31 excludes the specific area 64 from the original area 66. The range is determined (S223). Here, the CPU 31 functions as an extraction region determination unit.

次に,CPU31は,画像読取部2に本スキャンを行わせる(S225)。そして,CPU31は,本スキャンによって得られた画像データのうち,S223で決定した抽出領域に対応する範囲の画像データを抽出し,これを出力用の画像データとしてRAM33に記憶させる(S226)。S226の後,CPU31は,画像処理を終了し,図3に戻ってS117へ進む。   Next, the CPU 31 causes the image reading unit 2 to perform a main scan (S225). Then, the CPU 31 extracts image data in a range corresponding to the extraction area determined in S223 from the image data obtained by the main scan, and stores it in the RAM 33 as output image data (S226). After S226, the CPU 31 ends the image processing, returns to FIG. 3, and proceeds to S117.

CPU31は,図4のS220において特定領域64が読取枠に掛かっていないと判断した場合には(S220:No),特定領域がない場合(S201:No)と同様に,抽出領域を,特定領域64を含んだ原稿領域66の全体の範囲に決定する(S203)。特定領域64が読取枠に掛かっていない場合には,特定領域64が画像の一部である可能性が高い。そこで,CPU31は,画像データ51のうち原稿領域66の全体を出力すべき画像データの範囲であると判断する。そこで,前述のS205とS206を実行して,画像処理を終了し,図3に戻ってS117へ進む。   If the CPU 31 determines in S220 in FIG. 4 that the specific area 64 is not on the reading frame (S220: No), the CPU 31 selects the extraction area as the specific area as in the case where there is no specific area (S201: No). The entire range of the document area 66 including 64 is determined (S203). When the specific area 64 is not on the reading frame, the possibility that the specific area 64 is a part of the image is high. Therefore, the CPU 31 determines that the entire document area 66 of the image data 51 is within the range of image data to be output. Therefore, the above-described S205 and S206 are executed to finish the image processing, and the process returns to FIG. 3 and proceeds to S117.

以上,詳細に説明したように,本形態のMFP100においては,CPU31が,原稿を読み取った画像データから,2種類の閾値を利用して2種類のエッジ画像を生成する。CPU31はさらに,生成した2種類のエッジ画像に基づいて,原稿領域と特定領域とを決定し,決定した領域に基づいて画像データに画像処理を行う。第2閾値は第1閾値に比較して緩やかな濃度勾配を抽出できる値であるので,第2閾値による第2エッジ画像には,近隣の画素との濃度差がほとんど無い画素だけが抽出される。つまり,第2エッジ画像に基づいて決定される特定領域64に,原稿の情報を含む画素が含まれることはほとんどない。従って,見開き原稿の読み取り後の画像データにおける情報の欠損を抑制する画像読取装置が実現されている。   As described above in detail, in MFP 100 of this embodiment, CPU 31 generates two types of edge images from image data obtained by reading a document using two types of threshold values. Further, the CPU 31 determines a document area and a specific area based on the two types of generated edge images, and performs image processing on the image data based on the determined area. Since the second threshold value is a value that can extract a gentler density gradient than the first threshold value, only the pixels having almost no density difference from neighboring pixels are extracted from the second edge image based on the second threshold value. . That is, the specific area 64 determined based on the second edge image hardly includes pixels including document information. Therefore, an image reading apparatus that suppresses information loss in image data after reading a spread original is realized.

なお,本実施の形態は単なる例示にすぎず,本発明を何ら限定するものではない。したがって本発明は当然に,その要旨を逸脱しない範囲内で種々の改良,変形が可能である。
例えば,MFPに限らず,複写機,スキャナ,FAX等,画像読取機能を備えるものであれば適用可能である。
Note that this embodiment is merely an example, and does not limit the present invention. Therefore, the present invention can naturally be improved and modified in various ways without departing from the gist thereof.
For example, the present invention is not limited to the MFP, and can be applied to any apparatus having an image reading function such as a copying machine, a scanner, and a FAX.

また例えば,上述の形態では,原稿領域66をまずエッジ線の最も外側の範囲としてから,内側のエッジ線に変更するとしたが,変更しないこととしてもよい。すなわち,第1エッジ画像において第1の値である画素によって連続して囲まれる,最も外側の範囲を原稿領域66としてもよい。このようにすれば,原稿領域66は,原稿からの反射光によって読み取った画像データの範囲をすべて含む範囲となる。またあるいは,変更する手順を経ることなく,初めから最も内側の範囲を原稿領域66と決定してもよい。   Further, for example, in the above-described embodiment, the document region 66 is first changed from the outermost range of the edge line to the inner edge line, but may not be changed. That is, the outermost range that is continuously surrounded by the pixels having the first value in the first edge image may be the document area 66. In this way, the document area 66 is a range that includes the entire range of image data read by the reflected light from the document. Alternatively, the innermost range from the beginning may be determined as the document region 66 without going through a changing procedure.

また例えば,上述の形態では,ブックスキャンモードにおいて,2ページ分の情報を含む見開き原稿を読み取った場合には,画像処理として,それぞれのページ領域ごとに別の画像データとして抽出するとした。しかし画像処理としてはこれに限らず,両ページの領域を含んで,中央部の暗部の色を変更した画像データとするものであってもよい。例えば,本スキャンした画像データのうちから,抽出領域として選択された範囲以外の画素の画像データを変更する処理としてもよい。変更後の色としては,例えば,原稿の下地部分と同色,白色,隣接画素の色等から選択することができる。   Further, for example, in the above-described embodiment, when a two-page spread document including information for two pages is read in the book scan mode, the image processing is extracted as separate image data for each page area. However, image processing is not limited to this, and image data obtained by changing the color of the dark portion at the center including the areas of both pages may be used. For example, the image data of pixels other than the range selected as the extraction area may be changed from the main scanned image data. The color after the change can be selected from, for example, the same color as the background portion of the document, white, the color of adjacent pixels, and the like.

また例えば,ブックスキャンモードではなく,1つの画像データを出力する原稿の読み取りが指示された場合においても,本発明の処理を行うこととしてもよい。つまり,ユーザの指示はブックスキャンでなくても,読み取った画像データから第1エッジ画像と第2エッジ画像とを生成してもよい。そして,特定領域の有無に応じて,本形態の画像処理を行うこととしてもよい。   Further, for example, the processing of the present invention may be performed not only in the book scan mode but also when an instruction to read a document that outputs one image data is given. That is, the user's instruction may not be a book scan, but the first edge image and the second edge image may be generated from the read image data. Then, the image processing of this embodiment may be performed according to the presence or absence of the specific area.

また,本形態では,S105〜S106の処理とS108〜S109の処理とを並行して行うとしたが,これに限らず,一方を先に他方を後に行ってもよい。また,本形態では,限界面積47を固定値としたが,これに限らず,原稿サイズに対応して可変としてもよい。   In this embodiment, the processes of S105 to S106 and the processes of S108 to S109 are performed in parallel. However, the present invention is not limited to this, and one may be performed first and the other may be performed later. In this embodiment, the limit area 47 is a fixed value. However, the present invention is not limited to this, and the limit area 47 may be variable according to the document size.

また,上記の各実施の形態では,プレスキャンを行って得た画像データに基づいてエッジ画像を生成するとしたが,これに限るものではない。例えば,十分な処理能力を有する画像読取装置であれば,初めから本スキャンを行ってもよい。また,本スキャンによって得られた画像データから,プレスキャンに相当する画像データを生成することとしてもよい。また,上記のフローチャートでは,原稿領域や特定領域を決定してから本スキャンをすることとしたが,本スキャンの実行タイミングはこれに限らない。もっと早い段階で実施しておいてもよい。   In each of the above-described embodiments, the edge image is generated based on the image data obtained by performing the pre-scan. However, the present invention is not limited to this. For example, if the image reading apparatus has sufficient processing capability, the main scan may be performed from the beginning. Further, image data corresponding to pre-scan may be generated from image data obtained by the main scan. In the above flowchart, the main scan is performed after the document area and the specific area are determined. However, the execution timing of the main scan is not limited to this. It may be done at an earlier stage.

また,実施の形態に開示されている処理は,単一のCPU,複数のCPU,ASICなどのハードウェア,またはそれらの組み合わせで実行されてもよい。また,実施の形態に開示されている処理は,その処理を実行するためのプログラムを記録した記録媒体,または方法等の種々の態様で実現することができる。   The processing disclosed in the embodiments may be executed by a single CPU, a plurality of CPUs, hardware such as an ASIC, or a combination thereof. Further, the processing disclosed in the embodiment can be realized in various modes such as a recording medium or a method recording a program for executing the processing.

2 画像読取部
11 コンタクトガラス
31 CPU
51 画像データ
45 第1閾値
46 第2閾値
61 第1エッジ画像
63 第2エッジ画像
64 特定領域
66 原稿領域
2 Image reading unit 11 Contact glass 31 CPU
51 Image Data 45 First Threshold 46 Second Threshold 61 First Edge Image 63 Second Edge Image 64 Specific Area 66 Document Area

Claims (8)

原稿の画像を読み取る読取部と,
各画素における濃度の勾配の値を濃度差値として,前記読取部が読み取った画像データから,原稿の領域の抽出に用いる値であって原稿の下地部分の濃度差値の上限より大きい値である第1閾値より濃度差値が大きい画素を,第1の急勾配値の画素とし,前記第1閾値より濃度差値が大きくない画素を,第1の緩勾配値の画素として,前記第1の急勾配値の画素と前記第1の緩勾配値の画素とにより構成される第1エッジ画像を生成する第1生成部と,
前記読取部が読み取った画像データから,前記第1閾値よりも濃度の勾配が緩やかな値であって原稿の下地部分の濃度差値の下限以下の値である第2閾値より濃度差値が大きい画素を,第2の急勾配値の画素とし,前記第2閾値より濃度差値が大きくない画素を,第2の緩勾配値の画素として,前記第2の急勾配値の画素と前記第2の緩勾配値の画素とにより構成される第2エッジ画像を生成する第2生成部と,
前記第1エッジ画像から,前記第1の急勾配値の画素によって連続して囲まれる領域を原稿領域の範囲として決定する原稿範囲決定部と,
前記第2エッジ画像から,前記原稿範囲決定部が決定した前記原稿領域内の,前記第2の緩勾配値の画素により構成される領域のうち,面積が最も大きい領域を特定領域の範囲として決定する特定範囲決定部と,
前記原稿領域と前記特定領域とを用いて,前記原稿領域の画像データに対して画像処理を行う画像処理部と,
を備えることを特徴とする画像読取装置。
A reading unit for reading an image of a document;
A density gradient value at each pixel is used as a density difference value, which is a value used to extract a document area from image data read by the reading unit and is larger than the upper limit of the density difference value of the background portion of the document. A pixel having a density difference value larger than the first threshold value is a pixel having a first steep gradient value, and a pixel having a density difference value not greater than the first threshold value is a pixel having a first gentle gradient value. A first generator for generating a first edge image composed of pixels having a steep gradient value and pixels having the first gentle gradient value ;
From the image data the reading unit has read, density difference value than the second threshold value or less value lower limit of the density difference values of the ground portion of the gradients of concentration than the first threshold value is the original it gentle Nedea is The pixel having the second steep gradient value is defined as a pixel having a large steep gradient value and the pixel having a density difference value not greater than the second threshold value is defined as a pixel having the second gentle gradient value. A second generation unit that generates a second edge image composed of pixels of two gentle gradient values ;
A document range determination unit that determines a region continuously surrounded by pixels of the first steep slope value from the first edge image as a range of a document region;
From the second edge image, a region having the largest area among the regions composed of pixels of the second gentle gradient value in the document region determined by the document range determination unit is determined as the range of the specific region. A specific range determination unit to perform,
An image processing unit that performs image processing on image data in the document area using the document area and the specific area;
An image reading apparatus comprising:
請求項1に記載する画像読取装置において,
前記原稿領域と前記特定領域とから,前記原稿領域のうち抽出の対象となる抽出領域を決定する抽出領域決定部を備え,
前記画像処理部は,前記読取部が読み取った画像データから前記抽出領域に対応する領域を抽出する処理を行うことを特徴とする画像読取装置。
The image reading apparatus according to claim 1,
An extraction area determination unit that determines an extraction area to be extracted from the original area from the original area and the specific area;
The image processing apparatus, wherein the image processing unit performs a process of extracting an area corresponding to the extraction area from the image data read by the reading unit.
請求項2に記載する画像読取装置において,
前記第2エッジ画像中に前記特定領域に対応する領域が存在するか否かを判断する存在判断部を備え,
前記抽出領域決定部は,前記存在判断部が前記特定領域に対応する領域が存在しないと判断した場合に,前記原稿領域を前記抽出領域に決定することを特徴とする画像読取装置。
The image reading apparatus according to claim 2,
A presence determination unit that determines whether or not an area corresponding to the specific area exists in the second edge image;
The image reading apparatus, wherein the extraction area determination unit determines the document area as the extraction area when the existence determination unit determines that there is no area corresponding to the specific area.
請求項2または請求項3に記載する画像読取装置において,
前記特定領域に対応する領域が前記原稿領域の中央に位置するか否かを判断する位置判断部を備え,
前記抽出領域決定部は,前記位置判断部にて前記特定領域に対応する領域が前記原稿領域の中央に位置しないと判断された場合に,前記原稿領域を前記抽出領域に決定することを特徴とする画像読取装置。
In the image reading apparatus according to claim 2 or 3,
A position determination unit that determines whether or not an area corresponding to the specific area is located in the center of the document area;
The extraction area determination unit determines the document area as the extraction area when the position determination unit determines that the area corresponding to the specific area is not located in the center of the document area. An image reading apparatus.
請求項4に記載する画像読取装置において,
載置された前記原稿を前記読取部が読取可能な読取領域を有する原稿台と,
前記読取領域の境界の一部を前記特定領域が構成しているか否かを判断する境界判断部を備え,
前記抽出領域決定部は,前記位置判断部にて前記特定領域に対応する領域が前記原稿領域の中央に位置しないと判断され,かつ,前記境界判断部にて前記読取領域の境界の一部を前記特定領域が構成していると判断された場合に,前記原稿領域のうち前記特定領域以外の範囲を前記抽出領域に決定することを特徴とする画像読取装置。
The image reading apparatus according to claim 4,
A document table having a reading area where the reading unit can read the placed document;
A boundary determination unit for determining whether or not the specific area constitutes a part of the boundary of the reading area;
The extraction area determination unit determines that the position determination unit determines that the area corresponding to the specific area is not located in the center of the document area, and the boundary determination unit determines a part of the boundary of the reading area. An image reading apparatus characterized in that, when it is determined that the specific area is configured, a range other than the specific area in the document area is determined as the extraction area.
請求項1から請求項5までのいずれか1つに記載する画像読取装置において,
前記読取部に所定の解像度で原稿を読み取らせる第1読取モードと,前記読取部に前記第1読取モードよりも低解像度で原稿を読み取らせる第2読取モードとを切り替える切替部を備え,
前記読取部は,前記第2読取モードで原稿を読み取った後,前記第1読取モードで当該原稿を読み取り,
前記第1生成部は,前記読取部が前記第2読取モードで読み取った画像データから前記第1エッジ画像を生成し,
前記第2生成部は,前記読取部が前記第2読取モードで読み取った画像データから前記第2エッジ画像を生成し,
前記画像処理部は,前記読取部が前記第1読取モードで読み取った画像データに対して前記画像処理を行うことを特徴とする画像読取装置。
In the image reading apparatus according to any one of claims 1 to 5,
A switching unit that switches between a first reading mode in which the reading unit reads a document at a predetermined resolution and a second reading mode in which the reading unit reads a document at a lower resolution than the first reading mode;
The reading unit reads the document in the first reading mode after reading the document in the second reading mode,
The first generation unit generates the first edge image from image data read by the reading unit in the second reading mode,
The second generation unit generates the second edge image from image data read by the reading unit in the second reading mode,
The image reading apparatus, wherein the image processing unit performs the image processing on image data read by the reading unit in the first reading mode.
請求項1から請求項6までのいずれか1つに記載する画像読取装置において,
前記第2閾値は,原稿の表面の凹凸による濃度の勾配の値を検知する値であることを特徴とする画像読取装置。
In the image reading device according to any one of claims 1 to 6,
2. The image reading apparatus according to claim 1, wherein the second threshold value is a value for detecting a value of a density gradient due to unevenness on the surface of the document.
請求項1から請求項7までのいずれか1つに記載する画像読取装置において,
前記第1エッジ画像中で,前記原稿領域の一辺から内側へ所定幅以内の範囲内に,前記第1の急勾配値の画素が連続するエッジ線がある場合に,前記原稿領域の範囲を最も内側の前記エッジ線により構成される範囲に変更することを特徴とする画像読取装置。
In the image reading apparatus according to any one of claims 1 to 7,
In the first edge image, when there is an edge line in which pixels having the first steep slope value are continuous within a predetermined width from one side to the inside of the document area, the range of the document area is the largest. An image reading apparatus that changes to a range constituted by the inner edge lines.
JP2012133604A 2012-06-13 2012-06-13 Image reading device Active JP5904024B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012133604A JP5904024B2 (en) 2012-06-13 2012-06-13 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012133604A JP5904024B2 (en) 2012-06-13 2012-06-13 Image reading device

Publications (2)

Publication Number Publication Date
JP2013258574A JP2013258574A (en) 2013-12-26
JP5904024B2 true JP5904024B2 (en) 2016-04-13

Family

ID=49954660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012133604A Active JP5904024B2 (en) 2012-06-13 2012-06-13 Image reading device

Country Status (1)

Country Link
JP (1) JP5904024B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021136523A (en) * 2020-02-26 2021-09-13 京セラドキュメントソリューションズ株式会社 Image reader, image forming device, document area detection method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3425366B2 (en) * 1998-06-30 2003-07-14 シャープ株式会社 Image correction device
JP4777178B2 (en) * 2006-07-28 2011-09-21 キヤノン株式会社 Image processing method
JP2010021937A (en) * 2008-07-14 2010-01-28 Sharp Corp Image processing apparatus, image reading unit, image forming apparatus, image processing method, program, and recording medium thereof
JP5288951B2 (en) * 2008-09-05 2013-09-11 キヤノン株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JP2013258574A (en) 2013-12-26

Similar Documents

Publication Publication Date Title
JP5333400B2 (en) Image reading device
KR100886995B1 (en) Image processing apparatus and image processing method
US20110013202A1 (en) Image processing apparatus, image processing method, and program for executing the image processing method
KR101309369B1 (en) Image processing apparatus and control method
US8665497B2 (en) Image processing apparatus, image processing method and program
JP5617733B2 (en) Reader
JP2009207148A (en) Image processor, and image processing method
JP2011024116A (en) Image processing apparatus, image processing method, and program
JP5605139B2 (en) Image reading device
JP4677376B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP5904024B2 (en) Image reading device
JP2009147799A (en) Image processing device
JP5621629B2 (en) Reader
JP4930423B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, and image processing apparatus control program
JP2010088048A (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP6999511B2 (en) Document reader and document scanning method
JP2008271365A (en) Image processor and image processing method
JP4135429B2 (en) Image reader
JP5942603B2 (en) Image reading device
JP5265040B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP7206367B2 (en) Document reading device and document reading method
JP5474222B2 (en) Image processing apparatus, image processing method, and program
JP5029569B2 (en) Image reading apparatus, image reading method, and image reading program
JP7215311B2 (en) Image reading device, image reading method and computer program
JP3840032B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160119

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160229

R150 Certificate of patent or registration of utility model

Ref document number: 5904024

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150