JP4261498B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP4261498B2
JP4261498B2 JP2005051632A JP2005051632A JP4261498B2 JP 4261498 B2 JP4261498 B2 JP 4261498B2 JP 2005051632 A JP2005051632 A JP 2005051632A JP 2005051632 A JP2005051632 A JP 2005051632A JP 4261498 B2 JP4261498 B2 JP 4261498B2
Authority
JP
Japan
Prior art keywords
document
pixel
image
comparison
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005051632A
Other languages
Japanese (ja)
Other versions
JP2006238196A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2005051632A priority Critical patent/JP4261498B2/en
Publication of JP2006238196A publication Critical patent/JP2006238196A/en
Application granted granted Critical
Publication of JP4261498B2 publication Critical patent/JP4261498B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)

Description

本発明は、原稿の画像を読み取る画像読取装置に関する。   The present invention relates to an image reading apparatus that reads an image of a document.

従来、複写機、スキャナ、ファクシミリ等の画像読取装置における原稿サイズの検知は、プラテンガラス上に原稿を載置する場合については、例えば下記特許文献1,2又は3に示されるように、プラテンガラス上の所定の位置における原稿の有無を検知するセンサを用いて行われていた。また、載置された原稿をシートフィーダにより引き込む場合については、主走査方向の原稿サイズについては、原稿ガイド板の位置の検知により行われ、副走査方向の原稿サイズについては、副走査方向の先頭と末尾の通過時を検知するセンサを用いて行われていた。
特開平10−010651号公報 特開平10−090807号公報 特開平08−083033号公報
Conventionally, the detection of the document size in an image reading apparatus such as a copying machine, a scanner, or a facsimile is performed when a document is placed on the platen glass. This is done using a sensor that detects the presence or absence of a document at a predetermined position above. When the placed document is pulled in by the sheet feeder, the document size in the main scanning direction is detected by detecting the position of the document guide plate, and the document size in the sub scanning direction is detected at the head in the sub scanning direction. And it was done using a sensor that detects when the tail passes.
JP-A-10-010651 JP-A-10-090807 Japanese Patent Application Laid-Open No. 08-083033

しかしながら、従来技術では、センサ等の原稿サイズを検知するためのハードウェアを画像読取装置に備える必要があり、その分コストがかかっていた。   However, in the prior art, it is necessary to provide hardware for detecting the document size such as a sensor in the image reading apparatus, which increases the cost.

本発明は、上記問題点に鑑みて成されたもので、原稿サイズを検知するためのセンサ等のハードウェアを設けることなく原稿サイズを検知できる画像読取装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an image reading apparatus that can detect the document size without providing hardware such as a sensor for detecting the document size.

請求項1に係る画像読取装置は、原稿から画像を読み取る読取手段と、
前記読取手段により読み取られた画像データである原稿データを記憶する原稿データ記憶手段と、
前記読取手段が原稿を読み取る位置の原稿の背面側に設けられた、予め定められた画像が形成されたパターン画像と、
前記読取手段により前記背面を読み取った場合の画像データである比較データを予め記憶する比較データ記憶手段と、
前記原稿データ記憶手段に記憶されている原稿データと、前記比較データ記憶手段に記憶されている比較データとを比較して各位置における一致度を求め、一致度の高い領域と一致度の低い領域の境目を前記原稿データにおける原稿の端位置として認識する端位置認識手段と、
前記端位置認識手段により認識された原稿の両端位置から、原稿のサイズを求めるサイズ算出手段とを備え
前記端位置認識手段は、
比較データ記憶手段に記憶されている比較データの画素と、この画素に対応する、原稿データ記憶手段に記憶されている原稿データの予め定められた複数の位置の画素との差分を算出する差分算出手段と、
前記差分算出手段により算出された各差分が、予め定められた値以内であるか否かを判定し、差分が予め定められた値以内である場合に一致したとする第1の一致判定手段と、
前記差分算出手段により差分が算出された前記比較データの画素ごとに、この画素に対する前記第1の一致判定手段による判定結果の少なくとも1つが一致したと判定された場合に、当該比較データの画素が原稿データと一致したと判定する第2の一致判定手段と、
前記第2の一致判定手段による判定結果による不一致画素が、主走査方向外側から内側に向かって予め定められた画素数分連続した場合にその連続の開始位置を原稿の端位置である判定する端位置判定手段と
を備えるものである。
An image reading apparatus according to claim 1 includes a reading unit that reads an image from a document,
Document data storage means for storing document data which is image data read by the reading means;
A pattern image provided with a predetermined image provided on the back side of the document at a position where the reading unit reads the document;
Comparison data storage means for preliminarily storing comparison data that is image data when the back surface is read by the reading means;
The document data stored in the document data storage means and the comparison data stored in the comparison data storage means are compared to determine the degree of coincidence at each position. Edge position recognition means for recognizing the border of the document as the edge position of the document in the document data;
Size calculation means for obtaining the size of the document from both end positions of the document recognized by the edge position recognition means ,
The end position recognition means includes
Difference calculation for calculating a difference between pixels of comparison data stored in the comparison data storage means and pixels at a plurality of predetermined positions of the document data stored in the document data storage means corresponding to the pixels Means,
A first coincidence determining unit that determines whether or not each difference calculated by the difference calculating unit is within a predetermined value, and is matched when the difference is within a predetermined value; ,
For each pixel of the comparison data for which the difference is calculated by the difference calculation unit, when it is determined that at least one of the determination results by the first match determination unit for the pixel matches, the pixel of the comparison data is Second coincidence determining means for determining that the original data coincides;
When the non-matching pixels based on the determination result by the second matching determination unit continue for the predetermined number of pixels from the outside in the main scanning direction to the inside, an end for determining the continuous start position as the end position of the document Position determination means .

この構成によれば、読み取り手段により原稿及び背景から読み取られ、原稿データ記憶手段に記憶された原稿データと、比較データ記憶手段に予め記憶されている画像パターンの背景データとが、端位置認識手段により比較されて、両データの一致部分が認識されることにより、原稿の端位置が端位置認識手段により認識され、この端位置を用いてサイズ算出手段により原稿のサイズが求められる。   According to this configuration, the document position data is read from the document and the background by the reading unit and stored in the document data storage unit and the background data of the image pattern stored in advance in the comparison data storage unit. The edge position of the document is recognized by the edge position recognition means, and the size of the document is obtained by the size calculation means using this edge position.

請求項に係る画像読取装置は、請求項に記載の画像読取装置であって、前記端位置判定手段は、前記連続不一致画素の検索を、主走査方向の両側端から内側に並行に進めるものである。 An image reading apparatus according to a second aspect is the image reading apparatus according to the first aspect , wherein the end position determination means advances the search for the consecutive inconsistent pixels in parallel from both ends in the main scanning direction. Is.

