JP2007226350A - Image reading method, program, and image reader - Google Patents

Image reading method, program, and image reader Download PDF

Info

Publication number
JP2007226350A
JP2007226350A JP2006044431A JP2006044431A JP2007226350A JP 2007226350 A JP2007226350 A JP 2007226350A JP 2006044431 A JP2006044431 A JP 2006044431A JP 2006044431 A JP2006044431 A JP 2006044431A JP 2007226350 A JP2007226350 A JP 2007226350A
Authority
JP
Japan
Prior art keywords
recognition target
target area
page number
image reading
page
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
JP2006044431A
Other languages
Japanese (ja)
Inventor
Yasunari Yoshida
康成 吉田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2006044431A priority Critical patent/JP2007226350A/en
Priority to US11/708,464 priority patent/US20070195378A1/en
Publication of JP2007226350A publication Critical patent/JP2007226350A/en
Priority to US12/873,177 priority patent/US8849033B2/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reading method, a program, and an image reader, which set a region where character recognition is desirably executed, while reducing the load of the setting imposed on a user. <P>SOLUTION: This image reading method includes: reading an original as image data; displaying the read image data; setting a recognition object region where character recognition is executed for the displayed image data; performing correction in accordance with the set recognition object region and setting a new recognition object region; and also performing character recognition in the new recognition object region. The program stores the image reading method in a storage medium so that the image reading method is implemented by a computer and the image reader reads an image by using the image reading method. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像読取方法,プログラム,および画像読取装置に関するものである。   The present invention relates to an image reading method, a program, and an image reading apparatus.

複写機あるいはスキャナ等の画像読取装置では、読取対象を精度よく効率的に読み取るべく改良が行われている。その一例として、文字認識技術を用いて読み取った書籍等のページ番号を認識し、そのページ番号を処理に用いるものがある。   An image reading apparatus such as a copying machine or a scanner has been improved to read a reading target with high accuracy and efficiency. As an example, there is one that recognizes a page number of a book or the like read using a character recognition technique and uses the page number for processing.

例えば、ページめくり機構を備えた画像読取装置は、2ページ以上のページをめくってしまう重送という不可避なエラーが存在する。このエラーを解消するために、ページめくり機構がめくったページの画像データを読み取るスキャナ部と、このスキャナ部が読み取ったデータからページ番号を読み取ってページ数を認識し、このページ数が不連続の場合、重送と判定し、重送が起こってもページを戻す事で、もう一度読み直し、製本された本の内容を、データ(ページ)の飛びなしに完全な形で電子化できる画像読取装置が考案されている(特許文献1参照)。   For example, an image reading apparatus provided with a page turning mechanism has an unavoidable error of double feeding that turns two or more pages. In order to eliminate this error, the scanner unit that reads the image data of the page turned by the page turning mechanism, the page number is read from the data read by the scanner unit, the page number is recognized, and the page number is discontinuous. In this case, an image reading apparatus that can determine double feed and return the page even if double feed occurs, read it again, and digitize the contents of the bound book without any data (page) skipping. It has been devised (see Patent Document 1).

また、複数頁の原稿画像をスキャナで読み取る場合、原稿画像上の認識対象領域のみを精度よく効率的に読み取れるようにするために、非読取対象領域という属性(読取条件)を指定する機能を導入することによって、複数頁にまたがる同一の調整作業をなくし、読取作業を容易にし、かつ読取精度を高めることが可能な文字認識装置が考案されている(特許文献2参照)。   In addition, when scanning a multi-page document image with a scanner, a function to specify an attribute (reading condition) called a non-read target region is introduced so that only the recognition target region on the document image can be read accurately and efficiently. By doing so, a character recognition device has been devised that can eliminate the same adjustment work over a plurality of pages, facilitate the reading work, and improve the reading accuracy (see Patent Document 2).

特開平06−259596号公報Japanese Patent Laid-Open No. 06-259596 特開2002−269495号公報JP 2002-269495 A

特許文献1の例では、原稿によってページ番号が記載される箇所は、まちまちであるので、ページ番号が記載されている領域をその都度指定する必要がある。例えば書籍を見開きで読み取る場合のように複数のページを1度に読み取る場合は、そのページ数の分だけ領域を指定しなければならないという問題がある。   In the example of Patent Document 1, the portion where the page number is described by the manuscript is different, so it is necessary to designate the region where the page number is described each time. For example, when reading a plurality of pages at a time, such as when reading a book in a double-page spread, there is a problem in that an area must be designated by the number of pages.

また、特許文献2の例では、文字認識を行いたい領域をユーザが個別に設定しなければならないという問題点がある。また、認識を行う領域と認識を行うかどうかの条件とを自動設定することもできるが、認識を行うかどうかの条件は、原稿毎あるいは文字や画像データのような領域に含まれる内容毎に、予めデフォルト設定として記憶させておくかユーザが条件を設定する必要がある。また、認識を行うかどうかの条件の詳細については言及されていない。   Moreover, in the example of Patent Document 2, there is a problem that the user has to individually set an area where character recognition is desired. It is also possible to automatically set an area for recognition and whether or not to perform recognition. However, the condition for whether or not to perform recognition is determined for each document or each content included in an area such as text or image data. It is necessary to store the default settings beforehand or set the conditions by the user. Moreover, the details of the conditions for performing recognition are not mentioned.

上記問題を背景として、本発明は、ユーザの設定の負荷を低減しつつ、文字認識を行いたい領域を設定することが可能な画像読取方法,プログラム,および画像読取装置を提供することを目的とする。   Against the background of the above problems, an object of the present invention is to provide an image reading method, a program, and an image reading apparatus capable of setting an area where character recognition is to be performed while reducing a user's setting load. To do.

課題を解決するための手段および発明の効果Means for Solving the Problems and Effects of the Invention

上記課題を解決するための画像読取方法は、原稿を画像データとして読み取り、読み取られた画像データを表示し、表示された画像データに対して文字認識を行う認識対象領域の設定を行い、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、新たな認識対象領域において文字認識を行うことを特徴とする。   An image reading method for solving the above problems is set by reading a document as image data, displaying the read image data, and setting a recognition target area for performing character recognition on the displayed image data. Correction is performed corresponding to the recognition target area, a new recognition target area is set, and character recognition is performed in the new recognition target area.

上記構成によって、認識対象領域を1箇所設定すれば、それに応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。また、限定された領域のみの文字認識を行うので、文字認識を高速化することが可能となる。   With the above configuration, if one recognition target area is set, the recognition target area is corrected accordingly, so that the operation load on the user can be reduced. In addition, since character recognition is performed only in a limited area, it is possible to speed up character recognition.

また、本発明の画像読取方法は、表示された画像データに対して文字認識を行う領域を指定し、指定された領域を認識対象領域とするように構成することもできる。   In addition, the image reading method of the present invention can be configured such that an area for character recognition is designated for displayed image data, and the designated area is set as a recognition target area.

上記構成によって、ユーザが自由に認識対象領域を設定することが可能となり、認識対象領域を1箇所設定すれば、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。   With the above configuration, the user can freely set a recognition target area. If one recognition target area is set, the recognition target area is corrected according to the set recognition target area. The operation load can be reduced.

また、本発明の画像読取方法は、認識対象領域を記憶し、記憶された認識対象領域をリスト表示し、リスト表示された認識対象領域から所望の認識対象領域を選択するように構成することもできる。   Further, the image reading method of the present invention may be configured to store the recognition target area, display a list of the stored recognition target areas, and select a desired recognition target area from the displayed recognition target areas. it can.

例えばページ番号、ロゴマーク、書名等の文字認識対象の記載位置は概ねページの周縁部であることが多い。上記構成によって、ページの周縁部の所定の領域を認識対象領域として記憶し、ユーザがリスト表示された認識対象領域の一覧から所望の認識対象領域を選択するだけで認識対象領域を設定することができ、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷をより軽減することができる。   For example, the description position of a character recognition target such as a page number, a logo mark, or a book name is often at the periphery of the page. With the above configuration, a predetermined area at the periphery of the page is stored as a recognition target area, and the user can set a recognition target area simply by selecting a desired recognition target area from the list of recognition target areas displayed in a list. In addition, since the recognition target area is corrected according to the set recognition target area, the operation load on the user can be further reduced.

また、本発明の画像読取方法は、画像データから文字認識の対象となるデータを検出し、データが検出された領域を認識対象領域として設定するように構成することもできる。   In addition, the image reading method of the present invention can be configured to detect data that is a character recognition target from image data, and to set a region where the data is detected as a recognition target region.

例えばページ番号の場合は数字で記載されている。上記構成によって、例えばページ番号を認識したい場合は文字認識の対象を数字とすれば、ユーザの操作を必要とすることなく認識対象領域の設定および補正が可能となる。   For example, in the case of a page number, it is described in numbers. With the above configuration, for example, when it is desired to recognize the page number, if the character recognition target is a number, the recognition target area can be set and corrected without requiring any user operation.

また、本発明の画像読取方法は、設定された認識対象領域を記憶するように構成することもできる。   Further, the image reading method of the present invention can be configured to store the set recognition target area.

上記構成によって、ユーザの操作を必要とすることなく認識対象領域の設定・補正および記憶を行うことができる。また、記憶された認識対象領域を以降の認識対象領域設定に用いることも可能となる。   With the above configuration, the recognition target area can be set / corrected and stored without requiring any user operation. In addition, the stored recognition target area can be used for subsequent recognition target area setting.

また、本発明の画像読取方法は、画像データの所定の範囲から文字認識の対象となるデータを検出するように構成することもできる。   In addition, the image reading method of the present invention can be configured to detect data to be subjected to character recognition from a predetermined range of image data.

ページ番号、ロゴマーク、書名等の文字認識対象は例えば原稿の周縁部のような、ある程度決まった位置に記載されている場合が多い。上記構成によって、その決まった位置を所定の範囲として文字認識の対象となるデータを検出するようにすれば、ユーザの操作を必要とすることなく、より正確に認識対象領域の設定および補正が可能となる。   In many cases, character recognition targets such as page numbers, logo marks, and book titles are written at positions that are determined to some extent, such as the peripheral edge of a document. With the above configuration, if the data that is the target of character recognition is detected with the determined position within a predetermined range, the recognition target area can be set and corrected more accurately without requiring user operation. It becomes.

また、本発明の画像読取方法は、設定された認識対象領域の大きさを変更することで新たな認識対象領域を設定するように構成することもできる。   In addition, the image reading method of the present invention can be configured to set a new recognition target area by changing the size of the set recognition target area.

上記構成によって、文字認識の対象の位置が近接している場合は、認識対象領域を2箇所とせずに大きさを変更して一つの領域とすることで、異なる2箇所について文字認識を行う場合よりも文字認識を高速化することが可能となる。無論、この場合もユーザの操作を必要とすることはない。   With the above configuration, when character recognition target positions are close to each other, character recognition is performed at two different locations by changing the size to one region without changing the recognition target region to two locations. It is possible to speed up character recognition. Of course, no user operation is required in this case as well.

また、本発明の画像読取方法は、設定された認識対象領域に加え、別の認識対象領域を設定することで新たな認識対象領域を設定するように構成することもできる。   The image reading method of the present invention can also be configured to set a new recognition target area by setting another recognition target area in addition to the set recognition target area.

書籍をページ見開きで読み取る場合、あるいは2in1(1枚の原稿に2ページ分印刷された)原稿を読み取る場合のように、ページ番号が左右対称や上下対称のような所定の位置関係にあるときは、基準となる1箇所の認識対象領域を設定すれば、他の認識対象領域はその位置関係によって設定(すなわち補正)することができる。上記構成によって、認識対象領域を1箇所設定すれば、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。   When reading a book with a two-page spread, or when reading a 2-in-1 (two pages printed on one document) document, when the page numbers have a predetermined positional relationship such as left-right symmetry or vertical symmetry If one reference recognition target area is set, the other recognition target areas can be set (that is, corrected) by the positional relationship. With the above configuration, if one recognition target area is set, the recognition target area is corrected according to the set recognition target area, so that the operation load on the user can be reduced.

また、本発明の画像読取方法は、補正された新たな認識対象領域を表示するように構成することもできる。   The image reading method of the present invention can also be configured to display a new corrected recognition target area.

上記構成によって、ユーザは補正された新たな認識対象領域の状態を表示で見ることが可能となる。   With the above configuration, the user can see the corrected state of the new recognition target area on the display.

また、本発明の画像読取方法は、補正された新たな認識対象領域を確認するように構成することもできる。   In addition, the image reading method of the present invention can be configured to confirm a corrected new recognition target area.

上記構成によって、ユーザは原稿読み取りおよび文字認識が行われているときにも、認識対象領域がどのようになっているかを確認することが可能となる。   With the above configuration, the user can check what the recognition target area looks like even when document reading and character recognition are performed.

また、本発明の画像読取方法は、原稿の読み取りおよび補正された新たな認識対象領域を用いた文字認識の実行を指示するように構成することもできる。   In addition, the image reading method of the present invention can be configured to instruct execution of character recognition using a new recognition target area after reading and correcting a document.

上記構成によって、設定・補正された認識対象領域が適切か否かを確認してから、原稿の読み取りおよび文字認識の実行の指示を行うため、間違った設定・補正のまま原稿の読み取りおよび文字認識が行われることを防ぐことができる。   With the above configuration, it is necessary to check whether the recognition target area that has been set / corrected is appropriate, and then instruct the execution of document reading and character recognition. Can be prevented.

また、本発明の画像読取方法は、実行の指示に基づいて原稿の読み取りおよび補正された新たな認識対象領域を用いた文字認識を実行するように構成することもできる。   In addition, the image reading method of the present invention can be configured to execute character recognition using a new recognition target area that has been read and corrected based on an execution instruction.

上記構成によって、原稿の読み取りと少ないユーザの操作負荷で設定・補正された認識対象領域の文字認識とを行うことが可能となり、従来技術に比べて認識対象領域の設定・補正に要する時間と原稿の読み取りおよび文字認識に要する時間とを短縮することができる。   With the above configuration, it is possible to perform document reading and character recognition of the recognition target area set / corrected with a small user operation load, and the time and document required for setting / correcting the recognition target area compared to the conventional technology The time required for reading and character recognition can be reduced.

また、本発明のプログラムは、上記の画像読取方法をコンピュータで実行可能なように記憶媒体に記憶されたプログラムとして構成される。   The program of the present invention is configured as a program stored in a storage medium so that the above-described image reading method can be executed by a computer.

上記プログラムをコンピュータに読み取らせて動作させることで、上記の画像読取方法と同様の効果を得ることができる。   By causing the computer to read and operate the program, it is possible to obtain the same effect as the image reading method described above.

