JP2010109944A - Image reading unit - Google Patents

Image reading unit Download PDF

Info

Publication number
JP2010109944A
JP2010109944A JP2008282474A JP2008282474A JP2010109944A JP 2010109944 A JP2010109944 A JP 2010109944A JP 2008282474 A JP2008282474 A JP 2008282474A JP 2008282474 A JP2008282474 A JP 2008282474A JP 2010109944 A JP2010109944 A JP 2010109944A
Authority
JP
Japan
Prior art keywords
image
data amount
total
unit
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008282474A
Other languages
Japanese (ja)
Inventor
Hiroyuki Tsuzuki
広行 都筑
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.)
Oki Electric Industry Co Ltd
Oki Data Systems Co Ltd
Original Assignee
Oki Data Corp
Oki Data Systems Co Ltd
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 Oki Data Corp, Oki Data Systems Co Ltd filed Critical Oki Data Corp
Priority to JP2008282474A priority Critical patent/JP2010109944A/en
Publication of JP2010109944A publication Critical patent/JP2010109944A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Storing Facsimile Image Data (AREA)
  • Image Input (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reading unit storing image data in all originals to be read in a memory unit. <P>SOLUTION: The image reading unit to read plural original images is equipped with: an image reader to read the original images; the memory unit to store the image read out by the image reader; a vacant capacity detector to detect a vacant capacity in the memory unit; and a total data value calculator in which the image reader reads the original image in accordance with a predetermined reading condition, and calculates the predictive value of the whole image data quantity in the total originals on the basis of the image data in the original. The image reader compares the vacant capacity in the memory unit detected by the vacant capacity detector, with the predictive value of the whole image data quantity calculated by the total data value calculator. When the predictive value is determined to exceed the vacant capacity, the image reader reads the images in all originals in accordance with the reading condition which has lower image quality than the predetermined reading condition. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、複数枚の原稿の画像データを読取り、その画像データを記憶領域に格納する画像読取装置に関する。   The present invention relates to an image reading apparatus that reads image data of a plurality of documents and stores the image data in a storage area.

従来の画像読取装置は、自動給送された原稿を1頁ずつ読取り、読取った画像データを所定の圧縮レベルで圧縮処理後にメモリに記録しつつメモリの容量の残量を検出し、その残量が規定値以下と判定された場合、メモリに記録されている画像データを伸長して複写出力させ、メモリの残量を増大させて次頁以降の原稿の画像データをメモリに記憶させるようにしている(例えば、特許文献1参照)。
特開2002−320057号公報(段落「0015」〜段落「0018」、図5)
A conventional image reading apparatus reads an automatically fed document one page at a time, detects the remaining capacity of the memory while recording the read image data in a memory after compression processing at a predetermined compression level, and the remaining capacity Is determined to be less than or equal to the specified value, the image data recorded in the memory is expanded and copied and output, and the remaining amount of memory is increased so that the image data of the document on and after the next page is stored in the memory. (For example, refer to Patent Document 1).
JP 2002-320057 A (paragraph “0015” to paragraph “0018”, FIG. 5)

しかしながら、上述した従来の技術においては、読取った画像データを記憶するメモリ等の記憶装置の記憶領域残量が規定値以下と判定された場合、メモリに記憶されている画像データを伸長して複写出力し、メモリの残量を増大させて次頁以降の原稿の画像データをメモリに記憶させるようにしているため、読取るすべての原稿の画像データをメモリ(例えば、USB(Universal Serial Bus)メモリのような外部記憶装置)に記憶させることができないという問題がある。   However, in the above-described conventional technique, when it is determined that the remaining storage area of a storage device such as a memory for storing the read image data is equal to or less than a specified value, the image data stored in the memory is expanded and copied. Since the output and the remaining amount of the memory are increased so that the image data of the originals of the next page and thereafter are stored in the memory, the image data of all the originals to be read are stored in a memory (for example, a USB (Universal Serial Bus) memory). There is a problem that it cannot be stored in such an external storage device.

また、操作者は読取るすべての原稿の画像データをメモリに記憶させることができるか予測できず、さらに記憶させることができない場合、原稿の読取り設定をどのように変更すればすべての原稿の画像データをメモリに記憶させることができるのかを知ることができず、ユーザの利便性を損ねてしまうという問題がある。
本発明は、このような問題を解決することを課題とし、読取るすべての原稿の画像データを記憶装置に記憶させることができる画像読取装置を提供することを目的とする。
Further, the operator cannot predict whether the image data of all the originals to be read can be stored in the memory, and if it cannot be further stored, the image data of all the originals can be changed by changing how the originals are read. There is a problem that it is impossible to know whether or not it can be stored in the memory, and the convenience of the user is impaired.
An object of the present invention is to provide an image reading apparatus that can store image data of all originals to be read in a storage device.

そのため、本発明は、複数枚の原稿の画像を読取る画像読取装置において、原稿の画像を読取る画像読取部と、前記画像読取部で読取った画像を記憶させる記憶装置と、前記記憶装置の空容量を検出する空容量検出部と、前記画像読取部が所定の読取条件にしたがって原稿の画像を読取り、その原稿の画像データに基づいて全原稿の総画像データ量の予測値を算出する総データ量算出部とを設け、前記空容量検出部で検出された前記記憶装置の空容量と前記総データ量算出部で算出された総画像データ量の予測値とを比較し、前記予測値が前記空容量を超えると判定したとき、前記画像読取部が、前記所定の読取条件より画質を低下させた読取条件にしたがって全原稿の画像を読取るようにしたことを特徴とする。   Therefore, the present invention provides an image reading apparatus that reads an image of a plurality of documents, an image reading unit that reads an image of the document, a storage device that stores an image read by the image reading unit, and an empty capacity of the storage device And a total data amount for calculating an estimated value of the total image data amount of all the originals based on the image data of the originals. A calculation unit, and compares the free space of the storage device detected by the free space detection unit with the predicted value of the total image data amount calculated by the total data amount calculation unit, and the predicted value is When it is determined that the capacity is exceeded, the image reading unit reads an image of all documents in accordance with a reading condition in which image quality is lower than the predetermined reading condition.

このようにした本発明は、読取ったすべての原稿の画像データを記憶装置に記憶させることができるという効果が得られる。   According to the present invention as described above, it is possible to store the image data of all the read originals in the storage device.

以下、図面を参照して本発明による画像読取装置の実施例を説明する。   Embodiments of an image reading apparatus according to the present invention will be described below with reference to the drawings.

本発明の画像読取装置は、装着されたUSBメモリの空き領域に複数枚からなる原稿をスキャンした画像データを書込むとき、第1の読取モードで読込んだ画像データ量から全原稿を読込んだ場合の総データ量を予測し、予測した総データ量がUSBメモリの空容量を超えると判定した場合、USBメモリの空容量を超えないと予測される第2の読取モードで全原稿を読込むようにしたものである。   The image reading apparatus of the present invention reads all originals from the amount of image data read in the first reading mode when writing image data obtained by scanning a plurality of originals in an empty area of a mounted USB memory. If the total data amount is predicted and it is determined that the predicted total data amount exceeds the free space of the USB memory, the entire original is read in the second reading mode that is predicted not to exceed the free space of the USB memory. It is what I made it.

図1は第1の実施例における画像読取装置の機能ブロック図、図2は第1の実施例における画像読取装置の構成を示すブロック図、図3は第1の実施例における画像読取装置の制御系を示すブロック図である。
図2において、1は画像読取装置としての複合機である。この複合機1は、搬送される原稿の画像データを読取るイメージセンサとしてのスキャナ2、スキャナ2で読取る1枚または複数枚の原稿を載置するとともにその原稿を1枚ずつ分離して繰り出すADF(Auto Documennt Feeder)3、表示手段としての液晶ディスプレイ、操作者の操作を受付けるためのタッチパネルや各種スイッチ等を備えた操作パネル4、スキャナ2で読取った画像データやネットワークインタフェースを介して受信した印刷データを印刷するプリンタ5、プリンタ5で印刷する印刷用紙を収容する給紙トレイ6、およびUSB規格の通信を行うためのUSBインタフェース7を備えている。
FIG. 1 is a functional block diagram of the image reading apparatus in the first embodiment, FIG. 2 is a block diagram showing a configuration of the image reading apparatus in the first embodiment, and FIG. 3 is a control of the image reading apparatus in the first embodiment. It is a block diagram which shows a system.
In FIG. 2, reference numeral 1 denotes a multifunction machine as an image reading apparatus. This multifunction device 1 has a scanner 2 as an image sensor for reading image data of a conveyed document, and one or a plurality of documents to be read by the scanner 2, and separates and feeds out the documents one by one. Auto Document Feeder) 3, a liquid crystal display as a display means, an operation panel 4 having a touch panel and various switches for accepting an operator's operation, image data read by the scanner 2, and print data received via a network interface Printer 5 for printing, a paper feed tray 6 for storing printing paper to be printed by the printer 5, and a USB interface 7 for performing USB standard communication.

本実施例では、画像読取装置を複合機として説明するが、それに限られるものでなくスキャナ2、ADF3、操作パネル4、およびUSBインタフェース7を有するものであれば、ファクシミリやスキャナ等であってもよい。
図3において、10はCPU(Central Processing Unit)等の制御手段および演算手段としての制御部であり、11は揮発性メモリや不揮発性メモリで構成された記憶部である。この制御部10および記憶部11は、スキャナ2、操作パネル4、プリンタ5、USBインタフェース7、外部装置との間で通信を行うネットワークインタフェース12、およびスキャナ2で読取った画像データを処理する画像処理ASIC(Application Specific Integrated Circuit)13とデータバス14を介して接続されており、記憶部11に記憶された制御プログラムに基づいて制御部10が複合機1全体を制御する。
In the present embodiment, the image reading apparatus is described as a multifunction peripheral. However, the present invention is not limited to this, and any apparatus having a scanner 2, an ADF 3, an operation panel 4, and a USB interface 7 may be a facsimile or a scanner. Good.
In FIG. 3, reference numeral 10 denotes a control unit such as a CPU (Central Processing Unit) and a calculation unit, and 11 denotes a storage unit composed of a volatile memory or a nonvolatile memory. The control unit 10 and the storage unit 11 include the scanner 2, the operation panel 4, the printer 5, the USB interface 7, the network interface 12 that communicates with an external device, and image processing that processes image data read by the scanner 2. An ASIC (Application Specific Integrated Circuit) 13 is connected to the data bus 14, and the control unit 10 controls the entire multifunction device 1 based on a control program stored in the storage unit 11.

図1において、複合機1は操作パネル制御部20、画像読取部21、画像データ記憶部22、データ形式変換部23、USBメモリ24、空容量検出部25、総ページ数格納部26、画像領域検出部27、ページデータ量算出部28、総データ量算出部29、データサイズ比較部30、および推奨設定算出部31の各機能ブロックで構成されている。
操作パネル制御部20は、液晶ディスプレイへの表示、タッチパネルおよびスイッチからの入力情報を取得する制御を行うものである。この操作パネル制御部20は、各種動作モードの設定値を管理するとともに各部へ処理開始指示を通知する制御を行う。
In FIG. 1, the multifunction device 1 includes an operation panel control unit 20, an image reading unit 21, an image data storage unit 22, a data format conversion unit 23, a USB memory 24, a free space detection unit 25, a total page number storage unit 26, and an image area. The functional block includes a detection unit 27, a page data amount calculation unit 28, a total data amount calculation unit 29, a data size comparison unit 30, and a recommended setting calculation unit 31.
The operation panel control unit 20 performs control for acquiring display on the liquid crystal display, and input information from the touch panel and the switch. The operation panel control unit 20 manages the set values of various operation modes and controls to notify each unit of a process start instruction.

画像読取部21は、スキャナ2およびADF3を制御してADF3に載置された複数枚の原稿の画像データ(RAWデータ)を原稿1枚毎に取得する制御を行うものである。
画像データ記憶部22は、画像読取部21が出力した画像データを記憶部11のメモリ領域に格納して記憶する。なお、画像データ記憶部22は、複合機1で読取ることができる定型用紙サイズのうち最大用紙サイズ、かつ複合機1がサポートする最高解像度、かつ複合機1がサポートする最高階調数で原稿の領域全体を読取ったときのADF3に載置された全原稿の画像データを非圧縮の状態で記憶部11に格納できるものとして構成されている。
The image reading unit 21 controls the scanner 2 and the ADF 3 so as to acquire image data (RAW data) of a plurality of documents placed on the ADF 3 for each document.
The image data storage unit 22 stores the image data output from the image reading unit 21 in the memory area of the storage unit 11. Note that the image data storage unit 22 stores the document with the maximum paper size among the standard paper sizes that can be read by the multifunction device 1, the highest resolution supported by the multifunction device 1, and the maximum number of gradations supported by the multifunction device 1. The image data of all documents placed on the ADF 3 when the entire area is read can be stored in the storage unit 11 in an uncompressed state.

データ形式変換部23は、画像データ記憶部22に記憶されている画像データ(RAWデータ)を取得して外部とやり取り可能なイメージフォーマットのファイルデータ(例えば、JPEG、PDF、TIFF、XPS画像形式のファイルデータ)に変換する変換部である。このため、データ形式変換部23は、データ変換機能の一部としてJPEG圧縮やCCITT圧縮等の圧縮機能を有している。この圧縮機能は、画像処理ASIC13によるハードウェア回路で実装している。   The data format conversion unit 23 acquires image data (RAW data) stored in the image data storage unit 22 and can exchange file data with an image format (for example, JPEG, PDF, TIFF, XPS image format). File data). Therefore, the data format conversion unit 23 has a compression function such as JPEG compression or CCITT compression as part of the data conversion function. This compression function is implemented by a hardware circuit by the image processing ASIC 13.

記憶装置としてのUSBメモリ24は、操作者により複合機1のUSBメモリインタフェース7に装着されたUSBメモリである。このUSBメモリ24は、データ形式変換部23のデータ出力経路と接続され、該出力データが格納されるように構成され、画像読取部21で読取った画像データを格納する。
空容量検出部25は、USBメモリ24の空容量を検出する検出部である。なお、USBメモリ24の空容量を検出するための制御方法は、公知の技術により検出するものとする。
The USB memory 24 as a storage device is a USB memory that is attached to the USB memory interface 7 of the multifunction device 1 by an operator. The USB memory 24 is connected to the data output path of the data format conversion unit 23 and configured to store the output data, and stores the image data read by the image reading unit 21.
The free capacity detection unit 25 is a detection unit that detects the free capacity of the USB memory 24. Note that a control method for detecting the free capacity of the USB memory 24 is detected by a known technique.