請求項に係る画像読取装置は、請求項又はに記載の画像読取装置であって、前記差分算出手段は、前記比較データの画素と、その画素と一致する位置の原稿データの画素及びその前後の位置の予め定められた画素数分の画素との差分を算出するものである。 An image reading apparatus according to a third aspect is the image reading apparatus according to the first or second aspect , wherein the difference calculating means includes a pixel of the comparison data, a pixel of the document data at a position matching the pixel, and The difference between the pixels before and after the predetermined number of pixels is calculated.

請求項に係る画像読取装置は、請求項1〜3のいずれかに記載の画像読取装置であって、前記差分算出手段は、前記比較データにおける主走査方向に対する予め定められた画素数おきの画素のみを差分を算出する対象とするものである。 An image reading apparatus according to a fourth aspect is the image reading apparatus according to any one of the first to third aspects, wherein the difference calculating means is provided for every predetermined number of pixels in the main scanning direction in the comparison data. Only the pixel is a target for calculating the difference.

請求項に係る画像読取装置は、請求項1〜のいずれかに記載の画像読取装置であって、前記背面に形成された画像パターンとして、格子パターンを用いるものである。 An image reading apparatus according to a fifth aspect is the image reading apparatus according to any one of the first to fourth aspects, wherein a lattice pattern is used as the image pattern formed on the back surface.

請求項に係る画像読取装置は、請求項1〜5のいずれかに記載の画像読取装置であって、前記背面に形成された画像パターンとして、低濃度の画像を用いるものである。 An image reading apparatus according to a sixth aspect is the image reading apparatus according to any one of the first to fifth aspects, wherein a low-density image is used as the image pattern formed on the back surface.

請求項1に記載の発明によれば、原稿サイズを検知するためのセンサ等のハードウェアを設けることなく原稿サイズを検出できるため、安価に原稿サイズを検出することができる。   According to the first aspect of the present invention, since the document size can be detected without providing hardware such as a sensor for detecting the document size, the document size can be detected at a low cost.

さらに、請求項に記載の発明によれば、容易に原稿の端位置を認識することができる。また、比較データの1つの画素を原稿データの複数の画素に対して一致判定を行うので、背面の画像パターンの画素位置が若干不正確に読み取られた場合においても、より正確な原稿サイズを検出することができる。また、画素値の差分が所定の値以内である場合に一致したと判定するので、背面の画像パターンの画素値が若干不正確に読み取られた場合においても、より正確な原稿サイズを検出することができる。 Furthermore, according to the first aspect of the present invention, the end position of the document can be easily recognized. In addition, since one pixel of the comparison data is matched with a plurality of pixels of the document data, a more accurate document size can be detected even if the pixel position of the image pattern on the back side is read slightly inaccurately. can do. Also, since the pixel value difference is determined to be the same when it is within a predetermined value, it is possible to detect a more accurate document size even when the pixel value of the image pattern on the back side is read slightly inaccurately. Can do.

請求項に記載の発明によれば、原稿の主走査方向の両端を並行に検出するので、より速く原稿サイズの検出を行うことができる。 According to the second aspect of the invention, since both ends of the original in the main scanning direction are detected in parallel, the original size can be detected more quickly.

請求項に記載の発明によれば、比較データの1つの画素を、その画素と一致する位置の原稿データの画素及びその前後の位置の予め定められた画素数分の画素に対して一致判定を行うので、背面の画像パターンの画素位置が若干不正確に読み取られた場合においても、より正確な原稿サイズを検出することができる。 According to the third aspect of the present invention, it is determined whether one pixel of the comparison data is coincident with the pixel of the document data at the position matching the pixel and the pixels corresponding to the predetermined number of pixels at the positions before and after the pixel. Therefore, even when the pixel position of the image pattern on the back side is read slightly inaccurately, a more accurate document size can be detected.

請求項に記載の発明によれば、より少ないデータを比較することにより比較対象とするデータを少なくできるので、より速く原稿サイズを検出することができる。 According to the fourth aspect of the invention, since the data to be compared can be reduced by comparing less data, the document size can be detected more quickly.

請求項に記載の発明によれば、原稿に形成されている画像と、背景の画像パターンが、原稿の境界においてマッチする可能性が少ないので、原稿に形成されている画像と、背面に形成されている画像との境界を判別しやすい。 According to the fifth aspect of the present invention, since the image formed on the document and the background image pattern are less likely to match at the boundary of the document, the image formed on the document and the back surface are formed. It is easy to determine the boundary with the image that is being displayed.

請求項に記載の発明によれば、画像パターンが低濃度であるため原稿を透けてしまうことがないため、原稿からの画像の読み取りに対して裏写りすることがより少ない。 According to the sixth aspect of the present invention, since the image pattern has a low density and the original is not seen through, there is less show-through when the image is read from the original.

以下、本発明に係る実施形態を図面に基づいて説明する。図1は、本発明の一実施形態に係る画像読取装置のシートフィーダ部分の機械的な概略構成を示す斜視図である。画像読取装置は、例えば複写機、スキャナ、ファクシミリ、又はこれらの機能を併せ持つ複合機である。原稿112は、読み取る面を下にして載置され、シートフィーダの原稿引込機構(図示省略)により1枚ずつ矢印Aの方向に引き込まれる。シートフィーダ内における原稿が引き込まれて1枚になる位置の下部には、原稿の画像を読み取る読取センサ113が所定の位置に固定されて備えられる。読取センサ113は、CCD(電荷結合素子)等から構成され、原稿の例えば主走査方向の1走査ラインを1度に読み取り可能なものである。読取センサ113は、主走査方向の1走査ラインの読み取りを、引き込まれる原稿112に対し全走査ライン繰り返すことにより原稿の全面を読み取る。当該シートフィーダにおいて、読取センサ113に対する原稿の背面側である、原稿が載置されていない場合に読取センサ113により読み取られる部分111には所定の画像パターンが描かれている。この画像パターンは、原稿に裏移りせず、あらゆるタイプの原稿画像に対し原稿との境界が明確であるものが望ましく、例えば低濃度の格子パターン114である。読取センサ113は、原稿が載置されている場合には、原稿とその外側に位置する上記背面の画像パターンとを一緒に読み取る。   Embodiments according to the present invention will be described below with reference to the drawings. FIG. 1 is a perspective view showing a mechanical schematic configuration of a sheet feeder portion of an image reading apparatus according to an embodiment of the present invention. The image reading apparatus is, for example, a copying machine, a scanner, a facsimile machine, or a multifunction machine having both functions. The documents 112 are placed with the reading surface facing down, and are pulled in the direction of the arrow A one by one by a document drawing mechanism (not shown) of the sheet feeder. A reading sensor 113 that reads an image of the original is fixed at a predetermined position below the position where the original is pulled into the sheet feeder in the sheet feeder. The reading sensor 113 is composed of a CCD (charge coupled device) or the like, and can read, for example, one scanning line in the main scanning direction of the document at a time. The reading sensor 113 reads the entire surface of the document by repeating reading of one scanning line in the main scanning direction with respect to the document 112 to be pulled in all scanning lines. In the sheet feeder, a predetermined image pattern is drawn on a portion 111 on the back side of the document with respect to the reading sensor 113 and read by the reading sensor 113 when the document is not placed. This image pattern is preferably set so that the boundary with the original is clear for all types of original images, for example, a low-density lattice pattern 114 without being transferred to the original. When a document is placed, the reading sensor 113 reads the document and the image pattern on the back located outside the document together.