上記課題を解決するための画像読取装置は、原稿を画像データとして読み取る読取手段と、読み取られた画像データを表示する表示手段と、表示された画像データに対して文字認識を行う認識対象領域の設定を行う認識対象領域設定手段と、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定する認識対象領域補正手段と、新たな認識対象領域において文字認識を行う文字認識手段と、を備えることを特徴とする。   An image reading apparatus for solving the above problems includes a reading unit that reads a document as image data, a display unit that displays the read image data, and a recognition target area that performs character recognition on the displayed image data. Recognition target area setting means for performing setting, recognition target area correcting means for performing correction corresponding to the set recognition target area and setting a new recognition target area, and character recognition for performing character recognition in the new recognition target area And means.

上記構成によって、認識対象領域を1箇所設定すれば、それに応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。また、限定された領域のみの文字認識を行うので、文字認識を高速化することが可能となる。   With the above configuration, if one recognition target area is set, the recognition target area is corrected accordingly, so that the operation load on the user can be reduced. In addition, since character recognition is performed only in a limited area, it is possible to speed up character recognition.

また、本発明の画像読取装置における認識対象領域設定手段は、表示された画像データに対して文字認識を行う領域を指定する領域指定手段を含み、指定された領域を認識対象領域とするように構成することもできる。   Further, the recognition target area setting means in the image reading apparatus of the present invention includes area specifying means for specifying an area for performing character recognition on the displayed image data so that the specified area is the recognition target area. It can also be configured.

上記構成によって、ユーザが自由に認識対象領域を設定することが可能となり、認識対象領域を1箇所設定すれば、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。   With the above configuration, the user can freely set the recognition target area. If one recognition target area is set, the recognition target area is corrected according to the set recognition target area. The operation load can be reduced.

また、本発明の画像読取装置における認識対象領域設定手段は、認識対象領域を記憶する認識対象領域記憶手段と、記憶された認識対象領域をリスト表示するリスト表示手段と、リスト表示された認識対象領域から所望の認識対象領域を選択する選択手段とを含むように構成することもできる。   The recognition target area setting means in the image reading apparatus of the present invention includes a recognition target area storage means for storing a recognition target area, a list display means for displaying a list of the stored recognition target areas, and a recognition target displayed in a list Selection means for selecting a desired recognition target area from the area can also be included.

例えばページ番号、ロゴマーク、書名等の文字認識対象の記載位置は概ねページの周縁部であることが多い。上記構成によって、ページの周縁部の所定の領域を認識対象領域として記憶し、ユーザがリスト表示された認識対象領域の一覧から所望の認識対象領域を選択するだけで認識対象領域を設定することができ、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷をより軽減することができる。   For example, the description position of a character recognition target such as a page number, a logo mark, or a book name is often at the periphery of the page. With the above configuration, a predetermined area at the periphery of the page is stored as a recognition target area, and the user can set a recognition target area simply by selecting a desired recognition target area from the list of recognition target areas displayed in a list. In addition, since the recognition target area is corrected according to the set recognition target area, the operation load on the user can be further reduced.

また、本発明の画像読取装置における認識対象領域記憶手段は設定された認識対象領域を記憶するように構成することもできる。   Further, the recognition target area storage means in the image reading apparatus of the present invention can be configured to store the set recognition target area.

上記構成によって、ユーザの操作を必要とすることなく認識対象領域の設定・補正および記憶を行うことができる。また、記憶された認識対象領域を以降の認識対象領域設定に用いることも可能となる。   With the above configuration, the recognition target area can be set / corrected and stored without requiring any user operation. In addition, the stored recognition target area can be used for subsequent recognition target area setting.

また、本発明の画像読取装置における認識対象領域設定手段は、画像データから文字認識の対象となるデータを検出する検出手段を含み、データが検出された領域を認識対象領域として設定するように構成することもできる。   Further, the recognition target area setting means in the image reading apparatus of the present invention includes a detection means for detecting data that is a character recognition target from the image data, and is configured to set the area where the data is detected as the recognition target area. You can also

例えばページ番号の場合は数字で記載されている。上記構成によって、例えばページ番号を認識したい場合は文字認識の対象を数字とすれば、ユーザの操作を必要とすることなく認識対象領域の設定および補正が可能となる。   For example, in the case of a page number, it is described in numbers. With the above configuration, for example, when it is desired to recognize the page number, if the character recognition target is a number, the recognition target area can be set and corrected without requiring any user operation.

また、本発明の画像読取装置における検出手段は画像データの所定の範囲から文字認識の対象となるデータを検出するように構成することもできる。   Further, the detection means in the image reading apparatus of the present invention can be configured to detect data to be character-recognized from a predetermined range of image data.

ページ番号、ロゴマーク、書名等の文字認識対象は例えば原稿の周縁部のような、ある程度決まった位置に記載されている場合が多い。上記構成によって、その決まった位置を所定の範囲として文字認識の対象となるデータを検出するようにすれば、ユーザの操作を必要とすることなく、より正確に認識対象領域の設定および補正が可能となる。   In many cases, character recognition targets such as page numbers, logo marks, and book titles are written at positions that are determined to some extent, such as the peripheral edge of a document. With the above configuration, if the data that is the target of character recognition is detected with the determined position within a predetermined range, the recognition target area can be set and corrected more accurately without requiring user operation. It becomes.

また、本発明の画像読取装置における認識対象領域補正手段は、認識対象領域設定手段により設定された認識対象領域の大きさを変更するように構成することもできる。   Further, the recognition target area correction means in the image reading apparatus of the present invention can be configured to change the size of the recognition target area set by the recognition target area setting means.

上記構成によって、文字認識の対象の位置が近接している場合は、認識対象領域を2箇所とせずに大きさを変更して一つの領域とすることで、異なる2箇所について文字認識を行う場合よりも文字認識を高速化することが可能となる。無論、この場合もユーザの操作を必要とすることはない。   With the above configuration, when character recognition target positions are close to each other, character recognition is performed at two different locations by changing the size to one region without changing the recognition target region to two locations. It is possible to speed up character recognition. Of course, no user operation is required in this case as well.

また、本発明の画像読取装置における認識対象領域補正手段は、認識対象領域設定手段により設定された認識対象領域に加え、別の認識対象領域を設定するように構成することもできる。   In addition, the recognition target area correction unit in the image reading apparatus of the present invention can be configured to set another recognition target area in addition to the recognition target area set by the recognition target area setting unit.

書籍をページ見開きで読み取る場合、あるいは2in1(1枚の原稿に2ページ分印刷された)原稿を読み取る場合のように、ページ番号が左右対称や上下対称のような所定の位置関係にあるときは、基準となる1箇所の認識対象領域を設定すれば、他の認識対象領域はその位置関係によって設定(すなわち補正)することができる。上記構成によって、認識対象領域を1箇所設定すれば、その設定された認識対象領域に応じて認識対象領域の補正が行われるので、ユーザの操作負荷を軽減することができる。   When reading a book with a two-page spread, or when reading a 2-in-1 (two pages printed on one document) document, when the page numbers have a predetermined positional relationship such as left-right symmetry or vertical symmetry If one reference recognition target area is set, the other recognition target areas can be set (that is, corrected) by the positional relationship. With the above configuration, if one recognition target area is set, the recognition target area is corrected according to the set recognition target area, so that the operation load on the user can be reduced.

また、本発明の画像読取装置における表示手段は、補正された新たな認識対象領域を表示するように構成することもできる。   The display means in the image reading apparatus of the present invention can also be configured to display a new corrected recognition target area.

上記構成によって、ユーザは補正された新たな認識対象領域の状態を表示で見ることが可能となる。   With the above configuration, the user can see the corrected state of the new recognition target area on the display.

また、本発明の画像読取装置は、補正された新たな認識対象領域を確認する確認手段を備えるように構成することもできる。   In addition, the image reading apparatus of the present invention can be configured to include a confirmation unit that confirms a new corrected recognition target area.

上記構成によって、ユーザは原稿読み取りおよび文字認識が行われているときにも、認識対象領域がどのようになっているかを確認することが可能となる。   With the above configuration, the user can check what the recognition target area looks like even when document reading and character recognition are performed.

また、本発明の画像読取装置は、原稿の読み取りおよび補正された新たな認識対象領域を用いた文字認識の実行を指示するように構成することもできる。   In addition, the image reading apparatus of the present invention can be configured to instruct execution of character recognition using a new recognition target area that has been read and corrected.

上記構成によって、設定・補正された認識対象領域が適切か否かを確認してから、原稿の読み取りおよび文字認識の実行の指示を行うため、間違った設定・補正のまま原稿の読み取りおよび文字認識が行われることを防ぐことができる。   With the above configuration, it is necessary to check whether the recognition target area that has been set / corrected is appropriate, and then instruct the execution of document reading and character recognition. Can be prevented.

また、本発明の画像読取装置は、実行の指示に基づいて原稿の読み取りおよび補正された新たな認識対象領域を用いた文字認識を実行するように構成することもできる。   The image reading apparatus of the present invention can also be configured to execute character recognition using a new recognition target area that has been read and corrected based on an execution instruction.

上記構成によって、原稿の読み取りと少ないユーザの操作負荷で設定・補正された認識対象領域の文字認識とを行うことが可能となり、従来技術に比べて認識対象領域の設定・補正に要する時間と原稿の読み取りおよび文字認識に要する時間とを短縮することができる。   With the above configuration, it is possible to perform document reading and character recognition of the recognition target area set / corrected with a small user operation load, and the time and document required for setting / correcting the recognition target area compared to the conventional technology The time required for reading and character recognition can be reduced.

ユーザの設定の負荷を低減しつつ、文字認識を行いたい領域を設定することが可能な画像読取方法,プログラム,および画像読取装置を提供する目的を、読み取られた原稿の画像データを表示し、表示された画像データに対して文字認識を行う認識対象領域の設定を行い、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、新たな認識対象領域において文字認識を行う構成により実現した。   For the purpose of providing an image reading method, a program, and an image reading apparatus capable of setting an area where character recognition is to be performed while reducing a user setting load, image data of a read original is displayed, Set the recognition target area to perform character recognition for the displayed image data, perform correction according to the set recognition target area, set a new recognition target area, and perform character recognition in the new recognition target area Realized by the configuration to perform.

以下、本発明の画像読取方法,画像読取装置の実施形態を、スキャナシステム100を例に挙げて、図面を参照しながら説明する。図1に、スキャナシステム100の構成およびパーソナルコンピュータ(以下、PCと略称する)1のブロック図を示す。PC1は、接続された画像読取機能を含む複合機10とともに動作しており、PC1が読取指令を送信すると、それを受けた複合機10が画像読取機能を用いて読取処理を行う。PC1には、本発明のプログラムとしてのスキャナドライバプログラム3Pが含まれており、これがスキャナドライバとして機能する。以下、各構成についての詳細な説明を行う。   Hereinafter, embodiments of an image reading method and an image reading apparatus according to the present invention will be described with reference to the drawings, taking a scanner system 100 as an example. FIG. 1 shows a configuration of a scanner system 100 and a block diagram of a personal computer (hereinafter abbreviated as a PC) 1. The PC 1 operates together with the connected multifunction peripheral 10 including the image reading function. When the PC 1 transmits a reading command, the multifunction peripheral 10 that receives the instruction performs a reading process using the image reading function. The PC 1 includes a scanner driver program 3P as a program of the present invention, and this functions as a scanner driver. Hereinafter, a detailed description of each component will be given.

図1に示すように、PC1は、周知のパーソナルコンピュータとして構成され、HDD(Hard Disk Drive)3,通信I/F(Interface)4,表示部5,操作部6,画像処理部7およびこれらが接続された制御回路2を備えている。   As shown in FIG. 1, the PC 1 is configured as a well-known personal computer, and includes an HDD (Hard Disk Drive) 3, a communication I / F (Interface) 4, a display unit 5, an operation unit 6, an image processing unit 7, and these. A connected control circuit 2 is provided.

HDD3には、PC1を作動させるオペレーティングシステム(OS)として機能するOSプログラム3Sと、OS上で稼動するアプリケーションとして機能するアプリケーションプログラム3Wと、同じくOS3S上で稼動するスキャナドライバとして機能するスキャナドライバプログラム3Pと、ページ番号検出領域リスト3L,文字認識データ記憶領域3D,スキャンデータ記憶領域3R,およびページ番号テーブル3T(詳細は後述)等が記憶されている。なお、HDD3が本発明の認識対象領域記憶手段に相当する。   The HDD 3 includes an OS program 3S that functions as an operating system (OS) that operates the PC 1, an application program 3W that functions as an application that operates on the OS, and a scanner driver program 3P that also functions as a scanner driver that operates on the OS 3S. A page number detection area list 3L, a character recognition data storage area 3D, a scan data storage area 3R, a page number table 3T (details will be described later), and the like are stored. The HDD 3 corresponds to a recognition target area storage unit of the present invention.

通信I/F4は、LAN(Local Area Network)等の通信ネットワーク50との間のインターフェース機能を有するネットワークアダプタを含んで構成され、通信ネットワーク50に接続された複合機10等のデバイスとの通信を可能としている。   The communication I / F 4 includes a network adapter having an interface function with a communication network 50 such as a LAN (Local Area Network), and communicates with a device such as the MFP 10 connected to the communication network 50. It is possible.

表示部5は、液晶ディスプレイやCRTディスプレイ等の表示器により構成される。操作部6は、マウス等のポインティングデバイスやキーボードなどの操作手段により構成される。なお、表示部5が本発明の表示手段,リスト表示手段に相当する。また、操作部6が本発明の認識対象領域設定手段,領域指定手段,確認手段,指示手段,実行手段に相当する。   The display unit 5 includes a display device such as a liquid crystal display or a CRT display. The operation unit 6 includes a pointing device such as a mouse and operation means such as a keyboard. The display unit 5 corresponds to display means and list display means of the present invention. The operation unit 6 corresponds to a recognition target area setting unit, an area designating unit, a confirmation unit, an instruction unit, and an execution unit of the present invention.

制御回路2は、通常のコンピュータとして構成されており、CPU2a,ROM2b,RAM2c,入出力インターフェース(I/O)2dおよびこれらの構成を接続するバスライン2eを備えている。CPU21は、HDD3に記憶されたOSプログラム3Sに基づいて制御を行う。OSプログラム3Sは、RAM2c上にてOS用ワークメモリ2Sを作業領域とする形で実行される。また、アプリケーションプログラム3Wおよびスキャナドライバプログラム3Pは、それぞれRAM2c上においてアプリケーション用ワークメモリ2W,スキャナドライバ用ワークメモリ2Pを作業領域とする形で実行される。なお、制御回路2が本発明の認識対象領域補正手段に相当する。   The control circuit 2 is configured as a normal computer, and includes a CPU 2a, a ROM 2b, a RAM 2c, an input / output interface (I / O) 2d, and a bus line 2e for connecting these configurations. The CPU 21 performs control based on the OS program 3S stored in the HDD 3. The OS program 3S is executed on the RAM 2c with the OS work memory 2S as a work area. The application program 3W and the scanner driver program 3P are executed in the RAM 2c in such a manner that the application work memory 2W and the scanner driver work memory 2P are used as work areas. The control circuit 2 corresponds to a recognition target area correcting unit of the present invention.

