JP6680038B2 - Image reading apparatus and image processing method - Google Patents

Image reading apparatus and image processing method Download PDF

Info

Publication number
JP6680038B2
JP6680038B2 JP2016067508A JP2016067508A JP6680038B2 JP 6680038 B2 JP6680038 B2 JP 6680038B2 JP 2016067508 A JP2016067508 A JP 2016067508A JP 2016067508 A JP2016067508 A JP 2016067508A JP 6680038 B2 JP6680038 B2 JP 6680038B2
Authority
JP
Japan
Prior art keywords
image data
area
document
original
laminated
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
JP2016067508A
Other languages
Japanese (ja)
Other versions
JP2017183973A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016067508A priority Critical patent/JP6680038B2/en
Publication of JP2017183973A publication Critical patent/JP2017183973A/en
Application granted granted Critical
Publication of JP6680038B2 publication Critical patent/JP6680038B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像読取装置、および画像処理方法に関する。   The present invention relates to an image reading device and an image processing method.

紙等の印刷物の表裏面に光透過性の高いフィルムを張り合わせるラミネート加工が知られている。ラミネート加工される印刷物は、例えば、身分証明証、会員証、広告、価格表等である。ラミネート加工は、挟まれた印刷物の色落ちや摩耗を防止することができる。特許文献1は、ラミネート加工された媒体を搬送するための技術について開示している。   2. Description of the Related Art Laminate processing is known in which a film having high light transmittance is attached to the front and back surfaces of a printed matter such as paper. The printed matter to be laminated is, for example, an identification card, a membership card, an advertisement, a price list, or the like. Laminating can prevent discoloration and abrasion of the sandwiched printed matter. Patent Document 1 discloses a technique for conveying a laminated medium.

特開2011−032021号公報JP, 2011-032021, A

ラミネート加工された原稿(ラミネート原稿)のフィルムは、埃が付着したり傷が付いたりし易い。そのため、スキャナー等の画像読取装置は、ラミネート原稿の読取画像データから原稿本体に対応する領域を切り出す際に、原稿本体の周囲のフィルム上の傷等を原稿本体と判定して誤った領域を切り出すことがある。また、この切り出し領域の形状や大きさは、フィルム上の傷等の位置や大きさに応じて変化してしまう。例えば、OCR(Optical Character Recognition)処理をラミネート原稿に対して実行する場合、切り出し領域が誤って判定されると、文字を認識すべき所望の範囲に対してOCR処理が実行されないことになる。   The film of the laminated original (laminated original) is easily attached with dust or scratched. Therefore, when an image reading device such as a scanner cuts out a region corresponding to the document body from the read image data of the laminated document, it judges a scratch on the film around the document body as the document body and cuts out an incorrect region. Sometimes. Further, the shape and size of this cutout region changes depending on the position and size of a scratch or the like on the film. For example, when OCR (Optical Character Recognition) processing is performed on a laminated original, if the cutout area is erroneously determined, the OCR processing is not performed on the desired range in which the characters should be recognized.

本発明の目的は、ラミネート原稿の読取画像データから原稿本体およびその周囲部分を精度よく切り出すことにある。   An object of the present invention is to accurately cut out a document body and its peripheral portion from read image data of a laminated document.

上記の課題を解決する本発明の一態様は、画像読取装置であって、原稿をスキャンして読取画像データを生成する読取部と、前記読取画像データを取得する画像取得部と、前記読取画像データ中の前記原稿に対応する第1の領域を検出する第1の領域検出部と、前記第1の領域の縦横サイズと所定の基準縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定する原稿種別判定部と、前記原稿がラミネート原稿と判定された場合に、前記読取画像データにエッジ検出処理を施してエッジ画像データを生成し、前記エッジ画像データに基づいて、前記読取画像データ中の前記原稿の本体およびその周囲部分に対応する第2の領域を検出する第2の領域検出部と、前記原稿がラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出す切り出し部とを有する。これにより、画像読取装置は、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。   One aspect of the present invention that solves the above-mentioned problems is an image reading apparatus, which includes a reading unit that scans a document to generate read image data, an image acquisition unit that acquires the read image data, and the read image. A first area detection unit that detects a first area corresponding to the original in the data is compared with a vertical and horizontal size of the first area and a predetermined reference vertical and horizontal size, and the original is a laminated original. A document type determination unit that determines whether or not the read image data is subjected to edge detection processing to generate edge image data when the document is determined to be a laminated document, and the edge image data is generated based on the edge image data. A second area detection unit that detects a second area corresponding to the main body of the original in the read image data and a peripheral portion thereof, and the read image when the original is determined to be a laminated original. And a cutout portion from over data cut out image data of the second region. As a result, the image reading apparatus can accurately determine the type of document (normal document or laminated document). Further, when the read document is a laminated document, the image reading device can accurately cut out the document body included in the laminated document and the peripheral portion thereof.

上記の画像読取装置は、前記原稿を前記読取部へ送るとともに、前記原稿の始端および終端を検出する自動給紙装置を有し、前記第1の領域検出部は、前記検出された前記原稿の始端および終端に基づいて前記縦サイズを決定し、前記読取画像データに基づいて前記横サイズを決定してもよい。これにより、画像読取装置は、縦横サイズを画像処理で特定する場合と比べ、より短時間で原稿の縦横サイズを特定することができる。   The above-mentioned image reading device has an automatic paper feeding device for feeding the original document to the reading unit and detecting a start end and an end of the original document, and the first area detection unit is provided for the detected original document. The vertical size may be determined based on the start end and the end, and the horizontal size may be determined based on the read image data. As a result, the image reading apparatus can specify the vertical and horizontal sizes of the document in a shorter time than in the case where the vertical and horizontal sizes are specified by image processing.

上記の画像読取装置は、通常モードとラミネート原稿モードのいずれかを選択可能であってもよい。前記通常モードが選択されている場合、前記第1の領域検出部は、前記読取画像データ中の前記第1の領域を検出し、前記切り出し部は、前記読取画像データから前記第1の領域の画像データを切り出す。前記ラミネート原稿モードが選択されている場合、前記第1の領域検出部は、前記読取画像データ中の前記第1の領域を検出し、前記原稿種別判定部は、前記原稿がラミネート原稿であるかどうかを判定し、前記原稿がラミネート原稿と判定された場合に、前記第2の領域検出部は、前記読取画像データ中の前記第2の領域を検出し、前記原稿がラミネート原稿と判定された場合に、前記切り出し部は、前記読取画像データから前記第2の領域の画像データを切り出し、前記原稿がラミネート原稿でないと判定された場合に、前記切り出し部は、前記読取画像データから前記第1の領域の画像データを切り出す。これにより、画像読取装置は、ユーザーによって通常原稿がセットされてもラミネート原稿がセットされても、適切に画像データを切り出すことができる。   The image reading apparatus may be capable of selecting either the normal mode or the laminated original mode. When the normal mode is selected, the first area detection unit detects the first area in the read image data, and the cutout unit extracts the first area from the read image data. Cut out image data. When the laminated original mode is selected, the first area detection unit detects the first area in the read image data, and the original type determination unit determines whether the original is a laminated original. If it is determined that the original is a laminated original, the second area detection unit detects the second area in the read image data, and the original is determined to be a laminated original. In this case, the cutout unit cuts out the image data of the second area from the read image data, and when it is determined that the document is not a laminated document, the cutout unit outputs the first image from the read image data. The image data of the area is cut out. As a result, the image reading apparatus can appropriately cut out the image data regardless of whether the user sets a normal document or a laminated document.

上記の画像読取装置において、前記第1の領域検出部は、前記読取画像データに対して閾値判定処理を施した画像データを生成し、当該画像データに対して角度検出処理および矩形検出処理を施すことにより、前記第1の領域を検出し、前記第2の領域検出部は、前記エッジ画像データに対して角度検出処理および矩形検出処理を施すことにより、前記第2の領域を検出してもよい。これにより、画像読取装置は、通常原稿についてはエッジ検出処理より処理量の少ない画像処理で画像データを切り出し、ラミネート原稿については領域検出のために精度の高い画像処理を実行できる。   In the above-described image reading device, the first area detection unit generates image data in which the read image data is subjected to threshold value determination processing, and performs angle detection processing and rectangle detection processing on the image data. As a result, the second area detection unit detects the second area by performing the angle detection processing and the rectangle detection processing on the edge image data. Good. As a result, the image reading apparatus can cut out the image data by the image processing that has a smaller processing amount than the edge detection processing for the normal document and can perform the highly accurate image processing for the area detection for the laminated document.