次に本発明の一実施形態に係る画像読取装置であるスキャナ1の機能構成を説明する。図2は、スキャナ1の機能構成を示すブロック図である。スキャナ1は、その機能部として、画像読取部11、原稿データ記憶部12、比較データ記憶部13、端位置認識部14、及びサイズ算出部15を備える。ここでは、スキャナ1の画像データの出力についての説明は省略する。   Next, the functional configuration of the scanner 1 which is an image reading apparatus according to an embodiment of the present invention will be described. FIG. 2 is a block diagram illustrating a functional configuration of the scanner 1. The scanner 1 includes an image reading unit 11, a document data storage unit 12, a comparison data storage unit 13, an end position recognition unit 14, and a size calculation unit 15 as functional units. Here, the description about the output of the image data of the scanner 1 is omitted.

画像読取部11は、原稿から画像を読み取るもので、その機械的構成は、図1に示す画像読取装置のシートフィーダ部分に相当する。画像読取部11は、読み取った画像データ(原稿データ)を原稿データ記憶部12に書き込む。   The image reading unit 11 reads an image from a document, and its mechanical configuration corresponds to the sheet feeder portion of the image reading apparatus shown in FIG. The image reading unit 11 writes the read image data (document data) in the document data storage unit 12.

原稿データ記憶部12は、画像読取部11により読み取られた原稿の画像データを記憶するものである。原稿データ記憶部12は、例えばRAM(ランダムアクセスメモリ)等により構成される。原稿データ記憶部12に記憶される原稿データは、原稿の画像とその外側領域の上記背面の画像パターンとを含む。   The document data storage unit 12 stores image data of a document read by the image reading unit 11. The document data storage unit 12 is configured by, for example, a RAM (random access memory). The document data stored in the document data storage unit 12 includes an image of the document and the image pattern on the back surface of the outer area.

比較データ記憶部13は、原稿が載置されていない場合に読取センサ113により読み取られる上記背面の画像パターンを予め記憶しておくものである。比較データ記憶部13は、例えばRAM等から構成される。比較データ記憶部13には、原稿データを読み取る直前に上記背面の画像パターンが読み取られ記憶される。この画像パターン読み取り時期は例えば、原稿データを読み取る前の任意の時期や、工場における当該スキャナ1の製造時であってもよい。比較データ記憶部13に記憶される画像パターンは、原稿の画像が読み取られたときに、その画像データ(この画像データは原稿の画像とその周辺の上記背景の画像パターンとを含んでいる。)と比較され、原稿の外端位置を検出するために用いられる。比較データ記憶部13は、例えば画像処理の先頭で使用するために既に備えられているラインメモリを流用したものであってもよいし、比較データの記憶のための専用のラインメモリであってもよい。画像処理で使用するラインメモリを流用する場合にはより安価に本発明を実施することができる。   The comparison data storage unit 13 stores in advance an image pattern on the back surface that is read by the reading sensor 113 when a document is not placed. The comparison data storage unit 13 is composed of, for example, a RAM. The comparison data storage unit 13 reads and stores the back image pattern immediately before reading the document data. The image pattern reading time may be, for example, an arbitrary time before reading the document data, or the manufacturing time of the scanner 1 in the factory. The image pattern stored in the comparison data storage unit 13 is image data when the image of the document is read (this image data includes the image of the document and the background image pattern around it). And used to detect the outer edge position of the document. The comparison data storage unit 13 may be a line memory already used for use at the beginning of image processing, for example, or may be a dedicated line memory for storing comparison data. Good. When the line memory used for image processing is diverted, the present invention can be implemented at a lower cost.

端位置認識部14は、原稿データ記憶部12に記憶されている原稿データについて例えば所定の主走査方向の1走査ラインにける各画素が原稿内のものか原稿外のものかを判定することで原稿の主走査方向の両端位置を認識するものである。端位置認識部14の構成及び処理の詳細については後述する。   The edge position recognition unit 14 determines, for example, whether each pixel in one scanning line in a predetermined main scanning direction is in the document or outside the document with respect to the document data stored in the document data storage unit 12. It recognizes the positions of both ends of the document in the main scanning direction. Details of the configuration and processing of the end position recognition unit 14 will be described later.

サイズ算出部15は、端位置認識部14により認識された原稿の両端位置から主走査方向の両端位置から原稿の主走査方向のサイズを求めるものである。サイズ算出部15は、読取センサ113によって読み取られる主走査方向の全読取画素数から、端位置認識部14により認識された両端位置より外側の画素数を引いた画素数(すなわち原稿の主走査方向の画素数)に、1画素の占める長さを乗算した長さを主走査方向の原稿サイズとして算出する。   The size calculation unit 15 obtains the size of the document in the main scanning direction from the both end positions in the main scanning direction from the both end positions of the document recognized by the end position recognition unit 14. The size calculation unit 15 subtracts the number of pixels outside the both end positions recognized by the end position recognition unit 14 from the total number of read pixels in the main scanning direction read by the reading sensor 113 (that is, the main scanning direction of the document). The length obtained by multiplying the number of pixels) by the length occupied by one pixel is calculated as the document size in the main scanning direction.

次に端位置認識部14の構成及び処理の詳細について説明する。図3は、端位置認識部14で処理されるデータについて示す図である。図2に基づいて端位置認識部14は、差分算出部141、第1一致判定部142、第2一致判定部143、及び端位置判定部144を備える。   Next, the configuration and processing details of the end position recognition unit 14 will be described. FIG. 3 is a diagram illustrating data processed by the end position recognition unit 14. 2, the end position recognition unit 14 includes a difference calculation unit 141, a first match determination unit 142, a second match determination unit 143, and an end position determination unit 144.

差分算出部141は、比較データ記憶部13のデータを比較元データとして読み出す(図3の比較元データ)と共に、原稿データ記憶部12の主走査方向の所定の1走査ライン、例えば副走査方向中央の1走査ライン分のデータを比較先データとして読み出す(図3の比較先データ)。そして、差分算出部141は、所定画素数おき、例えば5画素おきの比較元データの各画素と、この比較元画素と同じ画素位置の比較先データの画素を中心とした所定数(比較対象画素数)、例えば5つの画素との差分をとる。図3における比較元データの画素と比較先データの画素との間に示された矢印は、比較元画素とその画素に対する比較先画素とを示している。図3における差分結果には、比較元画素と比較先画素との差分が示されている。   The difference calculation unit 141 reads out the data in the comparison data storage unit 13 as comparison source data (comparison source data in FIG. 3) and, at the same time, a predetermined one scanning line in the main scanning direction of the document data storage unit 12, for example, the center in the sub scanning direction. Are read out as comparison destination data (comparison destination data in FIG. 3). Then, the difference calculation unit 141 has a predetermined number (comparison target pixels) centered on each pixel of the comparison source data at every predetermined number of pixels, for example, every five pixels, and the pixel of the comparison destination data at the same pixel position as the comparison source pixel. Number), for example, a difference from five pixels. The arrows shown between the pixel of comparison source data and the pixel of comparison destination data in FIG. 3 indicate the comparison source pixel and the comparison destination pixel for that pixel. The difference result in FIG. 3 shows the difference between the comparison source pixel and the comparison destination pixel.

