JP2015226264A - Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program - Google Patents

Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program Download PDF

Info

Publication number
JP2015226264A
JP2015226264A JP2014111529A JP2014111529A JP2015226264A JP 2015226264 A JP2015226264 A JP 2015226264A JP 2014111529 A JP2014111529 A JP 2014111529A JP 2014111529 A JP2014111529 A JP 2014111529A JP 2015226264 A JP2015226264 A JP 2015226264A
Authority
JP
Japan
Prior art keywords
document
characters
documents
image
image processing
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
JP2014111529A
Other languages
Japanese (ja)
Inventor
泰崇 平山
Yasutaka Hirayama
泰崇 平山
真一 尾関
Shinichi Ozeki
真一 尾関
貴史 細木
Takashi Hosoki
貴史 細木
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2014111529A priority Critical patent/JP2015226264A/en
Publication of JP2015226264A publication Critical patent/JP2015226264A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of precisely detecting multiple documents being fed one over another in reading a plurality of documents, an image formation apparatus with the same, an image processing program, and a recording medium having the program recorded.SOLUTION: An image formation apparatus executes a process of conveying a plurality of documents and generating read image data (steps 400 and 408), presents a request to change the direction of a document from a direction in the first process before executing the second process (step 404), and compares values of two out of one set of the numbers of times of documents, one set of total data sizes, and one set of the total numbers of characters calculated in the two processes and thereby determines whether a plurality of documents are fed one over another together (step 412). Consequently, simultaneous multiple-document feeding can be precisely detected, and a function that a user specifies can be executed using image data generated without the simultaneous multiple-document feeding.

Description

本発明は、複数枚の原稿を読取る際に、2枚以上の原稿が重なって搬送されたことを検出することができる画像処理装置、それを備えた画像形成装置、画像処理プログラム、及びそのプログラムを記録した記録媒体に関する。   The present invention relates to an image processing apparatus capable of detecting that two or more originals are conveyed in a superimposed manner when reading a plurality of originals, an image forming apparatus including the image processing apparatus, an image processing program, and the program The present invention relates to a recording medium on which is recorded.

近年、多くの事業所(会社、事務所等)に、記録用紙に画像を形成する画像形成装置(代表的にはコピー機)が導入されている。このような画像形成装置の1種である複合機(MFP:Multifunction Peripheral)は、コピーモード、ファクシミリモード、通信ネットワーク(以下、単にネットワークともいう)対応のプリンタモード、及びスキャナモードのように、複数の機能を備える。   In recent years, an image forming apparatus (typically a copier) that forms an image on a recording sheet has been introduced into many offices (company, office, etc.). An MFP (Multifunction Peripheral), which is one type of such an image forming apparatus, includes a plurality of printer modes such as a copy mode, a facsimile mode, a communication network (hereinafter simply referred to as a network), and a scanner mode. It has the function of.

画像形成装置のコピー機能においては、画像入力装置(スキャナ等)により原稿をスキャンして画像データを生成し、給紙トレイから記録紙を引出して画像形成部まで搬送し、生成された画像データに基づいて記録紙の表面に画像を形成(以下、印刷ともいう)する。例えば、電子写真方式を利用する場合、感光体ドラム上又は転写体上に担持されているトナー像を、搬送された記録紙に転写した後、加熱及び加圧して記録紙上に画像を固着させる。   In the copy function of an image forming apparatus, an image input device (scanner or the like) scans a document to generate image data, draws a recording sheet from a paper feed tray, conveys it to an image forming unit, and generates the generated image data. Based on this, an image is formed on the surface of the recording paper (hereinafter also referred to as printing). For example, when an electrophotographic system is used, a toner image carried on a photosensitive drum or a transfer body is transferred onto a conveyed recording paper, and then heated and pressed to fix the image on the recording paper.

複数枚の原稿を、画像入力装置によるスキャンが可能なように、自動的に搬送する装置として、自動原稿送り装置が知られている。自動原稿送り装置は、トレイにセットされた原稿を、ピックアップローラにより1枚ずつ取込み、画像入力装置のスキャン位置まで搬送するように設計されている。しかし、ピックアップローラにより一度に複数枚の原稿が取込まれて搬送されてしまうことがある(以下、重送という)。そのような場合、原稿の一部のページがスキャンされない問題がある。   An automatic document feeder is known as a device that automatically conveys a plurality of documents so that they can be scanned by an image input device. The automatic document feeder is designed to take a document set on a tray one by one with a pickup roller and convey it to a scan position of an image input device. However, a plurality of documents may be taken and conveyed at once by the pickup roller (hereinafter referred to as double feeding). In such a case, there is a problem that some pages of the document are not scanned.

予め原稿の枚数がわかっていれば、原稿が搬送された回数をカウントするだけで、重送の発生を知ることができる。搬送回数が原稿枚数と一致すれば重送は発生せず、一致しなければ、重送が発生したことになる。しかし、大量の原稿を読取る場合、又は、コピーする場合等、原稿の枚数を正確に数えることが難しいこともある。   If the number of documents is known in advance, it is possible to know the occurrence of double feeding only by counting the number of times the document has been conveyed. If the number of conveyances coincides with the number of documents, double feeding does not occur, and if they do not coincide, double feeding has occurred. However, it may be difficult to accurately count the number of documents when reading a large number of documents or copying.

下記特許文献1は、重送を解決するための技術を開示している。特許文献1には、装置を大型化することなく原稿の重送を検出するために、原稿を複数回スキャンし、それぞれのスキャンにおいて搬送された原稿の総ページ数を比較し、その比較結果をユーザに知らせる技術が開示されている。総枚数が一致していなければ、原稿の重送が発生したことになる。   Patent Document 1 below discloses a technique for solving double feeding. In Patent Document 1, in order to detect double feeding of an original without increasing the size of the apparatus, the original is scanned a plurality of times, the total number of pages of the original conveyed in each scan is compared, and the comparison result is shown. A technique for informing the user is disclosed. If the total number of sheets does not match, a double feed of the document has occurred.

特開2012−50002号公報JP 2012-50002 A

しかし、特許文献1に開示された技術では、重送の検出精度が十分ではない。原稿を複数回スキャンして、総ページ数が異なっていれば、重送が発生したことが分かるが、総ページ数が一致したとしても、重送が発生した可能性は依然として残る問題がある。   However, the technology disclosed in Patent Document 1 does not have sufficient double feed detection accuracy. If the original is scanned a plurality of times and the total number of pages is different, it can be seen that double feeding has occurred. However, even if the total number of pages matches, the possibility that double feeding has occurred still remains.

また、ホッチキスで止められていた原稿からホッチキスを取除いて、その原稿をスキャンする場合、原稿が十分にさばかれていなければ重送が発生し易い。一度重送が発生した原稿を、そのまま再度スキャンしても、同じ位置で重送が発生する(同じ複数ページが重送される)可能性が高い。したがって、複数回スキャンを実行しても、総ページ数が同じになってしまい、重送を検出できない可能性が高い。   Further, when the stapler is removed from the stapled document and the document is scanned, double feeding is likely to occur unless the document is sufficiently separated. Even if a document that has once undergone double feeding is scanned again as it is, there is a high possibility that double feeding will occur at the same position (the same multiple pages will be double fed). Therefore, even if scanning is performed a plurality of times, the total number of pages becomes the same, and there is a high possibility that double feed cannot be detected.

製本されていた本、若しくは雑誌等の端部がのり付けされていた原稿、又は、原稿の端に折れがある原稿等を読取る場合にも、上記と同様に、特許文献1に開示された技術では重送を検出することができない可能性が高い。   Similarly to the above, the technique disclosed in Patent Document 1 is also used when reading a book that has been bound, an original that has been pasted at the end, such as a magazine, or an original that is folded at the end of the original. There is a high possibility that double feed cannot be detected.

したがって、本発明は、複数枚の原稿を読取る際に、重送を精度よく検出することができる画像処理装置、それを備えた画像形成装置、画像処理プログラム、及びそのプログラムを記録した記録媒体を提供することを目的とする。   Therefore, the present invention provides an image processing apparatus capable of accurately detecting double feeding when reading a plurality of originals, an image forming apparatus including the image processing apparatus, an image processing program, and a recording medium on which the program is recorded. The purpose is to provide.

本発明の第1の局面に係る画像処理装置は、セットされた複数枚の原稿を搬送するための搬送装置により複数枚の原稿の搬送が開始されてから搬送が完了するまでの搬送回数を計数する計数部と、原稿が搬送される毎に、読取装置により、原稿が読取られて生成された複数の画像データの総データサイズを算出するデータサイズ算出部と、生成された複数の画像データの全てに含まれる文字を計数して総文字数を算出する文字数算出部と、複数枚の原稿の全てが2回搬送されたことにより得られる1組の搬送回数、1組の総データサイズ、及び1組の総文字数のうちの少なくとも2組に関して、各組の値を比較する比較部と、比較部による比較結果に応じて、2回の搬送における重送の発生の有無を判定する判定部とを含む。   The image processing apparatus according to the first aspect of the present invention counts the number of conveyances from the start of conveyance of a plurality of documents by the conveyance device for conveying the set plurality of documents to the completion of conveyance. A counting unit, a data size calculation unit that calculates a total data size of a plurality of image data generated by reading the document by the reading device every time the document is conveyed, and a plurality of generated image data A number-of-characters calculation unit that counts the characters included in all to calculate the total number of characters, a set of transport times obtained by transporting all of a plurality of documents twice, a total data size of one set, and 1 A comparison unit that compares the values of each group with respect to at least two of the total number of characters in the group, and a determination unit that determines whether double feeding has occurred in two transports according to a comparison result by the comparison unit Including.

これにより、複数枚の原稿を読取る際に、従来よりも精度よく重送を検出することができる。   As a result, when a plurality of documents are read, it is possible to detect double feeding more accurately than in the past.

好ましくは、画像処理装置は、2回の搬送のうち、2回目の搬送を実行する前に、原稿の向きを変えて原稿を搬送装置にセットすることを要求する。   Preferably, the image processing apparatus requests to change the orientation of the document and set the document on the conveyance device before executing the second conveyance of the two conveyances.

これにより、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて搬送装置にセットすることにより、より精度よく原稿の重送を検出することができる。   As a result, when the document is set for the second processing, it is possible to detect the double feed of the document with higher accuracy by changing the direction of the document as set by the user and setting the document on the conveying device. it can.

より好ましくは、判定部は、比較部により比較された少なくとも2組のうち、少なくとも1組の値の差が所定値よりも大きければ、2回の搬送において重送が発生したと判定する。   More preferably, the determination unit determines that double feeding has occurred in two transports if the difference between at least one of the at least two sets compared by the comparison unit is greater than a predetermined value.

さらに好ましくは、画像処理装置は、生成された画像データがカラー原稿に対応するか否かを判定し、複数の画像データの全てに対応するカラー原稿の枚数を算出するカラー原稿枚数算出部をさらに含む。比較部は、複数枚の原稿の全てが2回搬送されたことにより得られる1組のカラー原稿の枚数を比較し、判定部は、1組のカラー原稿の枚数の差が所定値よりも大きければ、2回の搬送において重送が発生したと判定する。   More preferably, the image processing apparatus further includes a color document number calculation unit that determines whether the generated image data corresponds to a color document and calculates the number of color documents corresponding to all of the plurality of image data. Including. The comparison unit compares the number of sets of color documents obtained when all of a plurality of documents are conveyed twice, and the determination unit determines that the difference between the number of sets of color documents is greater than a predetermined value. For example, it is determined that double feeding has occurred in the two transports.

これにより、より精度よく原稿の重送を検出することができる。   Thereby, it is possible to detect the double feed of the document with higher accuracy.

好ましくは、文字数算出部は、原稿が搬送される毎に生成される画像データに含まれる文字の数であるページ内文字数を算出し、複数枚の原稿の全てが搬送されることにより、ページ内文字数の算出順序を維持して、ページ内文字数を要素とするベクトルを生成するベクトル生成部を含む。比較部は、複数枚の原稿の全てが2回搬送されたことにより得られる2組のベクトルの対応する要素の差の全てが所定値以下であるか否かを判定する。判定部は、2組のベクトルの対応する要素の差の全てが所定値以下でなければ、2回の搬送において重送が発生したと判定する。   Preferably, the number-of-characters calculation unit calculates the number of characters in the page, which is the number of characters included in the image data generated each time the document is transported, and all the plurality of documents are transported, A vector generation unit that generates a vector having the number of characters in the page as an element while maintaining the calculation order of the number of characters is included. The comparison unit determines whether or not all the differences between the corresponding elements of the two sets of vectors obtained by transporting all of the plurality of originals twice are equal to or less than a predetermined value. The determination unit determines that double feeding has occurred in two transports unless all of the differences between the corresponding elements of the two sets of vectors are equal to or less than a predetermined value.

このように各ページ内の文字数を比較することにより、原稿全体の特徴だけを比較する場合よりも精度よく原稿の重送を検出することができる。   By comparing the number of characters in each page in this way, it is possible to detect the double feed of the document with higher accuracy than when comparing only the characteristics of the entire document.

より好ましくは、データサイズ算出部は、原稿が搬送される毎に生成される画像データのデータサイズであるページデータサイズを算出し、複数枚の原稿の全てが搬送されることにより、ページデータサイズの算出順序を維持して、ページデータサイズを要素とするベクトルを生成するベクトル生成部を含む。比較部は、複数枚の原稿の全てが2回搬送されたことにより得られる2組のベクトルの対応する要素の差の全てが所定値以下であるか否かを判定する。判定部は、2組のベクトルの対応する要素の差の全てが所定値以下でなければ、2回の搬送において重送が発生したと判定する。   More preferably, the data size calculation unit calculates a page data size that is a data size of image data generated every time a document is transported, and the page data size is obtained by transporting all of the plurality of documents. And a vector generation unit for generating a vector having the page data size as an element. The comparison unit determines whether or not all the differences between the corresponding elements of the two sets of vectors obtained by transporting all of the plurality of originals twice are equal to or less than a predetermined value. The determination unit determines that double feeding has occurred in two transports unless all of the differences between the corresponding elements of the two sets of vectors are equal to or less than a predetermined value.

このように各ページのデータサイズを比較することにより、原稿全体の特徴だけを比較する場合よりも精度よく原稿の重送を検出することができる。   By comparing the data sizes of the pages in this way, it is possible to detect the double feed of the document with higher accuracy than when comparing only the features of the entire document.

本発明の第2の局面に係る画像形成装置は、上記の何れかの画像処理装置と、画像データにしたがって記録紙に画像を形成する画像形成部とを含む。   An image forming apparatus according to a second aspect of the present invention includes any one of the image processing apparatuses described above and an image forming unit that forms an image on a recording sheet according to image data.

このような、画像形成装置は、複数枚の原稿を読取る際に、重送を精度よく検出することができ、重送が発生せずにスキャンされた画像データを使用して、ユーザが指定した機能(コピー機能、スキャナ機能、又はファクシミリ機等)を実行することができる。   Such an image forming apparatus can accurately detect double feeding when reading a plurality of documents, and is designated by a user using image data scanned without double feeding. A function (such as a copy function, a scanner function, or a facsimile machine) can be executed.

本発明の第3の局面に係る画像処理プログラムは、画像処理装置に、セットされた複数枚の原稿を搬送するための搬送装置により複数枚の原稿の搬送が開始されてから搬送が完了するまでの搬送回数を計数する計数機能と、原稿が搬送される毎に原稿が読取られて生成された複数の画像データの総データサイズを算出するデータサイズ算出機能と、生成された複数の画像データの全てに含まれる文字を計数して総文字数を算出する文字数算出機能と、複数枚の原稿の全てが2回搬送されたことにより得られる1組の搬送回数、1組の総データサイズ、及び1組の総文字数のうちの少なくとも2組に関して、各組の値を比較する比較機能と、比較機能による比較結果に応じて、2回の搬送における重送の発生の有無を判定する判定機能とを実現させる。   According to a third aspect of the present invention, there is provided an image processing program from the start of conveyance of a plurality of documents to a completion of conveyance by a conveyance device for conveying a plurality of set documents to the image processing apparatus. A counting function for counting the number of times the document is transported, a data size calculating function for calculating the total data size of a plurality of image data generated by reading the document every time the document is transported, and a plurality of generated image data The number-of-characters calculation function for calculating the total number of characters by counting the characters included in all, the number of conveyance times obtained by conveying all of a plurality of documents twice, the total data size of one set, and 1 A comparison function that compares the values of each group with respect to at least two sets of the total number of characters in the group, and a determination function that determines the presence or absence of the occurrence of double feed in two transports according to the comparison result of the comparison function Realization To.

本発明の第4の局面に係る記録媒体は、上記の画像処理プログラムが記録されたコンピュータ読取り可能な記録媒体である。   A recording medium according to a fourth aspect of the present invention is a computer-readable recording medium on which the image processing program is recorded.