総ページ数格納部26は、操作者により入力され、操作パネル制御部20から通知されたスキャナ2で読取る原稿の総ページ数を記憶部11のメモリ領域に格納して記憶する。
画像領域検出部27は、画像データ記憶部22に格納された画像データをラスタスキャンのデータ順にデータを読み込んで画像データ中の真っ白でない矩形の画像領域、すなわち読取った原稿の画像の文字、図形または写真等が存在する画像領域を検出する検出部である。この画像領域検出部27は、検出結果として画像データ中の真っ白でない矩形の画像領域の上下左右のドット座標を示す画像領域情報を出力する。
The total page number storage unit 26 stores the total page number of the document read by the scanner 2 input by the operator and notified from the operation panel control unit 20 in the memory area of the storage unit 11.
The image area detection unit 27 reads the image data stored in the image data storage unit 22 in the order of raster scan data, and is a non-white rectangular image area in the image data, that is, a character, figure, or It is a detection part which detects the image area | region where a photograph etc. exist. The image area detection unit 27 outputs image area information indicating the upper, lower, left, and right dot coordinates of a non-white rectangular image area in the image data as a detection result.

ここで、画像領域検出部27が出力する画像領域情報の例を図7の第1の実施例における原稿の領域検出結果の説明図に基づいて説明する。
図7(a)および図7(b)は、画像領域検出部27が真っ白でない矩形の画像領域を検出する画像データであり、(b)は読取った原稿の画像データが所定のフォーマットを有する原稿の画像データ、一方(a)は所定のフォーマットを有さない原稿の画像データの例である。画像領域検出部27はこのような読取り領域を定義した原稿の画像データから真っ白でない矩形の画像領域71、72を検出する。
Here, an example of the image area information output by the image area detection unit 27 will be described based on the explanatory diagram of the document area detection result in the first embodiment of FIG.
7A and 7B show image data in which the image area detection unit 27 detects a rectangular image area that is not white, and FIG. 7B shows an original in which the image data of the read original has a predetermined format. On the other hand, (a) is an example of image data of a document that does not have a predetermined format. The image area detection unit 27 detects non-white rectangular image areas 71 and 72 from image data of a document defining such a reading area.

画像領域検出部27は、矩形の画像領域71、72を検出すると原稿の左上端を座標原点(0、0)とし、その矩形の画像領域71、72の左辺X座標x1(dot)、右辺X座標x2(dot)、上辺Y座標y1(dot)、下辺Y座標y2(dot)を検出し、左上座標(x1、y1)および右下座標(x2、y2)を画像領域情報として出力するものとする。   When the rectangular image areas 71 and 72 are detected, the image area detecting unit 27 sets the upper left corner of the document as the coordinate origin (0, 0), the left side X coordinate x1 (dot) of the rectangular image areas 71 and 72, and the right side X A coordinate x2 (dot), an upper side Y coordinate y1 (dot), a lower side Y coordinate y2 (dot) are detected, and an upper left coordinate (x1, y1) and a lower right coordinate (x2, y2) are output as image area information; To do.

なお、画像領域検出部27は、画像データ中の真っ白でない矩形の画像領域を検出するため、事前に画像データの幅、高さ、階調数、カラー/モノクロモードの画像データ種別情報を取得するものとする。この画像データ種別情報は、例えば操作パネル4で予め入力し、記憶部11に記憶させておくものとするが、特に本実施例ではその手段を特定せず、操作パネル制御部20が原稿の読取開始指示を出力するまでに決定され、記憶部11に設定情報として記憶されているものとする。   Note that the image area detection unit 27 acquires the width, height, number of gradations, and color / monochrome mode image data type information in advance in order to detect a non-white rectangular image area in the image data. Shall. This image data type information is input in advance on the operation panel 4, for example, and stored in the storage unit 11. However, in the present embodiment, the means is not specified, and the operation panel control unit 20 reads the document. It is determined until the start instruction is output, and is stored as setting information in the storage unit 11.

図1の説明に戻り、ページデータ量算出部28は、画像領域検出部27から出力された画像領域情報および記憶部11から画像データ種別情報を取得して原稿の1ページ分の画像データの推定量を算出する算出部である。
総データ量算出部29は、総ページ数格納部26に格納された原稿の総ページ数およびページデータ量算出部28が算出した1ページあたりの画像データの推定量を取得し、全原稿を読取ったときの総画像データ量を算出する算出部である。
Returning to the description of FIG. 1, the page data amount calculation unit 28 acquires the image area information output from the image area detection unit 27 and the image data type information from the storage unit 11 to estimate the image data for one page of the document. It is a calculation part which calculates quantity.
The total data amount calculation unit 29 acquires the total number of original pages stored in the total page number storage unit 26 and the estimated amount of image data per page calculated by the page data amount calculation unit 28 and reads all originals. It is a calculation part which calculates the total image data amount at the time.

データサイズ比較部30は、空容量検出部25が検出したUSBメモリ24の空容量と総データ量算出部29が算出した総画像データ量を取得して両者を比較し、総画像データ量がUSBメモリ24の空容量以下であるか、すなわち、全原稿の画像データをUSBメモリ24に格納することができるか否かを判定する。
推奨設定算出部31は、データサイズ比較部30の判定結果に基づいて、全原稿の画像データをUSBメモリ24に格納するための画像データの解像度、階調数、カラー/モノクロモードの推奨設定情報を算出する算出部である。算出された推奨設定情報は、操作パネル制御部20へ通知されるものとする。
The data size comparison unit 30 acquires the free space of the USB memory 24 detected by the free space detection unit 25 and the total image data amount calculated by the total data amount calculation unit 29 and compares them, and the total image data amount is USB It is determined whether it is less than the free capacity of the memory 24, that is, whether the image data of all the originals can be stored in the USB memory 24.
The recommended setting calculation unit 31 is based on the determination result of the data size comparison unit 30, the resolution of the image data for storing the image data of all the originals in the USB memory 24, the number of gradations, and the recommended setting information for the color / monochrome mode. It is a calculation part which calculates. The calculated recommended setting information is notified to the operation panel control unit 20.

このように複合機1は各機能ブロックで構成され、その各機能ブロックは制御部10によって制御される。
上述した構成を有する複合機1の動作について説明する。
本実施例の複合機1は、複数枚(例えば、10枚、20枚、50枚程度)で1部をなす原稿全体の内から1枚の原稿をスキャナ2で読取り、その読取った原稿の画像データを解析することにより、全原稿の総画像データ量を予測し、その予測したデータ量がUSBメモリ24の空領域量より大きいと判定した場合は、読取った画像データに基づいてUSBメモリ24の空領域に格納することができる画像データの解像度、階調数、カラー/モノクロモードの推奨設定情報を算出するものである。
As described above, the multi-function device 1 is configured by each functional block, and each functional block is controlled by the control unit 10.
The operation of the multifunction device 1 having the above-described configuration will be described.
The multi-function device 1 of this embodiment reads one original from among all the originals that are part of a plurality of sheets (for example, about 10 sheets, 20 sheets, and 50 sheets) by the scanner 2, and images of the read originals By analyzing the data, the total image data amount of all the originals is predicted, and when it is determined that the predicted data amount is larger than the empty area amount of the USB memory 24, the USB memory 24 is based on the read image data. The resolution, the number of gradations, and the recommended setting information for the color / monochrome mode that can be stored in the sky area are calculated.

以下にその複合機1の動作を、図8の第1の実施例におけるメイン処理を示すフローチャート、図9の第1の実施例における設定モード処理を示すフローチャート、図10の第1の実施例におけるサイズ予測処理を示すフローチャート、図11の第1の実施例における画像領域検出処理を示すフローチャート、図12の第1の実施例における推奨設定算出処理を示すフローチャート、および図13の第1の実施例におけるスキャン処理を示すフローチャートの図中Sで表すステップにしたがって説明する。   The operation of the MFP 1 is described below with reference to a flowchart showing the main processing in the first embodiment of FIG. 8, a flowchart showing the setting mode processing in the first embodiment of FIG. 9, and in the first embodiment of FIG. A flowchart showing size prediction processing, a flowchart showing image region detection processing in the first embodiment of FIG. 11, a flowchart showing recommended setting calculation processing in the first embodiment of FIG. 12, and a first embodiment of FIG. In the flowchart showing the scanning process in FIG.

まず、本実施例のメイン処理を図8に基づいて説明する。なお、操作者は複合機1のUSBインタフェース7にUSBメモリ24を装着するものとする。
S101:複合機1の制御部10は設定モード処理を行う。操作者は、この設定モード処理によって操作パネル4から原稿を読取るための情報を設定するスキャン設定を行う。また、この設定モード処理では、ADF3に載置された原稿全体の内から1枚の原稿を読取るプレスキャン動作(第1の読取モード)を行う。さらに、そのプレスキャン動作の結果に基づいて本スキャン処理における原稿を読取るための情報が決定される。なお、本発明の特徴である設定モード処理の詳細は後述する。
First, the main process of this embodiment will be described with reference to FIG. It is assumed that the operator attaches the USB memory 24 to the USB interface 7 of the multifunction device 1.
S101: The control unit 10 of the multifunction device 1 performs a setting mode process. The operator performs scan setting for setting information for reading a document from the operation panel 4 by the setting mode process. In this setting mode process, a pre-scan operation (first reading mode) is performed in which one original is read from the entire original placed on the ADF 3. Further, information for reading the document in the main scanning process is determined based on the result of the pre-scan operation. Details of the setting mode processing that is a feature of the present invention will be described later.

S102:設定モード処理が終了すると制御部10はADF3に載置されたすべての原稿の画像データを読込み(第2の読取モード)、その画像データをUSBメモリ24に書込む読込み/書込みモード処理を行う。なお、読込み/書込みモード処理の詳細は後述する。
このように制御部10は、設定モード処理(プレスキャン処理)および読込み/書込みモード処理(本スキャン処理)を行い、メイン処理を終了する。
S102: When the setting mode process is completed, the control unit 10 reads the image data of all the originals placed on the ADF 3 (second reading mode), and performs the read / write mode process of writing the image data to the USB memory 24. Do. Details of the read / write mode processing will be described later.
Thus, the control unit 10 performs the setting mode process (pre-scan process) and the read / write mode process (main scan process), and ends the main process.

次に、上述した設定モード処理を図9に基づいて説明する。
S201:制御部10は、USBインタフェース7にUSBメモリ24が装着されたことを検出する。
S202:USBメモリ24が装着されると空容量検出部25は、USBメモリ24の空容量を検出する。
Next, the setting mode process described above will be described with reference to FIG.
S201: The control unit 10 detects that the USB memory 24 is attached to the USB interface 7.
S202: When the USB memory 24 is attached, the free capacity detection unit 25 detects the free capacity of the USB memory 24.

S203:操作パネル制御部20は空容量検出部25が検出したUSBメモリ24の空容量を表示する。例えば、図4に示すように「USBメモリ 空き容量: 120MB」等の表示を行う。
S204:次に、操作パネル制御部20は操作パネルに設定画面を表示し、原稿を読取るための情報を設定(ScanToUSBMemoryの設定)する操作を受付ける。
S203: The operation panel control unit 20 displays the free capacity of the USB memory 24 detected by the free capacity detection unit 25. For example, as shown in FIG. 4, “USB memory free space: 120 MB” is displayed.
S204: Next, the operation panel control unit 20 displays a setting screen on the operation panel and accepts an operation for setting information for reading a document (setting ScanToUSBMemory).

この設定は、例えば図4に示す設定画面40を表示し、タッチパネルで各種設定項目を設定する入力操作を受付ける。設定項目としては、図4に示すように解像度42、カラーモード43、階調44、ファイル形式45、原稿サイズ46を設け、解像度42は、75dpi(dots per inch)、100dpi、150dpi、200dpi、300dpi、600dpiが選択可能であり、カラーモード43は、カラーまたはモノクロが選択可能であり、階調44は、多値または2値が選択可能であり、ファイル形式45は、JPEG、PDF、XPS、TIFFが選択可能になっている。   For this setting, for example, a setting screen 40 shown in FIG. 4 is displayed, and an input operation for setting various setting items on the touch panel is accepted. As setting items, as shown in FIG. 4, resolution 42, color mode 43, gradation 44, file format 45, and document size 46 are provided. 600 dpi, color mode 43 can select color or monochrome, gradation 44 can select multi-value or binary, and file format 45 can be JPEG, PDF, XPS, TIFF. Is selectable.

なお、図4において斜線部が現在選択されている設定を示し、例えば解像度42は300dpiが選択されて設定されていることを示し、同様にカラーモード43はカラー、階調44は多値、ファイル形式45はPDFが選択されて設定されていることを示している。また、選択された設定は読取条件として記憶部11に記憶される。
S205:操作パネル制御部20は、原稿の読取りを開始させるためのスキャン開始、または画像データ量の予測を開始させるためのサイズ予測開始の操作を操作パネル4で受付ける。例えば、図4に示すようにサイズ予測開始の操作を受付けるための「複数ページサイズ予測」ボタン47、スキャン開始の操作を受付けるための「スキャン開始」ボタン48を表示し、タッチパネルによりそのボタンの押下を受付ける。
In FIG. 4, the shaded portion indicates the currently selected setting. For example, the resolution 42 indicates that 300 dpi is selected and set. Similarly, the color mode 43 is color, the gradation 44 is multi-value, and the file Format 45 indicates that PDF is selected and set. The selected setting is stored in the storage unit 11 as a reading condition.
S205: The operation panel control unit 20 accepts an operation for starting a scan for starting reading of a document or a size prediction start for starting prediction of an image data amount on the operation panel 4. For example, as shown in FIG. 4, a “multiple page size prediction” button 47 for accepting a size prediction start operation and a “scan start” button 48 for accepting a scan start operation are displayed. Accept.

S206:操作パネル制御部20は、スキャン開始またはサイズ予測開始のいずれかが選択されたことを検知し、サイズ予測開始が選択されたことを検知すると処理をS207へ移行し、一方スキャン開始が選択されたことを検知すると設定モード処理を終了する。
S207:制御部10は、全原稿の総画像データ量を予測するサイズ予測処理を行う。なお、サイズ予測処理の詳細は後述する。
S206: The operation panel control unit 20 detects that either the scan start or the size prediction start is selected, and when detecting that the size prediction start is selected, the operation panel control unit 20 moves the process to S207, and selects the scan start. If it is detected, the setting mode process is terminated.
S207: The control unit 10 performs a size prediction process for predicting the total image data amount of all documents. Details of the size prediction process will be described later.

