JP2017228922A - Image reader, image reading method, and image reading program - Google Patents

Image reader, image reading method, and image reading program Download PDF

Info

Publication number
JP2017228922A
JP2017228922A JP2016123559A JP2016123559A JP2017228922A JP 2017228922 A JP2017228922 A JP 2017228922A JP 2016123559 A JP2016123559 A JP 2016123559A JP 2016123559 A JP2016123559 A JP 2016123559A JP 2017228922 A JP2017228922 A JP 2017228922A
Authority
JP
Japan
Prior art keywords
reading
image
area
unit
missing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016123559A
Other languages
Japanese (ja)
Inventor
裕太 奥田
Yuta Okuda
裕太 奥田
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2016123559A priority Critical patent/JP2017228922A/en
Publication of JP2017228922A publication Critical patent/JP2017228922A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable re-reading with high efficiency, when a script was not read appropriately.SOLUTION: An image reader includes a script reading unit for reading a script in any one of multiple reading areas preset on a reading surface, and generating an image of a read script, a synthesis unit 210 for generating a synthetic image by synthesizing multiple images generated, a detector 220 for detecting a defective part from the synthetic image synthesized, a defective area determination unit 230 for determining a defective area corresponding to a defective part in the script, based on a position in the synthetic image of the detected defective part, a selection unit 240 for selecting a minimum reading area having a size larger than that of the determined defective area out of the multiple reading areas, and a complement unit 270 for synthesizing a complementary image generated by the script reading unit and the synthetic image, in response to reading of the script in the reading area selected by the script reading unit.SELECTED DRAWING: Figure 3

Description

この発明は、原稿を読み取り可能な画像読取装置、画像読取方法および画像読取プログラムに関し、特に、読み取り可能なサイズが制限されたサイズよりも大きいサイズの原稿の読み取りに適した画像読取装置、その画像読取装置で実行される画像読取方法および画像読取プログラムに関する。   The present invention relates to an image reading apparatus, an image reading method, and an image reading program capable of reading an original, and in particular, an image reading apparatus suitable for reading an original having a size larger than the size that can be read, and the image thereof The present invention relates to an image reading method and an image reading program executed by a reading device.

画像読取装置は、原稿を読み取るための読取手段を有する。ここで、読取手段のサイズよりも大きいサイズを有する原稿を読み取る場合には、画像読取装置は、原稿を複数回に分割して読み取り、読み取った複数の画像を接合し、1つの画像として出力する。このような画像読取装置として、特開2010−93732号公報には、画像を読み取る読取手段と、読取手段が読み取った画像データを保存する画像メモリと、画像メモリに保存されている複数の画像を合成する画像合成手段とを具備する画像合成装置において、原稿を複数回に分けて読み取る際に、原稿の大きさと、それまでに読み取った画像領域の大きさと、その後に読み取ることが可能な画像領域の大きさとに基づいて、読み取った原稿の画像領域の大きさが、読み取った画像データを接合するのに必要な大きさよりも小さいかどうかを判別する判別手段と、判別手段による判別結果に基づいて、画像合成手段を制御する制御手段と、を有することを特徴とする画像合成装置が記載されている。
特開2010−93732号公報
The image reading apparatus has reading means for reading a document. Here, when reading an original having a size larger than the size of the reading unit, the image reading apparatus reads the original by dividing it into a plurality of times, and joins the read images to output as one image. . As such an image reading apparatus, Japanese Patent Application Laid-Open No. 2010-93732 discloses a reading unit that reads an image, an image memory that stores image data read by the reading unit, and a plurality of images stored in the image memory. In an image composition device comprising an image composition means for compositing, when reading a document divided into a plurality of times, the size of the document, the size of the image region read so far, and the image region that can be read thereafter Based on the determination result by the determination means and the determination means for determining whether the size of the image area of the read document is smaller than the size necessary for joining the read image data And an image synthesizing device having control means for controlling the image synthesizing means.
JP 2010-93732 A

特開2010−93732号公報には、上記の画像合成装置においては、ユーザーが原稿台(読取手段)に原稿をセットする際に、原稿が原稿台の指定された位置からずれた場合に、少ない操作で読み直すことが可能になると記載されている。しかしながら、ずれの大きさに関わらず画一的な領域にわたって原稿が読み直されるため、読み直しのための操作を十分に少なくすることができず、また、画像データの処理を高速化することができない。そのため、原稿の読み取りの効率が低下する。   Japanese Patent Application Laid-Open No. 2010-93732 discloses that in the above-described image composition apparatus, when the user sets a document on the document table (reading unit), there is little if the document is displaced from a designated position on the document table. It is stated that it can be read again by operation. However, since the original is reread over a uniform area regardless of the size of the deviation, the rereading operation cannot be sufficiently reduced, and the processing of the image data cannot be accelerated. . For this reason, the efficiency of reading a document is reduced.

この発明は上述した問題点を解決するためになされたもので、この発明の目的の一つは、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取装置を提供することである。   The present invention has been made to solve the above-described problems, and one of the objects of the present invention is an image reading apparatus that enables re-reading with high efficiency when a document is not read properly. Is to provide.

この発明の他の目的は、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取方法を提供することである。   Another object of the present invention is to provide an image reading method that enables re-reading with high efficiency when a document is not read properly.

この発明のさらに他の目的は、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取プログラムを提供することである。   Still another object of the present invention is to provide an image reading program that enables re-reading with high efficiency when a document is not properly read.

この発明は上述した問題点を解決するためになされたもので、この発明のある局面によれば、画像読取装置は、読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段と、読取手段により生成された複数の画像を合成した合成画像を生成する合成手段と、合成手段により合成された合成画像から欠損部分を検出する検出手段と、検出手段により検出された欠損部分の合成画像中における位置に基づいて、原稿中で欠損部分に対応する欠損領域を決定する欠損領域決定手段と、複数の読取領域のうちから、決定された欠損領域よりサイズが大きな最小の読取領域を選択する選択手段と、読取手段により選択された読取領域で原稿が読み取られることに応じて、読取手段により生成される補完画像を、合成画像と合成する補完手段と、を備える。   The present invention has been made to solve the above-described problems, and according to one aspect of the present invention, an image reading apparatus can read a document in one of a plurality of reading areas preset on a reading surface. A reading unit that generates an image of the read original, a combining unit that generates a combined image obtained by combining a plurality of images generated by the reading unit, and a missing portion is detected from the combined image combined by the combining unit A detection unit, a defect region determination unit that determines a defect region corresponding to the defect part in the document based on a position in the composite image of the defect part detected by the detection unit, and a determination from among a plurality of reading regions Selecting means for selecting a minimum reading area having a size larger than the defective area, and reading means in response to the reading of the document in the reading area selected by the reading means. Comprising a complementary image to be made, and complementary means for synthesizing a synthesized image.

この局面に従えば、合成画像から欠損部分が検出された場合には、複数の読取領域のうち欠損部分よりサイズが大きな最小の読取領域が選択され、選択された読取領域で画像が読み取られて生成される補完画像が、合成画像と合成される。このため、欠損部分よりサイズが大きく最小の読取領域が選択されるので、補完画像のサイズをできるだけ小さくして、合成画像を補完画像で補完する際の負荷を低減することができる。その結果、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取装置を提供することができる。   According to this aspect, when a defective portion is detected from the composite image, a minimum reading region having a size larger than the defective portion is selected from among the plurality of reading regions, and the image is read in the selected reading region. The generated complementary image is combined with the combined image. For this reason, since the minimum reading area larger than the missing portion is selected, the size of the complementary image can be made as small as possible, and the load when the composite image is complemented with the complementary image can be reduced. As a result, it is possible to provide an image reading apparatus that enables re-reading with high efficiency when a document is not properly read.

好ましくは、選択手段は、欠損領域のサイズが複数の読取領域のうちサイズが最大の読取領域のサイズより大きい場合、欠損部分を2つに分割する分割手段を、含み、分割された2つの欠損部分にそれぞれ対応する2つの読取領域を選択する。   Preferably, the selection unit includes a dividing unit that divides the defective portion into two when the size of the defective region is larger than the size of the largest reading region among the plurality of reading regions, and the two divided defects Two reading areas corresponding to the portions are selected.

この局面に従えば、欠損領域のサイズが最大の読取領域のサイズより大きい場合、欠損部分が2つに分割され、分割された2つの欠損部分それぞれに対応する2つの読取領域が選択される。そのため、1つの欠損領域を2つに分割するので、読み取り回数をできるだけ少なくすることができる。   According to this aspect, when the size of the defect area is larger than the size of the maximum reading area, the defect part is divided into two, and two reading areas corresponding to the two divided defect parts are selected. Therefore, since one defective area is divided into two, the number of readings can be reduced as much as possible.

好ましくは、決定された欠損領域を選択された読取領域に配置するユーザーによる動作を支援する案内画像を表示する通知手段を、さらに備える。   Preferably, the information processing apparatus further includes notification means for displaying a guide image that supports an operation by a user who places the determined defective area in the selected reading area.

この局面に従えば、ユーザーは案内画像を視認することにより、原稿中の欠損領域を選択された読取領域に配置する動作を容易にすることができる。   According to this aspect, the user can easily perform the operation of arranging the missing area in the document in the selected reading area by visually recognizing the guidance image.

好ましくは、欠損領域決定手段は、合成手段により合成された合成画像のうち、欠損部分の付近の特徴部分を検出する特徴部分検出手段を含み、欠損部分と検出された特徴部分とを含む領域に対応する原稿中の領域を欠損領域に決定し、複数の読取領域それぞれは、読取面中で予め定められた基準位置を基準に読取面に配置され、案内画像は、読取面の周辺に表された基準位置を示す基準画像と、特徴部分との相対的な位置を示す画像を含む。   Preferably, the defect area determination means includes a feature part detection means for detecting a feature part in the vicinity of the defect part in the synthesized image synthesized by the synthesis means, and includes an area including the defect part and the detected feature part. The corresponding area in the document is determined as a missing area, and each of the plurality of reading areas is arranged on the reading surface with reference to a predetermined reference position on the reading surface, and the guide image is displayed around the reading surface. A reference image indicating the reference position and an image indicating the relative position of the feature portion.

この局面に従えば、案内画像は、読取面の周辺に表された基準位置を示す基準画像と、欠損部分の付近の特徴部分との相対的な位置を示すので、ユーザーは、案内画像を視認することにより、原稿を読取面に配置する際の読取面に対する原稿の特徴部分の相対位置を認識することができる。これにより、ユーザーは、原稿を読取面に容易に配置することができる。   According to this aspect, the guide image shows the relative position between the reference image indicating the reference position expressed around the reading surface and the characteristic portion near the missing portion, so that the user can visually recognize the guide image. By doing so, it is possible to recognize the relative position of the characteristic portion of the document with respect to the reading surface when the document is placed on the reading surface. As a result, the user can easily place the document on the reading surface.

好ましくは、案内画像は、読取面に対する原稿の向きを示す画像を含む。   Preferably, the guide image includes an image indicating the orientation of the document with respect to the reading surface.

この局面に従えば、ユーザーは案内画像を視認することにより、原稿を適切な方向で読取面に容易に配置することができる。   According to this aspect, the user can easily place the document on the reading surface in an appropriate direction by visually recognizing the guide image.

好ましくは、読取手段により選択された読取領域で原稿が読み取られることに応じて、補完画像から検出された特徴部分と同じ特徴画像を検出する特徴画像検出手段を、さらに備え、補完手段は、特徴画像が検出される場合に、補完画像を合成画像と合成する。   Preferably, the image processing apparatus further includes a feature image detection unit that detects a feature image that is the same as the feature portion detected from the complementary image when the document is read in the reading region selected by the reading unit, and the complementing unit includes the feature When the image is detected, the complementary image is combined with the combined image.

この局面に従えば、補完画像から特徴部分と同じ特徴画像が検出される場合には、補完画像に欠損部分を補完する部分が含まれる可能性が高いため、合成画像中の欠損部分を補完する確率を向上することができる。   According to this aspect, when a feature image that is the same as the feature portion is detected from the complement image, it is highly likely that the complement image includes a portion that complements the missing portion. Therefore, the missing portion in the composite image is complemented. Probability can be improved.

好ましくは、補完手段は、補完画像中の検出された特徴画像の相対位置が、欠損領域中の検出された特徴部分の相対位置から所定の範囲内であることをさらに条件として、補完画像を合成画像と合成する。   Preferably, the complement means synthesizes the complement image on the condition that the relative position of the detected feature image in the complement image is within a predetermined range from the relative position of the detected feature portion in the missing area. Composite with the image.

この局面に従えば、補完画像中の特徴画像の相対位置が、欠損領域中の検出された特徴部分の相対位置から所定の範囲内である場合には、合成画像に欠損部分を補完する部分が含まれる可能性がより高いため、合成画像中の欠損部分を補完する確率を向上することができる。   According to this aspect, when the relative position of the feature image in the complement image is within a predetermined range from the relative position of the detected feature portion in the defect region, a portion that complements the defect portion is included in the composite image. Since the possibility of being included is higher, the probability of complementing the missing portion in the composite image can be improved.

好ましくは、読取手段により選択された読取領域で原稿が読み取られることに応じて、補完画像から欠損部分を抽出する画像加工手段をさらに備える。   Preferably, the image processing device further includes an image processing unit that extracts a missing portion from the complementary image in response to the reading of the document in the reading region selected by the reading unit.

この局面に従えば、補完画像から欠損部分が抽出されるので、補完画像のサイズを最小にすることができる。これにより、合成画像を補完するための画像処理をより高速化することができる。   According to this aspect, since the missing portion is extracted from the complementary image, the size of the complementary image can be minimized. Thereby, the image processing for complementing the composite image can be further accelerated.

好ましくは、ユーザーの操作を受け付ける操作受付手段をさらに備え、操作受付手段により所定の操作が受け付けられる場合、読取手段による選択された読取領域での原稿の読み取りを禁止し、合成画像の欠損部分を欠損部分の周辺の領域と同じ値で補完する周辺補完手段をさらに備える。   Preferably, an operation receiving unit that receives a user's operation is further provided. When a predetermined operation is received by the operation receiving unit, the reading unit prohibits reading of the original in the selected reading area, and a missing portion of the composite image is deleted. Peripheral complementing means for complementing with the same value as the area around the missing part is further provided.

この局面に従えば、ユーザーの操作に基づいて、読取領域での原稿の読み取りが禁止され、合成画像の欠損部分が周辺の領域と同じ値で補完される。そのため、原稿の読み取り回数を少なくしつつ、合成画像を補完することができる。   According to this aspect, the reading of the document in the reading area is prohibited based on the user's operation, and the missing portion of the composite image is complemented with the same value as the surrounding area. Therefore, it is possible to complement the composite image while reducing the number of times of reading the document.

好ましくは、複数の読取領域それぞれは、予め定められた複数のサイズのいずれか1つと予め定められた複数の方向のいずれか1つとの組で定まる。   Preferably, each of the plurality of reading areas is determined by a set of any one of a plurality of predetermined sizes and any one of a plurality of predetermined directions.

この局面に従えば、サイズが最小の読取領域を選択することができる。   According to this aspect, it is possible to select a reading area having a minimum size.

この発明の他の局面によれば、画像読取方法は、読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段を備える画像読取装置で実行される画像読取方法であって、読取手段により生成された複数の画像を合成した合成画像を生成するステップと、合成された合成画像から欠損部分を検出するステップと、検出された欠損部分の合成画像中における位置に基づいて、原稿中で欠損部分に対応する欠損領域を決定するステップと、決定された欠損領域のサイズに基づいて、複数の読取領域のうちから、決定された欠損領域よりサイズが大きな最小の読取領域を選択するステップと、読取手段により選択された読取領域で原稿が読み取られることに応じて、読取手段により生成される補完画像を、合成画像と合成するステップと、を含む。   According to another aspect of the present invention, an image reading method includes an image reading unit configured to read an original in any one of a plurality of reading areas set in advance on the reading surface and generate an image of the read original. An image reading method executed by a reading device, the step of generating a composite image obtained by combining a plurality of images generated by a reading unit, the step of detecting a missing portion from the combined image, and Based on the position of the missing part in the composite image, a step of determining a missing area corresponding to the missing part in the document, and a plurality of reading areas determined based on the determined size of the missing area Generated by the reading means in response to the step of selecting the smallest reading area having a size larger than the defective area and the reading of the document in the reading area selected by the reading means. Complementary image, comprising the steps of combining a synthetic image.

この局面に従えば、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取方法を提供することができる。   According to this aspect, it is possible to provide an image reading method that enables re-reading with high efficiency when an original is not read properly.

この発明のさらに他の局面によれば、画像読取プログラムは、読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段を備える画像読取装置で実行される画像読取プログラムであって、読取手段により生成された複数の画像を合成した合成画像を生成するステップと、合成された合成画像から欠損部分を検出するステップと、検出された欠損部分の合成画像中における位置に基づいて、原稿中で欠損部分に対応する欠損領域を決定するステップと、決定された欠損領域のサイズに基づいて、複数の読取領域のうちから、決定された欠損領域よりサイズが大きな最小の読取領域を選択するステップと、読取手段により選択された読取領域で原稿が読み取られることに応じて、読取手段により生成される補完画像を、合成画像と合成するステップと、をコンピューターに実行させる。   According to still another aspect of the present invention, an image reading program includes reading means for reading a document in any one of a plurality of reading regions set in advance on a reading surface and generating an image of the read document. An image reading program executed by the image reading device, the step of generating a composite image obtained by combining a plurality of images generated by the reading unit, the step of detecting a missing portion from the combined image, and A step of determining a defective region corresponding to the defective portion in the document based on the position of the defective portion in the composite image, and a plurality of reading regions based on the determined size of the defective region. In response to the step of selecting the smallest reading area having a size larger than the defective area and reading the document in the reading area selected by the reading unit, Complementary image generated by preparative means to execute the steps of synthesizing a composite image, to the computer.

この局面に従えば、原稿が適切に読み取られなかった場合に、高い効率での再読み取りを可能にする画像読取プログラムを提供することができる。   According to this aspect, it is possible to provide an image reading program that enables re-reading with high efficiency when a document is not properly read.

本発明の実施の形態の1つにおけるMFPの外観を示す斜視図である。1 is a perspective view showing an external appearance of an MFP in one embodiment of the present invention. MFPのハードウェア構成の概要を示すブロック図である。2 is a block diagram illustrating an outline of a hardware configuration of an MFP. FIG. MFPが備えるCPUが有する機能の一例を示す図である。FIG. 3 is a diagram illustrating an example of functions of a CPU included in an MFP. 原稿読取部の一例を示す模式的平面図である。FIG. 3 is a schematic plan view illustrating an example of a document reading unit. 原稿読取部に読み取らせる原稿を示す模式図である。FIG. 3 is a schematic diagram illustrating a document that is read by a document reading unit. 原稿読取部により生成される画像を示す模式図である。FIG. 6 is a schematic diagram illustrating an image generated by a document reading unit. 検出部から1の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the defect | deletion area | region determination part when one defect | deletion part is input from a detection part. 検出部から1の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the defect | deletion area | region determination part when one defect | deletion part is input from a detection part. 検出部から複数の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the defect | deletion area | region determination part when a some defect | deletion part is input from a detection part. 検出部から複数の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the defect | deletion area | region determination part when a some defect | deletion part is input from a detection part. 欠損領域のサイズが最大の読取領域のサイズより大きいときの選択部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the selection part when the size of a defect | deletion area | region is larger than the size of the largest reading area | region. 欠損領域のサイズが最大の読取領域のサイズより大きいときの選択部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the selection part when the size of a defect | deletion area | region is larger than the size of the largest reading area | region. 通知部の動作を説明するための図である。It is a figure for demonstrating operation | movement of a notification part. 合成画像に欠損部分が存在するときの通知部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the notification part when a defect | deletion part exists in a synthesized image. 再読取ボタンが操作されたときの通知部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the notification part when a reread button is operated. 特徴画像検出部から通知指示が入力されたときの通知部の動作を説明するための図である。It is a figure for demonstrating operation | movement of a notification part when the notification instruction | indication is input from the feature image detection part. 合成画像生成処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a synthetic | combination image generation process. 欠損領域決定処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a defect | deletion area | region determination process. 欠損領域分割処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a defect area | region division process. 補完画像生成処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a complementary image generation process.

以下、本発明の実施の形態について図面を参照して説明する。以下の説明では同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

図1は、本発明の実施の形態の1つにおけるMFPの外観を示す斜視図である。図2は、MFPのハードウェア構成の概要を示すブロック図である。図1および図2を参照して、MFP(Multi Function Peripheral)100は、画像読取装置の一例であり、メイン回路110と、原稿を読み取るための原稿読取部130と、原稿を原稿読取部130に搬送するための自動原稿搬送装置120と、原稿読取部130が原稿を読み取って出力する画像データに基づいて用紙等に画像を形成するための画像形成部140と、画像形成部140に用紙を供給するための給紙部150と、ユーザーインターフェースとしての操作パネル160とを含む。   FIG. 1 is a perspective view showing an appearance of an MFP according to one embodiment of the present invention. FIG. 2 is a block diagram showing an outline of the hardware configuration of the MFP. Referring to FIGS. 1 and 2, MFP (Multi Function Peripheral) 100 is an example of an image reading apparatus, and includes a main circuit 110, a document reading unit 130 for reading a document, and a document in document reading unit 130. An automatic document feeder 120 for conveying, an image forming unit 140 for forming an image on a sheet or the like based on image data output by the document reading unit 130 reading the document, and supplying the sheet to the image forming unit 140 A sheet feeding unit 150 for performing the operation and an operation panel 160 as a user interface.

メイン回路110は、MFP100の全体を制御するCPU(中央演算処理装置)111と、通信インターフェース(I/F)部112と、ROM113と、RAM114と、大容量記憶装置としてのハードディスクドライブ(HDD)115と、ファクシミリ部116と、外部記憶装置117と、を含む。CPU111は、自動原稿搬送装置120、原稿読取部130、画像形成部140、給紙部150および操作パネル160と接続され、MFP100の全体を制御する。   The main circuit 110 includes a CPU (Central Processing Unit) 111 that controls the entire MFP 100, a communication interface (I / F) unit 112, a ROM 113, a RAM 114, and a hard disk drive (HDD) 115 as a mass storage device. A facsimile unit 116, and an external storage device 117. CPU 111 is connected to automatic document feeder 120, document reading unit 130, image forming unit 140, sheet feeding unit 150, and operation panel 160, and controls the entire MFP 100.

自動原稿搬送装置120は、原稿トレイ125上にセットされた複数枚の原稿を1枚ずつ自動的に原稿読取部130の原稿読み取り位置まで搬送し、原稿読取部130により原稿に形成された画像が読み取られた原稿を原稿排紙トレイ127上に排出する。   The automatic document feeder 120 automatically conveys a plurality of documents set on the document tray 125 one by one to the document reading position of the document reading unit 130, and an image formed on the document by the document reading unit 130 The read original is discharged onto the original discharge tray 127.

原稿読取部130は、原稿を読み取るための矩形状の読取面を有する。読取面は、例えばプラテンガラスにより形成される。自動原稿搬送装置120は、読取面の1つの辺に平行な軸を中心に回転可能にMFP100の本体に接続され、開閉可能である。自動原稿搬送装置120の下方に、原稿読取部130が配置されており、自動原稿搬送装置120が回転して開いた状態で、原稿読取部130の読取面が露出する。このため、ユーザーは、原稿読取部130の読取面に原稿を載置可能である。原稿読取部130が読取可能な最大のサイズは、原稿読取部130の読取面のサイズより小さい。ここでは、原稿読取部130の読取面をA3サイズとする場合を例に説明する。この場合、原稿読取部130は、A3サイズ以下のサイズの原稿を読み取ることができる。   The document reading unit 130 has a rectangular reading surface for reading a document. The reading surface is formed of platen glass, for example. The automatic document feeder 120 is connected to the main body of the MFP 100 so as to be rotatable about an axis parallel to one side of the reading surface, and can be opened and closed. A document reading unit 130 is disposed below the automatic document feeder 120. With the automatic document feeder 120 rotated and opened, the reading surface of the document reader 130 is exposed. Therefore, the user can place a document on the reading surface of the document reading unit 130. The maximum size that can be read by the document reading unit 130 is smaller than the size of the reading surface of the document reading unit 130. Here, a case where the reading surface of the document reading unit 130 is A3 size will be described as an example. In this case, the document reading unit 130 can read a document having a size of A3 size or smaller.

原稿読取部130の読取面には、矩形の複数の読取領域が予め設定される。複数の矩形の読取領域それぞれは、読取面中における読取領域の位置と、読取領域のサイズおよび読取領域の読取面に対する方向の組とで定まる。読取領域の読取面中における位置は、読取領域の左上頂角が読取面の左上頂角と重なる位置である。複数の読取領域それぞれは、読取面中の左上の位置を基準に読取面に配置される。なお、読取領域の読取面中における位置は、読取領域の左上頂角が読取面の左上頂角と重なる位置に限定されるものではなく、例えば、読取領域の左下頂角が読取面の左下頂角と重なる位置としてもよいし、読取領域の右上頂角が読取面の右上頂角と重なる位置としてもよいし、読取領域の右下頂角が読取面の右下頂角と重なる位置としてもよい。   A plurality of rectangular reading areas are set in advance on the reading surface of the document reading unit 130. Each of the plurality of rectangular reading areas is determined by a set of the position of the reading area on the reading surface and the size of the reading area and the direction of the reading area with respect to the reading surface. The position of the reading area on the reading surface is a position where the upper left apex angle of the reading area overlaps with the upper left apex angle of the reading surface. Each of the plurality of reading areas is arranged on the reading surface with reference to the upper left position in the reading surface. The position of the reading area on the reading surface is not limited to the position where the upper left apex angle of the reading area overlaps the upper left apex angle of the reading surface. For example, the lower left apex angle of the reading area is The upper right apex angle of the reading area may overlap with the upper right apex angle of the reading surface, or the lower right apex angle of the reading area may overlap with the lower right apex angle of the reading surface. Good.

読取領域のサイズは、ここでは、A3サイズ、A4サイズ、A5サイズ、B4サイズ、B5サイズ、レターサイズのいずれかとしている。読取領域の読取面に対する方向は、読取領域の長辺が読取面の縦方向に平行になる縦方向と、読取領域の長辺が読取面の横方向に平行になる横方向とのいずれかである。   Here, the size of the reading area is any one of A3 size, A4 size, A5 size, B4 size, B5 size, and letter size. The direction of the reading area with respect to the reading surface is either a vertical direction in which the long side of the reading area is parallel to the vertical direction of the reading surface, or a horizontal direction in which the long side of the reading area is parallel to the horizontal direction of the reading surface. is there.

複数の読取領域は、A3サイズ、A4サイズ、A5サイズ、B4サイズ、B5サイズ、レターサイズのいずれかと、縦方向および横方向のいずれかとの組で定まる。ここでは、読取面のサイズを、横方向の長さがA3サイズの長手方向の長さ以上とし、縦方向の長さがA3サイズの短手方向の長さ以上とする。この場合、複数の読取領域は、A3サイズの横方向の読取領域、A4サイズの縦方向の読取領域、A4サイズの横方向の読取領域、A5サイズの縦方向の読取領域、A5サイズの横方向の読取領域、B4サイズの横方向の読取領域、B5サイズの縦方向の読取領域、B5サイズの横方向の読取領域、およびレターサイズの横方向の読取領域を含む。   The plurality of reading areas are determined by a set of any one of A3 size, A4 size, A5 size, B4 size, B5 size, and letter size, and either the vertical direction or the horizontal direction. Here, the size of the reading surface is set such that the length in the horizontal direction is not less than the length in the longitudinal direction of the A3 size, and the length in the longitudinal direction is not less than the length in the short direction of the A3 size. In this case, the plurality of reading areas include an A3 size horizontal reading area, an A4 size vertical reading area, an A4 size horizontal reading area, an A5 size vertical reading area, and an A5 size horizontal direction. Reading area, B4 size horizontal reading area, B5 size vertical reading area, B5 size horizontal reading area, and letter size horizontal reading area.

原稿読取部130は、光を照射する光源と、光を受光する光電変換素子とを含み、読取領域に載置された原稿に形成されている画像を走査する。読取領域に原稿が載置されている場合、光源から照射された光は原稿で反射し、反射した光が光電変換素子で結像する。光電変換素子は、原稿で反射した光を受光すると、受光した光を電気信号に変換した画像データを生成する。原稿読取部130は、画像データをCPU111に出力する。以下、原稿読取部130が原稿を読み取って出力する電気信号である画像データを、単に、画像という。   The document reading unit 130 includes a light source that emits light and a photoelectric conversion element that receives light, and scans an image formed on the document placed in the reading region. When a document is placed on the reading area, the light emitted from the light source is reflected by the document, and the reflected light is imaged by the photoelectric conversion element. When the photoelectric conversion element receives the light reflected from the document, the photoelectric conversion element generates image data obtained by converting the received light into an electric signal. Document reading unit 130 outputs image data to CPU 111. Hereinafter, the image data that is an electrical signal that the document reading unit 130 reads and outputs the document is simply referred to as an image.

給紙部150は、給紙トレイに収納された用紙を画像形成部140に搬送する。画像形成部140は、CPU111により制御され、周知の電子写真方式により画像を形成するものであって、CPU111から入力される画像に基づいて、給紙部150により搬送される用紙に画像を形成し、画像を形成した用紙を排紙トレイ155に排出する。CPU111が画像形成部140に出力する画像は、原稿読取部130から入力される画像の他、外部から受信される画像を含む。   The paper feed unit 150 conveys the paper stored in the paper feed tray to the image forming unit 140. The image forming unit 140 is controlled by the CPU 111 and forms an image by a well-known electrophotographic method. The image forming unit 140 forms an image on a sheet conveyed by the paper feeding unit 150 based on an image input from the CPU 111. Then, the paper on which the image is formed is discharged to the paper discharge tray 155. The image output to the image forming unit 140 by the CPU 111 includes an image received from the outside in addition to an image input from the document reading unit 130.

ファクシミリ部116は、公衆交換電話網(PSTN)に接続され、PSTNにファクシミリデータを送信する、またはPSTNからファクシミリデータを受信する。ファクシミリ部116は、受信したファクシミリデータを、HDD115に記憶するとともに、画像形成部140でプリント可能なプリントデータに変換して、画像形成部140に出力する。これにより、画像形成部140は、ファクシミリ部116により受信されたファクシミリデータの画像を用紙に形成する。また、ファクシミリ部116は、HDD115に記憶されたデータをファクシミリデータに変換して、PSTNに接続されたファクシミリ装置に送信する。   The facsimile unit 116 is connected to the public switched telephone network (PSTN) and transmits facsimile data to the PSTN or receives facsimile data from the PSTN. The facsimile unit 116 stores the received facsimile data in the HDD 115, converts it into print data that can be printed by the image forming unit 140, and outputs the print data to the image forming unit 140. As a result, the image forming unit 140 forms an image of facsimile data received by the facsimile unit 116 on a sheet. Further, the facsimile unit 116 converts the data stored in the HDD 115 into facsimile data, and transmits the facsimile data to a facsimile machine connected to the PSTN.

通信I/F部112は、ネットワークにMFP100を接続するためのインターフェースである。通信I/F部112は、TCP(Transmission Control Protocol)またはFTP(File Transfer Protocol)等の通信プロトコルで、ネットワークに接続された他のコンピューターまたはデータ処理装置と通信する。なお、通信I/F部112が接続されるネットワークは、ローカルエリアネットワーク(LAN)であり、接続形態は有線または無線を問わない。またネットワークは、LANに限らず、ワイドエリアネットワーク(WAN)、公衆交換電話網(PSTN)、インターネット等であってもよい。   Communication I / F unit 112 is an interface for connecting MFP 100 to a network. The communication I / F unit 112 communicates with other computers or data processing devices connected to the network using a communication protocol such as TCP (Transmission Control Protocol) or FTP (File Transfer Protocol). Note that the network to which the communication I / F unit 112 is connected is a local area network (LAN), and the connection form may be wired or wireless. The network is not limited to a LAN, and may be a wide area network (WAN), a public switched telephone network (PSTN), the Internet, or the like.

ROM113は、CPU111が実行するプログラム、またはそのプログラムを実行するために必要なデータを記憶する。RAM114は、CPU111がプログラムを実行する際の作業領域として用いられる。また、RAM114は、原稿読取部130から連続的に送られてくる読取画像を一時的に記憶する。   The ROM 113 stores a program executed by the CPU 111 or data necessary for executing the program. The RAM 114 is used as a work area when the CPU 111 executes a program. Further, the RAM 114 temporarily stores the read images continuously sent from the document reading unit 130.

操作パネル160は、MFP100の上面に設けられる。操作パネル160は、表示部161と操作部163とを含む。表示部161は、例えば、液晶表示装置(LCD)であり、ユーザーに対する指示メニューや取得した画像データに関する情報等を表示する。なお、LCDに代えて、画像を表示する装置であれば、例えば、有機EL(electroluminescence)ディスプレイを用いることができる。   Operation panel 160 is provided on the upper surface of MFP 100. Operation panel 160 includes a display unit 161 and an operation unit 163. The display unit 161 is, for example, a liquid crystal display device (LCD), and displays an instruction menu for a user, information about acquired image data, and the like. For example, an organic EL (electroluminescence) display can be used in place of the LCD as long as it is an apparatus that displays an image.

操作部163は、タッチパネル165と、ハードキー部167とを含む。タッチパネル165は、静電容量方式である。なお、タッチパネル165は、静電容量方式に限らず、例えば、抵抗膜方式、表面弾性波方式、赤外線方式、電磁誘導方式等の他の方式を用いることができる。   The operation unit 163 includes a touch panel 165 and a hard key unit 167. The touch panel 165 is a capacitive type. Note that the touch panel 165 is not limited to the capacitance method, and other methods such as a resistance film method, a surface acoustic wave method, an infrared method, and an electromagnetic induction method can be used.

タッチパネル165は、その検出面が表示部161の上面または下面に表示部161に重畳して設けられる。ここでは、タッチパネル165の検出面のサイズと、表示部161の表示面のサイズとを同じにしている。このため、表示面の座標系と検出面の座標系は同じである。タッチパネル165は、ユーザーが、表示部161の表示面を指示する位置を検出面で検出し、検出した位置の座標をCPU111に出力する。表示面の座標系と検出面の座標系は同じなので、タッチパネル165が出力する座標を、表示面の座標に置き換えることができる。   The touch panel 165 is provided with its detection surface superimposed on the display unit 161 on the upper or lower surface of the display unit 161. Here, the size of the detection surface of the touch panel 165 and the size of the display surface of the display unit 161 are the same. For this reason, the coordinate system of the display surface and the coordinate system of the detection surface are the same. The touch panel 165 detects the position where the user points the display surface of the display unit 161 on the detection surface, and outputs the coordinates of the detected position to the CPU 111. Since the coordinate system of the display surface and the coordinate system of the detection surface are the same, the coordinates output from the touch panel 165 can be replaced with the coordinates of the display surface.

ハードキー部167は、複数のハードキーを含む。ハードキーは、例えば接点スイッチである。タッチパネル165は、表示部161の表示面中でユーザーにより指示された位置を検出する。ユーザーがMFP100を操作する場合は直立した姿勢となる場合が多いので、表示部161の表示面、タッチパネル165の操作面およびハードキー部167は、上方を向いて配置される。ユーザーが表示部161の表示面を容易に視認することができ、ユーザーが指で操作部163を容易に指示することができるようにするためである。   Hard key portion 167 includes a plurality of hard keys. The hard key is, for example, a contact switch. The touch panel 165 detects a position designated by the user on the display surface of the display unit 161. When the user operates the MFP 100, the user often takes an upright posture, and thus the display surface of the display unit 161, the operation surface of the touch panel 165, and the hard key unit 167 are arranged facing upward. This is because the user can easily visually recognize the display surface of the display unit 161 and the user can easily instruct the operation unit 163 with a finger.

