JP2019216306A - Reading device - Google Patents
Reading device Download PDFInfo
- Publication number
- JP2019216306A JP2019216306A JP2018111134A JP2018111134A JP2019216306A JP 2019216306 A JP2019216306 A JP 2019216306A JP 2018111134 A JP2018111134 A JP 2018111134A JP 2018111134 A JP2018111134 A JP 2018111134A JP 2019216306 A JP2019216306 A JP 2019216306A
- Authority
- JP
- Japan
- Prior art keywords
- reading
- image
- data
- image data
- read
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Facsimiles In General (AREA)
Abstract
Description
本発明は、読取装置に関する。 The present invention relates to a reading device.
複写機やドキュメントスキャナのような事務機器に搭載される、いわゆるシートスルータイプの読取装置が知られている。この読取装置は、複数枚の用紙を連続に読取動作を行うことができ、また、搬送方向を長尺な用紙の長手方向とすることでその長さに関わらず読取動作を行うことできるという利点を有する。これに伴い、この読取装置は、読み取ったデータを画像データとして記憶することができる。
しかしながら、読取装置の読取部に比較的大量の用紙をセットして読取動作を行うと、用紙の欠落や読取済みの用紙に対する再度の読み取りの問題が生じる場合がある。
特許文献1には、上記問題を解決するために、用紙の原稿に含まれるコンテンツを認識したうえで、認識したコンテンツに関するデータと、すでに記憶装置に記憶されている原稿の元データと比較して、原稿の不整合の検出を行う方法が提案されている。
2. Description of the Related Art A so-called sheet-through type reading device mounted on office equipment such as a copying machine or a document scanner is known. This reading device can perform a reading operation on a plurality of sheets continuously, and can perform a reading operation regardless of the length by setting the transport direction to the longitudinal direction of a long sheet. Having. Along with this, the reading device can store the read data as image data.
However, when a relatively large amount of paper is set in the reading unit of the reading device and the reading operation is performed, there is a case where the paper is missing or a problem of rereading the read paper may occur.
In order to solve the above-mentioned problem, Japanese Patent Application Laid-Open No. H11-150572 discloses a method of recognizing a content included in a paper document and comparing data regarding the recognized content with original data of the document already stored in a storage device. There has been proposed a method for detecting a mismatch of a document.
特許文献1の上記提案によれば、読取部にセットされたすべての用紙の読取動作を行った後に、読み取って認識したコンテンツに関するデータと、保存装置に保存されている元データとの比較を行う。そのため、上記提案の場合、読取部にセットされたすべての用紙の読取動作が行われた後でなければ、原稿の不整合の検出ができない。
特に、近年では、シートスルータイプで最大幅が60インチ(約1.5メートル)の用紙の読取動作が可能な、大型の読取装置が存在する。このような大型の読取装置を用いて比較的長く且つ比較的幅が広い用紙に対する読取動作を行う場合、用紙の面積が大きいほど画像処理に要する時間が長くなる。そのため、大型の読取装置の場合、読取動作の開始から原稿の不整合の検出までの時間が長くなる。
According to the above-mentioned proposal of
In particular, in recent years, there is a large-sized reading apparatus capable of reading a sheet of a sheet-through type having a maximum width of 60 inches (about 1.5 meters). When a reading operation is performed on a relatively long and relatively wide sheet using such a large-sized reading device, the time required for image processing increases as the area of the sheet increases. Therefore, in the case of a large-sized reading device, the time from the start of the reading operation to the detection of the mismatch of the document becomes long.
本発明は、読み取る用紙の画像の読取データが保存済みの画像データに一致する場合に読取動作に要する時間を削減できる読取装置の提供を目的とする。 An object of the present invention is to provide a reading apparatus that can reduce the time required for a reading operation when read data of an image on a sheet to be read matches stored image data.
本発明の読取装置は、用紙に対し相対移動しながら用紙の画像を読み取る読取手段と、前記読取手段の読取動作中に、前記読取手段が読み取る画像から読取データを生成する生成手段と、前記読取データから画像の種類を判別する判別手段と、画像の種類と、用紙における画像の特徴となる特徴領域との関係を保存している第1保存手段と、画像データを保存する第2保存手段と、前記読取データと、前記画像データとを比較する比較手段と、を備え、前記判別手段は、前記生成手段が生成中の前記読取データから読取動作中の用紙の画像の種類を判別し、前記比較手段は、前記関係、前記画像データ及び前記生成手段が生成中の前記読取データを用いて、前記読取データにおける前記特徴領域の部分と、前記画像データにおける前記特徴領域の部分との比較をし、前記読取手段は、前記比較の結果として両部分が一致する場合、読取動作を停止することを特徴とする。 The reading device according to the present invention includes a reading unit that reads an image on a sheet while moving relative to the sheet; a generating unit that generates read data from an image read by the reading unit during a reading operation of the reading unit; Determining means for determining the type of the image from the data, first storing means for storing a relationship between the type of the image and a characteristic region which is a characteristic of the image on the sheet, and second storing means for storing the image data The read data, and a comparing means for comparing the image data, the determining means determines the type of image of the paper being read from the read data being generated by the generating means, The comparison unit uses the relationship, the image data, and the read data being generated by the generation unit to determine a portion of the characteristic region in the read data and the characteristic region in the image data. The comparison of the portion of said reading means, when both parts are identical as a result of said comparison, characterized in that it stops the read operation.
本発明の読取装置は、読み取る用紙の画像の読取データが保存済みの画像データに一致する場合に読取動作に要する時間を削減できる。 The reading device of the present invention can reduce the time required for the reading operation when the read data of the image on the paper to be read matches the stored image data.
以下、本発明の実施の形態(以下、本実施形態という。)の読取装置100(コンピュータの一例)について図面を参照して説明する。本実施形態の読取装置100は、一般的に、ADF(Auto Dоcument Feeder)と呼ばれる装置である。
図1は、本実施形態の読取装置100の構成を示すブロック図である。
読取装置100は、CPU1000と、HDD1010と、ROM1040と、RAM1050と、NVRAM1060と、スキャナユニット1100とを備えている。さらに、読取装置100は、コントローラ1200と、ネットワークドライバ1210と、UI1300と、LANユニット1310とを備えている。
ここで、CPUは、Central Processing Unitの略語で中央演算処理装置を意味する。HDDは、Hard Disk Driveの略語でハードディスクドライブを意味する。ROMは、Read Only Memoryの略語で読み出し専用のメモリを意味する。RAMは、Randоm Access Memoryの略語で書き込み可能のメモリを意味する。NVRAMは、Non−vоlatile Memoryの略語で不揮発性メモリを意味する。UIは、User Interfaceの略語で、本実施形態では読取装置100と操作者との間で情報のやりとりをするためのインターフェースを意味する。
Hereinafter, a reading device 100 (an example of a computer) according to an embodiment of the present invention (hereinafter, referred to as the present embodiment) will be described with reference to the drawings. The
FIG. 1 is a block diagram illustrating a configuration of the
The
Here, the CPU is an abbreviation of Central Processing Unit and means a central processing unit. HDD is an abbreviation of Hard Disk Drive, which means a hard disk drive. ROM is an abbreviation of Read Only Memory and means a read-only memory. The RAM is an abbreviation of Random Access Memory and means a writable memory. NVRAM is an abbreviation of Non-volatile Memory and means a non-volatile memory. UI is an abbreviation of User Interface, and in the present embodiment, means an interface for exchanging information between the
スキャナユニット1100(生成手段の一例)は、CPU1000によってスキャナユニット1100を駆動させて、用紙2100の画像を読み取って読取データを生成する。
ROM1040は、読取装置100の制御実行コード1040A(プログラム1040A)を備えている。RAM1050は、読取装置100の制御動作において、用紙2100の画像の読取動作後の読取データや読み取り直後の画像データを一時保存として蓄える。NVRAM1060(第1保存手段の一例)は、読取装置100の保守に必要な各種データや読み取った画像の種類や特徴に関する情報を保存する。
HDD1010(第2保存手段の一例)は、スキャナユニット1100による用紙2100の画像の読み取り完了後に、読取データを画像データとして保存する。
CPU1000(比較手段の一例)は、HDD1010に保存されている(複数の)画像データを読み出して、読取データと、読み出した画像データとを比較する。また、CPU1000(判別手段の一例)は、ROM1040又はNVRAM1060に予め保存されている、画像の種類を判別するテーブル(図4参照)と、後述する読取センサ2050とから、画像の種類を判別する。なお、CPU1000は、ROM1040に備えられている制御実行コード1040Aに従い、上記の制御を行う。
The scanner unit 1100 (an example of a generating unit) drives the
The
The HDD 1010 (an example of a second storage unit) stores the read data as image data after the
The CPU 1000 (an example of a comparison unit) reads out (a plurality of) image data stored in the
UI1300は、LCD、LED、キー、タッチパネル等を有する表示部及び操作部である。読取装置100の各機能の実行操作、設定等は、操作者がUI1300を用いて行う。CPU1000は、コントローラ1200を介して、表示部に表示する表示内容の制御を行う。
LANユニット1310は、外部機器(不図示)とのインターフェースやネットワークを介して、読取装置100と、サーバーとを接続するためのユニットである。LANユニット1310は、ネットワークドライバ1210を介して外部接続機器やサーバーと実行命令やデータのやり取りを行う。LANユニット1310は、例えば、画像データをネットワーク上のハードディスクに保存する場合や読取データと比較するためにネットワーク上のハードディスクの画像データを読込む際に接続される。
The UI 1300 is a display unit having a LCD, an LED, keys, a touch panel, and the like, and an operation unit. An operator performs an operation, setting, and the like of each function of the
The
図2は、本実施形態の読取装置100が用紙2100の読取動作を行っている状態の斜視図である。読取装置100は、その天面の上部に用紙2100の給紙口2020及びUI1300を有し、その側面の下部に用紙2100の排紙口2040を有する。本実施形態では、給紙口2020及び排紙口2040は、幅が比較的広い用紙(例えば44インチ(約1.1メートル)、60インチ(約1.5メートル)等の用紙)が通過できるような幅を有している。給紙口2020の両端には、用紙2100をその幅方向の両端から押さえる一対の原稿押え2030が設けられている。各原稿押さえは、給紙口2020の幅方向の中央部を中心として、その幅方向の両側に対称に移動可能とされている。一対の原稿押さえ2030は、押さえた用紙2100が給紙口2020及び排紙口2040の幅方向に対して斜めに搬送されることを防止する。なお、各原稿押さえ2030の位置を給紙口2020の内部に備えた位置検出センサ(不図示)を用いて検知して用紙2100の幅を算出するのに使用してもよい。
FIG. 2 is a perspective view illustrating a state in which the
給紙口2020と排紙口2040との間には、用紙2100の画像を光学的に読み取るための読取センサ2050(読取手段の他の一例)が備えられている。一般的な読取センサにはCIS(Contact Image Sensor)やCCD(Charge Coupled Devices)と呼ばれるものがあり、それぞれ、主走査方向に並んだ単数又は複数のセンサチップ(不図示)で構成されている。本実施形態の読取センサ2050は、給紙口2020に給紙可能な最大の用紙幅の用紙2100を読取可能なライン型のセンサとされている。なお、ライン型のセンサは、1本で構成される長い幅のセンサであっても、用紙2100の幅方向に隙間無しに複数の短い幅のセンサを跨らせた構成のセンサであってもよい。
A reading sensor 2050 (another example of a reading unit) for optically reading an image of the
図3は、本実施形態の読取動作時のデータ処理についてのフローチャートである。以下、本データ処理について説明する。本データ処理は、用紙2100の読取開始(S3000)から終了までの間において、後述するS3150で肯定判断がなされた場合を除き、用紙2100の搬送は停止されずに、読取センサ2050による用紙2100の画像の読み取りが継続される。
本データ処理は、用紙2100が給紙口2020にセットされ、操作者がUI1300の操作部を操作して用紙2100の画像の読取動作をする指示をし、コントローラ1200が当該指示を検知すると、その実行が開始される(S3000)。ここで、読取装置100に用紙2100がセットされると、給紙口2020の幅方向の中央側の内部に備えられた用紙検知センサ(不図示)が用紙2100によって遮へいされる。これに伴い、用紙2100が読取装置100にセットされたことは、この用紙検知センサにより検知される。
FIG. 3 is a flowchart illustrating data processing during a reading operation according to the present embodiment. Hereinafter, the data processing will be described. This data processing is performed between the start of reading of the sheet 2100 (S3000) and the end, and the conveyance of the
In this data processing, when the
次いで、用紙2100の画像の読取データについて比較対象となる画像データがHDD1010から読み込まれる(S3020)。S3020は、S3010と並行して行われてもよい。なお、画像データが保存されているHDD1010が読取装置100と接続されたネットワーク上のHDDである場合、ネットワークドライバ1210、LANユニット1310を介して、当該HDDがネットワークに接続される。ネットワークの接続後に、当該HDDが読取装置100に接続されて画像データが読み込まれるようにしてもよい。
Next, image data to be compared with the read data of the image on the
次いで、読取装置100に備えられた用紙搬送用のモーター(不図示)が駆動され、読取センサの発光が開始される(S3010)。S3030は、S3020と並行して行われてもよい。以下の説明では、給紙口2020から排紙口2040に向く方向を、用紙2100の搬送方向とする。これに伴い、給紙口2020から排紙口2040に向けて用紙2100が搬送されながら、搬送方向に搬送中の用紙2100の画像は読取センサ2050により光学的に読み取られる(S3030)。この場合、読み取られた画像は、RGB値の列に変換され、RAM1050における所定の領域に画像データとして逐次蓄えられる(保存される)。用紙2100の画像の読取動作において、用紙2100の搬送方向への搬送や読取センサ2050の発光は、特定の条件を検出した場合や操作者がUI1300の操作部を操作して停止指示をしない限り続行される。
Next, a paper transport motor (not shown) provided in the
以降も、読取センサ2050により用紙2100の画像の読み取りが行われると同時に、HDD1010から比較対象とする画像データの読み込みも行われる。ここで、例えば、幅が比較的広い用紙2100の場合、用紙2100の画像の読み取り時の搬送精度の向上のため搬送速度を遅くすることや読取データの処理時間が比較的長いことから、読み取り動作にはその分の時間を要する。そこで、S3010やS3030と並行して比較対象とする画像データの読み込み(S3020)が行われ、読み込まれた画像データがRAM1050における所定の領域に蓄えられることで、読取データの処理時間を短くすることができる。この場合、比較対象が複数の画像データである場合には、RAM1050が使用可能な領域がある限り複数の画像データの読みこみが行われ、読み込まれた画像データがRAM1050における所定の領域に蓄えられる。
Thereafter, the image of the
次いで、用紙2100の画像が用紙2100の先端から所定の位置まで読み込まれたか否かが判断される(S3040)。ここで、所定の位置とは、用紙2100の画像の種類が判別可能とされる、用紙2100の位置をいう。S3040は判断ステップとされているため、S3040は、否定判断がなされた場合、肯定判断がなされるまで繰り返し行われる。これに対して、S3040で肯定判断がなされた場合、次のステップ(S3050)が行われる。
S3050では、読取データから、画像の種類を判別するテーブル(図4)にある判別項目のそれぞれの有無や構成量が抽出され、画像の種類(一例として、図面、表、プレゼンテーション、POP及び写真画像)が判別される。ここで、図4のテーブル(以下、判別テーブルという。)は、本実施形態の読取動作時のデータ処理で用いられる画像の種類を判別するためのものである。判別テーブルは、ROM1040又はNVRAM1060に予め保存されている。
Next, it is determined whether the image of the
In step S3050, the presence / absence and configuration amount of each determination item in the table (FIG. 4) for determining the type of image are extracted from the read data, and the type of image (for example, drawing, table, presentation, POP, and photographic image) is extracted. ) Is determined. Here, the table in FIG. 4 (hereinafter, referred to as a determination table) is for determining the type of image used in the data processing at the time of the reading operation of the present embodiment. The determination table is stored in the
読取センサ2050で読み取られる画像は、図4における「画像に含む判別項目4010」の各項目の識別がされる。具体的には、読取センサ2050で読み取られてスキャナユニット1100により生成された読取データが、画像に含む判別項目4010の各項目について該当するか識別される。ここで、当該識別は、公知の画像認識の方法を用いればよい。外枠、枠線及び等間隔線の検出については、例えば、一般的な技法であるHough変換を用いて線を検出し、検出された数、位置、角度、長さ等から検出が可能とある。文字の検出については、一般的なOCR(Optical Character Reader)技法と同様に検出すればよい。塗りつぶしデータの検出については、例えば読取データのRGBを参照し、1ラインにつき特定長さが連続で続くことを検出することにより、又は、1ラインが複数ラインで続くことを検出することにより検出が可能である。
例えば、読取データの画像に外枠は無い、等間隔線は無い、ベクタデータを検出した、文字量は少ない、文字がない又は文字が少ない、塗りつぶしデータがない、空白部分がある等を検出すると、その画像は図4の判別テーブルにおける「図面」と識別される。このように、「画像に含む判別項目4010」の各項目が図4の判別テーブルを用いて識別された結果、識別の対象となる画像は最も近い「画像の種類判別4020」の欄の何れかに判別される。本実施形態における画像の種類判別4020の欄の画像は、一例として、「図面」、「表」、「プレゼンテーション」、「POP」及び「写真画像」とされている。
図7は、読取装置100が図3の場合と異なる用紙2100の画像の読取動作を行っている状態の斜視図である。図3の場合、CPU1000は、図4の判別テーブルを用い用紙2100が前述の所定の位置まで搬送された時点で用紙2100の画像を「図面」と判別する。これに対して、図7の場合、CPU1000は、図4の判別テーブルを用い用紙2100が前述の所定の位置まで搬送された時点で用紙2100の画像を「プレゼンテーション」と判別する。すなわち、本実施形態では、CPU1000は、スキャナユニット1100が生成中の読取データから読取センサ2050が読取中の用紙2100の種類を判別する。
In the image read by the
For example, if it is detected that there is no outer frame in the image of the read data, no equidistant lines, vector data is detected, the amount of characters is small, there is no or few characters, there is no fill data, there is a blank part, etc. The image is identified as "drawing" in the determination table of FIG. As described above, as a result of each item of the “
FIG. 7 is a perspective view of a state in which the
次いで、S3050において判別された読取データの画像の種類と、図5の「画像の種類から特徴領域を求めるテーブル」(以下、特徴領域テーブルという。)とを用いて、特徴領域5020が決定される(S3060)。ここで、「特徴領域」とは、用紙2100における各画像の特徴となる領域を意味する。特徴領域テーブルは、各画像の種類5010と、各画像の種類に対応する特徴領域5020との関係についてのテーブルである。特徴領域テーブルは、ROM1040又はNVRAM1060に予め保存されている。本実施形態では各画像の種類5010に2種類の特徴領域5020を対応させているが、少なくとも何れか一方だけとしてもよい。なお、S3050で画像の種類が判別されると、S3060で判別された画像に対応する特徴領域が一義的に決定される。
Next, the
次いで、S3060において特徴領域が決定されると、読取センサ2050による搬送方向に搬送中の用紙2100の特定領域の画像の読み取りが完了したか否かが判断される(S3070)。S3070は、肯定判断がなされるまで継続される(S3070のNo参照)。
Next, when the characteristic region is determined in S3060, it is determined whether reading of the image of the specific region of the
次いで、S3070で肯定判断がなされた場合、HDD1010から比較対象となる画像データの読み込みが完了したか否かが判断される(S3080)。S3080は、肯定判断がなされるまで継続される(S3080のNo参照)。ここで、比較対象となる画像データとは、例えば、S3050において画像の種類が「表」と判別された場合には、HDD1010に保存されている「表」に関するデータとなる。
Next, when an affirmative determination is made in S3070, it is determined whether reading of the image data to be compared from the
次いで、S3080で肯定判断がなされた場合、CPU1000により、読取データと、HDD1010から読み出した画像データとが比較される。ここで、比較される画像データは、S3050で判別された画像の種類についてのデータである。具体的にS3080では、図5に示す画像の種類5010と特徴領域5020との関係、HDD1010から読み出した画像データ及び生成中の読取データが用いられて、読取データにおける特徴領域の部分と、画像データにおける特徴領域の部分とが比較される。
Next, when a positive determination is made in S3080, the
以下、S3090で行われる処理について図6を用いて詳細に説明する。
まず、操作者がUI1300を介して読取データと画像データとの比較を行わない設定になっているか否かの確認を行う(S6010)。ここで、読取データと画像データとの比較を行うか行わないかは、図8(A)のUI1300の画面800を介して操作者により予め設定される。具体的には、操作者は、画面800に表示された、「する810」及び「しない820」の何れか一方の入力ボタンを選択し、OKボタン830を押して設定する。なお、一度入力ボタンを選択した後にキャンセルする場合には、操作者はCancelボタン840を押せばよい。S6010では、読取データと画像データとの比較を行うか行わないかの設定は、RAM1050又はNVRAM1060の所定の領域に保存される。そして、S6010で肯定判断がなされた場合、S6110において読取データと画像データとは一致しないとみなされる。これに対して、S6010で否定判断がなされた場合、S6020の判断を行われる。
Hereinafter, the processing performed in S3090 will be described in detail with reference to FIG.
First, the operator checks via the
次いで、S6020では、画像データの付帯情報に含まれる機種情報から、当該画像データが読取データと同じ機種の画像形成装置(図示省略)から取得された情報であるか否かが判断される。そして、S6020で否定判断がなされた場合、S6110において読取データと画像データとは一致しないとみなされる。これに対して、S6020で肯定判断がなされた場合、S6030の判断を行われる。本実施形態において、S6020での否定判断の結果、読取データと画像データとは一致しないとした理由は、同一の画像であっても読取装置100のラインセンサのばらつきにより読取データと画像データとが一致しない場合があるためである。 Next, in S6020, it is determined from the model information included in the supplementary information of the image data whether or not the image data is information acquired from an image forming apparatus (not shown) of the same model as the read data. If a negative determination is made in S6020, it is determined in S6110 that the read data and the image data do not match. On the other hand, when a positive determination is made in S6020, the determination in S6030 is performed. In the present embodiment, as a result of the negative determination in S6020, the reason that the read data and the image data do not match is that even if the image is the same, the read data and the image data become This is because they may not match.
次いで、S6030では、画像データの付帯情報に含まれる用紙幅の情報から、用紙幅が同一か否かが判断される。ここで、用紙幅の算出は読取センサ2050を用いることにより算出が可能であるため、読取センサ2050を用いることにより算出してもよく、また、他の方法による算出でもよい。他の方法による算出としては、例えば、原稿押え2030の位置検出センサを用いて用紙幅を算出する方法、給紙口2020の下付近に複数の定点センサ(不図示)を設けて用紙を検知した複数の定点から用紙幅を算出する方法がある。
S6030で否定判断がなされた場合、S6110において読取データと画像データとは一致しないとみなされる。このようにした理由は、用紙幅が異なる場合、読取データは明らかに画像データとは一致しないためである。これに対して、S6030で肯定判断がなされた場合、S6040の判断を行われる。
Next, in S6030, it is determined whether the sheet widths are the same based on the sheet width information included in the supplementary information of the image data. Here, since the calculation of the sheet width can be performed by using the
If a negative determination is made in S6030, it is determined in S6110 that the read data and the image data do not match. The reason for this is that the read data obviously does not match the image data when the paper width is different. On the other hand, when a positive determination is made in S6030, the determination in S6040 is performed.
次いで、S6040では、読取データの読取解像度と、画像データの読取解像度とが同一であるか否かが判断される。その結果、S6040で否定判断がなされた場合、S6110において読取データと画像データとは一致しないとみなされる。このようにした理由は、読み取りの解像度が異なる場合に読取データと画像データとが一致するか否かの判断が不可能なためである。これに対して、S6040で肯定判断がなされた場合、S6050の判断がなされる。 Next, in S6040, it is determined whether the reading resolution of the read data is the same as the reading resolution of the image data. As a result, if a negative determination is made in S6040, it is determined in S6110 that the read data and the image data do not match. The reason for this is that it is impossible to determine whether the read data and the image data match when the read resolution is different. On the other hand, when an affirmative determination is made in S6040, a determination in S6050 is made.
次いで、S6050では、読取データが圧縮データであるか否かが判断される。ここで、読取データ及び画像データの圧縮形式の情報は、それぞれの付帯情報に含まれている。S6050で否定判断がなされた場合、後述するS6080が行わる。これに対して、S6050で肯定判断がなされた場合、S6060の判断がなされる。
次いで、S6060では、読取データの圧縮方式が所定の方式の圧縮データであるか否かが判断される。ここで、所定の方式とは、ROM1040に保存されている画像データの
圧縮方式である。S6060で否定判断がなされた場合、S6110において読取データと画像データとは一致しないとみなされる。これに対して、S6110で肯定判断がなされた場合、S6070が行われる。
次いで、S6070では、すなわち、S6060で肯定判断がなされた場合には、上記所定の方式の圧縮データを展開する。その結果、読取データと展開により復元された画像データとの比較が可能となる。
Next, in S6050, it is determined whether or not the read data is compressed data. Here, the information of the compression format of the read data and the image data is included in the respective accompanying information. When a negative determination is made in S6050, S6080 described later is performed. On the other hand, if a positive determination is made in S6050, the determination in S6060 is made.
Next, in S6060, it is determined whether or not the compression method of the read data is compression data of a predetermined method. Here, the predetermined method is a compression method of image data stored in the
Next, in S6070, that is, when an affirmative determination is made in S6060, the compressed data of the predetermined method is expanded. As a result, it becomes possible to compare the read data with the image data restored by expansion.
S6070後及びS6050で否定判断がなされた場合、S6080が行われる。S6080では、読取データの特徴領域に相当する部分のデータを比較元として、RAM1050における所定の領域のアドレスと長さが指定される(領域A)。圧縮データである場合は、RAM1050における前記の一時展開領域に対して、その領域のアドレスと長さを指定する(こちらを領域Aとする)。
S6080の後、S6090が行われる。S6090では、画像データ内部の特徴領域に相当する部分のデータを比較先として、RAM1050における所定の領域のアドレスと長さが指定される(領域B)。読取データが圧縮データである場合は、RAM1050における前記の一時展開領域に対して、その領域のアドレスと長さを指定する(こちらを領域Bとする)。なお、領域Aのアドレスの長さと領域Bのアドレスの長さとは、同じとなるようにする。
S6090の後、S6100が行われる。S6100では、領域Aと領域Bとについて、RAM1050における所定の領域の全データが比較される。これにより、読取データと画像データとの比較結果が判別される。なお、画像の比較に当たっては、領域Aにおける、傾き、歪み、一般的なノイズ除去フィルタ、色、濃淡が、領域Bの画像データと比較可能になるように補正される。その結果、補正されて生成されたデータを用いて、領域Bとの画像の比較が行われる。
After S6070 and when a negative determination is made in S6050, S6080 is performed. In S6080, the address and length of a predetermined area in the
After S6080, S6090 is performed. In S6090, the address and length of a predetermined area in the
After S6090, S6100 is performed. In S6100, all data in a predetermined area in the
領域Aと領域Bの画像の比較については、一般的な手法である画像毎の差分を取り、平均二乗誤差を計算する。前述の平均二乗誤差の値が小さいほど、領域Aの画像と領域Bの画像とは近い。そのため、前述の平均二乗誤差の値に対する閾値に関する情報を保存し、前述の閾値以下の場合は画像が一致するとみなされる。前述の閾値についての情報は、NVRAM1060に保存されている。
なお、前述の平均二乗誤差については多くの演算量を要することになるため、読取装置100には高速のCPUが必要となる。精密な画像の一致の精度が要求されなければ、領域Aの画像及び領域Bの画像に間引きをかけて、比較する画素数を減らすことにより演算量を削減する方法もある。画像の一致の精度については、画像の種類により異なってよい。前述の方法により判別した画像の種類毎に前述の閾値及び画像の間引きを考慮して比較を行うかどうかの情報を保存し、画像の種類によって画像の比較の一致性についての精度を定めて画像の比較による一致の判定を行うようにしてもよい。
以上が、図3のフローチャートのS3090で行われる処理についての詳細である。
As for the comparison between the images of the area A and the area B, a difference between the images is obtained as a general method, and a mean square error is calculated. The smaller the value of the aforementioned mean square error is, the closer the image of the region A and the image of the region B are. Therefore, information on the threshold value for the value of the above-mentioned mean square error is stored, and when the value is equal to or less than the above-described threshold value, it is considered that the images match. Information on the above-described threshold is stored in the
Note that the above-described mean square error requires a large amount of calculation, and thus the
The above is the details of the processing performed in S3090 of the flowchart of FIG.
次に、再度、図3のフローチャートを参照しながら、本データ処理について説明する。
S3090の後、すなわち、S3090で行われるS6010〜S6110(図6参照)の後、S3100が行われる。S3100では、S3090に比較結果が一致するか否か、すなわち、読取データの特徴領域の部分と画像データの特徴領域の部分との両部分が一致するか否かが判断される。この場合、RAM1050の領域Bにおける所定の領域に蓄えられている画像データを比較対象の画像データの内容に置きかえればよい。S3100で否定判断がなされた場合、S3110が行われる。S3100で肯定判断がなされた場合、S3150が行われる。
S3110が行われる場合、すなわち、S3100において読込データが画像データと一致しないと判断された場合、HDD1010に当該画像データの他に比較対象となり得る画像データがあるか否かが判断される。その結果、S3110で肯定判断がなされると、S3120が行われ、HDD1010から他の画像データが読み出される。ここで、既にHDD1010から次の比較対象の画像データがRAM1050に読込済みである場合もある。この場合は、S3120の後に行われるS3080で肯定判断をし、以降の処理が行われる。ここで、以降の処理では再度S3090が行われる。この場合、再度行われるS3090において、読取データの比較対象は、では前回比較対象とされた画像データ以外の画像データとされる。
これに対して、S3110で否定判断がなされた場合、すなわち、HDD1010に保存されている他の画像データが読込データに対して比較対象とならないと判断された場合、S3130が行われる。S3130では用紙2100の画像が最後まで読み取られたかが判断され、S3130で肯定判断がなされると(S3130でYes参照)、S3140で読取データが画像データとしてHDD1010に保存される。この場合、保存先がネットワーク上のHDDである場合は、ネットワークドライバ1210、LANユニット1310を介して当該HDDとネットワーク接続を行う。ネットワーク接続後、当該HDDに接続してS3130で生成した画像データを当該HDDに保存する。また、画像データの生成では、付帯情報に、少なくとも、読取装置100の機種、用紙幅、読み取りの解像度、圧縮データの有無及び圧縮データ方式を設ける。これらの付帯情報と、読取データから得られるデータ(RAW、JPEG,TIFF等)を1つのファイルにして画像データとする。CPU1000は、ROM1040において保持される画像データの生成コード及びファイル作成コードを処理して画像データを生成する。その後、本データ処理は終了する。
Next, the data processing will be described again with reference to the flowchart of FIG.
After S3090, that is, after S6010 to S6110 (see FIG. 6) performed in S3090, S3100 is performed. In S3100, it is determined whether or not the comparison result matches with S3090, that is, whether or not both the characteristic region portion of the read data and the characteristic region portion of the image data match. In this case, the image data stored in a predetermined area in the area B of the
If S3110 is performed, that is, if it is determined in S3100 that the read data does not match the image data, it is determined whether or not the
On the other hand, if a negative determination is made in S3110, that is, if it is determined that the other image data stored in the
S3100で肯定判断がなされた場合、S3150が行われる。S3150では、読取動作の中止の選択が行われる。S3150では、操作者がUI1300(選択手段の一例)を介して読取動作を中止するか否かの選択を行う。この場合、UI1300に表示される画面900には、図8(B)に示すように、読取動作を中止するかの問いと、「はい(中止)910」及び「いいえ(続行)920」と表示される選択ボタンと、選択結果を確定する「OK930」とが表示される。操作者が画面900を介して「はい(中止)910」を選択してOK930を押すと、S3150で肯定判断がなされたとみなしてS3160が行われる。そして、S3160においてS3150での「はい(中止)910」の選択に従い読取動作が中止となり、本データ処理が終了する。以上のとおり、本実施形態では、S3100での比較結果が一致した場合に、S3150において操作者により読取動作を中止するか否かの選択がなされる。そのため、本実施形態では、S3100で特徴部分が一致するとして肯定判断がなされた場合に特徴部分以外の部分が一致しない場合に、S3150で操作者が読取動作を中止するか否かを選択できる。S3160における読取動作の中止に伴い、読取センサ2050の発光が終了となる。その後、用紙検知センサの遮へいの解除の検知を基準に、搬送ローラー及び搬送モーターを駆動させて、用紙2100を排紙口2040から排紙させる。この場合、読取動作が行われないため、読取時よりも用紙詰まりが起こらない程度とされる、読取動作時よりも速い搬送速度で用紙2100を搬送してもよい。
これに対して、操作者が画面900を介して「いいえ(続行)920」を選択してOK930を押すと、S3150で否定判断がなされたとみなしてS3130以降の処理が行われる。その後、S3140が行われて本データ処理が終了する。
なお、本データ処理が終了すると、読取装置100は待機状態(用紙2100がセットされて、UI1300を介して動作開始の指示があれば動作可能な状態)になる。
If a positive determination is made in S3100, S3150 is performed. In S3150, the user selects to stop the reading operation. In S3150, the operator selects via the UI 1300 (an example of a selection unit) whether or not to stop the reading operation. In this case, as shown in FIG. 8B, the
On the other hand, if the operator selects “No (continue) 920” via the
When the data processing is completed, the
本実施形態の読取装置100は、前述の説明のとおり、用紙2100の画像の読取動作中に読取データの特徴部分と、予め保存されている画像データ、判別テーブル等を利用して読取データが画像データに一致するか否かを判断する。したがって、本実施形態の読取装置100は、用紙2100の画像の読取動作の終了前に読取データが画像データに一致するか否かを判断することができる。これに伴い、本実施形態の読取装置100は、読み取る用紙2100の画像の読取データが保存済みの画像データに一致する場合に読取動作に要する時間を削減できる。特に、用紙2100が大きいほど、当該効果は顕著となる。
本実施形態の読取装置100は、読み取る用紙2100の画像の読取データが保存済みの画像データに一致する場合に当該読取データを保存しない。したがって、本実施形態の読取装置100は、読み取る用紙2100の画像の読取データが保存済みの画像データに一致する場合に読取データの保存用HDD1010の使用量を削減できる。これに伴い、本実施形態の場合、比較対象となる画像データをより多く保存することができる。特に、用紙2100が大きいほど、当該効果は顕著となる。
本実施形態の場合、HDD1010には、読取データが画像データと一致しない場合、当該読取データを画像データとして保存する。そのため、保存された当該読取データを、以降の読取動作時に画像データとして利用することができる。
本実施形態の場合、読取データから得られる画像の種類から比較対象とする領域(特徴領域)を特定する。したがって、本実施形態では、より少ないメモリ領域の使用量での比較が可能となるとともに比較に要する時間の短縮が可能になる。
As described above, the
The
In the case of this embodiment, if the read data does not match the image data, the read data is stored in the
In the case of the present embodiment, an area (characteristic area) to be compared is specified based on the type of image obtained from the read data. Therefore, in the present embodiment, the comparison can be performed using a smaller amount of the memory area, and the time required for the comparison can be reduced.
以上のとおり、本発明について本実施形態を例として説明したが、本発明の技術的範囲は本実施形態に限定されるものではない。
本実施形態の読取装置100の読取センサ2050は、ライン型のセンサに限らず、用紙2100の主走査方向(幅方向)に往復するキャリッジ型の読取センサでもよい。この場合、搬送方向に搬送される用紙2100に対してキャリッジ型の読取センサが主走査方向に往復移動することで、読取動作が行われる。この変形例の場合であっても本実施形態の場合と同様の効果が得られる。
本実施形態では、用紙2100が搬送方向に搬送される用紙2100の画像を読取センサ2050が読み取ることを説明した。しかしながら、読取センサ2050が用紙2100の画像を読み取ることができれば、例えば、用紙2100が搬送されずに読取センサ2050が用紙2100に対して定められた方向に移動するようにしてもよい。すなわち、用紙2100に対して読取センサ2050が相対移動できる構成であればよい。
本実施形態で説明した特徴領域は、図5で示すような画像の種類5010から特徴領域5020を求めるテーブルで特定される領域に限られない。例えば、特徴領域は、用紙2100の特徴から画像の種類毎に相違点を識別し、当該相違点についての共通箇所を自動判別し、その結果を特徴領域としてもよい。また、操作者が、予め決まった帳票等のフォーマットにおいて相違点となる位置を、特徴領域として設定できるようにしてもよい。この場合、操作者がUI1300(変更手段の一例)を操作することで特徴領域を入力、変更等できるようにしてもよい。この変形例の場合であっても本実施形態と同様の効果が得られる。
本実施形態で説明した比較対象とする画像データが例えば数十以上と多い場合、読取データと複数の画像データとの比較の処理が用紙2100の排紙完了時までに終われない場合が生じ得る。この場合、用紙2100の排紙完了時までに比較が終了しなくても一致した結果を保存しないことによりHDDの容量の削減の効果は得られる。しかしながら、画像データとの比較に要する時間分だけ処理時間が遅延する場合が生じる。このような場合、比較対象とする画像データの付帯情報に読取日時に関する情報を設けておき、例えば、特定の又は操作者がUI1300を介して指定した読取日時の範囲内のデータを比較対象とする画像データとしてもよい。このような設定をすることで、画像データとの比較に要する処理時間を短縮することができる。
As described above, the present invention has been described by taking the present embodiment as an example, but the technical scope of the present invention is not limited to the present embodiment.
The
In the present embodiment, it has been described that the
The characteristic region described in the present embodiment is not limited to the region specified in the table for obtaining the
When the image data to be compared described in the present embodiment is as large as several tens or more, for example, the process of comparing the read data with the plurality of image data may not be completed by the time when the discharge of the
100 読取装置
1000 CPU(判別手段の一例、比較手段の一例)
2050 読取センサ(読取手段の一例)
100
2050 Reading sensor (an example of reading means)
Claims (8)
前記読取手段の読取動作中に、前記読取手段が読み取る画像から読取データを生成する生成手段と、
前記読取データから画像の種類を判別する判別手段と、
画像の種類と、用紙における画像の特徴となる特徴領域との関係を保存している第1保存手段と、
画像データを保存する第2保存手段と、
前記読取データと、前記画像データとを比較する比較手段と、を備え、
前記判別手段は、前記生成手段が生成中の前記読取データから読取動作中の用紙の画像の種類を判別し、
前記比較手段は、前記関係、前記画像データ及び前記生成手段が生成中の前記読取データを用いて、前記読取データにおける前記特徴領域の部分と、前記画像データにおける前記特徴領域の部分との比較をし、
前記読取手段は、前記比較の結果として両部分が一致する場合、読取動作を停止することを特徴とする読取装置。 Reading means for reading an image on a sheet while moving relative to the sheet;
Generating means for generating read data from an image read by the reading means during a reading operation of the reading means;
Determining means for determining the type of image from the read data;
First storage means for storing a relationship between the type of image and a characteristic region which is a characteristic of the image on the sheet;
Second storage means for storing image data;
The read data, and a comparing means for comparing the image data,
The determination unit determines a type of an image of a sheet being read from the read data being generated by the generation unit,
The comparison unit compares the characteristic region in the read data with the characteristic region in the image data using the relationship, the image data, and the read data being generated by the generation unit. And
The reading device, wherein the reading unit stops the reading operation when both portions match as a result of the comparison.
前記比較手段は、前記関係、前記1つの画像データ以外の他の画像データ及び前記生成手段が生成中の前記読取データを用いて、前記読取データにおける前記特徴領域の部分と、前記他の画像データの前記特徴領域の部分とを比較し、
前記読取手段は、前記比較の結果として両部分が一致する場合、読取動作を停止することを特徴とする請求項1に記載の読取装置。 When the two parts do not match as a result of the comparison and the image data is one of a plurality of image data,
The comparison unit uses the relationship, image data other than the one image data, and the read data being generated by the generation unit, and uses the read data being generated by the characteristic region portion in the read data and the other image data. And comparing the feature region with
2. The reading apparatus according to claim 1, wherein the reading unit stops the reading operation when both portions match as a result of the comparison.
前記生成手段は、前記読取データを前記圧縮されたデータと同じ圧縮形式のデータとして生成し、
前記比較手段は、前記圧縮形式のデータを復元することで得られる前記読取データと前記圧縮形式のデータを復元することで得られる前記画像データとを比較することを特徴とする請求項1〜3の何れか1項に記載の読取装置。 The second storage means stores the image data as compressed data;
The generating means generates the read data as data in the same compression format as the compressed data,
4. The apparatus according to claim 1, wherein the comparing unit compares the read data obtained by restoring the data in the compression format with the image data obtained by restoring the data in the compression format. The reading device according to claim 1.
前記比較の結果として両部分が一致する場合に前記読取手段が読取動作を停止するとき、前記選択手段での選択結果に基づいて、前記読取手段は、読取動作を停止することを特徴とする請求項1〜5の何れか1項に記載の読取装置。 Selecting means for selecting whether to stop the reading operation of the reading means,
When the reading unit stops the reading operation when both portions match as a result of the comparison, the reading unit stops the reading operation based on a result of the selection by the selecting unit. Item 6. The reading device according to any one of Items 1 to 5.
前記比較手段に、前記関係、前記画像データ及び前記生成手段が生成中の前記読取データを用いて、前記読取データにおける前記特徴領域の部分と、前記画像データにおける前記特徴領域の部分との比較をさせ、
前記読取手段に、前記比較の結果として両部分が一致する場合、読取動作を停止させることを特徴とするプログラム。 Reading means for reading a paper image while moving the computer relative to the paper; generating means for generating read data from the image read by the reading means during the reading operation of the reading means; Determining means for determining, first storing means for storing a relationship between an image type and a characteristic region which is a characteristic of an image on a sheet, second storing means for storing image data, and the read data and the image data A program for functioning as comparing means for comparing
The comparison means uses the relationship, the image data, and the read data being generated by the generation means to compare a portion of the characteristic region in the read data with a portion of the characteristic region in the image data. Let
A program causing the reading means to stop a reading operation when both portions match as a result of the comparison.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018111134A JP2019216306A (en) | 2018-06-11 | 2018-06-11 | Reading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018111134A JP2019216306A (en) | 2018-06-11 | 2018-06-11 | Reading device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019216306A true JP2019216306A (en) | 2019-12-19 |
Family
ID=68918033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018111134A Pending JP2019216306A (en) | 2018-06-11 | 2018-06-11 | Reading device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019216306A (en) |
-
2018
- 2018-06-11 JP JP2018111134A patent/JP2019216306A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7211238B2 (en) | Edge detection device, tilt correction device, reading device, image processing device, and edge detection method | |
US9219827B2 (en) | Image inspection system and image inspection method | |
EP2606632B1 (en) | A method of scanning documents | |
US8411331B2 (en) | Image scanning apparatus, computer readable medium, image management system, and image management methods | |
JP7338432B2 (en) | image forming device | |
US8879129B2 (en) | Method of capturing an image of a document | |
JP7487523B2 (en) | Image reading device, image reading system, image reading method and program | |
US20180091671A1 (en) | Image Reading Apparatus and Image Reading Method That Simply Detect Document Direction in Reading of Book Document, and Recording Medium Therefor | |
JP2019201381A (en) | Image processing apparatus, image processing system, and program | |
JP2019216306A (en) | Reading device | |
US9270838B2 (en) | Verifying accuracy of a scanned document | |
US8279492B2 (en) | Image processing devices and computer program products for processing image data | |
US9811877B2 (en) | Image processing device selecting arrangement method for generating arranged image data | |
JP4354443B2 (en) | Image reading device | |
JP4347256B2 (en) | Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recorded with the same | |
JP6354705B2 (en) | Image processing device | |
US20240086663A1 (en) | Information processing apparatus, inspection system, information processing method, and storage medium | |
US20240078400A1 (en) | Inspection system, inspection apparatus, and method of controlling these | |
JP2021057640A (en) | Method of controlling image processing apparatus | |
JP7159762B2 (en) | Image reader | |
JP2021153273A (en) | Method for controlling image processing apparatus | |
JP4432961B2 (en) | Image processing apparatus and image processing program | |
JP4339764B2 (en) | Facsimile machine | |
JP4622239B2 (en) | Serial number reprinting system and method | |
JP4056461B2 (en) | Image processing apparatus, image processing method, and image processing program |