第1一致判定部142は、差分算出部141により求められた差分が所定数、例えば9以下であるか否かをチェックし、差分が9以下の場合には、比較元画素と比較先画素とが一致したと判定し、差分が9より大きい場合には、比較元画素と比較先画素とは不一致であると判定するものである。図3の画素一致判定結果には、一致と判定された差分結果には「○」、不一致と判定された差分結果には「×」が示されている。これを実装する場合には例えば一致の場合には「1」、不一致の場合には「0」を用いればよい。   The first coincidence determination unit 142 checks whether or not the difference obtained by the difference calculation unit 141 is a predetermined number, for example, 9 or less, and if the difference is 9 or less, the comparison source pixel and the comparison destination pixel If the difference is greater than 9, it is determined that the comparison source pixel and the comparison destination pixel do not match. In the pixel match determination result of FIG. 3, “◯” is shown for the difference result determined to match, and “X” is shown for the difference result determined to be mismatch. When this is implemented, for example, “1” may be used in the case of matching, and “0” may be used in the case of mismatching.

第2一致判定部143は、比較元画素ごとに比較先データとの一致を判定するものである。以下、比較元画素に対する比較先画素の(例えば5つの)纏まりをブロックという。第2一致判定部143は、画素位置判定結果としてブロック内に少なくとも1つ一致があれば、そのブロックは一致と判定する。ブロック内に1つも一致がない場合には、そのブロックは不一致と判定する。図3のブロック一致判定結果には、ブロックごとの判定結果として一致と判定されたブロックに「○」が示されている。不位置と判定されたブロックには「×」が示される。   The second match determination unit 143 determines a match with the comparison target data for each comparison source pixel. Hereinafter, a group (for example, five) of comparison target pixels with respect to the comparison source pixel is referred to as a block. If there is at least one match in the block as a pixel position determination result, the second match determination unit 143 determines that the block is a match. If there is no match in the block, it is determined that the block does not match. In the block coincidence determination result of FIG. 3, “◯” is shown in the block determined to be coincident as the determination result for each block. “X” is shown in the block determined to be non-position.

端位置判定部144は、第2一致判定部143のブロック一致判定結果において不一致が、走査ラインの外側から内側への方向に所定数、例えば3つ連続した場合にその連続の開始画素を原稿用紙の最外画素と判定する。図3の用紙端判定には、ブロック一致判定結果と、その結果に基づき原稿用紙の端として判定される位置が示されている。   The edge position determination unit 144 sets the start pixel of the original when the mismatch in the block match determination result of the second match determination unit 143 continues for a predetermined number, for example, three in the direction from the outside to the inside of the scanning line. Is determined to be the outermost pixel. The paper edge determination in FIG. 3 shows the block matching determination result and the position determined as the edge of the original paper based on the result.

差分算出部141、第1一致判定部142、第2一致判定部143、及び端位置判定部144は、上記の処理を走査ラインの両端から内側に向けて行うことにより、原稿用紙の主走査方向の両端を検出することができる。この両端から内側に向けて行う処理を並行に行うとより早く原稿用紙の両端を検出できる。   The difference calculation unit 141, the first coincidence determination unit 142, the second coincidence determination unit 143, and the end position determination unit 144 perform the above processing from both ends of the scan line to the inside, so that the main scanning direction of the original paper Can be detected at both ends. If the processing from the both ends toward the inside is performed in parallel, both ends of the original paper can be detected more quickly.

次に原稿用紙の端位置の判定処理の流れについて説明する。図4,図5及び図6は、原稿用紙の一方の端の端位置判定処理の流れを示すフローチャートである。図4は、全体の流れを示すフローチャート、図5及び図6はそれぞれ図4に示すフローチャートのサブルーチンのフローチャートである。   Next, the flow of determination processing of the edge position of the original paper will be described. 4, 5, and 6 are flowcharts showing the flow of the end position determination process for one end of the original paper. 4 is a flowchart showing the overall flow, and FIGS. 5 and 6 are flowcharts of subroutines of the flowchart shown in FIG.

ステップS1では、画像読取部11は、載置された原稿からその1枚を引き込みながら、その原稿1枚分の画像(背景を含む)を読取センサ113を用いて読み取り、原稿データ記憶部12に書き込む。   In step S <b> 1, the image reading unit 11 reads an image (including the background) of one document using the reading sensor 113 while pulling one of the placed documents, and stores it in the document data storage unit 12. Write.

