JP6362075B2 - Image reading apparatus, image processing apparatus, and image processing method therefor - Google Patents

Image reading apparatus, image processing apparatus, and image processing method therefor Download PDF

Info

Publication number
JP6362075B2
JP6362075B2 JP2014057110A JP2014057110A JP6362075B2 JP 6362075 B2 JP6362075 B2 JP 6362075B2 JP 2014057110 A JP2014057110 A JP 2014057110A JP 2014057110 A JP2014057110 A JP 2014057110A JP 6362075 B2 JP6362075 B2 JP 6362075B2
Authority
JP
Japan
Prior art keywords
document
image
size
original
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014057110A
Other languages
Japanese (ja)
Other versions
JP2015180004A (en
Inventor
中村 隆
隆 中村
勇吾 望月
勇吾 望月
諏訪 徹哉
徹哉 諏訪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2014057110A priority Critical patent/JP6362075B2/en
Publication of JP2015180004A publication Critical patent/JP2015180004A/en
Application granted granted Critical
Publication of JP6362075B2 publication Critical patent/JP6362075B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は画像読取装置、画像処理装置、及びその画像処理方法に関し、特に、光学的に画像原稿を読取る画像読取装置、画像処理装置、及びその画像処理方法に関する。   The present invention relates to an image reading apparatus, an image processing apparatus, and an image processing method thereof, and more particularly to an image reading apparatus, an image processing apparatus, and an image processing method for optically reading an image original.

従来より普通紙に印刷された文書や印画紙に印刷された写真といった対象を光学的に読取り、読取った画像を電子データに変換するスキャナ装置(画像読取装置)がある。また昨今のスキャナ装置は単体の独立した形態だけではなく、記録装置や通信機能と一体化された複合機という形態をとることもある。このような構成では、その複合機は読み取り対象の電子化のほか、複写機能やファックスなど多くの機能を備えることが一般的になっている。   Conventionally, there is a scanner device (image reading device) that optically reads an object such as a document printed on plain paper or a photograph printed on photographic paper, and converts the read image into electronic data. Further, recent scanner apparatuses are not limited to a single independent form, but may take the form of a multi-function apparatus integrated with a recording apparatus and a communication function. In such a configuration, it is common for the multifunction device to have many functions such as a copying function and a fax in addition to digitization of a reading target.

一方、それらの機能の実現に用いられるCPUやメモリやLCDなど、ハードリソース環境は非常に高性能なものになってきている。従って、それらを十分に活用し、ユーザにより快適な使用環境を提供することも重要な要素の一つである。例えば、画像処理の場合には、ユーザに高度な知識がなくても、また煩雑な操作を行わなくとも、高レベルな画像処理を実現するすることが重要な要件になっている。その代表例として画像処理の自動化がある。これにより、対象となる画像を自動的に解析し、その解析結果に見合った最適な処理を実行することが可能になる。   On the other hand, hard resource environments such as CPUs, memories, and LCDs used to realize these functions have become very high performance. Therefore, it is also an important factor to fully utilize them and provide a more comfortable use environment for the user. For example, in the case of image processing, it is an important requirement to realize high-level image processing without the user having advanced knowledge or performing complicated operations. A typical example is automation of image processing. As a result, it is possible to automatically analyze the target image and execute an optimum process corresponding to the analysis result.

従来より、読取画像の対象領域を特定する技術として、特許文献1に開示するような技術が提案されている。特許文献1では画像原稿をスキャンして読取って得られた画像データを解析してエッジを検出し、原稿の位置を決定する技術を提案している。   Conventionally, a technique disclosed in Patent Document 1 has been proposed as a technique for specifying a target area of a read image. Japanese Patent Application Laid-Open No. 2004-228561 proposes a technique for analyzing an image data obtained by scanning and reading an image original to detect an edge and determining the position of the original.

ところでスキャン対象となる原稿は一般的に所定のサイズである場合が多い。例えば、A4或いはA5といったサイズである。このような所定サイズの原稿を以下、定型原稿と呼ぶ。   By the way, in many cases, a document to be scanned is generally a predetermined size. For example, the size is A4 or A5. Such a document of a predetermined size is hereinafter referred to as a standard document.

ここで、光学的に原稿を読取るスキャナ装置の一般的な読取方法について概説する。   Here, a general reading method of a scanner apparatus that optically reads a document will be outlined.

スキャナ装置は、発光部と受光素子を配置したセンサ部と原稿を載置する原稿台と原稿を押さえる圧着板とを有している。スキャナ装置はセンサ部を原稿に対して相対的に移動して原稿を読取る。センサと原稿の相対的な移動方向を一般に副走査方向と呼ぶ。また、その移動方向に垂直な方向を主走査方向と呼ぶ。主走査方向には、複数の受光素子が配列され、これらの受光素子を電子的に走査することにより主走査方向に画像を読取るのである。その読取に当っては発光部から原稿に光を照射し、その反射光の一部を受光素子が受光し、受光素子が受光した光を光電変換することで、画像信号が生成されるのである。   The scanner device includes a sensor unit in which a light emitting unit and a light receiving element are arranged, a document table on which a document is placed, and a pressure plate that presses the document. The scanner device moves the sensor unit relative to the document and reads the document. The relative movement direction of the sensor and the document is generally called a sub-scanning direction. A direction perpendicular to the moving direction is called a main scanning direction. A plurality of light receiving elements are arranged in the main scanning direction, and an image is read in the main scanning direction by electronically scanning these light receiving elements. In the reading, the original is irradiated with light from the light emitting unit, a part of the reflected light is received by the light receiving element, and the light received by the light receiving element is photoelectrically converted to generate an image signal. .

特開平11−150655号公報(特願平9−317453号)Japanese Patent Laid-Open No. 11-150655 (Japanese Patent Application No. 9-317453)

さて、原稿スキャン時、原稿の主走査方向(原稿の幅方向)に平行な成分の内、その原稿の終端はエッジとなり易い。何故なら、光源からの照射光には指向性があり原稿の厚みに起因する影ができるからである。従って、スキャンされた画像から前記影の部分を検知できればエッジを認識できる。一方、原稿の幅方向の内、原稿の先端部分と副走査方向(原稿の長さ方向)に平行な成分はエッジになりにくい。何故なら、原稿の先端部分では原稿側面が光を散乱してしまい影がでづらく、原稿の長さ方向では照射光の指向性と原稿の幅方向とが平行になり、やはり影がでづらい。その結果、原稿先端部や原稿の長さ方向のエッジ部では、圧着板を読取って得られる画像信号の値と原稿を読取って得られる画像信号の値との差が小さく、エッジの検出は難しい。   When scanning a document, the end of the document tends to be an edge among components parallel to the main scanning direction of the document (the width direction of the document). This is because the irradiation light from the light source has directivity and a shadow due to the thickness of the document is formed. Therefore, if the shadow portion can be detected from the scanned image, the edge can be recognized. On the other hand, a component parallel to the leading end portion of the document and the sub-scanning direction (length direction of the document) in the width direction of the document does not easily become an edge. This is because the side surface of the document scatters light at the leading edge of the document, making it difficult to produce a shadow, and the directivity of the irradiation light is parallel to the width direction of the document in the length direction of the document, making it difficult to produce a shadow. As a result, the difference between the value of the image signal obtained by reading the pressure plate and the value of the image signal obtained by reading the document is small at the leading edge of the document and the edge portion in the length direction of the document, and it is difficult to detect the edge. .

このため、特許文献1ではエッジ検出に成功する場合もあるが、原稿先端部や原稿の長さ方向の端部では誤判定が生じる場合もある。従って、誤判定した場合には原稿の長さや原稿の幅を正しく検知することができず、最終的には適切な原稿サイズを決定することができない。例えば、A4サイズの原稿をスキャンしたにも関わらず、A5サイズの切り出しがなされてしまうといったような場合が発生するのである。   For this reason, in Patent Document 1, edge detection may be successful, but an erroneous determination may occur at the document leading edge or the document length end. Therefore, if an erroneous determination is made, the length of the original and the width of the original cannot be detected correctly, and finally an appropriate original size cannot be determined. For example, there may occur a case where an A5 size document is cut out even though an A4 size document is scanned.

本発明は上記従来例に鑑みてなされたもので、原稿サイズを正確に検知することが可能な画像読取装置、画像処理装置、及びその画像処理方法を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image reading apparatus, an image processing apparatus, and an image processing method capable of accurately detecting a document size.

上記目的を達成するために本発明の画像読取装置は、次のような構成を含む。   In order to achieve the above object, an image reading apparatus of the present invention includes the following configuration.

即ち、原稿台に載置された原稿の画像を読取る画像読取装置であって、複数の定型原稿のサイズを記憶する記憶手段と、前記原稿の画像を光学的に主走査方向に読取る読取手段と、前記読取手段を副走査方向に移動させる移動手段と、前記移動手段により前記読取手段を移動させながら前記原稿を読取ることにより得られた画像データに基いて、前記原稿の副走査方向の終端部であるエッジの、主走査方向に沿った長さを取得する取得手段と、前記取得手段により取得された前記原稿のエッジの長さに基づいて、前記記憶手段に記憶された複数の定型原稿のサイズのうちの、前記原稿のサイズとして推定される候補のサイズを複数、抽出する抽出手段と、前記抽出手段により抽出された前記原稿の複数の候補のサイズの差より特定される領域に関し、前記画像データを解析して前記領域に原稿が存在するかどうかを判定する判定手段と、前記判定手段により前記領域に原稿が存在すると判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを短辺とする定型原稿のサイズを前記原稿のサイズとして決定し、前記判定手段により前記領域に原稿が存在しないと判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを長辺とする定型原稿のサイズを前記原稿のサイズとして決定する決定手段とを有することを特徴とする。 That is, an image reading apparatus that reads an image of a document placed on a document table, a storage unit that stores the sizes of a plurality of standard documents, and a reading unit that optically reads the image of the document in the main scanning direction. the moving means for the reading means is moved in the sub-scanning direction, wherein while moving the reading means by the moving means based on the image data obtained by reading the document, a sub-scanning direction of the end of the document Acquisition means for acquiring the length of the edge along the main scanning direction, and a plurality of standard originals stored in the storage means based on the edge length of the original acquired by the acquisition means. of size, a plurality of sizes of candidates to be estimated as the size of the document, extracting means for extracting, area identified from the difference in the size of a plurality of candidates of the document extracted by the extraction means It relates, and if determining means for determining a document to the analyzing the image data area exists, when it is determined that the document on the region is present by the determining means, among the size of the plurality of candidates, When the size of the standard document having the edge length as the short side is determined as the size of the document, and the determination unit determines that the document does not exist in the area, And determining means for determining a size of a standard document having an edge length as a long side as the size of the document .

従って本発明によれば、原稿が例えば定型サイズの場合には、原稿サイズの候補を推定し、画像処理からそのサイズを自動的に正確に決定することができるという効果がある。   Therefore, according to the present invention, when the original is, for example, a standard size, an original size candidate is estimated, and the size can be automatically and accurately determined from image processing.

本発明の一実施形態である画像読取装置の概観斜視図である。1 is a schematic perspective view of an image reading apparatus according to an embodiment of the present invention. 画像読取装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of an image reading apparatus. 画像読取装置の画像処理部で実行される画像処理の概要を示すフローチャートである。3 is a flowchart illustrating an outline of image processing executed by an image processing unit of the image reading apparatus. PCに画像データが転送された後の画像処理を示すフローチャートである。4 is a flowchart illustrating image processing after image data is transferred to a PC. , 幅が同じで長さが異なる原稿を原稿台に載置し、画像読取を行うことで得られた画像の模式図である。FIG. 6 is a schematic diagram of an image obtained by placing an original having the same width and different length on an original table and reading an image. 原稿判定領域の画像解析を示すフローチャートである。6 is a flowchart showing image analysis of a document determination area. 画像解析により得られた画像を示す図である。It is a figure which shows the image obtained by image analysis. ステップS408に示すトリミング処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the trimming process shown to step S408. 結合処理を模式的に示す図である。It is a figure which shows a coupling | bonding process typically. 小領域除去処理の一例を示す図である。It is a figure which shows an example of a small area removal process.

以下添付図面を参照して本発明の実施例について、さらに具体的かつ詳細に説明する。なお、既に説明した部分には同一符号を付し重複説明を省略する。また、以下で引用する図面及び図面の符号は実施例の一例として示すものであり、それにより本発明による実施例のバリエーションを制限するものではない。   Hereinafter, embodiments of the present invention will be described more specifically and in detail with reference to the accompanying drawings. In addition, the same code | symbol is attached | subjected to the already demonstrated part and duplication description is abbreviate | omitted. Also, the drawings cited below and the reference numerals of the drawings are shown as examples of the embodiments, and the variations of the embodiments according to the present invention are not limited thereby.

なお、この明細書において、「記録」(「プリント」「印刷」という場合もある)とは、文字、図形等有意の情報を形成する場合のみならず、有意無意を問わない。また人間が視覚で知覚し得るように顕在化したものであるか否かを問わず、広く記録媒体上に画像、模様、パターン等を形成する、または媒体の加工を行う場合も表すものとする。   In this specification, “recording” (sometimes referred to as “printing” or “printing”) is not limited to the case where significant information such as characters and graphics is formed, and is not significant. It also represents the case where an image, a pattern, a pattern, etc. are widely formed on a recording medium, or the medium is processed, regardless of whether it is manifested so that humans can perceive it visually. .

以下の実施形態では単機能の画像読取装置(スキャナ装置)を例に説明するが、本発明はこれによって限定されるものではない。例えば、記録装置やファクシミリ通信機能などを兼ね備えた複合機(マルチファンクションプリンタ装置、MFP装置)に対しても本発明は適用可能である。   In the following embodiments, a single-function image reading apparatus (scanner apparatus) will be described as an example, but the present invention is not limited thereto. For example, the present invention can be applied to a multi-function device (multifunction printer device, MFP device) having a recording device, a facsimile communication function, and the like.

<画像読取装置(スキャナ装置)の構成説明(図1〜図2)>
図1は本発明の一実施形態である画像読取装置の概観斜視図である。
<Description of Configuration of Image Reading Apparatus (Scanner Apparatus) (FIGS. 1-2)>
FIG. 1 is a schematic perspective view of an image reading apparatus according to an embodiment of the present invention.

図1において、101はセットした原稿を押さえるための圧着板、102は原稿を載置する原稿台、103はセットした原稿を読み込むための原稿読取ユニット、104は操作ボタンを表している。   In FIG. 1, reference numeral 101 denotes a pressure-bonding plate for pressing a set document, 102 a document table on which a document is placed, 103 a document reading unit for reading a set document, and 104 an operation button.

ユーザが原稿台102の上に原稿を置き、操作ボタン104を押下すると、原稿読取ユニット103がモータ(不図示)が駆動され、光学的に原稿を読み取る。原稿読取時、原稿読取ユニット103内に設置されている光源から光が原稿に対して照射され、その反射光を原稿読取ユニット103の受光素子(不図示)が受光し、その受光光を光電変換して画像信号を生成する。   When the user places a document on the document table 102 and presses the operation button 104, the document reading unit 103 is driven by a motor (not shown) to optically read the document. At the time of reading a document, light is irradiated to the document from a light source installed in the document reading unit 103, and the reflected light is received by a light receiving element (not shown) of the document reading unit 103, and the received light is photoelectrically converted. Thus, an image signal is generated.

図2は、画像読取装置の内部構成を示すブロック図である。   FIG. 2 is a block diagram illustrating an internal configuration of the image reading apparatus.

図2において、CPU201はROM202に記憶された制御プログラムを実行することにより、画像読取装置の全体動作を制御する。また、CPU201はROM202に格納された画像処理プログラムをシェーディングなどの処理に使用される様々な値や数式及び定型原稿の縦横長といったサイズ情報を用いて実行する。スキャンユニット203は原稿画像を読取ることにより、赤(R)、緑(G)、青(B)色のアナログ輝度データを出力する。   In FIG. 2, the CPU 201 controls the overall operation of the image reading apparatus by executing a control program stored in the ROM 202. Further, the CPU 201 executes the image processing program stored in the ROM 202 by using various values and mathematical formulas used for processing such as shading and size information such as portrait and landscape orientations of the standard document. The scan unit 203 reads the original image and outputs red (R), green (G), and blue (B) analog luminance data.

画像処理部204では、A/D変換によりデジタル化された画像信号の値の補正、画像の符号化などの画像処理を実行する。画像処理の際、画像データの格納が必要な場合は、一時的にRAM208が使用される。オペレーションユニット205は、図1に示した操作ボタン104のキーの押下状態を検出し、装置各部を制御する。ドライブユニット206は、スキャンユニット203を動作させるため、モータ制御するドライバ回路などを含む。PCインタフェース207はホスト装置(不図示)として動作するPCとのインタフェースであり、画像読取装置はPCインタフェース207を介してPCとのデータ転送を行う。データ転送の際にバッファが必要となる場合はRAM208が使用される。   The image processing unit 204 executes image processing such as correction of the value of the image signal digitized by A / D conversion and image encoding. If image data needs to be stored during image processing, the RAM 208 is temporarily used. The operation unit 205 detects a pressed state of the operation button 104 shown in FIG. 1 and controls each part of the apparatus. The drive unit 206 includes a driver circuit that performs motor control in order to operate the scan unit 203. The PC interface 207 is an interface with a PC that operates as a host device (not shown), and the image reading apparatus performs data transfer with the PC via the PC interface 207. If a buffer is required for data transfer, the RAM 208 is used.

スキャンユニット203は光源部と複数の受光素子とを含み、複数の受光素子の配列方向を主走査方向とする。また、モータを駆動することでスキャンユニット203が移動する方向を副走査方向とする。原稿の画像を読取る際、光源部を駆動して光を画像原稿に照射し、その反射光を複数の受光素子が受光する。CPU201は主走査方向に複数の受光素子を電気的に走査するよう制御し、その走査に従って複数の受光素子は受光光を光電変換して画像信号を生成する。また、スキャンユニット203は主走査方向へ走査するともに、副走査方向に移動し、原稿の画像全体を読取る。   The scan unit 203 includes a light source unit and a plurality of light receiving elements, and the arrangement direction of the plurality of light receiving elements is a main scanning direction. Further, the direction in which the scan unit 203 moves by driving the motor is defined as the sub-scanning direction. When reading an image of a document, the light source unit is driven to irradiate the image document with light, and reflected light is received by a plurality of light receiving elements. The CPU 201 controls to electrically scan the plurality of light receiving elements in the main scanning direction, and the plurality of light receiving elements photoelectrically convert the received light according to the scanning to generate an image signal. The scan unit 203 scans in the main scanning direction and moves in the sub scanning direction to read the entire image of the document.

以上のような画像読取を行うので、原稿終端部とはスキャンユニット203が副走査方向に移動し、その移動が終了する側の端部を指す。従って、原稿終端部のエッジの長さとは主走査方向に沿った原稿の長さとなる。   Since the image reading is performed as described above, the document end portion refers to an end portion on the side where the scan unit 203 moves in the sub-scanning direction and the movement ends. Therefore, the length of the edge of the document end portion is the length of the document along the main scanning direction.

<画像処理の概要(図3〜図4)>
図3は画像読取装置の画像処理部204で実行される画像処理の概要を示すフローチャートである。
<Outline of image processing (FIGS. 3 to 4)>
FIG. 3 is a flowchart showing an outline of image processing executed by the image processing unit 204 of the image reading apparatus.

そのフローチャートによれば、原稿をスキャンユニット203で読取って得られた画像データをA/D変換する。その画像データに対し、ステップS301では、シェーディング補正を施す。これにより、予め用意された白基準と黒基準を読み取り、撮像素子(受光素子)毎に読取った輝度値から補正を行い撮像素子(受光素子)のばらつきを補正する。   According to the flowchart, image data obtained by reading a document with the scan unit 203 is A / D converted. In step S301, the image data is subjected to shading correction. Thereby, the white reference and the black reference prepared in advance are read, and correction is performed from the luminance value read for each image pickup device (light receiving device), thereby correcting variations in the image pickup device (light receiving device).

ステップS302では、ガンマ補正を実行する。この補正は、ROM202に予めテーブルを保持しておき、参照する形で補正を行っても良いし、或いは、逐次計算で補正しても良い。ステップS302の処理後、PCインタフェースを介してPCに画像データを転送する。   In step S302, gamma correction is executed. This correction may be performed by holding a table in the ROM 202 in advance and referring to it, or may be performed by sequential calculation. After the processing in step S302, the image data is transferred to the PC via the PC interface.

図3において、処理ステップとしては記載をしていないが、画像データの転送前に転送量の低減をするためにデータ圧縮を施しても良い。また、PCとのインタフェースの転送速度により、データ圧縮を行うかどうかを適宜切り替えても良い。   Although not shown as processing steps in FIG. 3, data compression may be performed to reduce the transfer amount before transferring image data. Further, whether to perform data compression may be appropriately switched depending on the transfer rate of the interface with the PC.

図4はPCに画像データが転送された後の画像処理を示すフローチャートである。   FIG. 4 is a flowchart showing image processing after image data is transferred to the PC.

ステップS401では、PCに転送された画像データをPC内のRAM(不図示)に展開し、ステップS402では原稿のエッジ部を検出する。なお、エッジの検出方法は問わない。例えば、ラプラシアンフィルタなどを用いても良いし、原稿画像の明度、彩度と組み合わせて判定しても良い。   In step S401, the image data transferred to the PC is developed in a RAM (not shown) in the PC, and in step S402, an edge portion of the document is detected. The edge detection method does not matter. For example, a Laplacian filter or the like may be used, or determination may be made in combination with the brightness and saturation of the document image.

次のステップS403では、原稿を適切に4辺検出できたかどうかを評価する。なお、評価方法は問わない。検出されたエッジが4つ存在し、且つ、その4つの辺により閉領域を構成していればエッジ検出を成功したと評価し、それ以外を失敗としても良い。評価した結果、ステップS403において、4辺を確定することができた場合、処理はステップS407に進み、トリミング処理を実行して処理終了となる。なお、そのトリミング処理については後述する。   In the next step S403, it is evaluated whether or not four sides of the document can be detected appropriately. The evaluation method does not matter. If there are four detected edges and a closed region is constituted by the four sides, it is evaluated that the edge detection is successful, and the others may be failed. As a result of the evaluation, if the four sides can be confirmed in step S403, the process proceeds to step S407, the trimming process is executed, and the process ends. The trimming process will be described later.

これに対して、4辺を確定できなかった場合、処理はステップS404に進む。ステップS404では原稿終端部のエッジの長さを測定する。この長さはエッジを構成する画素数をカウントし、スキャン解像度を使用することによって計算できる。例えば、原稿を副走査方向に解像度600dpiでスキャンし、原稿終端部のエッジの長さが4960画素だったとする。この時1画素の長さは25.4[mm]/600[dpi]であるから、エッジの長さは約210[mm]であることが判る。このようにして得られた原稿終端部長さを、予めPCのメモリに記憶した終端長さリストと比較する。終端長さリストとは、定型サイズの原稿の幅と長さを記憶したものである。例えば、A4原稿であれば、幅210[mm]、長さ297[mm]である。また、A5原稿であれば、幅148[mm]、長さ210[mm]である。   On the other hand, if the four sides cannot be determined, the process proceeds to step S404. In step S404, the length of the edge of the document end is measured. This length can be calculated by counting the number of pixels that make up the edge and using the scan resolution. For example, assume that a document is scanned in the sub-scanning direction with a resolution of 600 dpi and the length of the edge of the document end is 4960 pixels. At this time, since the length of one pixel is 25.4 [mm] / 600 [dpi], it can be seen that the edge length is about 210 [mm]. The document end portion length obtained in this way is compared with the end length list stored in advance in the memory of the PC. The end length list stores the width and length of a standard-size document. For example, an A4 document has a width of 210 [mm] and a length of 297 [mm]. For an A5 document, the width is 148 [mm] and the length is 210 [mm].

このように、定型サイズの紙は1まわり大きい原稿を半分にして次の定型サイズを決める。幅は同じで長さが異なる原稿はこれに限らない。レターサイズとリーガルサイズと呼ばれる定型原稿も、幅は同じで長さが異なるのである。スキャン画像から得られた原稿終端部のエッジの長さに相当する幅や長さの定型原稿がリスト中にあれば、候補となる定型原稿サイズを選択することにより原稿のサイズを絞り込める。   In this way, for a standard size paper, the next standard size is determined by halving a document that is one size larger. Documents having the same width but different lengths are not limited to this. The standard document called letter size and legal size also have the same width but different lengths. If a standard document having a width or length corresponding to the length of the edge of the document end portion obtained from the scanned image is in the list, the size of the document can be narrowed down by selecting a candidate standard document size.

次にステップS405では、ステップS404で得られた原稿終端部のエッジの長さより、その原稿が定型原稿であるかどうかを調べる。ここで、その原稿が定型原稿ではないと判断された場合には、サイズのマニュアル入力が必要となるので、処理は終了する。これに対して、その原稿が定型原稿であると判断された場合、候補となる定型原稿サイズを絞り込んだ上で、処理はステップS406にすすむ。ステップS406では原稿の載置されている方向を推定する処理を行う。この詳細については後述の<画像解析>の項で説明する。   Next, in step S405, it is checked whether or not the original is a standard original from the length of the edge of the original end obtained in step S404. Here, when it is determined that the original is not a standard original, the manual input of the size is necessary, and the process ends. On the other hand, if it is determined that the document is a standard document, the process proceeds to step S406 after narrowing down the candidate standard document size. In step S406, a process for estimating the direction in which the document is placed is performed. Details of this will be described later in <Image Analysis>.

ステップS406では最終的に原稿のサイズを確定する処理を行う。サイズ確定処理については以下の<サイズ確定処理>で詳述する。次にステップS407では、トリミング処理を実行する。トリミング方法については後述の<トリミング処理>で説明する。   In step S406, the final document size is determined. The size determination process will be described in detail in <Size determination process> below. In step S407, a trimming process is executed. The trimming method will be described later in <Trimming process>.

なお、ここでは画像読取装置本体で行う画像処理とPC内での画像処理を分けて説明した。従って、この場合、PCが画像処理装置として動作する。しかしながら、全ての処理ステップを画像読取装置内に備えて、これを実行しても良い。これはまた、その画像読取装置が記録装置といった他の機器と一体化してMFP装置を構成している場合も同じである。   Here, the image processing performed in the image reading apparatus main body and the image processing in the PC have been described separately. Accordingly, in this case, the PC operates as an image processing apparatus. However, all the processing steps may be provided in the image reading apparatus and executed. This also applies to the case where the image reading apparatus is integrated with another device such as a recording apparatus to constitute an MFP apparatus.

<サイズ確定処理>
ここでは、図4のステップS406における原稿のサイズ確定処理について詳細に説明する。
<Size confirmation process>
Here, the document size determination process in step S406 of FIG. 4 will be described in detail.

図5と図6はそれぞれ、幅が同じで長さが異なる原稿を原稿台に載置し、画像読取を行うことで得られた画像の模式図である。   FIG. 5 and FIG. 6 are schematic diagrams of images obtained by placing images having the same width and different lengths on a document table and performing image reading.

図5では斜線で示された圧着板501と定型原稿502と原稿終端部503とが撮像されている様子を示している。一方、図6では定型原稿602が撮像されている様子が示されている。図5と図6とを比較すると分かるように、定型原稿502は定型原稿602の半分の大きさの原稿である。また、両者の原稿終端部503のエッジの長さは同じである。ステップS404で取得された原稿終端部503のエッジの長さから、候補となる原稿サイズは定型原稿であれば、そのエッジの長さを長辺するサイズ(定型原稿502)か、或いは、短辺とするサイズ(定型原稿602)であることが推定される。さて、原稿終端部503のエッジの長さだけでは、撮像された定型原稿が定型原稿502であるか、又は、定型原稿602であるのかの判断ができない。 FIG. 5 shows a state in which the crimping plate 501, the standard document 502, and the document end portion 503 indicated by diagonal lines are imaged. On the other hand, FIG. 6 shows a state where the standard document 602 is captured. As can be seen by comparing FIG. 5 and FIG. 6, the standard document 502 is a document that is half the size of the standard document 602. In addition, the lengths of the edges of both document end portions 503 are the same. From the length of the acquired edge of the document termination 503 at step S404, if the document size to be candidates is a standard document, either size and long side length of the edge (standard document 502), or short It is estimated that the size is a side (standard document 602). Now, it is impossible to determine whether the captured standard document is the standard document 502 or the standard document 602 only by the length of the edge of the document end portion 503.

従って、ステップS406では、サイズが推定された原稿の載置された方向に沿って定型原稿の長さの差が生じるに十分な長さだけ画像を遡り、定型原稿502と定型原稿602の差が明らかな原稿判定領域504について画像解析を実行する。この画像解析の詳細は後述する。もし画像を遡った結果、原稿判定領域504が画像の領域外であると判断されれば、載置された原稿のサイズは自動的に小さいサイズのものとなる。画像領域が見つかれば、その領域について画像解析を実行する。その解析結果、原稿判定領域504が圧着板であれば、載置された原稿のサイズは定型原稿502であると決定できる。また、原稿判定領域504が紙であれば、載置された原稿のサイズは定型原稿602であると決定できる。   Accordingly, in step S406, the image is traced back by a length sufficient to cause the difference in the length of the standard document along the direction in which the document whose size is estimated is placed, and the difference between the standard document 502 and the standard document 602 is determined. Image analysis is performed on the obvious document determination area 504. Details of this image analysis will be described later. If it is determined that the document determination area 504 is outside the image area as a result of tracing back the image, the size of the placed document automatically becomes a small size. If an image area is found, image analysis is performed for that area. As a result of the analysis, if the document determination area 504 is a pressure plate, the size of the placed document can be determined to be the standard document 502. If the document determination area 504 is paper, the size of the placed document can be determined to be the standard document 602.

<画像解析>
この画像解析は載置された原稿のサイズを特定することが目的であるので、画像解析の対象となっている領域が、原稿である普通紙に対応した領域であるのか、又は、背景である圧着板に対応した領域であるのかを識別することが必要である。
<Image analysis>
Since the purpose of this image analysis is to specify the size of the placed document, the area subject to image analysis is the area corresponding to the plain paper that is the document or the background. It is necessary to identify whether the area corresponds to the crimping plate.

普通紙は以下のような特徴をもっている。一般に紙は木材チップを原材料とし、パルプ化の中で繊維が取り出される。洗浄や漂白の行程を経て、抄紙工程の中で、繊維はワイヤーパート、プレスパートによって、方向性をもって並べられることになる。この結果、横目、縦目など流れ目の特徴を有することになる。また、繊維の大きさは、材料となる木材の種類に依存し、数10μ×1〜3mmの大きさになることが多い。つまり、繊維の特徴としては、微小な細線が、方向性を有して並んでいると言える。これは、画像データを周波数解析した場合、周波数の観点での特徴として高周波成分を有することを意味する。また同時に、繊維質は方向性を有すること意味する。一方で圧着板は化学材料で均質性を持って生成されるので、周波数の観点の特徴として高周波成分は持たない。また同時に、方向性も持たない。そこで、図5〜図6における原稿判定領域504をパルプの繊維質が検出できる程度の解像度でスキャンして解析することにより、紙の有無を判定する。   Plain paper has the following characteristics. Generally, paper is made from wood chips, and fibers are taken out during pulping. After the washing and bleaching steps, the fibers are arranged with directionality by the wire part and the press part in the paper making process. As a result, it has the characteristics of flow lines such as horizontal eyes and vertical eyes. In addition, the size of the fiber depends on the type of wood used as the material, and often has a size of several tens of μ × 1 to 3 mm. That is, as a feature of the fiber, it can be said that fine fine lines are arranged with directivity. This means that when image data is subjected to frequency analysis, it has a high frequency component as a feature from the viewpoint of frequency. At the same time, it means that the fiber has directionality. On the other hand, since the crimping plate is made of a chemical material with homogeneity, it does not have a high frequency component as a feature in terms of frequency. At the same time, it has no directionality. Therefore, the presence / absence of paper is determined by scanning and analyzing the original determination area 504 in FIGS. 5 to 6 with a resolution that can detect the fiber of the pulp.

図7は原稿判定領域504の画像解析を示すフローチャートである。   FIG. 7 is a flowchart showing image analysis of the document determination area 504.

図8は画像解析により得られた画像を示す図である。なお、図8において、画像の中央が2次元座標の原点となる。   FIG. 8 is a diagram showing an image obtained by image analysis. In FIG. 8, the center of the image is the origin of the two-dimensional coordinates.

ステップS701では、対象区画の画像データに対し、空間周波数に変換するため、2次元のDFT(離散フーリエ変換)処理を施す。この処理により、図8(a)に示すような周波数特性を示す画像が得られる。図8(a)において、原点は直流成分を示し、縦軸(y軸)は垂直方向の空間周波数、横軸(x軸)は水平方向の空間周波数を示している。そして、水平垂直方向共に原点より離れるほど高周波成分であることを示している。図中の白色で表現されている部分は、所定周波数成分における電力値(パワースペクトル)であり、電力値が大きくなるほど、より白くプロットされている。図8(a)は、オフセット原稿の紙白区画の変換の例を示している。   In step S701, two-dimensional DFT (discrete Fourier transform) processing is performed on the image data of the target section in order to convert the image data into a spatial frequency. By this processing, an image having frequency characteristics as shown in FIG. 8A is obtained. In FIG. 8A, the origin indicates a DC component, the vertical axis (y-axis) indicates the vertical spatial frequency, and the horizontal axis (x-axis) indicates the horizontal spatial frequency. And it shows that it is a high frequency component, so that it leaves | separates from an origin in horizontal and vertical directions. A portion expressed in white in the figure is a power value (power spectrum) at a predetermined frequency component, and is plotted as white as the power value increases. FIG. 8A shows an example of conversion of the paper white section of the offset document.

ステップS702では、得られたDFT変換後の画像に対し、2値化処理を施す。2値化の閾値は予め設定された値を利用してもよいし、画像の平均値をもとに決定しても構わない。図8(b)は、図8(a)に示したDFT変換後の画像の対し、2値化処理を施した画像を示す。   In step S702, binarization processing is performed on the obtained DFT-transformed image. As the binarization threshold value, a preset value may be used, or it may be determined based on an average value of images. FIG. 8B shows an image obtained by binarizing the image after the DFT conversion shown in FIG.

ステップS703では、ステップS702で2値化したDFT画像に対し、ボールド処理を実行する。これは予め設定されたボールド量に基づき処理を実行する。図8(c)は電力値(パワースペクトル)が存在する白画素について5画素のボールド処理を施した結果の画像を示している。   In step S703, bold processing is performed on the DFT image binarized in step S702. This is executed based on a preset bold amount. FIG. 8C shows an image obtained as a result of performing a five-pixel bold process on a white pixel having a power value (power spectrum).

ステップS704では、ステップS703で得られた画像に対し、さらに孤立点の除去を実行する。これは画像を走査し、白色の面積に該当する画素数を検出し、予め設定された閾値以下の面積のものは黒で塗り潰すという処理である。閾値はボールド量を考慮し設定する。この実施例では、2〜3個の孤立点を除去することを想定し、閾値として350画素を設定した。図8(d)は孤立点除去により得られた画像を示す。   In step S704, the isolated point is further removed from the image obtained in step S703. This is a process of scanning an image, detecting the number of pixels corresponding to a white area, and painting an area with an area equal to or smaller than a preset threshold in black. The threshold is set in consideration of the bold amount. In this embodiment, it is assumed that 2 to 3 isolated points are removed, and 350 pixels are set as the threshold value. FIG. 8D shows an image obtained by isolated point removal.

ステップS705〜ステップS706では、ステップS704までで作成された画像から、繊維の特徴量を検出する処理を実行する。ステップS704で得られた図8(d)に示す画像おいて、前述した特徴を考慮し、判定を行う。ステップS705では、一定以上の周波数成分に電力値が検出されるかどうかを調べ、特徴量が検出されるかどうかを調べる。ここで、一定以上の高周波成分に電力値が検出されない場合、処理はステップS709に進み、その領域を非繊維の区画と判定する。これに対して、一定以上の高周波成分に電力値が検出された場合、処理はステップS706に進む。   In step S705 to step S706, processing for detecting the feature amount of the fiber is executed from the image created up to step S704. In the image shown in FIG. 8D obtained in step S704, determination is performed in consideration of the above-described features. In step S705, it is checked whether or not a power value is detected for a frequency component above a certain level, and whether or not a feature value is detected. Here, when a power value is not detected for a high-frequency component of a certain level or more, the process proceeds to step S709, and the region is determined as a non-fiber section. On the other hand, if a power value is detected for a certain high-frequency component, the process proceeds to step S706.

ステップS706では、図8(d)に示す画像に関し、扁平率を取得する。つまり、図8(d)に示す白画素を楕円とみなし、図8(e)に示すように長軸長aと短軸長bを求める。両者の値は白画素数をカウントすることにより得られる。そして、その得られた値を用い、扁平率を算出する。さらにステップS707では、算出した扁平率が一定値以上であるかどうかを調べる。ここで、その扁平率が一定値未満であると判定された場合、処理はステップS709に進み、その領域を非繊維の区画と判定する。これに対して、その扁平率が一定値以上であると判定された場合、処理はステップS708に進み、その領域を繊維区画と判定する。   In step S706, the flatness ratio is acquired for the image shown in FIG. That is, the white pixel shown in FIG. 8D is regarded as an ellipse, and the major axis length a and the minor axis length b are obtained as shown in FIG. Both values are obtained by counting the number of white pixels. Then, the flatness is calculated using the obtained value. Further, in step S707, it is checked whether or not the calculated flatness ratio is a certain value or more. Here, when it is determined that the flatness is less than a certain value, the process proceeds to step S709, and the region is determined as a non-fiber section. On the other hand, when it is determined that the flatness ratio is equal to or greater than a certain value, the process proceeds to step S708, and the region is determined as a fiber section.

つまり、繊維区画であればそこに画像原稿の用紙があると判定し、非繊維区画であればそこは背景である圧着板であると判定するのである。   That is, if it is a fiber section, it is determined that there is a sheet of an image original, and if it is a non-fiber section, it is determined that it is a pressure-bonding plate as a background.

以上のようにして、原稿判定領域504に原稿があるかないかが分かる。図5〜図6の例から分かるように、原稿判定領域504に原稿があるなら、載置された原稿は定型原稿602であり、原稿判定領域504に原稿がないなら、載置された原稿は定型原稿502である。この時点で、載置された原稿は定型原稿502又は定型原稿602であることが判明するので、これから原稿の載置された方向が判断できる。   As described above, it can be determined whether or not there is a document in the document determination area 504. As can be seen from the examples of FIGS. 5 to 6, if there is a document in the document determination area 504, the placed document is the standard document 602, and if there is no document in the document determination area 504, the placed document is This is a standard document 502. At this time, it is determined that the placed document is the standard document 502 or the standard document 602, and therefore the direction in which the document is placed can be determined.

<トリミング処理>
図9はステップS408に示すトリミング処理の詳細を示すフローチャートである。
<Trimming>
FIG. 9 is a flowchart showing details of the trimming process shown in step S408.

まず、ステップS901では、ステップS402で検出されたエッジの画素値を取得する。次に、ステップS902では、エッジ画素と判定された結果に対し、予め定められた領域の単位で結合処理を行なう。その結合処理の一例を、図を参照して説明する。   First, in step S901, the pixel value of the edge detected in step S402 is acquired. Next, in step S902, the result of determination as an edge pixel is combined in a predetermined area unit. An example of the combining process will be described with reference to the drawings.

図10は結合処理を模式的に示す図である。   FIG. 10 is a diagram schematically showing the joining process.

結合処理では図10(a)に示すように、3×3画素のマトリクス、計9画素を用いてこの中でいくつの画素が原稿と判定された画素であるのかを計数する。原稿であると判定された画素数が、所定数以上の場合には、マトリクス内の全ての画素、即ち、9画素を原稿に属する画素であると判定する。これに対し、そのような画素数が所定数未満である場合は、何もしない。   In the combining process, as shown in FIG. 10A, a 3 × 3 pixel matrix, a total of 9 pixels, is used to count how many of these pixels are determined to be originals. If the number of pixels determined to be a document is equal to or greater than a predetermined number, all the pixels in the matrix, that is, 9 pixels are determined to be pixels belonging to the document. On the other hand, if the number of pixels is less than the predetermined number, nothing is done.

図10(b)に示す例は所定数を“4”に設定した場合である。即ち、3×3画素のマトリクスで4画素以上、原稿に属する画素が存在する場合、そのマトリクス全てを原稿に属する画素であると判定して、画素値を変更する。   The example shown in FIG. 10B is a case where the predetermined number is set to “4”. That is, if there are 4 or more pixels belonging to the document in a 3 × 3 pixel matrix, all the matrices are determined to be pixels belonging to the document, and the pixel values are changed.

なお、上記マトリクスのサイズは一例であり、処理単位数を大きくしたり、繰り返しこうした処理を実行したりすることで、さらに強い結合処理を実現することも可能になる。   Note that the size of the matrix is just an example, and it is possible to realize stronger combination processing by increasing the number of processing units or repeatedly executing such processing.

この結合処理は、それまでの処理における画素単位でばらつきをもった判定結果を、ある程度まとめることを目的としたものであり、目的に添う処理であれば、その方法については、この例に限ったものではない。   This combination process is intended to summarize the determination results having variations in units of pixels in the previous processes to some extent, and the method is limited to this example as long as the process meets the purpose. It is not a thing.

ステップS903では、ステップS902における結合処理の実行後に残った、小領域の孤立点の除去を行う。これについても、様々な方法が存在する。隣接している画素の固まりを一単位とし、それらの面積(個数)を計測し、一定以下の面積であれば、全てを非原稿とする方法や、面積の最も大きい固まりのみを残し、それ以外を除去する方法などが挙げられる。   In step S903, the isolated points of the small area remaining after the execution of the combining process in step S902 are removed. There are various methods for this as well. Measure the area (number) of adjacent pixels as a unit, and if the area is below a certain level, leave all of them as non-documents, or leave only the largest area. The method of removing is mentioned.

図11は小領域除去処理の一例を示す図である。   FIG. 11 is a diagram illustrating an example of the small area removal process.

図11において、1101は読取られる画像原稿の全体を示し、シャドウが施されている濃い領域が原稿であると判定された塊の部分、白い領域が原稿ではないと判定された塊の部分を示している。図11(a)は、原稿として判定された大きな塊の部分以外のところにも原稿として判定された小さい塊の部分が存在することが示されている。このような画像に対して、上述した一定以下の面積の部分を原稿ではないとみなし小領域除去の処理を適用して得られた画像が図11(b)に示されたものとなる。このような小領域除去処理により、ノイズであった小さな領域の原稿であると判定された部分が削除され、原稿の領域のみを抽出することができる。   In FIG. 11, reference numeral 1101 denotes the entire image document to be read. The dark area where the shadow is applied is a block portion determined to be a document, and the white region is a block portion determined not to be a document. ing. FIG. 11A shows that a small chunk portion determined as a document exists also in a portion other than a large chunk portion determined as a document. FIG. 11B shows an image obtained by applying the small area removing process to such an image, assuming that the above-described area of a certain area is not a document. By such a small area removal process, a portion determined to be a small area original that was noisy is deleted, and only the original area can be extracted.

ステップS904では、ステップS903までの処理で抽出された領域の座標位置を特定する。最初に、原稿の4隅の位置を算出する。図11(b)に4点A、B、C、Dを示す。ステップS903で得られた領域に関し、図8に示した座標系において最大値と最小値を算出し、その値から4点の座標値を算出する。さらに、傾いた原稿も考慮するのであれば、4隅の近傍で、さらなる探索をすることにより、座標を求め直せばよい。   In step S904, the coordinate position of the region extracted in the processing up to step S903 is specified. First, the positions of the four corners of the document are calculated. FIG. 11B shows four points A, B, C, and D. For the area obtained in step S903, the maximum value and the minimum value are calculated in the coordinate system shown in FIG. 8, and the coordinate values of four points are calculated from the values. Furthermore, if an inclined document is also taken into consideration, the coordinates may be obtained again by further searching near the four corners.

以上の処理を実行することにより原稿判定領域504について紙のような原稿があるのか又は圧着板の画像であるのかを判定する。   By executing the above processing, it is determined whether there is a document such as paper in the document determination area 504 or an image of a pressure plate.

なお、図7におけるステップS702〜704では、効率的な検出を行うために、画像の特徴を際立出せている処理を行うが、別の処理で同様の目的を達成できるのであれば、他の処理が用いられても良い。   Note that in steps S702 to 704 in FIG. 7, in order to perform efficient detection, a process that highlights the features of the image is performed. However, if another process can achieve the same purpose, Processing may be used.

以上説明したようにこの実施例に従えば、原稿を原稿台に対して縦長に載置しても横長に載置しても、また、原稿台のどの位置に原稿を搭置しても定型原稿であれば、そのサイズを1つに決定することが可能となる。   As described above, according to this embodiment, it is possible to place a document on a document table either vertically or horizontally, or on any position on the document table. In the case of a manuscript, the size can be determined as one.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (13)

原稿台に載置された原稿の画像を読取る画像読取装置であって、
複数の定型原稿のサイズを記憶する記憶手段と、
前記原稿の画像を光学的に主走査方向に読取る読取手段と、
前記読取手段を副走査方向に移動させる移動手段と、
前記移動手段により前記読取手段を移動させながら前記原稿を読取ることにより得られた画像データに基いて、前記原稿の副走査方向の終端部であるエッジの、主走査方向に沿った長さを取得する取得手段と、
前記取得手段により取得された前記原稿のエッジの長さに基づいて、前記記憶手段に記憶された複数の定型原稿のサイズのうちの、前記原稿のサイズとして推定される候補のサイズを複数、抽出する抽出手段と、
前記抽出手段により抽出された前記原稿の複数の候補のサイズの差より特定される領域に関し、前記画像データを解析して前記領域に原稿が存在するかどうかを判定する判定手段と、
前記判定手段により前記領域に原稿が存在すると判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを短辺とする定型原稿のサイズを前記原稿のサイズとして決定し、前記判定手段により前記領域に原稿が存在しないと判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを長辺とする定型原稿のサイズを前記原稿のサイズとして決定する決定手段とを有することを特徴とする画像読取装置。
An image reading apparatus for reading an image of a document placed on a document table,
Storage means for storing sizes of a plurality of standard documents;
Reading means for optically reading the image of the document in the main scanning direction ;
Moving means for moving the reading means in the sub-scanning direction ;
Based on the image data obtained by reading the original while moving the reading means by the moving means, the length along the main scanning direction of the edge that is the terminal portion of the original in the sub- scanning direction is acquired. Acquisition means to
Based on the length of the edge of the acquired document by the acquisition unit, of the size of a plurality of standard document stored in the storage means, a plurality of sizes of candidates to be estimated as the size of the document, extracted Extraction means to
A determination unit that analyzes the image data and determines whether or not a document exists in the region with respect to a region specified by a difference in size of the plurality of candidates of the document extracted by the extraction unit;
When the determination unit determines that a document is present in the area, a standard document size having a short side as the edge length is determined as the document size among the plurality of candidate sizes, and the determination is performed. Determining means for determining, as a size of the original, a size of a standard original having a long side of the edge length among the plurality of candidate sizes when the means determines that no original exists in the area ; An image reading apparatus comprising:
前記読取手段は複数の受光素子が前記主走査方向に配列されていることを特徴とする請求項1に記載の画像読取装置。 The reading means is an image reading apparatus according to claim 1 in which a plurality of light receiving elements, characterized that you have been arranged in the main scanning direction. 前記記憶手段は、複数の定型原稿それぞれの短辺長辺のサイズを記憶することを特徴とする請求項1又は2に記載の画像読取装置。 Wherein the storage unit, the image reading apparatus according to claim 1 or 2, characterized in that storing a size of a plurality of standard document each of the short sides and long sides. 前記抽出手段は、
前記原稿のエッジの長さを定型原稿の短辺又は長辺としたときに、前記記憶手段に格納された複数の定型原稿それぞれの短辺又は長辺に相当する定型原稿のサイズを、前記候補のサイズとして抽出することを特徴とする請求項に記載の画像読取装置。
The extraction means includes
When the length of the edge of the document that is the short side or long side of the standard document, the size of the standard document that corresponds to the short side or long side of each of the plurality of standard document stored in the storage means, the candidate The image reading apparatus according to claim 3 , wherein the image reading device is extracted as a size of the image.
前記判定手段は、前記抽出手段により定型原稿のサイズが抽出された場合に、前記領域に原稿が存在するかどうかを判定することを特徴とする請求項4に記載の画像読取装置。5. The image reading apparatus according to claim 4, wherein the determination unit determines whether or not a document exists in the area when the size of the standard document is extracted by the extraction unit. 前記原稿台に載置された原稿を圧着する圧着板をさらに有することを特徴とする請求項1乃至5のいずれか1項に記載の画像読取装置。   The image reading apparatus according to claim 1, further comprising a pressure-bonding plate for pressure-bonding the document placed on the document table. 前記判定手段は、前記領域に関して前記画像データに画像処理を施して、周波数解析を行い、前記周波数解析の結果から、前記領域に対応する画像データが前記圧着板に対応しているのか、又は、前記原稿に対応しているのかを判断するとを特徴とする請求項6に記載の画像読取装置。 The determination means performs image processing on the image data with respect to the region, performs frequency analysis, and from the result of the frequency analysis, whether the image data corresponding to the region corresponds to the crimping plate, or the image reading apparatus according to claim 6, characterized that you determining whether they correspond to the document. 前記判定手段はさらに、前記画像データに、前記画像から前記原稿の領域を抽出するトリミング処理を施ことを特徴とする請求項1乃至7のいずれか1項に記載の画像読取装置。 Said determining means further to the image data, the image reading apparatus according to any one of claims 1 to 7, characterized in that to facilities the trimming process of extracting an area of the document from the image. 前記トリミング処理では、前記画像データにおいて、前記原稿に属する画素を判定し、前記原稿に属する画素を結合する結合処理を実行し、前記結合処理により結合された領域を前記原稿の領域として抽出することを特徴とする請求項8に記載の画像読取装置。In the trimming process, in the image data, a pixel belonging to the document is determined, a combining process for combining the pixels belonging to the document is executed, and an area combined by the combining process is extracted as an area of the document. The image reading apparatus according to claim 8. 前記結合処理により画素が結合されている第1の領域と、前記結合処理により画素が結合されており且つ前記第1の領域よりも小さく且つ前記第1の領域とは結合されていない第2の領域が存在する場合、前記トリミング処理では、前記第1の領域を前記原稿の領域として抽出し、前記第2の領域は前記原稿の領域として抽出しないことを特徴とする請求項9に記載の画像読取装置。A first region in which pixels are combined by the combining processing; and a second region in which pixels are combined by the combining processing and are smaller than the first region and not combined with the first region. 10. The image according to claim 9, wherein when there is an area, the trimming process extracts the first area as the area of the original and does not extract the second area as the area of the original. Reader. 画像読取装置が原稿の画像を光学的に主走査方向に読取る読取手段と前記読取手段を副走査方向に移動させる移動手段を用い原稿台に載置された前記原稿を読取ることで得られた画像データを入力して画像処理する画像処理装置であって、
複数の定型原稿のサイズを記憶する記憶手段と、
前記画像データに基いて、前記原稿の副走査方向の終端部であるエッジの、主走査方向に沿った長さを取得する取得手段と、
前記取得手段により取得された前記原稿のエッジの長さに基づいて、前記記憶手段に記憶された複数の定型原稿のサイズのうちの、前記原稿のサイズとして推定される候補のサイズを複数、抽出する抽出手段と、
前記抽出手段により抽出された前記原稿の複数の候補のサイズの差より特定される領域に関し、前記画像データを解析して前記領域に原稿が存在するかどうかを判定する判定手段と、
前記判定手段により前記領域に原稿が存在すると判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを短辺とする定型原稿のサイズを前記原稿のサイズとして決定し、前記判定手段により前記領域に原稿が存在しないと判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを長辺とする定型原稿のサイズを前記原稿のサイズとして決定する決定手段とを有することを特徴とする画像処理装置。
Image reading apparatus is obtained by reading the document placed on the document table by using a moving means for moving the reading means said a reading means for reading an image of an original optically in the main scanning direction in the sub-scanning direction An image processing apparatus that inputs image data and processes the image,
Storage means for storing sizes of a plurality of standard documents;
Acquiring means for acquiring a length along a main scanning direction of an edge which is a terminal portion in a sub-scanning direction of the document based on the image data;
Based on the length of the edge of the acquired document by the acquisition unit, of the size of a plurality of standard document stored in the storage means, a plurality of sizes of candidates to be estimated as the size of the document, extracted Extraction means to
A determination unit that analyzes the image data and determines whether or not a document exists in the region with respect to a region specified by a difference in size of the plurality of candidates of the document extracted by the extraction unit;
When the determination unit determines that a document is present in the area, a standard document size having a short side as the edge length is determined as the document size among the plurality of candidate sizes, and the determination is performed. Determining means for determining, as a size of the original, a size of a standard original having a long side of the edge length among the plurality of candidate sizes when the means determines that no original exists in the area ; An image processing apparatus comprising:
請求項11に記載の画像処理装置の各手段としてコンピュータを機能させるためのプログラム。 The program for functioning a computer as each means of the image processing apparatus of Claim 11 . 画像読取装置が原稿の画像を光学的に主走査方向に読取る読取手段と前記読取手段を副走査方向に移動させる移動手段を用い原稿台に載置された前記原稿を読取ることで得られた画像データを入力して画像処理する像処理方法であって、
前記画像データに基いて、前記原稿の副走査方向の終端部であるエッジの、主走査方向に沿った長さを取得する取得工程と、
前記取得工程において取得された前記原稿のエッジの長さに基づいて、メモリに記憶された複数の定型原稿のサイズのうちの、前記原稿のサイズとして推定される候補のサイズを複数、抽出する抽出工程と、
前記抽出工程において抽出された前記原稿の複数の候補のサイズの差より特定される領域に関し、前記画像データを解析して前記領域に原稿が存在するかどうかを判定する判定工程と、
前記判定工程において前記領域に原稿が存在すると判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを短辺とする定型原稿のサイズを前記原稿のサイズとして決定し、前記判定工程において前記領域に原稿が存在しないと判定された場合、前記複数の候補のサイズのうち、前記エッジの長さを長辺とする定型原稿のサイズを前記原稿のサイズとして決定する決定工程とを有することを特徴とする画像処理方法。
Image reading apparatus is obtained by reading the document placed on the document table by using a moving means for moving the reading means said a reading means for reading an image of an original optically in the main scanning direction in the sub-scanning direction It was to input image data a images processing method for image processing,
An acquisition step of acquiring a length along the main scanning direction of an edge which is a terminal portion of the original in the sub-scanning direction based on the image data;
Extraction that extracts a plurality of candidate sizes estimated as the document size out of a plurality of standard document sizes stored in a memory based on the edge length of the document acquired in the acquisition step Process,
A determination step of analyzing whether the document exists in the region by analyzing the image data with respect to a region specified by a difference in size of the plurality of candidates of the document extracted in the extraction step;
When it is determined in the determination step that a document is present in the area, a size of a standard document having a short side of the edge length is determined as the document size among the plurality of candidate sizes, and the determination A determination step of determining, as a size of the original, a size of a standard original having a long side of the edge length among the plurality of candidate sizes when it is determined that no original exists in the region in the process; An image processing method comprising:
JP2014057110A 2014-03-19 2014-03-19 Image reading apparatus, image processing apparatus, and image processing method therefor Active JP6362075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014057110A JP6362075B2 (en) 2014-03-19 2014-03-19 Image reading apparatus, image processing apparatus, and image processing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014057110A JP6362075B2 (en) 2014-03-19 2014-03-19 Image reading apparatus, image processing apparatus, and image processing method therefor

Publications (2)

Publication Number Publication Date
JP2015180004A JP2015180004A (en) 2015-10-08
JP6362075B2 true JP6362075B2 (en) 2018-07-25

Family

ID=54263757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014057110A Active JP6362075B2 (en) 2014-03-19 2014-03-19 Image reading apparatus, image processing apparatus, and image processing method therefor

Country Status (1)

Country Link
JP (1) JP6362075B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3031483B2 (en) * 1990-10-26 2000-04-10 株式会社リコー Facsimile machine
JP2001285585A (en) * 2000-03-29 2001-10-12 Konica Corp Image reader, original size sensing method and image- forming device
JP5768753B2 (en) * 2012-03-30 2015-08-26 ブラザー工業株式会社 Image reading apparatus and original size specifying program

Also Published As

Publication number Publication date
JP2015180004A (en) 2015-10-08

Similar Documents

Publication Publication Date Title
US9135523B2 (en) Apparatus, method of controlling the same and storage medium
JP4574503B2 (en) Image processing apparatus, image processing method, and program
JP6345224B1 (en) Image processing apparatus, rectangle detection method, and computer program
US20080137157A1 (en) Image processing apparatus and method of controlling same
US8390896B2 (en) Image reading method, image reading apparatus, and program recording medium
US9386186B2 (en) Image processing apparatus and image processing method performing detection of inclination of original in read image in accordance with direction of fiber
JP6198521B2 (en) Image processing apparatus, image processing method, and program
WO2009094446A1 (en) Method and apparatus for cropping images
JP2010056827A (en) Apparatus and program for processing image
US8229214B2 (en) Image processing apparatus and image processing method
KR100296596B1 (en) Edge Enhancement Method by 4-Directional 1-D High Pass Filtering
US7738696B2 (en) Image processing apparatus and method for extracting a document area
JP6362075B2 (en) Image reading apparatus, image processing apparatus, and image processing method therefor
JP5288951B2 (en) Image processing apparatus, image processing method, and program
JP4167680B2 (en) Document reading apparatus and document reading method
US9667832B2 (en) Image processing apparatus
US9811877B2 (en) Image processing device selecting arrangement method for generating arranged image data
US8494272B2 (en) Image processing device, image processing method, and computer readable medium for judging if images are matched
US8289584B2 (en) Image processing method, apparatus and program
US9886648B2 (en) Image processing device generating arranged image data representing arranged image in which images are arranged according to determined relative position
JP6639257B2 (en) Information processing apparatus and control method therefor
US20240029213A1 (en) Document-occluding artifact removal
JP6810892B2 (en) Image processing device
JP7009750B2 (en) Image forming device, tint block area determination method and tint block area determination program by the device
US10270921B2 (en) Image analyzing apparatus determining representation form of code image using distances of code elements

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170317

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180320

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180521

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180619

R151 Written notification of patent or utility model registration

Ref document number: 6362075

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151