S208:制御部10は、サイズ予測処理で予測した総画像データ量がUSBメモリ24の空容量を超えるか否かの判定を行い、その結果USBメモリ24の空容量を超えると判定すると処理をS209へ移行し、超えないと判定すると処理をS204へ移行する。
なお、予測した総画像データ量がUSBメモリ24の空容量を超えないと判定された場合、S204により設定画面に戻り、その設定画面で「スキャン開始」ボタン48を押下することにより、設定モード処理を終了し、さらに図8のS102へ移行して読込み/書込みモード処理(本スキャン処理)を行うことができる。
S208: The control unit 10 determines whether or not the total image data amount predicted by the size prediction process exceeds the free capacity of the USB memory 24. If the control unit 10 determines that the total capacity exceeds the free capacity of the USB memory 24, the process proceeds to S209. If it is determined that it does not exceed, the process proceeds to S204.
If it is determined that the predicted total image data amount does not exceed the free capacity of the USB memory 24, the setting mode processing is performed by returning to the setting screen in S204 and pressing the “start scan” button 48 on the setting screen. Then, the process proceeds to S102 in FIG. 8 to perform the read / write mode process (main scan process).

S209:サイズ予測処理で予測した総画像データ量がUSBメモリ24の空容量を超えると判定されると推奨設定算出部31は全原稿の画像データをUSBメモリ24に格納するための画像データの解像度、階調数、カラー/モノクロモードの推奨設定情報を算出する推奨設定算出処理を行う。なお、推奨設定算出処理の詳細は後述する。
S210:操作パネル制御部20は、推奨設定算出処理で算出された推奨設定をサイズ予測結果画面として操作パネル4に表示する。
S209: When it is determined that the total amount of image data predicted by the size prediction process exceeds the free capacity of the USB memory 24, the recommended setting calculation unit 31 sets the resolution of the image data for storing the image data of all the originals in the USB memory 24. Then, recommended setting calculation processing is performed for calculating recommended setting information for the number of gradations and color / monochrome mode. Details of the recommended setting calculation process will be described later.
S210: The operation panel control unit 20 displays the recommended setting calculated in the recommended setting calculation process on the operation panel 4 as a size prediction result screen.

操作パネル制御部20は、例えば図6に示すようにサイズ予測結果画面60を表示する。
このサイズ予測結果画面60は、予測結果61としてUSBメモリ24の空容量からあふれるデータ量(例えば、24MBオーバー)を表示する。
解像度62では、300dpiと600dpiを黒く塗りつぶして現在のUSBメモリ24の空容量では選択することができないことを操作者に報知し、一方200dpiを斜線表示して推奨設定として200dpiに変更されたことを操作者に報知する。なお、サイズ予測処理時の解像度は300dpiが選択されていたため、300dpiから200dpiへ解像度の精度を低くすることが推奨されたことになる。これは、解像度を200dpiにすることにより、総画像データ量が300dpiを選択したときより概算で3分の2のデータ量になることが予想される。
The operation panel control unit 20 displays a size prediction result screen 60 as shown in FIG. 6, for example.
The size prediction result screen 60 displays the amount of data overflowing from the free capacity of the USB memory 24 (for example, 24 MB over) as the prediction result 61.
At a resolution of 62, 300 dpi and 600 dpi are blacked out to inform the operator that the current capacity of the USB memory 24 cannot be selected, while 200 dpi is displayed in diagonal lines and the recommended setting is changed to 200 dpi. Notify the operator. Since 300 dpi has been selected as the resolution at the time of the size prediction process, it is recommended that the resolution accuracy be lowered from 300 dpi to 200 dpi. By setting the resolution to 200 dpi, it is expected that the total image data amount will be approximately two-thirds of the data amount when 300 dpi is selected.

また、ファイル形式63では、TIFF形式を黒く塗りつぶして現在のUSBメモリ24の空容量では選択することができないことを操作者に報知する。これは、PDF形式がJPEG圧縮した画像データを内部に格納するのに対してTIFF形式はカラーモードにおいて非圧縮形式でデータを格納するため、TIFF形式のデータ量がPDF形式のデータ量よりも大きくなるため、選択できないようにしている。   Further, in the file format 63, the TIFF format is blacked out to notify the operator that it cannot be selected with the current free space of the USB memory 24. This is because the PDF format stores image data compressed in JPEG, while the TIFF format stores data in the uncompressed format in the color mode, so the data amount of the TIFF format is larger than the data amount of the PDF format. Therefore, it cannot be selected.

S211:操作パネル制御部20は、サイズ予測結果画面で表示した推奨設定を反映させるか否かを操作者に問い合わせる。操作パネル制御部20は、例えば図6に示すようにサイズ予測結果画面60に「反映して終了」ボタン64および「反映せず終了」ボタン65を表示し、タッチパネルによる操作者の選択操作を受付ける。
S212:操作パネル制御部20が推奨設定を反映させる操作を受付けると処理をS213へ移行し、推奨設定を反映させない操作を受付けると処理をS204へ移行する。
S211: The operation panel control unit 20 inquires of the operator whether to reflect the recommended setting displayed on the size prediction result screen. For example, as shown in FIG. 6, the operation panel control unit 20 displays a “reflect and end” button 64 and an “end without reflecting” button 65 on the size prediction result screen 60, and accepts an operator's selection operation using the touch panel. .
S212: When operation panel control unit 20 accepts an operation for reflecting recommended settings, the process proceeds to S213, and when an operation for not reflecting recommended settings is accepted, the process proceeds to S204.

S213:推奨設定を反映させる操作を受付けると操作パネル制御部20は、サイズ予測結果画面で表示した推奨設定、すなわち推奨設定算出部31が算出した推奨設定を操作パネル制御部20に通知し、その推奨設定を記憶部11に読取条件の各設定値として記憶させ、現在の設定に反映させる。例えば、S204へ処理を移行したとき、解像度として300dpiが選択されていた設定が200dpiの選択に変更される。   S213: Upon receiving an operation for reflecting the recommended setting, the operation panel control unit 20 notifies the operation panel control unit 20 of the recommended setting displayed on the size prediction result screen, that is, the recommended setting calculated by the recommended setting calculation unit 31. The recommended setting is stored in the storage unit 11 as each setting value of the reading condition, and is reflected in the current setting. For example, when the process proceeds to S204, the setting in which 300 dpi has been selected as the resolution is changed to 200 dpi.

このようにして設定モード処理が行われる。
次に、図10に基づいて図9のS207で述べたサイズ予測処理を説明する。
S301:操作パネル制御部20は、総画像データ量を予測する動作を行うためのサイズ予測画面を操作パネル4に表示する。
操作パネル制御部20が表示するサイズ予測画面は、例えば図5に示すようなサイズ予測画面50であり、USBメモリ24の空容量とともに「現在の設定で、複数ページスキャンの画像サイズを予測します。」等の案内文言、および読取る全原稿の枚数の入力を誘導する「原稿枚数を入力して下さい。」等の誘導文言を表示する。
In this way, the setting mode process is performed.
Next, the size prediction process described in S207 of FIG. 9 will be described based on FIG.
S301: The operation panel control unit 20 displays a size prediction screen for performing an operation of predicting the total image data amount on the operation panel 4.
The size prediction screen displayed by the operation panel control unit 20 is a size prediction screen 50 as shown in FIG. 5, for example, along with the free space of the USB memory 24, “the current setting is used to predict the image size of the multiple page scan. , Etc., and guidance words such as “Please enter the number of documents.” Are displayed to guide the input of the number of all documents to be read.

S302:サイズ予測画面を表示すると操作パネル制御部20は、読取る全原稿の枚数としての総ページ数の入力を受付け、入力された総ページ数を総ページ数格納部26に格納する。
操作パネル制御部20は、例えば図5に示すように、これから総画像データ量を予測しようとする全原稿の枚数を操作パネル4のテンキーにより操作者に入力させ、入力された枚数を原稿の総ページ数51として総ページ数格納部26に格納する。なお、図5では原稿の総ページ数51を100枚として入力された例を示している。
S302: When the size prediction screen is displayed, the operation panel control unit 20 receives an input of the total number of pages as the number of all originals to be read, and stores the input total number of pages in the total page number storage unit 26.
For example, as shown in FIG. 5, the operation panel control unit 20 causes the operator to input the number of all originals for which the total image data amount is to be predicted from the numeric keypad of the operation panel 4, and the total number of input originals is calculated. The page number 51 is stored in the total page number storage unit 26. FIG. 5 shows an example in which the total number of pages 51 of the document is input as 100 sheets.

S303:総ページ数が入力されると操作パネル制御部20は、総画像データ量を予測する動作を開始させるための予測開始ボタン53が押下されることを待機する。
操作パネル制御部20は、例えば図5に示すように「ADFに1枚目の原稿をセットして下さい。」等の誘導文言52を表示させるとともに総画像データ量を予測する動作を開始させるための「予測開始」ボタン53およびサイズ予測処理を中止するための「戻る」ボタン54を表示させ、その「予測開始」ボタン53の押下をタッチパネルで検知する。なお、「戻る」ボタン54が押下された場合、サイズ予測処理を終了して図4に示す設定画面を表示する。
S303: When the total number of pages is input, the operation panel control unit 20 waits for the prediction start button 53 for starting the operation of predicting the total image data amount to be pressed.
For example, as shown in FIG. 5, the operation panel control unit 20 displays a guidance word 52 such as “Please set the first document on the ADF.” And starts an operation of predicting the total image data amount. The “prediction start” button 53 and the “return” button 54 for stopping the size prediction process are displayed, and pressing of the “prediction start” button 53 is detected by the touch panel. When the “return” button 54 is pressed, the size prediction process is terminated and the setting screen shown in FIG. 4 is displayed.

S304:「予測開始」ボタン53の押下を検知すると画像読取部21は、ADF3に載置された原稿の1枚目を読取るスキャン動作を行い、読取った原稿の画像データを画像データ記憶部22に格納する。
S305:原稿の画像データを画像データ記憶部22に格納すると画像領域検出部27はその画像データから画像領域を抽出する画像領域検出処理を行う。なお、画像領域検出処理の詳細は後述する。
S 304: Upon detecting that the “prediction start” button 53 is pressed, the image reading unit 21 performs a scanning operation of reading the first document placed on the ADF 3, and stores the image data of the read document in the image data storage unit 22. Store.
S305: When the image data of the original is stored in the image data storage unit 22, the image region detection unit 27 performs an image region detection process for extracting an image region from the image data. Details of the image area detection process will be described later.

S306:ページデータ量算出部28は、画像領域検出部27から出力された画像領域の左上座標(x1、y1)ならびに右下座標(x2、y2)、カラー/モノクロ、および階調数から抽出した画像領域の画像データ量(非圧縮)を算出し、算出された画像データ量を予測した1枚の原稿のページデータ量とする。
例えば、ページデータ量算出部28は、まず画像領域のピクセル数(pixel_per_page)を、CEILING((x2―x1+1)、8)×(y2−y1+1)としてX座標方向を8ビット単位に区切って算出する。なお、CEILING(n、8)は、n以上、かつnに最も近い8の倍数に切り上げる関数である。
S306: The page data amount calculation unit 28 extracts the upper left coordinates (x1, y1) and lower right coordinates (x2, y2), color / monochrome, and the number of gradations of the image area output from the image area detection unit 27. The image data amount (uncompressed) of the image area is calculated, and the calculated image data amount is used as the predicted page data amount of one original.
For example, the page data amount calculation unit 28 first calculates the number of pixels in the image area (pixel_per_page) as CEILING ((x2−x1 + 1), 8) × (y2−y1 + 1) by dividing the X coordinate direction into 8-bit units. . CEILING (n, 8) is a function rounded up to a multiple of 8 that is n or more and closest to n.

次に、ページデータ量を、算出したピクセル数(pixel_per_page)×bk×bcとして算出する。なお、bkおよびbcは、図14(b)、(c)に示すテーブルと現在のスキャン設定値に基づいて取得したバイト数(例えば、カラーの場合はbc=3、多値の場合はbk=1)であり、算出したピクセル数に乗算することでページデータ量の予測値を計算する。   Next, the page data amount is calculated as the calculated number of pixels (pixel_per_page) × bk × bc. Note that bk and bc are the number of bytes acquired based on the table shown in FIGS. 14B and 14C and the current scan setting value (for example, bc = 3 for color, bk = 3 for multi-value). 1), the predicted value of the page data amount is calculated by multiplying the calculated number of pixels.

S307:総データ量算出部29は、予測したページデータ量に総ページ数格納部26から取り出した総ページ数を乗算(ページデータ量×総ページ数)し、総データ量を算出する。
S308:データサイズ比較部30は、算出された総データ量と空容量検出部25で検出されたUSBメモリ24の空容量とを比較する。
S307: The total data amount calculation unit 29 multiplies the predicted page data amount by the total page number extracted from the total page number storage unit 26 (page data amount × total page number) to calculate the total data amount.
S308: The data size comparison unit 30 compares the calculated total data amount with the free capacity of the USB memory 24 detected by the free capacity detection unit 25.

S309:その比較の結果としてUSBメモリ24の空容量が総データ量以上の場合は「格納可能」、一方USBメモリ24の空容量が総データ量未満の場合は「格納オーバー」を出力し、サイズ予測処理を終了する。
次に、図11に基づいて図10のS305で述べた画像領域検出処理を説明する。なお、この画像領域検出処理のすべてのステップは、画像領域検出部27が行う動作である。
S309: As a result of the comparison, if the free capacity of the USB memory 24 is greater than or equal to the total amount of data, “storable” is output. On the other hand, if the free capacity of the USB memory 24 is less than the total amount of data, “storage over” is output. The prediction process is terminated.
Next, the image region detection process described in S305 of FIG. 10 will be described based on FIG. Note that all the steps of the image region detection process are operations performed by the image region detection unit 27.

S401:画像領域検出部27が、画像データ記憶部22に格納された原稿画像データの1ライン分のデータを取得する。
S402:画像領域検出部27は、取得した1ライン分のデータを解析し、描画領域の左端のドット座標および右端のドット座標を検出する。なお、読取った画像データが多値の場合は、所定の閾値を定め、その画素の濃度が閾値以上であった場合に原稿上に文字や図形が存在すると判定することにより描画領域の左端および右端を検出する。
S401: The image area detection unit 27 acquires data for one line of the document image data stored in the image data storage unit 22.
S402: The image region detection unit 27 analyzes the acquired data for one line, and detects the dot coordinates at the left end and the dot coordinates at the right end of the drawing region. When the read image data is multi-valued, a predetermined threshold value is set, and when the density of the pixel is equal to or higher than the threshold value, it is determined that a character or a graphic exists on the document, whereby the left edge and the right edge of the drawing area Is detected.

S403:画像領域検出部27は、検出した左端のドット座標および右端のドット座標に基づいて左端X座標(x1)、右端X座標(x2)を更新する。
S404:画像領域検出部27は、1ライン分のデータが真っ白なラインデータであるか否かを判定する。なお、読取った画像データが多値の場合は、所定の閾値を定め、そのラインのすべての画素の濃度が閾値未満であった場合に真っ白なラインデータであると判定する。
S403: The image region detection unit 27 updates the left end X coordinate (x1) and the right end X coordinate (x2) based on the detected left end dot coordinates and right end dot coordinates.
S404: The image area detection unit 27 determines whether or not the data for one line is pure white line data. When the read image data is multi-valued, a predetermined threshold value is set, and when the density of all pixels in the line is less than the threshold value, it is determined that the line data is pure white.

S405:画像領域検出部27は、検出した真っ白なラインデータに基づいて上端Y座標(y1)、下端Y座標(y2)を更新する。例えば、ラインデータを原稿の上部から下部に向かって読取った場合、最初に真っ白でないラインデータを検出したY座標を上端Y座標(y1)とし、最後に真っ白でないラインデータを検出したY座標を下端Y座標(y2)とするものとする。   S405: The image region detection unit 27 updates the upper end Y coordinate (y1) and the lower end Y coordinate (y2) based on the detected pure white line data. For example, when the line data is read from the top to the bottom of the document, the Y coordinate that first detected line data that is not white is the upper end Y coordinate (y1), and the Y coordinate that last detected line data that is not white is the lower end. The Y coordinate (y2) is assumed.

S406:画像領域検出部27は、原稿画像データのすべての1ライン分のデータを取得したか否かを判定し、その判定の結果、未だ取得すべき1ライン分のデータが残っていると判定すると処理をS401へ移行させて次の1ライン分のデータを処理し、すべての1ライン分のデータを取得したと判定すると処理をS407へ移行する。
S407:画像領域検出部27は、検出された左端X座標(x1)、右端X座標(x2)、上端Y座標(y1)、および下端Y座標(y2)を、画像領域の左辺X座標(x1)、右辺X座標(x2)、上辺Y座標(y1)、および下辺Y座標(y2)として出力する。
S406: The image area detection unit 27 determines whether or not all the data for one line of the document image data has been acquired. As a result of the determination, it is determined that there is still one line of data to be acquired. Then, the process proceeds to S401, the data for the next line is processed, and if it is determined that all the data for one line has been acquired, the process proceeds to S407.
S407: The image region detection unit 27 uses the detected left end X coordinate (x1), right end X coordinate (x2), upper end Y coordinate (y1), and lower end Y coordinate (y2) as the left side X coordinate (x1) of the image region. ), Right side X coordinate (x2), upper side Y coordinate (y1), and lower side Y coordinate (y2).

次に、図12に基づいて図9のS209で述べた推奨設定算出処理を説明する。なお、この推奨設定算出処理のすべてのステップは、推奨設定算出部31が行う動作である。
S501:推奨設定算出部31は、プレスキャン時の設定に基づいて現在の解像度比率r、現在のモード比率c、現在の階調数比率kの値を設定する。
ここで、プレスキャン時の設定とは、図9の設定モード処理のS204で受付けた原稿を読取るためのScanToUSBMemoryの設定のことであり、プレスキャンは図9のS207のサイズ予測処理で行われたときのスキャン、すなわち本実施例では、図10のサイズ予測処理におけるS304で行うスキャンである。
Next, the recommended setting calculation process described in S209 of FIG. 9 will be described based on FIG. Note that all the steps of the recommended setting calculation process are operations performed by the recommended setting calculation unit 31.
S501: The recommended setting calculation unit 31 sets values of the current resolution ratio r, the current mode ratio c, and the current gradation number ratio k based on the settings at the time of pre-scanning.
Here, the setting at the time of pre-scan is the setting of ScanToUSBMemory for reading the original received in S204 of the setting mode process of FIG. 9, and the pre-scan was performed by the size prediction process of S207 of FIG. Scan, that is, the scan performed in S304 in the size prediction process of FIG.

また、解像度比率r、モード比率c、階調数比率kの値は、例えばプレスキャンが解像度300dpi、カラー/モノクロモードがカラー、階調数が多値の場合、図14(a)、(b)、(c)のテーブルに基づいてr=3、c=3、k=8が設定されるものとする。
S502:推奨設定算出部31は、推奨候補の解像度比率r’、モード比率c’、階調数比率k’の値を、r’=r、c’=c、k’=kに初期化する。
Also, the values of the resolution ratio r, mode ratio c, and gradation number ratio k are shown in FIGS. 14A and 14B when the prescan has a resolution of 300 dpi, the color / monochrome mode has color, and the gradation number has multiple values. ), R = 3, c = 3, and k = 8 are set based on the table of (c).
S502: The recommended setting calculation unit 31 initializes the values of the resolution ratio r ′, the mode ratio c ′, and the gradation number ratio k ′ of the recommended candidates to r ′ = r, c ′ = c, and k ′ = k. .

推奨設定算出部31は、推奨設定値をr’=r、c’=c、k’=kとして推奨設定総データ量を算出するものとする。
ここで、推奨設定総データ量は、推奨設定総データ量=(総データ量算出部29が算出した総データ量)×(r’/r)×(c’/c)×(k’/k)として算出する。
S503:推奨設定算出部31は、推奨設定総データ量がUSBメモリ24の空容量以下になるか判定する。
The recommended setting calculation unit 31 calculates the recommended setting total data amount with the recommended setting values as r ′ = r, c ′ = c, and k ′ = k.
Here, the recommended set total data amount is: recommended set total data amount = (total data amount calculated by the total data amount calculation unit 29) × (r ′ / r) 2 × (c ′ / c) × (k ′ / k).
S503: The recommended setting calculation unit 31 determines whether the recommended setting total data amount is equal to or less than the free capacity of the USB memory 24.

判定の結果、推奨設定総データ量がUSBメモリ24の空容量以下であると判定されると処理をS512へ移行し、推奨設定総データ量がUSBメモリ24の空容量より大きいと判定されると処理をS504へ移行する。
S504:推奨設定算出部31は、次に低い品質の推奨候補の解像度比率r’の設定候補が存在するか否かを判定し、その判定の結果、存在すると判定されると処理をS505へ移行し、存在しないと判定すると処理をS506へ移行する。
As a result of the determination, if it is determined that the recommended total data amount is less than or equal to the free capacity of the USB memory 24, the process proceeds to S512, and if it is determined that the recommended total data amount is greater than the free capacity of the USB memory 24. The process proceeds to S504.
S504: The recommended setting calculation unit 31 determines whether there is a setting candidate for the resolution ratio r ′ of the next lowest quality recommended candidate. If it is determined as a result of the determination, the process proceeds to S505. If it is determined that it does not exist, the process proceeds to S506.

S505:推奨候補の解像度比率r’を、ひとつ品質の低い設定値に変更し、推奨設定総データ量を算出する。
例えば、プレスキャン時の解像度が300dpiのとき、次に品質の低い解像度が200dpiであるから本ステップを初めて行う場合、図14に示すテーブルに基づきr=3、r’=2となる。したがって、(r’/r)は(4/9)となり、サイズ予測処理において総データ量算出部29が算出した総データ量を(4/9)倍することになる。
S505: The recommended candidate resolution ratio r ′ is changed to one low-quality setting value, and the recommended setting total data amount is calculated.
For example, when the pre-scan resolution is 300 dpi and the next lowest resolution is 200 dpi, when this step is performed for the first time, r = 3 and r ′ = 2 based on the table shown in FIG. Therefore, (r ′ / r) 2 becomes (4/9), and the total data amount calculated by the total data amount calculation unit 29 in the size prediction process is multiplied by (4/9).

このことは、非圧縮のスキャン画像データが解像度300dpiから200dpiに変更されたことにより、縦横それぞれのサイズが(2/3)倍になることから、全体の画像データ量は(4/9)倍になることを意味している。
このようにして推奨設定総データ量を算出すると処理をS503へ移行する。
S506:推奨設定算出部31は、推奨設定総データ量がUSBメモリ24の空容量以下になるか判定する。
This is because the uncompressed scan image data is changed from the resolution 300 dpi to 200 dpi, and the vertical and horizontal sizes are (2/3) times larger, so the total image data amount is (4/9) times. Is meant to be.
When the recommended set total data amount is calculated in this way, the process proceeds to S503.
S506: The recommended setting calculation unit 31 determines whether the recommended setting total data amount is equal to or less than the free capacity of the USB memory 24.

判定の結果、推奨設定総データ量がUSBメモリ24の空容量以下であると判定されると処理をS512へ移行し、推奨設定総データ量がUSBメモリ24の空容量より大きいと判定されると処理をS507へ移行する。
S507:推奨設定算出部31は、次に低い品質の推奨候補のモード比率c’の設定候補が存在するか否かを判定し、その判定の結果、存在すると判定されると処理をS508へ移行し、存在しないと判定すると処理をS509へ移行する。
As a result of the determination, if it is determined that the recommended total data amount is less than or equal to the free capacity of the USB memory 24, the process proceeds to S512, and if it is determined that the recommended total data amount is greater than the free capacity of the USB memory 24. The process proceeds to S507.
S507: The recommended setting calculation unit 31 determines whether there is a setting candidate for the mode ratio c ′ of the next lowest quality recommended candidate. If it is determined as a result of the determination, the process proceeds to S508. If it is determined that it does not exist, the process proceeds to S509.

S508:推奨候補のモード比率c’を、ひとつ品質の低い設定値に変更し、推奨設定総データ量を算出する。
例えば、プレスキャン時のモードがカラーのとき、次に品質の低いモードはモノクロであるから本ステップを初めて行う場合、図14に示すテーブルに基づきc=3、c’=1となる。したがって、(c’/c)は(1/3)となり、S502またはS505で算出された推奨設定総データ量を(1/3)倍することになる。
S508: The recommended candidate mode ratio c ′ is changed to one low-quality setting value, and the recommended setting total data amount is calculated.
For example, when the pre-scan mode is color and the next lowest quality mode is monochrome, when this step is performed for the first time, c = 3 and c ′ = 1 based on the table shown in FIG. Therefore, (c ′ / c) becomes (1/3), and the recommended set total data amount calculated in S502 or S505 is multiplied by (1/3).

これは、スキャン設定がカラーで多値の場合、スキャン画像データは1画素あたり3バイトのRGBデータで構成され、スキャン設定がモノクロで多値の場合、スキャン画像データは1画素あたり1バイトの濃度データで構成されるからである。なお、スキャン設定がモノクロで2値の場合、スキャン画像データは1画素あたり1ビットで構成される。
このようにして推奨設定総データ量を算出すると処理をS506へ移行する。
This is because when the scan setting is color and multi-value, the scan image data is composed of 3 bytes of RGB data per pixel, and when the scan setting is monochrome and multi-value, the scan image data has a density of 1 byte per pixel. This is because it consists of data. When the scan setting is monochrome and binary, the scan image data is composed of 1 bit per pixel.
When the recommended set total data amount is calculated in this way, the process proceeds to S506.

S509:推奨設定算出部31は、推奨設定総データ量がUSBメモリ24の空容量以下になるか判定する。
判定の結果、推奨設定総データ量がUSBメモリ24の空容量以下であると判定されると処理をS512へ移行し、推奨設定総データ量がUSBメモリ24の空容量より大きいと判定されると処理をS510へ移行する。
S509: The recommended setting calculation unit 31 determines whether the recommended setting total data amount is equal to or less than the free capacity of the USB memory 24.
As a result of the determination, if it is determined that the recommended total data amount is less than or equal to the free capacity of the USB memory 24, the process proceeds to S512, and if it is determined that the recommended total data amount is greater than the free capacity of the USB memory 24. The process proceeds to S510.

S510:推奨設定算出部31は、次に低い品質の推奨候補の階調数比率k’の設定候補が存在するか否かを判定し、その判定の結果、存在すると判定されると処理をS511へ移行し、存在しないと判定すると処理をS512へ移行する。
S511:推奨候補の階調数比率k’を、ひとつ品質の低い設定値に変更し、推奨設定総データ量を算出する。
S510: The recommended setting calculation unit 31 determines whether there is a setting candidate for the gradation ratio k ′ of the recommended candidate with the next lowest quality, and if it is determined as a result of the determination, the process proceeds to S511. If it is determined that it does not exist, the process proceeds to S512.
S511: The recommended number of gradations ratio k ′ is changed to one low-quality setting value, and the recommended setting total data amount is calculated.

例えば、プレスキャン時の階調数が多値のとき、次に品質の低い階調数は2値であるから本ステップを初めて行う場合、図14に示すテーブルに基づきk=8、k’=1となる。したがって、(k’/k)は(1/8)となり、S502、S505またはS508で算出された推奨設定総データ量を(1/8)倍することになる。
このようにして推奨設定総データ量を算出すると処理をS509へ移行する。
For example, when the number of gradations at the time of pre-scanning is multivalued, the number of gradations with the next lowest quality is binary, so when this step is performed for the first time, k = 8, k ′ = based on the table shown in FIG. 1 Therefore, (k ′ / k) becomes (1/8), and the recommended set total data amount calculated in S502, S505, or S508 is multiplied by (1/8).
When the recommended set total data amount is calculated in this way, the process proceeds to S509.

S512:推奨設定算出部31は、現在の推奨設定比率としての解像度比率r’、モード比率c’、階調数比率k’の値を推奨設定算出結果として出力し、推奨設定算出処理を終了する。
なお、本実施例では、解像度比率r’、モード比率c’、階調数比率k’の値を変更する例で説明したが、それに加え、JPEG、PDF、XPS、またはTIFF等のファイル形式を変更するようにしてもよい。
S512: The recommended setting calculation unit 31 outputs the values of the resolution ratio r ′, the mode ratio c ′, and the gradation number ratio k ′ as the current recommended setting ratio as the recommended setting calculation result, and ends the recommended setting calculation process. .
In the present embodiment, the example of changing the values of the resolution ratio r ′, mode ratio c ′, and gradation number ratio k ′ has been described, but in addition, file formats such as JPEG, PDF, XPS, or TIFF are used. It may be changed.

次に、図13に基づいて図8のS102で述べた読込み/書込みモード処理を説明する。
S601:操作パネル制御部20は、操作パネル4からのスキャン開始ボタン(例えば、図4に示す設定画面40のスキャン開始ボタン48)の押下を受付ける。
S602:操作パネル制御部20が、スキャン開始ボタンの押下を検知すると処理をS603へ移行し、検知しない場合は処理をS601へ移行する。
Next, the read / write mode process described in S102 of FIG. 8 will be described based on FIG.
S601: The operation panel control unit 20 accepts pressing of a scan start button (for example, the scan start button 48 on the setting screen 40 shown in FIG. 4) from the operation panel 4.
S602: When the operation panel control unit 20 detects the pressing of the scan start button, the process proceeds to S603, and when not detected, the process proceeds to S601.

S603:画像読取部21が、ADF3に載置された原稿の搬送を開始する。
S604:画像読取部21は、図示しないセンサ等の検知手段でADF3に原稿が存在するか否かを判定し、原稿が存在すると判定すると処理をS605へ移行し、存在しないと判定すると読取る原稿が終了したものとして読込み/書込みモード処理を終了する。
S605:画像読取部21が、ADF3に載置された原稿を1枚ずつ分離して搬送し、スキャナ2で搬送された原稿の画像データを現在のスキャン設定に基づいて読取る。
S603: The image reading unit 21 starts conveying the document placed on the ADF 3.
S604: The image reading unit 21 determines whether or not a document exists in the ADF 3 by a detection unit such as a sensor (not shown). If it is determined that there is a document, the process proceeds to S605. The read / write mode process is terminated as having been completed.
S605: The image reading unit 21 separates and conveys the original placed on the ADF 3 one by one, and reads the image data of the original conveyed by the scanner 2 based on the current scan setting.

S606:画像読取部21は、読取ったスキャン画像データを画像データ記憶部22に格納する。
S607:データ形式変換部23が、現在の設定値(ファイル形式)に基づいて画像データ記憶部22に格納されたスキャン画像データをイメージデータファイルにデータ変換する。
S606: The image reading unit 21 stores the read scanned image data in the image data storage unit 22.
S607: The data format conversion unit 23 converts the scan image data stored in the image data storage unit 22 into an image data file based on the current set value (file format).

S608:制御部10は、変換されたイメージデータファイルをUSBメモリ24に格納して処理をS603へ移行し、原稿の読取を継続する。
このようにして本実施例の複合機1は、複数枚(例えば、10枚、20枚、50枚程度)で1部をなす原稿全体の内から1枚の原稿をスキャナ2で読取り、その読取った原稿の画像データを解析することにより、全原稿の総画像データ量を予測し、その予測したデータ量がUSBメモリ24の空領域量より大きいと判定した場合は、読取った画像データに基づいてUSBメモリ24の空領域に格納することができる画像データの解像度、階調数、カラー/モノクロモードの推奨設定情報を算出し、その推奨設定情報で読取った全原稿の画像データをUSBメモリ24に格納する。
S608: The control unit 10 stores the converted image data file in the USB memory 24, shifts the processing to S603, and continues reading the document.
In this way, the multifunction device 1 of the present embodiment reads one original from the whole original that forms one copy by a plurality of sheets (for example, about 10, 20, 50), and reads the original. By analyzing the image data of the original document, the total image data amount of all the original documents is predicted, and if it is determined that the predicted data amount is larger than the empty area amount of the USB memory 24, it is based on the read image data. The recommended setting information of the resolution, the number of gradations, and the color / monochrome mode of the image data that can be stored in the empty area of the USB memory 24 is calculated, and the image data of all the originals read with the recommended setting information is stored in the USB memory 24 Store.

なお、本実施例では、図10におけるS302において総ページ数の入力を受付、予測した総データ量をUSBメモリ24の空容量と比較して格納可否を判定するようにしたが、この構成に替えてS302を省き、図10におけるS307でUSBメモリ24の空容量を予測した総データ量で除算してUSBメモリに格納できるページ数を算出し、さらにS308でUSBメモリ24に格納できるページ数を操作パネル4の画面に表示させるようにしてもよい。このようにした場合、図10におけるS309は削除するものとする。   In this embodiment, the input of the total number of pages is accepted in S302 in FIG. 10, and the predicted total data amount is compared with the free capacity of the USB memory 24 to determine whether or not storage is possible. S302 is omitted, the number of pages that can be stored in the USB memory 24 is calculated by dividing the free capacity of the USB memory 24 by the estimated total data amount in S307 in FIG. 10, and the number of pages that can be stored in the USB memory 24 is further operated in S308. You may make it display on the screen of the panel 4. FIG. In such a case, S309 in FIG. 10 is deleted.

以上説明したように、第1の実施例では、画像読取装置が原稿全体の内から1枚の原稿をスキャナで読取り、その読取った原稿の画像データを解析して全原稿の総画像データ量を予測し、その予測したデータ量がUSBメモリの空領域量より大きいと判定した場合は、読取った画像データに基づいてUSBメモリの空領域に格納することができる画像データの解像度、階調数、カラー/モノクロモードの推奨設定情報を算出し、その推奨設定情報で読取った全原稿の画像データをUSBメモリに格納するようにしたことにより、読取るすべての原稿の画像データをUSBメモリに記憶させることができるという効果が得られる。   As described above, in the first embodiment, the image reading apparatus reads one original from the entire original by the scanner, analyzes the image data of the read original, and calculates the total image data amount of all the originals. Predicting and determining that the predicted amount of data is greater than the amount of free space in the USB memory, the resolution of image data that can be stored in the free space of the USB memory based on the read image data, the number of gradations, By calculating the recommended setting information of the color / monochrome mode and storing the image data of all the originals read with the recommended setting information in the USB memory, the image data of all the originals to be read are stored in the USB memory. The effect of being able to be obtained.

また、ユーザは複数ページの原稿を読取る際に、現在の解像度、階調数、カラー/モノクロモードの設定情報で全原稿の画像データをUSBメモリに格納できるか否かを推測することができるようになるという効果が得られる。
さらに、ユーザは複数ページの原稿を読取る際に、全原稿の画像データをUSBメモリに格納できる解像度、階調数、カラー/モノクロモードの推奨設定情報を知ることができるという効果が得られる。
Further, when reading a document of a plurality of pages, the user can estimate whether the image data of all the documents can be stored in the USB memory with the current resolution, the number of gradations, and the setting information of the color / monochrome mode. The effect of becoming.
Further, when reading a document of a plurality of pages, the user can know the resolution, the number of gradations, and the recommended setting information of the color / monochrome mode that can store the image data of all the documents in the USB memory.

図15は第2の実施例における画像読取装置の機能ブロック図である。
図15において、複合機1は操作パネル制御部20、画像読取部21、画像データ記憶部22、データ形式変換部23、USBメモリ24、空容量検出部25、総ページ数格納部26、画像領域検出部27、ページデータ量算出部28、総データ量算出部29、データサイズ比較部30、推奨設定算出部31、および圧縮データ量検査部32の各機能ブロックで構成されている。
FIG. 15 is a functional block diagram of the image reading apparatus in the second embodiment.
In FIG. 15, the multifunction device 1 includes an operation panel control unit 20, an image reading unit 21, an image data storage unit 22, a data format conversion unit 23, a USB memory 24, an empty capacity detection unit 25, a total page number storage unit 26, and an image area. The functional block includes a detection unit 27, a page data amount calculation unit 28, a total data amount calculation unit 29, a data size comparison unit 30, a recommended setting calculation unit 31, and a compressed data amount inspection unit 32.

第2の実施例における画像読取装置の構成は、第1の実施例の構成に圧縮データ量検査部32を加えた構成になっている。なお、上述した第1の実施例と同様の部分は、同一の符号を付してその説明を省略する。
この圧縮データ量検査部32は、画像領域検出部27が検出した画像領域に対してデータ形式変換部23を呼び出し、該画像領域の画像データを圧縮した場合のデータ圧縮量を検査する検査部である。
The configuration of the image reading apparatus in the second embodiment is a configuration in which a compressed data amount inspection unit 32 is added to the configuration of the first embodiment. Note that parts similar to those of the first embodiment described above are denoted by the same reference numerals and description thereof is omitted.
The compressed data amount inspection unit 32 is an inspection unit that calls the data format conversion unit 23 for the image region detected by the image region detection unit 27 and inspects the data compression amount when the image data in the image region is compressed. is there.

上述した構成の複合機1の動作を説明する。
なお、第1の実施例で説明した図8の第1の実施例におけるメイン処理を示すフローチャート、図9の第1の実施例における設定モード処理を示すフローチャート、図10の第1の実施例におけるサイズ予測処理を示すフローチャート、図11の第1の実施例における画像領域検出処理を示すフローチャート、図12の第1の実施例における推奨設定算出処理を示すフローチャート、および図13の第1の実施例におけるスキャン処理を示すフローチャートのうち、図10の第1の実施例におけるサイズ予測処理を示すフローチャートが図18の第2の実施例におけるサイズ予測処理を示すフローチャートに置き換わったものであるため、図8、図9、図11、図12、図13の説明を省略し、図18の第2の実施例におけるサイズ予測処理を示すフローチャートについてのみ、図中Sで表すステップにしたがって説明する。
The operation of the MFP 1 having the above-described configuration will be described.
In addition, the flowchart which shows the main process in 1st Example of FIG. 8 demonstrated in 1st Example, the flowchart which shows the setting mode process in 1st Example of FIG. 9, and in 1st Example of FIG. A flowchart showing size prediction processing, a flowchart showing image region detection processing in the first embodiment of FIG. 11, a flowchart showing recommended setting calculation processing in the first embodiment of FIG. 12, and a first embodiment of FIG. 10 is replaced with the flowchart showing the size prediction process in the second embodiment in FIG. 18 because the flowchart showing the size prediction process in the first embodiment in FIG. 10 is replaced with the flowchart showing the size prediction process in the second embodiment in FIG. 9, FIG. 11, FIG. 12, and FIG. 13 are omitted, and the size prediction process in the second embodiment of FIG. For flowchart illustrating only be described according to the steps represented in the figure S.

S701:操作パネル制御部20は、総画像データ量を予測する動作を行うためのサイズ予測画面を操作パネル4に表示する。
操作パネル制御部20が表示するサイズ予測画面は、例えば図16に示すようなサイズ予測画面160であり、USBメモリ24の空容量とともに「現在の設定で、複数ページスキャンの画像サイズを予測します。」等の案内文言、および読取る全原稿の枚数の入力を誘導する「原稿枚数を入力して下さい。」等の誘導文言を表示する。
S701: The operation panel control unit 20 displays a size prediction screen for performing an operation of predicting the total image data amount on the operation panel 4.
The size prediction screen displayed by the operation panel control unit 20 is a size prediction screen 160 as shown in FIG. 16, for example, along with the free space of the USB memory 24, “the current setting is used to predict the image size of the multiple page scan. , Etc., and guidance words such as “Please enter the number of documents.” Are displayed to guide the input of the number of all documents to be read.

S702:サイズ予測画面を表示すると操作パネル制御部20は、読取る全原稿の枚数としての総ページ数の入力を受付け、入力された総ページ数を総ページ数格納部26に格納する。
操作パネル制御部20は、例えば図16に示すように、これから総画像データ量を予測しようとする全原稿の枚数を操作パネル4のテンキーにより操作者に入力させ、入力された枚数を原稿の総ページ数161として総ページ数格納部26に格納する。なお、図16では原稿の総ページ数161を100枚として入力された例を示している。
S702: When the size prediction screen is displayed, the operation panel control unit 20 receives an input of the total number of pages as the number of all originals to be read, and stores the input total number of pages in the total page number storage unit 26.
For example, as shown in FIG. 16, the operation panel control unit 20 causes the operator to input the number of all originals for which the total image data amount is to be predicted from the numeric keypad of the operation panel 4, and the total number of input originals is calculated. The page number 161 is stored in the total page number storage unit 26. FIG. 16 shows an example in which the total number of pages 161 of the document is input as 100 sheets.

S703:総ページ数が入力されると操作パネル制御部20は、総画像データ量を予測する動作を開始させるための予測開始ボタン163が押下されることを待機する。
操作パネル制御部20は、例えば図16に示すように「ADFに代表ページを1枚セットして下さい。」等の誘導文言162を表示させるとともに総画像データ量を予測する動作を開始させるための「予測開始」ボタン163およびサイズ予測処理を中止するための「戻る」ボタン164を表示させ、その「予測開始」ボタン163の押下をタッチパネルで検知する。なお、「戻る」ボタン164が押下された場合、サイズ予測処理を終了して図4に示す設定画面を表示する。
S703: When the total number of pages is input, the operation panel control unit 20 waits for the prediction start button 163 for starting the operation of predicting the total image data amount to be pressed.
For example, as shown in FIG. 16, the operation panel control unit 20 displays a guidance word 162 such as “Please set one representative page in the ADF.” And starts an operation for predicting the total image data amount. A “prediction start” button 163 and a “return” button 164 for stopping the size prediction process are displayed, and pressing of the “prediction start” button 163 is detected by the touch panel. If the “return” button 164 is pressed, the size prediction process is terminated and the setting screen shown in FIG. 4 is displayed.

S704:「予測開始」ボタンの押下を検知すると画像読取部21は、ADF3に載置された原稿の1枚目を読取るスキャン動作を行い、読取った原稿の画像データを画像データ記憶部22に格納する。
S705:原稿の画像データを画像データ記憶部22に格納すると画像領域検出部27はその画像データから画像領域を抽出する画像領域検出処理を行う。なお、画像領域検出処理は上述したとおりである。
S <b> 704: When the pressing of the “prediction start” button is detected, the image reading unit 21 performs a scanning operation for reading the first sheet of the document placed on the ADF 3, and stores the image data of the read document in the image data storage unit 22. To do.
S705: When the image data of the document is stored in the image data storage unit 22, the image region detection unit 27 performs image region detection processing for extracting an image region from the image data. The image region detection process is as described above.

S706:圧縮データ量検査部32が、データ形式変換部23を呼び出し、画像領域検出部27が抽出した画像領域の画像データを圧縮検査し、その圧縮データ量を出力する。
例えば、圧縮データ量検査部32は、図17(a)に示すように画像領域検出部27が抽出した画像領域171から画像データを1ラインずつ取り出し、データ形式変換部23を用いて圧縮処理を行い、圧縮した場合のデータ量を算出する。このときの圧縮処理は、例えばJPEG圧縮等である。
S706: The compressed data amount inspection unit 32 calls the data format conversion unit 23, compresses and inspects the image data of the image area extracted by the image region detection unit 27, and outputs the compressed data amount.
For example, as shown in FIG. 17A, the compressed data amount inspection unit 32 extracts image data line by line from the image area 171 extracted by the image area detection unit 27, and performs compression processing using the data format conversion unit 23. And calculate the amount of data when compressed. The compression process at this time is, for example, JPEG compression.

なお、画像形式の例としてPDFファイル形式の場合は、用紙サイズと図17(b)に示す実イメージデータ172(JPEG画像)とその位置情報をデータとしてファイルに格納するようになっている。
また、仮に画像領域として検出されない白い背景部分のデータを圧縮した場合、圧縮後のデータ量は極めて小さいものとなる。
In the case of the PDF file format as an example of the image format, the paper size, the actual image data 172 (JPEG image) shown in FIG. 17B, and its position information are stored in the file as data.
In addition, if data of a white background portion that is not detected as an image area is compressed, the amount of data after compression is extremely small.

本実施例のようにUSBメモリ24に格納する圧縮後のデータ量を算出することにより、より精度良くページのデータ量を予測することができる。
S707:ページデータ量算出部28は、圧縮データ量検査部32から出力された圧縮データ量を予測した1枚の原稿のページデータ量とする。
S708:総データ量算出部29は、予測したページデータ量に総ページ数格納部26から取り出した総ページ数を乗算(ページデータ量×総ページ数)し、総データ量を算出する。
By calculating the data amount after compression stored in the USB memory 24 as in this embodiment, the page data amount can be predicted more accurately.
S707: The page data amount calculation unit 28 sets the compressed data amount output from the compressed data amount inspection unit 32 as the predicted page data amount of one original.
S708: The total data amount calculation unit 29 multiplies the predicted page data amount by the total page number extracted from the total page number storage unit 26 (page data amount × total page number) to calculate the total data amount.

S709:データサイズ比較部30は、算出された総データ量と空容量検出部25で検出されたUSBメモリ24の空容量とを比較する。
S710:その比較の結果としてUSBメモリ24の空容量が総データ量以上の場合は「格納可能」、一方USBメモリ24の空容量が総データ量未満の場合は「格納オーバー」を出力し、サイズ予測処理を終了する。
S709: The data size comparison unit 30 compares the calculated total data amount with the free capacity of the USB memory 24 detected by the free capacity detection unit 25.
S710: As a result of the comparison, if the free space of the USB memory 24 is greater than or equal to the total data amount, “storable” is output, whereas if the free space of the USB memory 24 is less than the total data amount, “storage over” is output. The prediction process is terminated.

以上説明したように、第2の実施例では、第1の実施例の効果に加え、USBメモリに格納する圧縮後のデータ量を算出し、そのデータ量に基づいて算出された総データ量の予測値とUSBメモリの空容量を比較するようにしたことにより、全原稿の画像データをUSBメモリに格納することができるか否かの判定をより精度良く行うことができるようになるという効果が得られる。   As described above, in the second embodiment, in addition to the effects of the first embodiment, the amount of data after compression stored in the USB memory is calculated, and the total amount of data calculated based on the amount of data is calculated. By comparing the predicted value and the free space of the USB memory, it is possible to more accurately determine whether or not the image data of all the originals can be stored in the USB memory. can get.

図19は第3の実施例における画像読取装置の機能ブロック図である。
図19において、複合機1は操作パネル制御部20、画像読取部21、画像データ記憶部22、データ形式変換部23、USBメモリ24、空容量検出部25、総ページ数格納部26、画像領域検出部27、ページデータ量算出部28、総データ量算出部29、データサイズ比較部30、推奨設定算出部31、圧縮データ量検査部32、カレントページ数カウンタ33、予測対象ページ選択部34、予測済みページ数格納部35、および予測済みページデータ量格納部36の各機能ブロックで構成されている。
FIG. 19 is a functional block diagram of the image reading apparatus in the third embodiment.
In FIG. 19, the multifunction device 1 includes an operation panel control unit 20, an image reading unit 21, an image data storage unit 22, a data format conversion unit 23, a USB memory 24, an empty capacity detection unit 25, a total page number storage unit 26, an image area. A detection unit 27, a page data amount calculation unit 28, a total data amount calculation unit 29, a data size comparison unit 30, a recommended setting calculation unit 31, a compressed data amount inspection unit 32, a current page number counter 33, a prediction target page selection unit 34, The function block includes a predicted page number storage unit 35 and a predicted page data amount storage unit 36.

第3の実施例における画像読取装置の構成は、第2の実施例の構成にカレントページ数カウンタ33、予測対象ページ選択部34、予測済みページ数格納部35、および予測済みページデータ量格納部36を加えた構成になっている。
また、上記の構成としたことにより、画像読取部21および総データ量算出部29の動作が第2の実施例と異なる。なお、上述した第2の実施例と同様の部分は、同一の符号を付してその説明を省略する。
The configuration of the image reading apparatus according to the third embodiment is the same as that of the second embodiment except that the current page number counter 33, the prediction target page selection unit 34, the predicted page number storage unit 35, and the predicted page data amount storage unit. 36 is added.
Further, due to the above configuration, the operations of the image reading unit 21 and the total data amount calculating unit 29 are different from those of the second embodiment. Note that parts similar to those of the second embodiment described above are denoted by the same reference numerals and description thereof is omitted.

カレントページ数カウンタ33は、複数枚の原稿をADF3から給紙する制御を行うために、現在処理中のページ数を記憶するカウンタ用の記憶領域であり、記憶部11の一部を利用する。
予測対象ページ選択部34は、ADF3から給紙する複数枚の原稿に対してページデータ量の予測対象となるページを所定の規則に基づいて選択する選択部である。
The current page number counter 33 is a counter storage area for storing the number of pages currently being processed in order to control feeding of a plurality of documents from the ADF 3, and uses a part of the storage unit 11.
The prediction target page selection unit 34 is a selection unit that selects, based on a predetermined rule, a page whose page data amount is to be predicted for a plurality of documents fed from the ADF 3.

予測済みページ数格納部35は、予測対象ページ選択部34で選択されたページ数(ページ番号)が格納される記憶領域である。選択されるページ数は複数であるため、複数のページが記憶できるように記憶部11の領域が確保されるものとする。
予測済みページデータ量格納部36は、ページデータ量の予測対象となるページに対応付けて予測されたページデータ量が格納される記憶部11の領域である。
The predicted page number storage unit 35 is a storage area in which the number of pages (page number) selected by the prediction target page selection unit 34 is stored. Since there are a plurality of pages to be selected, it is assumed that an area of the storage unit 11 is secured so that a plurality of pages can be stored.
The predicted page data amount storage unit 36 is an area of the storage unit 11 in which the page data amount predicted in association with the page for which the page data amount is predicted is stored.

画像読取部21は、ADF3に載置された原稿の画像データを読取るスキャン動作だけでなく、画像データを読取ることなく原稿を1枚ずつ分離して搬送し、排出する動作を行う制御機能を有するものとする。
総データ量算出部29は、予測済みページ数格納部35および予測済みページデータ量格納部36から選択されたページ数、予測されたページデータ量を取得できるようになっている。
The image reading unit 21 has a control function of performing not only a scanning operation for reading image data of a document placed on the ADF 3 but also an operation for separating and conveying the documents one by one without reading the image data. Shall.
The total data amount calculation unit 29 can acquire the number of pages selected from the predicted page number storage unit 35 and the predicted page data amount storage unit 36 and the predicted page data amount.

上述した構成の複合機1の動作を説明する。
なお、第3の実施例の動作は、第2の実施例で説明した図18の第2の実施例におけるサイズ予測処理を示すフローチャートが図22の第3の実施例におけるサイズ予測処理を示すフローチャートに置き換わったものであるため、第1の実施例で説明した図8、図9、図11、図12、図13の説明を省略し、図22の第3の実施例におけるサイズ予測処理を示すフローチャートについてのみ、図中Sで表すステップにしたがって説明する。
The operation of the MFP 1 having the above-described configuration will be described.
The operation of the third embodiment is the same as the flowchart of the size prediction process in the second embodiment of FIG. 18 described in the second embodiment, but the flowchart of the size prediction process in the third embodiment of FIG. FIG. 8, FIG. 9, FIG. 11, FIG. 12, FIG. 13 described in the first embodiment is omitted, and the size prediction process in the third embodiment of FIG. 22 is shown. Only the flowchart will be described in accordance with steps represented by S in the figure.

S801:操作パネル制御部20は、総画像データ量を予測する動作を行うためのサイズ予測画面を操作パネル4に表示する。
操作パネル制御部20が表示するサイズ予測画面は、例えば図20に示すようなサイズ予測画面200であり、USBメモリ24の空容量とともに「現在の設定で、複数ページスキャンの画像サイズを予測します。」等の案内文言、および読取る全原稿の枚数の入力を誘導する「原稿枚数を入力して下さい。」等の誘導文言を表示する。
S801: The operation panel control unit 20 displays a size prediction screen for performing an operation of predicting the total image data amount on the operation panel 4.
The size prediction screen displayed by the operation panel control unit 20 is a size prediction screen 200 as shown in FIG. 20, for example, along with the free space of the USB memory 24, “The current setting predicts the image size of the multiple page scan. , Etc., and guidance words such as “Please enter the number of documents.” Are displayed to guide the input of the number of all documents to be read.

S802:サイズ予測画面を表示すると操作パネル制御部20は、読取る全原稿の枚数としての総ページ数の入力を受付け、入力された総ページ数を総ページ数格納部26に格納する。
操作パネル制御部20は、例えば図20に示すように、これから総画像データ量を予測しようとする全原稿の枚数を操作パネル4のテンキーにより操作者に入力させ、入力された枚数を原稿の総ページ数201として総ページ数格納部26に格納する。なお、図20では原稿の総ページ数201を100枚として入力された例を示している。
S802: When the size prediction screen is displayed, the operation panel control unit 20 receives an input of the total number of pages as the number of all originals to be read, and stores the input total number of pages in the total page number storage unit 26.
For example, as shown in FIG. 20, the operation panel control unit 20 causes the operator to input the total number of originals for which the total image data amount is to be predicted from the numeric keypad of the operation panel 4, and the input number of total originals is calculated. The page number 201 is stored in the total page number storage unit 26. FIG. 20 shows an example in which the total number of pages 201 of the document is input as 100 sheets.

S803:総ページ数が入力されると操作パネル制御部20は、総画像データ量を予測する動作を開始させるための予測開始ボタン203が押下されることを待機する。
操作パネル制御部20は、例えば図20に示すように「ADFに全ての原稿をセットして下さい。」等の誘導文言202を表示させるとともに総画像データ量を予測する動作を開始させるための「予測開始」ボタン203およびサイズ予測処理を中止するための「戻る」ボタン204を表示させ、その「予測開始」ボタン203の押下をタッチパネルで検知する。なお、「戻る」ボタン204が押下された場合、サイズ予測処理を終了して図4に示す設定画面を表示する。
S803: When the total number of pages is input, the operation panel control unit 20 waits for the prediction start button 203 for starting the operation of predicting the total image data amount to be pressed.
For example, as shown in FIG. 20, the operation panel control unit 20 displays a guidance word 202 such as “Please set all documents on the ADF” and “starts an operation for predicting the total image data amount”. A “prediction start” button 203 and a “return” button 204 for canceling the size prediction process are displayed, and pressing of the “prediction start” button 203 is detected by the touch panel. If the “return” button 204 is pressed, the size prediction process is terminated and the setting screen shown in FIG. 4 is displayed.

S804:「予測開始」ボタンの押下を検知すると制御部10は、カレントページ数カウンタ33を“0”に初期化する。
S805:制御部10は、カレントページ数カウンタ33に“1”を加算する。
S806:制御部10は、カレントページ数カウンタ33と総ページ数格納部26に格納された総ページ数とを比較し、カレントページ数カウンタ33が総ページを超えたか否かを判定する。その判定の結果、超えていると判定すると処理をS816へ移行し、超えていないと判定すると処理をS807へ移行する。
S804: Upon detecting that the “prediction start” button is pressed, the control unit 10 initializes the current page number counter 33 to “0”.
S805: The control unit 10 adds “1” to the current page number counter 33.
S806: The control unit 10 compares the current page number counter 33 with the total page number stored in the total page number storage unit 26, and determines whether or not the current page number counter 33 exceeds the total pages. As a result of the determination, if it is determined that it has exceeded, the process proceeds to S816, and if it is determined that it has not exceeded, the process proceeds to S807.

S807:予測対象ページ選択部34は、カレントページ数カウンタ33で計数されている現在のページが所定の基準に基づいて選択された予測対象のページであるか否かを判定する。
なお、予測対象のページは、例えば入力された総ページ数からランダムに3ページ分を選択するものとする。
S807: The prediction target page selection unit 34 determines whether or not the current page counted by the current page number counter 33 is a prediction target page selected based on a predetermined criterion.
Note that, as the pages to be predicted, for example, three pages are randomly selected from the total number of input pages.

S808:S807の判定の結果、現在のページが予測対象のページであると判定すると処理をS810へ移行し、予測対象のページでないと判定すると処理をS809へ移行する。
S809:画像読取部21が、ADF3から1枚の原稿を給紙し、画像データを読取ることなく原稿を搬送して排出し、処理をS805へ移行する。
S808: As a result of the determination in S807, if it is determined that the current page is a prediction target page, the process proceeds to S810. If it is determined that the current page is not a prediction target page, the process proceeds to S809.
S809: The image reading unit 21 feeds one original from the ADF 3, conveys and discharges the original without reading the image data, and the process proceeds to S805.

S810:予測対象ページ選択部34が、処理中である現在のページ数(ページ番号)を予測済みページ数格納部35に格納する。
S811:画像読取部21は、ADF3に載置された原稿を読取るスキャン動作を行い、読取った原稿の画像データを画像データ記憶部22に格納する。
S812:原稿の画像データを画像データ記憶部22に格納すると画像領域検出部27はその画像データから画像領域を抽出する画像領域検出処理を行う。なお、画像領域検出処理は上述したとおりである。
S810: The prediction target page selection unit 34 stores the current page number (page number) being processed in the predicted page number storage unit 35.
S811: The image reading unit 21 performs a scanning operation of reading a document placed on the ADF 3, and stores image data of the read document in the image data storage unit 22.
S812: When image data of a document is stored in the image data storage unit 22, the image region detection unit 27 performs image region detection processing for extracting an image region from the image data. The image region detection process is as described above.