上記の課題を解決する本発明の他の態様は、画像読取装置であって、原稿をスキャンして読取画像データを生成する読取部と、前記読取画像データを取得する画像取得部と、前記読取画像データ中の前記原稿に対応する第1の領域を検出する第1の領域検出部と、前記読取画像データにエッジ検出処理を施してエッジ画像データを生成し、前記エッジ画像データに基づいて、前記読取画像データ中の前記原稿の本体およびその周囲部分に対応する第2の領域を検出する第2の領域検出部と、前記第1の領域の縦横サイズと前記第2の領域の縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定する原稿種別判定部と、前記原稿がラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出す切り出し部とを有する。これにより、画像読取装置は、基準縦横サイズを用いずに読取画像データの画像特徴に基づいて、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。   Another aspect of the present invention that solves the above-mentioned problems is an image reading apparatus, including a reading unit that scans a document to generate read image data, an image acquisition unit that acquires the read image data, and the reading unit. A first area detection unit that detects a first area corresponding to the original in the image data, and edge detection processing is performed on the read image data to generate edge image data, and based on the edge image data, A second area detection unit for detecting a second area corresponding to the main body of the original document and its peripheral portion in the read image data, and a vertical and horizontal size of the first area and a vertical and horizontal size of the second area. And a document type determination unit that determines whether the document is a laminated document, and if the document is determined to be a laminated document, the image data of the second area from the read image data. And a cut-out portion to be cut out. Accordingly, the image reading apparatus can accurately determine the type of the original (normal original or laminated original) based on the image characteristics of the read image data without using the reference vertical and horizontal sizes. Further, when the read document is a laminated document, the image reading device can accurately cut out the document body included in the laminated document and the peripheral portion thereof.

上記の課題を解決する本発明のさらに他の態様は、画像読取装置の画像処理方法であって、原稿をスキャンして読取画像データを生成するステップと、前記読取画像データを取得するステップと、前記読取画像データ中の前記原稿に対応する第1の領域を検出するステップと、前記第1の領域の縦横サイズと所定の基準縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定するステップと、前記原稿がラミネート原稿と判定された場合に、前記読取画像データにエッジ検出処理を施してエッジ画像データを生成し、前記エッジ画像データに基づいて、前記読取画像データ中の前記原稿の本体およびその周囲部分に対応する第2の領域を検出するステップと、前記原稿がラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出すステップとを含む。これにより、画像読取装置は、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。   Yet another aspect of the present invention that solves the above-mentioned problems is an image processing method for an image reading apparatus, which includes a step of scanning a document to generate read image data, and a step of acquiring the read image data. Whether the original is a laminated original by comparing the step of detecting a first area corresponding to the original in the read image data with the vertical and horizontal sizes of the first area and a predetermined reference vertical and horizontal size. And a step of determining that the original is a laminated original, edge detection processing is performed on the read image data to generate edge image data, and based on the edge image data, A step of detecting a second area corresponding to the main body of the original document and its peripheral portion; and the read image when the original document is determined to be a laminated original document. From over data and a step of cutting out the image data of the second region. As a result, the image reading apparatus can accurately determine the type of document (normal document or laminated document). Further, when the read document is a laminated document, the image reading device can accurately cut out the document body included in the laminated document and the peripheral portion thereof.

上記の課題を解決する本発明のさらに他の態様は、画像読取装置の画像処理方法であって、原稿をスキャンして読取画像データを生成するステップと、前記読取画像データを取得するステップと、前記読取画像データ中の前記原稿に対応する第1の領域を検出するステップと、前記読取画像データにエッジ検出処理を施してエッジ画像データを生成し、前記エッジ画像データに基づいて、前記読取画像データ中の前記原稿の本体およびその周囲部分に対応する第2の領域を検出するステップと、前記第1の領域の縦横サイズと前記第2の領域の縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定するステップと、前記原稿がラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出すステップとを含む。これにより、画像読取装置は、基準縦横サイズを用いずに読取画像データの画像特徴に基づいて、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。   Yet another aspect of the present invention that solves the above-mentioned problems is an image processing method for an image reading apparatus, which includes a step of scanning a document to generate read image data, and a step of acquiring the read image data. Detecting a first area corresponding to the original in the read image data; performing edge detection processing on the read image data to generate edge image data; and based on the edge image data, the read image The step of detecting the second area corresponding to the main body of the original in the data and its peripheral portion is compared with the vertical and horizontal sizes of the first area and the vertical and horizontal sizes of the second area, and the original is detected. A step of determining whether or not the original is a laminated original, and when the original is determined to be a laminated original, the image data of the second area is extracted from the read image data. Ri issues and a step. Accordingly, the image reading apparatus can accurately determine the type of the original (normal original or laminated original) based on the image characteristics of the read image data without using the reference vertical and horizontal sizes. Further, when the read document is a laminated document, the image reading device can accurately cut out the document body included in the laminated document and the peripheral portion thereof.

本発明の第1実施形態に係る画像読取装置の構成例を示すブロック図である。It is a block diagram showing an example of composition of an image reading device concerning a 1st embodiment of the present invention. 画像読取処理の一例を示すフローチャートである。9 is a flowchart illustrating an example of image reading processing. ラミネート原稿の切り出しを説明する図である。It is a figure explaining cutting out of a lamination original. 本発明の第2実施形態に係る画像読取装置の一例を示すフローチャートである。6 is a flowchart showing an example of an image reading apparatus according to a second embodiment of the present invention.

以下、本発明の実施形態について、図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[第1実施形態]
図1は、本発明の第1実施形態に係る画像読取装置の構成例を示すブロック図である。画像読取装置1は、例えばスキャナーやMFP(Multifunction Printer)であり、スキャン機能等を有する。
[First Embodiment]
FIG. 1 is a block diagram showing a configuration example of an image reading apparatus according to the first embodiment of the present invention. The image reading device 1 is, for example, a scanner or an MFP (Multifunction Printer), and has a scan function and the like.

画像読取装置1は、制御部2と、読取部3と、表示部4と、入力部5と、通信部6と含む。制御部2は、画像取得部21と、画像処理部22と、画像出力部23とを含む。   The image reading device 1 includes a control unit 2, a reading unit 3, a display unit 4, an input unit 5, and a communication unit 6. The control unit 2 includes an image acquisition unit 21, an image processing unit 22, and an image output unit 23.

制御部2は、画像読取装置1の動作を統合的に制御する。制御部2は、例えば、CPU(Central Processing Unit)等の演算装置、RAM(Random Access Memory)等の揮発性の記憶装置、ROM(Read Only Memory)等の不揮発性の記憶装置、制御部2と他のユニットを接続するインターフェイス回路、これらを互いに接続するバス、などを備えるコンピューターによって実現することができる。制御部2は、画像処理回路など各種の処理回路を備えていてもよい。制御部2は、ASIC(Application Specific Integrated Circuit)などによって実現されてもよい。   The control unit 2 controls the operation of the image reading device 1 in an integrated manner. The control unit 2 includes, for example, an arithmetic device such as a CPU (Central Processing Unit), a volatile storage device such as a RAM (Random Access Memory), a non-volatile storage device such as a ROM (Read Only Memory), and the control unit 2. It can be realized by a computer including an interface circuit that connects other units, a bus that connects these units, and the like. The control unit 2 may include various processing circuits such as an image processing circuit. The control unit 2 may be realized by an ASIC (Application Specific Integrated Circuit) or the like.

上記の制御部2の機能(画像取得部21、画像処理部22、画像出力部23)の少なくとも一部は、例えば、CPUがROMに格納された所定のプログラムをRAMに読み出して実行することによって実現することができる。当該所定のプログラムは、例えば持ち運び可能な記憶媒体から読み出して画像読取装置1にインストールしたり、ネットワーク上のサーバーからダウンロードして画像読取装置1にインストールしたりすることができる。制御部2の機能の少なくとも一部は、例えば、画像処理回路等の処理回路によって実現してもよい。制御部2の機能の少なくとも一部は、例えば、CPU及び処理回路の両方によって実現されてもよい。   At least a part of the functions of the control unit 2 (the image acquisition unit 21, the image processing unit 22, the image output unit 23) is performed by, for example, the CPU reading a predetermined program stored in the ROM into the RAM and executing the program. Can be realized. The predetermined program can be read from a portable storage medium and installed in the image reading device 1, or can be downloaded from a server on the network and installed in the image reading device 1. At least a part of the function of the control unit 2 may be realized by a processing circuit such as an image processing circuit. At least a part of the function of the control unit 2 may be realized by both the CPU and the processing circuit, for example.