本発明によれば、画像処理装置は、複数枚の原稿を読取る際に、予め原稿枚数が分かっていない状態であっても、重送を従来よりも精度よく検出することができる。また、そのような画像処理装置を備えた画像形成装置は、重送が発生せずにスキャンされた画像データを使用して、ユーザが指定した機能(コピー機能、スキャナ機能、又はファクシミリ機等)を実行することができる。   According to the present invention, when reading a plurality of documents, the image processing apparatus can detect double feeding more accurately than in the past even if the number of documents is not known in advance. In addition, an image forming apparatus provided with such an image processing apparatus uses a function (copy function, scanner function, facsimile machine, or the like) designated by a user using image data scanned without occurrence of double feeding. Can be executed.

特に、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて自動原稿送り装置にセットすることにより、より精度よく原稿の重送を検出することができる。   In particular, when a document is set for the second processing, it is possible to detect the double feed of the document with higher accuracy by changing the direction of the document as set by the user and setting it in the automatic document feeder. Can do.

本発明の第1の実施の形態に係る画像形成装置の構成を示すブロック図である。1 is a block diagram showing a configuration of an image forming apparatus according to a first embodiment of the present invention. 図1の画像形成装置においてコピーを実行する場合の画像処理部内の信号の流れを示すブロック図である。FIG. 2 is a block diagram illustrating a signal flow in an image processing unit when copying is performed in the image forming apparatus of FIG. 1. 図1の画像形成装置において、Scan to e−mailを実行する場合の画像処理部内の信号の流れを示すブロック図である。FIG. 2 is a block diagram illustrating a signal flow in an image processing unit when performing Scan to e-mail in the image forming apparatus of FIG. 1. 図1の画像形成装置において実行される、重送を検出するための制御プログラムを示すフローチャートである。3 is a flowchart illustrating a control program for detecting double feed, which is executed in the image forming apparatus of FIG. 1. 原稿の向きを変えてスキャンすることを指示するメッセージを含む画面を示す図である。FIG. 10 is a diagram showing a screen including a message for instructing scanning while changing the orientation of a document. 自動原稿読取り装置にセットされる原稿の向きを示す平面図である。FIG. 4 is a plan view showing the orientation of a document set on an automatic document reader. 文字認識部の構成を示すブロック図である。It is a block diagram which shows the structure of a character recognition part. 図4のデータ比較処理を示すフローチャートである。It is a flowchart which shows the data comparison process of FIG. 図8において、文字数の比較よりもファイルサイズの比較を優先するように変更したフローチャートである。FIG. 9 is a flowchart in which the file size comparison is prioritized over the character number comparison in FIG. 8. 本発明の第2の実施の形態に係る画像形成装置において実行される、重送を検出するための制御プログラムのデータ比較処理を示すフローチャートである。10 is a flowchart illustrating a data comparison process of a control program for detecting double feeding, which is executed in an image forming apparatus according to a second embodiment of the present invention. 本発明の第3の実施の形態に係る画像形成装置において実行される、各ページの文字数を比較する処理を説明するための図である。It is a figure for demonstrating the process which compares the number of characters of each page performed in the image forming apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施の形態に係る画像形成装置において実行される、重送を検出するための制御プログラムのデータ比較処理を示すフローチャートである。10 is a flowchart illustrating a data comparison process of a control program for detecting double feed, which is executed in an image forming apparatus according to a third embodiment of the present invention. 本発明の第4の実施の形態に係る画像形成装置において実行される、重送を検出するための制御プログラムのデータ比較処理を示すフローチャートである。10 is a flowchart illustrating a data comparison process of a control program for detecting double feeding, which is executed in an image forming apparatus according to a fourth embodiment of the present invention. 図13において、複数の比較処理が直列に実行され得るように変更したフローチャートである。In FIG. 13, it is the flowchart changed so that a several comparison process could be performed in series. スキャナ装置の構成を示すブロック図である。It is a block diagram which shows the structure of a scanner apparatus.

以下の実施の形態では、同一の部品には同一の参照番号を付してある。それらの名称及び機能も同一である。したがって、それらについての詳細な説明は繰返さない。   In the following embodiments, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

(第1の実施の形態)
本発明の第1の実施の形態に係る画像形成装置は、コピー機能、スキャナ機能、ファクシミリ機能、及びプリンタ機能等の複数の機能を備えたデジタル複合機である。図1を参照して、画像形成装置100は、自動原稿送り装置(搬送装置)114、原稿読取部116、画像形成部118、画像処理部120、画像メモリ122、及び操作部124を備えている。
(First embodiment)
The image forming apparatus according to the first embodiment of the present invention is a digital multifunction peripheral having a plurality of functions such as a copy function, a scanner function, a facsimile function, and a printer function. Referring to FIG. 1, the image forming apparatus 100 includes an automatic document feeder (conveyance device) 114, a document reading unit 116, an image forming unit 118, an image processing unit 120, an image memory 122, and an operation unit 124. .

画像形成装置100は、画像形成装置100全体を制御するCPU102と、プログラム等を記憶するためのROM(Read Only Memory)104と、揮発性の記憶装置であるRAM(Random Access Memory)106と、通電が遮断された場合にもデータを保持する不揮発性記憶装置であるHDD(Hard Disk Drive)108とを備えている。ROM104には、画像形成装置100の動作を制御するのに必要なプログラム及びデータが記憶されている。   The image forming apparatus 100 includes a CPU 102 that controls the entire image forming apparatus 100, a ROM (Read Only Memory) 104 for storing programs, a RAM (Random Access Memory) 106 that is a volatile storage device, HDD (Hard Disk Drive) 108, which is a non-volatile storage device that retains data even when the disk is shut off. The ROM 104 stores programs and data necessary for controlling the operation of the image forming apparatus 100.

画像形成装置100はさらに、送受信部110及びバス112を備えている。CPU102、ROM104、RAM106、HDD108、送受信部110、自動原稿送り装置114、原稿読取部116、画像形成部118、画像処理部120、画像メモリ122、操作部124は、バス112に接続されている。バス112を介して、各部間のデータ(制御情報を含む)交換が行なわれる。   The image forming apparatus 100 further includes a transmission / reception unit 110 and a bus 112. The CPU 102, ROM 104, RAM 106, HDD 108, transmission / reception unit 110, automatic document feeder 114, document reading unit 116, image forming unit 118, image processing unit 120, image memory 122, and operation unit 124 are connected to the bus 112. Data (including control information) is exchanged between the units via the bus 112.

CPU102は、バス112を介してROM104からプログラムをRAM106上に読出して、RAM106の一部を作業領域としてプログラムを実行する。即ち、CPU102は、ROM104に格納されているプログラムにしたがって画像形成装置100を構成する各部の制御を行ない、画像形成装置100の各機能を実現する。   The CPU 102 reads a program from the ROM 104 onto the RAM 106 via the bus 112, and executes the program using a part of the RAM 106 as a work area. That is, the CPU 102 controls each part of the image forming apparatus 100 according to a program stored in the ROM 104, and realizes each function of the image forming apparatus 100.

操作部124は、タッチパネルディスプレイ及び操作キー(何れも図示せず)を備えている。操作部124は、ユーザによる画像形成装置100に対する指示等の入力を受付ける。   The operation unit 124 includes a touch panel display and operation keys (both not shown). The operation unit 124 receives an input such as an instruction to the image forming apparatus 100 by the user.

送受信部110は、NIC(Network Interface Card)及びFAXモデム(何れも図示せず)を備えている。NICは、外部のネットワーク(図示せず)に有線又は無線で接続され、画像形成装置100がネットワークを介して外部装置と通信するためのインターフェイスである。FAXモデムは、外部の電話回線(図示せず)に接続され、画像形成装置100が電話回線を介して外部装置とFAX通信するためのインターフェイスである。   The transmission / reception unit 110 includes a NIC (Network Interface Card) and a FAX modem (both not shown). The NIC is an interface through which the image forming apparatus 100 communicates with an external device via a network, connected to an external network (not shown) by wire or wirelessly. The FAX modem is an interface that is connected to an external telephone line (not shown) and allows the image forming apparatus 100 to perform FAX communication with an external apparatus via the telephone line.

CPU102は、操作部124に設けられたタッチパネルディスプレイ及び操作キーに対するユーザの操作を監視し、ユーザの操作にしたがって、コピー機能、プリンタ機能、スキャナ機能、及びファクシミリ機能を実行する。実行する機能に応じて、原稿から画像データを生成するために原稿読取部116が使用される。   The CPU 102 monitors user operations on the touch panel display and operation keys provided in the operation unit 124, and executes a copy function, a printer function, a scanner function, and a facsimile function in accordance with the user operations. Depending on the function to be executed, the document reading unit 116 is used to generate image data from the document.

原稿読取部116は、画像を読取るためのCCD(Charge Coupled Device:電荷結合素子)を備え、原稿自動送り装置114により搬送される原稿を読取って画像データを生成する。画像データは画像メモリ122に一時的に記憶される。画像処理部120は、生成した画像データに対して、種々の画像処理を実行する。画像形成部118は、画像データにしたがって記録紙に画像を印刷する。記録紙は給紙部に保持されており、給紙部から引出された記録紙は、搬送ローラによって画像形成部118の内部を搬送された後、画像が印刷される。画像が形成された記録紙は、排紙トレイに排出される。画像データは、必要に応じてHDD108に記憶される。   The document reading unit 116 includes a CCD (Charge Coupled Device) for reading an image, and reads the document conveyed by the automatic document feeder 114 to generate image data. Image data is temporarily stored in the image memory 122. The image processing unit 120 performs various image processing on the generated image data. The image forming unit 118 prints an image on a recording sheet according to the image data. The recording paper is held in the paper feeding unit, and the recording paper pulled out from the paper feeding unit is conveyed inside the image forming unit 118 by the conveying roller, and then an image is printed. The recording paper on which the image is formed is discharged to a paper discharge tray. The image data is stored in the HDD 108 as necessary.

図2を参照して、ユーザが、操作部124を操作して、コピー機能を選択したときの処理について、具体的に説明する。原稿読取部116はCCDラインセンサにより、自動原稿送り装置114により、搬送された原稿から反射された光をR、G、B(R:赤、G:緑、B:青)に色分解された電気信号に変換する。CCDラインセンサにより入力されたカラー画像信号(RGBアナログ信号)は、A/D(アナログ/デジタル)変換部にてデジタル信号に変換され、シェーディング補正部にて原稿読取部116の照明系、結像系、撮像系で生じる各種の歪みが取除かれる。その後、入力処理部にてRGB信号のそれぞれに対してγ補正処理等が実行される。また、CPU102(計数手段)は、原稿読取部116により入力された(読取られた)原稿の枚数をカウントし、記憶部(図1のROM104、RAM106及びHDD108を含む)に保持しておく。   With reference to FIG. 2, a process when the user operates the operation unit 124 to select the copy function will be described in detail. The document reading unit 116 color-separates the light reflected from the conveyed document into R, G, and B (R: red, G: green, B: blue) by the automatic document feeder 114 by the CCD line sensor. Convert to electrical signal. A color image signal (RGB analog signal) input by the CCD line sensor is converted into a digital signal by an A / D (analog / digital) converter, and an illumination system of the original reading unit 116 and an image are formed by a shading correction unit. Various distortions generated in the image pickup system and the image pickup system are removed. Thereafter, γ correction processing and the like are performed on each of the RGB signals in the input processing unit. Further, the CPU 102 (counting means) counts the number of documents input (read) by the document reading unit 116 and holds it in a storage unit (including the ROM 104, the RAM 106, and the HDD 108 in FIG. 1).

入力処理部から出力されたデータは、記憶部に引渡され、ファイリングデータとして管理される。このとき、画像データは、圧縮処理部において、例えば、JPEG圧縮アルゴリズムに基づいてJPEGコードに圧縮されて記憶部(例えばHDD108)に格納される。圧縮処理部(データサイズ算出手段)において、圧縮された画像データのデータサイズ(ファイルとして管理される場合には、ファイルサイズ)が求められる。   Data output from the input processing unit is delivered to the storage unit and managed as filing data. At this time, the image data is compressed into a JPEG code in a compression processing unit based on, for example, a JPEG compression algorithm and stored in a storage unit (for example, HDD 108). In the compression processing unit (data size calculating means), the data size of the compressed image data (file size when managed as a file) is obtained.

入力処理部の出力データは、文字認識部にも入力され、文字認識の対象となる。文字認識部による文字認識については後述する。また、入力処理部の出力データは、原稿自動判別部にも入力されてもよい。   The output data of the input processing unit is also input to the character recognition unit, and is subject to character recognition. The character recognition by the character recognition unit will be described later. The output data of the input processing unit may also be input to the automatic document discrimination unit.

コピー出力動作又はプリント出力動作を実行する場合には、HDD108からJPEGコードが読出されて伸張部に引渡され、復号化処理が実行され、RGBデータに変換される。   When executing the copy output operation or the print output operation, the JPEG code is read from the HDD 108 and delivered to the decompression unit, the decoding process is executed, and the RGB data is converted.

原稿自動判別部は、入力画像データに基づき、種々の判定処理を行ない、その結果を原稿判別データとして出力する。判定処理には、例えば、読取られた原稿がカラー原稿若しくは白黒原稿の何れであるかを判別する処理(自動カラー判別処理(ACS:Auto Color Selection))、ブランク原稿であるか否か(無地の原稿であるか否か)を判別する処理、原稿の種別が文字原稿、印刷写真原稿、若しくは、文字と印刷写真とが混在した原稿(以下、文字印刷写真原稿ともいう)の何れであるかを判別する処理、及び、原稿にどれくらいの濃さの下地が存在するかを判別する処理(下地検知)等が含まれる。   The automatic document determination unit performs various determination processes based on the input image data, and outputs the result as document determination data. The determination process includes, for example, a process of determining whether the read document is a color document or a monochrome document (automatic color determination process (ACS)), whether or not the document is a blank document (plain color). Whether the document type is a character document, a printed photo document, or a document in which characters and a printed photo are mixed (hereinafter also referred to as a character printed photo document). Processing for determining, processing for determining how dark the background exists in the document (background detection), and the like are included.

領域分離部においては、入力画像データの各画素がどのような種類の領域に属するかを判定する処理が実行される。例えば黒文字、色文字、又は網点等の何れの領域に属する画素であるかが判定される。領域分離結果を表す出力信号である領域分離信号は、黒生成/下色除去部、空間フィルタ部、及び中間調生成部に入力される。   In the region separation unit, processing for determining what kind of region each pixel of the input image data belongs to is executed. For example, it is determined which pixel belongs to which region, such as a black character, a color character, or a halftone dot. A region separation signal that is an output signal representing the region separation result is input to a black generation / undercolor removal unit, a spatial filter unit, and a halftone generation unit.

下地除去処理部では、原稿自動判別部での判定結果、又は、ユーザによる操作部124の操作により入力される下地除去の除去レベルに基づいて下地除去処理が実行される。   In the background removal processing unit, the background removal processing is executed based on the determination result in the automatic document determination unit or the background removal removal level input by the operation of the operation unit 124 by the user.

色補正部では、RGB信号の補色であるCMY(C:シアン、M:マゼンタ、Y:イエロー)信号が生成されると共に色再現性を高める処理が実行され、黒生成/下色除去部にてCMYK(K:黒)4色信号に変換される。空間フィルタ部ではCMYK信号に対して強調処理、又は平滑化処理等が実行される。   In the color correction unit, a CMY (C: cyan, M: magenta, Y: yellow) signal that is a complementary color of the RGB signal is generated and a process for improving color reproducibility is executed, and the black generation / under color removal unit It is converted into a CMYK (K: black) 4-color signal. The spatial filter unit executes enhancement processing or smoothing processing on the CMYK signal.

変倍処理部では、ユーザが指定した倍率に応じて、又は、ページ集約機能(2in1、4in1等)若しくは縁無し印刷等の予め定められた倍率に応じて変倍処理が実行される。但し、変倍率によっては、本処理部が処理を実行しない場合(スルー)がある。   The scaling processing unit executes scaling processing according to a magnification specified by the user or according to a predetermined magnification such as a page aggregation function (2 in 1, 4 in 1, etc.) or borderless printing. However, depending on the scaling factor, there is a case where the processing unit does not execute processing (through).

出力階調補正部では、記録紙等の記録媒体に出力するための出力γ補正処理が実行される。中間調生成部では、画像を出力するための階調再現処理が実行される。   The output tone correction unit executes an output γ correction process for outputting to a recording medium such as recording paper. In the halftone generation unit, gradation reproduction processing for outputting an image is executed.

中間調処理部から出力されたCMYK信号は画像形成部118に引渡され、出力画像が形成される。なお、画像形成部118は、例えば電子写真方式プリンタ、又はインクジェット方式プリンタ等である。   The CMYK signal output from the halftone processing unit is delivered to the image forming unit 118, and an output image is formed. The image forming unit 118 is, for example, an electrophotographic printer or an inkjet printer.

図3を参照して、ユーザが、操作部124を操作して、scan to e−mail機能を選択したときの処理について、具体的に説明する。scan to e−mail機能とは、原稿をスキャンして得られた画像データを、電子メールに添付して送信する機能である。   With reference to FIG. 3, processing when the user operates the operation unit 124 and selects the scan to e-mail function will be specifically described. The scan to e-mail function is a function for transmitting image data obtained by scanning a document attached to an e-mail.