外部記憶装置117は、CPU111により制御され、CD−ROM(Compact Disk Read Only Memory)118、または半導体メモリが装着される。本実施の形態においては、CPU111は、ROM113に記憶されたプログラムを実行する例を説明するが、CPU111は、外部記憶装置117を制御して、CD−ROM118からCPU111が実行するためのプログラムを読出し、読み出したプログラムをRAM102に記憶し、実行するようにしてもよい。   The external storage device 117 is controlled by the CPU 111, and a CD-ROM (Compact Disk Read Only Memory) 118 or a semiconductor memory is mounted. In this embodiment, an example in which the CPU 111 executes a program stored in the ROM 113 will be described. However, the CPU 111 controls the external storage device 117 to read a program to be executed by the CPU 111 from the CD-ROM 118. The read program may be stored in the RAM 102 and executed.

なお、CPU111が実行するためのプログラムを記憶する記録媒体としては、CD−ROM118に限られず、フレキシブルディスク、カセットテープ、光ディスク(MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc))、ICカード、光カード、マスクROM、EPROM(Erasable Programmable ROM)、EEPROM(Electrically EPROM)などの半導体メモリ等の媒体でもよい。さらに、CPU111がネットワークに接続されたコンピューターからプログラムをダウンロードしてHDD115に記憶する、または、ネットワークに接続されたコンピューターがプログラムをHDD115に書込みするようにして、HDD115に記憶されたプログラムをRAM114にロードしてCPU111で実行するようにしてもよい。ここでいうプログラムは、CPU111により直接実行可能なプログラムだけでなく、ソースプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The recording medium for storing a program to be executed by the CPU 111 is not limited to the CD-ROM 118, but is a flexible disk, a cassette tape, an optical disk (MO (Magnetic Optical Disc) / MD (Mini Disc) / DVD (Digital Versatile Disc). )), A semiconductor memory medium such as an IC card, an optical card, a mask ROM, an EPROM (Erasable Programmable ROM), and an EEPROM (Electrically EPROM). Further, the CPU 111 downloads a program from a computer connected to the network and stores it in the HDD 115, or loads the program stored in the HDD 115 into the RAM 114 so that the computer connected to the network writes the program to the HDD 115. Then, it may be executed by the CPU 111. The program here includes not only a program directly executable by the CPU 111 but also a source program, a compressed program, an encrypted program, and the like.

本実施の形態におけるMFP100にA3サイズよりも大きいサイズ、例えばA0サイズの原稿を読み取らせる場合、ユーザーは、原稿を複数の部分に分割して、複数の部分それぞれを原稿読取部130に読み取らせる必要がある。   When MFP 100 according to the present embodiment reads a document having a size larger than A3 size, for example, A0 size, the user needs to divide the document into a plurality of parts and cause document reading unit 130 to read each of the plurality of parts. There is.

本実施の形態におけるMFP100は、合成機能を有する。合成機能は、A3サイズよりも大きいサイズの原稿を分割した複数の部分を読み取り、読み取られた複数の部分の画像を合成して原稿に対応する1つの画像を生成する機能である。ユーザーが、操作部163に合成機能を有効にするための操作を入力すれば、MFP100は合成機能を有効に設定する。ユーザーは、MFP100の合成機能を有効に設定した後、1つの原稿の複数の部分それぞれを、読取面と重なるように位置を合わせてセットし、原稿読取部130に読み取らせる。   MFP 100 in the present embodiment has a composition function. The composition function is a function of reading a plurality of parts obtained by dividing a document having a size larger than A3 size, and composing the read images of the plurality of parts to generate one image corresponding to the document. When the user inputs an operation for enabling the composite function to operation unit 163, MFP 100 enables the composite function. After enabling the composition function of MFP 100, the user sets each of a plurality of portions of one document so as to overlap the reading surface, and causes document reading unit 130 to read.

MFP100が2つの画像を合成する場合は、2つの画像の位置を合わせるために、2つの画像それぞれから同一の部分を抽出し、2つの画像間で同一の部分を重ね合わせる。このため、ユーザーが原稿を分割する複数の部分は、隣接する2つの部分で一部が重複している必要がある。重複する2つの部分それぞれには、MFP100が2つの部分それぞれを読み取った画像から抽出することが可能な、文字、記号、線画、色等の画像を含む必要がある。   When MFP 100 combines two images, in order to align the positions of the two images, the same portion is extracted from each of the two images, and the same portion is overlapped between the two images. For this reason, a plurality of portions where the user divides the document needs to partially overlap two adjacent portions. Each of the two overlapping parts needs to include images such as characters, symbols, line drawings, and colors that can be extracted from an image obtained by reading the two parts by the MFP 100.

図3は、MFPが備えるCPUが有する機能の一例を示す図である。図3に示す機能は、MFP100が備えるCPU111が、ROM113、HDD115またはCD−ROM118に記憶された画像読取プログラムを実行することにより、CPU111に形成される機能である。   FIG. 3 is a diagram illustrating an example of functions of a CPU included in the MFP. The functions shown in FIG. 3 are functions formed in CPU 111 when CPU 111 provided in MFP 100 executes an image reading program stored in ROM 113, HDD 115, or CD-ROM 118.

図3を参照して、CPU111は、読取制御部200と、合成部210と、検出部220と、欠損領域決定部230と、選択部240と、通知部250と、特徴画像検出部260と、補完部270と、を含む。   Referring to FIG. 3, the CPU 111 includes a reading control unit 200, a synthesis unit 210, a detection unit 220, a missing area determination unit 230, a selection unit 240, a notification unit 250, a feature image detection unit 260, And a complementing unit 270.

読取制御部200は、原稿読取部130を制御し、原稿読取部130に原稿を読み取らせ、原稿読取部130が出力する画像を取得する。読取制御部200は、合成機能が有効に設定されている場合、合成機能を有効にするユーザーによる操作を受け付けてから、読取終了を指示するユーザーによる操作を受け付けられるまでの間に、読取を指示するユーザーによる操作が受け付けられるごとに、原稿読取部130に原稿を読み取らせ、原稿読取部130が出力する画像を取得する。ここで、読取制御部200が走査する読取領域は、最大サイズであるA3サイズの横方向の読取領域である。なお、ユーザーが読取領域を指定する場合には、ユーザーにより指定された読取領域を読取制御部200に走査させるようにしてもよい。読取制御部200は、読取を指示するユーザーによる操作が受け付けられるごとに、原稿読取部130から入力される画像を、合成部210に出力する。   The reading control unit 200 controls the document reading unit 130 to cause the document reading unit 130 to read the document and acquire an image output from the document reading unit 130. When the compositing function is set to be valid, the reading control unit 200 instructs the reading after the user's operation for enabling the compositing function is accepted until the user's operation for instructing the end of reading is accepted. Each time an operation by the user is accepted, the original reading unit 130 is caused to read the original, and an image output by the original reading unit 130 is acquired. Here, the reading area scanned by the reading control unit 200 is a horizontal reading area of A3 size which is the maximum size. When the user designates a reading area, the reading control unit 200 may scan the reading area designated by the user. The reading control unit 200 outputs an image input from the document reading unit 130 to the combining unit 210 every time an operation by a user who instructs reading is received.

合成部210は、読取制御部200から入力される複数の画像を合成した合成画像を生成する。例えば、合成部210は、2つの画像間で同一の文字、記号、線画、色等の画像が表された共通部分を抽出し、共通部分が重なる位置で2つの画像を合成する。合成部210は、複数の画像から2つの画像を順に抽出して合成することにより、最終的に1つの合成画像を生成する。合成部210は、生成された合成画像を補完部270、検出部220および欠損領域決定部230に出力する。   The combining unit 210 generates a combined image obtained by combining a plurality of images input from the reading control unit 200. For example, the synthesizing unit 210 extracts a common portion in which images such as the same character, symbol, line drawing, and color are represented between two images, and synthesizes the two images at a position where the common portions overlap. The synthesizing unit 210 finally generates one synthesized image by sequentially extracting and synthesizing two images from a plurality of images. The combining unit 210 outputs the generated combined image to the complementing unit 270, the detecting unit 220, and the missing region determining unit 230.

検出部220は、合成部210から入力される合成画像中から欠損部分を検出する。欠損部分は、合成画像を囲む最小サイズの矩形領域中で画像が存在しない部分である。画像の存在しない部分は、合成画像を囲む最小サイズの矩形領域中で値の存在しない画素の集合である。なお、ユーザーが、MFP100の合成機能を有効にする場合、原稿読取部130に読み取らせる原稿のサイズを指定する操作をMFP100に入力する場合には、画像の存在しない部分を、ユーザーにより指定された原稿のサイズと同一のサイズを有する矩形領域内における値の存在しない画素の集合としてもよい。検出部220は、検出された欠損部分を欠損領域決定部230に出力する。検出部220は、複数の欠損部分を検出する場合、検出された複数の欠損部分を欠損領域決定部230に出力する。検出部220が検出する欠損部分は、頂角が3以上の多角形として検出される。   The detection unit 220 detects a missing portion from the combined image input from the combining unit 210. The missing portion is a portion where no image exists in a rectangular region of the minimum size surrounding the synthesized image. The non-existent portion is a set of pixels having no value in the minimum-sized rectangular region surrounding the synthesized image. When the user enables the composition function of MFP 100 and inputs an operation for specifying the size of a document to be read by document reading unit 130 to MFP 100, a portion where no image exists is specified by the user. A set of pixels having no value in a rectangular area having the same size as the size of the document may be used. The detection unit 220 outputs the detected defect portion to the defect region determination unit 230. When detecting a plurality of missing portions, the detecting unit 220 outputs the detected plurality of missing portions to the missing region determining unit 230. The missing portion detected by the detection unit 220 is detected as a polygon having an apex angle of 3 or more.

欠損領域決定部230は、検出部220から1以上の欠損部分が入力されることに応じて、合成部210から入力される合成画像中における欠損部分の位置を特定する。欠損領域決定部230は、合成画像中における欠損部分の位置に基づいて、原稿中で欠損部分に対応する欠損領域を決定する。   The missing area determination unit 230 specifies the position of the missing part in the synthesized image input from the synthesizing unit 210 in response to the input of one or more missing parts from the detecting unit 220. The missing area determination unit 230 determines a missing area corresponding to the missing part in the document based on the position of the missing part in the composite image.

欠損領域決定部230は、特徴部分検出部231を含む。特徴部分検出部231は、合成部210により合成された合成画像のうち、欠損部分の付近に存在する特徴部分を検出する。特徴部分は、他の部分と区別可能な特徴的な画像であり、例えば、記号、文字、色または模様などを含む。特徴部分検出部231は、欠損部分の全ての頂角それぞれから最も距離の近い特徴的な画像を検出し、3以上の特徴的な画像のうち3以上の頂角のいずれかとの距離が最短の特徴的な画像を特徴部分に決定する。   The missing region determination unit 230 includes a feature portion detection unit 231. The feature portion detection unit 231 detects a feature portion existing in the vicinity of the missing portion in the composite image synthesized by the synthesis unit 210. The characteristic portion is a characteristic image that can be distinguished from other portions, and includes, for example, a symbol, a character, a color, or a pattern. The feature portion detection unit 231 detects a feature image having the closest distance from each of the apex angles of the missing portion, and has the shortest distance to any one of three or more apex angles among the three or more feature images. A characteristic image is determined as a characteristic part.

欠損領域決定部230は、欠損部分と特徴部分検出部231により検出された特徴部分とを含む矩形の領域に対応する原稿中の領域を欠損領域に決定する。欠損領域決定部230は、決定された欠損領域と欠損領域を識別するための領域識別情報との組を、選択部240に出力する。   The missing area determination unit 230 determines an area in the document corresponding to a rectangular area including the missing part and the feature part detected by the feature part detection unit 231 as a missing area. The missing area determination unit 230 outputs a set of the determined missing area and area identification information for identifying the missing area to the selection unit 240.

欠損領域決定部230は、検出部220から複数の欠損部分が入力される場合、複数の欠損部分の全てを含むサイズが最小の矩形の領域を候補領域に決定する。欠損領域決定部230は、合成画像中における候補領域の位置に基づいて、原稿中で候補領域に対応する欠損領域を決定する。特徴部分検出部231は、合成画像のうち、候補領域の付近に存在する特徴部分を検出する。欠損領域決定部230は、候補領域と特徴部分検出部231により検出された特徴部分とを含む矩形の領域に対応する原稿中の領域を欠損領域に決定する。   When a plurality of missing portions are input from the detection unit 220, the missing region determining unit 230 determines a rectangular region having a minimum size including all of the plurality of missing portions as a candidate region. The missing area determination unit 230 determines a missing area corresponding to the candidate area in the document based on the position of the candidate area in the composite image. The feature part detection unit 231 detects a feature part existing in the vicinity of the candidate area in the composite image. The missing area determination unit 230 determines an area in the document corresponding to a rectangular area including the candidate area and the feature part detected by the feature part detection unit 231 as a missing area.

選択部240は、複数の読取領域のうちから欠損領域決定部230から入力される欠損領域を読み取るための読取領域を選択する。選択部240は、複数の読取領域のうち欠損領域よりもサイズが大きな1以上の読取領域であってサイズが最小の読取領域を選択し、選択された読取領域を欠損領域を読み取るための読取領域に決定する。選択部240は、読取領域を選択する場合、欠損領域を識別するための領域識別情報と、決定された読取領域との組を読取制御部200に出力するとともに、欠損領域と、その欠損領域を識別するための領域識別情報との組を特徴画像検出部260および通知部250に出力する。   The selection unit 240 selects a reading region for reading the defect region input from the defect region determination unit 230 from the plurality of reading regions. The selection unit 240 selects one or more reading areas having a size smaller than the missing area and having the smallest size from among the plurality of reading areas, and reads the selected reading area for the missing area. To decide. When selecting the reading area, the selection unit 240 outputs a set of the area identification information for identifying the missing area and the determined reading area to the reading control unit 200, and selects the missing area and the missing area. A set with the region identification information for identification is output to the feature image detection unit 260 and the notification unit 250.

選択部240は、分割部241を含む。分割部241は、欠損領域のサイズが複数の読取領域のうち最大の読取領域のサイズより大きい場合に、欠損領域を2つに分割する。本実施の形態では、最大の読取領域のサイズはA3サイズである。欠損領域のサイズがA3サイズより大きい場合、分割部241は、欠損領域を2つに分割する。分割部241は、分割後の2つの欠損領域のサイズがA3サイズ以下になるまで欠損領域を分割する。   The selection unit 240 includes a division unit 241. The dividing unit 241 divides the missing area into two when the size of the missing area is larger than the largest reading area among the plurality of reading areas. In the present embodiment, the maximum reading area size is A3 size. When the size of the defect area is larger than the A3 size, the dividing unit 241 divides the defect area into two. The dividing unit 241 divides the defect area until the size of the two defect areas after the division becomes A3 size or less.

分割部241は、欠損領域が1つの欠損部分を含む場合、分割後の2つの欠損領域にそれぞれ含まれる2つの欠損部分それぞれについて、1つの欠損部分を含む生成指示を欠損領域決定部230に出力する。分割部241は、欠損領域が複数の欠損部分を含む場合、分割後の部分が複数の欠損部分の少なくとも1つを含むように欠損領域を2つに分割する。分割部241は、分割後の2つの欠損領域それぞれについて、その欠損領域が1つの欠損部分を含む場合は、その1つの欠損部分を含む生成指示を欠損領域決定部230に出力し、その欠損領域が複数の欠損部分を含む場合は、複数の欠損部分を含む生成指示を欠損領域決定部230に出力する。   When the defective area includes one defective part, the dividing unit 241 outputs a generation instruction including one defective part to each of the two defective parts included in the divided two defective areas, to the defective area determining unit 230. To do. When the defective region includes a plurality of defective portions, the dividing unit 241 divides the defective region into two so that the divided portion includes at least one of the plurality of defective portions. For each of the two missing areas after the division, when the missing area includes one missing part, the dividing unit 241 outputs a generation instruction including the one missing part to the missing area determining unit 230, and the missing area In the case where includes a plurality of missing portions, a generation instruction including a plurality of missing portions is output to the missing region determining unit 230.

欠損領域決定部230は、分割部241から1つの欠損部分を含む生成指示が入力される場合、生成指示に含まれる欠損部分について欠損領域を決定し、決定された欠損領域と欠損領域を識別するための領域識別情報との組を、選択部240に出力する。欠損領域決定部230は、分割部241から複数の欠損部分を含む生成指示が入力される場合、生成指示に含まれる複数の欠損部分の全てを含むサイズが最小の矩形の領域を候補領域に決定し、合成画像中における候補領域の位置に基づいて欠損領域を決定し、決定された欠損領域と欠損領域を識別するための領域識別情報との組を、選択部240に出力する。   When a generation instruction including one defective portion is input from the dividing unit 241, the defective region determination unit 230 determines a defective region for the defective portion included in the generation instruction, and identifies the determined defective region and the defective region A pair with region identification information for output is output to the selection unit 240. When a generation instruction including a plurality of missing parts is input from the dividing unit 241, the missing area determination unit 230 determines a rectangular area having a minimum size including all of the plurality of missing parts included in the generation instruction as a candidate area. Then, the defective region is determined based on the position of the candidate region in the composite image, and a set of the determined defective region and region identification information for identifying the defective region is output to the selection unit 240.

選択部240は、分割部241が欠損領域決定部230に生成指示を出力した後に欠損領域決定部230から入力される複数の欠損領域それぞれについて、その欠損領域を読み取るための読取領域を選択し、選択された読取領域を欠損領域を読み取るための読取領域に決定する。選択部240は、決定された読取領域ごとに、欠損領域を識別するための領域識別情報と、決定された読取領域との組を読取制御部200に出力するとともに、欠損領域と、その欠損領域を識別するための領域識別情報との組を特徴画像検出部260および通知部250に出力する。   The selection unit 240 selects a reading region for reading the defect region for each of the plurality of defect regions input from the defect region determination unit 230 after the dividing unit 241 outputs the generation instruction to the defect region determination unit 230. The selected reading area is determined as a reading area for reading the defective area. The selection unit 240 outputs, to the reading control unit 200, a set of region identification information for identifying a defective region and the determined reading region for each determined reading region, and also includes the defective region and the defective region. Are output to the feature image detecting unit 260 and the notification unit 250.

通知部250は、選択部240から欠損領域と領域識別情報との組が1以上入力される。通知部250は、欠損領域と領域識別情報との組ごとに、操作パネル160の表示部161に案内画像を表示する。ここで、案内画像は、欠損領域決定部230により決定された欠損領域を、選択部240により選択された読取領域に配置するユーザーによる動作を支援する画像である。案内画像は、原稿読取部130の読取面の基準位置を示す基準画像と、特徴部分検出部231により検出された特徴部分との相対的な位置を示す画像を含む。本実施の形態においては、基準位置は、原稿読取部130の読取面の左上の頂角である。また、案内画像は、原稿読取部130の読取面に対する原稿の向きを示す画像を含む。具体的には、案内画像は、合成画像と、合成画像中の欠損領域の画像とを含む。案内画像中で欠損領域の画像は、特徴部分が左上となるように、必要に応じて回転して配置される。また、通知部250は、欠損領域と領域識別情報との組ごとに、操作パネル160の表示部161に周辺補完ボタンを表示させる。   The notification unit 250 receives one or more pairs of missing regions and region identification information from the selection unit 240. The notification unit 250 displays a guide image on the display unit 161 of the operation panel 160 for each set of the missing region and the region identification information. Here, the guide image is an image that assists the user's operation of arranging the defective area determined by the defective area determination unit 230 in the reading area selected by the selection unit 240. The guide image includes a reference image that indicates the reference position of the reading surface of the document reading unit 130 and an image that indicates a relative position between the feature portion detected by the feature portion detection unit 231. In the present embodiment, the reference position is the upper left apex angle of the reading surface of document reading unit 130. The guide image includes an image indicating the orientation of the document with respect to the reading surface of the document reading unit 130. Specifically, the guidance image includes a composite image and an image of a defective area in the composite image. The image of the defect area in the guide image is rotated and arranged as necessary so that the characteristic part is at the upper left. In addition, the notification unit 250 displays a peripheral complement button on the display unit 161 of the operation panel 160 for each pair of the missing region and the region identification information.

ユーザーは、案内画像を視認することにより、欠損部分に対応する原稿の欠損領域を認識することができる。また、ユーザーは、原稿の向きが案内画像で示される向きで、かつ原稿に含まれる特徴部分が読取面の基準位置である左上の頂角に位置するように、原稿を原稿読取部130に容易にセットすることができる。   By visually recognizing the guide image, the user can recognize the missing area of the document corresponding to the missing part. In addition, the user can easily place the document on the document reading unit 130 so that the direction of the document is the direction indicated by the guide image and the characteristic portion included in the document is positioned at the upper left apex which is the reference position of the reading surface. Can be set.

この段階で、ユーザーは、案内画像で示される欠損領域に含まれる欠損部分が、周辺の色と同じベタ画像か否かを原稿を見て判断できる。欠損部分が周辺の色と同じベタ画像の場合、欠損領域を読み込むことなく、合成画像を補完することが可能である。このため、通知部250は、周辺補完ボタンを指示する操作を受け付ける場合、読取制御部200に禁止指示を出力するとともに、補完部270に周辺補完指示を出力する。禁止指示および周辺補完指示は、案内画像に対応する欠損領域を識別するための領域識別情報を含む。   At this stage, the user can determine by looking at the document whether or not the defect portion included in the defect area indicated by the guide image is the same solid image as the surrounding color. When the missing part is a solid image having the same color as the surrounding color, it is possible to complement the composite image without reading the missing area. For this reason, the notification unit 250 outputs a prohibition instruction to the reading control unit 200 and outputs a peripheral complement instruction to the complementing unit 270 when accepting an operation to instruct the peripheral complementing button. The prohibition instruction and the peripheral complement instruction include area identification information for identifying a missing area corresponding to the guide image.

一方、ユーザーが、案内画像にしたがって原稿を読取面に載置し、読取を指示する操作を操作部163に入力すれば、通知部250は、読取指示を読取制御部200に出力する。読取指示は、案内画像に対応する欠損領域を識別するための領域識別情報を含む。   On the other hand, when the user places an original on the reading surface according to the guide image and inputs an operation for instructing reading to the operation unit 163, the notification unit 250 outputs the reading instruction to the reading control unit 200. The reading instruction includes area identification information for identifying a missing area corresponding to the guide image.

読取制御部200は、通知部250から読取指示が入力されることに応じて、選択部240から入力される読取領域と領域識別情報の組のうち、読取指示に含まれる領域識別情報を含む組を選択し、選択された組に含まれる読取領域を決定する。読取制御部200は、原稿読取部130を制御して、決定された読取領域で原稿を読み取らせ、原稿読取部130が出力する画像を補完画像とし、補完画像と読取指示に含まれる領域識別情報との組を特徴画像検出部260に出力する。   In response to the reading instruction input from the notification unit 250, the reading control unit 200 includes a group including the region identification information included in the reading instruction among the combination of the reading region and the region identification information input from the selection unit 240. And the reading area included in the selected set is determined. The reading control unit 200 controls the document reading unit 130 to read the document in the determined reading region, sets the image output from the document reading unit 130 as a complementary image, and region identification information included in the complementary image and the reading instruction. Are output to the feature image detection unit 260.

特徴画像検出部260は、選択部240から欠損領域と領域識別情報との組が入力され、読取制御部200から補完画像と領域識別情報との組が入力される。特徴画像検出部260は、読取制御部200から補完画像と領域識別情報との組が入力されることに応じて、選択部240から入力される欠損領域と領域識別情報との組に基づいて、読取制御部200から入力される領域識別情報と組になる欠損領域を特定する。特徴画像検出部260は、読取制御部200から入力される補完画像中から欠損領域中の特徴部分と同じ画像を特徴画像として抽出する。補完画像中の特徴画像の相対位置と欠損領域中の特徴部分の相対位置との差が所定の範囲内である場合には、合成画像の欠損部分が補完画像内に含まれる。この場合、特徴画像検出部260は、合成指示を補完部270に出力する。合成指示は、読取制御部200から入力される領域識別情報と補完画像とを含む。一方、補完画像から特徴画像が検出されない場合には、合成画像の欠損部分が補完画像内に含まれていない。補完画像から特徴画像が検出された場合でも、補完画像中の特徴画像の相対位置と欠損領域中の特徴部分の相対位置との差が所定の範囲よりも大きく離間している場合には、合成画像の欠損部分が補完画像外に位置し、補完画像内に含まれていない可能性がある。これらの場合、特徴画像検出部260は、通知指示を読取制御部200および通知部250に出力する。   The feature image detection unit 260 receives a set of a missing region and region identification information from the selection unit 240, and receives a set of a complementary image and region identification information from the reading control unit 200. The feature image detection unit 260 receives the combination of the complementary image and the region identification information from the reading control unit 200, and based on the combination of the missing region and the region identification information input from the selection unit 240. A missing area paired with the area identification information input from the reading control unit 200 is specified. The feature image detection unit 260 extracts the same image as the feature part in the defective area from the complementary image input from the reading control unit 200 as a feature image. If the difference between the relative position of the feature image in the complement image and the relative position of the feature portion in the missing area is within a predetermined range, the missing portion of the composite image is included in the complement image. In this case, the feature image detection unit 260 outputs a synthesis instruction to the complement unit 270. The compositing instruction includes area identification information input from the reading control unit 200 and a complementary image. On the other hand, when no feature image is detected from the complement image, the missing portion of the composite image is not included in the complement image. Even if a feature image is detected from the complement image, if the difference between the relative position of the feature image in the complement image and the relative position of the feature portion in the missing region is far greater than the predetermined range, There is a possibility that the missing portion of the image is located outside the complementary image and is not included in the complementary image. In these cases, the feature image detection unit 260 outputs a notification instruction to the reading control unit 200 and the notification unit 250.

通知部250は、特徴画像検出部260から通知指示が入力された場合、操作パネル160の表示部161に案内画像を表示するとともに、原稿が適切にセットされなかった旨をユーザーに通知する。この場合、ユーザーは原稿読取部130に原稿をセットする。読取制御部200は、特徴画像検出部260から通知指示が入力された場合、操作部163が読取を指示する操作を受け付けることに応じて、原稿読取部130を制御して、先に決定された読取領域で原稿を読み取らせ、原稿読取部130が出力する画像を補完画像とし、補完画像と領域識別情報との組を特徴画像検出部260に出力する。   When a notification instruction is input from the feature image detection unit 260, the notification unit 250 displays a guide image on the display unit 161 of the operation panel 160 and notifies the user that the document has not been properly set. In this case, the user sets a document on the document reading unit 130. When a notification instruction is input from the feature image detection unit 260, the reading control unit 200 controls the document reading unit 130 in response to accepting an operation instructing the reading by the operation unit 163, and is determined in advance. The original is read in the reading area, the image output from the original reading unit 130 is set as a complementary image, and a set of the complementary image and the area identification information is output to the feature image detection unit 260.

通知部250は、選択部240から欠損領域と領域識別情報との組が複数入力される場合、操作パネル160の表示部161に複数の欠損領域にそれぞれ対応する複数の案内画像を順次表示する。これにより、ユーザーは、複数の原稿の向きが案内画像で示される向きで、かつ複数の原稿に含まれる特徴部分が読取面の基準位置である左上の頂角に位置するように、複数の原稿を原稿読取部130に容易に順次セットすることができる。   When a plurality of sets of missing regions and region identification information are input from the selection unit 240, the notification unit 250 sequentially displays a plurality of guide images respectively corresponding to the plurality of missing regions on the display unit 161 of the operation panel 160. As a result, the user can make the plurality of originals so that the orientation of the plurality of originals is the direction indicated by the guide image and the characteristic portion included in the plurality of originals is located at the upper left apex which is the reference position of the reading surface. Can be easily and sequentially set on the document reading unit 130.

補完部270は、合成部210から合成画像が入力され、特徴画像検出部260から合成指示が入力されることに応じて、合成指示に含まれる補完画像で合成画像を補完する。補完部270は、補完画像と合成画像とで同一の画像が重なる位置で補完画像を合成画像と合成することにより、合成画像を補完する。これにより、欠損部分が補完画像によって補完される。   The complement unit 270 supplements the composite image with the supplement image included in the compositing instruction in response to the composite image input from the compositing unit 210 and the compositing instruction input from the feature image detection unit 260. The complement unit 270 complements the composite image by combining the supplement image with the composite image at a position where the same image overlaps the supplement image and the composite image. Thereby, a missing part is complemented with a complement image.

補完部270は、周辺補完部271を含む。周辺補完部271は、通知部250から周辺補完指示が入力されることに応じて、合成画像中で、周辺補完指示に含まれる領域識別情報で特定される欠損領域を特定し、合成画像中の欠損領域に基づいて、合成画像を補完する。具体的には、周辺補完部271は、合成画像の欠損領域に含まれる欠損部分を、欠損部分に含まれるすべての画素を周辺の領域の画素の値と同じ値にする。これにより、欠損部分が周辺と同じ色のベタ画像となり、合成画像が補完される。   The complement unit 270 includes a peripheral complement unit 271. In response to the input of the peripheral complement instruction from the notification unit 250, the peripheral complementing unit 271 specifies a missing region specified by the region identification information included in the peripheral complementary instruction in the composite image, and The composite image is complemented based on the missing area. Specifically, the peripheral complementing unit 271 sets all of the pixels included in the missing part to the same value as the values of the pixels in the peripheral area for the missing part included in the missing area of the composite image. Thereby, the missing part becomes a solid image of the same color as the surrounding area, and the composite image is complemented.

図4は、原稿読取部の一例を示す模式的平面図である。図4を参照して、原稿読取部130の上面に2つの矩形状の読取面131,132が配置される。読取面131は、原稿読取部130の上面の略中央部に位置する。読取面132は、上下に延びるように読取面131の左に位置する。読取面132は、自動原稿搬送装置120により搬送される原稿を読み取るために使用される。   FIG. 4 is a schematic plan view showing an example of the document reading unit. Referring to FIG. 4, two rectangular reading surfaces 131 and 132 are arranged on the upper surface of document reading unit 130. The reading surface 131 is located substantially at the center of the upper surface of the document reading unit 130. The reading surface 132 is located on the left side of the reading surface 131 so as to extend vertically. The reading surface 132 is used for reading a document conveyed by the automatic document conveying device 120.

読取面131には、矩形の複数の読取領域が予め設定される。複数の読取領域それぞれは、読取面131中の左上の位置を基準に読取面に配置される。したがって、複数の読取領域それぞれの左辺および上辺は、読取面131の左辺および上辺にそれぞれ一致する。読取面131の左には、複数の読取領域の下辺をそれぞれ示す目盛りが形成される。読取面131の上には、複数の読取領域の右辺をそれぞれ示す目盛りが形成される。読取面131の左上には、読取面131の基準位置を示す基準画像133が形成される。本例では、基準画像133は矢印状を有し、基準位置として読取面131の左上の頂角の位置を示す。   A plurality of rectangular reading areas are set in advance on the reading surface 131. Each of the plurality of reading areas is arranged on the reading surface with the upper left position in the reading surface 131 as a reference. Accordingly, the left side and the upper side of each of the plurality of reading areas coincide with the left side and the upper side of the reading surface 131, respectively. On the left side of the reading surface 131, a scale indicating each of the lower sides of the plurality of reading areas is formed. On the reading surface 131, a scale indicating each of the right sides of the plurality of reading areas is formed. A reference image 133 indicating the reference position of the reading surface 131 is formed on the upper left of the reading surface 131. In this example, the reference image 133 has an arrow shape, and indicates the position of the top left apex angle of the reading surface 131 as the reference position.

図5は、原稿読取部に読み取らせる原稿を示す模式図である。図5を参照して、原稿1はA0サイズを有する。これに対し、読取面131の最大の読取領域はA3サイズである。そのため、原稿1の全体を読取面131に載置して原稿読取部130に読み取らせることができない。そこで、ユーザーは、原稿1を複数の部分、図5の例では15個の部分M1〜M15に分割する。複数のM1〜M15それぞれのサイズは、A3サイズよりも小さい。   FIG. 5 is a schematic diagram showing a document to be read by the document reading unit. Referring to FIG. 5, document 1 has an A0 size. On the other hand, the maximum reading area of the reading surface 131 is A3 size. Therefore, the entire document 1 cannot be placed on the reading surface 131 and read by the document reading unit 130. Therefore, the user divides the document 1 into a plurality of parts, that is, 15 parts M1 to M15 in the example of FIG. The sizes of the plurality of M1 to M15 are smaller than the A3 size.

ユーザーは、MFP100の合成機能を有効に設定した後、原稿1の部分M1を読取面131と重なるように位置を合わせてセットする。この状態で、ユーザーは、操作パネル160の所定の操作部163を操作することにより、A3サイズの読取領域を選択する。ユーザーは、操作パネル160の所定の操作部163をさらに操作することにより、選択したサイズで部分M1を原稿読取部130に読み取らせ、部分M1に対応する画像を生成させる。同様に、ユーザーは、残りの部分M2〜M15それぞれを順次読取面131と重なるように位置を合わせてセットし、操作部163を操作する。これにより、操作部163が操作されるごとに部分M2〜M15が原稿読取部130に読み取られ、部分M2〜M15に対応する画像が生成される。   The user sets the composition function of the MFP 100 to be valid, and then sets the position so that the portion M1 of the document 1 overlaps the reading surface 131. In this state, the user operates the predetermined operation unit 163 of the operation panel 160 to select an A3 size reading area. The user further operates a predetermined operation unit 163 of the operation panel 160 to cause the document reading unit 130 to read the portion M1 with the selected size and generate an image corresponding to the portion M1. Similarly, the user sets the remaining portions M <b> 2 to M <b> 15 so as to sequentially overlap the reading surface 131 and operates the operation unit 163. Thus, each time the operation unit 163 is operated, the parts M2 to M15 are read by the document reading unit 130, and images corresponding to the parts M2 to M15 are generated.

図6は、原稿読取部により生成される画像を示す模式図である。図6を参照して、部分M1〜M15にそれぞれ対応する画像G1〜G15が原稿読取部130により生成される。図6においては、視認を容易にするため、画像G1,G3,G5,G7,G9,G11,G13,G15が実線により図示され、画像G2,G4,G6,G8,G10,G12,G14が点線により図示される。読取領域のサイズは部分M1〜M15それぞれのサイズよりも大きいので、生成される画像G1〜G15には、対応する部分M1〜M15の画像に加えて隣接する部分の一部の画像が含まれる。例えば、画像G1には、部分M1の画像に加えて、隣接する部分M2,M6,M7の一部の画像が含まれる。画像G2には、部分M2の画像に加えて、隣接する部分M1,M3,M6,M7,M8の一部の画像が含まれる。このように、隣接する2つの画像には共通部分が含まれる。   FIG. 6 is a schematic diagram illustrating an image generated by the document reading unit. Referring to FIG. 6, original reading unit 130 generates images G1 to G15 corresponding to portions M1 to M15, respectively. In FIG. 6, for easy visual recognition, the images G1, G3, G5, G7, G9, G11, G13, and G15 are illustrated by solid lines, and the images G2, G4, G6, G8, G10, G12, and G14 are dotted lines. Is illustrated. Since the size of the reading area is larger than the size of each of the parts M1 to M15, the generated images G1 to G15 include some images of adjacent parts in addition to the corresponding parts M1 to M15. For example, the image G1 includes some images of the adjacent portions M2, M6, and M7 in addition to the image of the portion M1. The image G2 includes a part of the images of the adjacent parts M1, M3, M6, M7, and M8 in addition to the image of the part M2. Thus, a common part is included in two adjacent images.

読取制御部200は、原稿読取部130が出力する画像G1〜G15を取得し、合成部210に出力する。合成部210は、画像G1〜G15のうち、2つの画像間で同一の共通部分を抽出し、共通部分が重なる位置で2つの画像を合成する。合成部210は、合成された画像および残りの画像G1〜G15から2つの画像を順に抽出して合成することにより、最終的に1つの合成画像2を生成する。合成部210は、生成された合成画像2を補完部270、検出部220および欠損領域決定部230に出力する。   The reading control unit 200 acquires the images G <b> 1 to G <b> 15 output from the document reading unit 130 and outputs them to the combining unit 210. The synthesizing unit 210 extracts the same common part between the two images from the images G1 to G15, and synthesizes the two images at positions where the common parts overlap. The synthesizing unit 210 finally generates one synthesized image 2 by sequentially extracting and synthesizing two images from the synthesized image and the remaining images G1 to G15. The combining unit 210 outputs the generated combined image 2 to the complementing unit 270, the detecting unit 220, and the missing region determining unit 230.

原稿1の部分M1〜M15が原稿読取部130の読取面131に適切にセットされなかった場合には、合成画像2中に画像が存在しない欠損部分が発生する。検出部220は、合成部210から入力される合成画像2中から欠損部分を検出する。検出部220は、検出された1以上の欠損部分を欠損領域決定部230に出力する。   If the portions M1 to M15 of the document 1 are not properly set on the reading surface 131 of the document reading unit 130, a missing portion in which no image exists in the composite image 2 occurs. The detection unit 220 detects a missing portion from the composite image 2 input from the synthesis unit 210. The detection unit 220 outputs the detected one or more defective portions to the defective region determination unit 230.

図7および図8は、検出部から1の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。図7を参照して、欠損領域決定部230は、検出部220から1の欠損部分が入力される場合、合成部210から入力される合成画像2中における1の欠損部分Yの位置を特定する。特徴部分検出部231は、合成画像2の欠損部分Yの付近に存在する特徴部分Zを検出し、検出された特徴部分Zと欠損部分Yとを含む矩形の領域Rを特定する。図8を参照して、欠損領域決定部230は、特定された矩形の領域Rに対応する原稿1中の領域を欠損領域Xに決定する。欠損領域Xの左右方向の寸法(横幅)はLxであり、上下方向の寸法(縦幅)はLyである。   7 and 8 are diagrams for explaining the operation of the missing region determination unit when one missing part is input from the detection unit. Referring to FIG. 7, when one missing portion is input from detection unit 220, missing region determination unit 230 specifies the position of one missing portion Y in composite image 2 input from combining unit 210. . The feature portion detection unit 231 detects a feature portion Z that exists in the vicinity of the missing portion Y of the composite image 2 and identifies a rectangular region R that includes the detected feature portion Z and the missing portion Y. Referring to FIG. 8, the missing area determination unit 230 determines the area in the document 1 corresponding to the specified rectangular area R as the missing area X. The dimension (horizontal width) in the left-right direction of the defect region X is Lx, and the dimension (vertical width) in the vertical direction is Ly.

図9および図10は、検出部から複数の欠損部分が入力されるときの欠損領域決定部の動作を説明するための図である。図9を参照して、欠損領域決定部230は、検出部220から複数の欠損部分が入力される場合、合成部210から入力される合成画像2中における複数の欠損部分Y1,Y2の位置を特定し、複数の欠損部分Y1,Y2の全てを含むサイズが最小の矩形の領域を候補領域Cに決定する。特徴部分検出部231は、合成画像2のうち、候補領域Cの付近に存在する特徴部分Zを検出し、検出された特徴部分Zと候補領域Cと含む矩形の領域Rを特定する。図10を参照して、欠損領域決定部230は、領域Rに対応する原稿1中の領域を欠損領域Xに決定する。欠損領域Xの左右方向の寸法(横幅)はLxであり、上下方向の寸法(縦幅)はLyである。   FIG. 9 and FIG. 10 are diagrams for explaining the operation of the missing area determination unit when a plurality of missing parts are input from the detection unit. Referring to FIG. 9, when a plurality of missing portions are input from detection unit 220, missing region determining unit 230 determines the positions of the plurality of missing portions Y <b> 1 and Y <b> 2 in composite image 2 input from combining unit 210. A rectangular region having the smallest size including all of the plurality of missing portions Y1 and Y2 is determined as the candidate region C. The feature portion detection unit 231 detects a feature portion Z that exists in the vicinity of the candidate region C in the composite image 2 and identifies a rectangular region R that includes the detected feature portion Z and the candidate region C. Referring to FIG. 10, missing area determination unit 230 determines an area in document 1 corresponding to area R as missing area X. The dimension (horizontal width) in the left-right direction of the defect region X is Lx, and the dimension (vertical width) in the vertical direction is Ly.

欠損領域決定部230は、決定された欠損領域Xと欠損領域Xを識別するための領域識別情報との組を選択部240に出力する。欠損領域Xのサイズが最大の読取領域のサイズ以下の場合、選択部240は、欠損領域決定部230から入力される欠損領域Xよりも大きな1以上の読取領域であってサイズが最小の読取領域を複数の読取領域のうちから選択する。   The missing region determination unit 230 outputs a set of the determined defective region X and region identification information for identifying the defective region X to the selection unit 240. When the size of the defect area X is equal to or smaller than the size of the maximum reading area, the selection unit 240 is one or more reading areas larger than the defect area X input from the defect area determination unit 230 and has the smallest size. Is selected from a plurality of reading areas.

例えば、欠損領域Xの横幅Lxが210mm以下であり、縦幅Lyが148mm以下である場合には、A5サイズの横方向の読取領域が選択される。欠損領域Xの横幅Lxが210mmより大きく257mm以下あり、縦幅Lyが148mmより大きく182mm以下である場合には、B5サイズの横方向の読取領域が選択される。欠損領域Xの横幅Lxが257mmより大きく297mm以下あり、縦幅Lyが182mmより大きく210mm以下である場合には、A4サイズの横方向の読取領域が選択される。欠損領域Xの横幅Lxが297mmより大きく364mm以下あり、縦幅Lyが210mmより大きく257mm以下である場合には、B4サイズの横方向の読取領域が選択される。欠損領域Xの横幅Lxが364mmより大きく420mm以下あり、縦幅Lyが257mmより大きく297mm以下である場合には、A3サイズの横方向の読取領域が選択される。   For example, when the horizontal width Lx of the defect area X is 210 mm or less and the vertical width Ly is 148 mm or less, a horizontal reading area of A5 size is selected. When the horizontal width Lx of the defect area X is greater than 210 mm and not greater than 257 mm, and the vertical width Ly is greater than 148 mm and not greater than 182 mm, the B5 size horizontal reading area is selected. When the horizontal width Lx of the defect area X is greater than 257 mm and equal to or less than 297 mm, and the vertical width Ly is greater than 182 mm and equal to or less than 210 mm, the A4 size horizontal reading area is selected. When the lateral width Lx of the defect area X is greater than 297 mm and less than or equal to 364 mm, and the longitudinal width Ly is greater than 210 mm and less than or equal to 257 mm, a B4 size lateral reading area is selected. When the horizontal width Lx of the defect area X is greater than 364 mm and 420 mm or less, and the vertical width Ly is greater than 257 mm and 297 mm or less, the A3 size horizontal reading area is selected.

欠損領域Xの横幅Lxが148mm以下であり、縦幅Lyが210mm以下である場合には、A5サイズの縦方向の読取領域が選択される。欠損領域Xの横幅Lxが148mmより大きく182mm以下あり、縦幅Lyが210mmより大きく257mm以下である場合には、B5サイズの縦方向の読取領域が選択される。欠損領域Xの横幅Lxが182mmより大きく210mm以下あり、縦幅Lyが257mmより大きく297mm以下である場合には、A4サイズの縦方向の読取領域が選択される。   When the horizontal width Lx of the defect area X is 148 mm or less and the vertical width Ly is 210 mm or less, an A5 size vertical reading area is selected. When the horizontal width Lx of the defect area X is greater than 148 mm and equal to or less than 182 mm, and the vertical width Ly is greater than 210 mm and equal to or less than 257 mm, a B5 size vertical reading area is selected. When the horizontal width Lx of the defect area X is greater than 182 mm and 210 mm or less, and the vertical width Ly is greater than 257 mm and 297 mm or less, the A4 size vertical reading area is selected.

選択部240は、選択された読取領域を欠損領域Xを読み取るための読取領域に決定し、欠損領域を識別するための領域識別情報と、決定された読取領域との組を読取制御部200に出力する。また、選択部240は、欠損領域Xと、その欠損領域Xを識別するための領域識別情報との組を特徴画像検出部260および通知部250に出力する。   The selection unit 240 determines the selected reading region as a reading region for reading the defective region X, and sets the combination of the region identification information for identifying the defective region and the determined reading region to the reading control unit 200. Output. In addition, the selection unit 240 outputs a set of the defect region X and region identification information for identifying the defect region X to the feature image detection unit 260 and the notification unit 250.

図11および図12は、欠損領域のサイズが最大の読取領域のサイズより大きいときの選択部の動作を説明するための図である。図11を参照して、欠損領域Xのサイズが最大の読取領域のサイズより大きい場合において、対応する欠損領域Rが1つの欠損部分Yを含む場合、分割部241は、欠損領域Xを2つに分割する。図11の例では、分割後の2つの欠損領域r1,r2はそれぞれ欠損部分Y1,Y2を含む。分割部241は、欠損領域r1,r2それぞれが1つの欠損部分Y1,Y2を含む生成指示を欠損領域決定部230に出力する。   11 and 12 are diagrams for explaining the operation of the selection unit when the size of the defective area is larger than the size of the maximum reading area. Referring to FIG. 11, in the case where the size of defective region X is larger than the size of the largest reading region, when corresponding defective region R includes one defective portion Y, dividing unit 241 includes two defective regions X. Divide into In the example of FIG. 11, the two missing regions r1 and r2 after division include the missing portions Y1 and Y2, respectively. The dividing unit 241 outputs a generation instruction to the missing region determining unit 230 in which each of the missing regions r1 and r2 includes one missing portion Y1 and Y2.

図12を参照して、欠損領域Xのサイズが最大の読取領域のサイズより大きい場合において、対応する欠損領域Rが複数の欠損部分Y1,Y2を含む場合、分割部241は、分割後の部分が複数の欠損部分Y1,Y2それぞれを含むように欠損領域Xを2つに分割する。図12の例では、分割後の2つの欠損領域r1,r2はそれぞれ欠損部分Y1,Y2を含む。分割部241は、欠損領域r1に含まれる欠損部分Y1を含む生成指示と、欠損領域r2に含まれる欠損部分Y2を含む生成指示と、を欠損領域決定部230に出力する。   Referring to FIG. 12, in the case where the size of defective region X is larger than the size of the largest reading region, when corresponding defective region R includes a plurality of defective portions Y1, Y2, dividing unit 241 Divides the defect region X into two so that each includes a plurality of defect portions Y1, Y2. In the example of FIG. 12, the two missing regions r1 and r2 after the division include the missing portions Y1 and Y2, respectively. The dividing unit 241 outputs a generation instruction including the defective portion Y1 included in the defective region r1 and a generation instruction including the defective portion Y2 included in the defective region r2 to the defective region determining unit 230.

分割部241は、分割後の2つの欠損領域r1,r2のサイズが最大の読取領域のサイズ以下になるまで、上記の欠損領域r1,r2の分割と欠損領域決定部230への生成指示の出力とを繰り返す。   The dividing unit 241 divides the defect regions r1 and r2 and outputs a generation instruction to the defect region determination unit 230 until the size of the two defect regions r1 and r2 after the division is equal to or less than the size of the maximum reading region. And repeat.

欠損領域決定部230は、分割部241から1つの欠損部分Y1を含む生成指示が入力される場合、生成指示に含まれる欠損部分Y1について欠損領域Xを決定する。同様に、欠損領域決定部230は、分割部241から1つの欠損部分Y2を含む生成指示が入力される場合、生成指示に含まれる欠損部分Y2について欠損領域Xを決定する。   When the generation instruction including one defect portion Y1 is input from the dividing unit 241, the defect region determination unit 230 determines the defect region X for the defect portion Y1 included in the generation instruction. Similarly, when a generation instruction including one defective portion Y2 is input from the dividing unit 241, the defective region determination unit 230 determines a defective region X for the defective portion Y2 included in the generation instruction.

図12においては、分割部241によって分割された後の部分が複数の欠損部分Y1,Y2それぞれを含むように欠損領域Xを2つに分割したが、分割部241によって分割された後の部分が複数の欠損部分を含む場合がある。この場合、分割部241は、複数の欠損部分を含む生成指示を欠損領域決定部230に出力する。欠損領域決定部230は、分割部241から複数の欠損部分を含む生成指示が入力される場合、生成指示に含まれる複数の欠損部分の全てを含むサイズが最小の矩形の領域を候補領域Cに決定し、合成画像2中における候補領域Cの位置に基づいて欠損領域Xを決定する。欠損領域決定部230は、決定された欠損領域Xと欠損領域を識別するための領域識別情報との組を、選択部240に出力する。   In FIG. 12, the defect region X is divided into two parts so that the part after being divided by the dividing unit 241 includes a plurality of missing parts Y1 and Y2, but the part after being divided by the dividing part 241 is It may contain multiple missing parts. In this case, the dividing unit 241 outputs a generation instruction including a plurality of missing portions to the missing region determining unit 230. When a generation instruction including a plurality of missing parts is input from the dividing unit 241, the missing area determination unit 230 sets a rectangular area having a minimum size including all of the plurality of missing parts included in the generation instruction as a candidate area C. The defect area X is determined based on the position of the candidate area C in the composite image 2. The missing region determination unit 230 outputs a set of the determined defective region X and region identification information for identifying the defective region to the selection unit 240.

分割部241が欠損領域決定部230に生成指示を出力した後、選択部240は、欠損領域決定部230から入力される欠損領域Xそれぞれについて、その欠損領域Xを読み取るための読取領域を選択する。選択部240は、選択された読取領域を欠損領域Xを読み取るための読取領域に決定し、決定された読取領域ごとに、欠損領域を識別するための領域識別情報と、決定された読取領域との組を読取制御部200に出力する。また、選択部240は、欠損領域Xと、その欠損領域Xを識別するための領域識別情報との組を特徴画像検出部260および通知部250に出力する。   After the dividing unit 241 outputs the generation instruction to the defective region determining unit 230, the selecting unit 240 selects a reading region for reading the defective region X for each of the defective regions X input from the defective region determining unit 230. . The selection unit 240 determines the selected reading area as a reading area for reading the defective area X, and for each determined reading area, area identification information for identifying the defective area, the determined reading area, Are output to the reading control unit 200. In addition, the selection unit 240 outputs a set of the defect region X and region identification information for identifying the defect region X to the feature image detection unit 260 and the notification unit 250.

図13は、通知部の動作を説明するための図である。図13を参照して、通知部250は、選択部240から欠損領域Rと領域識別情報との組が1以上入力されると、表示部161に合成画像2を表示する。図13の合成画像2には、種々の図形および文字が存在する。また、合成画像2には、欠損部分Yが存在するとともに、欠損部分Yの付近に三角形状の図形の特徴部分Zが存在する。   FIG. 13 is a diagram for explaining the operation of the notification unit. Referring to FIG. 13, when one or more pairs of missing region R and region identification information are input from selection unit 240, notification unit 250 displays composite image 2 on display unit 161. Various figures and characters exist in the composite image 2 of FIG. Further, the composite image 2 includes a missing portion Y and a triangular shaped feature portion Z in the vicinity of the missing portion Y.

図14は、合成画像に欠損部分が存在するときの通知部の動作を説明するための図である。図14を参照して、合成画像2に欠損部分Yが存在する場合には、通知部250は表示部161に通知画像3を表示する。通知画像3は、合成画像2に欠損部分Yが存在することをユーザーに通知する画像であり、周辺補完ボタン3aおよび再読取ボタン3bを含む。通知部250は、選択部240から欠損領域Rと領域識別情報との組が複数入力される場合、表示部161に複数の欠損領域Rにそれぞれ対応する複数の通知画像3を順次表示する。ユーザーは、通知画像3で示される欠損部分Yが周辺の色と同じベタ画像か否かを判断できる。ユーザーは、欠損部分Yが周辺の色と同じベタ画像である場合には周辺補完ボタン3aを操作する。   FIG. 14 is a diagram for explaining the operation of the notification unit when a missing portion exists in the composite image. Referring to FIG. 14, when missing portion Y exists in composite image 2, notification unit 250 displays notification image 3 on display unit 161. The notification image 3 is an image for notifying the user that the missing portion Y exists in the composite image 2, and includes a peripheral complement button 3a and a reread button 3b. When a plurality of pairs of missing regions R and region identification information are input from the selection unit 240, the notification unit 250 sequentially displays a plurality of notification images 3 respectively corresponding to the plurality of missing regions R on the display unit 161. The user can determine whether or not the missing portion Y shown in the notification image 3 is the same solid image as the surrounding color. When the missing portion Y is the same solid image as the surrounding color, the user operates the surrounding complement button 3a.

周辺補完ボタン3aが操作された場合には、通知部250は、読取制御部200に禁止指示を出力するとともに、補完部270に周辺補完指示を出力する。禁止指示および周辺補完指示は、案内画像に対応する欠損領域Rを識別するための領域識別情報を含む。   When the peripheral complement button 3 a is operated, the notification unit 250 outputs a prohibition instruction to the reading control unit 200 and outputs a peripheral complement instruction to the complementing unit 270. The prohibition instruction and the peripheral complement instruction include area identification information for identifying the missing area R corresponding to the guide image.

周辺補完部271は、通知部250から周辺補完指示が入力されることに応じて、合成画像2中で、周辺補完指示に含まれる領域識別情報で特定される欠損領域Rを特定する。周辺補完部271は、特定された欠損領域Rに含まれる欠損部分Yのすべての画素を、合成画像2中で欠損部分Yの周辺の画素の値と同じ値にする。これにより、欠損部分Yが周辺と同じ色のベタ画像となり、合成画像2が補完される。   In response to the input of the peripheral complement instruction from the notification unit 250, the peripheral complement unit 271 specifies the missing region R specified by the region identification information included in the peripheral complement instruction in the composite image 2. The peripheral complementing unit 271 sets all the pixels of the defective portion Y included in the specified defective region R to the same value as the values of the pixels around the defective portion Y in the composite image 2. As a result, the missing portion Y becomes a solid image of the same color as the periphery, and the composite image 2 is complemented.

図15は、再読取ボタンが操作されたときの通知部の動作を説明するための図である。図15を参照して、再読取ボタン3bが操作された場合には、通知部250は表示部161に案内画像4および誘導画像5を表示する。案内画像4は、原稿読取部130の読取面131の基準位置を示す基準画像133と特徴部分検出部231により検出された特徴部分Zとの相対的な位置を示す画像であり、合成画像2の一部と、合成画像2中の欠損領域Rの画像とを含む。図16の例では、基準位置は読取面131の左上の頂角である。そのため、案内画像4は、欠損領域Rの特徴部分Zが左上となるように回転した状態で表示される。これにより、読取面131に対する原稿1の向きが示される。誘導画像5は、再読取時の読取領域のサイズおよび方向を示すとともに、案内画像4が示す向きで原稿1を読取面131にセットするようにユーザーを誘導する画面である。案内画像4および誘導画像5を表示することにより、再読取時におけるユーザーの動作を支援することができる。   FIG. 15 is a diagram for explaining the operation of the notification unit when the reread button is operated. Referring to FIG. 15, when reread button 3 b is operated, notification unit 250 displays guide image 4 and guide image 5 on display unit 161. The guide image 4 is an image showing a relative position between the reference image 133 indicating the reference position of the reading surface 131 of the document reading unit 130 and the feature portion Z detected by the feature portion detection unit 231. A part and the image of the defect region R in the composite image 2 are included. In the example of FIG. 16, the reference position is the top left apex angle of the reading surface 131. Therefore, the guide image 4 is displayed in a rotated state so that the characteristic portion Z of the missing region R is in the upper left. Thereby, the orientation of the document 1 with respect to the reading surface 131 is indicated. The guide image 5 is a screen that guides the user to set the document 1 on the reading surface 131 in the direction indicated by the guide image 4 while indicating the size and direction of the reading area at the time of re-reading. By displaying the guide image 4 and the guide image 5, it is possible to support the user's operation at the time of re-reading.

ユーザーは、案内画像4および誘導画像5にしたがって原稿1を読取面131にセットし、読取を指示する操作を操作部163に入力する。これにより、通知部250は、読取指示を読取制御部200に出力する。読取指示は、案内画像4に対応する欠損領域Rを識別するための領域識別情報を含む。読取制御部200は、通知部250から読取指示が入力されることに応じて、選択部240から入力される読取領域と領域識別情報の組のうち、読取指示に含まれる領域識別情報を含む組を選択し、選択された組に含まれる読取領域を決定する。読取制御部200は、決定された読取領域で原稿読取部130により原稿1を読み取る。読取制御部200は、原稿読取部130が出力する画像を補完画像とし、補完画像と読取指示に含まれる領域識別情報との組を特徴画像検出部260に出力する。   The user sets the document 1 on the reading surface 131 according to the guide image 4 and the guide image 5 and inputs an operation for instructing reading to the operation unit 163. As a result, the notification unit 250 outputs a reading instruction to the reading control unit 200. The reading instruction includes area identification information for identifying the missing area R corresponding to the guide image 4. In response to the reading instruction input from the notification unit 250, the reading control unit 200 includes a group including the region identification information included in the reading instruction among the combination of the reading region and the region identification information input from the selection unit 240. And the reading area included in the selected set is determined. The reading control unit 200 reads the document 1 by the document reading unit 130 in the determined reading area. The reading control unit 200 uses the image output from the document reading unit 130 as a complementary image, and outputs a set of the complementary image and the area identification information included in the reading instruction to the feature image detection unit 260.

特徴画像検出部260は、選択部240から欠損領域Rと領域識別情報との組が入力され、読取制御部200から補完画像と領域識別情報との組が入力される。特徴画像検出部260は、読取制御部200から補完画像と領域識別情報との組が入力されることに応じて、選択部240から入力される欠損領域Rと領域識別情報との組に基づいて、読取制御部200から入力される領域識別情報と組になる欠損領域Rを特定する。特徴画像検出部260は、読取制御部200から入力される補完画像中から欠損領域R中の特徴部分Zと同じ画像を特徴画像として抽出する。   The feature image detection unit 260 receives a set of the missing region R and the region identification information from the selection unit 240, and receives a set of the complementary image and the region identification information from the reading control unit 200. The feature image detection unit 260 is based on the combination of the missing region R and the region identification information input from the selection unit 240 in response to the input of the complementary image and the region identification information from the reading control unit 200. Then, the missing region R paired with the region identification information input from the reading control unit 200 is specified. The feature image detection unit 260 extracts the same image as the feature part Z in the defect region R from the complementary image input from the reading control unit 200 as a feature image.

補完画像から特徴画像が検出されない場合、または補完画像中の特徴画像の相対位置と欠損領域R中の特徴部分Zの相対位置との差が所定の範囲よりも大きく離間している場合、特徴画像検出部260は、通知指示を読取制御部200および通知部250に出力する。図16は、特徴画像検出部から通知指示が入力されたときの通知部の動作を説明するための図である。図16を参照して、特徴画像検出部260から通知指示が入力された場合には、通知部250は表示部161に案内画像4を再度表示するとともに、警告画像6を表示する。警告画像6は、原稿1が適切に読取面131にセットされなかったことをユーザーに警告する画面である。この場合、ユーザーは、案内画像4および警告画像6にしたがって原稿1を読取面131にセットし、読取を指示する操作を操作部163に入力する。   When the feature image is not detected from the complementary image, or when the difference between the relative position of the feature image in the complementary image and the relative position of the feature portion Z in the missing region R is larger than a predetermined range, the feature image The detection unit 260 outputs a notification instruction to the reading control unit 200 and the notification unit 250. FIG. 16 is a diagram for explaining the operation of the notification unit when a notification instruction is input from the feature image detection unit. Referring to FIG. 16, when a notification instruction is input from feature image detection unit 260, notification unit 250 displays guidance image 4 again on display unit 161 and displays warning image 6. The warning image 6 is a screen that warns the user that the document 1 has not been properly set on the reading surface 131. In this case, the user sets the document 1 on the reading surface 131 according to the guide image 4 and the warning image 6, and inputs an operation for instructing reading to the operation unit 163.

読取制御部200は、特徴画像検出部260から通知指示が入力された場合、操作部163が読取を指示する操作を受け付けることに応じて、先に決定された読取領域で原稿読取部130により原稿1を読み取る。読取制御部200は、原稿読取部130が出力する画像を補完画像とし、補完画像と領域識別情報との組を特徴画像検出部260に出力する。   When a notification instruction is input from the feature image detection unit 260, the reading control unit 200 receives the operation instructed to be read by the operation unit 163 and causes the document reading unit 130 to read the document in the previously determined reading area. 1 is read. The reading control unit 200 uses the image output from the document reading unit 130 as a complementary image, and outputs a set of the complementary image and region identification information to the feature image detection unit 260.

補完画像中の特徴画像の相対位置と欠損領域R中の特徴部分Zの相対位置との差が所定の範囲内である場合、特徴画像検出部260は、合成指示を補完部270に出力する。合成指示は、読取制御部200から入力される領域識別情報と補完画像とを含む。補完部270は、合成部210から合成画像2が入力され、特徴画像検出部260から合成指示が入力されることに応じて、合成指示に含まれる補完画像で合成画像2を補完する。補完部270は、補完画像と合成画像2とで同一の画像が重なる位置で補完画像を合成画像2と合成することにより、合成画像2を補完する。これにより、欠損部分が補完画像によって補完される。   When the difference between the relative position of the feature image in the complement image and the relative position of the feature portion Z in the defect area R is within a predetermined range, the feature image detection unit 260 outputs a synthesis instruction to the complement unit 270. The compositing instruction includes area identification information input from the reading control unit 200 and a complementary image. The complement unit 270 supplements the composite image 2 with the supplement image included in the synthesis instruction in response to the synthesis image 2 being input from the synthesis unit 210 and the synthesis instruction being input from the feature image detection unit 260. The complement unit 270 supplements the composite image 2 by combining the supplement image with the composite image 2 at a position where the same image overlaps the supplement image and the composite image 2. Thereby, a missing part is complemented with a complement image.

図17は、合成画像生成処理の流れの一例を示すフローチャートである。合成画像生成処理は、MFP100が備えるCPU111が、ROM113、HDD115またはCD−ROM118に記憶された合成画像生成プログラムを実行することにより、CPU111により実行される処理である。   FIG. 17 is a flowchart illustrating an example of the flow of the composite image generation process. The composite image generation process is a process executed by CPU 111 when CPU 111 provided in MFP 100 executes a composite image generation program stored in ROM 113, HDD 115, or CD-ROM 118.

図17を参照して、CPU111は、読取を指示するユーザーからの操作を受け付けることにより、複数の部分M1〜M15にそれぞれ対応する複数の画像G1〜G15を生成する(ステップS01)。例えば、ユーザーは、MFP100の合成機能を有効に設定した後、原稿1の15個の部分M1〜M15を順に、原稿読取部130の読取面131と重なるように位置を合わせてセットして、MFP100に15回読み取らせる。これにより、MFP100は、15個の画像G1〜G15を生成する。ユーザーがMFP100に原稿1の15個の部分M1〜M15を読み取らせた後に、読取操作の完了を指示する操作を操作部163に入力すると、CPU111は、処理をステップS02に進める。ステップS02においては、15個の画像G1〜G15を合成することにより合成画像2を生成し、処理をステップS03に進める。   Referring to FIG. 17, CPU 111 generates a plurality of images G1 to G15 respectively corresponding to a plurality of portions M1 to M15 by receiving an operation from a user who instructs reading (step S01). For example, after the user sets the composition function of the MFP 100 to be valid, the user sets the 15 portions M1 to M15 of the document 1 in order so as to overlap the reading surface 131 of the document reading unit 130, and sets the MFP 100. To read 15 times. Thereby, the MFP 100 generates 15 images G1 to G15. When the user causes MFP 100 to read 15 portions M1 to M15 of document 1, and inputs an operation to instruct completion of the reading operation to operation unit 163, CPU 111 advances the process to step S02. In step S02, synthesized image 2 is generated by synthesizing 15 images G1 to G15, and the process proceeds to step S03.

ステップS03においては、合成画像2から欠損部分を検出したか否かを判断する。具体的には、合成画像2を囲む最小サイズの矩形領域中で値の存在しない画素の集合を検出したか否かを判断する。欠損部分を検出したならば、処理をステップS04に進めるが、そうでなければ処理をステップS12に進める。ステップS04においては、欠損領域決定処理を実行し、処理をステップS05に進める。欠損領域決定処理の詳細については後述するが、欠損領域決定処理は、最小の読取領域で欠損部分を読み取るための1以上の欠損領域を決定するとともに、欠損領域に対応する読取領域を決定する処理である。   In step S03, it is determined whether a missing portion is detected from the composite image 2. Specifically, it is determined whether or not a set of pixels having no value in a rectangular area of the minimum size surrounding the composite image 2 is detected. If a missing portion is detected, the process proceeds to step S04. If not, the process proceeds to step S12. In step S04, a missing area determination process is executed, and the process proceeds to step S05. Although details of the defect area determination process will be described later, the defect area determination process is a process for determining one or more defect areas for reading a defect portion with the minimum reading area and determining a reading area corresponding to the defect area. It is.

ステップS05においては、決定された1以上の欠損領域から1つの欠損領域を処理対象に選択し、処理をステップS06に進める。ステップS06においては、選択された欠損領域に対応する通知画像3を表示部161に表示し、処理をステップS07に進める。例えば、図14に示した通知画像3を表示する。ステップS07においては、再読み取りが指示されたか否かを判断する。具体的には、通知画像3の再読取ボタン3bが操作された場合に再読み取りが指示されたと判断し、周辺補完ボタン3aが操作された場合に再読み取りが指示されなかったと判断する。再読み取りが指示されたならば、処理をステップS09に進めるが、そうでなければ処理をステップS08に進める。   In step S05, one defective region is selected as a processing target from the determined one or more defective regions, and the process proceeds to step S06. In step S06, notification image 3 corresponding to the selected missing area is displayed on display 161, and the process proceeds to step S07. For example, the notification image 3 shown in FIG. 14 is displayed. In step S07, it is determined whether re-reading is instructed. Specifically, it is determined that rereading is instructed when the reread button 3b of the notification image 3 is operated, and it is determined that rereading is not instructed when the peripheral complement button 3a is operated. If re-reading is instructed, the process proceeds to step S09; otherwise, the process proceeds to step S08.

ステップS08においては、欠損部分の周辺の領域の画素の値を特定し、処理をステップS10に進める。ステップS09においては、補完画像生成処理を実行し、処理をステップS10に進める。補完画像生成処理の詳細については後述するが、補完画像生成処理は、選択された欠損領域に対応する補完画像を生成する処理である。   In step S08, the value of the pixel in the area around the missing portion is specified, and the process proceeds to step S10. In step S09, a complementary image generation process is executed, and the process proceeds to step S10. Although details of the complementary image generation process will be described later, the complementary image generation process is a process of generating a complementary image corresponding to the selected missing area.

ステップS10においては、合成画像を補完し、処理をステップS11に進める。処理がステップS08から進む場合には、欠損部分の周辺の領域の画素の値が特定されている。この場合には、欠損領域に含まれる欠損部分の画素の値を特定された値にすることにより合成画像を補完する。処理がステップS09から進む場合には、補完画像が生成されている。この場合には、補完画像と合成画像2とで同一の画像が重なる位置で補完画像を合成画像2と合成することにより合成画像2を補完する。ステップS11においては、他の欠損領域があるか否かを判断する。他の欠損領域がないならば、処理をステップS12に進めるが、そうでなければ処理をステップS05に戻す。   In step S10, the composite image is complemented, and the process proceeds to step S11. When the process proceeds from step S08, the value of the pixel in the area around the missing portion is specified. In this case, the composite image is complemented by setting the value of the pixel of the defective part included in the defective area to the specified value. When the process proceeds from step S09, a complementary image has been generated. In this case, the synthesized image 2 is complemented by synthesizing the complemented image with the synthesized image 2 at the position where the same image overlaps the complemented image and the synthesized image 2. In step S11, it is determined whether there is another missing area. If there is no other missing area, the process proceeds to step S12. If not, the process returns to step S05.

ステップS12においては、生成または補完された合成画像2を出力し、処理を終了する。ここで、出力対象がHDD115である場合にはHDD115に合成画像2を保存し、出力対象が外部記憶装置117である場合にはCD−ROM118に合成画像2を保存する。出力対象がI/F部112である場合にはサーバー、クラウドまたはコンピューター等の他の情報処理装置に合成画像2を保存し、出力対象が画像形成部140である場合には用紙等に合成画像2を形成する。   In step S12, the generated or supplemented composite image 2 is output, and the process ends. Here, when the output target is the HDD 115, the composite image 2 is stored in the HDD 115, and when the output target is the external storage device 117, the composite image 2 is stored in the CD-ROM 118. When the output target is the I / F unit 112, the composite image 2 is stored in another information processing apparatus such as a server, a cloud, or a computer. When the output target is the image forming unit 140, the composite image is printed on a sheet or the like. 2 is formed.

図18は、欠損領域決定処理の流れの一例を示すフローチャートである。欠損領域決定処理は、図17に示した合成画像生成処理のステップS04において実行される処理である。欠損領域決定処理が実行される前の段階で1以上の欠損部分が決定されている。図18を参照して、CPU111は、欠損部分の位置および大きさを特定する(ステップS21)。欠損部分が複数の場合には、複数の欠損部分それぞれの位置および大きさを特定する。   FIG. 18 is a flowchart illustrating an example of the flow of a missing area determination process. The missing area determination process is a process executed in step S04 of the composite image generation process shown in FIG. One or more missing portions are determined at a stage before the missing region determining process is executed. Referring to FIG. 18, CPU 111 identifies the position and size of the missing part (step S21). When there are a plurality of missing portions, the position and size of each of the plurality of missing portions are specified.

次のステップS22においては、全ての欠損部分を特定したか否かを判断する。全ての欠損部分を特定したならば、処理をステップS23に進めるが、そうでなければ処理をステップS21に戻す。ステップS23においては、欠損部分が複数であるか否かを判断する。欠損部分が複数であるならば、処理をステップS24に進めるが、そうでなければ処理をステップS25に進める。   In the next step S22, it is determined whether or not all missing portions have been specified. If all the missing portions have been specified, the process proceeds to step S23; otherwise, the process returns to step S21. In step S23, it is determined whether there are a plurality of missing portions. If there are a plurality of missing portions, the process proceeds to step S24; otherwise, the process proceeds to step S25.

ステップS24においては、候補領域を決定し、処理をステップS25に進める。複数の欠損部分の全てを含むサイズが最小の矩形の領域を候補領域に決定する。ステップS25においては、特徴部分を検出し、処理をステップS26に進める。欠損部分が1つである場合には、欠損部分の付近に存在する他の部分と区別可能な特徴的な画像を検出する。欠損部分が複数である場合には、候補領域の付近に存在する他の部分と区別可能な特徴的な画像を検出する。   In step S24, a candidate area is determined, and the process proceeds to step S25. A rectangular area having a minimum size including all of the plurality of missing portions is determined as a candidate area. In step S25, a feature portion is detected, and the process proceeds to step S26. When there is one missing part, a characteristic image that can be distinguished from other parts existing in the vicinity of the missing part is detected. If there are a plurality of missing portions, a characteristic image that can be distinguished from other portions existing in the vicinity of the candidate region is detected.

ステップS26においては、欠損領域を決定し、処理をステップS27に進める。具体的には、欠損部分が1つである場合には、欠損部分と特徴部分とを含む矩形の領域を原稿1中の欠損領域として決定する。欠損部分が複数である場合には、候補領域と特徴部分とを含む矩形の領域を原稿1中の欠損領域として決定する。   In step S26, a missing area is determined, and the process proceeds to step S27. Specifically, when there is one missing part, a rectangular area including the missing part and the characteristic part is determined as a missing area in the document 1. If there are a plurality of missing parts, a rectangular area including the candidate area and the characteristic part is determined as a missing area in the document 1.

ステップS27においては、決定された欠損領域の横幅が縦幅以上であるか否かを判断する。横幅が縦幅以上であるならば、処理をステップS28に進めるが、そうでなければ処理をステップS29に進める。ステップS28においては、読取領域の方向を横方向に設定し、処理をステップS30に進める。ステップS29においては、読取領域の方向を縦方向に設定し、処理をステップS30に進める。   In step S27, it is determined whether or not the determined width of the missing area is greater than or equal to the vertical width. If the horizontal width is greater than or equal to the vertical width, the process proceeds to step S28; otherwise, the process proceeds to step S29. In step S28, the direction of the reading area is set to the horizontal direction, and the process proceeds to step S30. In step S29, the direction of the reading area is set to the vertical direction, and the process proceeds to step S30.

ステップS30においては、最小の読取領域を選択し、処理をステップS31に進める。具体的には、横方向の読取領域が設定されている場合には、A5サイズの横方向の読取領域を選択する。縦方向の読取領域が設定されている場合には、A5サイズの縦方向の読取領域を選択する。   In step S30, the minimum reading area is selected, and the process proceeds to step S31. Specifically, when a horizontal reading area is set, an A5 size horizontal reading area is selected. When the vertical reading area is set, the A5 size vertical reading area is selected.

ステップS31においては、読取領域が欠損領域以上であるか否かを判断する。具体的には、読取領域の横幅が欠損領域の横幅以上でかつ読取領域の縦幅が欠損領域の縦幅以上であるか否かを判断する。読取領域が欠損領域以上であるならば、処理をステップS35に進めるが、そうでなければ処理をステップS32に進める。なお、読取領域が欠損領域よりも大きいことが好ましいので、読取領域の横幅が、欠損領域の横幅よりも数パーセント大きく、かつ読取領域の縦幅が、欠損領域の縦幅よりも数パーセント大きい場合に、処理をステップS35に進めるようにしてもよい。   In step S31, it is determined whether or not the reading area is greater than or equal to the missing area. Specifically, it is determined whether or not the horizontal width of the reading area is equal to or larger than the horizontal width of the defective area and the vertical width of the reading area is equal to or larger than the vertical width of the defective area. If the reading area is greater than or equal to the missing area, the process proceeds to step S35; otherwise, the process proceeds to step S32. Since the reading area is preferably larger than the defective area, the horizontal width of the reading area is several percent larger than the horizontal width of the defective area, and the vertical width of the reading area is several percent larger than the vertical width of the defective area. In addition, the process may be advanced to step S35.

ステップS32においては、次に大きい読取領域が存在するか否かを判断する。次に大きい読取領域が存在するならば、処理をステップS33に進めるが、そうでなければ処理をステップS34に進める。ステップS33においては、次に大きい読取領域を選択し、処理をステップS31に戻す。ステップS34においては、欠損領域分割処理を実行し、処理をステップS27に戻す。欠損領域分割処理の詳細については後述するが、欠損領域分割処理は、最大の読取領域よりも大きい欠損領域を最大の読取領域以下の複数の欠損領域に分割する処理である。   In step S32, it is determined whether or not the next largest reading area exists. If the next largest reading area exists, the process proceeds to step S33; otherwise, the process proceeds to step S34. In step S33, the next largest reading area is selected, and the process returns to step S31. In step S34, a defective area dividing process is executed, and the process returns to step S27. Although details of the defect area dividing process will be described later, the defect area dividing process is a process of dividing a defect area larger than the maximum reading area into a plurality of defect areas below the maximum reading area.

ステップS35においては、選択している読取領域を処理対象に設定されている欠損領域に対応する読取領域に決定し、処理をステップS36に進める。ステップS36においては、他の欠損領域が存在するか否かを判断する。ここで、ステップS34において実行される欠損領域により欠損領域が分割された場合には、他の欠損領域が存在する。他の欠損領域が存在するならば、処理をステップS37に進めるが、そうでなければ処理を合成画像生成処理に戻す。ステップS37においては、他の欠損領域を選択し、処理をステップS27に戻す。   In step S35, the selected reading area is determined as a reading area corresponding to the missing area set as the processing target, and the process proceeds to step S36. In step S36, it is determined whether or not another missing area exists. Here, when the defect region is divided by the defect region executed in step S34, another defect region exists. If another missing area exists, the process proceeds to step S37; otherwise, the process returns to the composite image generation process. In step S37, another missing area is selected, and the process returns to step S27.

図19は、欠損領域分割処理の流れの一例を示すフローチャートである。欠損領域分割処理は、図18に示した欠損領域決定処理のステップS34において実行される処理である。図19を参照して、CPU111は、選択された欠損領域を2つに分割する(ステップS41)。具体的には、それぞれが1以上の欠損部分を含むように欠損領域を2つに分割する。   FIG. 19 is a flowchart illustrating an example of the flow of a defective area dividing process. The missing area dividing process is a process executed in step S34 of the missing area determining process shown in FIG. Referring to FIG. 19, CPU 111 divides the selected missing area into two (step S41). Specifically, the defective region is divided into two so that each includes one or more defective portions.

次のステップS42においては、分割した2つの欠損領域のうち1つの欠損領域を選択し、処理をステップS43に進める。ステップS43においては、選択された欠損領域が欠損部分を複数含むか否かを判断する。欠損部分が複数であるならば、処理をステップS44に進めるが、そうでなければ処理をステップS45に進める。   In the next step S42, one defective region is selected from the two divided defective regions, and the process proceeds to step S43. In step S43, it is determined whether or not the selected defective region includes a plurality of defective portions. If there are a plurality of missing portions, the process proceeds to step S44; otherwise, the process proceeds to step S45.

ステップS44においては、候補領域を決定し、処理をステップS45に進める。複数の欠損部分の全てを含むサイズが最小の矩形の領域を候補領域に決定する。ステップS45においては、特徴部分を検出し、処理をステップS46に進める。欠損部分が1つである場合には、欠損部分の付近に存在する他の部分と区別可能な特徴的な画像を検出する。欠損部分が複数である場合には、候補領域の付近に存在する他の部分と区別可能な特徴的な画像を検出する。   In step S44, a candidate area is determined, and the process proceeds to step S45. A rectangular area having a minimum size including all of the plurality of missing portions is determined as a candidate area. In step S45, a feature portion is detected, and the process proceeds to step S46. When there is one missing part, a characteristic image that can be distinguished from other parts existing in the vicinity of the missing part is detected. If there are a plurality of missing portions, a characteristic image that can be distinguished from other portions existing in the vicinity of the candidate region is detected.

ステップS46においては、欠損領域を更新し、処理をステップS47に進める。具体的には、欠損部分が1つである場合には、欠損部分と特徴部分とを含む矩形の領域を原稿1中の新たな欠損領域とする。欠損部分が複数である場合には、候補領域と特徴部分とを含む矩形の領域を原稿1中の新たな欠損領域とする。   In step S46, the missing area is updated, and the process proceeds to step S47. Specifically, when there is one missing part, a rectangular area including the missing part and the characteristic part is set as a new missing area in the document 1. When there are a plurality of missing parts, a rectangular area including the candidate area and the characteristic part is set as a new missing area in the document 1.

ステップS47においては、全ての欠損領域を更新したか否かを判断する。全ての欠損領域を更新していないならば、処理をステップS48に進めるが、そうでなければ処理を欠損領域決定処理に戻す。ステップS48においては、分割した2つの欠損領域のうち他の欠損領域を選択し、処理をステップS43に戻す。   In step S47, it is determined whether or not all missing areas have been updated. If not all the missing areas have been updated, the process proceeds to step S48. If not, the process returns to the missing area determination process. In step S48, another defective region is selected from the two divided defective regions, and the process returns to step S43.

図20は、補完画像生成処理の流れの一例を示すフローチャートである。補完画像生成処理は、図17に示した合成画像生成処理のステップS09において実行される処理である。補完画像生成処理が実行される前の段階で1つの欠損領域が選択されている。図20を参照して、CPU111は、選択された欠損領域に対応する案内画像4および誘導画像5を表示部161に表示する(ステップS51)。ユーザーは、案内画像4および誘導画像5にしたがって原稿1の対応する部分を読取面131にセットすることができる。ユーザーは、案内画像4で示される特徴画像と基準位置との位置関係から原稿1中で原稿読取部130の読取面131に載置する欠損領域、および原稿1を原稿読取部130の読取面131に載置する方向を容易に識別することができる。ユーザーが、原稿1の欠損領域を読取面131にセットした後、読取を指示する操作を操作部163に入力すれば、CPU111は、処理をステップS52に進める。   FIG. 20 is a flowchart illustrating an example of the flow of complementary image generation processing. The complementary image generation process is a process executed in step S09 of the composite image generation process shown in FIG. One missing area is selected before the complementary image generation process is executed. Referring to FIG. 20, CPU 111 displays guide image 4 and guide image 5 corresponding to the selected missing area on display 161 (step S51). The user can set a corresponding portion of the document 1 on the reading surface 131 according to the guide image 4 and the guide image 5. Based on the positional relationship between the feature image indicated by the guide image 4 and the reference position, the user places a defect area in the document 1 placed on the reading surface 131 of the document reading unit 130 and the document 1 on the reading surface 131 of the document reading unit 130. It is possible to easily identify the direction to be placed on. If the user sets a missing area of the document 1 on the reading surface 131 and then inputs an operation for instructing reading to the operation unit 163, the CPU 111 advances the process to step S52.

ステップS52においては、選択された欠損領域に対応する読取領域で画像を読み取り、処理をステップS53に進める。具体的には、原稿読取部130に欠損領域に対応する読取領域で原稿1を読み取らせる。これにより、選択された欠損領域に対応する補完画像が生成される。補完画像のサイズは、読取領域のサイズと同じである。ステップS53においては、補完画像中で特徴画像が所定範囲内に存在するか否かを判断する。具体的には、補完画像中から欠損領域中の特徴部分と同じ画像を特徴画像として抽出し、補完画像中の特徴画像の相対位置と欠損領域中の特徴部分の相対位置との差が所定の範囲内に存在するか否かを判断する。補完画像中から特徴画像が抽出されない場合も、特徴画像が所定範囲内に存在しないことに該当する。特徴画像が所定範囲内に存在するならば、処理を合成画像生成処理に戻すが、そうでなければ処理をステップS54に進める。   In step S52, an image is read in the reading area corresponding to the selected missing area, and the process proceeds to step S53. Specifically, the document reading unit 130 is caused to read the document 1 in the reading area corresponding to the missing area. Thereby, a complementary image corresponding to the selected missing area is generated. The size of the complementary image is the same as the size of the reading area. In step S53, it is determined whether or not the feature image is within a predetermined range in the complementary image. Specifically, the same image as the feature part in the defect area is extracted as a feature image from the complement image, and the difference between the relative position of the feature image in the complement image and the relative position of the feature part in the defect area is a predetermined value. Determine if it is within range. The case where the feature image is not extracted from the complementary image also corresponds to the fact that the feature image does not exist within the predetermined range. If the feature image exists within the predetermined range, the process returns to the composite image generation process. If not, the process proceeds to step S54.

処理がステップS54に進む場合、原稿読取部130の読取面131に、原稿1の欠損領域が正しい位置にセットされていない。ステップS54においては、選択された欠損領域に対応する案内画像4および警告画像6を表示部161に表示し、処理をステップS52に戻す。ユーザーは、案内画像4および警告画像6にしたがって原稿1の欠損領域を読取面131に正しい位置にセットし直すことができる。その後、ユーザーが、読取を指示する操作を操作部163に入力すれば、ステップS52以降の処理が実行される。換言すれば、特徴画像が所定の範囲内に存在する補完画像が生成されるまで、原稿1の欠損領域の読取が繰り返される。これにより、合成画像2を補完画像で補完する前の段階で、合成画像2の欠損部分を補完することが可能な補完画像を取得することができる。   When the process proceeds to step S54, the missing area of the document 1 is not set at the correct position on the reading surface 131 of the document reading unit 130. In step S54, guide image 4 and warning image 6 corresponding to the selected missing area are displayed on display 161, and the process returns to step S52. The user can reset the missing area of the document 1 at the correct position on the reading surface 131 according to the guide image 4 and the warning image 6. After that, if the user inputs an operation for instructing reading to the operation unit 163, the processing after step S52 is executed. In other words, the reading of the missing area of the document 1 is repeated until a complementary image in which the characteristic image is within a predetermined range is generated. Thereby, it is possible to obtain a complementary image capable of complementing the missing portion of the composite image 2 before the composite image 2 is supplemented with the supplement image.

以上説明したように、本実施の形態におけるMFP100は、画像読取装置として機能し、合成画像2から欠損部分Yが検出された場合には、複数の読取領域のうち欠損部分Yよりサイズが大きな最小の読取領域を選択する。そして、選択された読取領域で画像を読み取って生成する補完画像を、合成画像2と合成する。このため、欠損部分Yよりサイズが大きく最小の読取領域が選択されるので、補完画像のサイズをできるだけ小さくして、合成画像2を補完画像で補完する際の負荷を低減することができる。その結果、原稿1が適切に読み取られなかった場合に、高い効率での再読み取りを可能になる。   As described above, MFP 100 according to the present embodiment functions as an image reading apparatus, and when defective portion Y is detected from composite image 2, the minimum size that is larger than defective portion Y among the plurality of read regions. Select the reading area. Then, the complementary image generated by reading the image in the selected reading region is combined with the combined image 2. For this reason, since the minimum reading area that is larger than the missing portion Y is selected, the size of the complementary image can be made as small as possible, and the load when the composite image 2 is complemented with the complementary image can be reduced. As a result, when the document 1 is not properly read, re-reading with high efficiency becomes possible.

また、MFP100は、欠損領域XのサイズがA3サイズより大きい場合、欠損部分Yが2つに分割し、分割された2つの欠損部分Y1,Y2それぞれに対応する2つの読取領域を選択する。そのため、1つの欠損領域Xを2つに分割するので、読み取り回数をできるだけ少なくすることができる。   Further, when the size of the defect area X is larger than the A3 size, the MFP 100 divides the defect part Y into two, and selects two reading areas corresponding to each of the two defect parts Y1 and Y2. Therefore, since one defect region X is divided into two, the number of readings can be reduced as much as possible.

また、MFP100は、再読取ボタン3bが操作された場合には、表示部161に案内画像4を表示する。ユーザーは案内画像4を視認することにより、原稿1中の欠損領域Xを選択された読取領域に配置する動作を容易にすることができる。   Further, when the reread button 3b is operated, the MFP 100 displays the guide image 4 on the display unit 161. By visually recognizing the guide image 4, the user can easily perform the operation of arranging the missing area X in the document 1 in the selected reading area.

また、案内画像4は、原稿読取部130の読取面131の周辺に表された基準位置を示す基準画像133と、欠損部分Yの付近の特徴部分Zとの相対的な位置を示すので、ユーザーは、案内画像4を視認することにより、原稿1を読取面131に配置する際の読取面131に対する原稿1の特徴部分Zの相対位置を認識することができる。これにより、ユーザーは、原稿1を読取面131に容易に配置することができる。   The guide image 4 indicates the relative position between the reference image 133 indicating the reference position shown around the reading surface 131 of the document reading unit 130 and the feature portion Z in the vicinity of the missing portion Y. By visually recognizing the guide image 4, it is possible to recognize the relative position of the characteristic portion Z of the document 1 with respect to the reading surface 131 when the document 1 is arranged on the reading surface 131. Thereby, the user can easily place the document 1 on the reading surface 131.

また、案内画像4は、読取面131に対する原稿1の向きを示す画像を含むので、ユーザーは案内画像4を視認することにより、原稿1を適切な方向で読取面131に容易に配置することができる。   Further, since the guide image 4 includes an image indicating the orientation of the document 1 with respect to the reading surface 131, the user can easily place the document 1 on the reading surface 131 in an appropriate direction by viewing the guide image 4. it can.

また、MFP100は、補完画像から特徴部分Zと同じ特徴画像を検出し、補完画像中の特徴画像の相対位置が、欠損領域X中の検出された特徴部分Zの相対位置から所定の範囲内である場合に、補完画像が合成画像2と合成する。この場合には、合成画像2に欠損部分Yを補完する部分が含まれる可能性が高いため、合成画像2中の欠損部分Yを補完する確率を向上することができる。また、合成画像2を補完画像で補完する前の段階で、合成画像2の欠損部分を補完することが可能な補完画像を取得することができる。   Further, MFP 100 detects the same feature image as feature portion Z from the complement image, and the relative position of the feature image in the complement image is within a predetermined range from the relative position of feature portion Z detected in defect area X. In some cases, the complementary image is combined with the combined image 2. In this case, since there is a high possibility that the composite image 2 includes a portion that complements the missing portion Y, the probability of complementing the missing portion Y in the composite image 2 can be improved. In addition, it is possible to obtain a complementary image that can complement a missing portion of the composite image 2 before the composite image 2 is supplemented with the supplement image.