S813:圧縮データ量検査部32が、データ形式変換部23を呼び出し、画像領域検出部27が抽出した画像領域の画像データを圧縮検査し、その圧縮データ量を出力する。
例えば、圧縮データ量検査部32は、図17(a)に示すように画像領域検出部27が抽出した画像領域171から画像データを1ラインずつ取り出し、データ形式変換部23を用いて圧縮処理を行い、圧縮した場合のデータ量を算出する。このときの圧縮処理は、例えばJPEG圧縮等である。
S813: The compressed data amount inspection unit 32 calls the data format conversion unit 23, compresses and inspects the image data of the image area extracted by the image region detection unit 27, and outputs the compressed data amount.
For example, as shown in FIG. 17A, the compressed data amount inspection unit 32 extracts image data line by line from the image area 171 extracted by the image area detection unit 27, and performs compression processing using the data format conversion unit 23. And calculate the amount of data when compressed. The compression process at this time is, for example, JPEG compression.

なお、画像形式の例としてPDFファイル形式の場合は、用紙サイズと図17(b)に示す実イメージデータ172(JPEG画像)とその位置情報をデータとしてファイルに格納するようになっている。
S814:ページデータ量算出部28は、圧縮データ量検査部32から出力されたページデータ量を予測した1枚の原稿のページデータ量とする。
In the case of the PDF file format as an example of the image format, the paper size, the actual image data 172 (JPEG image) shown in FIG. 17B, and its position information are stored in the file as data.
S814: The page data amount calculation unit 28 sets the page data amount output from the compressed data amount inspection unit 32 as the predicted page data amount of one original.

S815:ページデータ量算出部28は、予測したページデータ量を現在のページ数(ページ番号)に対応付けて予測済みページデータ量格納部36に格納し、処理をS805へ移行して次の原稿の処理を行う。
なお、操作パネル制御部20は、サイズ予測モード処理中画面を表示するものとする。このサイズ予測モード処理中画面210は、例えば図21に示すように「10/100ページ目をサンプリング。処理完了」の文言211、「30/100ページ目をサンプリング。処理完了」の文言212、「50/100ページ目をサンプリング。処理中」の文言213を表示するものとする。
S815: The page data amount calculation unit 28 stores the predicted page data amount in the predicted page data amount storage unit 36 in association with the current number of pages (page number), and the process proceeds to S805 to proceed to the next document. Perform the process.
Note that the operation panel control unit 20 displays a screen in the size prediction mode process. For example, as shown in FIG. 21, the size prediction mode processing screen 210 has a wording 211 “sampled page 10/100. Processing completed”, a wording 212 “sampled page 30/100. Processing completed”, “ It is assumed that the wording 213 “sampled on page 50/100.

S816:一方、S806ですべての原稿の処理が終了したと判定されると総データ量算出部29が、予測済みページデータ量格納部36に、選択されたページ数(ページ番号)に対応付けて格納されたページデータ量から1ページあたりの平均ページデータ量を算出する。
S817:総データ量算出部29は、算出した平均ページデータ量に総ページ数格納部26から取り出した総ページ数を乗算(平均ページデータ量×総ページ数)し、総データ量の予測値を算出する。
S816: On the other hand, if it is determined in S806 that all the documents have been processed, the total data amount calculation unit 29 associates the predicted page data amount storage unit 36 with the selected number of pages (page number). An average page data amount per page is calculated from the stored page data amount.
S817: The total data amount calculation unit 29 multiplies the calculated average page data amount by the total page number extracted from the total page number storage unit 26 (average page data amount × total page number), and obtains a predicted value of the total data amount. calculate.

S818:データサイズ比較部30は、算出された総データ量と空容量検出部25で検出されたUSBメモリ24の空容量とを比較する。
S819:その比較の結果としてUSBメモリ24の空容量が総データ量以上の場合は「格納可能」、一方USBメモリ24の空容量が総データ量未満の場合は「格納オーバー」を出力し、サイズ予測処理を終了する。
S818: The data size comparison unit 30 compares the calculated total data amount with the free capacity of the USB memory 24 detected by the free capacity detection unit 25.
S819: As a result of the comparison, if the free capacity of the USB memory 24 is greater than or equal to the total data amount, “storable” is output, whereas if the free capacity of the USB memory 24 is less than the total data amount, “storage over” is output. The prediction process is terminated.

以上説明したように、第3の実施例では、第1の実施例および第2の実施例の効果に加え、原稿全体から複数枚の原稿を選択して画像データの総データ量の予測値を算出するようにしたことにより、全原稿の画像データをUSBメモリに格納することができるか否かの判定をより精度良く行うことができるようになるという効果が得られる。   As described above, in the third embodiment, in addition to the effects of the first embodiment and the second embodiment, a plurality of documents are selected from the entire document, and the predicted value of the total amount of image data is set. Since the calculation is performed, it is possible to determine whether or not the image data of all the originals can be stored in the USB memory with higher accuracy.

図23は第4の実施例における画像読取装置の機能ブロック図である。
図23において、複合機1は操作パネル制御部20、画像読取部21、画像データ記憶部22、データ形式変換部23、USBメモリ24、空容量検出部25、ページデータ量算出部28、総データ量算出部29、データサイズ比較部30、推奨設定算出部31、予測済みページデータ量格納部36、および画像種別解析処理部37の各機能ブロックで構成されている。
FIG. 23 is a functional block diagram of the image reading apparatus in the fourth embodiment.
In FIG. 23, the multifunction device 1 includes an operation panel control unit 20, an image reading unit 21, an image data storage unit 22, a data format conversion unit 23, a USB memory 24, an empty capacity detection unit 25, a page data amount calculation unit 28, and total data. The function block includes an amount calculation unit 29, a data size comparison unit 30, a recommended setting calculation unit 31, a predicted page data amount storage unit 36, and an image type analysis processing unit 37.

第4の実施例における画像読取装置の構成は、第1の実施例の構成に予測済みページデータ量格納部36および画像種別解析処理部37を加え、また総ページ数格納部26および圧縮データ量検査部32を削除した構成になっている。
また、上記の構成としたことにより、画像読取部21および総データ量算出部29の動作が第1の実施例と異なる。なお、上述した第1の実施例と同様の部分は、同一の符号を付してその説明を省略する。
In the configuration of the image reading apparatus in the fourth embodiment, a predicted page data amount storage unit 36 and an image type analysis processing unit 37 are added to the configuration of the first embodiment, and the total page number storage unit 26 and the compressed data amount. The inspection unit 32 is omitted.
Further, due to the above configuration, the operations of the image reading unit 21 and the total data amount calculating unit 29 are different from those of the first embodiment. Note that parts similar to those of the first embodiment described above are denoted by the same reference numerals and description thereof is omitted.

予測済みページデータ量格納部36は、ページデータ量の予測対象となるページに対応付けて予測されたページデータ量が格納される記憶部11の領域である。
総データ量算出部29は、予測済みページデータ量格納部36から予測されたページデータ量を取得できるようになっている。
画像種別解析処理部37は、スキャナ2で読取った原稿の画像データを解析し、その原稿の内容が文字のみで構成されているか、写真のみで構成されているか、文字および写真の双方で構成されているかの画像種別を判別する画像処理部である。なお、画像データを解析する処理は、公知の技術を利用するものとする。
The predicted page data amount storage unit 36 is an area of the storage unit 11 in which the page data amount predicted in association with the page for which the page data amount is predicted is stored.
The total data amount calculation unit 29 can acquire the predicted page data amount from the predicted page data amount storage unit 36.
The image type analysis processing unit 37 analyzes the image data of the document read by the scanner 2, and whether the content of the document is composed only of characters, is composed only of photographs, or is composed of both characters and photographs. This is an image processing unit that determines the image type of the image. Note that the processing for analyzing the image data uses a known technique.

上述した構成の複合機1の動作を説明する。
なお、第4の実施例の動作は、第1の実施例で説明した図10の第1の実施例におけるサイズ予測処理を示すフローチャートが図24の第4の実施例におけるサイズ予測処理を示すフローチャートに置き換わったものであるため、第1の実施例で説明した図8、図9、図11、図12、図13の説明を省略し、図24の第4の実施例におけるサイズ予測処理を示すフローチャートについてのみ、図中Sで表すステップにしたがって説明する。
The operation of the MFP 1 having the above-described configuration will be described.
The operation of the fourth embodiment is the same as the flowchart of the size prediction process in the first embodiment of FIG. 10 described in the first embodiment, but the flowchart of the size prediction process in the fourth embodiment of FIG. FIG. 8, FIG. 9, FIG. 11, FIG. 12, FIG. 13 described in the first embodiment is omitted, and the size prediction process in the fourth embodiment of FIG. 24 is shown. Only the flowchart will be described in accordance with steps represented by S in the figure.

S901:操作パネル制御部20は、総画像データ量を予測する動作を行うためのサイズ予測画面を操作パネル4に表示する。
操作パネル制御部20が表示するサイズ予測画面は、例えばUSBメモリ24の空容量とともに「現在の設定で、複数ページスキャンの画像サイズを予測します。」等の案内文言を表示する。
S901: The operation panel control unit 20 displays a size prediction screen for performing an operation of predicting the total image data amount on the operation panel 4.
The size prediction screen displayed by the operation panel control unit 20 displays, for example, a guidance message such as “Predict the image size of the multiple page scan with the current settings” together with the free space of the USB memory 24.

S902:操作パネル制御部20は、総画像データ量を予測する動作を開始させるための予測開始ボタンが押下されることを待機する。
操作パネル制御部20は、例えば「ADFに全ての原稿をセットして下さい。」等の誘導文言を表示させるとともに総画像データ量を予測する動作を開始させるための「予測開始」ボタンおよびサイズ予測処理を中止するための「戻る」ボタンを表示させ、その「予測開始」ボタンの押下をタッチパネルで検知する。なお、「戻る」ボタンが押下された場合、サイズ予測処理を終了して図4に示す設定画面を表示する。
S902: The operation panel control unit 20 waits for a prediction start button for starting an operation for predicting the total image data amount to be pressed.
The operation panel control unit 20 displays a guidance message such as “Please set all documents in the ADF” and a “prediction start” button for starting an operation for predicting the total image data amount and size prediction. A “return” button for canceling the process is displayed, and pressing of the “prediction start” button is detected by the touch panel. If the “return” button is pressed, the size prediction process is terminated and the setting screen shown in FIG. 4 is displayed.

S903:画像読取部21は、図示しないセンサ等の検知手段でADF3に原稿が存在するか否かを判定し、原稿が存在すると判定すると処理をS904へ移行し、存在しないと判定すると読取る原稿が終了したものとして処理をS910へ移行する。
S904:画像読取部21は、ADF3に載置された原稿を読取るスキャン動作を行い、読取った原稿の画像データを画像データ記憶部22に格納する。
S903: The image reading unit 21 determines whether or not a document exists in the ADF 3 by a detection unit such as a sensor (not shown). If it is determined that there is a document, the process proceeds to S904. Assuming that the processing has been completed, the process proceeds to S910.
S904: The image reading unit 21 performs a scanning operation for reading a document placed on the ADF 3, and stores the image data of the read document in the image data storage unit 22.

S905:原稿の画像データを画像データ記憶部22に格納すると画像領域検出部27はその画像データから画像領域を抽出する画像領域検出処理を行う。なお、画像領域検出処理は上述したとおりである。
S906:画像種別解析処理部37が、画像領域検出部27が抽出した画像領域の画像データを解析して画像種別を判別する。
S905: When the image data of the document is stored in the image data storage unit 22, the image region detection unit 27 performs image region detection processing for extracting an image region from the image data. The image region detection process is as described above.
S906: The image type analysis processing unit 37 analyzes the image data of the image area extracted by the image area detection unit 27 and determines the image type.

S907:図10のS306と同様に、ページデータ量算出部28は、画像領域検出部27から出力された画像領域の左上座標(x1、y1)ならびに右下座標(x2、y2)、カラー/モノクロ、および階調数から抽出した画像領域の画像データ量(非圧縮)を算出し、算出された画像データ量を予測した1枚の原稿のページデータ量とする。
S908:ページデータ量算出部28は、予測した非圧縮のページデータ量にS906で判別された画像種別に対応する圧縮比率を乗算(ページデータ量×圧縮比率)し、圧縮後のページデータ量を予測する。
S907: Similar to S306 in FIG. 10, the page data amount calculation unit 28 outputs the upper left coordinates (x1, y1) and lower right coordinates (x2, y2), color / monochrome of the image area output from the image area detection unit 27. And the image data amount (uncompressed) of the image area extracted from the number of gradations is calculated, and the calculated image data amount is used as the predicted page data amount of one original.
S908: The page data amount calculation unit 28 multiplies the predicted uncompressed page data amount by the compression ratio corresponding to the image type determined in S906 (page data amount × compression ratio), and calculates the page data amount after compression. Predict.

この圧縮比率は、例えば図25に示すように原稿の内容が文字のみで構成されている場合は10%、写真のみで構成されている場合は40%、文字および写真の双方で構成されている場合は20%とする。
S909:ページデータ量算出部28は、予測したページデータ量を現在のページ数(ページ番号)に対応付けて予測済みページデータ量格納部36に格納し、処理をS903へ移行して次の原稿の処理を行う。
For example, as shown in FIG. 25, the compression ratio is 10% when the content of the document is composed only of characters, and 40% when the content of the document is composed only of photographs, and is composed of both characters and photographs. In the case, 20%.
S909: The page data amount calculation unit 28 associates the predicted page data amount with the current page number (page number) and stores it in the predicted page data amount storage unit 36. The process proceeds to S903, and the next document Perform the process.

S910:一方、S903ですべての原稿の処理が終了したと判定されると総データ量算出部29が、予測済みページデータ量格納部36に格納されたページデータ量を合計して総データ量の予測値を算出する。
S911:データサイズ比較部30は、算出された総データ量と空容量検出部25で検出されたUSBメモリ24の空容量とを比較する。
S910: On the other hand, if it is determined in S903 that all the documents have been processed, the total data amount calculation unit 29 adds up the page data amounts stored in the predicted page data amount storage unit 36 to obtain the total data amount. Calculate the predicted value.
S911: The data size comparison unit 30 compares the calculated total data amount with the free capacity of the USB memory 24 detected by the free capacity detection unit 25.