コピー機能が選択された場合と同様に、原稿読取部116はCCDラインセンサにより、自動原稿送り装置114により、搬送された原稿から反射された光をR、G、B(R:赤、G:緑、B:青)に色分解された電気信号に変換する。生成されたRGB信号に対して、A/D変換部、シェーディング補正部、入力処理部、及び圧縮処理部が各処理を実行する。   Similarly to the case where the copy function is selected, the document reading unit 116 uses the CCD line sensor and the automatic document feeder 114 to reflect the light reflected from the conveyed document R, G, B (R: red, G: The electrical signal is separated into green and B: blue). An A / D conversion unit, a shading correction unit, an input processing unit, and a compression processing unit execute each process on the generated RGB signal.

上記のコピー機能が選択された場合と異なる点は、色補正部の処理が異なる点と、黒生成/下色除去部及び中間調生成部が、入力される画像データに対して処理を行なわず(以下、スルーともいう)、画像データをそのまま後段のブロックに出力する点である。黒生成/下色除去部がスルーされるので、中間調生成部からはR’G’B’の画像データが出力される。   The difference from the case where the copy function is selected is that the processing of the color correction unit is different, and the black generation / under color removal unit and the halftone generation unit do not process the input image data. (Hereinafter, also referred to as “through”), the image data is directly output to the subsequent block. Since the black generation / under color removal unit is passed, the image data of R′G′B ′ is output from the halftone generation unit.

色補正部では、入力されるRGB画像データは、一般に普及している表示装置の表示特性に適合したR’G’B’の画像データ(例えば、sRGBデータ)に変換され、空間フィルタ部にて領域分離信号を基にデジタルフィルタによる空間フィルタ処理(強調処理、及び平滑化処理等)が行なわれる。出力階調補正部では、例えば、文字領域、又は文字以外の領域それぞれの領域に最適なガンマ曲線を用いた補正が行なわれる。中間調生成部から出力されたR’G’B’の画像データはフォーマット化処理部において、PDF形式等のファイル形式に変更され、メール処理部(図示せず)にて電子メールに添付される。電子メールは、送受信部110から通信ネットワークに出力され、相手先に送信される。   In the color correction unit, the input RGB image data is converted into R′G′B ′ image data (for example, sRGB data) suitable for display characteristics of a display device that is generally popular, and the spatial filter unit. Spatial filter processing (enhancement processing, smoothing processing, etc.) using a digital filter is performed based on the region separation signal. In the output tone correction unit, for example, correction using the optimum gamma curve is performed for each of the character region or the region other than the character. The R′G′B ′ image data output from the halftone generation unit is changed to a file format such as PDF format in the formatting processing unit, and attached to the e-mail in the mail processing unit (not shown). . The e-mail is output from the transmission / reception unit 110 to the communication network and transmitted to the other party.

なお、上記の処理は、CPU102の制御の下で実行される。画像形成装置100が、DSP(Digital Signal Processor)(図示せず)を備えていれば、上記の処理はDSPにより制御されてもよい。   Note that the above processing is executed under the control of the CPU 102. If the image forming apparatus 100 includes a DSP (Digital Signal Processor) (not shown), the above processing may be controlled by the DSP.

以下、図4を参照して、画像形成装置100において実行される、重送を検出するための制御プログラムに関して説明する。本プログラムは、ユーザにより操作部124が操作され、自動原稿読取り装置114を使用する機能(例えば、コピー機能、スキャナ機能、ファクシミリ機能、又はscan to e−mail機能等)が選択されて、その実行条件が設定された後に実行が指示されたことを受けて、実行される。   Hereinafter, a control program for detecting double feeding executed in the image forming apparatus 100 will be described with reference to FIG. This program is executed when the operation unit 124 is operated by the user, and a function (for example, a copy function, a scanner function, a facsimile function, or a scan to e-mail function) using the automatic document reader 114 is selected. It is executed in response to an instruction to execute after the condition is set.

ステップ400において、CPU102は、1回目の処理として、自動原稿読取り装置114を制御して原稿を1枚ずつ搬送し、画像処理部120を制御して、図2又は図3を参照して説明した一連の処理のうち、圧縮処理部による処理までを、原稿全体に関して実行する。このとき、上記したように、圧縮処理部において、原稿のページ単位で圧縮された画像データが生成され、原稿が全てスキャンされた後、1つのファイルとしてHDD108に記憶される。   In step 400, as the first process, the CPU 102 controls the automatic document reader 114 to convey the documents one by one, controls the image processing unit 120, and has been described with reference to FIG. Of the series of processes, the process up to the compression processing unit is executed for the entire document. At this time, as described above, the compression processing unit generates image data compressed in units of pages of the document, and after the entire document is scanned, it is stored in the HDD 108 as one file.

また、CPU102は、搬送される原稿をセンサ等により検出し、原稿の搬送回数(以下、便宜上、原稿枚数ともいう)をカウントする。原稿が全てスキャンされた後には、原稿枚数(原稿の総搬送回数)が決定される。また、CPU102(文字数算出手段)は、文字認識部によるOCRにより、各画像データに含まれる文字数(以下、便宜上、ページ毎の文字数ともいう)を取得して、その累積値を求める。原稿が全てスキャンされた後には、原稿全体の総文字数が決定される。   Further, the CPU 102 detects a document to be conveyed by a sensor or the like, and counts the number of document conveyance (hereinafter also referred to as the number of documents for convenience). After all the originals are scanned, the number of originals (total number of original conveyance times) is determined. The CPU 102 (character number calculation means) obtains the number of characters included in each image data (hereinafter also referred to as the number of characters for each page for convenience) by OCR by the character recognition unit, and obtains the accumulated value. After all the originals are scanned, the total number of characters of the whole original is determined.

ステップ402において、CPU102は、ステップ400での処理結果をRAM106又はHDD108に記憶する。処理結果は、原稿枚数、ファイルサイズ、及び文字数である。上記したように、原稿枚数は、原稿の総搬送回数であり、ファイルサイズは、HDD108に記憶された1つのファイル全体の総データサイズであり、文字数は、原稿全体の総文字数である。   In step 402, the CPU 102 stores the processing result in step 400 in the RAM 106 or the HDD 108. The processing results are the number of documents, the file size, and the number of characters. As described above, the number of documents is the total number of times the document is conveyed, the file size is the total data size of one entire file stored in the HDD 108, and the number of characters is the total number of characters of the entire document.

ステップ404において、CPU102(要求提示手段)は、同じ原稿を、原稿の向きを変えて自動原稿読取り装置114にもう一度セットするように要求する。例えば、CPU102は、操作部124の表示パネルに、図5に示すようなメッセージを含む画面500表示する。画面500の領域502には、向きを変えて原稿をセットすることを要求するメッセージが表示されている。   In step 404, the CPU 102 (request presenting means) requests that the same document be set again in the automatic document reader 114 while changing the orientation of the document. For example, the CPU 102 displays a screen 500 including a message as shown in FIG. 5 on the display panel of the operation unit 124. In a region 502 of the screen 500, a message requesting to set the original with its orientation changed is displayed.

なお、画像形成装置100が音声出力装置を備えていれば、音声により、原稿の向きを変えて自動原稿読取り装置114にもう一度セットするように要求してもよい。   If the image forming apparatus 100 includes an audio output device, it may be requested to change the orientation of the document and set it again in the automatic document reader 114 by voice.

通常、自動原稿読取り装置114にセットされる原稿の向きは、図6に示すように4種類の何れかである。図6の(a)〜(d)において、原稿の搬送方向は同じ(例えば左方向)である。1回目の処理(ステップ400)で図6の(a)に示した配置で原稿がセットされた場合には、原稿の向きを変えた配置とは、図6の(b)に示すように反時計方向に90度回転させた配置、図6の(c)に示すように180度回転させた配置、又は、図6の(d)に示すように反時計方向に270度回転させた配置を意味する。   Normally, the orientation of the document set on the automatic document reader 114 is one of four types as shown in FIG. 6A to 6D, the document transport direction is the same (for example, the left direction). When the original is set in the arrangement shown in FIG. 6A in the first process (step 400), the arrangement in which the orientation of the original is changed is opposite to the arrangement shown in FIG. 6B. An arrangement rotated 90 degrees clockwise, an arrangement rotated 180 degrees as shown in FIG. 6C, or an arrangement rotated 270 degrees counterclockwise as shown in FIG. 6D. means.

ステップ406において、CPU102は、自動原稿読取り装置114に原稿がセットされ、実行が指示されたか否かを判定する。具体的には、CPU102は、操作部124に表示された画面500のOKボタン504が押されたか否かを判定する。実行が指示されたと判定された場合、制御はステップ408に移行する。そうでなければ、ステップ406が繰返される。   In step 406, the CPU 102 determines whether or not an original is set on the automatic document reader 114 and execution is instructed. Specifically, the CPU 102 determines whether or not an OK button 504 on the screen 500 displayed on the operation unit 124 has been pressed. If it is determined that execution has been instructed, control proceeds to step 408. Otherwise, step 406 is repeated.

ステップ408において、CPU102は、2回目の処理をステップ400と同様に実行する。このとき、原稿のスキャンに関する条件(例えば解像度等)は、1回目の処理と同じである。   In step 408, the CPU 102 executes the second process as in step 400. At this time, the conditions (for example, resolution) regarding the scanning of the document are the same as those in the first process.

ステップ410において、CPU102は、ステップ402と同様に、ステップ408での処理結果をRAM106又はHDD108に記憶する。処理結果は、原稿枚数、ファイルサイズ、及び文字数である。   In step 410, as in step 402, the CPU 102 stores the processing result in step 408 in the RAM 106 or HDD 108. The processing results are the number of documents, the file size, and the number of characters.

ステップ412において、CPU102(比較手段)は、ステップ402及びステップ410で記憶されたデータを比較する処理(以下、データ比較処理という)を実行する。データ比較処理に関しては後述する。データ比較処理により、1回目の処理によって得られたファイル、又は2回目の処理によって得られたファイルのうち、何れのファイルを使用するかが決定される。   In step 412, the CPU 102 (comparison means) executes processing for comparing the data stored in steps 402 and 410 (hereinafter referred to as data comparison processing). The data comparison process will be described later. By the data comparison process, it is determined which of the files obtained by the first process or the file obtained by the second process is to be used.

ステップ414において、CPU102は、データ比較処理の結果を提示する。CPU102は、データ比較処理の結果として、選択された機能の実行に使用されるデータが、1回目の処理によって得られたファイル、又は2回目の処理によって得られたファイルのうち、何れのファイルであるかを、例えば、操作部124の表示パネルに表示する。その後、本プログラムは終了する。   In step 414, the CPU 102 presents the result of the data comparison process. As a result of the data comparison process, the CPU 102 uses any file out of the file obtained by the first process or the file obtained by the second process as the data used for executing the selected function. For example, it is displayed on the display panel of the operation unit 124. Thereafter, the program ends.

本プログラムが終了した後、図2又は図3を参照して説明した一連の処理のうち、伸長部による処理以降の処理が、ステップ412で決定された画像ファイルに対して実行される。   After the end of the program, the processing after the processing by the decompressing unit in the series of processing described with reference to FIG. 2 or 3 is executed on the image file determined in step 412.

図7を参照して、文字認識部に関して説明する。文字認識部は、信号変換部、2値化処理部、傾き検知部、傾き補正部、OCR処理部、及びレイアウト解析部を備えている。   The character recognition unit will be described with reference to FIG. The character recognition unit includes a signal conversion unit, a binarization processing unit, an inclination detection unit, an inclination correction unit, an OCR processing unit, and a layout analysis unit.

信号変換部は、RGBのカラー画像データを、例えば次式により輝度信号に変換する。
=0.30R+0.59G+0.11B
Y:各画素の輝度信号
R,G,B:各画素の各色成分の値
添え字i:画素毎に付与された値(iは1以上の整数)
2値化処理部は、画像データを2値化して2値画像データを生成する。具体的には、画像データにおける各画素の濃度(画素値)と予め設定された閾値とを比較することにより各画素値を2値化する。例えば、画像データが8ビットデータである場合、閾値を128とする。また、複数の画素(例えば5画素×5画素)からなるブロックにおける濃度(画素値)の平均値を、そのブロックの2値化に使用する閾値としてもよい。
The signal conversion unit converts RGB color image data into a luminance signal, for example, by the following equation.
Y i = 0.30R i + 0.59G i + 0.11B i
Y: luminance signal of each pixel R, G, B: value of each color component of each pixel Subscript i: value assigned to each pixel (i is an integer of 1 or more)
The binarization processing unit binarizes the image data and generates binary image data. Specifically, each pixel value is binarized by comparing the density (pixel value) of each pixel in the image data with a preset threshold value. For example, when the image data is 8-bit data, the threshold value is set to 128. Further, an average value of density (pixel value) in a block composed of a plurality of pixels (for example, 5 pixels × 5 pixels) may be used as a threshold value used for binarization of the block.

解像度変換部は、2値化された画像データの解像度を低解像度化する。例えば、原稿が1200dpi、又は600dpiの条件で読込まれて生成された画像データを、300dpiの画像データに変換する。解像度変換の方法は、公知の方法を使用すればよく、例えば、ニアレストネイバー法、バイリニア法、又はバイキュービック法等を用いることができる。解像度変換部は、傾き検知部には300dpiの画像データを入力し、レイアウト解析部には、75dpiの画像データを入力する。レイアウト解析部がレイアウトを決定するためには、このように低解像度の画像データであってもよい。   The resolution conversion unit lowers the resolution of the binarized image data. For example, image data generated by reading a document under conditions of 1200 dpi or 600 dpi is converted into image data of 300 dpi. A known method may be used as the resolution conversion method. For example, a nearest neighbor method, a bilinear method, a bicubic method, or the like can be used. The resolution conversion unit inputs 300 dpi image data to the tilt detection unit, and inputs 75 dpi image data to the layout analysis unit. In order for the layout analysis unit to determine the layout, low-resolution image data may be used.

傾き検知部は、例えば、特開平7−192086号公報に記載された方法を用いて、各頁の傾き検知を行なう。この方法では、2値化された画像データより、黒画素と白画素との境界点を複数個抽出し、各境界点の点列の座標データを求める。黒画素と白画素との境界は、例えば、各文字の上端における白/黒境界点の座標を求めメモリ(RAM106)に格納する。   The inclination detection unit detects the inclination of each page using, for example, a method described in Japanese Patent Application Laid-Open No. 7-19086. In this method, a plurality of boundary points between black pixels and white pixels are extracted from the binarized image data, and coordinate data of a sequence of points at each boundary point is obtained. For the boundary between the black pixel and the white pixel, for example, the coordinates of the white / black boundary point at the upper end of each character are obtained and stored in the memory (RAM 106).

点列座標データを参照して、この点列座標から回帰直線を求め、その回帰係数bを、b=Sxy/Sx により計算してメモリ(RAM106)に格納する。   A regression line is obtained from the point sequence coordinate data with reference to the point sequence coordinate data, and the regression coefficient b is calculated by b = Sxy / Sx and stored in the memory (RAM 106).

ここで、Sx及びSyはそれぞれ変量x及びyの残差平方和であり、Sxyはxの残差及びyの残差の積の和である。即ち、Sx、Sy、及びSxyは、次式で表わされる。   Here, Sx and Sy are the residual sum of squares of the variables x and y, respectively, and Sxy is the sum of the products of the residual of x and the residual of y. That is, Sx, Sy, and Sxy are expressed by the following equations.

Figure 2015226264
回帰係数bを用いて、画像の傾き角度(スキュー角度)θを、tanθ=b から算出する。
Figure 2015226264
An inclination angle (skew angle) θ of the image is calculated from tan θ = b using the regression coefficient b.

傾き補正部は、下記の式を用いて原稿の傾き補正を行なう。(X,Y)及び(X’,Y’)は、それぞれ補正前の座標及び補正後の座標を表しており、θは、原点を中心に、反時計回りの回転角を表す。   The inclination correction unit corrects the inclination of the document using the following equation. (X, Y) and (X ′, Y ′) respectively represent coordinates before correction and coordinates after correction, and θ represents a counterclockwise rotation angle around the origin.

Figure 2015226264
なお、画素の座標は、読込まれた画像データの左端且つ上端の位置を原点として求める。
Figure 2015226264
Note that the coordinates of the pixel are obtained using the positions of the left end and the upper end of the read image data as the origin.