画像処理部7は、公知のパターン認識などの技術によって複合機10のスキャナ部24(図2参照)により読み取られ、通信ネットワーク50を介して取得された画像の解析を行う画像処理回路を含んで構成される。なお、画像処理部7が本発明の文字認識手段,検出手段に相当する。   The image processing unit 7 includes an image processing circuit that analyzes an image that is read by the scanner unit 24 (see FIG. 2) of the multifunction machine 10 and acquired via the communication network 50 by a known technique such as pattern recognition. Composed. The image processing unit 7 corresponds to the character recognition means and detection means of the present invention.

複合機10は、通信ネットワーク50に接続され、PC1との間でデータの送受信が可能とされており、PC1からの指令を受けて画像読取等の各種処理を行う。このように複合機10が画像読取装置として動作するためには、これに対応するスキャナドライバ3PがPC1にインストールされている必要がある。なお、本実施形態では、複合機10は通信ネットワーク50を経由して間接的にPC1に接続されているが、図示しないパラレルポートまたはUSBポートを介して直接PC1に接続されていてもよい。   The multi-function device 10 is connected to the communication network 50 and is capable of transmitting and receiving data to and from the PC 1 and performs various processes such as image reading in response to commands from the PC 1. Thus, in order for the multifunction machine 10 to operate as an image reading apparatus, the scanner driver 3P corresponding to this needs to be installed in the PC 1. In the present embodiment, the MFP 10 is indirectly connected to the PC 1 via the communication network 50, but may be directly connected to the PC 1 via a parallel port or USB port (not shown).

図2に複合機10のブロック図を示す。なお、本発明の構成では必ずしも複合機10を用いる必要はなく、画像読取機能のあるスキャナ装置であってもよい。   FIG. 2 shows a block diagram of the multifunction machine 10. In the configuration of the present invention, it is not always necessary to use the multifunction machine 10, and a scanner device having an image reading function may be used.

複合機10は、CPU11、ワークメモリ12aを備えるRAM12、各種プログラムを記憶するROM13、バスライン14、入出力部15(図2ではI/Oと表記)、メモリ16、通信インターフェース18(図2では通信I/Fと表記)、および印刷制御データ等の受信したデータを一時格納する受信バッファ17を備えて構成される。   The multifunction machine 10 includes a CPU 11, a RAM 12 having a work memory 12a, a ROM 13 for storing various programs, a bus line 14, an input / output unit 15 (indicated as I / O in FIG. 2), a memory 16, and a communication interface 18 (in FIG. 2). And a reception buffer 17 for temporarily storing received data such as print control data.

ROM13には、印刷制御プログラム13a、スキャナ制御プログラム13b、FAX制御プログラム13c、通信プログラム13d、および画像処理プログラム13eが格納されている。   The ROM 13 stores a print control program 13a, a scanner control program 13b, a FAX control program 13c, a communication program 13d, and an image processing program 13e.

入出力部15には、操作パネル20(図3参照、詳細は後述)、周知のインクジェット印字機構、レーザー印字機構、熱転写印字機構、あるいはドットインパクト式印字機構などからなる印刷部23、イメージセンサ等を含む原稿の読み取りを行うスキャナ部24、FAXモデム等を含みファクシミリ通信を行うFAX部25、およびスキャナ部24で読み取られた画像データの各種処理を行う画像処理部26等が制御対象として接続されている。これら印刷部23、スキャナ部24、FAX部25および画像処理部26の動作は周知のものであり、ROM13に格納された対応する印刷制御プログラム13a、スキャナ制御プログラム13b、FAX制御プログラム13cあるいは画像処理プログラム13eを、CPU11がRAM12のワークメモリ12aを用いて実行することで動作制御される。なお、スキャナ部24が本発明の読取手段に相当する。   The input / output unit 15 includes an operation panel 20 (see FIG. 3, details will be described later), a printing unit 23 including a well-known inkjet printing mechanism, laser printing mechanism, thermal transfer printing mechanism, dot impact printing mechanism, an image sensor, and the like. A scanner unit 24 that reads a document including a fax, a fax unit 25 that includes a fax modem and the like and performs facsimile communication, and an image processing unit 26 that performs various processing of image data read by the scanner unit 24 are connected as control targets. ing. The operations of the printing unit 23, the scanner unit 24, the FAX unit 25, and the image processing unit 26 are well known, and the corresponding print control program 13a, scanner control program 13b, FAX control program 13c or image processing stored in the ROM 13 are performed. The operation of the program 13e is controlled by the CPU 11 executing the work memory 12a of the RAM 12. The scanner unit 24 corresponds to the reading unit of the present invention.

また、通信インターフェース18は通信ネットワーク50を介してPC1とデータ等を送受信するための通信インターフェース回路を含んで構成される。通信ネットワーク50に接続された外部通信網を経由した各種データの送受信は、CPU11が通信プログラム13dを実行することで行なわれる。   The communication interface 18 includes a communication interface circuit for transmitting / receiving data and the like to / from the PC 1 via the communication network 50. Transmission and reception of various data via the external communication network connected to the communication network 50 is performed by the CPU 11 executing the communication program 13d.

メモリ16は、例えばEEPROM(Electrically Erasable & Programmable Read Only Memory:電気的消去・プログラム可能・読出し専用メモリ)等の不揮発性メモリで構成される。例えば、スキャナ部24で読み取られた画像データが記憶される。また、ここには他に例えば人名または会社名等に電話番号等の送信先情報が付加された電話帳が記憶されている。この電話帳を用いて所望の電話番号にファクシミリ送信を行うことができる。また、メモリ16としてハードディスク装置を用いてもよい。   The memory 16 is composed of a nonvolatile memory such as an EEPROM (Electrically Erasable & Programmable Read Only Memory). For example, image data read by the scanner unit 24 is stored. In addition, for example, a telephone book in which transmission destination information such as a telephone number is added to, for example, a person name or a company name is stored. Using this telephone directory, facsimile transmission to a desired telephone number can be performed. Further, a hard disk device may be used as the memory 16.

図3に、複合機10の操作パネル20の例を示す。操作パネル20は操作部21と表示部22とを含んで構成される。操作部21はメカニカルキーが用いられ、複合機10の電源の入/切を行う電源ボタン21a、カーソルキー21b、コピーボタン21c1,FAXボタン21c2,スキャナボタン21c3を含んで構成される機能選択ボタン21c、テンキー21d、電話番号、FAX番号等の情報が登録されるワンタッチボタン21e,各種動作の開始を行うスタートボタン21f、各種動作を中断あるいは停止させるストップボタン21g、およびスピーカ21j等が含まれる。   FIG. 3 shows an example of the operation panel 20 of the multifunction machine 10. The operation panel 20 includes an operation unit 21 and a display unit 22. The operation unit 21 uses a mechanical key, and a function selection button 21c including a power button 21a for turning on / off the multifunction machine 10, a cursor key 21b, a copy button 21c1, a FAX button 21c2, and a scanner button 21c3. , A numeric keypad 21d, a one-touch button 21e for registering information such as a telephone number and a FAX number, a start button 21f for starting various operations, a stop button 21g for interrupting or stopping various operations, a speaker 21j, and the like.

表示部22は周知のドット・マトリックス方式のカラー液晶表示器および液晶表示制御を行うための図示しないドライバ回路を含んで構成されている。ドライバ回路は、例えば、画素毎にトランジスタを付けて目的の画素を確実に点灯させたり消したりすることができるアクティブマトリックス駆動方式が用いられ、入出力部15から送られる表示指令および表示画面データに基づいて表示を行う。また、表示部22として有機EL(ElectroLuminescence:電界発光)表示器,プラズマ表示器を用いてもよい。   The display unit 22 includes a known dot matrix type color liquid crystal display and a driver circuit (not shown) for performing liquid crystal display control. The driver circuit uses, for example, an active matrix driving method in which a transistor is attached to each pixel so that the target pixel can be surely turned on and off, and the display circuit and display screen data sent from the input / output unit 15 are used. Display based on. Further, an organic EL (ElectroLuminescence) display or a plasma display may be used as the display unit 22.

また、操作部21として、表示部22と一体になったタッチパネルを用いてもよい。タッチパネルは、表示部22の画面上にガラス基盤と透明なフィルムにスペーサと呼ばれる隙間を介してX軸方向、Y軸方向に電気回路が配線され、フィルム上をユーザがタッチすると、押された部分の配線がショートして電圧値が変わるため、これを2次元座標値(X,Y)として検出する、いわゆる抵抗膜方式が広く用いられる。その他に、いわゆる静電容量方式を用いてもよい。   Further, a touch panel integrated with the display unit 22 may be used as the operation unit 21. In the touch panel, an electric circuit is wired in a X-axis direction and a Y-axis direction through a gap called a spacer on a glass substrate and a transparent film on the screen of the display unit 22, and a pressed part when the user touches the film. Since the voltage value changes due to short-circuiting of the wiring, a so-called resistive film method of detecting this as a two-dimensional coordinate value (X, Y) is widely used. In addition, a so-called capacitance method may be used.

(画像読取処理1:ページ番号検出領域リスト選択の場合)
図4のフロー図と、図5および図6を用いて、本発明の画像読取処理について説明する。まず、PC1でスキャナドライバプログラム3Pを起動して、図5のようなスキャナ(複合機10)の機能設定を行うスキャンモード設定ダイアログを表示部5に表示させる。
(Image reading process 1: Page number detection area list selection)
The image reading process of the present invention will be described with reference to the flowchart of FIG. 4 and FIGS. 5 and 6. First, the scanner driver program 3P is activated on the PC 1, and a scan mode setting dialog for setting functions of the scanner (multifunction device 10) as shown in FIG.

図5のように、スキャンモードには、「簡単設定」のようにカラー写真あるいはモノクロ文書のような文書種別によって所定の解像度あるいは色等の設定を行う方法と、解像度あるいは色等の個別のパラメータについてユーザが自由に設定を行う方法とがある。ユーザはこれらのいずれかの方法でスキャンモードを設定する(S1)。   As shown in FIG. 5, the scan mode includes a method for setting a predetermined resolution or color according to a document type such as a color photograph or a monochrome document as “easy setting” and individual parameters such as resolution or color. There is a method in which the user can freely set. The user sets the scan mode by any one of these methods (S1).

スキャンモードの設定が終わったら、原稿を複合機10のスキャナ部24に含まれる原稿読取台にセットし、「プレビュー」ボタンをクリックする(S2:Yes)。次いで、PC1から複合機10にプレビュースキャン指令が送られ、スキャナ部24においてプレビュースキャン動作が行われ(S3)、プレビューされた結果はPC1に送られてプレビュー画面Hに表示される。このとき、スキャン領域Gも合わせて表示される(S4)。   When the scan mode is set, the document is set on the document reading table included in the scanner unit 24 of the multifunction machine 10 and the “Preview” button is clicked (S2: Yes). Next, a preview scan command is sent from the PC 1 to the multifunction device 10, and a preview scan operation is performed in the scanner unit 24 (S 3). The preview result is sent to the PC 1 and displayed on the preview screen H. At this time, the scan area G is also displayed (S4).

原稿のページ番号の検出を行いたい場合には、図5のスキャンモード設定ダイアログの「ページソート」の左のチェックボックスをクリックしてチェック印を付ける。チェック印が付けられた場合(S5:Yes)は、ページ番号検出領域の設定・補正を行い、その結果をプレビュー画面Hに表示する(S6:後述)。この場合、図5のように、スキャン領域Gであるページタイプを「縦1ページ」とし、ページ番号検出領域Fを「下中央」としたものをデフォルト状態として表示してもよい。ページ番号検出領域Fが表示されると、ステップS1へ戻り次の操作入力待ちとなる。   If it is desired to detect the page number of the document, click the check box to the left of “Page Sort” in the scan mode setting dialog in FIG. When the check mark is added (S5: Yes), the page number detection area is set and corrected, and the result is displayed on the preview screen H (S6: described later). In this case, as shown in FIG. 5, the page type that is the scan area G may be “vertical 1 page” and the page number detection area F may be “lower center” as a default state. When the page number detection area F is displayed, the process returns to step S1 and waits for the next operation input.

一方、チェック印が付けられなかった場合(S5:No)は、ステップS1へ戻り次の操作入力待ちとなる。この状態で、ページ番号の検出(S7:Yes)やページタイプの変更を行いたい場合(S8:Yes)は、変更されたページタイプに応じて、図16のようにステップS6と同様のページ番号検出領域の設定・補正を行い、その結果をプレビュー画面Hに表示する(S9:後述)。   On the other hand, when the check mark is not added (S5: No), the process returns to step S1 and waits for the next operation input. In this state, when it is desired to detect the page number (S7: Yes) or change the page type (S8: Yes), the same page number as in step S6 as shown in FIG. 16 according to the changed page type. The detection area is set and corrected, and the result is displayed on the preview screen H (S9: described later).

そして、「スキャン」ボタンがクリックされた場合(S10:Yes)、PC1から複合機10に設定されたスキャンモードに基づくスキャン指令が送られ、スキャナ部24においてスキャン動作が行われる(S11)。スキャン動作において読み取られた原稿の画像データはPC1に送られ、「ページソート」の左のチェックボックスにチェック印が付けられた場合に、画像処理部7において上述で設定・補正されたページ番号検出領域でのページ番号検出処理が行われる(S12)。   When the “scan” button is clicked (S10: Yes), a scan command based on the scan mode set in the multifunction device 10 is sent from the PC 1, and a scanning operation is performed in the scanner unit 24 (S11). The image data of the document read in the scanning operation is sent to the PC 1, and the page number detection set and corrected as described above in the image processing unit 7 when the check box on the left of “Page Sort” is checked. A page number detection process in the area is performed (S12).

ステップS12のページ番号検出処理では、画像処理部7において複合機10から送られた画像データに一般的な2値化処理を施すことにより、ピクセル毎のデジタル多値画像データに変換される。そして、得られた多値画像データから、一般的な画像処理手法を用いてページ番号が含まれているかを判別する。   In the page number detection process of step S12, the image processing unit 7 performs a general binarization process on the image data sent from the multi-function device 10 to convert it into digital multi-value image data for each pixel. And it is discriminate | determined from the obtained multi-value image data whether a page number is contained using a general image processing method.

検出する対象はページ番号の他に、一般にヘッダ情報,フッタ情報といわれるような所定の文字,記号,図形でもよい。検出の対象となるデータはHDD3の文字認識データ記憶領域3Dに文字認識データとして記憶される。   In addition to the page number, the object to be detected may be a predetermined character, symbol, or figure generally called header information or footer information. Data to be detected is stored as character recognition data in the character recognition data storage area 3D of the HDD 3.

ページ番号が検出されたら、その検出されたページ番号と画像データとを関連付け、ページ番号順にソートしてHDD3のスキャンデータ記憶領域3Rに記憶する(S13)。図6はその一例で、原稿の1ページ目が読み取られたデータであるスキャンページ1ではページ番号1が検出されるので、スキャンページ1はページ番号1と関連付けて記憶される。そして、全ページのスキャンが終了するまで(S14:Yes)、ステップS11からS13までの処理を繰り返す。   When the page number is detected, the detected page number is associated with the image data, sorted in the order of the page number, and stored in the scan data storage area 3R of the HDD 3 (S13). FIG. 6 shows an example, and page number 1 is detected in scan page 1 which is data obtained by reading the first page of the document. Therefore, scan page 1 is stored in association with page number 1. Then, the processes from step S11 to S13 are repeated until the scanning of all pages is completed (S14: Yes).

また、図5のスキャンモード設定ダイアログにおいて「スキャン」ボタンがクリックされないとき(S10:No)に「キャンセル」ボタンがクリックされた場合(S15:Yes)、スキャンモード設定ダイアログを閉じて本処理を終了する。一方、「キャンセル」ボタンがクリックされない場合(S15:No)は、ステップS1へ戻り次の操作入力待ちとなる。   Also, when the “scan” button is not clicked (S10: No) in the scan mode setting dialog of FIG. 5 (S15: Yes), the scan mode setting dialog is closed and the process is terminated. To do. On the other hand, when the “cancel” button is not clicked (S15: No), the process returns to step S1 and waits for the next operation input.

次に、図7から図11を用いて、図4におけるステップS6およびS9に相当するページ番号検出領域表示処理について説明する。図5のスキャンモード設定ダイアログの「ページソート」の左のチェックボックスをクリックすると、例えばデフォルトデータとして、「ページタイプ」欄に「縦1ページ」が、「ページ番号検出領域」欄に「下中央」がプレビュー画面Hに表示される。   Next, a page number detection area display process corresponding to steps S6 and S9 in FIG. 4 will be described with reference to FIGS. When the check box to the left of “Page Sort” in the scan mode setting dialog in FIG. 5 is clicked, for example, “vertical 1 page” is displayed in the “page type” field, and “bottom center” is displayed in the “page number detection area” field. Is displayed on the preview screen H.

デフォルトデータの設定からページタイプを変更したい場合は、「ページタイプ」欄右の「▽」をクリックして図8(a)のようなプルダウンメニューを表示させ、そのメニューの「縦1ページ」(図8(b)),「横1ページ」(図8(c)),「縦2ページ」(図8(d)),「横2ページ」(図8(e))からいずれかのページタイプを選択する(S21)。   If you want to change the page type from the default data settings, click “▽” on the right of the “Page Type” column to display the pull-down menu as shown in FIG. 8 (b)), “horizontal 1 page” (FIG. 8 (c)), “vertical 2 pages” (FIG. 8 (d)), “horizontal 2 pages” (FIG. 8 (e)) A type is selected (S21).

デフォルトデータの設定からページ番号検出領域を変更したい場合は、ページ番号検出領域」欄右の「▽」をクリックして図9(a)のようなプルダウンメニューを表示させ、そのメニューの「上」から「全面」のうちのいずれかを選択する(S22)。例えば、「下」は図9(b)の破線から下の部分、「下中央」は図9(c)、「下左右」は図9(d)のそれぞれ破線で囲まれた部分がページ番号検出領域となる。   If you want to change the page number detection area from the default data settings, click “▽” on the right of the “Page number detection area” column to display the pull-down menu as shown in FIG. To select “entire surface” (S22). For example, “bottom” is the portion below the broken line in FIG. 9B, “bottom center” is FIG. 9C, and “bottom left and right” is the portion surrounded by the broken line in FIG. 9D. It becomes a detection area.

上記で設定されたページ番号検出領域Fはプレビュー画面Hに表示されるので、スキャン領域Gと合わせて設定内容を確認することが可能であるとともに、設定内容を修正することもできる(S23)。なお、スキャン領域Gは概ね読み取られた原稿のサイズに等しいが、マウス等でスキャン領域Gのサイズの変更をすることが可能である。   Since the page number detection area F set above is displayed on the preview screen H, it is possible to check the setting contents together with the scan area G and to correct the setting contents (S23). Note that the scan area G is approximately equal to the size of the scanned document, but the size of the scan area G can be changed with a mouse or the like.

次いで、ページ番号検出領域Fの補正を行うためのページ番号検出領域の演算が行われ(S24)、その結果がプレビュー画面Hに表示される(S25)。   Next, the page number detection area for correcting the page number detection area F is calculated (S24), and the result is displayed on the preview screen H (S25).

ページ番号検出領域は一律の初期値、あるいはページタイプや読み取られる原稿のサイズに応じた初期値が、それぞれ横(M),縦(N)の長さとして予めHDD3のページ番号検出領域リスト3Lに記憶されているが、ページ番号検出領域内に、ページ番号等の検出したい文字,記号,あるいはパターンが入りきらない場合などに、図5のスキャンモード設定ダイアログの「ページ番号検出領域のサイズ」欄で、ユーザが横(M),縦(N)の長さに任意の値を入力してページ番号検出領域Fの補正を行うことができる。   The page number detection area has a uniform initial value or an initial value corresponding to the page type and the size of the document to be read, as the horizontal (M) and vertical (N) lengths in the page number detection area list 3L of the HDD 3 in advance. Although stored, if the page number detection area does not have enough characters, symbols, or patterns to be detected, the “page number detection area size” field in the scan mode setting dialog in FIG. Thus, the user can input an arbitrary value for the horizontal (M) and vertical (N) lengths to correct the page number detection area F.

図10(a)を用いて、ページタイプ「縦1ページ」のプレビュー画像データにおいて「下中央」にあるページ番号検出領域Fの大きさを補正する例を説明する。まず、ページ番号検出領域Fは横:M,縦:Nの矩形領域で表される。スキャン領域Gのサイズは横:X,縦:Y、その4つの頂点P0,P1,P2,P3の座標をP0(0,0),P1(X,0),P2(X,Y),P3(0,Y)とする。このとき、矩形領域で表されるページ番号検出領域Fの左上の頂点Pf00の座標は、Pf00((X−M)/2,(Y−N))で表される。他の3つの頂点Pf01,Pf02,Pf03はそれぞれPf01((X+M)/2,(Y−N)),Pf02((X+M)/2,Y),Pf03((X−M)/2,Y)と表される。   An example of correcting the size of the page number detection region F in the “lower center” in the preview image data of the page type “vertical 1 page” will be described with reference to FIG. First, the page number detection area F is represented by a rectangular area of horizontal: M and vertical: N. The size of the scan area G is horizontal: X, vertical: Y, and the coordinates of its four vertices P0, P1, P2, P3 are P0 (0, 0), P1 (X, 0), P2 (X, Y), P3. (0, Y). At this time, the coordinates of the top left vertex Pf00 of the page number detection area F represented by the rectangular area are represented by Pf00 ((X−M) / 2, (Y−N)). The other three vertices Pf01, Pf02, and Pf03 are Pf01 ((X + M) / 2, (Y−N)), Pf02 ((X + M) / 2, Y), and Pf03 ((X−M) / 2, Y), respectively. It is expressed.

同様に、ページタイプ「縦1ページ」のプレビュー画像データにおいて「下左右」にあるページ番号検出領域の大きさを補正する場合、「下左」のページ番号検出領域の左上の頂点の座標は(0,(Y−N))、「下右」のページ番号検出領域の左上の頂点の座標は((X−M),(Y−N))となる。   Similarly, when correcting the size of the page number detection area “lower left and right” in the preview image data of the page type “vertical 1 page”, the coordinates of the upper left vertex of the page number detection area “lower left” are ( 0, (Y−N)), the coordinates of the upper left vertex of the “lower right” page number detection area are ((X−M), (Y−N)).

また、図8(d)のような、ページタイプ「縦2ページ」のプレビュー画像データにおいて「下左右」にあるページ番号検出領域F8a,F8b,F8c,F8dの大きさを補正する場合、4箇所のページ番号検出領域F8a,F8b,F8c,F8dの左上の頂点Pf8a0,Pf8b0,Pf8c0,Pf8d0の座標は、それぞれPf8a0(0,(Y−N)),Pf8b0((X/2−M),(Y−N)),Pf8c0(X/2,(Y−N)),Pf8d0((X−M),(Y−N))となる。   Further, when the size of the page number detection areas F8a, F8b, F8c, and F8d in the “lower left and right” in the preview image data of the page type “vertical two pages” as shown in FIG. The coordinates of the top left vertices Pf8a0, Pf8b0, Pf8c0, and Pf8d0 of the page number detection areas F8a, F8b, F8c, and F8d are Pf8a0 (0, (YN)), Pf8b0 ((X / 2-M), ( YN)), Pf8c0 (X / 2, (YN)), Pf8d0 ((XM), (YN)).

また、図10(b)のような、ページタイプ「横2ページ」のプレビュー画像データにおいて「下左右」にあるページ番号検出領域F1,F2,F3,F4の大きさを補正する場合、4箇所のページ番号検出領域F1,F2,F3,F4の左上の頂点Pf10,Pf20,Pf30,Pf40の座標は、それぞれPf10(0,(Y/2−N)),Pf20((X−M),(Y/2−N)),Pf30(0,(Y−N)),Pf40((X−M),(Y−N))となるが、上記いずれの場合とも、ユーザは横(M),縦(N)の長さのみを指定するだけで、ページ番号検出領域(F等)の大きさの変更を行うことができる。   Further, when correcting the size of the page number detection areas F1, F2, F3, and F4 in “lower left and right” in the preview image data of the page type “horizontal two pages” as shown in FIG. The coordinates of the upper left vertices Pf10, Pf20, Pf30, and Pf40 of the page number detection areas F1, F2, F3, and F4 are Pf10 (0, (Y / 2-N)), Pf20 ((X-M), ( Y / 2-N)), Pf30 (0, (YN)), Pf40 ((X-M), (Y-N)). The size of the page number detection area (F, etc.) can be changed simply by designating only the length (N).

上記により、ページ番号検出領域リスト3Lには、各ページタイプのページ番号検出領域の横(M)・縦(N)の長さと、ページ番号検出領域(F等)が矩形である場合は、その左上の頂点の座標とを記憶すればよく、他の3つの頂点の座標を記憶する必要がないので、HDD3の記憶領域に占める容量を低減できる。また、ページ番号検出領域(F等)が円である場合は、円の中心の座標と半径あるいは長径および短径(楕円の場合)を記憶しておけばよい。多角形の場合は多角形の種別と中心の座標、および中心から頂点までの距離を記憶しておけばよい。   As described above, in the page number detection area list 3L, when the page number detection area of each page type has a horizontal (M) / vertical (N) length and the page number detection area (F, etc.) is rectangular, It is only necessary to store the coordinates of the upper left vertex, and since it is not necessary to store the coordinates of the other three vertices, the capacity occupied in the storage area of the HDD 3 can be reduced. If the page number detection area (F or the like) is a circle, the coordinates of the center of the circle and the radius or major axis and minor axis (in the case of an ellipse) may be stored. In the case of a polygon, the type of polygon, the coordinates of the center, and the distance from the center to the vertex may be stored.

また、図11のように、ページタイプ「縦1ページ」のプレビュー画像データにおいて、図5のスキャンモード設定ダイアログの「ページ番号検出領域」で「下右」を選択した場合、まずページ番号検出領域A1が設定される。そして、ページ番号検出領域演算処理(S24)において、例えば、スキャン幅W方向に平行な辺の中点Qを通りスキャン方向Yに垂直な直線を対称軸とした左右対称の位置にページ番号検出領域B1が設定(補正)される。また、上下対称の位置にページ番号検出領域A1’を設定してもよい。   Also, as shown in FIG. 11, in the preview image data of the page type “vertical 1 page”, when “lower right” is selected in “page number detection area” of the scan mode setting dialog in FIG. A1 is set. In the page number detection area calculation process (S24), for example, the page number detection area is located at a symmetrical position with a straight line passing through the midpoint Q of the side parallel to the scan width W direction and perpendicular to the scan direction Y as the axis of symmetry. B1 is set (corrected). Further, the page number detection area A1 'may be set at a vertically symmetrical position.

また、図12のように、ページタイプ「縦1ページ」の画像データにおいて、図5のスキャンモード設定ダイアログの「ページ番号検出領域」で「下右」を選択した場合、まずページ番号検出領域A2が設定される。そして、ページ番号検出領域演算処理(S24)において、スキャン方向Xに平行な辺の中点Sを通りスキャン方向Xに垂直な直線を対称軸とした左右対称の位置にページ番号検出領域B2が設定(補正)される。さらに、スキャン領域Gの頂点Rと中点Sとの中点を通りスキャン方向Xに垂直な直線を対称軸とした左右対称の位置にページ番号検出領域C2が設定(補正)される。また、中点Sと頂点Tとの中点を通りスキャン方向Xに垂直な直線を対称軸とした左右対称の位置にページ番号検出領域D2を設定してもよい。   As shown in FIG. 12, in the case of image data of the page type “vertical 1 page”, when “lower right” is selected in “page number detection area” of the scan mode setting dialog of FIG. 5, first, the page number detection area A2 Is set. Then, in the page number detection area calculation process (S24), the page number detection area B2 is set at a symmetrical position with a straight line passing through the midpoint S of the side parallel to the scan direction X and perpendicular to the scan direction X as a symmetry axis. (Corrected). Further, the page number detection region C2 is set (corrected) at a symmetrical position with a straight line passing through the midpoint between the vertex R and the midpoint S of the scan region G and perpendicular to the scan direction X as a symmetry axis. Alternatively, the page number detection region D2 may be set at a bilaterally symmetrical position with a straight line passing through the midpoint between the midpoint S and the apex T and perpendicular to the scan direction X as a symmetric axis.

(画像読取処理2:ページ番号検出領域マウス選択の場合)
図13および図14を用いて、本発明の画像読取処理の別の例について説明する。なお、図13の処理においてステップS31〜S35,ステップS37〜S38,およびステップS42〜S47は、それぞれ図4の処理のステップS1〜S5,ステップS7〜S8,およびステップS10〜S15と同様であるため詳細な説明は割愛する。但し、全ページのスキャンが終了した場合(S46:Yes)には、検出あるいは編集されたページ番号検出領域の内容をHDD3に記憶する(S48)。図33にその一例を示す。ページ番号検出領域には記憶されたページ番号検出領域を識別するための番号あるいは名称,ページタイプ,ページ番号検出領域の左上(あるいは中心等)の座標,ページ番号検出領域の横方向長さ,ページ番号検出領域の縦方向長さ等が含まれる。これら記憶されたページ番号検出領域は、以降のページ番号検出領域を設定する際に、図5のようなスキャンモード設定ダイアログにおいて「ページ番号検出領域」のプルダウンメニュー等から選択することができる。
(Image reading process 2: Page number detection area mouse selection)
Another example of the image reading process of the present invention will be described with reference to FIGS. In the process of FIG. 13, steps S31 to S35, steps S37 to S38, and steps S42 to S47 are the same as steps S1 to S5, steps S7 to S8, and steps S10 to S15 of the process of FIG. Detailed explanation is omitted. However, when the scanning of all the pages is completed (S46: Yes), the contents of the detected or edited page number detection area are stored in the HDD 3 (S48). An example is shown in FIG. The page number detection area includes a number or name for identifying the stored page number detection area, page type, upper left (or center) coordinates of the page number detection area, horizontal length of the page number detection area, page The length in the vertical direction of the number detection area is included. These stored page number detection areas can be selected from a pull-down menu of “page number detection area” in the scan mode setting dialog as shown in FIG. 5 when setting the subsequent page number detection areas.

ステップS39に相当するページ番号検出領域表示処理(後述)におけるページ番号検出領域の補正後に、その補正内容をそのままあるいは一部手直し(編集)して保存したい場合(S40:Yes)は、ステップS39と同様の要領でページ番号検出領域を編集・保存することができる(S41)。補正内容あるいは編集された内容はHDD3のページ番号検出領域リスト3Lに追加あるいは上書きされる。そして、次回の画像読取処理から「ページ番号検出領域」のプルダウンメニューから選択して使用可能となる。   When correction of the page number detection area in the page number detection area display process (to be described later) corresponding to step S39 is desired to be corrected or edited (edited) and saved (S40: Yes), step S39 is executed. The page number detection area can be edited and saved in the same manner (S41). The corrected content or edited content is added to or overwritten in the page number detection area list 3L of the HDD 3. Then, it can be selected and used from the pull-down menu of “page number detection area” from the next image reading process.

図15を用いて、図13のステップS36,S39に相当するページ番号検出領域表示処理について説明する。まず、図14のスキャンモード設定ダイアログのプレビュー画面Hに表示されるページタイプを確認する(S51)。「ページソート」の左のチェックボックスにチェック印をつけた場合(図13のS35:YesあるいはS38:Yes)、HDD3の所定の領域に記憶されている前回指定されたページ番号検出領域Fが表示される。図14に、前回指定された内容が、ページタイプが「縦1ページ」、ページ番号検出領域Fが「下中央」の例を示す。   The page number detection area display process corresponding to steps S36 and S39 in FIG. 13 will be described with reference to FIG. First, the page type displayed on the preview screen H of the scan mode setting dialog in FIG. 14 is confirmed (S51). When the check box to the left of “Page Sort” is checked (S35: Yes or S38: Yes in FIG. 13), the previously designated page number detection area F stored in the predetermined area of the HDD 3 is displayed. Is done. FIG. 14 shows an example in which the previously specified content is that the page type is “vertical 1 page” and the page number detection area F is “lower center”.

ページタイプを変更したい場合は、図14のスキャンモード設定ダイアログにおいて「ページタイプ」欄右の「▽」をクリックして図8(a)のようなプルダウンメニューを表示させ、そのメニューからいずれかのページタイプを選択する。図16にその一例を示す。前回指定された内容が、図16(a)のようにページタイプが「縦1ページ」、ページ番号検出領域が「下左右」のFa1,Fa2である場合にページタイプを変更した場合、「縦2ページ」のときは図16(b)のようなFb1〜Fb4、「横1ページ」のときは図16(c)のようなFc1,Fc2、「横2ページ」のときは図16(d)のようなFd1〜Fd4がページ番号検出領域としてプレビュー画面Hに表示される。   To change the page type, click “▽” on the right of the “Page type” column in the scan mode setting dialog of FIG. 14 to display a pull-down menu as shown in FIG. Select the page type. An example is shown in FIG. When the page type is changed when the previously specified content is Fa1 and Fa2 with the page type “vertical 1 page” and the page number detection area “bottom left and right” as shown in FIG. When “2 pages”, Fb1 to Fb4 as shown in FIG. 16B, when “horizontal 1 page”, Fc1 and Fc2 as shown in FIG. 16C, and when “2 pages”, FIG. Fd1 to Fd4 are displayed on the preview screen H as page number detection areas.

次に、スキャン領域Gの範囲を確認する(S52)。スキャン領域Gは概ね読み取られた原稿のサイズに等しいが、マウス等でスキャン領域Gのサイズの変更をすることが可能である。   Next, the range of the scan area G is confirmed (S52). The scan area G is approximately equal to the size of the document that has been read, but the size of the scan area G can be changed with a mouse or the like.

次いで、ページ番号検出領域Fの補正を行うためのページ番号検出領域演算処理(S53:後述)が実行され、その結果がプレビュー画面Hに表示される(S54)。   Next, a page number detection area calculation process (S53: described later) for correcting the page number detection area F is executed, and the result is displayed on the preview screen H (S54).

図17および図18を用いて、図15のステップS53に相当するページ番号検出領域演算処理について説明する。まず、マウス等により図14のスキャンモード設定ダイアログのプレビュー画面Hに表示されるページ番号検出領域(図14のF等)の枠をクリックしてサイズを変更したり位置を移動する。新たにページ番号検出領域を追加する場合は、図14のスキャンモード設定ダイアログの「追加」ボタンをクリックし、追加したいページ番号検出領域の始点と終点を指定する。すなわち、マウスで最初にクリックした位置を始点とし次にクリックした位置を終点とする矩形が新たなページ番号検出領域となる。   The page number detection area calculation process corresponding to step S53 in FIG. 15 will be described with reference to FIGS. First, click the frame of the page number detection area (such as F in FIG. 14) displayed on the preview screen H of the scan mode setting dialog in FIG. 14 with a mouse or the like to change the size or move the position. To newly add a page number detection area, click the “Add” button in the scan mode setting dialog shown in FIG. 14 and specify the start point and end point of the page number detection area to be added. That is, a new page number detection area is a rectangle starting from the first clicked position with the mouse and ending at the next clicked position.

そして、「確認」ボタンをクリックすると、本の見開き等に対応可能なようにページ番号検出領域を補正する。図18にその一例を示す。図18(a),図18(b)のようにページタイプが「縦1ページ」のような読み取り対象の原稿1枚あたりのページ数が1ページの場合(S61:Yes)、図10(a)に示されるようなスキャン領域Gの座標から矩形状のページ番号検出領域の位置(座標)および各辺の長さ(N,Mに相当)を求める(S62)。そして、求めたページ番号検出領域の位置に応じてページ番号検出領域の追加あるいはサイズ変更等の補正を行う(S63)。そして、補正の結果をプレビュー画面Hに表示する(S64)。   Then, when the “Confirm” button is clicked, the page number detection area is corrected so as to be able to cope with a book spread. An example is shown in FIG. As shown in FIGS. 18A and 18B, when the number of pages per document to be read is “1 page” (S61: Yes), the page type is “1 page vertically” (S61: Yes). The position (coordinates) of the rectangular page number detection area and the length of each side (corresponding to N and M) are obtained from the coordinates of the scan area G as shown in FIG. Then, correction such as addition of the page number detection area or size change is performed according to the obtained position of the page number detection area (S63). Then, the correction result is displayed on the preview screen H (S64).

図18(a)の例は、ユーザが「下右」にページ番号検出領域F19aを設定したので、ページ番号検出領域F19aとページの縦方向に対し左右対称の位置(「下左」)に新たなページ番号検出領域F19bを追加し、ページ番号検出領域を「下左右」とする補正を行っている。また、図18(b)の例は、ユーザが「下中央付近」にページ番号検出領域F19cを設定したが、中央からやや左にずれているのと横方向のサイズが若干小さいので、「下中央」に位置するように移動するとともに横方向のサイズを大きくする補正を行っている。ここで、図18(a)では「上左右」、図18(b)では「上中央」といった上下対称の位置にページ番号検出領域(図示せず)を追加する補正を行ってもよい。   In the example of FIG. 18A, since the user has set the page number detection area F19a to “lower right”, the page number detection area F19a and a new position at the position symmetrical to the vertical direction of the page (“lower left”). The page number detection area F19b is added, and the page number detection area is corrected to “lower left and right”. In the example of FIG. 18B, the user sets the page number detection area F19c “near the lower center”. However, since the size in the horizontal direction is slightly smaller because it is slightly shifted to the left from the center, The correction is made so that the horizontal size is increased while moving so as to be positioned at the “center”. Here, correction for adding a page number detection region (not shown) at a vertically symmetrical position such as “upper left and right” in FIG. 18A and “upper center” in FIG. 18B may be performed.

一方、図18(c)のようにページタイプが「縦2ページ」のような読み取り対象の原稿1枚あたりのページ数が2ページの場合(S61:No)、スキャン領域Gに向かって右のページを第1ページ、向かって左のページを第2ページとすると、まず、第1ページにおいて設定されたページ番号検出領域の位置(座標)および各辺の長さ(N,Mに相当)を求め(S65)、求めたページ番号検出領域の位置に応じてページ番号検出領域の追加あるいはサイズ変更等の補正を行う(S66)。次いで、同様に第2ページにおいてページ番号検出領域の位置(座標)および各辺の長さを求め(S67)、求めたページ番号検出領域の位置に応じてページ番号検出領域の追加あるいはサイズ変更等の補正を行う(S68)。そして、上記で補正された第1ページおよび第2ページの補正結果を合成して(S69)、その結果をプレビュー画面Hに表示する(S64)。   On the other hand, as shown in FIG. 18C, when the page type is “2 vertical pages” and the number of pages per document to be read is 2 pages (S61: No), If the page is the first page and the left page is the second page, first, the position (coordinates) of the page number detection area and the length of each side (corresponding to N and M) set in the first page Determination (S65), and correction such as addition of the page number detection area or size change is performed according to the position of the calculated page number detection area (S66). Next, similarly, the position (coordinates) of the page number detection area and the length of each side are obtained on the second page (S67), and the page number detection area is added or the size is changed according to the obtained position of the page number detection area. Is corrected (S68). Then, the corrected results of the first page and the second page corrected above are synthesized (S69), and the result is displayed on the preview screen H (S64).

図18(c)の例では、ユーザが向かって右側の第1ページの「下右」にページ番号検出領域F19dを設定したので、ページ番号検出領域F19dとページの縦方向に対し左右対称の位置(「下左」)に新たなページ番号検出領域F19eを追加し、ページ番号検出領域を「下左右」とする補正を行い、この補正結果に基づいて、向かって左側の第2ページに対しページ番号検出領域を「下左右」となるようにページ番号検出領域F19f,F19gを追加する補正を行っている。図18(a)同様に「上左右」の補正を行ってもよい。   In the example of FIG. 18C, since the user has set the page number detection area F19d in the “bottom right” of the first page on the right side, the position symmetrical to the page number detection area F19d with respect to the vertical direction of the page. A new page number detection area F19e is added to ("bottom left"), and the page number detection area is corrected to "bottom left and right". Correction is performed to add page number detection areas F19f and F19g so that the number detection area becomes “lower left and right”. Similarly to FIG. 18A, “upper left and right” correction may be performed.

上記構成では、ユーザの操作が不要であるだけではなく、ページタイプの異なる原稿が混在していても、プレビューされた原稿(画像データ)に応じてページ番号検出領域が設定可能であるため、ページタイプ毎に原稿をまとめる必要がないという利点がある。   In the above configuration, not only the user's operation is unnecessary, but the page number detection area can be set according to the previewed document (image data) even when documents of different page types are mixed. There is an advantage that it is not necessary to collect manuscripts for each type.

(画像読取処理3:ページ番号検出領域自動設定の場合)
図19を用いて、本発明の画像読取処理のさらに別の例について説明する。なお、図19の処理においてステップS71〜S75,およびステップS78〜S88は、それぞれ図13の処理のステップS31〜S35,およびステップS37〜S47と同様であるため詳細な説明は割愛する。
(Image reading process 3: Page number detection area automatic setting)
A further example of the image reading process of the present invention will be described with reference to FIG. In the process of FIG. 19, steps S71 to S75 and steps S78 to S88 are the same as steps S31 to S35 and steps S37 to S47 of the process of FIG.

図20および図21を用いて、図19のステップS76に相当するページタイプおよびページ番号検出領域の検索処理について説明する。まず、プレビュースキャンされた画像データを対象として所定のページ番号検索領域においてページ番号を検索する(S91)。そして、検索された結果を基にページタイプおよびページ番号検出領域を設定する(S92)。そして、ページ番号検出領域の補正を行ってプレビュー画面Hに表示する(図19のS77)。   The page type and page number detection area search processing corresponding to step S76 in FIG. 19 will be described with reference to FIGS. First, a page number is searched in a predetermined page number search area for the preview scanned image data (S91). Then, a page type and a page number detection area are set based on the retrieved result (S92). Then, the page number detection area is corrected and displayed on the preview screen H (S77 in FIG. 19).

図21にページ番号検索領域F22の一例を示す。ページ番号検索領域F22は、ページ番号検出領域が上,上中央,上左右,下,下中央,下左右,全面、ページタイプが縦1ページ,横1ページ,縦2ページ,横2ページのものについて検索可能となっている。また、ページ番号検索領域F22のデータは、例えばHDD3のページ番号検出領域リスト3L等に座標データとして記憶されている。   FIG. 21 shows an example of the page number search area F22. The page number search area F22 has a page number detection area of upper, upper center, upper left / right, lower, lower center, lower left / right, entire surface, and page type of vertical 1 page, horizontal 1 page, vertical 2 pages, horizontal 2 pages. Is searchable. Further, the data of the page number search area F22 is stored as coordinate data in the page number detection area list 3L of the HDD 3, for example.