読取部3は、制御部2からの指示に従って原稿を読み取って画像データを生成し、制御部2に出力する。読取部3は、例えば、イメージセンサーを用いたスキャンエンジンであり、機械部品、センサー、モーター、駆動回路、制御回路等により構成される。本実施形態の読取部3は、例えば、カラー画像やグレイスケール画像を出力することができる。また、読取部3は、例えば、200dpi、300dpi、600dpi等の所定の解像度、あるいはユーザーによって選択された解像度の画像データを出力することができる。   The reading unit 3 reads an original according to an instruction from the control unit 2, generates image data, and outputs the image data to the control unit 2. The reading unit 3 is, for example, a scan engine using an image sensor, and includes mechanical parts, a sensor, a motor, a drive circuit, a control circuit, and the like. The reading unit 3 of the present embodiment can output, for example, a color image or a gray scale image. The reading unit 3 can also output image data having a predetermined resolution such as 200 dpi, 300 dpi, or 600 dpi, or a resolution selected by the user.

本実施形態の画像読取装置1は、原稿台(図示せず)に加え、ADF31(Auto Document Feeder、自動給紙装置)を備える。ADF31は、例えば、制御部2あるいは読取部3からの指示に従って、読取部3の読取領域(例えばイメージセンサーの上側)を通過するように、所定の搬送方向に読取対象の原稿を搬送する。ADF31は、機械部品、センサー、モーター、駆動回路、制御回路等により構成される。また、ADF31は、例えば、原稿の始端および終端を検出するセンサー(図示せず、例えば光学センサー)と、原稿を搬送するためのモーターの回転角度を検出するエンコーダーとを備えている。制御部2は、例えば、これらのセンサーの出力およびエンコーダーの出力に基づいて、原稿の縦サイズを特定することができる。なお、搬送方向は、副走査方向および原稿の縦方向に対応し、搬送方向と直交する方向は、主走査方向および原稿の横方向に対応する。   The image reading apparatus 1 of the present embodiment includes an ADF 31 (Auto Document Feeder) in addition to a document table (not shown). The ADF 31 conveys the document to be read in a predetermined conveyance direction so as to pass through the reading area of the reading unit 3 (for example, the upper side of the image sensor) according to an instruction from the control unit 2 or the reading unit 3. The ADF 31 is composed of mechanical parts, sensors, motors, drive circuits, control circuits, and the like. Further, the ADF 31 includes, for example, a sensor (not shown, for example, an optical sensor) that detects the start and end of the document, and an encoder that detects the rotation angle of a motor for conveying the document. The control unit 2 can specify the vertical size of the document based on the outputs of these sensors and the encoder, for example. The carrying direction corresponds to the sub-scanning direction and the longitudinal direction of the document, and the direction orthogonal to the carrying direction corresponds to the main scanning direction and the lateral direction of the document.

表示部4は、制御部2の処理結果を、文字、グラフ、表、アニメーション、その他の画像として表示する。表示部4は、例えば、LCD(Liquid Crystal Display)、OLED(Organic Electroluminescence Display)などの出力装置である。   The display unit 4 displays the processing result of the control unit 2 as characters, graphs, tables, animations, and other images. The display unit 4 is an output device such as an LCD (Liquid Crystal Display) and an OLED (Organic Electroluminescence Display).

入力部5は、ユーザーの操作入力を受け付け、操作に応じた操作信号を制御部2に出力する。入力部5は、例えば、キー、タッチセンサー、タッチパネルなどの入力装置である。   The input unit 5 accepts a user's operation input and outputs an operation signal corresponding to the operation to the control unit 2. The input unit 5 is, for example, an input device such as a key, a touch sensor, or a touch panel.

通信部6は、外部装置と情報を送受信する。通信部6は、例えば、無線LAN(Local Area Network)に準拠した通信モジュールである。画像読取装置1は、通信部6に替えてあるいは加えて、有線LANに準拠した通信部を備えていてもよい。   The communication unit 6 transmits / receives information to / from an external device. The communication unit 6 is, for example, a communication module conforming to a wireless LAN (Local Area Network). The image reading device 1 may be provided with a communication unit compliant with a wired LAN instead of or in addition to the communication unit 6.

以下では、通常の原稿(例えば、A4、B5等の定型の原稿)、あるいはラミネート加工された原稿(ラミネート原稿)を、画像読取装置1がADF31を用いて読み取る場合を中心に説明する。ラミネート加工(パウチ加工ともいう)とは、紙等の原稿(印刷物)の表裏面に光透過性の高いフィルムを貼り合せる加工である。ラミネート加工される原稿は、例えば、身分証明証、会員証、広告、価格表等である。   In the following, the case where the image reading apparatus 1 reads an ordinary document (for example, a standard document such as A4 and B5) or a laminated document (laminated document) using the ADF 31 will be mainly described. The laminating process (also referred to as pouch process) is a process of attaching a film having high light transmittance to the front and back surfaces of a document (printed matter) such as paper. The manuscript to be laminated is, for example, an identification card, a membership card, an advertisement, a price list, or the like.

画像取得部21は、読取画像データを読取部3から取得する。通常原稿を読み取った場合、読取画像データは、通常原稿に対応する領域と、背景(例えば原稿を抑えるプラテン)に対応する領域とを含む。ラミネート原稿を読み取った場合、読取画像データは、ラミネート原稿に対応する領域(原稿本体とその周囲のフィルム)と、背景(例えば原稿を抑えるプラテン)に対応する領域とを含む。   The image acquisition unit 21 acquires the read image data from the reading unit 3. When a normal original is read, the read image data includes an area corresponding to the normal original and an area corresponding to the background (for example, a platen holding the original). When a laminated original is read, the read image data includes an area corresponding to the laminated original (a main body of the original and a film around the original) and an area corresponding to a background (for example, a platen holding the original).

画像処理部22は、読取画像データから原稿に対応する領域(通常原稿あるいはラミネート原稿に対応する領域)の画像データを切り出す処理を実行する。画像処理部22は、第1の領域検出部221と、第2の領域検出部222と、原稿種別判定部223と、切り出し部224とを含む。   The image processing unit 22 executes a process of cutting out image data of an area corresponding to a document (area corresponding to a normal document or a laminated document) from the read image data. The image processing section 22 includes a first area detection section 221, a second area detection section 222, a document type determination section 223, and a cutout section 224.

第1の領域検出部221は、ADF31から出力されるセンサー出力およびエンコーダー出力に基づいて、原稿の縦サイズを特定する。また、第1の領域検出部221は、画像取得部21から出力される読取画像データから、原稿に対応する領域の横サイズを特定する。また、第1の領域検出部221は、主走査方向又は副走査方向に対する原稿領域の傾きを特定する。また、第1の領域検出部221は、特定した原稿領域の縦横サイズおよび傾きを用いて、原稿に対応する矩形領域(本発明の「第1の領域」に相当する)を特定する。なお、矩形は、正方形を含む。   The first area detection unit 221 identifies the vertical size of the document based on the sensor output and the encoder output output from the ADF 31. Further, the first area detection unit 221 identifies the horizontal size of the area corresponding to the document from the read image data output from the image acquisition unit 21. Further, the first area detection unit 221 identifies the inclination of the original area with respect to the main scanning direction or the sub scanning direction. Further, the first area detection unit 221 specifies the rectangular area (corresponding to the “first area” of the present invention) corresponding to the original using the vertical and horizontal sizes and the inclination of the specified original area. The rectangle includes a square.

第2の領域検出部222は、後述する原稿種別判定部223によって、読み取られた原稿がラミネート原稿であると判定された場合に、処理を実行する。第2の領域検出部222は、画像取得部21から出力される読取画像データに対して、エッジ検出処理を実行してエッジ画像データを生成する。また、第2の領域検出部222は、エッジ画像データに基づいて、ラミネート原稿に対応する領域の縦サイズおよび横サイズを特定する。また、第2の領域検出部222は、主走査方向又は副走査方向に対するラミネート原稿領域の傾きを特定する。また、第2の領域検出部222は、特定したラミネート原稿領域の縦横サイズおよび傾きを用いて、ラミネート原稿に対応する矩形領域(本発明の「第2の領域」に相当する)を特定する。   The second area detection unit 222 executes processing when the document type determination unit 223 described later determines that the read document is a laminated document. The second area detection unit 222 performs edge detection processing on the read image data output from the image acquisition unit 21 to generate edge image data. Further, the second area detection unit 222 specifies the vertical size and the horizontal size of the area corresponding to the laminated original based on the edge image data. Further, the second area detection unit 222 identifies the inclination of the laminated document area with respect to the main scanning direction or the sub scanning direction. Further, the second area detection unit 222 identifies the rectangular area (corresponding to the “second area” of the present invention) corresponding to the laminated original by using the specified vertical and horizontal sizes and inclination of the laminated original area.