S912:その比較の結果としてUSBメモリ24の空容量が総データ量以上の場合は「格納可能」、一方USBメモリ24の空容量が総データ量未満の場合は「格納オーバー」を出力し、サイズ予測処理を終了する。
このように読取る全原稿に対してプレスキャンを行って画像データの総データ量の予測値を算出するようにしたことにより、より精度良く総データ量を予測することができるようになる。
S912: As a result of the comparison, when the free capacity of the USB memory 24 is equal to or larger than the total data amount, “storable” is output, whereas when the free capacity of the USB memory 24 is less than the total data amount, “storage over” is output, The prediction process is terminated.
By performing pre-scanning on all the originals to be read in this way and calculating the predicted value of the total data amount of the image data, the total data amount can be predicted with higher accuracy.

また、原稿の内容が文字、写真、または文字と写真で構成されているかの画像種別を判別するようにしたことにより、画像を圧縮する場合よりも短い処理時間で画像種別を判別することができる。
なお、第3の実施例のように読取る原稿全体から複数枚の原稿を選択して画像データの総データ量の予測値を算出するようにしてもよい。このようにすることにより、画像を圧縮する場合よりも短い処理時間で画像種別を判別することができる。
Also, by determining the image type whether the content of the document is composed of characters, photos, or characters and photos, it is possible to determine the image type in a shorter processing time than when compressing the image. .
Note that, as in the third embodiment, a plurality of originals may be selected from the entire originals to be read, and the predicted value of the total amount of image data may be calculated. In this way, the image type can be determined in a shorter processing time than when the image is compressed.

以上説明したように、第4の実施例では、第1の実施例の効果に加え、読取る全原稿に対してプレスキャンを行って画像データの総データ量の予測値を算出するようにしたことにより、より精度良く総データ量を予測することができるという効果が得られる。
また、原稿の内容が文字、写真、または文字と写真で構成されているかの画像種別を判別するようにしたことにより、画像を圧縮する場合よりも短い処理時間で画像種別を判別することができ、画像データの総データ量を予測する処理時間を短縮することができるという効果が得られる。
As described above, in the fourth embodiment, in addition to the effects of the first embodiment, pre-scanning is performed on all originals to be read to calculate the predicted value of the total amount of image data. Thus, it is possible to predict the total data amount with higher accuracy.
In addition, the image type can be determined in a shorter processing time than the case of compressing the image by determining the image type whether the content of the document is composed of characters, photos, or characters and photos. The effect that the processing time for predicting the total amount of image data can be shortened is obtained.

したがって、予測精度と利便性の調和がとれた画像読取装置を提供することができるという効果が得られる。
なお、上述した各実施例では、外部記憶領域をUSBメモリとして説明したが、USBメモリに限られることなく、多種類ある市販のメモリカードやディスク等であってもよい。
Therefore, it is possible to provide an image reading apparatus in which prediction accuracy and convenience are harmonized.
In each of the embodiments described above, the external storage area has been described as a USB memory. However, the present invention is not limited to a USB memory, and various types of commercially available memory cards and disks may be used.

第1の実施例における画像読取装置の機能ブロック図Functional block diagram of the image reading apparatus in the first embodiment 第1の実施例における画像読取装置の構成を示すブロック図1 is a block diagram illustrating a configuration of an image reading apparatus according to a first embodiment. 第1の実施例における画像読取装置の制御系を示すブロック図1 is a block diagram showing a control system of an image reading apparatus in a first embodiment. 第1の実施例における設定画面の説明図Explanatory drawing of the setting screen in the first embodiment 第1の実施例におけるサイズ予測モード画面の説明図Explanatory drawing of the size prediction mode screen in 1st Example 第1の実施例におけるサイズ予測結果画面の説明図Explanatory drawing of the size prediction result screen in 1st Example 第1の実施例における原稿の領域検出結果の説明図Explanatory drawing of the document area detection result in the first embodiment 第1の実施例におけるメイン処理を示すフローチャートFlowchart showing main processing in the first embodiment 第1の実施例における設定モード処理を示すフローチャートFlowchart showing setting mode processing in the first embodiment 第1の実施例におけるサイズ予測処理を示すフローチャートFlowchart showing size prediction processing in the first embodiment 第1の実施例における画像領域検出処理を示すフローチャートFlowchart showing image area detection processing in the first embodiment 第1の実施例における推奨設定算出処理を示すフローチャートThe flowchart which shows the recommended setting calculation process in a 1st Example. 第1の実施例におけるスキャン処理を示すフローチャートFlowchart showing scan processing in the first embodiment 第1の実施例における設定テーブルの説明図Explanatory drawing of the setting table in 1st Example 第2の実施例における画像読取装置の機能ブロック図Functional block diagram of the image reading apparatus in the second embodiment 第2の実施例におけるサイズ予測モード画面の説明図Explanatory drawing of the size prediction mode screen in 2nd Example 第2の実施例における原稿の画像領域検出および圧縮データ量検査の説明図Explanatory drawing of document image area detection and compressed data amount inspection in the second embodiment 第2の実施例におけるサイズ予測処理を示すフローチャートFlowchart showing size prediction processing in the second embodiment 第3の実施例における画像読取装置の機能ブロック図Functional block diagram of the image reading apparatus in the third embodiment 第3の実施例におけるサイズ予測モード画面の説明図Explanatory drawing of the size prediction mode screen in 3rd Example 第3の実施例におけるサイズ予測モード処理中画面の説明図Explanatory drawing of the screen during size prediction mode processing in the third embodiment 第3の実施例におけるサイズ予測処理を示すフローチャートFlowchart showing size prediction processing in the third embodiment 第4の実施例における画像読取装置の機能ブロック図Functional block diagram of an image reading apparatus in the fourth embodiment 第4の実施例におけるサイズ予測処理を示すフローチャートFlowchart showing size prediction processing in the fourth embodiment 第4の実施例における非圧縮サイズに対する圧縮比率を示すテーブルの説明図Explanatory drawing of the table which shows the compression ratio with respect to the uncompressed size in a 4th Example.

符号の説明Explanation of symbols

1 複合機
2 スキャナ
3 ADF
4 操作パネル
5 プリンタ
6 給紙トレイ
7 USBインタフェース
10 制御部
11 記憶部
12 ネットワークインタフェース
13 画像処理ASIC
14 データバス
20 操作パネル制御部
21 画像読取部
22 画像データ記憶部
23 データ形式変換部
24 USBメモリ
25 空容量検出部
26 総ページ数格納部
27 画像領域検出部
28 ページデータ量算出部
29 総データ量算出部
30 データサイズ比較部
31 推奨設定算出部
32 圧縮データ量検査部
33 カレントページ数カウンタ
34 予測対象ページ選択部
35 予測済みページ数格納部
36 予測済みページデータ量格納部
37 画像種別解析処理部
1 MFP 2 Scanner 3 ADF
4 Operation Panel 5 Printer 6 Paper Tray 7 USB Interface 10 Control Unit 11 Storage Unit 12 Network Interface 13 Image Processing ASIC
DESCRIPTION OF SYMBOLS 14 Data bus 20 Operation panel control part 21 Image reading part 22 Image data storage part 23 Data format conversion part 24 USB memory 25 Empty capacity detection part 26 Total page number storage part 27 Image area detection part 28 Page data amount calculation part 29 Total data Amount calculation unit 30 Data size comparison unit 31 Recommended setting calculation unit 32 Compressed data amount inspection unit 33 Current page number counter 34 Prediction target page selection unit 35 Predicted page number storage unit 36 Predicted page data amount storage unit 37 Image type analysis process Part

Claims (9)

複数枚の原稿の画像を読取る画像読取装置において、
原稿の画像を読取る画像読取部と、
前記画像読取部で読取った画像を記憶させる記憶装置と、
前記記憶装置の空容量を検出する空容量検出部と、
前記画像読取部が所定の読取条件にしたがって原稿の画像を読取り、その原稿の画像データに基づいて全原稿の総画像データ量の予測値を算出する総データ量算出部とを設け、
前記空容量検出部で検出された前記記憶装置の空容量と前記総データ量算出部で算出された総画像データ量の予測値とを比較し、前記予測値が前記空容量を超えると判定したとき、前記画像読取部が、前記所定の読取条件より画質を低下させた読取条件にしたがって全原稿の画像を読取るようにしたことを特徴とする画像読取装置。
In an image reading apparatus that reads an image of a plurality of documents,
An image reading unit for reading an image of a document;
A storage device for storing an image read by the image reading unit;
An empty capacity detector for detecting an empty capacity of the storage device;
A total data amount calculation unit that reads an image of a document according to a predetermined reading condition and calculates a predicted value of the total image data amount of all the documents based on the image data of the document;
The free space of the storage device detected by the free space detector is compared with the predicted value of the total image data amount calculated by the total data amount calculator, and it is determined that the predicted value exceeds the free space. The image reading apparatus is characterized in that the image reading unit reads images of all originals in accordance with reading conditions in which image quality is lower than the predetermined reading conditions.
請求項1の画像読取装置において、
前記所定の読取条件より画質を低下させた読取条件は、解像度、階調数、カラー若しくはモノクロモード、およびファイル形式のうちのいずれか1以上を変更してなる条件であることを特徴とする画像読取装置。
The image reading apparatus according to claim 1.
The reading condition in which the image quality is lowered from the predetermined reading condition is a condition obtained by changing any one or more of resolution, number of gradations, color or monochrome mode, and file format. Reader.
請求項1または請求項2の画像読取装置において、
前記所定の読取条件で読取る原稿を、読取り領域を定義した原稿としたことを特徴とする画像読取装置。
The image reading apparatus according to claim 1 or 2,
An image reading apparatus, wherein the document read under the predetermined reading condition is a document in which a reading area is defined.
請求項1または請求項2の画像読取装置において、
前記総データ量算出部は、読取った原稿の画像の文字、図形または写真が存在する画像領域を検出する画像領域検出部を有することを特徴とする画像読取装置。
The image reading apparatus according to claim 1 or 2,
The total data amount calculation unit includes an image area detection unit that detects an image area in which characters, graphics, or photographs of an image of a read document exist.
請求項4の画像読取装置において、
複数枚の原稿のうちの一部の原稿の画像データを選択する画像選択部を設け、
前記画像領域検出部が、前記画像選択部で選択された原稿の画像データから画像領域を検出することを特徴とする画像読取装置。
The image reading apparatus according to claim 4.
An image selection unit for selecting image data of a part of a plurality of documents is provided,
The image reading apparatus, wherein the image area detection unit detects an image area from image data of a document selected by the image selection unit.
請求項4または請求項5の画像読取装置において、
前記総データ量算出部は、前記画像領域を圧縮して全原稿の総画像データ量の予測値を算出することを特徴とする画像読取装置。
The image reading apparatus according to claim 4 or 5,
The total data amount calculation unit compresses the image area to calculate a predicted value of the total image data amount of all documents.
請求項4または請求項5の画像読取装置において、
前記総データ量算出部は、前記画像領域から画像種別を判別して全原稿の総画像データ量の予測値を算出することを特徴とする画像読取装置。
The image reading apparatus according to claim 4 or 5,
The total data amount calculation unit determines an image type from the image area and calculates a predicted value of a total image data amount of all originals.
請求項7の画像読取装置において、
前記画像種別は、文字、写真または文字ならびに写真の双方で、構成された画像の種別としたことを特徴とする画像読取装置。
The image reading apparatus according to claim 7.
The image reading apparatus according to claim 1, wherein the image type is a type of an image composed of a character, a photo, or both a character and a photo.
請求項1から請求項8のいずれか1項の画像読取装置において、
前記記憶装置を、外部記憶装置としたことを特徴とする画像読取装置。
The image reading apparatus according to any one of claims 1 to 8,
An image reading apparatus, wherein the storage device is an external storage device.
JP2008282474A 2008-10-31 2008-10-31 Image reading unit Pending JP2010109944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008282474A JP2010109944A (en) 2008-10-31 2008-10-31 Image reading unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008282474A JP2010109944A (en) 2008-10-31 2008-10-31 Image reading unit

Publications (1)

Publication Number Publication Date
JP2010109944A true JP2010109944A (en) 2010-05-13

Family

ID=42298886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008282474A Pending JP2010109944A (en) 2008-10-31 2008-10-31 Image reading unit

Country Status (1)

Country Link
JP (1) JP2010109944A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013156846A (en) * 2012-01-30 2013-08-15 Fujitsu Ltd Storage management method and storage management device
JP2017208774A (en) * 2016-05-20 2017-11-24 カシオ計算機株式会社 Data amount estimation method, program, and information processing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013156846A (en) * 2012-01-30 2013-08-15 Fujitsu Ltd Storage management method and storage management device
JP2017208774A (en) * 2016-05-20 2017-11-24 カシオ計算機株式会社 Data amount estimation method, program, and information processing device
US10187536B2 (en) 2016-05-20 2019-01-22 Casio Computer Co., Ltd. Method, apparatus and storage medium for estimating the data volume of a digital book

Similar Documents

Publication Publication Date Title
US9917970B2 (en) Image reading apparatus, method for controlling the same, and storage medium
US9398191B2 (en) Electronic document generation system, electronic document generation apparatus, and recording medium
US8681393B2 (en) Image reader capable of detecting blank document sheet
US20130182285A1 (en) Image forming apparatus and document preview method for the same
JP2006270266A (en) Image processor and image processing method
JP2006238289A (en) Method of magnifying display data
JP5183587B2 (en) Image processing apparatus, image processing method, and program for executing image processing method
EP2403228B1 (en) Image scanning apparatus, computer readable medium, and image storing method
US7813565B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP4933415B2 (en) Image processing apparatus, method, and program
JP2007310775A (en) Image processor and image processing method
JP2010109944A (en) Image reading unit
JP2010057017A (en) Image processing apparatus and method
JP2020093494A (en) Image output device, image output method, and output image data production method
CN115134472A (en) Information processing apparatus, control method thereof, and storage medium
US20220166896A1 (en) Image reading device and image reading method
US20200175308A1 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
JP6743447B2 (en) Server program, image generation device, and image data generation method
JP5474222B2 (en) Image processing apparatus, image processing method, and program
US9498980B2 (en) Printing apparatus, printing method and image processing apparatus
JP7226007B2 (en) Image processing device, image processing method, and program
JP5464157B2 (en) Image processing apparatus and image processing program
CN111886850B (en) Image reading apparatus
JP2021044687A (en) Image processing apparatus, and image processing method
JP4520249B2 (en) Image forming apparatus, image forming method, and program for causing computer to execute the method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110131