例えば、領域F22aのみでページ番号が検索された場合、まず、ページタイプが「縦1ページ」と設定され、ページ番号検出領域(F22a)が「下左」であるため、左右対称な領域(F22b)をページ番号検出領域として追加し、ページ番号検出領域を「下左右」と補正する。また、領域F22cのみでページ番号が検索された場合、ページタイプが「縦1ページ」と設定され、ページ番号検出領域は「下中央」と設定される。また、領域F22aおよび領域F22dでページ番号が検索された場合、ページタイプが「横2ページ」と設定され、領域F22bおよびF22eがページ番号検出領域として追加される。   For example, when the page number is searched only in the area F22a, first, the page type is set to “vertical 1 page”, and the page number detection area (F22a) is “lower left”. ) Is added as a page number detection area, and the page number detection area is corrected to “lower left and right”. When the page number is searched only in the area F22c, the page type is set to “vertical 1 page”, and the page number detection area is set to “lower center”. When the page number is searched in the area F22a and the area F22d, the page type is set to “2 horizontal pages”, and the areas F22b and F22e are added as the page number detection area.

(スキャン処理1)
図22を用いて、例えば図4のステップS12およびS13に相当する、ページ番号を検出して検出されたページ番号を基にページのソート処理を含むスキャン処理の詳細について説明する。まず、前述したように図5のようなスキャンモード設定ダイアログにおいてスキャンモードを設定する(S101)。次に、前述の方法のいずれかを用いて、PC1から複合機10に指令を送り、原稿のプレビュースキャンを行ってページ番号検出領域を設定する(S102)。
(Scanning process 1)
Details of scan processing including page sorting processing based on page numbers detected by detecting page numbers, for example, corresponding to steps S12 and S13 of FIG. 4 will be described with reference to FIG. First, as described above, the scan mode is set in the scan mode setting dialog as shown in FIG. 5 (S101). Next, using any of the above-described methods, a command is sent from the PC 1 to the multi-function device 10 and a document preview scan is performed to set a page number detection area (S102).

そして、HDD3に記憶されているページ番号テーブル3T(詳細は後述)を例えばゼロクリアのように初期化する(S103)。   Then, the page number table 3T (details will be described later) stored in the HDD 3 is initialized, for example, as zero clear (S103).

次いで、PC1から複合機10に指令を送り、プレビューされたページのスキャンを行う(S104)。スキャンされたページ画像データは、スキャナドライバ用ワークメモリ2PあるいはHDD3の所定の領域に一時保存される(S105)。そして、ページ画像データの読取とともに検出されたページ番号によってページのソート処理を行う(S106:後述)。ステップS104〜S106の処理は全てのページ(原稿)について実施する。   Next, a command is sent from the PC 1 to the multifunction device 10 to scan the previewed page (S104). The scanned page image data is temporarily stored in a predetermined area of the scanner driver work memory 2P or the HDD 3 (S105). Then, page sorting processing is performed based on the page numbers detected when the page image data is read (S106: described later). The processes in steps S104 to S106 are performed for all pages (originals).

全ての原稿のスキャンが終了したら(S107:Yes)、ソートされたページ番号順に読み取られた全ページのページ画像データを一つのファイル(マルチページファイル)としてHDD3のスキャンデータ記憶領域3Rに、スキャナドライバ用ワークメモリ2Pの当該マルチページファイルに対応するページ番号テーブルとともに保存する(S108)。そして、ページ番号テーブル確認処理(109:後述)を行い、その結果をプレビュー画面H上あるいはプレビュー画面Hと別画面に表示する(S110)。   When scanning of all documents is completed (S107: Yes), the page image data of all pages read in the sorted page number order is stored as a single file (multi-page file) in the scan data storage area 3R of the HDD 3, and the scanner driver. And the page number table corresponding to the multi-page file in the work memory 2P (S108). Then, a page number table confirmation process (109: described later) is performed, and the result is displayed on the preview screen H or on a different screen from the preview screen H (S110).

表示方法は以下のいずれを用いてもよい。
(1)ページソート時にエラーを検出した場合に、エラー表示を行う。
例:「ページ番号3を読み取れませんでした」
(2)ページソート時にエラーを検出しなかった場合は、スキャン結果を表示する。
例:「ページ番号1〜ページ番号10までのページをスキャンしました」
Any of the following display methods may be used.
(1) An error is displayed when an error is detected during page sorting.
Example: “Could not read page number 3”
(2) If no error is detected during page sorting, the scan result is displayed.
Example: “Scanned pages from page number 1 to page number 10”

上記の正常に読み取られたページ番号および正常に読み取られなかったページ番号は、ページ番号テーブル3Tに記憶された内容から読み出すことができる。   The page number that has been normally read and the page number that has not been normally read can be read from the contents stored in the page number table 3T.

図23のフロー図および図24を用いて、図22のステップS106に相当するページのソート処理について説明する。まず、前述した方法で画像処理部7において、設定されたページ番号検出領域からページ番号を検出する(S121)。次に、ページ番号テーブル3Tをスキャナドライバ用ワークメモリ2Pに読み出す(S122)。   The page sorting process corresponding to step S106 in FIG. 22 will be described with reference to the flowchart in FIG. 23 and FIG. First, the page number is detected from the set page number detection area in the image processing unit 7 by the method described above (S121). Next, the page number table 3T is read out to the scanner driver work memory 2P (S122).

そして、今回検出されたページ番号とページ番号テーブル3Tに記憶されているページ番号とを比較し、今回検出されたページ番号が一番大きな値の場合(S123:Yes)は、今回検出されたページ番号を、既にページ番号テーブル3Tに記憶されているページ番号の最後に追加する(S124)。   Then, the page number detected this time is compared with the page number stored in the page number table 3T, and if the page number detected this time is the largest value (S123: Yes), the page detected this time The number is added to the end of the page number already stored in the page number table 3T (S124).

図24の例では、ページ番号テーブル3Tはページ番号とそのページ番号の含まれるページを読み取った枚数であるページ数とを含んで構成される。ページ番号テーブル3Tが初期化されると図24(a)のようにページ番号とページ数とがゼロクリアされる。   In the example of FIG. 24, the page number table 3T includes a page number and the number of pages that is the number of pages read from the page including the page number. When the page number table 3T is initialized, the page number and the page number are cleared to zero as shown in FIG.

初期化された状態でページ番号1が検出された場合、ページ番号1が最大となるので、図24(b)のように、ページ番号テーブル3Tの先頭領域にページ番号1とページ数1とが記憶される。その次にページ番号4が検出された場合、ページ番号4が最大となるので、図24(b)のように、ページ番号1が記憶されている次の空き領域にページ番号4とページ数1とが記憶される。   When the page number 1 is detected in the initialized state, the page number 1 becomes the maximum, and therefore, as shown in FIG. 24B, the page number 1 and the page number 1 are displayed in the top area of the page number table 3T. Remembered. Next, when page number 4 is detected, page number 4 is the largest, so as shown in FIG. 24B, page number 4 and page number 1 are stored in the next free area in which page number 1 is stored. Is memorized.

一方、今回検出されたページ番号が一番大きな値でない場合(S123:No)は、今回検出されたページ番号がページ番号テーブル3Tに記憶されているか(ページ番号が重なっているか)を調べ、ページ番号が重なっていない場合(S126:No)は、今回検出されたページ番号をページ番号テーブル3Tの対応する位置に挿入する(S127)。   On the other hand, if the page number detected this time is not the largest value (S123: No), it is checked whether the page number detected this time is stored in the page number table 3T (whether the page numbers overlap), If the numbers do not overlap (S126: No), the page number detected this time is inserted into the corresponding position in the page number table 3T (S127).

例えばページ番号テーブル3Tが図24(b)のような状態である場合に、ページ番号2を検出した場合、図24(c)のようにページ番号1とページ番号4との間に挿入される。   For example, when page number 2 is detected when page number table 3T is in the state as shown in FIG. 24B, it is inserted between page number 1 and page number 4 as shown in FIG. .

一方、ページ番号が重なっている場合(S126:Yes)は、スキャナドライバ用ワークメモリ2P等に領域が確保されるエラーフラグをセットする等のエラー処理を実施する(S128)。エラー処理として以下のような処理を実施してもよい。
(1)今回スキャンされたページ画像データは保存しない。
(2)同じページ番号のページ画像データを入れ替える。すなわち、同じページ番号のページ画像データを削除し、今回スキャンされたページ画像データを挿入する。
(3)同じページ番号のページ画像データが連続するようにページ画像データを挿入しページ番号テーブル3Tを更新する。例えばページ番号1が2つある場合はページ番号テーブル3Tのページ番号1に対応するページ数が2となる。
On the other hand, if the page numbers overlap (S126: Yes), an error process such as setting an error flag for ensuring an area in the scanner driver work memory 2P or the like is performed (S128). The following processing may be performed as error processing.
(1) The page image data scanned this time is not saved.
(2) Replace page image data with the same page number. That is, the page image data having the same page number is deleted, and the page image data scanned this time is inserted.
(3) The page number table 3T is updated by inserting page image data so that page image data of the same page number is continuous. For example, when there are two page numbers 1, the number of pages corresponding to page number 1 in the page number table 3T is two.

図25のフロー図および図26を用いて、図22のステップS109に相当するページ番号テーブル確認処理について説明する。まず、ページ画像データのソート処理(図22のステップS106)においてエラーフラグがセットされた場合(S131:Yes)、何もせずに処理を終了する。   The page number table confirmation process corresponding to step S109 in FIG. 22 will be described with reference to the flowchart in FIG. 25 and FIG. First, when the error flag is set in the page image data sorting process (step S106 in FIG. 22) (S131: Yes), the process is terminated without doing anything.

一方、エラーフラグがセットされていない場合(S131:No)、ページ番号テーブル3Tを参照し、ページ番号テーブル3Tに記憶されている先頭のページ番号A(ページ番号の最小値)をスキャナドライバ用ワークメモリ2Pに読み出す(S132)。次に、ページ番号テーブル3Tに記憶されている末尾のページ番号B(ページ番号の最大値)をスキャナドライバ用ワークメモリ2Pに読み出す(S133)。   On the other hand, if the error flag is not set (S131: No), the page number table 3T is referred to, and the first page number A (minimum page number) stored in the page number table 3T is used as the scanner driver work. Reading to the memory 2P (S132). Next, the last page number B (maximum value of the page number) stored in the page number table 3T is read to the scanner driver work memory 2P (S133).

ページ番号数Cを、(ページ番号数C)=(ページ番号B)−(ページ番号A)+1として算出する(S134)。そして、各ページ番号に対応するページ数からページ数の総和を求める。ページ番号数Cとページ数の総和とが一致する場合(S135:Yes)はエラーなしと判定して処理を終了する。一方、ページ番号数Cとページ数の総和とが一致しない場合(S135:No)はエラーありと判定してスキャナドライバ用ワークメモリ2Pに領域が確保されるエラーフラグをセットする(S136)。   The page number number C is calculated as (page number number C) = (page number B) − (page number A) +1 (S134). Then, the total number of pages is obtained from the number of pages corresponding to each page number. If the page number C matches the total number of pages (S135: Yes), it is determined that there is no error and the process is terminated. On the other hand, if the number of page numbers C does not match the total number of pages (S135: No), it is determined that there is an error, and an error flag that secures an area in the scanner driver work memory 2P is set (S136).

図26の例では、ページ番号1,2,4が記憶されているので、ページ番号数Cは、4−1+1の4となる。また、ページ数の総和は1×3の3となる。ページ番号数C(4)とページ数の総和(3)とが一致しないので、エラーと判定される。つまり、ページ番号3が検出されなかったことによるエラーである。また、書籍などでは、ページ番号が付与された本来のページの他に前書きなどのページが複数ページ存在する場合があるが、その前書きに対応するためにページ番号が0およびマイナスとなった場合にも対応可能となっている。   In the example of FIG. 26, since page numbers 1, 2, and 4 are stored, the number C of page numbers is 4 of 4-1 + 1. The total number of pages is 3 (1 × 3). Since the page number number C (4) and the total number of pages (3) do not match, it is determined as an error. That is, the error is due to the fact that page number 3 was not detected. In addition, in a book or the like, there may be a plurality of pages such as a foreword in addition to the original page to which a page number is assigned, but when the page number becomes 0 and minus to correspond to the foreword. Is also available.

図27を用いて、図22のステップS106に相当するページ画像データのソート処理の別の例について説明する。本処理は、例えば章区切りページのようにページ番号が付与されていないページをスキャンした場合に対応するためのものである。まず、前述した方法で画像処理部7において、設定されたページ番号検出領域からページ番号を検出する(S141)。次に、ページ番号テーブル3Tをスキャナドライバ用ワークメモリ2Pに読み出す(S142)。   With reference to FIG. 27, another example of the page image data sorting process corresponding to step S106 in FIG. 22 will be described. This process is for dealing with a case where a page without a page number is scanned, such as a chapter break page. First, the page number is detected from the set page number detection area in the image processing unit 7 by the method described above (S141). Next, the page number table 3T is read into the scanner driver work memory 2P (S142).

ページ番号が検出されなかった場合(S143:Yes)、その画像データをページ番号テーブル3Tに記憶されている最後のページとして追加する(S146)。一方、ページ番号が検出された場合(S143:No)、ページ番号テーブル3Tに含まれる、そのページ番号のページ画像データを読み取った旨のフラグをセットする(S144)。   If the page number is not detected (S143: Yes), the image data is added as the last page stored in the page number table 3T (S146). On the other hand, when the page number is detected (S143: No), a flag indicating that the page image data of the page number included in the page number table 3T has been read is set (S144).

なお、ステップS145〜S150の処理内容は、それぞれ図23のステップS123〜S128の処理内容と同様であるため、ここでの詳細な説明は割愛する。   Note that the processing contents of steps S145 to S150 are the same as the processing contents of steps S123 to S128 of FIG. 23, respectively, and thus detailed description thereof is omitted.

図28,図29に図27のページのソート処理で用いられるページ番号テーブル3Tの例を示す。図28(a)のように、原稿がスキャンされると、スキャンされたページ画像データから検出されたページ番号,そのページ番号が検出されたページ数(正常なスキャン処理が行われるときは1),およびそのページ画像データにおけるページ番号の有無を示すフラグがページ番号テーブル3Tに記憶される。図28(a)では、原稿の1ページから3ページまでが読み取られ、その各々からページ番号が検出された状態が示されている。図28(a)の状態に続いて読み取られたページ画像データからページ番号が検出されなかった場合、図28(b)のように、データの末尾であるページ番号3の次の領域に「ページ番号4,ページ番号なし」として記憶される。   28 and 29 show an example of the page number table 3T used in the page sorting process of FIG. As shown in FIG. 28A, when a document is scanned, the page number detected from the scanned page image data, and the number of pages from which the page number is detected (1 when normal scanning processing is performed). , And a flag indicating the presence or absence of a page number in the page image data is stored in the page number table 3T. FIG. 28A shows a state where pages 1 to 3 of the document are read and the page number is detected from each of them. When the page number is not detected from the page image data read following the state of FIG. 28A, “page” is displayed in the area next to page number 3 at the end of the data as shown in FIG. Number 4, no page number "is stored.

また、図29(a)では、ページ番号が検出されなかった2枚のページ画像データが記憶された状態が示されている。これらのページ画像データは仮にページ番号1,2として記憶されているが、続いて読み取られたページ画像データから検出されたページ番号が2であった場合には、データの重複を防止するために、図29(b)のように、図29(a)でページ番号2として記憶されていたページ画像データを、例えばページ番号0のようなデータが記憶されていないページ番号を付与する。   FIG. 29A shows a state where two page image data for which no page number has been detected are stored. These page image data are temporarily stored as page numbers 1 and 2, but when the page number detected from the page image data read subsequently is 2, in order to prevent duplication of data. As shown in FIG. 29B, the page image data stored as page number 2 in FIG. 29A is given a page number in which no data such as page number 0 is stored.

(スキャン処理2)
図30を用いて、例えば図4のステップS12およびS13に相当する、スキャンされたページ画像データから検出されたページ番号を基にページのソート処理を含むスキャン処理の詳細の別の例について説明する。本処理は図22のようなスキャンした原稿のページ画像データを一つのファイルとして記憶するマルチページファイルを作成するのではなく、スキャンした原稿のページ画像データ毎に一つのファイルとして記憶するものである。まず、デフォルトのファイル名を設定する(S161)。
(Scanning process 2)
With reference to FIG. 30, another example of details of scan processing including page sorting processing based on page numbers detected from scanned page image data, for example, corresponding to steps S <b> 12 and S <b> 13 of FIG. 4 will be described. . This process does not create a multi-page file for storing page image data of a scanned document as one file as shown in FIG. 22, but stores it as one file for each page image data of the scanned document. . First, a default file name is set (S161).

デフォルトのファイル名は、スキャンされたページ画像データのファイル名の共通部分となるもので、例えば日時や原稿のタイトル等の文字列を設定する。なお、図5等のスキャンモード設定ダイアログにおいて「スキャン」をクリックした場合に表示される図示しないデフォルトのファイル名設定ダイアログにおいて設定を行う。設定された内容はスキャナドライバ用ワークメモリ2Pに記憶される。   The default file name is a common part of the file name of the scanned page image data. For example, a character string such as a date and time or a document title is set. The setting is performed in a default file name setting dialog (not shown) displayed when “scan” is clicked in the scan mode setting dialog in FIG. The set contents are stored in the scanner driver work memory 2P.

次に、前述したように図5のようなスキャンモード設定ダイアログにおいてスキャンモードを設定する(S162)。次に、前述の方法のいずれかを用いて、PC1から複合機10に指令を送り、原稿のプレビュースキャンを行ってページ番号検出領域を設定する(S163)。   Next, as described above, the scan mode is set in the scan mode setting dialog as shown in FIG. 5 (S162). Next, using any of the above-described methods, a command is sent from the PC 1 to the multi-function peripheral 10 and a document preview scan is performed to set a page number detection area (S163).

次いで、PC1から複合機10に指令を送り、プレビューされたページのスキャンを行う(S164)。スキャンされたページ画像データは、スキャナドライバ用ワークメモリ2PあるいはHDD3の所定の領域に一時保存される(S165)。そして、ページ画像データの読取とともに検出されたページに基づいてファイル名設定処理を行う(S166:後述)。ステップS164〜S166の処理は全てのページ(原稿)について実施する。   Next, a command is sent from the PC 1 to the multifunction device 10 to scan the previewed page (S164). The scanned page image data is temporarily stored in a predetermined area of the scanner driver work memory 2P or the HDD 3 (S165). Then, a file name setting process is performed based on the page detected together with the reading of the page image data (S166: described later). The processes in steps S164 to S166 are performed for all pages (originals).

全ての原稿のスキャンが終了したら(S167:Yes)、図25のようなページ番号テーブル確認処理(S168)を行い、図22のステップS110と同様に、その結果をプレビュー画面等に表示する(S169)。   When all the originals have been scanned (S167: Yes), a page number table confirmation process (S168) as shown in FIG. 25 is performed, and the result is displayed on a preview screen or the like as in step S110 of FIG. 22 (S169). ).

図31を用いて、図30のステップS166に相当するファイル名設定処理について説明する。まず、前述した方法で画像処理部7において、設定されたページ番号検出領域からページ番号を検出する(S171)。次に、図26のようなページ番号テーブル3Tをスキャナドライバ用ワークメモリ2Pに読み出す(S172)。このとき、ページ番号テーブル3Tは初期化される。次いで、デフォルトのファイル名を参照する(S173)。ここでは、デフォルトのファイル名をスキャン時の日付(20051202)とする。   The file name setting process corresponding to step S166 of FIG. 30 will be described using FIG. First, the page number is detected from the set page number detection area in the image processing unit 7 by the method described above (S171). Next, the page number table 3T as shown in FIG. 26 is read out to the scanner driver work memory 2P (S172). At this time, the page number table 3T is initialized. Next, the default file name is referred to (S173). Here, the default file name is the date at the time of scanning (20051202).

今回のスキャンで検出されたページ番号が、ページ番号テーブル3Tに既に記憶されていない、すなわちページ番号が重なっていない場合(S174:No)、スキャンされたページ画像データを、デフォルトのファイル名に検出されたページ番号を付加したものをファイル名とし(S175)、所定のファイル形式でHDD3のスキャンデータ記憶領域3Rに記憶する(S176)。例えば、ページ番号10が検出されたページデータをTIFF(Tag Image File Format:タグイメージ・ファイル)形式で記憶する場合は、20051202_10.tifとなる。   If the page number detected in the current scan is not already stored in the page number table 3T, that is, if the page numbers do not overlap (S174: No), the scanned page image data is detected as the default file name. The added page number is added as a file name (S175) and stored in the scan data storage area 3R of the HDD 3 in a predetermined file format (S176). For example, in the case where the page data in which the page number 10 is detected is stored in the TIFF (Tag Image File Format) format, 20051202_10. tif.

そして、図24あるいは図28のようなページ番号テーブル3Tの内容に、今回のスキャンで検出されたページ番号を記憶する(S177)。   Then, the page number detected in the current scan is stored in the contents of the page number table 3T as shown in FIG. 24 or FIG. 28 (S177).

一方、ページ番号が重なっている場合(S174:Yes)、スキャナドライバ用ワークメモリ2Pに確保される領域にエラーフラグをセットするとともに、以下のうちのいずれかのエラー処理を行う(S178)。
(1)今回スキャンされたページ画像データを削除する。
(2)同じファイル名のページ画像データを入れ替える。つまり、同じファイル名のファイルを削除し、今回スキャンされたページ画像データにそのファイル名を付与して記憶する。
(3)デフォルトのファイル名に検出されたページ番号に加えて、複数ページであることを示す添え字を付加する。例:20051202_10(2).tif。
この場合、ページ番号テーブル3Tの対応するページ番号のページ数を更新する。つまり、ページ数が1の場合には、1カウントアップして2となる。
On the other hand, if the page numbers overlap (S174: Yes), an error flag is set in the area secured in the scanner driver work memory 2P, and any of the following error processing is performed (S178).
(1) Delete the page image data scanned this time.
(2) Replace page image data with the same file name. That is, the file having the same file name is deleted, and the file name is assigned to the page image data scanned this time and stored.
(3) In addition to the detected page number, a subscript indicating a plurality of pages is added to the default file name. Example: 20051202_10 (2). tif.
In this case, the page number of the corresponding page number in the page number table 3T is updated. That is, when the number of pages is 1, it is incremented by 1 and becomes 2.

図32を用いて、図30のステップS166に相当するファイル名設定処理の別の例について説明する。本処理は、例えば章区切りページのようにページ番号が付与されていないページをスキャンした場合に対応するためのものである。まず、前述した方法で画像処理部7において、設定されたページ番号検出領域からページ番号を検出する(S181)。次に、図28のようなページ番号テーブル3Tをスキャナドライバ用ワークメモリ2Pに読み出す(S182)。このとき、ページ番号テーブル3Tは初期化される。次いで、デフォルトのファイル名を参照する(S183)。   With reference to FIG. 32, another example of the file name setting process corresponding to step S166 of FIG. 30 will be described. This process is for dealing with a case where a page without a page number is scanned, such as a chapter break page. First, the page number is detected from the set page number detection area in the image processing unit 7 by the method described above (S181). Next, the page number table 3T as shown in FIG. 28 is read out to the scanner driver work memory 2P (S182). At this time, the page number table 3T is initialized. Next, the default file name is referred to (S183).

ページ番号が検出されなかった場合(S184:Yes)、デフォルトのファイル名にページ番号テーブル3Tに既に記憶されていないページ番号を付加したものをファイル名とし(S187)、tif等の所定のファイル形式でHDD3のスキャンデータ記憶領域3Rに記憶する(S188)。最後に、ページ番号テーブル3Tに今回検出されたページ番号とそのページ番号が読み取り済みでない旨の情報とを記憶する(S189)。   When the page number is not detected (S184: Yes), a file name is obtained by adding a page number not already stored in the page number table 3T to the default file name (S187), and a predetermined file format such as tif Is stored in the scan data storage area 3R of the HDD 3 (S188). Finally, the page number detected this time and information indicating that the page number has not been read are stored in the page number table 3T (S189).

一方、ページ番号が検出された場合(S184:No)、ページ番号テーブル3Tに含まれる、そのページ番号のページを読み取った旨のフラグをセットする(S185)。次に、ページ番号テーブル3Tを参照して今回検出されたページ番号に関するデータが記憶されているかを調べ、記憶されていない(ページ番号が重なっていない)場合(S186:No)、デフォルトのファイル名に検出されたページ番号を付加したもの(例:20051202_10)をファイル名とし(S187)、所定のファイル形式でHDD3のスキャンデータ記憶領域3Rに記憶する(S188)。最後に、ページ番号テーブル3Tに今回検出されたページ番号とそのページ番号が読み取り済みである旨の情報と読み取りページ数(1)とを記憶する(S189)。   On the other hand, when the page number is detected (S184: No), a flag indicating that the page of the page number included in the page number table 3T is read is set (S185). Next, referring to the page number table 3T, it is checked whether or not data relating to the page number detected this time is stored. If not stored (no page numbers overlap) (S186: No), the default file name is stored. Is added to the detected page number (for example, 20051202_10) as a file name (S187), and stored in the scan data storage area 3R of the HDD 3 in a predetermined file format (S188). Finally, the page number detected this time, information indicating that the page number has been read, and the number of read pages (1) are stored in the page number table 3T (S189).

一方、ページ番号が重なっている場合(S186:Yes)、図31のステップS178のようなエラー処理を行う(S190)。   On the other hand, when the page numbers are overlapped (S186: Yes), an error process such as step S178 in FIG. 31 is performed (S190).

以上、本発明の実施の形態を説明したが、これらはあくまで例示にすぎず、本発明はこれらに限定されるものではなく、特許請求の範囲の趣旨を逸脱しない限りにおいて、当業者の知識に基づく種々の変更が可能である。   Although the embodiments of the present invention have been described above, these are merely examples, and the present invention is not limited to these embodiments, and the knowledge of those skilled in the art can be used without departing from the spirit of the claims. Various modifications based on this are possible.

例えば、PC1で行われていた上記の画像読取処理,スキャン処理およびこれら処理に含まれる各処理を複合機10で実行してもよい。この場合、操作部21のカーソルキー21b等を用いてスキャンモード設定,ページ番号検出領域の補正,スキャン実行指示等の操作が行われ、表示部22にスキャンモード設定ダイアログやそれに付随するメッセージが表示される。また、画像読取処理,スキャン処理等は画像処理プログラム13eに含まれ、CPU11により実行される。また、ページ番号検出領域リスト3L,文字認識データ記憶領域3D,スキャンデータ記憶領域3R,およびページ番号テーブル3Tはメモリ16に領域が確保される。さらに、スキャナドライバ用ワークメモリ2Pに領域が確保されるものについては、ワークメモリ12aに領域が確保される。また、ページ番号の検出は画像処理部26において行われる。   For example, the above-described image reading process, scan process, and processes included in these processes performed by the PC 1 may be executed by the multifunction machine 10. In this case, operations such as scan mode setting, page number detection area correction, and scan execution instruction are performed using the cursor key 21b of the operation unit 21, and the scan mode setting dialog and accompanying messages are displayed on the display unit 22. Is done. Further, image reading processing, scanning processing, and the like are included in the image processing program 13e and executed by the CPU 11. The page number detection area list 3L, the character recognition data storage area 3D, the scan data storage area 3R, and the page number table 3T are secured in the memory 16. Further, for the area where the area is secured in the scanner driver work memory 2P, the area is secured in the work memory 12a. The page number is detected by the image processing unit 26.