レイアウト解析部は、低解像度化された2値画像データに基づいて、画像データに含まれる文字の方向が縦書きであるか、又は横書きであるかを解析するレイアウト解析処理を行なう。具体的には、文字の外接矩形を求める。外接矩形間の距離に基づいて縦書き又は横書きの何れであるかを判定する。文字の外接矩形は、以下に示す(1)〜(4)の処理によって求める。
(1)最初のライン(1番上のライン)を注目ラインとし、黒画素にラベリングを行なう。
(2)注目ラインを1ラインだけ下に移動させ、黒画素について上記ラインとは異なるラベルをセットする。
(3)注目ラインとその1つ上のラインの黒画素の連結状態を判定し、連結している場合には画素が繋がっていると判断し、1つ上のラインにおける連結している黒画素と同じラベルに置換する。
(4)(1)〜(3)の処理を各ラインについて順次行ない、各ラインのラベル付け結果に基づいて文字の抽出を行なう。抽出した文字における上端、下端、左端及び右端の画素位置(画素の座標)を基に外接矩形を抽出する。
The layout analysis unit performs layout analysis processing for analyzing whether the direction of the characters included in the image data is vertical writing or horizontal writing based on the binary image data with reduced resolution. Specifically, the circumscribed rectangle of the character is obtained. Whether vertical writing or horizontal writing is determined based on a distance between circumscribed rectangles. The circumscribed rectangle of the character is obtained by the following processes (1) to (4).
(1) The first line (the first line) is set as the target line, and the black pixels are labeled.
(2) The target line is moved down by one line, and a label different from the above line is set for the black pixel.
(3) The connected state of the target line and the black pixel of the line above it is determined, and when connected, it is determined that the pixel is connected, and the connected black pixel in the line above is connected Replace with the same label as
(4) The processes of (1) to (3) are sequentially performed for each line, and characters are extracted based on the labeling result of each line. A circumscribed rectangle is extracted based on pixel positions (pixel coordinates) at the upper end, lower end, left end, and right end of the extracted character.

OCR処理部では、解像度変換された2値画像データとレイアウト解析結果を用いて文字認識処理を実行するとともに、文字認識に関する付帯情報(例えば、各ページに含まれる文字数)を算出する。具体的には、2値画像データ及びレイアウト解析結果に基づいて、画像データに含まれる文字の特徴量を抽出し、抽出結果を辞書データに含まれる文字の特徴量と比較して文字認識処理を行ない、類似する文字に対応する文字コードを検出する。そして、文字コードの検出結果に基づいてテキストデータを生成する。   The OCR processing unit executes character recognition processing using the binary image data subjected to resolution conversion and the layout analysis result, and calculates additional information related to character recognition (for example, the number of characters included in each page). Specifically, based on the binary image data and the layout analysis result, a character feature amount included in the image data is extracted, and the character recognition process is performed by comparing the extraction result with the character feature amount included in the dictionary data. The character code corresponding to the similar character is detected. Then, text data is generated based on the detection result of the character code.

図8を参照して、図4に示したステップ412のデータ比較処理に関して説明する。データ比較処理のステップ430において、CPU102は、原稿枚数を比較するか否かを判定する。ここでは、画像形成装置100の初期設定として、原稿枚数、ファイルサイズ及び文字数の何れを比較するかが予め設定されているとする。原稿枚数を比較するように設定されていれば、制御はステップ432に移行する。そうでなければ、制御はステップ438に移行する。   With reference to FIG. 8, the data comparison processing in step 412 shown in FIG. 4 will be described. In step 430 of the data comparison process, the CPU 102 determines whether or not to compare the number of originals. Here, as an initial setting of the image forming apparatus 100, it is assumed that which of the number of documents, the file size, and the number of characters is to be compared is set in advance. If it is set to compare the number of documents, the control proceeds to step 432. Otherwise, control passes to step 438.

ステップ432において、CPU102は、ステップ402及びステップ410で記憶された原稿枚数に差があるか否か(原稿枚数が異なるか否か)を判定する。差があると判定された場合、制御はステップ434に移行する。そうでなければ(差がないと判定された場合)、制御はステップ436に移行する。   In step 432, the CPU 102 determines whether there is a difference in the number of documents stored in steps 402 and 410 (whether the number of documents is different). If it is determined that there is a difference, control proceeds to step 434. Otherwise (if it is determined that there is no difference), control passes to step 436.

ステップ434において、CPU102(判定手段)は、1回目の処理(図4のステップ400)により記憶されたファイル、及び2回目の処理(図4のステップ408)により記憶されたファイルのうち、原稿枚数が多い方のファイルを最終出力データ(選択された機能の実行対象である画像ファイル)として決定する。原稿枚数が多い方のファイルを最終出力データとして決定するのは、原稿枚数が少ないことは、原稿が重送され、原稿の一部がスキャンされなかったことを意味するからである。そのようなファイルは、スキャンされなかったページに対応する画像データが欠落している。その後、制御は図4のステップ414に移行する。   In step 434, the CPU 102 (determination means) determines the number of documents out of the files stored in the first process (step 400 in FIG. 4) and the files stored in the second process (step 408 in FIG. 4). The file with the larger number is determined as the final output data (image file that is the execution target of the selected function). The reason why the file with the larger number of documents is determined as the final output data is that the smaller number of documents means that the documents are double-fed and a part of the document is not scanned. Such a file lacks image data corresponding to a page that was not scanned. Thereafter, control proceeds to step 414 in FIG.

ステップ432で差がないと判定された場合、ステップ436において、CPU102は、1回目の処理又は2回目の処理により記憶されたファイルを最終出力データとして決定する。原稿枚数に差がなければ、重送が発生していないと考えられる。したがって、1回目の処理及び2回目の処理により記憶されたファイルには優劣がないので、何れを使用してもよい。その後、制御は図4のステップ414に移行する。   When it is determined in step 432 that there is no difference, in step 436, the CPU 102 determines the file stored by the first process or the second process as final output data. If there is no difference in the number of documents, it is considered that double feeding has not occurred. Therefore, since the files stored by the first process and the second process are not superior or inferior, any of them may be used. Thereafter, control proceeds to step 414 in FIG.

原稿枚数を比較するように設定されていなければ、ステップ438において、CPU102は、文字数を比較するか否かを判定する。文字数を比較するように設定されていれば、制御はステップ440に移行する。そうでなければ、制御はステップ444に移行する。   If it is not set to compare the number of originals, in step 438, the CPU 102 determines whether or not to compare the number of characters. If it is set to compare the number of characters, control passes to step 440. Otherwise, control passes to step 444.

ステップ440において、CPU102は、ステップ402及びステップ410で記憶された文字数の差が所定値以下であるか否かを判定する。文字数の差が所定値以下であれば、重送が発生していないと考えられ、制御はステップ436に移行し、上記した処理が実行される。そうでなければ(文字数の差が所定値よりも大きければ)、重送が発生していると考えられ、制御はステップ442に移行する。   In step 440, the CPU 102 determines whether or not the difference in the number of characters stored in steps 402 and 410 is equal to or less than a predetermined value. If the difference in the number of characters is equal to or smaller than the predetermined value, it is considered that double feeding has not occurred, and the control shifts to step 436 and the above-described processing is executed. Otherwise (if the difference in the number of characters is greater than the predetermined value), it is considered that double feeding has occurred, and control proceeds to step 442.

文字数の差D1は、例えば、1回目の処理により得られた文字数をText1とし、2回目の処理により得られた文字数をText2として、
D1=abs(Text1−Text2)/avrage(Text1,Text2)
により求める。ここで、abs(x)はxの絶対値を求める演算子であり、avrage(x,y)は、xとyとの平均値を求める演算子である。
The difference D1 in the number of characters is, for example, that the number of characters obtained by the first processing is Text1, and the number of characters obtained by the second processing is Text2.
D1 = abs (Text1-Text2) / avage (Text1, Text2)
Ask for. Here, abs (x) is an operator for obtaining an absolute value of x, and avgage (x, y) is an operator for obtaining an average value of x and y.

この場合、ステップ440では、D1≦TEXT であるか否かが判定される。TEXTは、例えば0.1である。TEXTは、この値に限定されず、適宜適切な値が使用され得る。   In this case, in step 440, it is determined whether or not D1 ≦ TEXT. TEXT is, for example, 0.1. TEXT is not limited to this value, and an appropriate value can be used as appropriate.

ステップ442において、CPU102は、1回目の処理(図4のステップ400)により記憶されたファイル、及び2回目の処理(図4のステップ408)により記憶されたファイルのうち、文字数が多い方のファイルを最終出力データとして決定する。その後、制御は図4のステップ414に移行する。   In step 442, the CPU 102 selects the file having the larger number of characters among the file stored in the first process (step 400 in FIG. 4) and the file stored in the second process (step 408 in FIG. 4). Are determined as final output data. Thereafter, control proceeds to step 414 in FIG.

D1≦TEXT を満たさない場合、文字数の少ない方のファイルは重送され、ページの欠落が生じることで文字数が少なくなったと考えられるので、上記のように、文字数の多い方のファイルを最終出力データとして決定する。   If D1 ≦ TEXT is not satisfied, the file with the smaller number of characters is double-fed, and it is considered that the number of characters has decreased due to missing pages. Therefore, as described above, the file with the larger number of characters is used as the final output data. Determine as.

文字数を比較するように設定されていなければ、ステップ444において、CPU102は、ステップ402及びステップ410で記憶されたファイルサイズの差が所定値以下であるか否かを判定する。ファイルサイズの差が所定値以下であると判定された場合、重送が発生していないと考えられ、制御はステップ436に移行し、上記した処理が実行される。そうでなければ(差が所定値よりも大きければ)、重送が発生していると考えられ、制御はステップ446に移行する。   If it is not set to compare the number of characters, in step 444, the CPU 102 determines whether or not the difference between the file sizes stored in step 402 and step 410 is equal to or less than a predetermined value. If it is determined that the difference between the file sizes is equal to or smaller than the predetermined value, it is considered that double feeding has not occurred, and the control shifts to step 436 and the above-described processing is executed. Otherwise (if the difference is greater than the predetermined value), it is considered that a double feed has occurred and control passes to step 446.

ファイルサイズの差D2は、例えば、1回目の処理により得られたファイルサイズをSize1とし、2回目の処理により得られたファイルサイズをSize2として、
D2=abs(Size1−Size2)/avrage(Size1,Size2)
により求める。
The file size difference D2 is, for example, that the file size obtained by the first process is Size1, and the file size obtained by the second process is Size2.
D2 = abs (Size1-Size2) / avage (Size1, Size2)
Ask for.

この場合、ステップ444では、D2≦SIZE であるか否かを判定する。SIZEは例えば0.1である。SIZEは、この値に限定されず、適宜適切な値が使用され得る。   In this case, in step 444, it is determined whether or not D2 ≦ SIZE. SIZE is, for example, 0.1. SIZE is not limited to this value, and an appropriate value can be used as appropriate.

ステップ446において、CPU102は、1回目の処理(図4のステップ400)により記憶されたファイル、及び2回目の処理(図4のステップ408)により記憶されたファイルのうち、ファイルサイズが大きい方のファイルを最終出力データとして決定する。その後、制御は図4のステップ414に移行する。   In step 446, the CPU 102 has the larger file size of the file stored in the first process (step 400 in FIG. 4) and the file stored in the second process (step 408 in FIG. 4). Determine the file as the final output data. Thereafter, control proceeds to step 414 in FIG.

D2≦SIZE を満たさない場合、ファイルサイズの小さい方のファイルは重送され、ページの欠落が生じることでファイルサイズが小さくなったと考えられるので、上記のように、ファイルサイズの多い方のファイルを最終出力データとして決定する。   If D2 ≦ SIZE is not satisfied, the file with the smaller file size is double-fed, and it is considered that the file size has decreased due to missing pages. Therefore, as described above, the file with the larger file size is Determine as final output data.

以上、図4及び図8に示した処理により、画像形成装置100は、同じ原稿に対して2回スキャン処理を実行し、原稿枚数、文字数、又はファイルサイズを比較することにより、原稿の重送を検出し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。特に、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて自動原稿送り装置114にセットすることにより、より精度よく原稿の重送を検出することができる。   4 and 8, the image forming apparatus 100 performs the scanning process twice on the same document, and compares the number of documents, the number of characters, or the file size, thereby double-feeding documents. The function designated by the user can be executed using the image file scanned without causing double feed. In particular, when a document is set for the second processing, the orientation of the document is changed and set in the automatic document feeder 114 as instructed by the user, thereby detecting the document double feed more accurately. be able to.

本実施の形態において、原稿の向きを変えずに、同じ原稿に対して2回スキャン処理を実行し、原稿枚数、文字数、又はファイルサイズを比較するようにしてもよい。即ち、上記したように、1回目のスキャン処理が完了すれば、ステップ404において、向きを変えて原稿をセットすることを要求する旨が提示される(図5参照)が、ユーザが提示された通りに向きを変えて原稿をセットするとは限らない。1回目のスキャン処理のときの原稿の向きと同じ向きに原稿がセットされて2回目のスキャン処理が実行されたとしても、2回スキャン処理を実行して得られた原稿枚数、文字数、又はファイルサイズを比較することにより、原稿の重送を検出し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。したがって、ステップ404における提示は任意である。   In the present embodiment, the same document may be scanned twice without changing the orientation of the document, and the number of documents, the number of characters, or the file size may be compared. That is, as described above, when the first scanning process is completed, in step 404, a request to change the orientation and set the document is presented (see FIG. 5), but the user is presented. It is not always the case that the original is set in a different direction. Even if the original is set in the same direction as the original at the time of the first scan process and the second scan process is executed, the number of documents, the number of characters, or the file obtained by executing the second scan process By comparing the sizes, it is possible to detect the double feed of the document and execute the function designated by the user by using the image file scanned without the double feed. Therefore, the presentation in step 404 is optional.

上記では、原稿枚数を比較するように設定されていなければ、文字数を比較するか否かを判定する場合を説明したが、これに限定されない。例えば、図9に示すように、原稿枚数を比較するように設定されていなければ、ファイルサイズを比較するか否かを判定してもよい。図9が図8と異なる点は、図8のステップ438が、新たなステップ450で置換えられ、ステップ440とステップ444とが交換され、ステップ442とステップ446とが交換されているだけである。図9において、図8と同じ参照番号が付された処理は、図8と同じである。   In the above description, a case has been described in which it is determined whether or not to compare the number of characters if the number of documents is not set to be compared. However, the present invention is not limited to this. For example, as shown in FIG. 9, if it is not set to compare the number of originals, it may be determined whether to compare the file sizes. FIG. 9 differs from FIG. 8 in that step 438 in FIG. 8 is replaced with a new step 450, steps 440 and 444 are replaced, and steps 442 and 446 are replaced. In FIG. 9, the process with the same reference number as FIG. 8 is the same as FIG.

ステップ430において、原稿枚数を比較しないと判定された場合、ステップ450において、CPU102は、ファイルサイズを比較するように設定されているか否かを判定する。ファイルサイズを比較するように設定されている場合、制御はステップ444に移行し、ファイルサイズの差が所定値以下であるか否かが判定され、その結果に応じて、ステップ436又はステップ446が実行される。ファイルサイズを比較するように設定されていない場合、制御はステップ440に移行し、文字数の差が所定値以下であるか否かが判定され、その結果に応じて、ステップ436又はステップ442が実行される。   If it is determined in step 430 that the number of originals is not compared, in step 450, the CPU 102 determines whether or not the file size is set to be compared. If the file sizes are set to be compared, control proceeds to step 444, where it is determined whether the difference in file sizes is less than or equal to a predetermined value, and step 436 or step 446 is performed depending on the result. Executed. If the file sizes are not set to be compared, control proceeds to step 440 where it is determined whether the difference in the number of characters is less than or equal to a predetermined value and step 436 or step 442 is executed depending on the result. Is done.

図9に示した処理により、図8と同様に、原稿の重送を検出し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。特に、原稿の向きを変えて2回目の処理が実行されることにより、より精度よく原稿の重送を検出することができる。   By the processing shown in FIG. 9, as in FIG. 8, it is possible to detect a double feed of a document and execute a function specified by the user using a scanned image file without occurrence of double feed. . In particular, by performing the second process by changing the orientation of the document, it is possible to detect the document double feed more accurately.

上記では、文字数又はファイルサイズの差が所定値以下である場合、2回の処理の何れにおいても重送が発生していないと考えて、1回目の処理又は2回目の処理により記憶されたファイルを最終出力データとして決定する(ステップ434)場合を説明したが、文字数又はファイルサイズの大きい方のファイルを最終出力データとして決定してもよい。   In the above, when the difference in the number of characters or the file size is equal to or smaller than the predetermined value, it is considered that double feeding has not occurred in any of the two processes, and the file stored by the first process or the second process is stored. Has been described as the final output data (step 434), but the file having the larger number of characters or file size may be determined as the final output data.

上記では、原稿枚数に差がなければ、重送が発生していないと考えて、1回目の処理又は2回目の処理により記憶されたファイルを最終出力データとして決定する(ステップ434)場合を説明したが、さらに、文字数又はファイルサイズを比較して、値が大きい方のファイルを最終出力データとして決定してもよい。即ち、原稿枚数が比較対象として設定されており(文字数及びファイルサイズは比較対象として設定されていない)、原稿枚数に差がなければ、文字数又はファイルサイズを比較する。   In the above description, if there is no difference in the number of documents, it is considered that double feeding has not occurred, and the file stored by the first process or the second process is determined as the final output data (step 434). However, the number of characters or the file size may be compared to determine the file with the larger value as the final output data. That is, the number of documents is set as a comparison target (the number of characters and the file size are not set as comparison targets), and if there is no difference in the number of documents, the number of characters or the file size is compared.

また、上記では、文字数の差又はファイルサイズの差が所定値よりも大きい場合、値が大きい方のファイルは重送が発生せずに生成されたと考えて、値が大きい方のファイルを最終出力データとして決定する(ステップ442又はステップ446)場合を説明したが、ユーザに再読込みすることを提示してもよい。   In the above, if the difference in the number of characters or the difference in file size is larger than the predetermined value, the file with the larger value is considered to have been generated without double feed, and the file with the larger value is finally output. Although the case of determining as data (step 442 or step 446) has been described, the user may be presented with re-reading.

上記では、文字認識部により文字数が算出される場合に、傾き補正部により原稿の傾き補正が実行される場合を説明したが、これに限定されない。原稿の傾き補正を実行しなくてもよい。その場合には、図7から傾き検知部及び傾き補正部を除外して文字認識部を構成することができる。   In the above description, the case where the inclination correction unit executes the inclination correction of the document when the number of characters is calculated by the character recognition unit has been described. However, the present invention is not limited to this. The document skew correction need not be executed. In that case, the character recognition unit can be configured by removing the tilt detection unit and the tilt correction unit from FIG.

原稿をスキャンして生成された画像に、ある程度スキューが生じていたとしても、OCR処理部は文字認識処理を実行することが可能であり、上記した重送の検出処理の精度には、それ程影響がない。原稿の傾き補正を実行しないことは、1回目の処理によって得られたファイル、又は2回目の処理によって得られたファイルを最終データとして決定する処理において、原稿のスキュー角度を考慮することを意味する。即ち、スキュー角度が大きくなると、文字の認識率が低下し、認識される文字数が少なくなる。したがって、最終出力データを選択する際、文字数が多いデータを選択することで、スキューの発生が少ない画像データを選択することができ、ユーザが指定した機能をより高い品質で実行することができる。   Even if there is a certain amount of skew in the image generated by scanning the document, the OCR processing unit can execute the character recognition process, and the accuracy of the double feed detection process described above is greatly affected. There is no. The fact that the original skew correction is not executed means that the skew angle of the original is taken into consideration in the process of determining the file obtained by the first process or the file obtained by the second process as final data. . That is, as the skew angle increases, the character recognition rate decreases and the number of recognized characters decreases. Therefore, when selecting the final output data, by selecting data with a large number of characters, image data with less skew can be selected, and the function designated by the user can be executed with higher quality.

上記では、ユーザが機能を選択して、実行を指示した場合に、重送を検出するプログラムが実行される場合を説明したが、これに限定されない。例えば、ユーザが予備スキャンモード等のモードを操作部124で選択して行なう場合に、重送を検出するプログラムが実行されるようにしてもよい。   In the above description, a case has been described in which a program for detecting double feeding is executed when a user selects a function and instructs execution, but the present invention is not limited to this. For example, when the user selects and performs a mode such as the preliminary scan mode with the operation unit 124, a program for detecting double feeding may be executed.

上記では、原稿枚数、ファイルサイズ及び文字数の何れを比較するかが予め設定されている場合を説明したが、実行時に、ユーザが何れを比較するかを選択できてもよい。   In the above description, a case has been described in which which of the number of originals, the file size, and the number of characters is set in advance. However, the user may be able to select which one is compared at the time of execution.

(第2の実施の形態)
第1の実施の形態においては、2回スキャンされた原稿の原稿枚数、ファイルサイズ及び文字数の何れか1つの項目が比較されたのに対して、第2の実施の形態においては、原稿枚数、ファイルサイズ及び文字数のうち、複数の項目が比較される。
(Second Embodiment)
In the first embodiment, one of the items of the number of originals scanned twice, the file size, and the number of characters is compared, whereas in the second embodiment, the number of originals, A plurality of items are compared among the file size and the number of characters.

本実施の形態に係る画像形成装置は、図1〜3に示した第1の実施の形態に係る画像形成装置と同様に構成されている。また、本実施の形態に係る画像形成装置は、ユーザにより操作部が操作され、自動原稿読取り装置を使用する機能(例えば、コピー機能、スキャナ機能、ファクシミリ機能、又はscan to e−mail機能等)が選択されて、その実行条件が設定された後に実行が指示されたことを受けて、図4に示した重送を検出するための制御プログラムを実行する。以下、図1〜4の参照番号を引用して説明する。   The image forming apparatus according to the present embodiment is configured similarly to the image forming apparatus according to the first embodiment shown in FIGS. In addition, the image forming apparatus according to the present embodiment has a function of operating an operation unit by a user and using an automatic document reader (for example, a copy function, a scanner function, a facsimile function, or a scan to e-mail function). 4 is selected, and when the execution condition is set, the control program for detecting the double feed shown in FIG. 4 is executed. Hereinafter, description will be made with reference to the reference numerals in FIGS.

本実施の形態においては、第1の実施の形態と異なるデータ比較処理(図4のステップ412)が実行される。具体的には、図10に示すデータ比較処理が実行される。   In the present embodiment, a data comparison process (step 412 in FIG. 4) different from that in the first embodiment is executed. Specifically, the data comparison process shown in FIG. 10 is executed.

図10のデータ比較処理においては、原稿枚数、ファイルサイズ及び文字数の全てが比較対象である。したがって、図10のデータ比較処理のプログラムの構成が、第1の実施の形態(図8)と異なる点は、ステップ430及びステップ438の判定処理を含まず、ステップ432、ステップ444及びステップ440が直列に実行され得るように構成されており、ステップ442及びステップ446が新たなステップ452に代替されている点である。図10において、図8と同じ参照番号が付された処理は、図8と同じである。   In the data comparison process of FIG. 10, all of the number of documents, the file size, and the number of characters are to be compared. Therefore, the configuration of the data comparison processing program in FIG. 10 is different from that in the first embodiment (FIG. 8) in that the determination processing in step 430 and step 438 is not included, and steps 432, 444 and 440 are performed. It is configured so that it can be executed in series, and step 442 and step 446 are replaced with a new step 452. In FIG. 10, the process with the same reference number as FIG. 8 is the same as FIG.

ステップ432において、CPU102は、2回の処理(図4のステップ400及びステップ408)で記憶された原稿枚数に差があるか否かを判定する。原稿枚数に差があれば、ステップ434において、CPU102は、2回の処理で記憶したファイルのうち、原稿枚数が多い方のファイルを最終出力データ(選択された機能の実行対象である画像ファイル)として決定する。原稿枚数が少ないことは、原稿が重送され、原稿の一部がスキャンされなかったことを意味するからである。   In step 432, the CPU 102 determines whether or not there is a difference in the number of documents stored in the two processes (step 400 and step 408 in FIG. 4). If there is a difference in the number of documents, in step 434, the CPU 102 outputs the file having the larger number of documents among the files stored in the two processes as the final output data (image file to be executed by the selected function). Determine as. This is because the small number of documents means that the documents are double-fed and a part of the document is not scanned.

原稿枚数に差がなければ、制御はステップ444に移行し、CPU102は、ファイルサイズの差が所定値以下であるか否かを判定する。ファイルサイズの差が所定値以下でなければ、ステップ452においてCPU102は、再度、原稿を自動原稿送り装置114にセットして、実行を指示することを勧める旨を提示する。例えば、CPU102は、操作部124の表示パネルにその旨を表示する。   If there is no difference in the number of documents, the control proceeds to step 444, and the CPU 102 determines whether or not the difference in file size is equal to or smaller than a predetermined value. If the difference between the file sizes is not less than or equal to the predetermined value, in step 452, the CPU 102 presents that it is recommended to set the document on the automatic document feeder 114 again and instruct execution. For example, the CPU 102 displays that fact on the display panel of the operation unit 124.

ファイルサイズの差が所定値よりも大きい場合、ファイルサイズの差は、重送が発生したことが原因であると考えられる。ここでは、原稿枚数が同じであるので、1回目の処理及び2回目の処理の何れか一方だけに重送が発生したとは考えられず、両方に重送が発生したことになる。したがって、再度原稿をスキャンすることが好ましい。   When the difference in file size is larger than a predetermined value, it is considered that the difference in file size is caused by the occurrence of double feeding. Here, since the number of documents is the same, it is not considered that double feeding has occurred in either one of the first processing or the second processing, and double feeding has occurred in both. Therefore, it is preferable to scan the document again.

ファイルサイズの差が所定値以下であれば、制御はステップ440に移行し、CPU102は、文字数の差が所定値以下であるか否かを判定する。文字数の差が所定値以下でなければ、制御はステップ452に移行し、上記の処理が実行される。   If the difference in file size is equal to or smaller than the predetermined value, the control proceeds to step 440, and the CPU 102 determines whether or not the difference in the number of characters is equal to or smaller than the predetermined value. If the difference in the number of characters is not less than the predetermined value, the control moves to step 452 and the above processing is executed.

文字数の差が所定値よりも大きい場合、文字数の差は、重送が発生したことが原因であると考えられる。ここでは、原稿枚数が同じであるので、1回目の処理及び2回目の処理の何れか一方だけに重送が発生したとは考えられず、両方に重送が発生したことになる。したがって、再度原稿をスキャンすることが好ましい。   When the difference in the number of characters is larger than a predetermined value, the difference in the number of characters is considered to be caused by the occurrence of double feeding. Here, since the number of documents is the same, it is not considered that double feeding has occurred in either one of the first processing or the second processing, and double feeding has occurred in both. Therefore, it is preferable to scan the document again.

文字数の差が所定値以下であれば、ステップ436において、CPU102は、1回目の処理(図4のステップ400)により記憶されたファイルを最終出力データとして決定する。   If the difference in the number of characters is equal to or smaller than the predetermined value, in step 436, the CPU 102 determines the file stored by the first process (step 400 in FIG. 4) as the final output data.

ステップ434、ステップ436、又はステップ452が実行された後、制御は図4のステップ414に移行する。   After step 434, step 436, or step 452 is executed, control passes to step 414 in FIG.

ステップ434又はステップ436が実行された後、制御がステップ414に戻った場合には、第1の実施の形態と同様に、データ比較処理結果として、選択された機能の実行に使用されるデータが提示される。   When the control returns to step 414 after step 434 or step 436 is executed, the data used for the execution of the selected function is obtained as the data comparison processing result, as in the first embodiment. Presented.

ステップ452が実行された後、制御がステップ414に戻った場合、ステップ452でメッセージが操作部124の表示パネルに表示されていれば、その表示を維持したまま、データ比較処理結果を提示する。ステップ452が実行された場合には、CPU102はデータ比較処理結果として、選択された機能の実行に使用されるデータが決定されていない旨を、例えば、操作部124の表示パネルに表示する。   When the control returns to step 414 after step 452 is executed, if the message is displayed on the display panel of the operation unit 124 in step 452, the data comparison processing result is presented while maintaining the display. When step 452 is executed, the CPU 102 displays, for example, on the display panel of the operation unit 124 that the data used for executing the selected function has not been determined as the data comparison processing result.

以上、図4及び図10に示した処理により、画像形成装置100は、同じ原稿に対して2回スキャンを実行し、原稿枚数、ファイルサイズ、及び文字数を順次比較することにより、原稿の重送を判定し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。特に、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて自動原稿送り装置114にセットすることにより、より精度よく原稿の重送を検出することができる。   4 and 10, the image forming apparatus 100 scans the same document twice and sequentially compares the number of documents, the file size, and the number of characters, thereby double-feeding the documents. The function designated by the user can be executed using the image file scanned without occurrence of double feeding. In particular, when a document is set for the second processing, the orientation of the document is changed and set in the automatic document feeder 114 as instructed by the user, thereby detecting the document double feed more accurately. be able to.

なお、ユーザが、指示通りに原稿の向きを変えない可能性がある。即ち、ユーザが原稿を1回目と同じ向きにセットして、OKボタンを押す可能性がある。その場合にも、原稿枚数の比較に加えて、ファイルサイズ及び文字数を比較することにより、原稿枚数だけを比較する場合よりも精度よく原稿の重送を検出することができる。例えば、2回の原稿のスキャン処理において重送が発生し、異なるページが重送された場合、原稿枚数だけを比較しても重送を検出することはできないが、本実施の形態にように、ファイルサイズ又は文字数を比較することにより、重送を検出することができる。   There is a possibility that the user does not change the orientation of the document as instructed. That is, the user may set the document in the same direction as the first time and press the OK button. Even in that case, by comparing the file size and the number of characters in addition to the comparison of the number of originals, it is possible to detect double feeding of the originals more accurately than in the case of comparing only the number of originals. For example, when double feeding occurs in the scanning process of two originals and different pages are double fed, it is not possible to detect double feeding even if only the number of originals is compared. By comparing the file size or the number of characters, double feeding can be detected.

なお、2回目にセットされた原稿の向きが、1回目にセットされた向きと異なるか否かを判定してもよい。例えば、1回目の処理を実行するときに、原稿の幅を記憶しておけば、2回目の処理の実行が指示を受け付けたときに、検出した原稿の幅が、記憶している値(1回目の処理を実行するときに検出した原稿の幅)と同じであれば、原稿の向きを変えてセットしたかを確認するメッセージを表示するようにしてもよい。これにより、原稿の向きを変えてセットされる可能性を高くし、重送の検出精度をより高くすることができる。   Note that it may be determined whether the orientation of the document set for the second time is different from the orientation set for the first time. For example, if the document width is stored when the first process is executed, the detected document width is the stored value (1 when the second process execution receives an instruction. If it is the same as the width of the document detected when the second process is executed, a message for confirming whether or not the document has been set may be displayed. As a result, it is possible to increase the possibility that the document will be set by changing the direction of the document, and to further increase the detection accuracy of the double feed.

上記では、ステップ440(ファイルサイズの比較処理)が実行された後にステップ444(文字数の比較処理)が実行され得る場合を説明したが、これに限定されない。ステップ444が実行された後にステップ440が実行され得るようにしてもよい。   In the above description, the case where Step 444 (Character Number Comparison Processing) can be executed after Step 440 (File Size Comparison Processing) is executed has been described. However, the present invention is not limited to this. Step 440 may be executed after step 444 is executed.

上記では、原稿枚数の比較処理、ファイルサイズの比較処理、及び文字数の比較処理が全て直列に実行され得る場合を説明したが、これに限定されない。原稿枚数の比較処理、ファイルサイズの比較処理、及び文字数の比較処理の少なくとも2つの比較処理が実行されればよい。また、複数の比較対象は、時系列に順次比較されても、マルチタスクにより同時に並行して比較されてもよい。   In the above description, the case where the document number comparison process, the file size comparison process, and the character number comparison process can all be executed in series has been described. However, the present invention is not limited to this. It suffices to execute at least two comparison processes: a document number comparison process, a file size comparison process, and a character count comparison process. Further, the plurality of comparison targets may be sequentially compared in time series or may be simultaneously compared in parallel by multitasking.

(第3の実施の形態)
第1及び第2の実施の形態においては、2回スキャン処理された原稿全体の文字数が比較されたのに対して、第3の実施の形態においては、原稿のページ毎の文字数が比較される。
(Third embodiment)
In the first and second embodiments, the number of characters of the entire document scanned twice is compared, while in the third embodiment, the number of characters for each page of the document is compared. .

本実施の形態に係る画像形成装置は、図1〜3に示した第1の実施の形態に係る画像形成装置と同様に構成されている。また、本実施の形態に係る画像形成装置は、ユーザにより操作部が操作され、自動原稿読取り装置を使用する機能(例えば、コピー機能、スキャナ機能、ファクシミリ機能、又はscan to e−mail機能等)が選択されて、その実行条件が設定された後に実行が指示されたことを受けて、図4に示した重送を検出するための制御プログラムを実行する。以下、図1〜4の参照番号を引用して説明する。   The image forming apparatus according to the present embodiment is configured similarly to the image forming apparatus according to the first embodiment shown in FIGS. In addition, the image forming apparatus according to the present embodiment has a function of operating an operation unit by a user and using an automatic document reader (for example, a copy function, a scanner function, a facsimile function, or a scan to e-mail function). 4 is selected, and when the execution condition is set, the control program for detecting the double feed shown in FIG. 4 is executed. Hereinafter, description will be made with reference to the reference numerals in FIGS.

第1又は第2の実施の形態のように原稿の総文字数を比較することでは、重送を検出できない場合がある。図11を参照してこの問題を説明する。図11において、左端の列には、原稿が4ページから構成されることを示し、中央の列及び右端の列にはそれぞれ、1回目及び2回目のスキャン処理の結果を示す。1回目のスキャン処理においては、原稿の2ページ目は、原稿の1ページ目と重送され、スキャンされなかったことが示されている。また、2回目のスキャン処理においては、原稿の3ページ目は、原稿の2ページ目と重送され、スキャンされなかったことが示されている。   By comparing the total number of characters in the original as in the first or second embodiment, there are cases where double feed cannot be detected. This problem will be described with reference to FIG. In FIG. 11, the leftmost column indicates that the document is composed of four pages, and the center column and the rightmost column indicate the results of the first and second scan processes, respectively. In the first scanning process, the second page of the document is double-fed with the first page of the document, indicating that it has not been scanned. In the second scanning process, the third page of the document is double-fed with the second page of the document, indicating that the document has not been scanned.

1回目及び2回目のスキャン処理の結果、原稿枚数は共に3枚であり、原稿の総文字数は、1回目が33文字、2回目が36文字である。したがって、第1の実施の形態と同様に、
D1=abs(Text1−Text2)/avrage(Text1,Text2)
により、文字数の差D1を計算すると、D1=3/34.5≒0.09となる。TEXT=0.1であれば、D1≦TEXT を満たすので、図8のフローチャートでは、実際には重送が発生しているにもかかわらず、重送が発生しなかった場合の処理であるステップ436が実行されてしまう。
As a result of the first and second scan processes, the number of documents is both 3, and the total number of characters of the document is 33 characters for the first time and 36 characters for the second time. Therefore, as in the first embodiment,
D1 = abs (Text1-Text2) / avage (Text1, Text2)
Thus, when the difference D1 in the number of characters is calculated, D1 = 3 / 34.5≈0.09. If TEXT = 0.1, D1 ≦ TEXT is satisfied. Therefore, in the flowchart of FIG. 8, in the flowchart of FIG. 8, the process is a process when double feed does not occur even though double feed has actually occurred. 436 is executed.

これに対処するために、本実施の形態においては、データ比較処理(図4のステップ412)において、原稿のページ毎の文字数を比較する。具体的には、図12に示すデータ比較処理が実行される。   In order to cope with this, in the present embodiment, the number of characters for each page of the document is compared in the data comparison process (step 412 in FIG. 4). Specifically, the data comparison process shown in FIG. 12 is executed.

図12のデータ比較処理のプログラムの制御構造が、図8のデータ比較処理のプログラムの制御構造(第1の実施の形態)と異なる点は、ステップ452及びステップ460が追加されているだけである。図12において、図8と同じ参照番号が付された処理は、図8と同じである。   The control structure of the data comparison processing program in FIG. 12 is different from the control structure of the data comparison processing program in the FIG. 8 (first embodiment) only in that steps 452 and 460 are added. . In FIG. 12, the process with the same reference number as FIG. 8 is the same as FIG.

ここでは、図4のステップ400(1回目のスキャン処理)及びステップ408(2回目のスキャン処理)において、原稿のページ毎に実行された文字認識処理の結果得られた文字数の加算値(累積値)を記憶するだけでなく、各ページの文字数を、それが算出された順序と対応させて記憶する。これによって、2つのベクトルが記憶される。図11に示した例では、1回目のスキャン処理により、(16,9,8)というベクトルが記憶され、2回目のスキャン処理により、(16,12,8)というベクトルが記憶される。   Here, in step 400 (first scan processing) and step 408 (second scan processing) in FIG. 4, the added value (cumulative value) of the number of characters obtained as a result of the character recognition processing executed for each page of the document. ) As well as the number of characters in each page in correspondence with the order in which it was calculated. As a result, two vectors are stored. In the example shown in FIG. 11, the vector (16, 9, 8) is stored by the first scanning process, and the vector (16, 12, 8) is stored by the second scanning process.

第1の実施の形態と同様に、ステップ430における判定の結果、原稿枚数を比較するように設定されていないと判定され、且つ、ステップ438における判定の結果、文字数を比較するように設定されていると判定された場合、ステップ440において、原稿の総文字数の差が所定値以下であるか否かが判定される。原稿の総文字数の差が所定値以下でなければ、ステップ442が実行され、原稿の総文字数が多い方のファイルが最終出力データとして決定される。   As in the first embodiment, as a result of determination in step 430, it is determined that the number of originals is not set to be compared, and as a result of determination in step 438, the number of characters is set to be compared. If it is determined that the difference is found, it is determined in step 440 whether or not the difference in the total number of characters of the document is equal to or less than a predetermined value. If the difference in the total number of characters in the document is not less than the predetermined value, step 442 is executed, and the file with the larger total number of characters in the document is determined as the final output data.

原稿の総文字数の差が所定値以下であれば、ステップ460において、CPU102は、1回目及び2回目のそれぞれのスキャン処理において算出された、対応するページ毎の文字数が全て一致するか否かを判定する。具体的には、CPU102は、記憶された2つのベクトルが一致するか否かを判定する。一致する、即ち、ベクトルの各成分(ページ毎の文字数)が全て一致する場合、制御はステップ436に移行する。そうでなければ、即ち、ページの文字数が、少なくとも1つ異なっていれば、制御はステップ452に移行する。   If the difference in the total number of characters of the document is equal to or smaller than the predetermined value, in step 460, the CPU 102 determines whether or not the number of characters for each corresponding page calculated in each of the first and second scan processes matches. judge. Specifically, the CPU 102 determines whether or not the two stored vectors match. If they match, that is, if all the vector components (number of characters per page) match, control passes to step 436. Otherwise, ie, if the number of characters on the page differs by at least one, control passes to step 452.

図11に示した例では、(16,9,8)と(16,12,8)とが比較される。これらのベクトルは、第2成分(2番目に記憶されたページの文字数)が異なるので、制御はステップ452に移行する。   In the example shown in FIG. 11, (16, 9, 8) and (16, 12, 8) are compared. Since these vectors are different in the second component (number of characters of the second stored page), the control shifts to step 452.

なお、ここでは、原稿枚数で判定しない場合にステップ460が実行されるので、生成される2つのベクトルの要素の数が異なっている場合(スキャンされた原稿枚数が異なる場合)も含まれる。その場合、2つのベクトルは一致しないと判定される。   Here, since step 460 is executed when determination is not made based on the number of documents, the case where the number of elements of two generated vectors is different (when the number of scanned documents is different) is also included. In that case, it is determined that the two vectors do not match.

ステップ452において、CPU102は、重送が発生している可能性があるので、再度、原稿を自動原稿送り装置114にセットして、実行を指示することを勧める旨を提示する。例えば、CPU102は、操作部124の表示パネルにその旨を表示する。   In step 452, since there is a possibility that double feeding has occurred, the CPU 102 presents that it is recommended to set the document on the automatic document feeder 114 again and instruct execution. For example, the CPU 102 displays that fact on the display panel of the operation unit 124.

ステップ434、ステップ436、ステップ442、ステップ446、又はステップ452が実行された後、制御は図4のステップ414に移行する。   After step 434, step 436, step 442, step 446, or step 452 is executed, control passes to step 414 in FIG.

ステップ434、ステップ436、ステップ442又はステップ446が実行された後、制御がステップ414に戻った場合には、第1の実施の形態と同様に、データ比較処理結果として、選択された機能の実行に使用されるデータが提示される。   When the control returns to step 414 after step 434, step 436, step 442 or step 446 is executed, the selected function is executed as the data comparison processing result as in the first embodiment. The data used for is presented.

一方、ステップ452が実行された後、制御がステップ414に戻った場合、ステップ452でメッセージが操作部124の表示パネルに表示されていれば、その表示を維持したまま、データ比較処理結果として、選択された機能の実行に使用されるデータが決定されていない旨を、例えば、操作部124の表示パネルに表示する。   On the other hand, when the control returns to step 414 after step 452 is executed, if the message is displayed on the display panel of the operation unit 124 in step 452, the display is maintained and the data comparison processing result is obtained. For example, the fact that the data used to execute the selected function has not been determined is displayed on the display panel of the operation unit 124, for example.

以上、図4及び図12に示した処理により、画像形成装置100は、同じ原稿に対して2回スキャンを実行し、原稿枚数、ファイルサイズ、又は文字数を比較することにより、原稿の重送を判定し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。特に、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて自動原稿送り装置114にセットすることにより、より精度よく原稿の重送を検出することができる。   4 and 12, the image forming apparatus 100 scans the same document twice and compares the number of documents, the file size, or the number of characters, thereby double-feeding the documents. The function specified by the user can be executed using the image file that has been determined and scanned without causing double feed. In particular, when a document is set for the second processing, the orientation of the document is changed and set in the automatic document feeder 114 as instructed by the user, thereby detecting the document double feed more accurately. be able to.

本実施の形態において、原稿の向きを変えずに、同じ原稿に対して2回スキャン処理を実行し、原稿枚数、文字数、又はファイルサイズを比較するようにしてもよい。即ち、ステップ404における提示は任意である。   In the present embodiment, the same document may be scanned twice without changing the orientation of the document, and the number of documents, the number of characters, or the file size may be compared. That is, the presentation in step 404 is arbitrary.

さらに、原稿の総文字数の差が所定値以下である場合には、さらに各ページの文字数を比較することにより、重送の発生をより精度よく検出することができる。即ち、1回目のスキャン処理と2回目のスキャン処理とにより得られた、一連のページ毎の文字数(ベクトル)が同じでなければ、重送の発生をユーザに提示することができる。   Further, when the difference in the total number of characters in the document is equal to or smaller than a predetermined value, the occurrence of double feeding can be detected with higher accuracy by further comparing the number of characters on each page. That is, if the number of characters (vector) for each series of pages obtained by the first scan process and the second scan process is not the same, the occurrence of double feed can be presented to the user.

なお、重送が生じている可能性があるページの情報を提示するようにしてもよい。即ち、2つのベクトルの第N成分が異なっている場合、N番目以降のページで重送が発生している可能性があるので、「Nページ以降で重送が発生」等のメッセージを提示することができる。これにより、ユーザは、提示されたページに対して、重送が生じないように対策を講じた後、再度スキャン処理を実行することができる。   Note that information on a page where there is a possibility of double feeding may be presented. That is, when the N-th component of the two vectors is different, there is a possibility that double feed has occurred in the Nth and subsequent pages, so a message such as “Multiple feed occurred after N pages” is presented. be able to. As a result, the user can execute the scanning process again after taking measures to prevent the double feed from occurring on the presented page.

上記では、各ページの文字数が同じ値であるか否かを判定する場合を説明したが、それに限定されない。文字認識処理の誤差を考慮して、各ページの文字数の差が所定値以下であるか否か、即ち、2つのベクトルの各成分の差が全て所定値以下であるか否かを判定してもよい。その場合、2つのベクトルの各成分の差が全て所定値以下であれば、2つのベクトルが一致すると判定し、ステップ436が実行される。   In the above description, the case where it is determined whether or not the number of characters on each page is the same value has been described. However, the present invention is not limited to this. Considering the error of character recognition processing, it is determined whether or not the difference in the number of characters on each page is less than or equal to a predetermined value, that is, whether or not all the differences between the components of the two vectors are less than or equal to a predetermined value. Also good. In that case, if the differences between the components of the two vectors are all equal to or less than the predetermined value, it is determined that the two vectors match, and step 436 is executed.

上記では、各ページの文字数を比較する場合を説明したが、これに限定されない。各ページのデータサイズを比較してもよい。その場合には、スキャン処理中に各ページのデータサイズを算出し、算出された順序と対応させて記憶(例えばベクトルとして記憶)しておけばよい。また、スキャン処理中に各ページのデータサイズを算出しない場合には、最終のファイルから、各ページのデータサイズを算出してもよい。これにより、原稿のファイルサイズの差が所定値以下であった場合に、各ページのデータサイズを比較することができる。その場合、各ページのデータサイズの誤差を考慮して、各ページのデータサイズの差が所定値以下であれば、即ち、2つのベクトルの各成分の差が全て所定値以下であれば、2つのベクトルが等しいと判定してもよい。   Although the case where the number of characters of each page is compared was demonstrated above, it is not limited to this. You may compare the data size of each page. In that case, the data size of each page may be calculated during the scanning process, and stored in correspondence with the calculated order (for example, stored as a vector). Further, when the data size of each page is not calculated during the scanning process, the data size of each page may be calculated from the final file. Thereby, when the difference between the file sizes of the originals is equal to or less than a predetermined value, the data sizes of the respective pages can be compared. In that case, in consideration of an error in the data size of each page, if the difference in the data size of each page is equal to or smaller than a predetermined value, that is, if all the differences in the components of the two vectors are equal to or smaller than the predetermined value, 2 It may be determined that the two vectors are equal.

上記では、原稿の総文字数の差が所定値以下のとき、ページ毎の文字数が全て一致するか否かの判定を行なっているが、原稿の総文字数の差を比較することなく、ページ毎の文字数が一致するか否かの判定を行なうようにしてもよい。各ページのデータサイズについても同様に、原稿の総データサイズの差を比較することなく、ページ毎のデータサイズが一致するか否かの判定を行なうようにしてもよい。   In the above description, when the difference in the total number of characters in the document is equal to or less than a predetermined value, it is determined whether or not the number of characters in each page matches, but without comparing the difference in the total number of characters in the document, You may make it determine whether the number of characters corresponds. Similarly, for the data size of each page, it may be determined whether or not the data size of each page matches without comparing the difference in the total data size of the originals.

上記では、図8のフローチャートに、各ページの文字数を比較する処理を追加する場合を説明したが、図9又は図10のフローチャートに、各ページの文字数を比較する処理を追加してもよい。例えば、図9又は図10のステップ440の後に、図12のステップ460及びステップ452を追加すればよい。   In the above description, the process of comparing the number of characters of each page is added to the flowchart of FIG. 8, but the process of comparing the number of characters of each page may be added to the flowchart of FIG. 9 or 10. For example, step 460 and step 452 in FIG. 12 may be added after step 440 in FIG. 9 or FIG.

(第4の実施の形態)
第1〜第3の実施の形態においては、原稿枚数、ファイルサイズ及び文字数が比較されたのに対して、第4の実施の形態においては、原稿自動判別部の出力データ(原稿判別データ)を用いる。
(Fourth embodiment)
In the first to third embodiments, the number of documents, the file size, and the number of characters are compared. In the fourth embodiment, the output data (document discrimination data) of the automatic document discrimination unit is used. Use.

本実施の形態に係る画像形成装置は、図1〜3に示した第1の実施の形態に係る画像形成装置と同様に構成されている。また、本実施の形態に係る画像形成装置は、ユーザにより操作部が操作され、自動原稿読取り装置を使用する機能(例えば、コピー機能、スキャナ機能、ファクシミリ機能、又はscan to e−mail機能等)が選択されて、その実行条件が設定された後に実行が指示されたことを受けて、図4に示した重送を検出するための制御プログラムを実行する。以下、図1〜4の参照番号を引用して説明する。   The image forming apparatus according to the present embodiment is configured similarly to the image forming apparatus according to the first embodiment shown in FIGS. In addition, the image forming apparatus according to the present embodiment has a function of operating an operation unit by a user and using an automatic document reader (for example, a copy function, a scanner function, a facsimile function, or a scan to e-mail function). 4 is selected, and when the execution condition is set, the control program for detecting the double feed shown in FIG. 4 is executed. Hereinafter, description will be made with reference to the reference numerals in FIGS.

本実施の形態では、第1〜第3の実施の形態と同様に、原稿枚数、ファイルサイズ及び文字数を比較することに加えて、さらに原稿自動判別部(図2及び図3参照)のデータとして、自動カラー判別処理の結果を使用する。具体的には、原稿自動判別部(カラー原稿枚数算出手段)により実行される自動カラー判別処理によりカラーと判定されたページ数(以下、カラー原稿枚数ともいう)を比較する。2つのデータのカラー原稿枚数の差を求め、差があれば重送により原稿の欠落が発生したと判定して、カラー原稿枚数の多い方のデータを最終出力データとして採用する。   In the present embodiment, as in the first to third embodiments, in addition to comparing the number of documents, the file size, and the number of characters, the data of the automatic document discrimination unit (see FIGS. 2 and 3) is also used. The result of automatic color discrimination processing is used. Specifically, the number of pages determined as color by the automatic color determination process executed by the automatic document determination unit (color document number calculation means) (hereinafter also referred to as the number of color documents) is compared. The difference in the number of color originals between the two data is obtained, and if there is a difference, it is determined that the original has been lost due to double feeding, and the data with the larger number of color originals is adopted as the final output data.

具体的には、図13に示すデータ比較処理が実行される。図13のデータ比較処理のプログラムの構成は、図9のデータ比較処理のプログラムの構成と次の点で異なる。即ち、図9にステップ600及び602が追加され、図9のステップ436及び446がそれぞれステップ604及び452で代替され、ステップ440の判定結果がNOの場合にステップ452が実行される。図13において、図9と同じ参照番号が付された処理は、図9と同じである。   Specifically, the data comparison process shown in FIG. 13 is executed. The configuration of the data comparison processing program of FIG. 13 differs from the configuration of the data comparison processing program of FIG. 9 in the following points. That is, Steps 600 and 602 are added to FIG. 9, Steps 436 and 446 of FIG. 9 are replaced with Steps 604 and 452, respectively, and Step 452 is executed when the determination result of Step 440 is NO. In FIG. 13, the process with the same reference number as FIG. 9 is the same as FIG.

ここでは、画像形成装置100の初期設定として、原稿枚数、ファイルサイズ、カラー原稿枚数、及び文字数のいずれを比較するかが予め設定されているとする。また、図4のステップ400(1回目のスキャン処理)及びステップ408(2回目のスキャン処理)において、自動カラー判別処理によりカラーと判定されたページ数を記憶する。   Here, as an initial setting of the image forming apparatus 100, it is assumed that any of the number of documents, the file size, the number of color documents, and the number of characters is set in advance. Further, in step 400 (first scan processing) and step 408 (second scan processing) in FIG. 4, the number of pages determined to be color by the automatic color determination processing is stored.

ステップ430において、原稿枚数を比較するように設定されていると判定された場合、ステップ432において、ステップ402及びステップ410で記憶された原稿枚数に差があるか否かが判定される。原稿枚数に差があると判定された場合、制御はステップ434に移行する。そうでなければ(原稿枚数に差がないと判定された場合)、制御はステップ604に移行する。   If it is determined in step 430 that the number of documents is set to be compared, it is determined in step 432 whether there is a difference between the number of documents stored in step 402 and step 410. If it is determined that there is a difference in the number of documents, control proceeds to step 434. Otherwise (if it is determined that there is no difference in the number of documents), control proceeds to step 604.

ステップ430において、原稿枚数を比較するように設定されていないと判定された場合、ステップ450において、CPU102は、ファイルサイズを比較するように設定されているか否かを判定する。ファイルサイズを比較するように設定されていれば、制御はステップ444に移行し、ファイルサイズを比較するように設定されていなければ、制御はステップ600に移行する。   If it is determined in step 430 that the number of documents is not set to be compared, in step 450, the CPU 102 determines whether or not the file size is set to be compared. If it is set to compare file sizes, control proceeds to step 444, and if it is not set to compare file sizes, control proceeds to step 600.

ステップ444において、CPU102は、ステップ402及びステップ410で記憶されたファイルサイズの差が所定値以下であるか否かを判定する。ファイルサイズの差が所定値以下であると判定された場合、制御はステップ604に移行する。そうでなければ(ファイルサイズの差が所定値よりも大きければ)、制御はステップ452に移行する。   In step 444, the CPU 102 determines whether or not the difference between the file sizes stored in steps 402 and 410 is equal to or smaller than a predetermined value. If it is determined that the difference between the file sizes is equal to or smaller than the predetermined value, the control proceeds to step 604. Otherwise (if the file size difference is greater than a predetermined value), control passes to step 452.

ステップ600において、CPU102は、カラー原稿枚数を比較するように設定されているか否かを判定する。カラー原稿枚数を比較するように設定されていれば、制御はステップ602に移行する。そうでなければ、制御はステップ440に移行する。   In step 600, the CPU 102 determines whether or not it is set to compare the number of color originals. If it is set to compare the number of color originals, the control proceeds to step 602. Otherwise, control passes to step 440.

ステップ602において、CPU102は、カラー原稿枚数の差が所定値以下であるか否かを判定する。カラー原稿枚数の差が所定値以下であれば、制御はステップ604に移行する。そうでなければ、制御はステップ452に移行する。   In step 602, the CPU 102 determines whether or not the difference in the number of color originals is equal to or less than a predetermined value. If the difference in the number of color originals is equal to or smaller than the predetermined value, the control proceeds to step 604. Otherwise, control passes to step 452.

カラー原稿枚数を比較するように設定されていなければ、ステップ440において、CPU102は、ステップ402及びステップ410で記憶された文字数の差が所定値以下であるか否かを判定する。カラー原稿枚数の差が所定値以下であると判定された場合、制御はステップ604に移行する。そうでなければ(カラー原稿枚数の差が所定値よりも大きければ)、制御はステップ452に移行する。   If it is not set to compare the number of color originals, in step 440, the CPU 102 determines whether or not the difference in the number of characters stored in step 402 and step 410 is equal to or smaller than a predetermined value. If it is determined that the difference in the number of color originals is equal to or smaller than the predetermined value, the control proceeds to step 604. Otherwise (if the difference in the number of color originals is greater than a predetermined value), the control proceeds to step 452.

ステップ604において、CPU102は、1回目の処理(図4のステップ400)により記憶されたファイル、及び2回目の処理(図4のステップ408)により記憶されたファイルのうち、文字数又はファイルサイズが大きい方のファイルを最終出力データ(選択された機能の実行対象である画像ファイル)として決定する。その後、制御は図4のステップ414に移行する。   In step 604, the CPU 102 has a large number of characters or file size among the files stored in the first process (step 400 in FIG. 4) and the files stored in the second process (step 408 in FIG. 4). This file is determined as final output data (an image file to be executed by the selected function). Thereafter, control proceeds to step 414 in FIG.

ステップ452において、CPU102は、重送が発生している可能性があるので、再度、原稿を自動原稿送り装置114にセットして、実行を指示することを勧める旨を提示する。例えば、CPU102は、操作部124の表示パネルにその旨を表示する。   In step 452, since there is a possibility that double feeding has occurred, the CPU 102 presents that it is recommended to set the document on the automatic document feeder 114 again and instruct execution. For example, the CPU 102 displays that fact on the display panel of the operation unit 124.

ステップ434、ステップ452、又はステップ604が実行された後、制御は図4のステップ414に移行する。   After step 434, step 452, or step 604 is executed, control passes to step 414 in FIG.

ステップ434又はステップ604が実行された後、制御がステップ414に戻った場合には、第1の実施の形態と同様に、データ比較処理結果として、選択された機能の実行に使用されるデータが提示される。   When the control returns to step 414 after step 434 or step 604 is executed, data used for execution of the selected function is obtained as a data comparison processing result, as in the first embodiment. Presented.

一方、ステップ452が実行された後、制御がステップ414に戻った場合、ステップ452でメッセージが操作部124に表示されていれば、その表示を維持したまま、選択された機能の実行に使用されるデータが決定されていない旨が、操作部124の表示パネルに表示する。   On the other hand, when the control returns to step 414 after step 452 is executed, if the message is displayed on the operation unit 124 in step 452, it is used to execute the selected function while maintaining the display. That the data to be determined has not been determined is displayed on the display panel of the operation unit 124.

以上、図4及び図13に示した処理により、画像形成装置100は、同じ原稿に対して2回スキャン処理を実行し、原稿枚数、ファイルサイズ、カラー原稿枚数、又は文字数を比較することにより、原稿の重送を判定し、重送が発生せずにスキャンされた画像ファイルを使用して、ユーザが指定した機能を実行することができる。特に、2回目の処理のために原稿をセットするときに、ユーザが指示された通りに原稿の向きを変えて自動原稿送り装置114にセットすることにより、より精度よく原稿の重送を検出することができる。   4 and 13, the image forming apparatus 100 executes the scan process twice for the same document, and compares the number of documents, the file size, the number of color documents, or the number of characters. The function specified by the user can be executed by determining whether or not the document is double-fed and using the image file scanned without the double-fed. In particular, when a document is set for the second processing, the orientation of the document is changed and set in the automatic document feeder 114 as instructed by the user, thereby detecting the document double feed more accurately. be able to.

本実施の形態において、原稿の向きを変えずに、同じ原稿に対して2回スキャン処理を実行し、原稿枚数、文字数、カラー原稿枚数、又は文字数を比較するようにしてもよい。即ち、ステップ404における提示は任意である。   In the present embodiment, the same document may be scanned twice without changing the orientation of the document, and the number of documents, the number of characters, the number of color documents, or the number of characters may be compared. That is, the presentation in step 404 is arbitrary.

また、ファイルサイズの差、カラー原稿の枚数の差、又は文字数の差が大きい場合には、その旨をユーザに提示するので、ユーザは、原稿をさばく等、重送を回避する処置を行なうことができる。   Further, when the difference in file size, the difference in the number of color originals, or the difference in the number of characters is large, the fact is presented to the user, so the user should take measures to avoid double feeding such as handling the originals. Can do.

上記では、2回スキャン処理された原稿の原稿枚数、ファイルサイズ、カラー原稿枚数、及び文字数の何れか1つの項目が比較される場合を説明したが、これに限定されない。第2の実施の形態と同様に、原稿枚数、ファイルサイズ、カラー原稿枚数、及び文字数のうち、複数の項目が比較されてもよい。例えば、図14に示すようなデータ比較処理であってもよい。   In the above description, a case has been described in which any one of the number of originals scanned twice, the file size, the number of color originals, and the number of characters is compared. However, the present invention is not limited to this. As in the second embodiment, a plurality of items may be compared among the number of documents, the file size, the number of color documents, and the number of characters. For example, a data comparison process as shown in FIG. 14 may be used.

図14のデータ比較処理においては、原稿枚数、ファイルサイズ、カラー原稿枚数、及び文字数の全てが比較対象である。したがって、図14のデータ比較処理のプログラムの構成が、図13のデータ比較処理のプログラム構成と異なる点は、ステップ430、ステップ450及びステップ600の判定処理を含まず、ステップ432、ステップ444、ステップ602及びステップ444が直列に実行され得るように構成されている点である。図14において、図13と同じ参照番号が付された処理は、図13と同じである。   In the data comparison process of FIG. 14, all of the number of documents, the file size, the number of color documents, and the number of characters are to be compared. Therefore, the difference between the program configuration of the data comparison process of FIG. 14 and the program configuration of the data comparison process of FIG. 13 does not include the determination process of step 430, step 450, and step 600, but step 432, step 444, step 602 and step 444 are configured to be executed in series. In FIG. 14, the process with the same reference number as FIG. 13 is the same as FIG.

図14のように、原稿枚数、ファイルサイズ、カラー原稿の枚数、及び文字数の全てを比較対象とすることにより、第2の実施の形態と同様に、2回目のスキャン処理においてユーザが原稿の向きを変えなかったとしても、原稿枚数だけを比較する場合よりも精度よく原稿の重送を検出することができる。   As shown in FIG. 14, by comparing all of the number of documents, the file size, the number of color documents, and the number of characters, the orientation of the document is determined by the user in the second scanning process, as in the second embodiment. Even if no change is made, it is possible to detect double feeding of documents with higher accuracy than when only the number of documents is compared.

なお、自動カラー判別処理としては、例えば、以下に示す方法を用いることができる。例えば、RGB信号の最大値及び最小値を閾値THa(例えば、20)と比較して、画素が有彩であるか無彩であるかの判定を行なう。そして、有彩と判定された画素を原稿全体で計数し、例えば、有彩画素が7000以上である場合、カラー原稿であると判定する。上記閾値を、原稿全体に対する有彩画素の割合(%)ではなく、絶対数のまま用いるのは、サイズの大きいA3サイズの原稿においても、一部捺印等された原稿をカラー原稿と判定できるようにするためである。   For example, the following method can be used as the automatic color discrimination process. For example, the maximum value and the minimum value of the RGB signal are compared with a threshold value THa (for example, 20) to determine whether the pixel is chromatic or achromatic. Then, the pixels determined to be chromatic are counted for the entire document. For example, if the chromatic pixels are 7000 or more, it is determined that the document is a color document. The above threshold value is used as an absolute number, not as a ratio (%) of chromatic pixels to the entire document, so that even a large A3 size document can determine a partially stamped document as a color document. It is to make it.

なお、画素が有彩であるか無彩であるかの判定方法としては、RGB信号の各色成分の差分の絶対値を求めて、その値を閾値と比較する方法等、公知の方法を用いてもよい。   In addition, as a method for determining whether a pixel is chromatic or achromatic, a known method such as a method of obtaining an absolute value of a difference between each color component of an RGB signal and comparing the value with a threshold value is used. Also good.

また、上記では、有彩画素を計数した値そのものを閾値と比較してカラー原稿、又は白黒原稿の判定を行なっているが、これに限定されない。特開平4−282968号公報に開示されている方法を用いてもよい。この方法は、画素毎にカラー画素であるかモノクロ画素であるかを判別し、与えられる画素順で所定数以上の連続するカラー画素の存在が検出されると、この連続カラー画素分をカラーブロックと認識し、1ライン中に所定数以上のカラーブロックが存在していれば、そのラインをカラーラインとして計数する。そして、原稿中にカラーラインが所定数以上存在していれば、カラー画像と判定し、そうでなければ、モノクロ画像と判定する。原稿中にどの程度カラー画素が含まれていれば、カラー原稿と判定するのかにより、カラーブロックであるか否かを判定する基準、原稿中のカラーラインの数を適切に設定すればよい。   In the above description, a color document or a monochrome document is determined by comparing the value of counting chromatic pixels with a threshold value. However, the present invention is not limited to this. You may use the method currently disclosed by Unexamined-Japanese-Patent No. 4-282968. This method discriminates whether each pixel is a color pixel or a monochrome pixel, and if the presence of a predetermined number or more of continuous color pixels is detected in the given pixel order, the continuous color pixel portion is detected as a color block. If a predetermined number or more of color blocks exist in one line, the line is counted as a color line. If a predetermined number or more of color lines exist in the document, it is determined as a color image, and otherwise, it is determined as a monochrome image. What is necessary is just to set appropriately the reference | standard which determines whether it is a color block, and the number of the color lines in a document depending on how many color pixels are contained in a document and it determines with a color document.

上記では、原稿自動判別部の出力データとして、自動カラー判別処理の結果から得られるカラー原稿枚数を使用する場合を説明したが、これ以外の判別処理の結果を使用してもよい。例えば、原稿の種別の判別結果から得られる文字原稿の枚数、印刷写真原稿の枚数、文字印刷写真原稿の枚数、又は印画紙写真原稿の枚数等を比較してもよい。   In the above description, the case where the number of color originals obtained from the result of the automatic color discrimination process is used as the output data of the automatic original discrimination unit has been described, but the result of other discrimination processes may be used. For example, the number of character originals, the number of printed photo originals, the number of character printed photo originals, or the number of photographic paper photo originals obtained from the determination result of the type of original may be compared.

原稿の種類の判別方法としては、例えば、特開2002−232708号公報に記載の方法を用いることができる。この方法は、下記の(1)〜(7)により、原稿の種類を決定する。
(1)注目画素を含むn画素×m画素(例えば、7画素×15画素)のブロックにおける最小濃度値及び最大濃度値を算出する。
(2)算出された最小濃度値及び最大濃度値の差を計算し、その値を最大濃度差とする。
(3)隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度(例えば、主走査方向と副走査方向について算出した値の和)を算出する。
(4)算出された最大濃度差と最大濃度差閾値との比較、及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行なう。注目画素が、最大濃度差<最大濃度差閾値、且つ、総和濃度繁雑度<総和濃度繁雑度閾値 という条件を満たせば、注目画素は下地・印画紙写真領域に属すると判定する。注目画素がこの条件を満たさなければ、注目画素は文字・網点領域に属すると判定する。
(5)下地・印画紙写真領域に属すると判定された画素について、注目画素が、最大濃度差<下地・印画紙写真判定閾値 という条件を満たせば、注目画素は下地画素であると判定する。注目画素がこの条件を満たさなければ、注目画素は印画紙写真(連続階調領域)画素であると判定する。
(6)文字・網点領域に属すると判定された画素について、注目画素が、総和濃度繁雑度<最大濃度差に文字・網点判定閾値を掛けた値 という条件を満たせば、注目画素は文字画素であると判定する。注目画素がこの条件を満たさなければ、注目画素は網点画素であると判定する。
(7)下地領域、印画紙写真領域、文字領域、又は網点領域に分類された画素数をカウントし、それぞれのカウント値と、予め定められている下地領域、印画紙写真領域、網点領域及び文字領域に対する閾値とを比較して原稿の種類を判定する。例えば、文字、網点、印画紙写真の順に検出精度が高いとすると、文字領域の比率が全画素数の30%以上の場合には文字原稿、網点領域の比率が全画素数の20%以上の場合には網点原稿(印刷写真原稿)、印画紙写真領域の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるとき、文字/網点原稿(文字印刷写真原稿)であると判定する。
As a method for discriminating the type of document, for example, the method described in Japanese Patent Laid-Open No. 2002-232708 can be used. In this method, the type of document is determined by the following (1) to (7).
(1) The minimum density value and the maximum density value in a block of n pixels × m pixels (for example, 7 pixels × 15 pixels) including the target pixel are calculated.
(2) The difference between the calculated minimum density value and the maximum density value is calculated, and the value is set as the maximum density difference.
(3) The total density busyness (for example, the sum of values calculated in the main scanning direction and the sub-scanning direction), which is the sum of absolute values of density differences between adjacent pixels, is calculated.
(4) The calculated maximum density difference is compared with the maximum density difference threshold, and the calculated total density busyness is compared with the total density busyness threshold. If the target pixel satisfies the conditions of maximum density difference <maximum density difference threshold and total density busyness <total density busyness threshold, it is determined that the target pixel belongs to the background / photographic paper photograph region. If the target pixel does not satisfy this condition, it is determined that the target pixel belongs to the character / halftone dot region.
(5) For a pixel determined to belong to the background / printing paper photo area, if the target pixel satisfies the condition of maximum density difference <background / printing paper photo determination threshold, the target pixel is determined to be the background pixel. If the target pixel does not satisfy this condition, it is determined that the target pixel is a photographic paper photograph (continuous tone region) pixel.
(6) For a pixel determined to belong to the character / halftone dot region, if the target pixel satisfies the condition that the total density busyness <the maximum density difference multiplied by the character / halftone determination threshold, the target pixel is a character It is determined that it is a pixel. If the target pixel does not satisfy this condition, it is determined that the target pixel is a halftone pixel.
(7) Count the number of pixels classified into a background area, a photographic paper photograph area, a character area, or a halftone dot area. Each count value and a predetermined background area, a photographic paper photograph area, and a halftone dot area are counted. The document type is determined by comparing the threshold value for the character area. For example, assuming that the detection accuracy is higher in the order of characters, halftone dots, and photographic paper photographs, the ratio of the text original and halftone areas is 20% of the total number of pixels when the ratio of the character areas is 30% or more of the total number of pixels. In the above case, when the ratio of the halftone original (printed photo original) and the photographic paper photo area is 10% or more of the total number of pixels, it is determined that the image is a photographic paper photo original. Further, when the ratio of the character area and the ratio of the halftone dot area are equal to or greater than the threshold value, respectively, it is determined that the character / halftone original (character-printed photo original).