また、選択された読取領域で原稿1が読み取られることに応じて、補完画像から欠損部分Yを抽出する画像加工部の機能をCPU111が有することが好ましい。この場合、補完画像から欠損部分Yが抽出されるので、補完画像のサイズを最小にすることができる。これにより、合成画像2を補完するための画像処理をより高速化することができる。   Further, it is preferable that the CPU 111 has a function of an image processing unit that extracts the missing portion Y from the complementary image in response to the reading of the document 1 in the selected reading area. In this case, since the missing portion Y is extracted from the complementary image, the size of the complementary image can be minimized. Thereby, the image processing for complementing the composite image 2 can be further accelerated.

また、ユーザーによる操作部163の所定の操作が受け付けられた場合、選択された読取領域での原稿1の読み取りが禁止され、合成画像2の欠損部分Yが欠損部分Yの周辺の領域と同じ値で補完される。そのため、原稿1の読み取り回数を少なくしつつ、合成画像2を補完することができる。   When a predetermined operation of the operation unit 163 by the user is accepted, reading of the document 1 in the selected reading area is prohibited, and the missing portion Y of the composite image 2 has the same value as the area around the missing portion Y. Supplemented with Therefore, the composite image 2 can be complemented while reducing the number of times of reading the document 1.

また、複数の読取領域それぞれは、予め定められた複数のサイズのいずれか1つと予め定められた複数の方向のいずれか1つとの組で定まる。この場合、読取領域は、A3サイズの横方向の読取領域、A4サイズの縦方向の読取領域、A4サイズの横方向の読取領域、A5サイズの縦方向の読取領域、A5サイズの横方向の読取領域、B4サイズの横方向の読取領域、B5サイズの縦方向の読取領域、B5サイズの横方向の読取領域、およびレターサイズの横方向の読取領域等を含む。これにより、サイズが最小の読取領域を選択することができる。   Each of the plurality of reading regions is determined by a set of any one of a plurality of predetermined sizes and any one of a plurality of predetermined directions. In this case, the reading area includes an A3 size horizontal reading area, an A4 size vertical reading area, an A4 size horizontal reading area, an A5 size vertical reading area, and an A5 size horizontal reading. Area, B4 size horizontal reading area, B5 size vertical reading area, B5 size horizontal reading area, letter size horizontal reading area, and the like. As a result, it is possible to select a reading area having the smallest size.

なお、本実施の形態においては、MFP100により複数の画像、合成画像および補完画像が生成され、補完画像が補完されるようにしたが、MFP100により複数の画像および補完画像が生成され、サーバー、クラウドまたはコンピューター等の他の情報処理装置により合成画像が生成および補完されるようにしてもよい。この場合には、MFP100により生成された複数の画像および補完画像が他の情報処理装置に送信される。MFP100は、欠損領域をできるだけ小さいサイズに決定するので、補完画像のデータ量が低減される。これにより、補完画像を送信する際のネットワークトラフィックを低減することができる。さらに、画像加工部の機能により補完画像から欠損部分を抽出し、MFP100が欠損部分を補完画像として送信する場合には、補完画像のデータ量がより低減されるので、補完画像を送信する際のネットワークトラフィックをより低減することができる。   In the present embodiment, a plurality of images, a composite image, and a complementary image are generated by MFP 100 and the complementary image is complemented. However, a plurality of images and complementary images are generated by MFP 100, and the server, cloud Alternatively, the composite image may be generated and complemented by another information processing apparatus such as a computer. In this case, a plurality of images and complementary images generated by MFP 100 are transmitted to another information processing apparatus. Since the MFP 100 determines the missing area as small as possible, the data amount of the complementary image is reduced. Thereby, the network traffic at the time of transmitting a complementary image can be reduced. Furthermore, when the missing part is extracted from the complementary image by the function of the image processing unit and the MFP 100 transmits the defective part as a complementary image, the data amount of the complementary image is further reduced. Network traffic can be further reduced.

1 原稿、2 合成画像、3 通知画像、3a 周辺補完ボタン、3b 再読取ボタン、4 案内画像、5 誘導画像、6 警告画像、100 MFP、110 メイン回路、111 CPU、112 I/F部、113 ROM、114 RAM、115 HDD、116 ファクシミリ部、117 外部記憶装置、118 CD−ROM、120 自動原稿搬送装置、125 原稿トレイ、127 原稿排紙トレイ、130 原稿読取部、131,132 読取面、133 基準画像、140 画像形成部、150 給紙部、160 操作パネル、161 表示部、163 操作部、165 タッチパネル、167 ハードキー部、200 読取制御部、210 合成部、220 検出部、230 欠損領域決定部、231 特徴部分検出部、240 選択部、241 分割部、250 通知部、260 特徴画像検出部、270 補完部、271 周辺補完部、C 候補領域、G1〜G15 画像、Lx 横幅、Ly 縦幅、M1〜M15 部分、R 領域、r1,r2,X 欠損領域、Y,Y1,Y2 欠損部分、Z 特徴部分   1 manuscript, 2 composite image, 3 notification image, 3a peripheral complement button, 3b reread button, 4 guide image, 5 guide image, 6 warning image, 100 MFP, 110 main circuit, 111 CPU, 112 I / F unit, 113 ROM, 114 RAM, 115 HDD, 116 facsimile unit, 117 external storage device, 118 CD-ROM, 120 automatic document feeder, 125 document tray, 127 document discharge tray, 130 document reading unit, 131, 132 reading surface, 133 Reference image, 140 Image forming unit, 150 Paper feeding unit, 160 Operation panel, 161 Display unit, 163 Operation unit, 165 Touch panel, 167 Hard key unit, 200 Reading control unit, 210 Compositing unit, 220 Detection unit, 230 Defect area determination , 231 feature portion detection unit, 240 selection unit, 2 1 dividing unit, 250 notifying unit, 260 feature image detecting unit, 270 complementing unit, 271 peripheral complementing unit, C candidate region, G1-G15 image, Lx horizontal width, Ly vertical width, M1-M15 part, R region, r1, r2 , X missing area, Y, Y1, Y2 missing part, Z feature part

Claims (12)

読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段と、
前記読取手段により生成された複数の画像を合成した合成画像を生成する合成手段と、
前記合成手段により合成された合成画像から欠損部分を検出する検出手段と、
前記検出手段により検出された欠損部分の前記合成画像中における位置に基づいて、前記原稿中で前記欠損部分に対応する欠損領域を決定する欠損領域決定手段と、
前記複数の読取領域のうちから、前記決定された欠損領域よりサイズが大きな最小の読取領域を選択する選択手段と、
前記読取手段により前記選択された読取領域で原稿が読み取られることに応じて、前記読取手段により生成される補完画像を、前記合成画像と合成する補完手段と、を備えた、画像読取装置。
Reading means for reading a document in any one of a plurality of reading areas set in advance on a reading surface and generating an image of the read document;
A combining unit that generates a combined image by combining a plurality of images generated by the reading unit;
Detecting means for detecting a missing portion from the synthesized image synthesized by the synthesizing means;
A defect area determining means for determining a defect area corresponding to the defect portion in the document based on the position of the defect portion detected by the detection means in the composite image;
A selection means for selecting a minimum reading area having a size larger than the determined defect area from the plurality of reading areas;
An image reading apparatus, comprising: a complementing unit that synthesizes a complementary image generated by the reading unit with the synthesized image in response to the reading of the document in the selected reading area by the reading unit.
前記選択手段は、前記欠損領域のサイズが前記複数の読取領域のうちサイズが最大の読取領域のサイズより大きい場合、前記欠損部分を2つに分割する分割手段を、含み、
前記分割された2つの欠損部分にそれぞれ対応する2つの読取領域を選択する請求項1に記載の画像読取装置。
The selecting means includes a dividing means for dividing the missing portion into two when the size of the missing area is larger than the size of the largest reading area among the plurality of reading areas,
The image reading apparatus according to claim 1, wherein two reading areas respectively corresponding to the divided two missing portions are selected.
前記決定された欠損領域を前記選択された読取領域に配置するユーザーによる動作を支援する案内画像を表示する通知手段を、さらに備えた請求項1または2に記載の画像読取装置。   The image reading apparatus according to claim 1, further comprising a notification unit that displays a guide image that supports an operation by a user who places the determined defect area in the selected reading area. 前記欠損領域決定手段は、前記合成手段により合成された合成画像のうち、前記欠損部分の付近の特徴部分を検出する特徴部分検出手段を含み、
前記欠損部分と前記検出された特徴部分とを含む領域に対応する前記原稿中の領域を前記欠損領域に決定し、
前記複数の読取領域それぞれは、前記読取面中で予め定められた基準位置を基準に前記読取面に配置され、
前記案内画像は、前記読取面の周辺に表された前記基準位置を示す基準画像と、前記特徴部分との相対的な位置を示す画像を含む、請求項3に記載の画像読取装置。
The missing area determining means includes a feature part detecting means for detecting a feature part in the vicinity of the missing part in the synthesized image synthesized by the synthesizing means,
Determining an area in the document corresponding to an area including the missing portion and the detected characteristic portion as the missing area;
Each of the plurality of reading areas is arranged on the reading surface with reference to a predetermined reference position in the reading surface,
The image reading apparatus according to claim 3, wherein the guide image includes a reference image indicating the reference position expressed around the reading surface and an image indicating a relative position of the characteristic portion.
前記案内画像は、前記読取面に対する前記原稿の向きを示す画像を含む、請求項4に記載の画像読取装置。   The image reading apparatus according to claim 4, wherein the guide image includes an image indicating an orientation of the document with respect to the reading surface. 前記読取手段により前記選択された読取領域で原稿が読み取られることに応じて、前記補完画像から前記検出された特徴部分と同じ特徴画像を検出する特徴画像検出手段を、さらに備え、
前記補完手段は、前記特徴画像が検出される場合に、前記補完画像を前記合成画像と合成する、請求項4または5に記載の画像読取装置。
A feature image detecting means for detecting the same feature image as the detected feature portion from the complementary image in response to the reading of the document in the selected reading area by the reading means;
The image reading apparatus according to claim 4, wherein the complementing unit synthesizes the complementary image with the synthesized image when the feature image is detected.
前記補完手段は、前記補完画像中の前記検出された特徴画像の相対位置が、前記欠損領域中の前記検出された特徴部分の相対位置から所定の範囲内であることをさらに条件として、前記補完画像を前記合成画像と合成する、請求項6に記載の画像読取装置。   The complement means is further provided that the relative position of the detected feature image in the complement image is within a predetermined range from the relative position of the detected feature portion in the missing region. The image reading apparatus according to claim 6, wherein an image is synthesized with the synthesized image. 前記読取手段により前記選択された読取領域で原稿が読み取られることに応じて、前記補完画像から前記欠損部分を抽出する画像加工手段をさらに備える、請求項1〜7のいずれかに記載の画像読取装置。   The image reading device according to claim 1, further comprising an image processing unit that extracts the missing portion from the complementary image in response to a document being read in the selected reading area by the reading unit. apparatus. ユーザーの操作を受け付ける操作受付手段をさらに備え、
前記操作受付手段により所定の操作が受け付けられる場合、前記読取手段による前記選択された読取領域での原稿の読み取りを禁止し、前記合成画像の前記欠損部分を前記欠損部分の周辺の領域と同じ値で補完する周辺補完手段をさらに備えた、請求項1〜8のいずれかに記載の画像読取装置。
It further comprises operation accepting means for accepting user operations,
When a predetermined operation is accepted by the operation accepting unit, the reading unit prohibits reading of the original in the selected reading area, and the missing portion of the composite image has the same value as the area around the missing portion. The image reading apparatus according to claim 1, further comprising a peripheral complementing unit that complements the data.
前記複数の読取領域それぞれは、予め定められた複数のサイズのいずれか1つと予め定められた複数の方向のいずれか1つとの組で定まる、請求項1〜9のいずれかに記載の画像読取装置。   The image reading according to claim 1, wherein each of the plurality of reading areas is determined by a set of any one of a plurality of predetermined sizes and any one of a plurality of predetermined directions. apparatus. 読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段を備える画像読取装置で実行される画像読取方法であって、
前記読取手段により生成された複数の画像を合成した合成画像を生成するステップと、
前記合成された合成画像から欠損部分を検出するステップと、
前記検出された欠損部分の前記合成画像中における位置に基づいて、前記原稿中で前記欠損部分に対応する欠損領域を決定するステップと、
前記複数の読取領域のうちから、前記決定された欠損領域よりサイズが大きな最小の読取領域を選択するステップと、
前記読取手段により前記選択された読取領域で原稿が読み取られることに応じて、前記読取手段により生成される補完画像を、前記合成画像と合成するステップと、を含む、画像読取方法。
An image reading method executed by an image reading apparatus including a reading unit that reads a document in any one of a plurality of reading areas set in advance on a reading surface and generates an image of the read document.
Generating a composite image by combining a plurality of images generated by the reading unit;
Detecting a missing portion from the synthesized composite image;
Determining a defect region corresponding to the defect portion in the document based on the position of the detected defect portion in the composite image;
Selecting a minimum reading area having a size larger than the determined defect area from the plurality of reading areas;
And a step of combining a complementary image generated by the reading unit with the synthesized image in response to the reading of the document in the selected reading area by the reading unit.
読取面に予め設定された複数の読取領域のいずれかの読取領域で原稿を読み取り、読み取った原稿の画像を生成する読取手段を備える画像読取装置で実行される画像読取プログラムであって、
前記読取手段により生成された複数の画像を合成した合成画像を生成するステップと、
前記合成された合成画像から欠損部分を検出するステップと、
前記検出された欠損部分の前記合成画像中における位置に基づいて、前記原稿中で前記欠損部分に対応する欠損領域を決定するステップと、
前記複数の読取領域のうちから、前記決定された欠損領域よりサイズが大きな最小の読取領域を選択するステップと、
前記読取手段により前記選択された読取領域で原稿が読み取られることに応じて、前記読取手段により生成される補完画像を、前記合成画像と合成するステップと、を前記コンピューターに実行させる、画像読取プログラム。
An image reading program that is executed by an image reading apparatus that includes a reading unit that reads a document in any one of a plurality of reading areas set in advance on a reading surface and generates an image of the read document.
Generating a composite image by combining a plurality of images generated by the reading unit;
Detecting a missing portion from the synthesized composite image;
Determining a defect region corresponding to the defect portion in the document based on the position of the detected defect portion in the composite image;
Selecting a minimum reading area having a size larger than the determined defect area from the plurality of reading areas;
An image reading program that causes the computer to execute a step of combining a complementary image generated by the reading unit with the synthesized image in response to a document being read in the selected reading area by the reading unit. .
JP2016123559A 2016-06-22 2016-06-22 Image reader, image reading method, and image reading program Pending JP2017228922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016123559A JP2017228922A (en) 2016-06-22 2016-06-22 Image reader, image reading method, and image reading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016123559A JP2017228922A (en) 2016-06-22 2016-06-22 Image reader, image reading method, and image reading program

Publications (1)

Publication Number Publication Date
JP2017228922A true JP2017228922A (en) 2017-12-28

Family

ID=60889399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016123559A Pending JP2017228922A (en) 2016-06-22 2016-06-22 Image reader, image reading method, and image reading program

Country Status (1)

Country Link
JP (1) JP2017228922A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020178220A (en) * 2019-04-17 2020-10-29 コニカミノルタ株式会社 Image reading device, image reading method, and computer program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020178220A (en) * 2019-04-17 2020-10-29 コニカミノルタ株式会社 Image reading device, image reading method, and computer program
JP7215311B2 (en) 2019-04-17 2023-01-31 コニカミノルタ株式会社 Image reading device, image reading method and computer program

Similar Documents

Publication Publication Date Title
US9232094B2 (en) System and method for move and drop of clone image on a touch panel
JP6772493B2 (en) Image processing equipment, image processing methods and programs
US10666829B2 (en) Image scanning device and image processing apparatus including card scanning function, and image scanning method thereof
US9485368B2 (en) Electronic document generation apparatus, recording medium, and electronic document generation system
JP2008283494A (en) Image processing system
JP2013126004A (en) Image processing device, image generation method, and computer program
JP2019161463A (en) Image processing apparatus, program and image processing method
JP2012118863A (en) Image reading device, image formation device, image reading method, program and recording medium therefor
JP7077127B2 (en) Devices, methods, and programs for setting information related to scanned image data.
US20210385352A1 (en) Image reading device and image reading method
US20180091671A1 (en) Image Reading Apparatus and Image Reading Method That Simply Detect Document Direction in Reading of Book Document, and Recording Medium Therefor
JP6953957B2 (en) Image processing equipment and programs
JP2017228922A (en) Image reader, image reading method, and image reading program
JP2020184207A (en) Image processing device, image processing method and program
JP2019201358A (en) Image processing apparatus, program, and image processing method
US11140276B2 (en) Image processing apparatus, non-transitory storage medium, and image processing method
JP2017063332A (en) Image formation apparatus and image formation method
JP6855831B2 (en) Data processing equipment and data processing program
JP2007049603A (en) Image processing apparatus, image forming apparatus, image processing method and program
US10250777B2 (en) Image processing apparatus and non-transitory computer readable medium for image difference confirmation
JP6167639B2 (en) Image display system, portable information device, image data display method, and image data display program
JP6273919B2 (en) Image information control apparatus, program, and image information control system
JP7400227B2 (en) program
JP5772205B2 (en) Image forming apparatus, setting method, and setting program
JP2018121270A (en) Computer program and image processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200212

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200804