画像読取装置およびPCのブロック図。1 is a block diagram of an image reading apparatus and a PC. 複合機のブロック図。1 is a block diagram of a multifunction machine. 複合機の操作パネルを示す図。FIG. 3 is a diagram illustrating an operation panel of a multifunction machine. 画像読取処理1を説明するフロー図。FIG. 6 is a flowchart for explaining image reading processing 1; スキャンモード設定ダイアログを説明する図。The figure explaining a scan mode setting dialog. 読み取られたデータの記憶内容を示す図。The figure which shows the memory content of the read data. ページ番号検出領域表示処理を説明するフロー図。The flowchart explaining a page number detection area display process. 「ページタイプ」のプルダウンメニューを示す図。The figure which shows the pull-down menu of "page type". 「ページ番号検出領域」のプルダウンメニューを示す図。The figure which shows the pull-down menu of "page number detection area". ページ番号検出領域演算の例を示す図。The figure which shows the example of a page number detection area | region calculation. ページ番号検出領域の補正の例を示す図。The figure which shows the example of correction | amendment of a page number detection area | region. ページ番号検出領域の補正の別の例を示す図。The figure which shows another example of correction | amendment of a page number detection area. 画像読取処理2を説明するフロー図。FIG. 6 is a flowchart for explaining image reading processing 2; スキャンモード設定ダイアログを説明する図。The figure explaining a scan mode setting dialog. ページ番号検出領域表示処理を説明するフロー図。The flowchart explaining a page number detection area display process. ページタイプに対応してページ番号検出領域が変化する例を示す図。The figure which shows the example from which a page number detection area changes corresponding to a page type. ページ番号検出領域演算処理を説明するフロー図。The flowchart explaining a page number detection area | region calculation process. ページ番号検出領域補正の一例を示す図。The figure which shows an example of page number detection area correction | amendment. 画像読取処理3を説明するフロー図。FIG. 6 is a flowchart for explaining image reading processing 3; ページタイプおよびページ番号検出領域の検索処理を説明するフロー図。The flowchart explaining the search processing of a page type and a page number detection area. ページ番号検索領域の一例を示す図。The figure which shows an example of a page number search area | region. スキャン処理1を説明するフロー図。FIG. 6 is a flowchart for explaining scan processing 1; ページのソート処理を説明するフロー図。The flowchart explaining the sort processing of a page. ページ番号テーブルの一例を示す図。The figure which shows an example of a page number table. ページ番号テーブル確認処理を説明するフロー図。The flowchart explaining a page number table confirmation process. 図25で用いるページ番号テーブルの一例を示す図。The figure which shows an example of the page number table used in FIG. ページのソート処理の別の例を説明するフロー図。The flowchart explaining another example of the sort processing of a page. 図27で用いるページ番号テーブルの一例を示す図。The figure which shows an example of the page number table used in FIG. 図27で用いるページ番号テーブルの別の例を示す図。The figure which shows another example of the page number table used in FIG. スキャン処理2を説明するフロー図。FIG. 6 is a flowchart for explaining scan processing 2; ファイル名設定処理を説明するフロー図。The flowchart explaining a file name setting process. ファイル名設定処理の別の例を説明するフロー図。The flowchart explaining another example of a file name setting process. ページ番号検出領域の記憶例の一例を示す図。The figure which shows an example of the example of a memory | storage of a page number detection area | region.

符号の説明Explanation of symbols

1 パーソナルコンピュータ(PC)
2 制御回路(認識対象領域補正手段)
3 HDD(認識対象領域記憶手段)
3P スキャナドライバプログラム
5 表示部(表示手段,リスト表示手段)
6 操作部(認識対象領域設定手段,領域指定手段,確認手段,指示手段,実行手段)
7 画像処理部(文字認識手段,検出手段)
10 複合機
21 操作部
22 表示部
24 スキャナ部(読取手段)
26 画像処理部
100 スキャナシステム
1 Personal computer (PC)
2 Control circuit (recognition target area correction means)
3 HDD (recognition target area storage means)
3P scanner driver program 5 Display section (display means, list display means)
6 Operation unit (recognition target area setting means, area specifying means, confirmation means, instruction means, execution means)
7 Image processing unit (character recognition means, detection means)
10 MFP 21 Operation Unit 22 Display Unit 24 Scanner Unit (Reading Unit)
26 Image Processing Unit 100 Scanner System

Claims (25)

原稿を画像データとして読み取り、
前記読み取られた画像データを表示し、
前記表示された画像データに対して文字認識を行う認識対象領域の設定を行い、
前記設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、
前記新たな認識対象領域において前記文字認識を行うことを特徴とする画像読取方法。
Scan the document as image data,
Displaying the read image data;
Set a recognition target area for performing character recognition on the displayed image data,
Correction is performed in accordance with the set recognition target area to set a new recognition target area,
An image reading method, wherein the character recognition is performed in the new recognition target area.
前記表示された画像データに対して前記文字認識を行う領域を指定し、
前記指定された領域を前記認識対象領域とする請求項1に記載の画像読取方法。
Specify the area for performing the character recognition on the displayed image data,
The image reading method according to claim 1, wherein the designated area is the recognition target area.
前記認識対象領域を記憶し、
前記記憶された認識対象領域をリスト表示し、
前記リスト表示された認識対象領域から所望の認識対象領域を選択する請求項1または2に記載の画像読取方法。
Storing the recognition target area;
Displaying the stored recognition target area as a list;
The image reading method according to claim 1, wherein a desired recognition target area is selected from the recognition target areas displayed in the list.
前記画像データから前記文字認識の対象となるデータを検出し、
前記データが検出された領域を認識対象領域として設定する請求項1ないし3のいずれか1項に記載の画像読取方法。
Detecting the character recognition target data from the image data;
The image reading method according to claim 1, wherein an area where the data is detected is set as a recognition target area.
前記設定された認識対象領域を記憶する請求項4に記載の画像読取方法。   The image reading method according to claim 4, wherein the set recognition target area is stored. 前記画像データの所定の範囲から前記文字認識の対象となるデータを検出する請求項4または5に記載の画像読取方法。   The image reading method according to claim 4, wherein data to be subjected to character recognition is detected from a predetermined range of the image data. 前記設定された認識対象領域の大きさを変更することで前記新たな認識対象領域を設定する請求項1ないし6のいずれか1項に記載の画像読取方法。   The image reading method according to claim 1, wherein the new recognition target area is set by changing a size of the set recognition target area. 前記設定された認識対象領域に加え、別の認識対象領域を設定することで前記新たな認識対象領域を設定する請求項1ないし7のいずれか1項に記載の画像読取方法。   The image reading method according to any one of claims 1 to 7, wherein the new recognition target area is set by setting another recognition target area in addition to the set recognition target area. 前記補正された新たな認識対象領域を表示する請求項1ないし8のいずれか1項に記載の画像読取方法。   The image reading method according to claim 1, wherein the corrected new recognition target area is displayed. 前記補正された新たな認識対象領域を確認する請求項1ないし9のいずれか1項に記載の画像読取方法。   The image reading method according to claim 1, wherein the corrected new recognition target area is confirmed. 前記原稿の読み取りおよび前記補正された新たな認識対象領域を用いた文字認識の実行を指示する請求項1ないし10のいずれか1項に記載の画像読取方法。   The image reading method according to claim 1, wherein the reading of the original and execution of character recognition using the corrected new recognition target area are instructed. 前記実行の指示に基づいて前記原稿の読み取りおよび前記補正された新たな認識対象領域を用いた文字認識を実行する請求項11に記載の画像読取方法。   12. The image reading method according to claim 11, wherein reading of the original and character recognition using the corrected new recognition target area are executed based on the execution instruction. 請求項1ないし12のいずれか1項に記載の画像読取方法をコンピュータで実行可能なように記憶媒体に記憶されたプログラム。   The program memorize | stored in the storage medium so that the image reading method of any one of Claim 1 thru | or 12 was executable with a computer. 原稿を画像データとして読み取る読取手段と、
前記読み取られた画像データを表示する表示手段と、
前記表示された画像データに対して文字認識を行う認識対象領域の設定を行う認識対象領域設定手段と、
前記設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定する認識対象領域補正手段と、
前記新たな認識対象領域において前記文字認識を行う文字認識手段と、
を備えることを特徴とする画像読取装置。
Reading means for reading a document as image data;
Display means for displaying the read image data;
Recognition target area setting means for setting a recognition target area for performing character recognition on the displayed image data;
Recognition target area correction means for performing correction corresponding to the set recognition target area and setting a new recognition target area;
Character recognition means for performing the character recognition in the new recognition target area;
An image reading apparatus comprising:
前記認識対象領域設定手段は、前記表示された画像データに対して前記文字認識を行う領域を指定する領域指定手段を含み、
前記指定された領域を前記認識対象領域とする請求項14に記載の画像読取装置。
The recognition target area setting means includes area designation means for designating an area for performing the character recognition on the displayed image data,
The image reading apparatus according to claim 14, wherein the designated area is the recognition target area.
前記認識対象領域設定手段は、前記認識対象領域を記憶する認識対象領域記憶手段と、
前記記憶された認識対象領域をリスト表示するリスト表示手段と、
前記リスト表示された認識対象領域から所望の認識対象領域を選択する選択手段とを含む請求項14または15に記載の画像読取装置。
The recognition target area setting means includes a recognition target area storage means for storing the recognition target area;
List display means for displaying a list of the stored recognition target areas;
16. The image reading apparatus according to claim 14, further comprising a selection unit that selects a desired recognition target area from the recognition target areas displayed in the list.
前記認識対象領域設定手段は、前記画像データから前記文字認識の対象となるデータを検出する検出手段を含み、
前記データが検出された領域を認識対象領域として設定する請求項14ないし16のいずれか1項に記載の画像読取装置。
The recognition target area setting means includes detection means for detecting data to be character recognition target from the image data,
The image reading apparatus according to claim 14, wherein an area where the data is detected is set as a recognition target area.
前記認識対象領域記憶手段は前記設定された認識対象領域を記憶する請求項17に記載の画像読取装置。   The image reading apparatus according to claim 17, wherein the recognition target area storage unit stores the set recognition target area. 前記検出手段は前記画像データの所定の範囲から前記文字認識の対象となるデータを検出する請求項17または18に記載の画像読取装置。   The image reading apparatus according to claim 17 or 18, wherein the detection unit detects data to be subjected to the character recognition from a predetermined range of the image data. 前記認識対象領域補正手段は、前記認識対象領域設定手段により設定された認識対象領域の大きさを変更する請求項14ないし19のいずれか1項に記載の画像読取装置。   The image reading apparatus according to claim 14, wherein the recognition target area correction unit changes a size of the recognition target area set by the recognition target area setting unit. 前記認識対象領域補正手段は、前記認識対象領域設定手段により設定された認識対象領域に加え、別の認識対象領域を設定する請求項14ないし20のいずれか1項に記載の画像読取装置。   21. The image reading apparatus according to claim 14, wherein the recognition target area correction unit sets another recognition target area in addition to the recognition target area set by the recognition target area setting unit. 前記表示手段は、前記補正された新たな認識対象領域を表示する請求項14ないし21のいずれか1項に記載の画像読取装置。   The image reading apparatus according to claim 14, wherein the display unit displays the corrected new recognition target area. 前記補正された新たな認識対象領域を確認する確認手段を備える請求項14ないし22のいずれか1項に記載の画像読取装置。   23. The image reading apparatus according to claim 14, further comprising a confirmation unit configured to confirm the corrected new recognition target area. 前記原稿の読み取りおよび前記補正された新たな認識対象領域を用いた文字認識の実行を指示する指示手段を備える請求項14ないし23のいずれか1項に記載の画像読取装置。   24. The image reading apparatus according to claim 14, further comprising an instruction unit that instructs reading of the original and execution of character recognition using the corrected new recognition target area. 前記実行の指示に基づいて前記原稿の読み取りおよび前記補正された新たな認識対象領域を用いた文字認識を実行する実行手段を備える請求項24に記載の画像読取装置。
25. The image reading apparatus according to claim 24, further comprising execution means for executing reading of the original and character recognition using the corrected new recognition target area based on the execution instruction.
JP2006044431A 2006-02-21 2006-02-21 Image reading method, program, and image reader Pending JP2007226350A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2006044431A JP2007226350A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reader
US11/708,464 US20070195378A1 (en) 2006-02-21 2007-02-21 Image-reading device
US12/873,177 US8849033B2 (en) 2006-02-21 2010-08-31 Image-reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006044431A JP2007226350A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reader

Publications (1)

Publication Number Publication Date
JP2007226350A true JP2007226350A (en) 2007-09-06

Family

ID=38548143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006044431A Pending JP2007226350A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reader

Country Status (1)

Country Link
JP (1) JP2007226350A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012216094A (en) * 2011-03-31 2012-11-08 Fujifilm Corp Proofreading apparatus, proofreading method and program
JP2014017714A (en) * 2012-07-10 2014-01-30 Dainippon Printing Co Ltd Image display device, image display processing program, and image display method
US8953225B2 (en) 2011-07-29 2015-02-10 Brother Kogyo Kabushiki Kaisha Image reading device
JP2019047490A (en) * 2017-09-06 2019-03-22 ゼロックス コーポレイションXerox Corporation Methods and systems for automatically sorting documents using multi-function device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200613A (en) * 1993-12-29 1995-08-04 Toshiba Corp Image retrieval device
JPH08241401A (en) * 1995-03-03 1996-09-17 Ricoh Co Ltd Electronic filing device
JPH09147050A (en) * 1995-11-27 1997-06-06 Toshiba Corp Method and device for sheet processing and information processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200613A (en) * 1993-12-29 1995-08-04 Toshiba Corp Image retrieval device
JPH08241401A (en) * 1995-03-03 1996-09-17 Ricoh Co Ltd Electronic filing device
JPH09147050A (en) * 1995-11-27 1997-06-06 Toshiba Corp Method and device for sheet processing and information processor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012216094A (en) * 2011-03-31 2012-11-08 Fujifilm Corp Proofreading apparatus, proofreading method and program
US8953225B2 (en) 2011-07-29 2015-02-10 Brother Kogyo Kabushiki Kaisha Image reading device
JP2014017714A (en) * 2012-07-10 2014-01-30 Dainippon Printing Co Ltd Image display device, image display processing program, and image display method
JP2019047490A (en) * 2017-09-06 2019-03-22 ゼロックス コーポレイションXerox Corporation Methods and systems for automatically sorting documents using multi-function device

Similar Documents

Publication Publication Date Title
JP6891073B2 (en) A device for setting a file name, etc. on a scanned image, its control method, and a program.
US8849033B2 (en) Image-reading device
JP6953230B2 (en) A device for setting a file name, etc. on a scanned image, its control method, and a program.
JP7034730B2 (en) Devices, methods, and programs for setting information related to scanned images
JP4574235B2 (en) Image processing apparatus, control method therefor, and program
JP4671885B2 (en) Image processing apparatus, program, and image processing method
JP2007174270A (en) Image processing apparatus, image processing method, storage medium, and program
JP4945372B2 (en) Multi-function input / output device and control method thereof, multi-function input / output device control program, and recording medium
US8427507B2 (en) Image projection system able to emphasize or cancel objects drawn on a surface
JP2007188054A (en) Image forming apparatus, program, and item setting processing method
JP5834866B2 (en) Image processing apparatus, image generation method, and computer program
US11144189B2 (en) Determination and relocation of movement targets based on a drag-and-drop operation of a thumbnail across document areas
JP6579332B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
JP4807615B2 (en) Copier, copier system, and computer program
CN110879689B (en) Information processing apparatus, recording medium, and information processing method
CN101827189A (en) Image processing apparatus, system and method
JP2007226350A (en) Image reading method, program, and image reader
JP2007226353A (en) Image reading method, program, and image reading device
JP6579331B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
JP2008113410A (en) Image processing apparatus and control method thereof, and reading method in image reading system
US10789022B2 (en) Image processing apparatus in which a process repeatedly arranges a target image on a sheet
JP4826241B2 (en) Copier, copier system, and computer program
CN100588218C (en) Image forming apparatus and electronic mail delivery server,
JP4431318B2 (en) Document management program
JP5168084B2 (en) Image processing apparatus, program, and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100906

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101125

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110315