ステップS2では、差分算出部141は、原稿データ記憶部12に記憶されている画像データから、所定の主走査方向の1走査ライン、例えば副走査方向の原稿引き込み方向先頭から約5mm以内の位置(読み出し可能な最も先頭に近いラインが望ましい。)にある1走査ラインを読み出す(図3の比較先データ)。この1走査ラインの読み出しは、ステップS1で原稿から画像を読み取る途中、すなわち上記所定の主走査方向の1走査ライン(先頭から約5mm以内の位置)を読み取った時点でそのラインを比較用に読み出すことが望ましい。   In step S2, the difference calculation unit 141 determines from the image data stored in the document data storage unit 12 one scan line in a predetermined main scanning direction, for example, a position within about 5 mm from the head in the document drawing direction in the sub-scanning direction ( One scanning line at the nearest readable line is desirable (comparison data in FIG. 3). The one scanning line is read out for comparison in the course of reading an image from the original in step S1, that is, when one scanning line in the predetermined main scanning direction (position within about 5 mm from the head) is read. It is desirable.

ステップS3では、差分算出部141は、比較データ記憶部13に記憶されている画像データを読み出す(図3の比較元データ)。   In step S3, the difference calculation unit 141 reads the image data stored in the comparison data storage unit 13 (comparison source data in FIG. 3).

ステップS4では、差分算出部141は、比較元画素番号Nに初期値として所定値「3」を代入すると共に、比較先オフセットLに初期値として所定値、例えば「−2」を代入する。画素番号は、読取センサ113により読み取られる走査ラインの一方端の画素位置を「1」とし他方端を「Nmax」として連続に付した番号である。比較先オフセットLの初期値「−2」は、比較元データの画素1つを比較する(差分をとる)比較先データの画素数(比較対象画素数)から1を減じて2で割った数に負の符号を付けたものである。本実施形態においては、比較対象画素数は「5」である。比較元画素番号Nの初期値は、比較対象画素数に比較先オフセットLの初期値を加えた数である。   In step S <b> 4, the difference calculation unit 141 assigns a predetermined value “3” as an initial value to the comparison source pixel number N, and assigns a predetermined value, for example “−2”, as an initial value to the comparison destination offset L. The pixel number is a number that is continuously assigned with the pixel position at one end of the scanning line read by the reading sensor 113 being “1” and the other end being “Nmax”. The initial value “−2” of the comparison destination offset L is a number obtained by subtracting 1 from the number of pixels (comparison target pixel) of comparison destination data for comparing (taking a difference) one pixel of comparison source data and dividing by 2. With a negative sign. In the present embodiment, the number of comparison target pixels is “5”. The initial value of the comparison source pixel number N is a number obtained by adding the initial value of the comparison destination offset L to the number of comparison target pixels.

ステップS5では、差分算出部141、第1一致判定部142、及び第2一致判定部143は、比較データの比較元画素番号Nの画素が原稿データと一致したか否かを判定する。この処理の詳細については、図5のフローチャートを用いて後述する。   In step S5, the difference calculation unit 141, the first match determination unit 142, and the second match determination unit 143 determine whether or not the pixel of the comparison source pixel number N of the comparison data matches the document data. Details of this processing will be described later with reference to the flowchart of FIG.

ステップS6では、ステップS5において比較データの比較元画素番号Nの画素が原稿データと一致したと判定された場合(ステップS6でYES)には、比較データの次の画素を比較するためにステップS9へ進む。ステップS6において、比較データの比較元画素番号Nの画素が原稿データと一致しないと判定された場合(ステップS6でNO)には、ステップS7へ進む。ステップS7では、端位置判定部144は、画素Nが原稿用紙の端である可能性があるので、原稿端位置判定の処理を行う。この処理の詳細については、図6のフローチャートを用いて後述する。ステップS8では、端位置判定部144は、ステップS7において原稿の端位置が特定された場合(ステップS8でYES)には、処理を終了する。ステップS8において、原稿の端位置が特定されなかった場合(ステップS8でNO)には、比較元データの次の画素を比較するためにステップS9へ進む。   In step S6, if it is determined in step S5 that the pixel of comparison source pixel number N in the comparison data matches the original data (YES in step S6), step S9 is used to compare the next pixel in the comparison data. Proceed to If it is determined in step S6 that the pixel of the comparison source pixel number N in the comparison data does not match the document data (NO in step S6), the process proceeds to step S7. In step S7, the edge position determination unit 144 performs document edge position determination processing because the pixel N may be the edge of the document sheet. Details of this processing will be described later with reference to the flowchart of FIG. In step S8, the end position determination unit 144 ends the process when the end position of the document is specified in step S7 (YES in step S8). If the end position of the document is not specified in step S8 (NO in step S8), the process proceeds to step S9 to compare the next pixel of the comparison source data.

ステップS9では、差分算出部141は、比較元画素番号Nを所定数、例えば5繰り上げる。ステップS10では、差分算出部141は、比較元画素番号NがNの最大数(読取センサ113で読み取られる画素数と同じ)Nmax以下であるか否かをチェックし、NがNmax以下の場合(ステップS11でYES)には、ステップS5へ戻り次のNに対する処理を行う。ステップS10において、NがNmaxより大きい場合(ステップS10でNO)には、ステップS11へ進む。ステップS11では、原稿の端が見つからなかったということなので、例えば「原稿サイズが検出できませんでした。」というエラーメッセージを操作部(図示省略)に表示する。   In step S9, the difference calculation unit 141 increments the comparison source pixel number N by a predetermined number, for example, five. In step S10, the difference calculation unit 141 checks whether or not the comparison source pixel number N is equal to or less than the maximum number of N (same as the number of pixels read by the reading sensor 113) Nmax, and if N is equal to or less than Nmax ( If YES in step S11, the process returns to step S5 to perform processing for the next N. If N is larger than Nmax in step S10 (NO in step S10), the process proceeds to step S11. In step S11, since the end of the document was not found, an error message “Document size could not be detected” is displayed on the operation unit (not shown), for example.

次に図4のステップS5の処理の詳細を示すサブルーチンについて説明する。図5は、ステップS5の処理の詳細を示すサブルーチンのフローチャートである。   Next, a subroutine showing details of the processing in step S5 in FIG. 4 will be described. FIG. 5 is a subroutine flowchart showing details of the processing in step S5.

ステップS51では、差分算出部141は、比較元画素番号Nと比較先オフセットLとを加えた値が1より小さいか否かをチェックし、1より小さい場合(ステップS51でYES)には、その比較先の画素は存在しないので、比較先オフセットを1繰り上げるためにステップS56へ進む。ステップS51において、比較元画素番号Nと比較先オフセットLとを加えた値が1以上である場合(ステップS51でNO)には、その比較先の画素が存在するのでステップS52へ進む。   In step S51, the difference calculation unit 141 checks whether or not the value obtained by adding the comparison source pixel number N and the comparison destination offset L is smaller than 1, and if it is smaller than 1 (YES in step S51), Since there is no comparison target pixel, the process proceeds to step S56 in order to increase the comparison target offset by one. In step S51, when the value obtained by adding the comparison source pixel number N and the comparison destination offset L is 1 or more (NO in step S51), since the comparison destination pixel exists, the process proceeds to step S52.

ステップS52では、差分算出部141は、比較元データの画素Nと、比較先データの画素(N+L)との差分を算出する。図3の差分結果に差分結果のデータ例を示す。ステップS53では、第1一致判定部142は、ステップS52で算出した差分が所定値、例えば9以下であるか否かをチェックし、差分が9以下である場合(ステップS53でYES)には、ステップS52で差分をとった比較元画素と比較先画素とが一致したとして、ステップS54へ進む。ステップS54では、ステップS52で差分をとった比較元画素と比較先画素との比較結果は一致であると記録する。ステップS53において差分が9以下でない場合(ステップS53でNO)には、ステップS52で差分をとった比較元画素と比較先画素とが一致しなかったとして、ステップS55へ進む。ステップS55では、ステップS52で差分をとった比較元画素と比較先画素との比較結果は不一致であると記録する。図3の画素一致判定結果に判定結果のデータ例を示す。   In step S52, the difference calculation unit 141 calculates a difference between the pixel N of the comparison source data and the pixel (N + L) of the comparison destination data. The difference result of FIG. 3 shows an example of the difference result data. In step S53, the first match determination unit 142 checks whether the difference calculated in step S52 is a predetermined value, for example, 9 or less. If the difference is 9 or less (YES in step S53), Assuming that the comparison source pixel and the comparison destination pixel obtained in step S52 match, the process proceeds to step S54. In step S54, it is recorded that the comparison results of the comparison source pixel and the comparison destination pixel obtained in step S52 are the same. If the difference is not 9 or less in step S53 (NO in step S53), it is determined that the comparison source pixel obtained in step S52 and the comparison destination pixel do not match, and the process proceeds to step S55. In step S55, it is recorded that the comparison result between the comparison source pixel and the comparison destination pixel obtained in step S52 is inconsistent. An example of the determination result data is shown in the pixel match determination result of FIG.

ステップS56では、差分算出部141は、比較先オフセットLを1繰り上げ、比較先画素を次の画素に変える。ステップS57では、比較先オフセットLが所定の最大値(比較先オフセットの初期値の符号を反対にした数)、例えば2以下か否かをチェックし、2以下である場合(ステップS57でYES)には、比較先対象画素数の全ての画素との比較が終了していないのでステップS51に戻り、次の比較先画素との比較処理を行う。ステップS57において、比較先オフセットLが2より大きい場合(ステップS55でNO)には、比較先対象画素数の全ての画素との比較が終了したということなので、ステップS58に進む。ステップS58では、第2一致判定部143は、比較先対象画素数の全ての画素との比較結果の少なくとも1つは一致であるか否かをチェックし、少なくとも1つが一致である場合(ステップS58でYES)には、ステップS59へ進む。ステップS59では、第2一致判定部143は、比較データの画素Nは原稿データと一致したと判定してこれを記録し、当該サブルーチンからリターンする。ステップS58において1つも一致していない場合(ステップS58でNO)には、ステップS60へ進む。ステップS60では、第2一致判定部143は、比較データの画素Nは原稿データと不一致であると判定してこれを記録し、当該サブルーチンからリターンする。   In step S56, the difference calculation unit 141 increments the comparison destination offset L by 1 and changes the comparison destination pixel to the next pixel. In step S57, it is checked whether or not the comparison destination offset L is a predetermined maximum value (number obtained by reversing the sign of the initial value of the comparison destination offset), for example, 2 or less. If it is 2 or less (YES in step S57). Since the comparison with all the pixels of the comparison target pixel number has not been completed, the process returns to step S51 to perform the comparison process with the next comparison target pixel. In step S57, if the comparison destination offset L is larger than 2 (NO in step S55), it means that the comparison with all pixels of the comparison target pixel number has been completed, so the process proceeds to step S58. In step S58, the second coincidence determination unit 143 checks whether or not at least one of the comparison results with all pixels of the comparison target pixel number is coincident, and if at least one coincides (step S58). If YES, the process proceeds to step S59. In step S59, the second match determination unit 143 determines that the pixel N of the comparison data matches the document data, records this, and returns from the subroutine. If no match is found in step S58 (NO in step S58), the process proceeds to step S60. In step S60, the second match determination unit 143 determines that the pixel N of the comparison data does not match the document data, records this, and returns from the subroutine.

次に図4のステップS7の処理の詳細を示すサブルーチンについて説明する。図6は、ステップS7の処理の詳細を示すサブルーチンのフローチャートである。   Next, a subroutine showing details of the processing in step S7 in FIG. 4 will be described. FIG. 6 is a flowchart of a subroutine showing details of the processing in step S7.

ステップS71では、端位置判定部144は、現在の比較元画素番号Nの1つ前の比較元画素番号(N−1)の画素が一致と判定されたか否かをチェックし、一致と判定されている場合(ステップS71でYES)には、ステップS72へ進む。ステップS72では、端位置判定部144は、現在の画素Nは不一致で、1つ前の画素(N−1)は一致しているということなので、当該画素Nが原稿の端の可能性があるため、連続不一致数Cに1を代入すると共に、端位置画素番号Eに比較元画素番号Nの値を代入して当該サブルーチンからリターンする。   In step S71, the end position determination unit 144 checks whether or not the pixel of the comparison source pixel number (N−1) immediately before the current comparison source pixel number N is determined to be matched, and is determined to be matched. If yes (YES in step S71), the process proceeds to step S72. In step S72, the end position determination unit 144 indicates that the current pixel N does not match and the previous pixel (N-1) matches, so that the pixel N may be the end of the document. Therefore, while substituting 1 for the consecutive mismatch number C and substituting the value of the comparison source pixel number N for the end position pixel number E, the process returns from the subroutine.

ステップS71において、現在の比較元画素番号Nの1つ前の比較元画素番号(N−1)の画素が不一致と判定されている場合(ステップS71でNO)には、ステップS73へ進む。ステップS73では、端位置判定部144は、現在の画素Nは不一致で、1つ前の画素(N−1)も不一致ということなので、連続して不一致が続いているため、連続不一致数Cを1繰り上げる。ステップS74では、端位置判定部144は、連続不一致数Cが所定数、例えば3か否かをチェックし、3でない場合(ステップS74でNO)には、まだ連続不一致数が3に達していないということなので、次の画素の一致判定のために当該サブルーチンからリターンする。ステップS74において、連続不一致数Cが3である場合(ステップS74でYES)には、ステップS75へ進む。ステップS75では、端位置判定部144は、連続不一致が3に達したということなので、端位置画素番号Eに格納された画素値が原稿の端位置を示す画素番号であると判定して当該サブルーチンからリターンする。   If it is determined in step S71 that the pixel of the comparison source pixel number (N-1) immediately before the current comparison source pixel number N is not coincident (NO in step S71), the process proceeds to step S73. In step S73, the end position determination unit 144 determines that the current pixel N does not match and the previous pixel (N-1) also does not match. Move up one step. In step S74, the end position determination unit 144 checks whether the continuous mismatch number C is a predetermined number, for example, 3 or not, and if it is not 3 (NO in step S74), the continuous mismatch number has not yet reached 3. Therefore, the subroutine returns to determine whether the next pixel matches. In step S74, when the consecutive mismatch number C is 3 (YES in step S74), the process proceeds to step S75. In step S75, the edge position determination unit 144 determines that the pixel value stored in the edge position pixel number E is the pixel number indicating the edge position of the document because the continuous mismatch has reached 3. Return from.

上記原稿の端位置の判定処理の説明では、主走査方向の一方端から初めてその端側の原稿の端を見つけるための処理を説明したが、上記の処理を原稿データの両端から行うことにより原稿の主走査方向の両端を検出することができる。上記説明においては、NがNmaxに達するまで原稿端の検出処理を繰り返したが、両端から並行に検出処理を行う場合には、このようにする必要はなく、一方の処理が判定処理を行ったブロックに関しては他方の処理は判定処理を行う必要はない。すなわち、他方の検出処理において処理が終了した比較元画素までNが到達したことをもって処理を終了すればよい。   In the description of the document edge position determination process, the process for finding the edge of the document for the first time from one end in the main scanning direction has been described. However, by performing the above process from both ends of the document data, Both ends of the main scanning direction can be detected. In the above description, the document edge detection process is repeated until N reaches Nmax. However, when the detection process is performed in parallel from both ends, it is not necessary to do this, and one process performed the determination process. For the block, the other process does not need to be determined. That is, the process may be terminated when N has reached the comparison source pixel for which the process has been completed in the other detection process.

このように本実施形態においては、メモリに書き込まれた原稿の画像データを用いて、原稿のサイズを検出するようにしたので、原稿サイズを検知するためのセンサ等のハードウェアを画像読取装置に設けることなく原稿サイズを検出できる。   As described above, in this embodiment, since the size of the original is detected using the image data of the original written in the memory, hardware such as a sensor for detecting the original size is provided in the image reading apparatus. The document size can be detected without providing it.

なお、本発明は、上記実施形態のものに限定されるものではなく、以下に述べる態様を採用することができる。上記実施形態においては、背面の画像パターンに低濃度の格子パターンを用いたが、原稿に裏写りせず(すなわち低濃度)、原稿との境界がわかりやすい(すなわち原稿と同じパターンや色合いになりにくい)画像パターンが望ましく、必ずしも低濃度の格子パターンである必要はない。また、格子パターンを用いる場合には、できるだけ格子の小さいパターンを用いた方が原稿端をより正確に検出することができる。   In addition, this invention is not limited to the thing of the said embodiment, The aspect described below can be employ | adopted. In the above embodiment, a low-density grid pattern is used for the back image pattern, but it is not show-through on the original (that is, low density), and the boundary with the original is easy to understand (that is, it is difficult to have the same pattern and color as the original). ) An image pattern is desirable and not necessarily a low density grid pattern. Further, when using a lattice pattern, it is possible to detect the document edge more accurately by using a pattern having a lattice as small as possible.

上記実施形態においては、主走査方向の1走査ライン分のデータから原稿の主走査方向のサイズを求めたが、主走査方向の複数の走査ラインのデータからそれぞれの走査ラインに対する原稿の主走査方向のサイズを求めるようにしてもよい。このようにすると、例えば複数の走査ラインのサイズの平均を用いれば、より正確なサイズを求めることができるようになる。また、複数の走査ラインのサイズの最大を用いれば、副走査方向位置によって主走査方向サイズの異なる用紙についてよりサイズの大きな部分についてのサイズを求めることができる。   In the above embodiment, the size of the document in the main scanning direction is obtained from the data for one scanning line in the main scanning direction. You may make it ask for the size of. In this way, for example, if an average of the sizes of a plurality of scanning lines is used, a more accurate size can be obtained. If the maximum size of a plurality of scanning lines is used, the size of a larger portion can be obtained for a sheet having a different size in the main scanning direction depending on the position in the sub scanning direction.

また、上記実施形態においては、主走査方向の原稿サイズを求めたが、同様の方法で副走査方向の原稿サイズを求めてもよい。   In the above embodiment, the document size in the main scanning direction is obtained. However, the document size in the sub scanning direction may be obtained by the same method.

また、上記実施形態においては、シートフィーダで原稿を引き込みながら画像を読み取る場合(原稿が移動して読取センサ113は移動しない)を例に採り説明したが、プラテンガラス上に原稿を載置して画像を読み取る場合(原稿は移動せず読取センサ113が移動する)であっても同様の方法で原稿のサイズを検出することができる。   Further, in the above-described embodiment, the case where an image is read while pulling the document with the sheet feeder (the document moves and the reading sensor 113 does not move) has been described as an example. However, the document is placed on the platen glass. Even when an image is read (the reading sensor 113 moves without moving the document), the size of the document can be detected by the same method.

また、上記実施形態においては、ブロック内の全ての画素に対して画素一致判定を行ってから、そのブロックの一致判定を行ったが、ブロック内の1つの画素に対して画素が一致したと判定された時点でブロック判定を一致として、残りの画素に対する画素一致判定を省くようにしてもよい。このようにすると画素一致判定を行わない画素の分の時間を短縮することができる。   In the above embodiment, the pixel match determination is performed for all the pixels in the block, and then the block match determination is performed. However, it is determined that the pixel matches one pixel in the block. At this point, the block determination may be matched, and the pixel match determination for the remaining pixels may be omitted. In this way, it is possible to shorten the time for pixels that are not subjected to pixel matching determination.

また、上記実施形態においては、1ブロック内の画素数(比較対象画素数)と、比較元データにおいて比較元画素として用いる画素間の画素間画数とが同じ(すなわち5)であるが、これは必ずしも同じである必要はない。   In the above embodiment, the number of pixels in one block (number of pixels to be compared) is the same as the number of pixels between pixels used as comparison source pixels in the comparison source data (that is, 5). It is not necessarily the same.

上記実施形態における比較元データと比較先データとを逆に用いて(すなわち、原稿データを比較元データとし比較データを比較先データとする。)原稿サイズの検出を行ってもよい。   The document size may be detected by using the comparison source data and the comparison destination data in the above embodiment in reverse (that is, the document data is the comparison source data and the comparison data is the comparison destination data).

本発明の一実施形態における画像読取装置のシートフィーダ部分の機械的な構成を示す斜視図である。FIG. 3 is a perspective view illustrating a mechanical configuration of a sheet feeder portion of the image reading apparatus according to the embodiment of the present invention. 本発明の一実施形態における画像読取装置の機能構成を示すブロック図である。1 is a block diagram illustrating a functional configuration of an image reading apparatus according to an embodiment of the present invention. 本発明の一実施形態における端位置の認識において処理されるデータを示す図である。It is a figure which shows the data processed in recognition of the end position in one Embodiment of this invention. 本発明の一実施形態における原稿端検出処理の流れを示すフローチャートである。6 is a flowchart showing a flow of document edge detection processing in an embodiment of the present invention. 本発明の一実施形態における原稿端検出処理のサブルーチンの流れを示すフローチャートである。6 is a flowchart illustrating a flow of a subroutine for document edge detection processing in an embodiment of the present invention. 本発明の一実施形態における原稿端検出処理のサブルーチンの流れを示すフローチャートである。6 is a flowchart illustrating a flow of a subroutine for document edge detection processing in an embodiment of the present invention.

1 画像読取装置
11 画像読取部(読取手段)
111 シートフィーダの背面(背面)
114 格子パターン
12 原稿データ記憶部(原稿データ記憶手段)
13 比較データ記憶部(比較データ記憶手段)
14 端位置認識部(端位置認識手段)
141 差分算出部(差分算出手段)
142 第1一致判定部(第1の一致判定手段)
143 第2一致判定部(第2の一致判定手段)
144 端位置判定部(端位置判定手段)
15 サイズ算出部(サイズ算出手段)
DESCRIPTION OF SYMBOLS 1 Image reader 11 Image reading part (reading means)
111 Rear view of sheet feeder
114 Lattice pattern 12 Document data storage unit (document data storage means)
13 Comparison data storage unit (comparison data storage means)
14 End position recognition unit (end position recognition means)
141 Difference calculation unit (difference calculation means)
142 1st coincidence determination part (1st coincidence determination means)
143 Second match determination unit (second match determination means)
144 Edge position determination unit (edge position determination means)
15 Size calculator (size calculator)

Claims (6)

原稿から画像を読み取る読取手段と、
前記読取手段により読み取られた画像データである原稿データを記憶する原稿データ記憶手段と、
前記読取手段が原稿を読み取る位置の原稿の背面側に設けられた、予め定められた画像が形成されたパターン画像と、
前記読取手段により前記背面を読み取った場合の画像データである比較データを予め記憶する比較データ記憶手段と、
前記原稿データ記憶手段に記憶されている原稿データと、前記比較データ記憶手段に記憶されている比較データとを比較して各位置における一致度を求め、一致度の高い領域と一致度の低い領域の境目を前記原稿データにおける原稿の端位置として認識する端位置認識手段と、
前記端位置認識手段により認識された原稿の両端位置から、原稿のサイズを求めるサイズ算出手段とを備え
前記端位置認識手段は、
比較データ記憶手段に記憶されている比較データの画素と、この画素に対応する、原稿データ記憶手段に記憶されている原稿データの予め定められた複数の位置の画素との差分を算出する差分算出手段と、
前記差分算出手段により算出された各差分が、予め定められた値以内であるか否かを判定し、差分が予め定められた値以内である場合に一致したとする第1の一致判定手段と、
前記差分算出手段により差分が算出された前記比較データの画素ごとに、この画素に対する前記第1の一致判定手段による判定結果の少なくとも1つが一致したと判定された場合に、当該比較データの画素が原稿データと一致したと判定する第2の一致判定手段と、
前記第2の一致判定手段による判定結果による不一致画素が、主走査方向外側から内側に向かって予め定められた画素数分連続した場合にその連続の開始位置を原稿の端位置である判定する端位置判定手段と
を備える画像読取装置。
Reading means for reading an image from a document;
Document data storage means for storing document data which is image data read by the reading means;
A pattern image provided with a predetermined image provided on the back side of the document at a position where the reading unit reads the document;
Comparison data storage means for preliminarily storing comparison data that is image data when the back surface is read by the reading means;
The document data stored in the document data storage means and the comparison data stored in the comparison data storage means are compared to determine the degree of coincidence at each position. Edge position recognition means for recognizing the border of the document as the edge position of the document in the document data;
Size calculation means for obtaining the size of the document from both end positions of the document recognized by the edge position recognition means ,
The end position recognition means includes
Difference calculation for calculating a difference between pixels of comparison data stored in the comparison data storage means and pixels at a plurality of predetermined positions of the document data stored in the document data storage means corresponding to the pixels Means,
A first coincidence determining unit that determines whether or not each difference calculated by the difference calculating unit is within a predetermined value, and is matched when the difference is within a predetermined value; ,
For each pixel of the comparison data for which the difference is calculated by the difference calculation unit, when it is determined that at least one of the determination results by the first match determination unit for the pixel matches, the pixel of the comparison data is Second coincidence determining means for determining that the original data coincides;
When the non-matching pixels based on the determination result by the second matching determination unit continue for the predetermined number of pixels from the outside in the main scanning direction to the inside, an end for determining the continuous start position as the end position of the document An image reading apparatus comprising: a position determination unit .
前記端位置判定手段は、前記連続不一致画素の検索を、主走査方向の両側端から内側に並行に進める請求項に記載の画像読取装置。 The image reading apparatus according to claim 1 , wherein the end position determination unit advances the search for the consecutive inconsistent pixels in parallel from both ends in the main scanning direction. 前記差分算出手段は、前記比較データの画素と、その画素と一致する位置の原稿データの画素及びその前後の位置の予め定められた画素数分の画素との差分を算出する請求項又はに記載の画像読取装置。 It said difference calculation means, a pixel of the comparison data, according to claim 1 or 2 for calculating the difference between the predetermined number of pixels of the pixel of the pixel and the preceding and position of the original data of the position that matches the pixel The image reading apparatus described in 1. 前記差分算出手段は、前記比較データにおける主走査方向に対する予め定められた画素数おきの画素のみを差分を算出する対象とする請求項1〜3のいずれかに記載の画像読取装置。 It said difference calculation means, an image reading apparatus according to claim 1 of interest for calculating the difference only predetermined number of pixels every other pixel in the main scanning direction in the comparative data. 前記背面に形成された画像パターンとして、格子パターンを用いる請求項1〜のいずれかに記載の画像読取装置。 As an image pattern formed on the rear surface, the image reading apparatus according to any one of claims 1 to 4, using a grid pattern. 前記背面に形成された画像パターンとして、低濃度の画像を用いる請求項1〜のいずれかに記載の画像読取装置。 Wherein an image pattern formed on the back, the image reading apparatus according to any one of claims 1 to 5 used a low density image.
JP2005051632A 2005-02-25 2005-02-25 Image reading device Expired - Fee Related JP4261498B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005051632A JP4261498B2 (en) 2005-02-25 2005-02-25 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005051632A JP4261498B2 (en) 2005-02-25 2005-02-25 Image reading device

Publications (2)

Publication Number Publication Date
JP2006238196A JP2006238196A (en) 2006-09-07
JP4261498B2 true JP4261498B2 (en) 2009-04-30

Family

ID=37045339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005051632A Expired - Fee Related JP4261498B2 (en) 2005-02-25 2005-02-25 Image reading device

Country Status (1)

Country Link
JP (1) JP4261498B2 (en)

Also Published As

Publication number Publication date
JP2006238196A (en) 2006-09-07

Similar Documents

Publication Publication Date Title
US6466340B1 (en) Image reading apparatus
JP5055449B2 (en) Method and apparatus for detecting page boundaries
JP2009267652A (en) Image processing apparatus, image reading apparatus, and image processing method
JP2009111472A (en) Image processing apparatus and image reader
JP3089133B2 (en) Image processing device
JP4271085B2 (en) Image correction apparatus, image reading apparatus, program, and storage medium
JP2003099788A (en) Image processor
JP5166158B2 (en) Image processing apparatus, image reading apparatus, image reading system, image processing method, and image processing program
JP4162633B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, program, and storage medium
US7545535B2 (en) Robust automatic page size detection algorithm for scan application
JP4261498B2 (en) Image reading device
JP5222126B2 (en) Image processing method, image processing apparatus, and program
JP2007088785A (en) Image reader
JP2009284190A (en) Image reading apparatus and image reading system
JP4585015B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP2010154244A (en) Apparatus, and method for processing image, and program
JP4507124B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4093970B2 (en) Image distortion correction apparatus, program, and storage medium
JP3614122B2 (en) Reading surface dust detection device for sheet-through document reading system
JP6796265B2 (en) Image reader
JP5883805B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP6810892B2 (en) Image processing device
JP4198613B2 (en) Image distortion correction apparatus, program, and storage medium
JP4145256B2 (en) Image distortion correction apparatus, program, and storage medium
JP2017201755A (en) Reading device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090106

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090205

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees