JP2007226353A - Image reading method, program, and image reading device - Google Patents

Image reading method, program, and image reading device Download PDF

Info

Publication number
JP2007226353A
JP2007226353A JP2006044440A JP2006044440A JP2007226353A JP 2007226353 A JP2007226353 A JP 2007226353A JP 2006044440 A JP2006044440 A JP 2006044440A JP 2006044440 A JP2006044440 A JP 2006044440A JP 2007226353 A JP2007226353 A JP 2007226353A
Authority
JP
Japan
Prior art keywords
page number
page
image data
reading
image
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
JP2006044440A
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 JP2006044440A priority Critical patent/JP2007226353A/en
Priority to US11/708,464 priority patent/US20070195378A1/en
Publication of JP2007226353A publication Critical patent/JP2007226353A/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 reading device, which detect such a page reading error as multiple transmission while reducing a load for setting a region whose page recognition is performed by a user. <P>SOLUTION: This image reading method is characterized by reading an original as image data, and to displaying the read image data, setting a recognition object region for recognizing a page number for the displayed image data, also setting a new recognition object region by correcting the set recognition object region, recognizing a page number in the new recognition object region, and deciding a page reading error from the recognition result of the page number. This image reading method is provided with a program stored in a recording medium so that the image reading method is executed by the computer, and an image reading device for reading an image by 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. In addition, there is a problem that it is not possible to deal with a case where the reading target is not in page order. Furthermore, it cannot cope with a case where a plurality of documents having the same page number are read.

特許文献2の例では、文字認識を行いたい領域をユーザが個別に設定しなければならないという問題点がある。また、認識を行う領域と認識を行うかどうかの条件とを自動設定することもできるが、認識を行うかどうかの条件は、原稿毎あるいは文字や画像データのような領域に含まれる内容毎に、予めデフォルト設定として記憶させておくかユーザが条件を設定する必要がある。また、認識を行うかどうかの条件の詳細については言及されていない。さらに、重送を検出できる構成とはなっていない。   In the example of Patent Document 2, there is a problem that a 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. Furthermore, it is not the structure which can detect double feeding.

上記問題を背景として、本発明は、ユーザがページ認識を行う領域を設定するための負荷を低減しつつ重送等のページ読み取りエラーを検出することが可能な画像読取方法,プログラム,および画像読取装置を提供することを目的とする。   With the above problem as a background, the present invention provides an image reading method, a program, and an image reading method capable of detecting a page reading error such as double feeding while reducing a load for a user to set an area for page recognition. An object is to provide an apparatus.

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

上記課題を解決するための画像読取方法は、原稿を画像データとして読み取り、読み取られた画像データを表示し、表示された画像データに対してページ番号の認識を行う認識対象領域の設定を行い、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、新たな認識対象領域においてページ番号の認識を行い、ページ番号の認識結果からページ読み取りエラーを判定することを特徴とする。   An image reading method for solving the above-described problem is a method of reading a document as image data, displaying the read image data, and setting a recognition target area for recognizing a page number for the displayed image data. Correction is performed in accordance with the set recognition target area, a new recognition target area is set, a page number is recognized in the new recognition target area, and a page reading error is determined from the page number recognition result. And

上記構成によって、認識対象領域が原稿に応じて最適な位置および大きさに補正されるため、ユーザの認識対象領域を設定するための操作負荷が低減される。また、原稿全体に対してページ番号の認識を行う必要がないので、ページ番号の認識を含めた画像読み取りに要する時間を短縮することが可能となる。さらに、「ページ飛び」のような重送以外の、例えば「ページ番号重複」のようなエラーにも対応可能となる。   With the above-described configuration, the recognition target area is corrected to an optimal position and size according to the original, so that the operation load for setting the user's recognition target area is reduced. Further, since it is not necessary to recognize the page number for the entire document, it is possible to shorten the time required for image reading including the recognition of the page number. Further, it is possible to deal with errors such as “page number duplication” other than double feed such as “page skip”.

また、本発明の画像読取方法は、認識されたページ番号を記憶するページ番号テーブルを備え、認識されたページ番号がページ番号テーブルに既に記憶されている場合にページ読み取りエラーと判定するように構成することもできる。   In addition, the image reading method of the present invention includes a page number table for storing the recognized page number, and is configured to determine a page reading error when the recognized page number is already stored in the page number table. You can also

上記構成によって、認識されたページ番号のみでページ読み取りエラーを判定することができ、ページ番号の認識を含めた画像読み取りに要する時間を短縮するとともにページ読み取りエラーを判定するために要する時間を短縮することが可能となる。   With the above configuration, a page reading error can be determined only by the recognized page number, and the time required for image reading including the recognition of the page number is reduced and the time required for determining the page reading error is reduced. It becomes possible.

また、本発明の画像読取方法は、ページ読み取りエラーと判定された場合に所定の対応処置を行うように構成することもできる。   The image reading method of the present invention can also be configured to perform a predetermined countermeasure when it is determined that a page reading error has occurred.

上記構成によって、単にユーザにページ読み取りエラーを検出・報知するだけではなく、適切な対応処置を行うことで、原稿の再読み取り等のユーザの手間を省くことが可能となり、読み取られた画像データを有効活用することが可能となる。   With the above configuration, it is possible not only to detect and notify a page reading error to the user, but also to take the user's troubles such as re-reading the document by performing an appropriate countermeasure. It can be used effectively.

また、本発明の画像読取方法は、ページ読み取りエラーと判定された場合の対応として、読み取られた画像データを保存しないように構成することもできる。   In addition, the image reading method of the present invention can be configured not to store the read image data as a response when it is determined that a page reading error has occurred.

上記構成によって、先に読み取られた原稿(画像データ)が正しいものとして保存される。このため、同じページの原稿を2重に保存することが防止される。   With the above configuration, the document (image data) read first is stored as correct. For this reason, it is possible to prevent the document of the same page from being stored twice.

また、本発明の画像読取方法は、ページ読み取りエラーと判定された場合の対応として、既に保存されている当該ページ番号の画像データを置き換えるように構成することもできる。   In addition, the image reading method of the present invention can be configured to replace the already stored image data of the page number as a response when it is determined as a page reading error.

上記構成によって、後から読み取られた原稿(画像データ)が正しいものとして保存される。このため、同じページの原稿を2重に保存することが防止されると共に、先の読み取られた原稿の状態が悪い場合に良い状態の原稿に差し替えることが可能となる。   With the above configuration, a document (image data) read later is stored as correct. For this reason, it is possible to prevent the document of the same page from being stored twice, and to replace the document with a good state when the state of the previously read document is bad.

また、本発明の画像読取方法は、ページ読み取りエラーと判定された場合の対応として、当該ページ番号を含む画像データが複数存在することを示す情報をページ番号テーブルに付加するとともに当該複数の画像データを保存するように構成することもできる。   In addition, the image reading method of the present invention adds information indicating that there are a plurality of image data including the page number to the page number table as a response to the case where it is determined as a page reading error, and the plurality of image data Can also be configured to save.

上記構成によって、ページ番号が認識された全ての画像データが保存されるので、ユーザが原稿を再読み取りさせる必要がなくなる。つまり、原稿を読み取った後に、市販の画像編集ソフト等を用いて保存された画像データの閲覧,データの並べ替えあるいはページ番号の付け替えを行うという一方向の流れで作業を行うことが可能であるため、後戻り工程が発生せずユーザの作業効率が向上する。   With the above configuration, all the image data whose page numbers are recognized are saved, so that it is not necessary for the user to re-read the document. In other words, after reading a document, it is possible to work in a one-way flow, such as browsing image data saved using commercially available image editing software, rearranging data, or changing page numbers. For this reason, no backtracking process occurs and the user's work efficiency is improved.

また、本発明の画像読取方法は、ページ読み取りエラーと判定された場合の対応として、当該ページ番号の画像データが複数存在することを示す情報を当該画像データ名に付加するとともに当該複数の画像データを保存するように構成することもできる。   In addition, the image reading method of the present invention adds information indicating that there are a plurality of image data of the page number to the image data name and handles the plurality of image data as a response when it is determined that a page reading error has occurred. Can also be configured to save.

上記構成によって、例えば画像データ毎(ページ番号毎)に画像データ名を付与する場合、名前の重複を避けることができる。また、ページ番号が認識された全ての画像データが保存されるので、ユーザが原稿を再読み取りさせる必要がなく、後戻り工程が発生せずユーザの作業効率が向上する。   With the above configuration, for example, when an image data name is assigned for each image data (for each page number), duplication of names can be avoided. Further, since all the image data whose page numbers are recognized are stored, the user does not need to re-read the original, and no backtracking process occurs, improving the user's work efficiency.

また、本発明の画像読取方法におけるページ番号テーブルは、画像データからページ番号を認識したかどうかの情報を含み、ページ番号を認識したかどうかの情報とページ番号とによって画像データのソートを行い、そのソート結果に基づいて前記画像データを保存するように構成することもできる。   Further, the page number table in the image reading method of the present invention includes information on whether or not the page number is recognized from the image data, and sorts the image data based on the information on whether or not the page number is recognized and the page number, The image data may be stored based on the sorting result.

例えば章区切りページのように、ページ番号が記載されていないページがある。このようなページが読み取られた場合、従来はページ読み取りエラーと判定されていたが、上記構成ではページが読み取られた時点ではページ番号が認識されないもののエラーと判定されず、その画像データは所定のソート規則によりページ番号が認識された画像データとともに保存される。また、読み取りの対象がページ順になっていない場合についても対応可能となる。よって、上記構成においても原稿の再読み取り等の後戻り工程が発生せずユーザの作業効率が向上する。   For example, there is a page where the page number is not described, such as a chapter break page. When such a page is read, it was conventionally determined as a page reading error. However, in the above configuration, the page number is not recognized when the page is read, but it is not determined as an error. It is stored together with the image data whose page number is recognized by the sorting rule. Further, it is possible to cope with the case where the reading target is not in page order. Therefore, even in the above-described configuration, a back-end process such as rereading of a document does not occur, and the user's work efficiency is improved.

また、本発明の画像読取方法におけるページ番号テーブルは当該ページ番号の画像データ数を示す情報を含み、その画像データの総数とページ番号テーブルに含まれるページ番号とからページ読み取りエラーを判定するように構成することもできる。   The page number table in the image reading method of the present invention includes information indicating the number of image data of the page number, and a page reading error is determined from the total number of the image data and the page number included in the page number table. It can also be configured.

上記構成によって、ページ番号が記載されていないページが読み取られた場合でも、「ページ飛び」のようなページ読み取りエラーを判定することが可能となる。この場合、エラーと判定されてもページは全て読み取られているので、ユーザによって抜けているページ番号を付与する等の適切な対応処置をとることができる。   With the above configuration, even when a page without a page number is read, a page reading error such as “page skip” can be determined. In this case, even if it is determined that there is an error, all pages have been read, so that it is possible to take appropriate countermeasures such as assigning missing page numbers by the user.

また、上記課題を解決するためのプログラムは、上述したいずれかの画像読取方法をコンピュータで実行可能なように記憶媒体に記憶されたプログラムとして構成される。   Moreover, the program for solving the said subject is comprised as a program memorize | stored in the storage medium so that one of the image reading methods mentioned above can be performed with 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.

また、上記課題を解決するための画像読取装置は、原稿を画像データとして読み取る読取手段と、読み取られた画像データを表示する表示手段と、表示された画像データに対してページ番号の認識を行う認識対象領域の設定を行う認識対象領域設定手段と、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定する認識対象領域補正手段と、新たな認識対象領域においてページ番号の認識を行うページ認識手段と、ページ番号の認識結果からページ読み取りエラーを判定する読み取りエラー判定手段と、を備えることを特徴とする。   In addition, an image reading apparatus for solving the above-described problems performs a reading unit that reads a document as image data, a display unit that displays the read image data, and recognizes a page number for the displayed image data. A recognition target area setting means for setting a recognition target area, a recognition target area correction means for performing correction corresponding to the set recognition target area and setting a new recognition target area, and a page number in the new recognition target area And a page error recognition unit for determining a page reading error from the page number recognition result.

上記構成によって、認識対象領域が原稿に応じて最適な位置および大きさに補正されるため、ユーザの認識対象領域を設定するための操作負荷が低減される。また、原稿全体に対してページ番号の認識を行う必要がないので、ページ番号の認識を含めた画像読み取りに要する時間を短縮することが可能となる。さらに、「ページ飛び」のような重送以外の、例えば「ページ番号重複」のようなエラーにも対応可能となる。   With the above-described configuration, the recognition target area is corrected to an optimal position and size according to the original, so that the operation load for setting the user's recognition target area is reduced. Further, since it is not necessary to recognize the page number for the entire document, it is possible to shorten the time required for image reading including the recognition of the page number. Further, it is possible to deal with errors such as “page number duplication” other than double feed such as “page skip”.

また、本発明の画像読取装置は認識されたページ番号を記憶するページ番号テーブルを備え、読み取りエラー判定手段は認識されたページ番号がページ番号テーブルに既に記憶されている場合にページ読み取りエラーと判定するように構成することもできる。   The image reading apparatus according to the present invention further includes a page number table for storing the recognized page number, and the reading error determining means determines that a page reading error has occurred when the recognized page number is already stored in the page number table. It can also be configured to.

上記構成によって、認識されたページ番号のみでページ読み取りエラーを判定することができ、ページ番号の認識を含めた画像読み取りに要する時間を短縮するとともにページ読み取りエラーを判定するために要する時間を短縮することが可能となる。   With the above configuration, a page reading error can be determined only by the recognized page number, and the time required for image reading including the recognition of the page number is reduced and the time required for determining the page reading error is reduced. It becomes possible.

また、本発明の画像読取装置は、ページ読み取りエラーと判定された場合に所定の対応処置を行う読み取りエラー対応手段を備えるように構成することもできる。   Further, the image reading apparatus of the present invention can also be configured to include a read error handling unit that performs a predetermined countermeasure when it is determined that a page reading error has occurred.

上記構成によって、単にユーザにページ読み取りエラーを検出・報知するだけではなく、適切な対応処置を行うことで、原稿の再読み取り等のユーザの手間を省くことが可能となり、読み取られた画像データを有効活用することが可能となる。   With the above configuration, it is possible not only to detect and notify a page reading error to the user, but also to take the user's troubles such as re-reading the document by performing an appropriate countermeasure. It can be used effectively.

また、本発明の画像読取装置は、画像データを保存する保存手段を備え、読み取りエラー対応手段は、読み取られた画像データを保存手段に保存しないように構成することもできる。   The image reading apparatus according to the present invention may further include a storing unit that stores image data, and the reading error handling unit may be configured not to store the read image data in the storing unit.

上記構成によって、先に読み取られた原稿(画像データ)が正しいものとして保存される。このため、同じページの原稿を2重に保存することが防止される。   With the above configuration, the document (image data) read first is stored as correct. For this reason, it is possible to prevent the document of the same page from being stored twice.

また、本発明の画像読取装置は、画像データを保存する保存手段を備え、読み取りエラー対応手段は、保存手段に既に保存されている当該ページ番号の画像データを置き換えるように構成することもできる。   The image reading apparatus of the present invention can also be configured to include a storage unit that stores image data, and the read error handling unit can replace the image data of the page number already stored in the storage unit.

上記構成によって、後から読み取られた原稿(画像データ)が正しいものとして保存される。このため、同じページの原稿を2重に保存することが防止されると共に、先の読み取られた原稿の状態が悪い場合に良い状態の原稿に差し替えることが可能となる。   With the above configuration, a document (image data) read later is stored as correct. For this reason, it is possible to prevent the document of the same page from being stored twice, and to replace the document with a good state when the state of the previously read document is bad.

また、本発明の画像読取装置は、画像データを保存する保存手段を備え、読み取りエラー対応手段は、当該ページ番号を含む画像データが複数存在することを示す情報をページ番号テーブルに付加するともに当該複数の画像データを保存手段に保存するように構成することもできる。   The image reading apparatus of the present invention further includes a storage unit that stores image data, and the reading error handling unit adds information indicating that there are a plurality of image data including the page number to the page number table and A plurality of image data may be stored in the storage unit.

上記構成によって、ページ番号が認識された全ての画像データが保存されるので、ユーザが原稿を再読み取りさせる必要がなくなる。つまり、原稿を読み取った後に、市販の画像編集ソフト等を用いて保存された画像データの閲覧,データの並べ替えあるいはページ番号の付け替えを行うという一方向の流れで作業を行うことが可能であるため、後戻り工程が発生せずユーザの作業効率が向上する。   With the above configuration, all the image data whose page numbers are recognized are saved, so that it is not necessary for the user to re-read the document. In other words, after reading a document, it is possible to work in a one-way flow, such as browsing image data saved using commercially available image editing software, rearranging data, or changing page numbers. For this reason, no backtracking process occurs and the user's work efficiency is improved.

また、本発明の画像読取装置は、画像データを保存する保存手段を備え、読み取りエラー対応手段は、当該ページ番号の画像データが複数存在することを示す情報を当該画像データ名に付加して当該画像データを保存手段に保存するように構成することもできる。   The image reading apparatus according to the present invention further includes a storing unit that stores image data, and the reading error handling unit adds information indicating that there are a plurality of image data of the page number to the image data name and The image data may be stored in a storage unit.

上記構成によって、例えば画像データ毎(ページ番号毎)に画像データ名を付与する場合、名前の重複を避けることができる。また、ページ番号が認識された全ての画像データが保存されるので、ユーザが原稿を再読み取りさせる必要がなく、後戻り工程が発生せずユーザの作業効率が向上する。   With the above configuration, for example, when an image data name is assigned for each image data (for each page number), duplication of names can be avoided. Further, since all the image data whose page numbers are recognized are stored, the user does not need to re-read the original, and no backtracking process occurs, improving the user's work efficiency.

また、本発明の画像読取装置におけるページ番号テーブルは、画像データからページ番号を認識したかどうかの情報を含み、ページ番号を認識したかどうかの情報とページ番号とによって画像データのソートを行うソート手段と、ソート結果に基づいて画像データを保存する保存手段と、を備えるように構成することもできる。   Further, the page number table in the image reading apparatus of the present invention includes information on whether or not the page number is recognized from the image data, and sorts the image data based on the information on whether or not the page number is recognized and the page number. It is also possible to configure to include means and storage means for storing image data based on the sorting result.

例えば章区切りページのように、ページ番号が記載されていないページがある。このようなページが読み取られた場合、従来はページ読み取りエラーと判定されていたが、上記構成ではページが読み取られた時点ではページ番号が認識されないもののエラーと判定されず、その画像データは所定のソート規則によりページ番号が認識された画像データとともに保存される。また、読み取りの対象がページ順になっていない場合についても対応可能となる。よって、上記構成においても原稿の再読み取り等の後戻り工程が発生せずユーザの作業効率が向上する。   For example, there is a page where the page number is not described, such as a chapter break page. When such a page is read, it was conventionally determined as a page reading error. However, in the above configuration, the page number is not recognized when the page is read, but it is not determined as an error. It is stored together with the image data whose page number is recognized by the sorting rule. Further, it is possible to cope with the case where the reading target is not in page order. Therefore, even in the above-described configuration, a back-end process such as rereading of a document does not occur, and the user's work efficiency is improved.

また、本発明の画像読取装置におけるページ番号テーブルは当該ページ番号の画像データ数を示す情報を含み、読み取りエラー判定手段は、その画像データの総数とページ番号テーブルに含まれるページ番号とからページ読み取りエラーを判定するように構成することもできる。   The page number table in the image reading apparatus of the present invention includes information indicating the number of image data of the page number, and the reading error determination means reads the page from the total number of the image data and the page number included in the page number table. It can also be configured to determine an error.

上記構成によって、ページ番号が記載されていないページが読み取られた場合でも、「ページ飛び」のようなページ読み取りエラーを判定することが可能となる。この場合、エラーと判定されてもページは全て読み取られているので、ユーザによって抜けているページ番号を付与する等の適切な対応処置をとることができる。   With the above configuration, even when a page without a page number is read, a page reading error such as “page skip” can be determined. In this case, even if it is determined that there is an error, all pages have been read, so that it is possible to take appropriate countermeasures such as assigning missing page numbers by the user.

ユーザがページ認識を行う領域を設定するための負荷を低減しつつ重送等のページ読み取りエラーを検出することが可能な画像読取方法,プログラム,および画像読取装置を提供する目的を、原稿を画像データとして読み取り、読み取られた画像データを表示し、表示された画像データに対してページ番号の認識を行う認識対象領域の設定を行い、設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、新たな認識対象領域においてページ番号の認識を行い、ページ番号の認識結果からページ読み取りエラーを判定する構成により実現した。   An object of the present invention is to provide an image reading method, a program, and an image reading apparatus capable of detecting a page reading error such as double feeding while reducing a load for a user to set an area for page recognition. Read as data, display the read image data, set the recognition target area to recognize the page number for the displayed image data, make corrections corresponding to the set recognition target area, and create a new The recognition target area is set, the page number is recognized in the new recognition target area, and the page reading error is determined from the page number recognition result.

以下、本発明の画像読取方法,画像読取装置の実施形態を、スキャナシステム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 the 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 the display means of the present invention. The operation unit 6 corresponds to a recognition target area setting 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, a reading error determining unit, a reading error handling unit, and a sorting 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 page recognition unit 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)
An image reading process for reading an image to determine a page reading error 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)
22, for example, corresponding to steps S <b> 12 and S <b> 13 in FIG. 4, a page reading error determination according to the present invention is performed based on the page number detected by detecting the page number, and a scan process including a page sorting process is performed. Details will be described. 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 reading error determination according to the present invention corresponding to, for example, steps S <b> 12 and S <b> 13 of FIG. 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 correcting means, reading error judging means, reading error handling means, sorting means)
3 HDD (storage means)
3P scanner driver program 5 Display section (display means)
6 Operation unit (recognition target area setting means)
7 Image processing unit (page recognition means)
10 MFP 21 Operation Unit 22 Display Unit 24 Scanner Unit (Reading Unit)
26 Image Processing Unit 100 Scanner System

Claims (19)

原稿を画像データとして読み取り、
前記読み取られた画像データを表示し、
前記表示された画像データに対してページ番号の認識を行う認識対象領域の設定を行い、
前記設定された認識対象領域に対応して補正を行い新たな認識対象領域を設定し、
前記新たな認識対象領域において前記ページ番号の認識を行い、
前記ページ番号の認識結果からページ読み取りエラーを判定することを特徴とする画像読取方法。
Scan the document as image data,
Displaying the read image data;
Set a recognition target area for recognizing page numbers for the displayed image data,
Correction is performed in accordance with the set recognition target area to set a new recognition target area,
Recognizing the page number in the new recognition target area;
An image reading method, wherein a page reading error is determined from a recognition result of the page number.
前記認識されたページ番号を記憶するページ番号テーブルを備え、
前記認識されたページ番号が前記ページ番号テーブルに既に記憶されている場合に前記ページ読み取りエラーと判定する請求項1に記載の画像読取方法。
A page number table for storing the recognized page number;
The image reading method according to claim 1, wherein the page reading error is determined when the recognized page number is already stored in the page number table.
前記ページ読み取りエラーと判定された場合に所定の対応処置を行う請求項1または2に記載の画像読取方法。   The image reading method according to claim 1, wherein a predetermined countermeasure is performed when the page reading error is determined. 前記ページ読み取りエラーと判定された場合の対応として、前記読み取られた画像データを保存しない請求項3に記載の画像読取方法。   The image reading method according to claim 3, wherein the read image data is not stored as a response to the case where the page reading error is determined. 前記ページ読み取りエラーと判定された場合の対応として、既に保存されている当該ページ番号の画像データを置き換える請求項3に記載の画像読取方法。   The image reading method according to claim 3, wherein the image data of the page number already stored is replaced as a response when the page reading error is determined. 前記ページ読み取りエラーと判定された場合の対応として、当該ページ番号を含む画像データが複数存在することを示す情報を前記ページ番号テーブルに付加するとともに当該複数の画像データを保存する請求項3に記載の画像読取方法。   The information indicating that there are a plurality of image data including the page number is added to the page number table and the plurality of image data are stored as a response when the page reading error is determined. Image reading method. 前記ページ読み取りエラーと判定された場合の対応として、当該ページ番号の画像データが複数存在することを示す情報を当該画像データ名に付加して当該画像データを保存する請求項3に記載の画像読取方法。   4. The image reading according to claim 3, wherein information indicating that there are a plurality of image data of the page number is added to the image data name and stored as the response when it is determined that the page reading error is detected. Method. 前記ページ番号テーブルは、前記画像データから前記ページ番号を認識したかどうかの情報を含み、前記ページ番号を認識したかどうかの情報と前記ページ番号とによって前記画像データのソートを行い、そのソート結果に基づいて前記画像データを保存する請求項2ないし7のいずれか1項に記載の画像読取方法。   The page number table includes information on whether the page number is recognized from the image data, sorts the image data by the information on whether the page number is recognized and the page number, and the sorting result The image reading method according to claim 2, wherein the image data is stored on the basis of the image data. 前記ページ番号テーブルは当該ページ番号の画像データ数を示す情報を含み、
その画像データの総数と前記ページ番号テーブルに含まれるページ番号とからページ読み取りエラーを判定する請求項2ないし8のいずれか1項に記載の画像読取方法。
The page number table includes information indicating the number of image data of the page number,
The image reading method according to claim 2, wherein a page reading error is determined from the total number of the image data and a page number included in the page number table.
請求項1ないし9のいずれか1項に記載の画像読取方法をコンピュータで実行可能なように記憶媒体に記憶されたプログラム。   The program memorize | stored in the storage medium so that the image reading method of any one of Claim 1 thru | or 9 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 recognizing page numbers for 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;
Page recognition means for recognizing the page number in the new recognition target area;
A reading error determination means for determining a page reading error from the recognition result of the page number;
An image reading apparatus comprising:
前記認識されたページ番号を記憶するページ番号テーブルを備え、
前記読み取りエラー判定手段は前記認識されたページ番号が前記ページ番号テーブルに既に記憶されている場合に前記ページ読み取りエラーと判定する請求項11に記載の画像読取装置。
A page number table for storing the recognized page number;
The image reading apparatus according to claim 11, wherein the reading error determination unit determines that the page reading error occurs when the recognized page number is already stored in the page number table.
前記ページ読み取りエラーと判定された場合に所定の対応処置を行う読み取りエラー対応手段を備える請求項11または12に記載の画像読取装置。   The image reading apparatus according to claim 11, further comprising a reading error handling unit that performs a predetermined handling procedure when the page reading error is determined. 前記画像データを保存する保存手段を備え、
前記読み取りエラー対応手段は、前記読み取られた画像データを前記保存手段に保存しない請求項13に記載の画像読取装置。
Comprising storage means for storing the image data;
The image reading apparatus according to claim 13, wherein the reading error handling unit does not store the read image data in the storage unit.
前記画像データを保存する保存手段を備え、
前記読み取りエラー対応手段は、前記保存手段に既に保存されている当該ページ番号の画像データを置き換える請求項13に記載の画像読取装置。
Comprising storage means for storing the image data;
The image reading apparatus according to claim 13, wherein the reading error handling unit replaces image data of the page number already stored in the storing unit.
前記画像データを保存する保存手段を備え、
前記読み取りエラー対応手段は、当該ページ番号を含む画像データが複数存在することを示す情報を前記ページ番号テーブルに付加するともに当該複数の画像データを前記保存手段に保存する請求項13に記載の画像読取装置。
Comprising storage means for storing the image data;
14. The image according to claim 13, wherein the read error handling unit adds information indicating that a plurality of image data including the page number exists to the page number table and stores the plurality of image data in the storage unit. Reader.
前記画像データを保存する保存手段を備え、
前記読み取りエラー対応手段は、当該ページ番号の画像データが複数存在することを示す情報を当該画像データ名に付加して当該画像データを前記保存手段に保存する請求項13に記載の画像読取装置。
Comprising storage means for storing the image data;
14. The image reading apparatus according to claim 13, wherein the reading error handling unit adds information indicating that a plurality of image data of the page number exists to the image data name and stores the image data in the storage unit.
前記ページ番号テーブルは、前記画像データから前記ページ番号を認識したかどうかの情報を含み、
前記ページ番号を認識したかどうかの情報と前記ページ番号とによって前記画像データのソートを行うソート手段と、
前記ソート結果に基づいて前記画像データを保存する保存手段と、
を備える請求項12ないし17のいずれか1項に記載の画像読取装置。
The page number table includes information on whether the page number is recognized from the image data,
Sorting means for sorting the image data by information on whether the page number is recognized and the page number;
Storage means for storing the image data based on the sorting result;
The image reading apparatus according to claim 12, further comprising:
前記ページ番号テーブルは当該ページ番号の画像データ数を示す情報を含み、
前記読み取りエラー判定手段は、その画像データの総数と前記ページ番号テーブルに含まれるページ番号とからページ読み取りエラーを判定する請求項12ないし18のいずれか1項に記載の画像読取装置。
The page number table includes information indicating the number of image data of the page number,
The image reading apparatus according to claim 12, wherein the reading error determination unit determines a page reading error from a total number of the image data and a page number included in the page number table.
JP2006044440A 2006-02-21 2006-02-21 Image reading method, program, and image reading device Pending JP2007226353A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2006044440A JP2007226353A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reading device
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
JP2006044440A JP2007226353A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reading device

Publications (1)

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

Family

ID=38548145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006044440A Pending JP2007226353A (en) 2006-02-21 2006-02-21 Image reading method, program, and image reading device

Country Status (1)

Country Link
JP (1) JP2007226353A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012096434A (en) * 2010-11-01 2012-05-24 Kyocera Mita Corp Image forming apparatus, and image forming program
US8953225B2 (en) 2011-07-29 2015-02-10 Brother Kogyo Kabushiki Kaisha Image reading device
JP2017068707A (en) * 2015-09-30 2017-04-06 ブラザー工業株式会社 Writing data processing program, writing data processor and writing data processing system
JP2019134272A (en) * 2018-01-31 2019-08-08 シャープ株式会社 Image reading device, image forming apparatus, control program, and control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06259596A (en) * 1993-03-08 1994-09-16 Matsushita Electric Ind Co Ltd Image reader
JPH07200613A (en) * 1993-12-29 1995-08-04 Toshiba Corp Image retrieval 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
JPH06259596A (en) * 1993-03-08 1994-09-16 Matsushita Electric Ind Co Ltd Image reader
JPH07200613A (en) * 1993-12-29 1995-08-04 Toshiba Corp Image retrieval device
JPH09147050A (en) * 1995-11-27 1997-06-06 Toshiba Corp Method and device for sheet processing and information processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012096434A (en) * 2010-11-01 2012-05-24 Kyocera Mita Corp Image forming apparatus, and image forming program
US8953225B2 (en) 2011-07-29 2015-02-10 Brother Kogyo Kabushiki Kaisha Image reading device
JP2017068707A (en) * 2015-09-30 2017-04-06 ブラザー工業株式会社 Writing data processing program, writing data processor and writing data processing system
JP2019134272A (en) * 2018-01-31 2019-08-08 シャープ株式会社 Image reading device, image forming apparatus, control program, and control method
JP6991072B2 (en) 2018-01-31 2022-01-12 シャープ株式会社 Image reader, image forming device and control method

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
US9013721B2 (en) Image forming apparatus, non-transitory computer-readable recording medium for storing image forming program, and image forming method
JP4945372B2 (en) Multi-function input / output device and control method thereof, multi-function input / output device control program, and recording medium
JP5834866B2 (en) Image processing apparatus, image generation method, and computer program
JP3782225B2 (en) Image processing system
JP6579332B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
US20080232640A1 (en) Image processing apparatus, image processing method, and program product
JP4807615B2 (en) Copier, copier system, and computer program
CN110879689B (en) Information processing apparatus, recording medium, and information processing method
JP2007226353A (en) Image reading method, program, and image reading device
JP2007226350A (en) Image reading method, program, and image reader
JP6579331B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
JP4826241B2 (en) Copier, copier system, and computer program
JP2008301502A (en) Image processing unit, and image processing method
CN100588218C (en) Image forming apparatus and electronic mail delivery server,
JP7476557B2 (en) DEVICE, PROCESSING EXECUTION SYSTEM, PROCESSING EXECUTION METHOD, AND PROGRAM
JP5168084B2 (en) Image processing apparatus, program, and image processing method
JP2004246500A (en) Documents management program
US20230273952A1 (en) Image processing apparatus, image processing method, and storage medium
US11206336B2 (en) Information processing apparatus, method, and non-transitory computer readable medium
JP2007011528A (en) Method for searching position of recognition target item in ocr processing

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

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110117

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110224