原稿種別判定部223は、第1の領域検出部221により検出された原稿の縦横サイズを、所定の基準縦横サイズと比較する。本実施形態の画像読取装置1は、読取部3が読取可能な最小の定型サイズよりも小さいラミネート原稿を対象とする。基準縦横サイズは、例えば、読取部3が読取可能な最小の定型文書のサイズよりも小さく、読取部3が読取可能な最大のラミネート原稿のサイズよりも大きい。検出された原稿の縦横サイズが基準縦横サイズよりも小さい場合、原稿種別判定部223は、読み取られた原稿をラミネート原稿と判定する。検出された原稿の縦横サイズが基準縦横サイズ以上である場合、原稿種別判定部223は、読み取られた原稿を通常原稿と判定する。   The document type determination unit 223 compares the vertical and horizontal sizes of the original detected by the first area detection unit 221 with a predetermined reference vertical and horizontal size. The image reading apparatus 1 of the present embodiment targets a laminated document smaller than the smallest standard size that can be read by the reading unit 3. The reference vertical / horizontal size is, for example, smaller than the smallest standard document size that the reading unit 3 can read, and larger than the largest laminated document size that the reading unit 3 can read. When the vertical and horizontal sizes of the detected original are smaller than the reference vertical and horizontal sizes, the original type determination unit 223 determines that the read original is a laminated original. When the detected vertical and horizontal size of the original is equal to or larger than the reference vertical and horizontal size, the original type determination unit 223 determines that the read original is a normal original.

切り出し部224は、読み取られた原稿が通常原稿であると判定された場合、第1の領域検出部221によって検出された原稿に対応する矩形領域を、読取画像データから切り出す。切り出し部224は、読み取られた原稿がラミネート原稿であると判定された場合、第2の領域検出部221によって検出されたラミネート原稿に対応する矩形領域を、読取画像データから切り出す。   When it is determined that the read document is a normal document, the cutout unit 224 cuts out a rectangular area corresponding to the document detected by the first area detection unit 221 from the read image data. When it is determined that the read document is a laminated document, the cutout unit 224 cuts out a rectangular area corresponding to the laminated document detected by the second area detection unit 221 from the read image data.

画像出力部23は、切り出し部224によって切り出された通常原稿又はラミネート原稿の画像データを、例えば、RAMやROM等の記憶部、通信部6を介して通信可能な外部の機器等に出力する。画像読取装置1が印刷部を有する場合、画像出力部23は、画像データを印刷部に出力して印刷させてもよい。   The image output unit 23 outputs the image data of the normal document or the laminated document cut out by the cutout unit 224 to, for example, a storage unit such as a RAM or a ROM or an external device or the like capable of communicating via the communication unit 6. When the image reading device 1 has a printing unit, the image output unit 23 may output the image data to the printing unit to print it.

上述の画像読取装置1の動作例について、以下に説明する。   An operation example of the image reading apparatus 1 described above will be described below.

図2は、画像読取処理の一例を示すフローチャートである。制御部2は、例えば、入力部5又は通信部6を介してユーザーから読取開始指示を受け付けると、図2のフローチャートに示す処理を開始する。制御部2は、ADF31に原稿(通常原稿又はラミネート原稿)を搬送させるとともに、読取部3に原稿を読み取らせる。   FIG. 2 is a flowchart showing an example of the image reading process. When the control unit 2 receives a reading start instruction from the user via the input unit 5 or the communication unit 6, for example, the control unit 2 starts the process shown in the flowchart of FIG. The control unit 2 causes the ADF 31 to convey a document (normal document or laminated document) and causes the reading unit 3 to read the document.

まず、画像取得部21は、読取部3から読取画像データを取得する(ステップS1)。また、画像取得部21は、ADF31から出力されるセンサー出力およびエンコーダー出力を取得する。   First, the image acquisition unit 21 acquires read image data from the reading unit 3 (step S1). The image acquisition unit 21 also acquires the sensor output and the encoder output output from the ADF 31.

それから、第1の領域検出部221は、画像取得部21により取得された読取画像データに対して閾値判定を実行する(ステップS2)。例えば、第1の領域検出部221は、読取画像データの各画素の階調値が所定の閾値を超えるか否かを判定し、所定の閾値を超える画素で構成される所定の広さより大きい領域を、原稿を構成する画素領域として特定する。もちろん、閾値判定の方法は、上記の方法に限られず、既存の他のアルゴリズムを用いることができる。   Then, the first area detection unit 221 executes threshold value determination on the read image data acquired by the image acquisition unit 21 (step S2). For example, the first area detection unit 221 determines whether or not the gradation value of each pixel of the read image data exceeds a predetermined threshold value, and an area larger than a predetermined area composed of pixels exceeding the predetermined threshold value. Is specified as a pixel area forming the document. Of course, the method of threshold determination is not limited to the above method, and other existing algorithms can be used.

また、ステップS2において、第1の領域検出部221は、特定された原稿領域に基づいて、原稿の横サイズを特定する。第1の領域検出部221は、例えば、原稿領域上の主走査方向の最大幅を、横サイズとして特定すればよい。また、第1の領域検出部221は、画像取得部21により取得されたセンサー出力(原稿の始端および終端)およびエンコーダー出力(回転角度)に基づいて、原稿の縦サイズを特定する。第1の領域検出部221は、例えば、原稿の始端から終端までの回転角度と、単位回転角度当たりの原稿移動距離とから、原稿の縦サイズを求めればよい。   Further, in step S2, the first area detection unit 221 specifies the horizontal size of the original based on the specified original area. For example, the first area detection unit 221 may specify the maximum width in the main scanning direction on the original area as the horizontal size. Further, the first area detection unit 221 specifies the vertical size of the document based on the sensor output (the original end and the end of the document) and the encoder output (rotation angle) acquired by the image acquisition unit 21. The first area detection unit 221 may find the vertical size of the document from the rotation angle from the start end to the end of the document and the document movement distance per unit rotation angle, for example.

それから、第1の領域検出部221は、角度検出を実行する(ステップS3)。例えば、第1の領域検出部221は、ステップS2で特定した原稿領域から原稿の角を成す辺を特定し、この辺の主走査方向又は副走査方向に対する傾き角度を特定すればよい。このようにして、原稿領域の傾きが検出される。もちろん、角度検出の方法は、上記の方法に限られず、既存の他のアルゴリズムを用いることができる。   Then, the first area detection unit 221 executes angle detection (step S3). For example, the first area detection unit 221 may specify a side forming an angle of the original from the original area specified in step S2, and specify an inclination angle of this side with respect to the main scanning direction or the sub scanning direction. In this way, the inclination of the original area is detected. Of course, the angle detection method is not limited to the above method, and other existing algorithms can be used.

それから、第1の領域検出部221は、矩形検出を実行する(ステップS4)。例えば、第1の領域検出部221は、ステップS2で特定した原稿領域の縦横サイズおよびステップS3で特定した原稿領域の傾きに基づいて、原稿に対応する矩形領域を特定する。このようにして、矩形領域としての原稿領域が検出される。もちろん、矩形検出の方法は、上記の方法に限られず、既存の他のアルゴリズムを用いることができる。   Then, the first area detection unit 221 executes rectangle detection (step S4). For example, the first area detection unit 221 specifies the rectangular area corresponding to the original based on the vertical and horizontal sizes of the original area specified in step S2 and the inclination of the original area specified in step S3. In this way, the document area as a rectangular area is detected. Of course, the method of rectangle detection is not limited to the above method, and other existing algorithms can be used.

それから、原稿種別判定部223は、原稿のサイズ判定を実行する(ステップS5)。例えば、原稿種別判定部223は、ステップS2で検出された原稿の縦横サイズを、所定の基準縦横サイズと比較する。   Then, the document type determination unit 223 executes the document size determination (step S5). For example, the document type determination unit 223 compares the vertical and horizontal sizes of the original detected in step S2 with a predetermined reference vertical and horizontal size.

原稿の縦横サイズが基準縦横サイズよりも小さい場合(ステップS5:ラミネート原稿)、第2の領域検出部222は、画像取得部21から出力された読取画像データに対してエッジ検出を実行する(ステップS6)。例えば、第2の領域検出部222は、読取画像データの各画素に対して、主走査方向用のフィルター(例えば縦横N×N画素)と副走査方向用のフィルター(例えば縦横N×N画素)を用いてフィルター処理を実行し、各画素の主走査方向のエッジ量および副走査方向のエッジ量を求める。また、第2の領域検出部222は、各画素について、主走査方向のエッジ量と副走査方向のエッジ量を比較して、副走査方向よりも主走査方向のエッジ量が大きい場合には、主走査方向のエッジ量を出力し、主走査方向のエッジ量が副走査方向のエッジ量以下である場合には、副走査方向のエッジ量を出力する。このようにして、各画素のエッジ量を含むエッジ画像データが生成される。もちろん、エッジ検出の方法は、上記の方法に限られず、Sobelフィルター等の既存の他のアルゴリズムを用いることができる。   When the vertical and horizontal sizes of the original are smaller than the reference vertical and horizontal sizes (step S5: laminated original), the second area detection unit 222 executes edge detection on the read image data output from the image acquisition unit 21 (step S5). S6). For example, the second area detection unit 222, for each pixel of the read image data, a filter for the main scanning direction (for example, vertical and horizontal N × N pixels) and a filter for the sub scanning direction (for example, vertical and horizontal N × N pixels). Is used to obtain the edge amount in the main scanning direction and the edge amount in the sub scanning direction of each pixel. Further, the second area detection unit 222 compares the edge amount in the main scanning direction with the edge amount in the sub scanning direction for each pixel, and when the edge amount in the main scanning direction is larger than the sub scanning direction, The edge amount in the main scanning direction is output, and when the edge amount in the main scanning direction is less than or equal to the edge amount in the sub scanning direction, the edge amount in the sub scanning direction is output. In this way, edge image data including the edge amount of each pixel is generated. Of course, the method of edge detection is not limited to the above method, and other existing algorithms such as Sobel filter can be used.

また、ステップS6において、第2の領域検出部222は、エッジ画像データに対して2値化処理を実行し、2値のエッジ画像データを生成する。この2値のエッジ画像データでは、エッジ画素が白色で表れる。このようなエッジ検出により、ラミネート原稿の原稿本体の縁に加え、その周囲のフィルムの縁も、エッジ画素として検出することができる。   In addition, in step S6, the second area detection unit 222 performs binarization processing on the edge image data to generate binary edge image data. In this binary edge image data, the edge pixels appear white. By such edge detection, in addition to the edge of the original body of the laminated original, the edge of the film around it can also be detected as edge pixels.

また、ステップS6において、第2の領域検出部222は、2値のエッジ画像データから、ラミネート原稿に対応する領域を特定する。第2の領域検出部222は、例えば、エッジ画像データの外縁よりも内側の領域において、矩形状の閉じたエッジ領域のうち最も広いエッジ領域を、ラミネート原稿の外縁として特定すればよい。また、第2の領域検出部222は、特定されたラミネート原稿に対応する領域に基づいて、原稿の縦横サイズを特定する。第2の領域検出部222は、例えば、ラミネート原稿領域の主走査方向の最大幅を横サイズとして特定し、副走査方向の最大幅を縦サイズとして特定すればよい。   Further, in step S6, the second area detection unit 222 identifies the area corresponding to the laminated document from the binary edge image data. The second area detection unit 222 may specify, for example, the widest edge area of the rectangular closed edge areas in the area inside the outer edge of the edge image data as the outer edge of the laminated document. Further, the second area detection unit 222 specifies the vertical and horizontal sizes of the original based on the area corresponding to the specified laminated original. The second area detection unit 222 may specify, for example, the maximum width in the main scanning direction of the laminated document area as the horizontal size and the maximum width in the sub scanning direction as the vertical size.

それから、第2の領域検出部222は、角度検出を実行する(ステップS7)。例えば、第2の領域検出部222は、ステップS6で特定したエッジ画像データ中のラミネート原稿領域からラミネート原稿の角を成す辺を特定し、この辺の主走査方向又は副走査方向に対する傾き角度を特定すればよい。このようにして、ラミネート原稿領域の傾きが検出される。もちろん、角度検出の方法は、上記の方法に限られず、既存の他のアルゴリズムを用いることができる。   Then, the second area detection unit 222 executes angle detection (step S7). For example, the second area detection unit 222 specifies a side that forms an angle of the laminated document from the laminated document area in the edge image data specified in step S6, and specifies the tilt angle of this side with respect to the main scanning direction or the sub scanning direction. do it. In this way, the inclination of the laminated original area is detected. Of course, the angle detection method is not limited to the above method, and other existing algorithms can be used.

それから、第2の領域検出部222は、矩形検出を実行する(ステップS8)。例えば、第2の領域検出部222は、ステップS6で特定したラミネート原稿領域の縦横サイズおよびステップS7で特定したラミネート原稿領域の傾きに基づいて、ラミネート原稿に対応する矩形領域を特定する。このようにして、矩形領域としてのラミネート原稿領域が検出される。もちろん、矩形検出の方法は、上記の方法に限られず、既存の他のアルゴリズムを用いることができる。   Then, the second area detection unit 222 executes rectangle detection (step S8). For example, the second area detection unit 222 specifies the rectangular area corresponding to the laminated original based on the vertical and horizontal sizes of the laminated original area specified in step S6 and the inclination of the laminated original area specified in step S7. In this way, the laminated document area as the rectangular area is detected. Of course, the method of rectangle detection is not limited to the above method, and other existing algorithms can be used.

原稿の縦横サイズが基準縦横サイズ以上である場合(ステップS5:通常原稿)、又は、ステップS8の後、切り出し部224は、傾き補正および切り出しを実行する(ステップS9〜S10)。   If the vertical and horizontal sizes of the original are equal to or larger than the reference vertical and horizontal sizes (step S5: normal original), or after step S8, the cutout unit 224 performs tilt correction and cutout (steps S9 to S10).

読み取った原稿が通常原稿である場合、切り出し部224は、例えば、ステップS4で検出された矩形領域の角を成す2辺が主走査方向および副走査方向に一致するように、読取画像データを回転させる。また、切り出し部224は、回転させた読取画像データから、当該矩形領域の画像データを切り出す。画像出力部23は、切り出し部224によって切り出された通常原稿の画像データを出力する。   When the read original is a normal original, the cutout unit 224 rotates the read image data so that, for example, the two sides forming the corners of the rectangular area detected in step S4 coincide with the main scanning direction and the sub scanning direction. Let In addition, the cutout unit 224 cuts out the image data of the rectangular area from the rotated read image data. The image output unit 23 outputs the image data of the normal document cut out by the cutout unit 224.

読み取った原稿がラミネート原稿である場合、切り出し部224は、例えば、ステップS8で検出された矩形領域の角を成す2辺が主走査方向および副走査方向に一致するように、読取画像データを回転させる。また、切り出し部224は、回転させた読取画像データから、当該矩形領域の画像データを切り出す。画像出力部23は、切り出し部224によって切り出されたラミネート原稿の画像データを出力する。   When the read original is a laminated original, the cutout unit 224 rotates the read image data so that the two sides forming the corners of the rectangular area detected in step S8 coincide with the main scanning direction and the sub-scanning direction. Let In addition, the cutout unit 224 cuts out the image data of the rectangular area from the rotated read image data. The image output unit 23 outputs the image data of the laminated original cut out by the cutout unit 224.

以上のようにして、画像読取装置1は、読取画像データから原稿が通常原稿かラミネート原稿かを判定し、通常原稿又はラミネート原稿に対応する領域を切り出すことができる。   As described above, the image reading apparatus 1 can determine from the read image data whether the original is a normal original or a laminated original, and can cut out an area corresponding to the normal original or the laminated original.

なお、画像読取装置1は、通常原稿を読み取るための「通常モード」と、通常原稿およびラミネート原稿の両方を読み取るための「ラミネート原稿モード」とを、動作モードとして有してもよい。この画像読取装置1は、例えばユーザーにより選択された動作モードで動作すればよい。この画像読取装置1は、「ラミネート原稿モード」が選択された場合に図2に示すフローチャートを実行する。一方、この画像読取装置1は、「通常モード」が選択された場合、ステップS5〜ステップS8を省略し、ステップS1〜S4、S9、S10の処理を実行すればよい。   The image reading apparatus 1 may have a “normal mode” for reading a normal document and a “laminated document mode” for reading both a normal document and a laminated document as operation modes. The image reading apparatus 1 may operate in the operation mode selected by the user, for example. The image reading apparatus 1 executes the flowchart shown in FIG. 2 when the “laminated original mode” is selected. On the other hand, when the "normal mode" is selected, the image reading apparatus 1 may omit steps S5 to S8 and execute steps S1 to S4, S9, and S10.

図3は、ラミネート原稿の切り出しを説明する図である。   FIG. 3 is a diagram for explaining cutting out of a laminated document.

図3(A)は、ラミネート原稿を読み取った場合の読取画像データ100を示している。読取画像データ100は、ラミネート原稿の原稿本体に対応する領域120と、原稿本体の周囲のフィルムに対応する領域130と、背景に対応する領域140とを含んでいる。領域130は、光透過性が高いため、背景とほぼ同じ色で読み取られる。そのため、図2のステップS2の閾値判定処理は、領域120および領域130を含む領域を原稿領域として検出することはできず、領域120を原稿領域として検出する。   FIG. 3A shows read image data 100 when a laminated original is read. The read image data 100 includes an area 120 corresponding to the original body of the laminated original, an area 130 corresponding to the film around the original body, and an area 140 corresponding to the background. Since the region 130 has high light transmittance, it is read in almost the same color as the background. Therefore, the threshold value determination process in step S2 in FIG. 2 cannot detect the area including the areas 120 and 130 as the original area, but detects the area 120 as the original area.

図3(B)は、読取画像データ100の2値のエッジ画像データ100Eを示している。エッジ画像データ100Eは、領域120のエッジ領域120Eと、領域130のエッジ領域130Eとを含んでいる。領域130の外縁は、例えば、フィルムの影などが発生しており、背景との輝度の変化が急峻に表れる。そのため、図2のステップS6のエッジ検出処理は、領域130の外縁をエッジとして検出することができる。また、図2のステップS8の矩形検出処理は、エッジ領域130Eを含む矩形領域を特定することができる。   FIG. 3B shows binary edge image data 100E of the read image data 100. The edge image data 100E includes an edge area 120E of the area 120 and an edge area 130E of the area 130. At the outer edge of the region 130, for example, a film shadow or the like is generated, and a change in luminance with the background appears sharply. Therefore, the edge detection process of step S6 of FIG. 2 can detect the outer edge of the area 130 as an edge. In addition, the rectangular area detection process of step S8 in FIG. 2 can specify a rectangular area including the edge area 130E.

図3(C)は、読取画像データ100から切り出されたラミネート原稿に対応する画像データ150を示している。画像データ150は、ラミネート原稿の原稿本体に対応する領域120と、原稿本体の周囲のフィルムに対応する領域130とを含んでいる。図2のステップS10の切り出し処理は、エッジ検出結果を用いて特定された矩形領域(エッジ領域130E)に基づいて、読取画像データ100から画像データ150を切り出すことができる。   FIG. 3C shows the image data 150 corresponding to the laminated original cut out from the read image data 100. The image data 150 includes an area 120 corresponding to the original body of the laminated original and an area 130 corresponding to the film around the original body. The cutout process of step S10 of FIG. 2 can cut out the image data 150 from the read image data 100 based on the rectangular area (edge area 130E) specified by using the edge detection result.

以上、本発明の第1実施形態について説明した。例えば、本実施形態に係る画像読取装置1は、読み取った原稿が通常原稿であるかラミネート原稿であるかを、検出した原稿に対応する第1の領域(通常原稿、又はラミネート原稿の原稿本体)のサイズと基準縦横サイズとを比較することにより判定する。また、画像読取装置1は、読み取った原稿がラミネート原稿である場合には、エッジ検出処理により原稿本体およびその周囲部分に対応する領域を第2の領域(ラミネート原稿の原稿本体およびその周囲部分)として検出する。これにより、画像読取装置1は、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置1は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。ラミネート原稿の原稿本体のみを切り出すのではなく、周囲部分を含む領域を切り出すことで、誤った領域を切り出すのを防ぐことができる。   The first embodiment of the present invention has been described above. For example, in the image reading apparatus 1 according to the present embodiment, whether the read original is a normal original or a laminated original is detected by the first area (the original body of the normal original or the laminated original) corresponding to the detected original. The size is determined by comparing the size with the standard vertical and horizontal sizes. Further, when the read original is a laminated original, the image reading apparatus 1 sets the area corresponding to the original main body and its peripheral portion to the second area (the original main body of the laminated original and its peripheral portion) by the edge detection processing. To detect as. As a result, the image reading apparatus 1 can accurately determine the type of document (normal document or laminated document). Further, when the read document is a laminated document, the image reading apparatus 1 can accurately cut out the document body included in the laminated document and the peripheral portion thereof. By cutting out not only the original body of the laminated original but also the area including the peripheral portion, it is possible to prevent the wrong area from being cut out.

また例えば、画像読取装置1は、ADF31のセンサー出力を用いて原稿の縦サイズを特定し、画像処理により原稿の横サイズを特定する。これにより、縦横サイズを画像処理で特定する場合と比べ、画像読取装置1は、より短時間で原稿の縦横サイズを特定することができる。   Further, for example, the image reading device 1 specifies the vertical size of the document using the sensor output of the ADF 31, and specifies the horizontal size of the document by image processing. As a result, the image reading apparatus 1 can specify the vertical and horizontal sizes of the document in a shorter time than in the case where the vertical and horizontal sizes are specified by image processing.

また例えば、画像読取装置1は、「通常モード」と「ラミネート原稿モード」を有し、「ラミネート原稿モード」が選択されている場合には、読み取られた原稿の種類(通常原稿又はラミネート原稿)に応じた処理を行う。画像読取装置1は、ユーザーによって通常原稿がセットされてもラミネート原稿がセットされても、適切に画像データを切り出すことができる。   Further, for example, the image reading apparatus 1 has a “normal mode” and a “laminated original mode”, and when the “laminated original mode” is selected, the type of the original read (normal original or laminated original). Perform processing according to. The image reading apparatus 1 can appropriately cut out image data regardless of whether a user sets a normal document or a laminated document.

また例えば、画像読取装置1は、閾値判定処理により第1の領域を検出し、エッジ検出処理により第2の領域を検出する。これにより、画像読取装置1は、通常原稿についてはエッジ検出処理より処理量の少ない画像処理で画像データを切り出すことができる。また、画像読取装置1は、ラミネート原稿については領域検出のために精度の高い画像処理を実行できる。   Further, for example, the image reading device 1 detects the first area by the threshold value determination processing and detects the second area by the edge detection processing. As a result, the image reading apparatus 1 can cut out image data of a normal document by image processing that requires less processing than the edge detection processing. Further, the image reading apparatus 1 can execute highly accurate image processing for area detection on a laminated document.

[第2実施形態]
第2実施形態に係る画像読取装置1は、第1実施形態と異なる処理手順で読取画像データから原稿を切り出す。以下、第1実施形態と異なる点を中心に説明する。
[Second Embodiment]
The image reading apparatus 1 according to the second embodiment cuts out a document from the read image data according to a processing procedure different from that of the first embodiment. Hereinafter, the points different from the first embodiment will be mainly described.

図4は、本発明の第2実施形態に係る画像読取装置の一例を示すフローチャートである。   FIG. 4 is a flowchart showing an example of the image reading apparatus according to the second embodiment of the present invention.

ステップS11〜S14の処理は、図2のステップS1〜S4と同様である。なお、ステップS14で検出される矩形領域を「第1の領域」と呼ぶ。   The processes of steps S11 to S14 are the same as steps S1 to S4 of FIG. The rectangular area detected in step S14 is called a "first area".

ステップS15〜S17の処理は、図2のステップS6〜S8と同様である。なお、ステップS17で検出される矩形領域を「第2の領域」と呼ぶ。   The processes of steps S15 to S17 are the same as steps S6 to S8 of FIG. The rectangular area detected in step S17 is called a "second area".

それから、原稿種別判定部223は、第2の領域のサイズが第1の領域のサイズよりも大きいかどうかを判定する(ステップS18)。ラミネート原稿が読み取られた場合、第2の領域のサイズは第1の領域のサイズよりも大きい。一方、通常原稿が読み取られた場合、第2の領域のサイズは第1の領域のサイズと同じかより小さい。   Then, the document type determination unit 223 determines whether the size of the second area is larger than the size of the first area (step S18). When the laminated original is read, the size of the second area is larger than the size of the first area. On the other hand, when a normal document is read, the size of the second area is equal to or smaller than the size of the first area.

第2の領域のサイズが第1の領域のサイズよりも大きい場合(ステップS18:YES)、切り出し部224は、ラミネート原稿用の処理を行う(ステップS19)。例えば、切り出し部224は、ラミネート原稿の画像データの画質が向上するように所定の画像処理を実行する。ステップS19で実行する処理は、ラミネート原稿に適した処理であれば、特に限定されない。   When the size of the second area is larger than the size of the first area (step S18: YES), the cutout unit 224 performs processing for a laminated document (step S19). For example, the cutout unit 224 executes predetermined image processing so that the image quality of the image data of the laminated document is improved. The process executed in step S19 is not particularly limited as long as it is a process suitable for a laminated document.

第2の領域のサイズが第1の領域のサイズと同じかより小さい場合(ステップS18:NO)、通常原稿用の設定を行う(ステップS20)。例えば、切り出し部224は、通常原稿の画像データの画質が向上するように所定の画像処理を実行する。ステップS20で実行する処理は、通常原稿に適した処理であれば、特に限定されない。   If the size of the second area is equal to or smaller than the size of the first area (step S18: NO), the normal document setting is performed (step S20). For example, the cutout unit 224 executes predetermined image processing so that the image quality of the image data of the normal document is improved. The process executed in step S20 is not particularly limited as long as it is a process suitable for a normal document.

ステップS19又はステップS20の後、切り出し部224は、傾き補正および切り出しを実行する(ステップS21〜S22)。ステップS21〜S22の処理は、図2のステップS9〜S10の処理と同様である。   After step S19 or step S20, the cutout unit 224 performs tilt correction and cutout (steps S21 to S22). The processing of steps S21 to S22 is the same as the processing of steps S9 to S10 in FIG.