なお、第1〜第4の実施の形態における各比較対象の優先順位は、原稿枚数が最も高く、ファイルサイズ、文字数又はカラー原稿枚数の順で低くなる。重送が生じなかったとしても、紙粉の影響、又は微妙な原稿の傾きにより、ファイルサイズが少し変わる場合がある(数KByte程度)。ファイルサイズの差には、このような変動要因が含まれるので、優先順位は原稿枚数の差よりも低い。   In the first to fourth embodiments, the order of priority of each comparison target is the highest in the number of documents, and decreases in the order of file size, number of characters, or number of color documents. Even if double feeding does not occur, the file size may change slightly due to the influence of paper dust or slight document inclination (about several kilobytes). Since the difference in file size includes such variation factors, the priority order is lower than the difference in the number of documents.

文字数は、原稿種別判別結果が、文字原稿、文字印刷写真原稿、又は、文字印画紙写真原稿(文字と印画紙印刷写真とが混在した原稿)である場合に、使用することができる。また、カラー原稿枚数は、原稿判別結果にカラー原稿が含まれている場合に有効である。このように、文字数及びカラー原稿枚数は、原稿の種類に依存するので、優先順位は低くなる。   The number of characters can be used when the document type determination result is a character document, a character-printed photo document, or a character photographic paper photo document (a document in which characters and photographic paper-printed photos are mixed). The number of color originals is effective when a color original is included in the original discrimination result. Thus, since the number of characters and the number of color originals depend on the type of original, the priority order is lowered.

表1に、原稿種類の判別結果に対する上記した比較対象の優先順位を示す。なお、原稿自動判別部が設けられていない画像形成装置においても、各比較対象の優先順位は、原稿枚数、ファイルサイズ、文字数又はカラー原稿枚数の順で低くなる。この場合にも、文字原稿、カラー原稿が含まれていない可能性があるので、文字数及びカラー原稿枚数の優先順位は低くなる。   Table 1 shows the priorities of the above-described comparison targets for the document type discrimination result. Even in an image forming apparatus that does not include an automatic document discrimination unit, the priority order of each comparison target decreases in the order of the number of documents, the file size, the number of characters, or the number of color documents. Also in this case, since there is a possibility that the character document and the color document are not included, the priority order of the number of characters and the number of color documents is lowered.

Figure 2015226264
上記では、画像形成装置において原稿の搬送時に発生する重送を検出する場合を説明したが、これに限定されない。図15に示したスキャナ装置等にも、本発明は適用することができる。伸張部より出力されたRGBの画像データは、パーソナルコンピュータ又はサーバコンピュータ等に送信される。図15に示した各部の動作は、画像形成装置と同じであるので説明を繰返さない。
Figure 2015226264
In the above description, a case has been described in which double feeding that occurs during document conveyance in the image forming apparatus is detected, but the present invention is not limited thereto. The present invention can also be applied to the scanner device shown in FIG. The RGB image data output from the decompression unit is transmitted to a personal computer or a server computer. Since the operation of each unit shown in FIG. 15 is the same as that of the image forming apparatus, description thereof will not be repeated.

上記では、画像形成装置に内蔵されたROMに記憶されたプログラムにより、重送を検出する場合を説明したがこれに限定されない。重送を検出するプログラムは、コンピュータ読取り可能な、可搬性の記録媒体に記録されていてもよい。記録されるプログラムコードは任意である。実行形式プログラム、中間コードプログラム、又はソースプログラムの何れであってもよい。これにより、重送を検出するプログラムを記録した記録媒体を持ち運び自在に提供することができる。   In the above description, a case has been described in which double feed is detected by a program stored in a ROM built in the image forming apparatus, but the present invention is not limited to this. The program for detecting double feeding may be recorded on a computer-readable portable recording medium. The program code to be recorded is arbitrary. It may be any of an executable program, an intermediate code program, or a source program. Thereby, the recording medium which recorded the program which detects double feeding can be provided freely.

なお、CPU等が搭載される制御基板にソケットを設けてROMを装着するように構成すれば、上記したROMも、サービスマン等により可搬性のものとして実現することができる。   If a ROM is mounted by providing a socket on a control board on which a CPU or the like is mounted, the above-described ROM can also be realized as a portable by a service person or the like.

コンピュータ読取り可能な記録媒体は、装置本体に着脱可能な記録媒体であり、磁気テープ及びカセットテープ等のテープ系、磁気ディスク(フレキシブルディスク及びハードディスク等)及び光ディスク(CD−ROM、MO、MD及びDVD等)等のディスク系、ICカード(メモリカードを含む)及び光カード等のカード系、又は、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable Programmable Read Only Memory)、及びフラッシュROM等の半導体メモリ系等の、固定的にプログラムコードを担持する媒体である。   Computer-readable recording media are recording media that can be attached to and detached from the main body of the apparatus, such as tape systems such as magnetic tapes and cassette tapes, magnetic disks (flexible disks, hard disks, etc.) and optical disks (CD-ROM, MO, MD, and DVD) Etc.), disk systems such as IC cards (including memory cards) and optical cards, etc., or mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory) , And a medium carrying a fixed program code such as a semiconductor memory system such as a flash ROM.

また、画像形成装置が、インターネットを含む通信ネットワークに接続可能であれば、通信ネットワークを介して、重送を検出するプログラムコードをダウンロードしてもよい。この場合、ダウンロード用のプログラムは予め画像形成装置に格納しておいても、別の記録媒体から画像形成装置にインストールされてもよい。   If the image forming apparatus can be connected to a communication network including the Internet, a program code for detecting double feeding may be downloaded via the communication network. In this case, the download program may be stored in the image forming apparatus in advance, or may be installed in the image forming apparatus from another recording medium.

今回開示された実施の形態は単に例示であって、本発明が上記した実施の形態のみに制限されるわけではない。本発明の範囲は、発明の詳細な説明の記載を参酌した上で、特許請求の範囲の各請求項によって示され、そこに記載された文言と均等の意味及び範囲内での全ての変更を含む。   The embodiment disclosed herein is merely an example, and the present invention is not limited to the above-described embodiment. The scope of the present invention is indicated by each claim of the claims after taking into account the description of the detailed description of the invention, and all modifications within the meaning and scope equivalent to the wording described therein are included. Including.

100 画像形成装置
102 CPU
104 ROM
106 RAM
108 HDD
110 送受信部
112 バス
114 自動原稿送り装置
116 原稿読取部
118 画像形成部
120 画像処理部
122 画像メモリ
124 操作部
100 Image forming apparatus 102 CPU
104 ROM
106 RAM
108 HDD
110 Transmission / Reception Unit 112 Bus 114 Automatic Document Feeder 116 Document Reading Unit 118 Image Forming Unit 120 Image Processing Unit 122 Image Memory 124 Operation Unit

Claims (9)

セットされた複数枚の原稿を搬送するための搬送装置により複数枚の前記原稿の搬送が開始されてから搬送が完了するまでの搬送回数を計数する計数手段と、
前記原稿が搬送される毎に、読取手段により、前記原稿が読取られて生成された複数の前記画像データの総データサイズを算出するデータサイズ算出手段と、
生成された複数の前記画像データの全てに含まれる文字を計数して総文字数を算出する文字数算出手段と、
複数枚の前記原稿の全てが2回搬送されたことにより得られる1組の前記搬送回数、1組の前記総データサイズ、及び1組の前記総文字数のうちの少なくとも2組に関して、各組の値を比較する比較手段と、
前記比較手段による比較結果に応じて、2回の前記搬送における重送の発生の有無を判定する判定手段とを含む、画像処理装置。
A counting means for counting the number of conveyance times from the start of conveyance of a plurality of the originals by a conveyance device for conveying a plurality of set originals to completion of conveyance;
A data size calculating unit that calculates a total data size of the plurality of image data generated by reading the document by the reading unit each time the document is conveyed;
A character number calculating means for calculating the total number of characters by counting characters included in all of the plurality of generated image data;
With respect to at least two sets of one set of the number of conveyance times, one set of the total data size, and one set of the total number of characters obtained by conveying all of the plurality of originals twice, each set A comparison means for comparing values;
An image processing apparatus including: a determination unit configured to determine whether or not a double feed has occurred in the two transports according to a comparison result by the comparison unit;
2回の前記搬送のうち、2回目の搬送を実行する前に、前記原稿の向きを変えて前記原稿を前記搬送装置にセットすることを要求する要求提示手段をさらに含む、請求項1に記載の画像処理装置。   2. The apparatus according to claim 1, further comprising request presentation means for requesting to change the orientation of the document and set the document on the transport device before executing the second transport of the two transports. Image processing apparatus. 前記判定手段は、前記比較手段により比較された少なくとも2組のうち、少なくとも1組の値の差が所定値よりも大きければ、2回の前記搬送において重送が発生したと判定する、請求項1又は2に記載の画像処理装置。   The determination unit determines that a double feed has occurred in the two transports if a difference between at least one of the at least two sets compared by the comparison unit is greater than a predetermined value. The image processing apparatus according to 1 or 2. 生成された前記画像データがカラー原稿に対応するか否かを判定し、複数の前記画像データの全てに対応するカラー原稿の枚数を算出するカラー原稿枚数算出手段をさらに含み、
前記比較手段は、複数枚の前記原稿の全てが2回搬送されたことにより得られる1組のカラー原稿の枚数を比較し、
前記判定手段は、1組の前記カラー原稿の枚数の差が所定値よりも大きければ、2回の前記搬送において重送が発生したと判定する、請求項1から3の何れか1項に記載の画像処理装置。
A color document number calculating means for determining whether the generated image data corresponds to a color document and calculating the number of color documents corresponding to all of the plurality of image data;
The comparing means compares the number of sets of color originals obtained by conveying all of the plurality of originals twice.
4. The determination unit according to claim 1, wherein if the difference in the number of sheets of the one set of color originals is larger than a predetermined value, it is determined that double feeding has occurred in the two transports. 5. Image processing apparatus.
前記文字数算出手段は、前記原稿が搬送される毎に生成される前記画像データに含まれる文字の数であるページ内文字数を算出し、複数枚の前記原稿の全てが搬送されることにより、前記ページ内文字数の算出順序を維持して、前記ページ内文字数を要素とするベクトルを生成するベクトル生成手段を含み、
前記比較手段は、複数枚の前記原稿の全てが2回搬送されたことにより得られる2組の前記ベクトルの対応する要素の差の全てが所定値以下であるか否かを判定し、
前記判定手段は、2組の前記ベクトルの対応する要素の差の全てが所定値以下でなければ、2回の前記搬送において重送が発生したと判定する、請求項1から4の何れか1項に記載の画像処理装置。
The number-of-characters calculating means calculates the number of characters in the page, which is the number of characters included in the image data generated every time the document is conveyed, and the plurality of the documents are conveyed, Maintaining a calculation order of the number of characters in the page, including vector generation means for generating a vector having the number of characters in the page as an element;
The comparing means determines whether or not all of the differences between corresponding elements of the two sets of vectors obtained by transporting all of the plurality of documents twice are equal to or less than a predetermined value;
5. The determination unit according to claim 1, wherein the determination unit determines that double feeding has occurred in the two transports unless all of the differences between corresponding elements of the two sets of vectors are equal to or less than a predetermined value. The image processing apparatus according to item.
前記データサイズ算出手段は、前記原稿が搬送される毎に生成される前記画像データのデータサイズであるページデータサイズを算出し、複数枚の前記原稿の全てが搬送されることにより、前記ページデータサイズの算出順序を維持して、前記ページデータサイズを要素とするベクトルを生成するベクトル生成手段を含み、
前記比較手段は、複数枚の前記原稿の全てが2回搬送されたことにより得られる2組の前記ベクトルの対応する要素の差の全てが所定値以下であるか否かを判定し、
前記判定手段は、2組のベクトルの対応する要素の差の全てが所定値以下でなければ、2回の前記搬送において重送が発生したと判定する、請求項1から4の何れか1項に記載の画像処理装置。
The data size calculating means calculates a page data size that is a data size of the image data generated every time the document is transported, and the page data size is determined by transporting all of the plurality of documents. Vector generation means for generating a vector having the page data size as an element while maintaining the size calculation order,
The comparing means determines whether or not all of the differences between corresponding elements of the two sets of vectors obtained by transporting all of the plurality of documents twice are equal to or less than a predetermined value;
5. The determination unit according to claim 1, wherein the determination unit determines that double feeding has occurred in the two transports unless all of the differences between corresponding elements of the two sets of vectors are equal to or less than a predetermined value. An image processing apparatus according to 1.
請求項1から6の何れかの画像処理装置と、
前記画像データにしたがって記録紙に画像を形成する画像形成手段とを含む、画像形成装置。
An image processing apparatus according to any one of claims 1 to 6,
An image forming apparatus comprising: an image forming unit that forms an image on recording paper according to the image data.
画像処理装置に、
セットされた複数枚の原稿を搬送するための搬送装置により複数枚の前記原稿の搬送が開始されてから搬送が完了するまでの搬送回数を計数する計数機能と、
前記原稿が搬送される毎に前記原稿が読取られて生成された複数の前記画像データの総データサイズを算出するデータサイズ算出機能と、
生成された複数の前記画像データの全てに含まれる文字を計数して総文字数を算出する文字数算出機能と、
複数枚の前記原稿の全てが2回搬送されたことにより得られる1組の前記搬送回数、1組の前記総データサイズ、及び1組の前記総文字数のうちの少なくとも2組に関して、各組の値を比較する比較機能と、
前記比較機能による比較結果に応じて、2回の前記搬送における重送の発生の有無を判定する判定機能とを実現させる、画像処理プログラム。
In the image processing device,
A counting function for counting the number of conveyances from the start of conveyance of the plurality of documents by a conveyance device for conveying a plurality of set documents to completion of conveyance;
A data size calculation function for calculating a total data size of the plurality of image data generated by reading the document every time the document is conveyed;
A number-of-characters calculation function for calculating the total number of characters by counting characters included in all of the plurality of generated image data;
With respect to at least two sets of one set of the number of conveyance times, one set of the total data size, and one set of the total number of characters obtained by conveying all of the plurality of originals twice, each set A comparison function to compare values;
An image processing program that realizes a determination function that determines whether or not double feeding has occurred in two transports according to a comparison result by the comparison function.
請求項8の画像処理プログラムが記録されたコンピュータ読取り可能な記録媒体。
A computer-readable recording medium on which the image processing program according to claim 8 is recorded.
JP2014111529A 2014-05-29 2014-05-29 Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program Pending JP2015226264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014111529A JP2015226264A (en) 2014-05-29 2014-05-29 Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014111529A JP2015226264A (en) 2014-05-29 2014-05-29 Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program

Publications (1)

Publication Number Publication Date
JP2015226264A true JP2015226264A (en) 2015-12-14

Family

ID=54842733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014111529A Pending JP2015226264A (en) 2014-05-29 2014-05-29 Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program

Country Status (1)

Country Link
JP (1) JP2015226264A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7414932B2 (en) 2018-12-20 2024-01-16 株式会社Pfu Double feed detection device, control method and control program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7414932B2 (en) 2018-12-20 2024-01-16 株式会社Pfu Double feed detection device, control method and control program

Similar Documents

Publication Publication Date Title
JP4758502B2 (en) Image processing apparatus, image reading apparatus, image transmitting apparatus, image forming apparatus, image processing method, program, and recording medium thereof
JP5179559B2 (en) Control device for controlling image processing system, image forming device, image reading device, control method, image processing program, and computer-readable recording medium
JP5280425B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, program, and recording medium thereof
JP4495201B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4486987B2 (en) Image data output processing apparatus, image data output processing method, program, and recording medium
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
US9191532B2 (en) Image display device and computer-readable storage medium storing a display control program
JP2012005062A (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, computer program and recording medium
WO2014069233A1 (en) Image processing device, image forming device comprising same, image forming method, and recording medium
JP2012118863A (en) Image reading device, image formation device, image reading method, program and recording medium therefor
JP4808281B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4990751B2 (en) Image processing apparatus and image reading apparatus
JP2015226264A (en) Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program
JP6860609B2 (en) Image processing equipment, image forming equipment, computer programs and recording media
JP2010161745A (en) Image processor, image reader, image transmission device, image formation device, image processing method, program, and recording medium of the same
JP6163244B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium
JP2010273119A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP5542380B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
US11863717B2 (en) Image reading apparatus and image reading method
JP5970582B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP6045182B2 (en) Image processing apparatus, image forming apparatus including the same, computer program, and recording medium
JP2016208529A (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2016178451A (en) Image processing apparatus, image forming apparatus, computer program, and recording medium
JP5736068B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2009017525A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing system, image processing method, computer program and recording medium