なお、画像読取装置1は、上述の「通常モード」と「ラミネート原稿モード」とを、動作モードとして有してもよい。この画像読取装置1は、「ラミネート原稿モード」が選択された場合に図4に示すフローチャートを実行する。一方、この画像読取装置1は、「通常モード」が選択された場合、ステップS15〜ステップS19を省略し、ステップS11〜S14、S20〜S22の処理を実行すればよい。   The image reading apparatus 1 may have the above-mentioned “normal mode” and “laminating original mode” as operation modes. The image reading apparatus 1 executes the flowchart shown in FIG. 4 when the “laminated original mode” is selected. On the other hand, when the "normal mode" is selected, the image reading apparatus 1 may omit steps S15 to S19 and execute steps S11 to S14 and S20 to S22.

以上、本発明の第2実施形態について説明した。例えば、本実施形態に係る画像読取装置1は、読み取った原稿が通常原稿であるかラミネート原稿であるかを、検出した原稿に対応する第1の領域(通常原稿、又はラミネート原稿の原稿本体)のサイズと、エッジ検出処理により検出したラミネート原稿に対応する第2の領域(ラミネート原稿の原稿本体およびその周囲部分)のサイズとを比較することにより判定する。これにより、画像読取装置1は、基準縦横サイズを用いずに読取画像データの画像特徴に基づいて、原稿の種類(通常原稿又はラミネート原稿)を精度よく判定することができる。また、画像読取装置1は、読み取った原稿がラミネート原稿である場合、ラミネート原稿に含まれる原稿本体およびその周囲部分を精度よく切り出すことができる。ラミネート原稿の原稿本体のみを切り出すのではなく、周囲部分を含む領域を切り出すことで、誤った領域を切り出すのを防ぐことができる。   The second embodiment of the present invention has been described above. For example, in the image reading apparatus 1 according to the present embodiment, whether the read original is a normal original or a laminated original is detected by the first area (the original body of the normal original or the laminated original) corresponding to the detected original. Is compared with the size of the second area (the original body of the laminated original and its peripheral portion) corresponding to the laminated original detected by the edge detection processing. As a result, the image reading apparatus 1 can accurately determine the type of original (normal original or laminated original) based on the image characteristics of the read image data without using the reference vertical and horizontal sizes. Further, when the read document is a laminated document, the image reading apparatus 1 can accurately cut out the document body included in the laminated document and the peripheral portion thereof. By cutting out not only the original body of the laminated original but also the area including the peripheral portion, it is possible to prevent the wrong area from being cut out.

本発明は、上述の実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施することが可能である。例えば、上記の各実施形態には、下記のような変形を加えてもよい。また、実施形態及び各変形例は、適宜2つ以上を組み合わせてもよい。   The present invention is not limited to the above-described embodiments, and can be implemented in various modes without departing from the scope of the invention. For example, the following modifications may be added to the above embodiments. Moreover, two or more may be combined suitably with embodiment and each modification.

例えば、画像読取装置1は、原稿台に置かれた通常原稿又はラミネート原稿を読み取ってもよい。この場合、第1の領域検出部221は、例えば、読取画像データに対して閾値判定処理を実行した結果に基づいて、原稿の縦サイズを特定すればよい。   For example, the image reading device 1 may read a normal document or a laminated document placed on a document table. In this case, the first area detection unit 221 may specify the vertical size of the document based on, for example, the result of executing the threshold value determination process on the read image data.

上述の実施形態で説明した画像読取装置1の構成は、その構成を理解容易にするために主な処理内容に応じて分類したものである。構成要素の分類の仕方や名称によって、本願発明が制限されることはない。画像読取装置1の構成は、処理内容に応じて、さらに多くの構成要素に分類することもできる。また、1つの構成要素がさらに多くの処理を実行するように分類することもできる。また、各構成要素の処理は、1つのハードウェアで実行されてもよいし、複数のハードウェアで実行されてもよい。また、各構成要素の処理又は機能の分担は、本発明の目的及び効果を達成できるのであれば、上述したものに限られない。   The configurations of the image reading device 1 described in the above-described embodiment are classified according to the main processing contents in order to facilitate understanding of the configuration. The present invention is not limited by the classification method and names of the constituent elements. The configuration of the image reading device 1 can be classified into more components according to the processing content. Also, one component can be classified so as to perform more processing. The processing of each component may be executed by one piece of hardware or a plurality of pieces of hardware. Further, the sharing of the processing or the function of each component is not limited to that described above as long as the object and effect of the present invention can be achieved.

上述の実施形態で説明した処理単位は、画像読取装置1の処理を理解容易にするために、主な処理内容に応じて分割したものである。処理単位の分割の仕方や名称によって、本願発明が制限されることはない。画像読取装置1の処理は、処理内容に応じて、さらに多くの処理単位に分割することもできる。また、1つの処理単位がさらに多くの処理を含むように分割することもできる。さらに、上記の処理順序も、図示した例に限られるものではない。   The processing unit described in the above embodiment is divided according to the main processing contents in order to facilitate understanding of the processing of the image reading apparatus 1. The invention of the present application is not limited by the division method or name of the processing unit. The processing of the image reading apparatus 1 can be divided into a larger number of processing units according to the processing content. It is also possible to divide one processing unit so as to include more processing. Furthermore, the above processing order is not limited to the illustrated example.

本発明は、画像読取装置としてだけでなく、画像処理方法、画像処理プログラム、画像処理プログラムを格納した記録媒体、画像読取システム等のその他の形態によっても提供することができる。   The present invention can be provided not only as an image reading device but also in other forms such as an image processing method, an image processing program, a recording medium storing the image processing program, and an image reading system.

1…画像読取装置、2…制御部、3…読取部、4…表示部、5…入力部、6…通信部、21…画像取得部、22…画像処理部、23…画像出力部、100…読取画像データ、100E…エッジ画像データ、120…領域、120E…エッジ領域、130…領域、130E…エッジ領域、140…領域、150…画像データ、221…第1の領域検出部、222…第2の領域検出部、223…原稿種別判定部、224…切り出し部 DESCRIPTION OF SYMBOLS 1 ... Image reading device, 2 ... Control part, 3 ... Reading part, 4 ... Display part, 5 ... Input part, 6 ... Communication part, 21 ... Image acquisition part, 22 ... Image processing part, 23 ... Image output part, 100. ... read image data, 100E ... edge image data, 120 ... area, 120E ... edge area, 130 ... area, 130E ... edge area, 140 ... area, 150 ... image data, 221 ... first area detector 222, ... 2 area detection unit 223 ... manuscript type determination unit 224 ... cutout unit

Claims (6)

原稿をスキャンして読取画像データを生成する読取部と、
前記読取画像データを取得する画像取得部と、
前記読取画像データ中の前記原稿に対応する第1の領域を検出する第1の領域検出部と、
前記第1の領域の縦横サイズと所定の基準縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定する原稿種別判定部と、
前記原稿がラミネート原稿と判定された場合に、前記読取画像データのエッジを検出し、前記読取画像データ中の前記ラミネート原稿に対応する第2の領域を検出する第2の領域検出部と、
前記原稿が前記ラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出す切り出し部とを有する画像読取装置であって、
通常モードとラミネート原稿モードのいずれかを選択可能であり、
前記通常モードが選択されている場合、
前記第1の領域検出部は、前記読取画像データ中の前記第1の領域を検出し、
前記切り出し部は、前記読取画像データから前記第1の領域の画像データを切り出し、
前記ラミネート原稿モードが選択されている場合、
前記第1の領域検出部は、前記読取画像データ中の前記第1の領域を検出し、
前記原稿種別判定部は、前記原稿が前記ラミネート原稿であるかどうかを判定し、
前記原稿が前記ラミネート原稿と判定された場合に、前記第2の領域検出部は、前記読取画像データ中の前記第2の領域を検出し、
前記原稿が前記ラミネート原稿と判定された場合に、前記切り出し部は、前記読取画像データから前記第2の領域の画像データを切り出し、
前記原稿が前記ラミネート原稿でないと判定された場合に、前記切り出し部は、前記読取画像データから前記第1の領域の画像データを切り出す画像読取装置。
A scanning unit that scans a document and generates scanned image data,
An image acquisition unit that acquires the read image data,
A first area detection unit that detects a first area corresponding to the document in the read image data;
A document type determination unit that determines whether the document is a laminated document by comparing the vertical and horizontal sizes of the first area with a predetermined reference vertical and horizontal size;
A second area detection unit that detects an edge of the read image data and detects a second area in the read image data corresponding to the laminated original when the original is determined to be a laminated original ;
Wherein when the document is judged the laminate original, an image reading apparatus and a cutout portion that cuts out image data of the second area from the read image data,
You can select either normal mode or laminated original mode,
When the normal mode is selected,
The first area detection unit detects the first area in the read image data,
The cutout unit cuts out the image data of the first region from the read image data,
When the laminated original mode is selected,
The first area detection unit detects the first area in the read image data,
The document type determination unit determines whether the document is the laminated document,
When the original is determined to be the laminated original, the second area detection unit detects the second area in the read image data,
When the document is determined to be the laminated document, the cutout unit cuts out the image data of the second area from the read image data,
An image reading device that cuts out the image data of the first area from the read image data when the original is determined not to be the laminated original.
原稿をスキャンして読取画像データを生成する読取部と、
前記読取画像データを取得する画像取得部と、
前記読取画像データ中の前記原稿に対応する第1の領域を検出する第1の領域検出部と、
前記読取画像データのエッジを検出し、前記読取画像データ中のラミネート原稿に対応する第2の領域を検出する第2の領域検出部と、
前記第1の領域の縦横サイズと前記第2の領域の縦横サイズとを比較して、前記原稿が前記ラミネート原稿であるかどうかを判定する原稿種別判定部と、
前記原稿が前記ラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出す切り出し部とを有する
画像読取装置。
A scanning unit that scans a document and generates scanned image data,
An image acquisition unit that acquires the read image data,
A first area detection unit that detects a first area corresponding to the document in the read image data;
A second area detection unit that detects an edge of the read image data and detects a second area corresponding to the laminated document in the read image data;
Said first and vertical and horizontal sizes of the region by comparing the vertical and horizontal size of the second area to determine a document type determining unit whether said document is said laminated document,
Wherein when the document is judged the laminate original image reading device having a cutout portion that cuts out image data of the second area from the read image data.
請求項1又は2に記載の画像読取装置であって、
前記原稿を前記読取部へ送るとともに、前記原稿の始端および終端を検出する自動給紙装置を有し、
前記第1の領域検出部は、前記検出された前記原稿の始端および終端に基づいて前記縦サイズを決定し、前記読取画像データに基づいて前記横サイズを決定する
画像読取装置。
The image reading apparatus according to claim 1 or 2 , wherein
An automatic paper feeding device that detects the start and end of the original while sending the original to the reading unit,
The image reading device, wherein the first area detection unit determines the vertical size based on the detected start and end of the document and the horizontal size based on the read image data.
請求項1〜3のいずれか一項に記載の画像読取装置であって、
前記第1の領域検出部は、前記読取画像データに対して閾値判定処理を施した画像データを生成し、当該画像データに対して角度検出処理および矩形検出処理を施すことにより、前記第1の領域を検出し、
前記第2の領域検出部は、前記読取画像データにエッジ検出処理を施して得られるエッジ画像データに対して角度検出処理および矩形検出処理を施すことにより、前記第2の領域を検出する
画像読取装置。
The image reading apparatus according to any one of claims 1 to 3,
The first area detection unit generates image data obtained by performing threshold value determination processing on the read image data, and performs angle detection processing and rectangle detection processing on the image data to obtain the first area. Detect the area,
The second area detection unit performs image detection for detecting the second area by performing angle detection processing and rectangle detection processing on edge image data obtained by performing edge detection processing on the read image data. apparatus.
画像読取装置の画像処理方法であって、
原稿をスキャンして読取画像データを生成するステップと、
前記読取画像データを取得するステップと、
通常モードとラミネート原稿モードのいずれかを選択するステップと、
前記通常モードが選択されている場合、
前記読取画像データ中の前記原稿に対応する第1の領域を検出し、前記読取画像データから前記第1の領域の画像データを切り出すステップと、
前記ラミネート原稿モードが選択されている場合、
前記読取画像データ中の前記第1の領域を検出するステップと、
前記第1の領域の縦横サイズと所定の基準縦横サイズとを比較して、前記原稿がラミネート原稿であるかどうかを判定するステップと、
前記原稿が前記ラミネート原稿と判定された場合に、前記読取画像データのエッジを検出し、前記読取画像データ中の前記ラミネート原稿に対応する第2の領域を検出するステップと、
前記原稿が前記ラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出すステップと、
前記原稿が前記ラミネート原稿でないと判定された場合に、前記読取画像データから前記第1の領域の画像データを切り出すステップと
を含む画像処理方法。
An image processing method for an image reading device, comprising:
A step of scanning a document to generate read image data,
Acquiring the read image data,
Selecting either normal mode or laminated original mode,
When the normal mode is selected,
Detecting a first area corresponding to the original in the read image data, and cutting out image data of the first area from the read image data;
When the laminated original mode is selected,
Detecting the first region in the read image data,
Comparing the vertical and horizontal sizes of the first area with a predetermined reference vertical and horizontal size to determine whether the original is a laminated original;
Detecting the edge of the read image data and detecting a second area in the read image data corresponding to the laminated document when the document is determined to be the laminated document.
Cutting out the image data of the second area from the read image data when the original is determined to be the laminated original;
Cutting out the image data of the first area from the read image data when it is determined that the original is not the laminated original.
An image processing method including.
画像読取装置の画像処理方法であって、
原稿をスキャンして読取画像データを生成するステップと、
前記読取画像データを取得するステップと、
前記読取画像データ中の前記原稿に対応する第1の領域を検出するステップと、
前記読取画像データのエッジを検出し、前記読取画像データ中のラミネート原稿に対応する第2の領域を検出するステップと、
前記第1の領域の縦横サイズと前記第2の領域の縦横サイズとを比較して、前記原稿が前記ラミネート原稿であるかどうかを判定するステップと、
前記原稿がラミネート原稿と判定された場合に、前記読取画像データから前記第2の領域の画像データを切り出すステップと
を含む画像処理方法。
An image processing method for an image reading device, comprising:
A step of scanning a document to generate read image data,
Acquiring the read image data,
Detecting a first area corresponding to the original in the read image data;
Detecting an edge of the read image data and detecting a second area corresponding to the laminated document in the read image data;
By comparing the vertical and horizontal sizes of the first region height and width and the second region, the determining whether the document is said laminated document,
A step of cutting out the image data of the second area from the read image data when the original is determined to be a laminated original.
JP2016067508A 2016-03-30 2016-03-30 Image reading apparatus and image processing method Active JP6680038B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016067508A JP6680038B2 (en) 2016-03-30 2016-03-30 Image reading apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016067508A JP6680038B2 (en) 2016-03-30 2016-03-30 Image reading apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2017183973A JP2017183973A (en) 2017-10-05
JP6680038B2 true JP6680038B2 (en) 2020-04-15

Family

ID=60008675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016067508A Active JP6680038B2 (en) 2016-03-30 2016-03-30 Image reading apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP6680038B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227852A (en) * 2007-03-12 2008-09-25 Canon Inc Image reader and image reading method
JP6047988B2 (en) * 2012-08-07 2016-12-21 セイコーエプソン株式会社 Image processing apparatus and image processing method
JP6091203B2 (en) * 2012-12-17 2017-03-08 キヤノン電子株式会社 Image reading apparatus, sheet conveying apparatus, and image reading system

Also Published As

Publication number Publication date
JP2017183973A (en) 2017-10-05

Similar Documents

Publication Publication Date Title
US8335010B2 (en) Image processing apparatus, image forming apparatus, image processing method, and recording medium
US8406570B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, and recording medium
US8102575B2 (en) Image processing apparatus and method
US7986832B2 (en) Image combining apparatus and control method for the same
US20160191741A1 (en) Scanner
JP6249240B2 (en) Image processing device
US9413914B2 (en) Image reading control apparatus, image reading apparatus, and image reading control method
US8285043B2 (en) Image processing apparatus and image processing method
US11436733B2 (en) Image processing apparatus, image processing method and storage medium
US9648207B2 (en) Smart copy apparatus
JP6680038B2 (en) Image reading apparatus and image processing method
US11343406B2 (en) Image reading apparatus, image reading system, image reading method, and non-transitory computer-readable storage medium storing program
US8368965B2 (en) Image cropping process
US9886648B2 (en) Image processing device generating arranged image data representing arranged image in which images are arranged according to determined relative position
JP6274175B2 (en) Image reading apparatus and image forming apparatus
US8781166B2 (en) Image processing apparatus and image processing program
JP6579388B2 (en) Image reading device
JP2009049788A (en) Image information processing program, computer readable recording medium recording same, and document reader
JP2014011573A (en) Image reading device
JP6288514B2 (en) Image reading device
JP2021153276A (en) Image processing apparatus
JP6081874B2 (en) Image reading device
JP2009271788A (en) Image processor
JP2008141384A (en) Image processor and image processing program
JP2006166296A (en) Image scanner, image position deviation detecting method, and storage medium

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180907

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181120

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190219

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191211

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200204

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200302

R150 Certificate of patent or registration of utility model

Ref document number: 6680038

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150