JP6956269B2 - Image processing device and image processing method - Google Patents

Image processing device and image processing method Download PDF

Info

Publication number
JP6956269B2
JP6956269B2 JP2020530857A JP2020530857A JP6956269B2 JP 6956269 B2 JP6956269 B2 JP 6956269B2 JP 2020530857 A JP2020530857 A JP 2020530857A JP 2020530857 A JP2020530857 A JP 2020530857A JP 6956269 B2 JP6956269 B2 JP 6956269B2
Authority
JP
Japan
Prior art keywords
image
medium
scanned
image processing
medium 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.)
Active
Application number
JP2020530857A
Other languages
Japanese (ja)
Other versions
JPWO2020017045A1 (en
Inventor
大和 河谷
暁 岩山
雅信 本江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Publication of JPWO2020017045A1 publication Critical patent/JPWO2020017045A1/en
Application granted granted Critical
Publication of JP6956269B2 publication Critical patent/JP6956269B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals

Description

開示の技術は、画像処理装置及び画像処理方法に関する。 The disclosed technique relates to an image processing apparatus and an image processing method.

スキャナを用いて一冊の本をページ毎に読み取って電子データ化することがある。 A scanner may be used to read a book page by page and convert it into electronic data.

特開平09−186854号公報Japanese Unexamined Patent Publication No. 09-186854 特開2000−011192号公報Japanese Unexamined Patent Publication No. 2000-011192

読み取られた一連の複数ページの画像の位置がページ間でずれてしまうと、それら一連の複数ページの画像を順番に見たときに、ページ間に生じた画像の位置ズレにより、画像を見た者に違和感を与えてしまう。このような違和感を軽減するには、従来は、オペレータが、ページ間で画像の位置ズレが生じないように、ページ毎の読取の都度、スキャナの原稿台に本を慎重に設置する必要があった。このため、オペレータの作業効率が悪かった。 If the positions of the scanned series of multi-page images are misaligned between the pages, when the series of multi-page images are viewed in order, the images are viewed due to the misalignment of the images that occur between the pages. It makes people feel uncomfortable. In order to reduce such discomfort, the operator has conventionally required to carefully place the book on the platen of the scanner each time the page is read so that the image position does not shift between pages. rice field. Therefore, the work efficiency of the operator was poor.

開示の技術は、上記に鑑みてなされたものであって、オペレータの作業効率を向上することを目的とする。 The disclosed technique has been made in view of the above, and aims to improve the work efficiency of the operator.

開示の態様では、画像処理装置は、記憶部と、画像処理部とを有する。前記記憶部は、各々が媒体画像を含む一連の複数の読取画像を記憶する。前記画像処理部は、前記複数の読取画像の各々において、前記媒体画像が存在する第一領域に第一基準位置を設定し、前記第一領域以外の第二領域に第二基準位置を設定し、前記第一基準位置と前記第二基準位置との間の位置関係に基づいて、前記読取画像内での前記媒体画像の配置を変更し、配置変更後の前記媒体画像に基づいて、前記複数の読取画像において同一の抽出領域を設定し、前記抽出領域に従って、前記複数の読取画像の各々から前記媒体画像を抽出する。 In the disclosed aspect, the image processing apparatus has a storage unit and an image processing unit. The storage unit stores a series of a plurality of scanned images, each including a medium image. In each of the plurality of scanned images, the image processing unit sets the first reference position in the first region where the medium image exists, and sets the second reference position in the second region other than the first region. , The arrangement of the medium image in the scanned image is changed based on the positional relationship between the first reference position and the second reference position, and the plurality of images are changed based on the medium image after the arrangement change. The same extraction region is set in the scanned image of the above, and the medium image is extracted from each of the plurality of scanned images according to the extraction region.

開示の態様によれば、オペレータの作業効率を向上することができる。 According to the aspect of disclosure, the work efficiency of the operator can be improved.

図1は、実施例1の画像処理装置の構成例を示す図である。FIG. 1 is a diagram showing a configuration example of the image processing apparatus of the first embodiment. 図2は、実施例1の画像処理装置の処理フローの一例を示す図である。FIG. 2 is a diagram showing an example of a processing flow of the image processing apparatus of the first embodiment. 図3は、実施例1の画像処理装置の処理フローの一例を示す図である。FIG. 3 is a diagram showing an example of a processing flow of the image processing apparatus of the first embodiment. 図4Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 4A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図4Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 4B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図4Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 4C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図4Dは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 4D is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図4Eは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 4E is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図5は、実施例1の画像処理装置の処理フローの一例を示す図である。FIG. 5 is a diagram showing an example of a processing flow of the image processing apparatus of the first embodiment. 図6Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 6A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図6Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 6B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図7は、実施例1の画像処理装置の処理フローの一例を示す図である。FIG. 7 is a diagram showing an example of a processing flow of the image processing apparatus of the first embodiment. 図8Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 8A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図8Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 8B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図8Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 8C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図9は、実施例1の第一の読取時の処理フローの一例を示す図である。FIG. 9 is a diagram showing an example of a processing flow at the time of the first reading of the first embodiment. 図10Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 10A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図10Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 10B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図10Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 10C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図11Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 11A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図11Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 11B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図11Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 11C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図12Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 12A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図12Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 12B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図12Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 12C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図13Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 13A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図13Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 13B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図13Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 13C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図14Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 14A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図14Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 14B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図14Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 14C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図14Dは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 14D is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図15Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 15A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図15Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 15B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図15Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 15C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図15Dは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 15D is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図16Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 16A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図16Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 16B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図16Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 16C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図17は、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 17 is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図18Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 18A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図18Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 18B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図18Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 18C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図19Aは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 19A is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図19Bは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 19B is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図19Cは、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 19C is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図20は、実施例1の画像処理装置の動作例の説明に供する図である。FIG. 20 is a diagram provided for explaining an operation example of the image processing apparatus of the first embodiment. 図21は、実施例2の古書の一例を示す図である。FIG. 21 is a diagram showing an example of an old book of Example 2. 図22は、実施例2の画像処理装置の処理フローの一例を示す図である。FIG. 22 is a diagram showing an example of a processing flow of the image processing apparatus of the second embodiment. 図23は、実施例2の画像処理装置の処理フローの一例を示す図である。FIG. 23 is a diagram showing an example of the processing flow of the image processing apparatus of the second embodiment. 図24は、実施例2の画像処理装置の処理フローの一例を示す図である。FIG. 24 is a diagram showing an example of a processing flow of the image processing apparatus of the second embodiment. 図25は、実施例2の画像処理装置の処理フローの一例を示す図である。FIG. 25 is a diagram showing an example of a processing flow of the image processing apparatus of the second embodiment. 図26Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 26A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図26Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 26B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図26Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 26C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図27Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 27A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図27Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 27B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図27Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 27C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図28Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 28A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図28Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 28B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図28Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 28C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図29Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 29A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図29Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 29B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図29Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 29C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図30Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 30A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図30Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 30B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図30Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 30C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図30Dは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 30D is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図31Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 31A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図31Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 31B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図31Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 31C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図31Dは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 31D is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図32は、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 32 is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図33Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 33A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図33Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 33B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図33Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 33C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図34は、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 34 is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図35Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 35A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図35Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 35B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図35Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 35C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図36Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 36A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図36Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 36B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図36Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 36C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図37は、実施例2の画像処理装置の処理フローの一例を示す図である。FIG. 37 is a diagram showing an example of a processing flow of the image processing apparatus of the second embodiment. 図38Aは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 38A is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図38Bは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 38B is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図38Cは、実施例2の画像処理装置の動作例の説明に供する図である。FIG. 38C is a diagram provided for explaining an operation example of the image processing apparatus of the second embodiment. 図39は、実施例3の画像処理装置の処理フローの一例を示す図である。FIG. 39 is a diagram showing an example of a processing flow of the image processing apparatus of the third embodiment. 図40Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 40A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図40Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 40B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図40Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 40C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図41Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 41A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図41Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 41B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図41Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 41C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図42Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 42A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図42Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 42B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図42Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 42C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図43Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 43A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図43Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 43B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図43Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 43C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図44Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 44A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図44Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 44B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図44Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 44C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図44Dは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 44D is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図45Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 45A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図45Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 45B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図45Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 45C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図45Dは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 45D is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図46は、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 46 is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図47Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 47A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図47Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 47B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図47Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 47C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図48は、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 48 is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図49Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 49A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図49Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 49B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図49Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 49C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図50Aは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 50A is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図50Bは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 50B is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment. 図50Cは、実施例3の画像処理装置の動作例の説明に供する図である。FIG. 50C is a diagram provided for explaining an operation example of the image processing apparatus of the third embodiment.

以下に、本願の開示する画像処理装置及び画像処理方法の実施例を図面に基づいて説明する。なお、この実施例により本願の開示する画像処理装置及び画像処理方法が限定されるものではない。また、実施例において同一の機能を有する構成、及び、同一の処理を行うステップには同一の符号を付す。 Hereinafter, examples of the image processing apparatus and the image processing method disclosed in the present application will be described with reference to the drawings. Note that this embodiment does not limit the image processing apparatus and image processing method disclosed in the present application. Further, in the embodiment, the same reference numerals are given to the configurations having the same functions and the steps for performing the same processing.

[実施例1]
<画像処理装置の構成>
図1は、実施例1の画像処理装置の構成例を示す図である。図1において、画像処理装置1は、制御部11と、記憶部13と、画像処理部15と、表示部17とを有する。記憶部13、画像処理部15、及び、表示部17は、制御部11による制御の下で動作する。画像処理装置10は、例えば、スキャナに搭載されて、または、スキャナと接続されて使用される。
[Example 1]
<Configuration of image processing device>
FIG. 1 is a diagram showing a configuration example of the image processing apparatus of the first embodiment. In FIG. 1, the image processing device 1 includes a control unit 11, a storage unit 13, an image processing unit 15, and a display unit 17. The storage unit 13, the image processing unit 15, and the display unit 17 operate under the control of the control unit 11. The image processing device 10 is used, for example, mounted on a scanner or connected to a scanner.

記憶部13は、スキャナによって読み取られた画像(以下では「読取画像」と呼ぶことがある)を記憶する。例えば、一冊の本の各ページがスキャナによって読み取られて一冊の本が電子データ化される場合、記憶部13は、一冊の本に渡ってページが連なる一連の複数の読取画像を記憶する。また、読取画像には、読取の対象となった媒体の画像(以下では「媒体画像」と呼ぶことがある)が含まれ、読取画像内に媒体画像が配置されている。例えば、一冊の本の各ページがスキャナによって読み取られて一冊の本が電子データ化される場合、媒体画像は、各ページの画像である。つまり、記憶部13は、各々が媒体画像を含む(各々に媒体画像が配置された)一連の複数の読取画像を記憶する。 The storage unit 13 stores an image read by the scanner (hereinafter, may be referred to as a “read image”). For example, when each page of one book is read by a scanner and one book is converted into electronic data, the storage unit 13 stores a series of a plurality of read images in which pages are connected over one book. do. Further, the scanned image includes an image of the medium to be scanned (hereinafter, may be referred to as a “medium image”), and the medium image is arranged in the scanned image. For example, when each page of a book is read by a scanner and one book is converted into electronic data, the medium image is an image of each page. That is, the storage unit 13 stores a series of a plurality of scanned images, each of which includes a medium image (in which a medium image is arranged).

<画像処理装置の処理・動作>
図2、図3、図5、及び、図7は、実施例1の画像処理装置の処理フローの一例を示す図である。図4A〜E、図6A,B、図8A〜C、図9、図10A〜C、図11A〜C、図12A〜C、図13A〜C、図14A〜D、図15A〜D、図16A〜C、図17、図18A〜C、図19A〜C、及び、図20は、実施例1の画像処理装置の動作例の説明に供する図である。
<Processing and operation of image processing equipment>
2, FIG. 3, FIG. 5, and FIG. 7 are diagrams showing an example of the processing flow of the image processing apparatus of the first embodiment. 4A-E, 6A, B, 8A-C, 9, 10A-C, 11A-C, 12A-C, 13A-C, 14A-D, 15A-D, 16A. ~ C, FIGS. 17, 18A to 18C, 19A to 19C, and FIG. 20 are diagrams for explaining an operation example of the image processing apparatus of the first embodiment.

実施例1では、一冊の古書の各ページをスキャナによって読み取って一冊の本を電子データ化する場合を一例に挙げて説明する。また、実施例1では、原稿台の上に見開きの状態で載置された古書の各ページをオーバーヘッド型のスキャナで読み取る場合を一例に挙げて説明する。 In the first embodiment, a case where each page of one old book is read by a scanner and one book is converted into electronic data will be described as an example. Further, in the first embodiment, a case where each page of an old book placed on a platen in a spread state is read by an overhead scanner will be described as an example.

図2に示す処理フローは、例えば、画像読取装置10が有する処理開始ボタン(図示省略)がオペレータによって押下されたときに開始される。 The processing flow shown in FIG. 2 is started, for example, when a processing start button (not shown) included in the image reading device 10 is pressed by an operator.

図2において、ステップS101では、制御部11は、記憶部13に記憶されている一連の複数の読取画像の中から、画像処理部15での処理の対象となる読取画像を選択して記憶部13から取得し、取得した読取画像を画像処理部15へ出力する。但し、白紙の画像は予め除去されて記憶部13には記憶されていない。 In FIG. 2, in step S101, the control unit 11 selects a scanned image to be processed by the image processing unit 15 from a series of scanned images stored in the storage unit 13, and stores the stored image. The scanned image acquired from 13 is output to the image processing unit 15. However, the blank image has been removed in advance and is not stored in the storage unit 13.

例えば、一冊の古書の読取画像として、オモテ表紙の画像、1ページ目及び2ページ目の見開きの画像(以下では「見開き12画像」と呼ぶことがある)、3ページ目及び4ページ目の見開きの画像(以下では「見開き34画像」と呼ぶことがある)、…、ウラ表紙の画像の一連の画像が記憶部13に記憶されている場合は、制御部11は、ステップS101〜S109の1回目の処理ループにおけるステップS101でオモテ表紙の画像を、ステップS101〜S109の2回目の処理ループにおけるステップS101で見開き12画像を、ステップS101〜S109の3回目の処理ループにおけるステップS101で見開き34画像を順に記憶部13から取得する。また、制御部11は、ステップS101〜S109の最後の処理ループにおけるステップS101でウラ表紙の画像を記憶部13から取得する。また例えば、オモテ表紙の画像、見開き12画像、見開き34画像、…、ウラ表紙の画像の一連の画像は1つのファイルとして記憶部13に記憶されており、制御部11は、処理対象のファイルからオモテ表紙の画像、見開き12画像、見開き34画像、…、ウラ表紙の画像の各画像を順に選択する。処理対象のファイルは、例えば、オペレータによって任意に選択される。 For example, as a read image of one old book, the image of the front cover, the image of the spread of the first page and the second page (hereinafter, may be referred to as "spread 12 image"), the third page and the fourth page. When a series of images of spread images (hereinafter sometimes referred to as "spread 34 images"), ..., Back cover images are stored in the storage unit 13, the control unit 11 may perform steps S101 to S109. The front cover image in step S101 in the first processing loop, the spread 12 images in step S101 in the second processing loop of steps S101 to S109, and the spread 34 in step S101 in the third processing loop of steps S101 to S109. Images are sequentially acquired from the storage unit 13. Further, the control unit 11 acquires an image of the back cover from the storage unit 13 in step S101 in the final processing loop of steps S101 to S109. Further, for example, a series of images of the front cover image, the spread 12 image, the spread 34 image, ..., The back cover image are stored in the storage unit 13 as one file, and the control unit 11 is from the file to be processed. Each image of the front cover image, the spread 12 image, the spread 34 image, ..., The back cover image is selected in order. The file to be processed is arbitrarily selected by the operator, for example.

ステップS103では、画像処理部15は、ステップS101で選択された読取画像に対して媒体画像位置検出処理を行う。 In step S103, the image processing unit 15 performs medium image position detection processing on the scanned image selected in step S101.

図3に、媒体画像位置検出処理の処理フローの一例を示す。また、図4Aに、ステップS101で選択された読取画像RIの一例を示す。図4Aにおいて、読取画像RIは、例えば、媒体画像MIA,MIBと、読取の対象となった媒体が載置されている原稿台の画像(以下では「原稿台画像」と呼ぶことがある)MTIとを含む。例えば、媒体画像MIAは、古書の見開きの画像であり、媒体画像MIBは、古書の横に置かれたカラーチャートの画像である。 FIG. 3 shows an example of the processing flow of the medium image position detection process. Further, FIG. 4A shows an example of the scanned image RI selected in step S101. In FIG. 4A, the scanned image RI is, for example, the medium images MIA and MIB and the image of the platen on which the medium to be scanned is placed (hereinafter, may be referred to as “document stand image”) MTI. And include. For example, the medium image MIA is a double-page spread image of an old book, and the medium image MIB is an image of a color chart placed next to the old book.

図3のステップS151では、画像処理部15は、読取画像RI(図4A)に対して近傍階調差を用いたエッジ検出EDを行う(図4B)。 In step S151 of FIG. 3, the image processing unit 15 performs edge detection ED using the near gradation difference with respect to the scanned image RI (FIG. 4A) (FIG. 4B).

次いで、ステップS153では、画像処理部15は、エッジ検出ED後の読取画像RIに対して、ハフ検出及び最小二乗法を用いた直線検出SLDを行う(図4C)。 Next, in step S153, the image processing unit 15 performs linear detection SLD using the huff detection and the least squares method on the read image RI after the edge detection ED (FIG. 4C).

次いで、ステップS155では、画像処理部15は、エッジ検出ED後の読取画像RIに対して、ラベリングを用いた曲線検出CLDを行う(図4D)。 Next, in step S155, the image processing unit 15 performs curve detection CLD using labeling on the read image RI after the edge detection ED (FIG. 4D).

そして、ステップS157では、画像処理部15は、直線検出SLD及び曲線検出CLDの結果に基づいて、読取画像RIに対して外接矩形検出RTDを行う(図4E)。この外接矩形検出RTDにより、媒体画像MIAの外接矩形BR1が、読取画像RIにおける媒体画像MIAの存在位置として検出され、媒体画像MIBの外接矩形BR2が、読取画像RIにおける媒体画像MIBの存在位置として検出される。 Then, in step S157, the image processing unit 15 performs the circumscribed rectangle detection RTD on the read image RI based on the results of the straight line detection SLD and the curve detection CLD (FIG. 4E). By this circumscribing rectangle detection RTD, the circumscribing rectangle BR1 of the medium image MIA is detected as the existing position of the medium image MIA in the scanned image RI, and the circumscribing rectangle BR2 of the medium image MIB is used as the existing position of the medium image MIB in the scanned image RI. Detected.

図2に戻り、ステップS105では、画像処理部15は、ステップS157で検出された各外接矩形に基づいて、各媒体画像の傾き及び重心を算出する。例えば、画像処理部15は、外接矩形の傾きを媒体画像の傾きとして算出し、外接矩形の重心を媒体画像の重心として算出する。 Returning to FIG. 2, in step S105, the image processing unit 15 calculates the inclination and the center of gravity of each medium image based on each circumscribed rectangle detected in step S157. For example, the image processing unit 15 calculates the inclination of the circumscribing rectangle as the inclination of the medium image, and calculates the center of gravity of the extrinsic rectangle as the center of gravity of the medium image.

次いで、ステップS107では、画像処理部15は、媒体画像基準位置設定処理を行う。 Next, in step S107, the image processing unit 15 performs the medium image reference position setting process.

図5に、媒体画像基準位置設定処理の処理フローの一例を示す。図5におけるステップS151,S153,S155の各処理については、図3に示したものと同一であるため、説明を省略する。 FIG. 5 shows an example of the processing flow of the medium image reference position setting process. Since each process of steps S151, S153, and S155 in FIG. 5 is the same as that shown in FIG. 3, description thereof will be omitted.

図5のステップS161では、画像処理部15は、直線検出SLD及び曲線検出CLDの結果に基づいて、媒体画像の輪郭を示す図形(以下では「媒体輪郭図形」と呼ぶことがある)を媒体画像毎に検出する。 In step S161 of FIG. 5, the image processing unit 15 uses the results of the straight line detection SLD and the curve detection CLD to obtain a figure showing the outline of the medium image (hereinafter, may be referred to as a “medium contour figure”) as the medium image. Detect every time.

次いで、ステップS163では、画像処理部15は、媒体画像毎に、媒体輪郭図形の上辺が直線であるか否かを判定する。媒体輪郭図形の上辺が直線である場合は(ステップS163:Yes)、処理はステップS165へ進み、媒体輪郭図形の上辺が直線でない場合は(ステップS163:No)、処理はステップS167へ進む。 Next, in step S163, the image processing unit 15 determines whether or not the upper side of the medium contour figure is a straight line for each medium image. If the upper side of the medium contour figure is a straight line (step S163: Yes), the process proceeds to step S165, and if the upper side of the medium contour figure is not a straight line (step S163: No), the process proceeds to step S167.

ステップS165では、画像処理部15は、媒体輪郭図形の上辺の中点(つまり、直線の中点)を媒体画像基準位置に設定し、媒体画像基準位置設定後の読取画像を記憶部13に記憶させる。 In step S165, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure (that is, the midpoint of the straight line) as the medium image reference position, and stores the scanned image after setting the medium image reference position in the storage unit 13. Let me.

一方で、ステップS167では、画像処理部15は、媒体輪郭図形の上辺の両端のコーナー点を結ぶ直線(以下では「近似直線」と呼ぶことがある)を媒体画像に設定する。 On the other hand, in step S167, the image processing unit 15 sets a straight line (hereinafter, may be referred to as an “approximate straight line”) connecting the corner points at both ends of the upper side of the medium contour figure in the medium image.

そして、ステップS169では、画像処理部15は、近似直線の中点を媒体画像基準位置に設定し、媒体画像基準位置設定後の読取画像を記憶部13に記憶させる。 Then, in step S169, the image processing unit 15 sets the midpoint of the approximate straight line at the medium image reference position, and stores the scanned image after setting the medium image reference position in the storage unit 13.

図6A,Bに、媒体画像基準位置の設定例を示す。図6Aには、媒体画像に設定された近似直線の中点を媒体画像基準位置に設定する例を示す。図6Aにおいて、読取画像RIは、媒体画像MIと、原稿台画像MTIとを含む。ステップS157の処理により、媒体画像MIに対する外接矩形BRが検出される。また、ステップS161の処理により、媒体画像MIに対して、媒体輪郭図形DLが検出される。図6Aにおいて、媒体輪郭図形DLの上辺は直線でないため(ステップS163:No)、ステップS167の処理により、媒体画像MIに対して、媒体輪郭図形DLの上辺の両端のコーナー点CR1,CR2を結ぶ近似直線SLが設定される。そして、ステップS169の処理により、近似直線SLの中点が媒体画像基準位置RRPに設定される。 6A and 6B show an example of setting the medium image reference position. FIG. 6A shows an example in which the midpoint of the approximate straight line set in the medium image is set as the medium image reference position. In FIG. 6A, the scanned image RI includes a medium image MI and a platen image MTI. By the process of step S157, the circumscribed rectangle BR with respect to the medium image MI is detected. Further, by the process of step S161, the medium contour figure DL is detected with respect to the medium image MI. In FIG. 6A, since the upper side of the medium contour figure DL is not a straight line (step S163: No), the corner points CR1 and CR2 at both ends of the upper side of the medium contour figure DL are connected to the medium image MI by the processing of step S167. An approximate straight line SL is set. Then, by the process of step S169, the midpoint of the approximate straight line SL is set to the medium image reference position RRP.

なお、画像処理部15は、媒体輪郭図形DLの上辺が直線でない場合に、近似直線SLの中点を媒体画像基準位置RRPに設定する代わりに、図6Bに示すように、媒体輪郭図形DLの上辺の中点を媒体画像基準位置RRPに設定しても良い。 When the upper side of the medium contour figure DL is not a straight line, the image processing unit 15 sets the midpoint of the approximate straight line SL to the medium image reference position RRP, as shown in FIG. 6B, instead of setting the midpoint of the medium contour figure DL. The midpoint of the upper side may be set to the medium image reference position RRP.

図2に戻り、ステップS109では、制御部11は、記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS101〜S107の処理が完了したか否かを判定する。記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS101〜S107の処理が完了した場合は(ステップS109:Yes)、処理はステップS111へ進む。一方で、記憶部13に記憶されている一連の複数の読取画像において、ステップS101〜S107の処理が行われていない読取画像が残っている場合は(ステップS109:No)、処理はステップS101へ戻る。例えば、一冊の古書の読取画像として、オモテ表紙の画像、見開き12画像、見開き34画像、…、ウラ表紙の画像の一連の画像が記憶部13に記憶されている場合は、ウラ表紙の画像に対してステップS101〜S107の処理が完了したときに、処理はステップS111へ進む。 Returning to FIG. 2, in step S109, the control unit 11 determines whether or not the processing of steps S101 to S107 has been completed for all of the series of scanned images stored in the storage unit 13. When the processing of steps S101 to S107 is completed for all of the series of scanned images stored in the storage unit 13 (step S109: Yes), the processing proceeds to step S111. On the other hand, in a series of a series of scanned images stored in the storage unit 13, if the scanned images that have not been processed in steps S101 to S107 remain (step S109: No), the processing proceeds to step S101. return. For example, when a series of images of the front cover image, the spread 12 image, the spread 34 image, ..., The back cover image are stored in the storage unit 13 as the read image of one old book, the back cover image. When the processing of steps S101 to S107 is completed, the processing proceeds to step S111.

ステップS111では、画像処理部15は、各読取画像に対して読取画像基準位置を設定する。図6A,Bに、読取画像基準位置の設定例を示す。図6A,Bに示すように、画像処理部15は、例えば、読取画像RIに含まれる原稿台画像MTIの上辺の中点を読取画像基準位置MRP1に設定する。 In step S111, the image processing unit 15 sets the scanned image reference position for each scanned image. 6A and 6B show an example of setting the scanned image reference position. As shown in FIGS. 6A and 6B, the image processing unit 15 sets, for example, the midpoint of the upper side of the platen image MTI included in the scanned image RI at the scanned image reference position MRP1.

次いで、ステップS113では、ステップS101の処理と同様に、制御部11は、記憶部13に記憶されている一連の複数の読取画像(つまり、媒体画像基準位置及び読取画像基準位置設定後の一連の複数の読取画像)の中から、画像処理部15での処理の対象となる読取画像を選択して記憶部13から取得し、取得した読取画像を画像処理部15へ出力する。 Next, in step S113, as in the process of step S101, the control unit 11 stores a series of a plurality of scanned images stored in the storage unit 13 (that is, a series of read images after setting the medium image reference position and the scanned image reference position). A scanned image to be processed by the image processing unit 15 is selected from the plurality of scanned images), acquired from the storage unit 13, and the acquired scanned image is output to the image processing unit 15.

次いで、ステップS115では、画像処理部15は、ステップS113で選択された読取画像に含まれる媒体画像に対して正立補正を施す。すなわち、ステップS115では、画像処理部15は、ステップS105で算出された媒体画像の傾きを補正する。 Next, in step S115, the image processing unit 15 performs upright correction on the medium image included in the scanned image selected in step S113. That is, in step S115, the image processing unit 15 corrects the inclination of the medium image calculated in step S105.

次いで、ステップS117では、画像処理部15は、ステップS113で選択された読取画像が、一連の複数の読取画像における最初の読取画像であるか否かを判定する。ステップS113で選択された読取画像が最初の読取画像である場合は(ステップS117:Yes)、処理はステップS119へ進む。一方で、ステップS113で選択された読取画像が最初の読取画像でない場合は(ステップS117:No)、処理はステップS121へ進む。 Next, in step S117, the image processing unit 15 determines whether or not the scanned image selected in step S113 is the first scanned image in a series of a plurality of scanned images. If the scanned image selected in step S113 is the first scanned image (step S117: Yes), the process proceeds to step S119. On the other hand, if the scanned image selected in step S113 is not the first scanned image (step S117: No), the process proceeds to step S121.

ステップS121では、画像処理部15は、対(つい)画像検出処理を行う。図7に、対画像検出処理の処理フローの一例を示す。 In step S121, the image processing unit 15 performs paired image detection processing. FIG. 7 shows an example of the processing flow of the image detection process.

図7において、ステップS171では、画像処理部15は、N番目に選択された読取画像(つまり、今回選択された読取画像)に含まれる媒体画像(以下では「今回媒体画像」と呼ぶことがある)の重心(以下では「今回媒体画像重心」と呼ぶことがある)、及び、N−1番目に選択された読取画像(つまり、前回選択された読取画像)に含まれる媒体画像(以下では「前回媒体画像」と呼ぶことがある)の重心(以下では「前回媒体画像重心」と呼ぶことがある)をそれぞれ算出する。例えば、画像処理部15は、ステップS157で検出した外接矩形の重心を、今回媒体画像重心及び前回媒体画像重心として算出する。 In FIG. 7, in step S171, the image processing unit 15 may refer to a medium image (hereinafter, referred to as “current medium image”) included in the Nth selected scanned image (that is, the scanned image selected this time). ) (Hereinafter referred to as "the center of gravity of the medium image") and the medium image included in the N-1th selected scanned image (that is, the previously selected scanned image) (hereinafter, "" The center of gravity (hereinafter sometimes referred to as "previous medium image center of gravity") of the previous medium image) is calculated. For example, the image processing unit 15 calculates the center of gravity of the circumscribing rectangle detected in step S157 as the center of gravity of the medium image this time and the center of gravity of the previous medium image.

次いでステップS173では、画像処理部15は、読取画像基準位置と今回媒体画像重心との間の距離(以下では「今回距離」と呼ぶことがある)、及び、読取画像基準位置と前回媒体画像重心との間の距離(以下では「前回距離」と呼ぶことがある)を算出する。 Next, in step S173, the image processing unit 15 determines the distance between the scanned image reference position and the current medium image center of gravity (hereinafter, may be referred to as “this time distance”), and the scanned image reference position and the previous medium image center of gravity. Calculate the distance between and (hereinafter sometimes referred to as the "previous distance").

次いで、ステップS175では、画像処理部15は、今回媒体画像の縦長さH及び横長さWと、前回媒体画像の縦長さH’及び横長さW’とを算出する。例えば、画像処理部15は、今回媒体画像の外接矩形の縦長さ及び横長さを今回媒体画像の縦長さH及び横長さWとして算出し、前回媒体画像の外接矩形の縦長さ及び横長さを前回媒体画像の縦長さH’及び横長さW’として算出する。 Next, in step S175, the image processing unit 15 calculates the vertical length H and the horizontal length W of the medium image this time and the vertical length H'and the horizontal length W'of the previous medium image. For example, the image processing unit 15 calculates the vertical length and the horizontal length of the circumscribed rectangle of the medium image this time as the vertical length H and the horizontal length W of the medium image this time, and calculates the vertical length and the horizontal length of the circumscribed rectangle of the previous medium image as the previous time. It is calculated as the vertical length H'and the horizontal length W'of the medium image.

次いで、ステップS177では、画像処理部15は、今回距離と前回距離との間の差の絶対値(以下では「距離差」と呼ぶことがある)が閾値TH1未満であるか否かを判定する。距離差が閾値TH1未満である場合は(ステップS177:Yes)、処理はステップS179へ進み、距離差が閾値TH1以上である場合は(ステップS177:No)、処理はステップS185へ進む。 Next, in step S177, the image processing unit 15 determines whether or not the absolute value of the difference between the current distance and the previous distance (hereinafter, may be referred to as “distance difference”) is less than the threshold value TH1. .. If the distance difference is less than the threshold TH1 (step S177: Yes), the process proceeds to step S179, and if the distance difference is greater than or equal to the threshold TH1 (step S177: No), the process proceeds to step S185.

ステップS179では、画像処理部15は、今回媒体画像の縦長さHと前回媒体画像の縦長さH’との間の差の絶対値(以下では「縦長さ差」と呼ぶことがある)が閾値TH2未満であるか否かを判定する。縦長さ差が閾値TH2未満である場合は(ステップS179:Yes)、処理はステップS181へ進み、縦長さ差が閾値TH2以上である場合は(ステップS179:No)、処理はステップS191へ進む。 In step S179, the image processing unit 15 sets a threshold value of the absolute value of the difference between the vertical length H of the current medium image and the vertical length H'of the previous medium image (hereinafter, may be referred to as "vertical length difference"). It is determined whether or not it is less than TH2. If the vertical length difference is less than the threshold value TH2 (step S179: Yes), the process proceeds to step S181, and if the vertical length difference is greater than or equal to the threshold value TH2 (step S179: No), the process proceeds to step S191.

ステップS181では、画像処理部15は、今回媒体画像の横長さWと前回媒体画像の横長さW’との間の差の絶対値(以下では「横長さ差」と呼ぶことがある)が閾値TH3未満であるか否かを判定する。横長さ差が閾値TH3未満である場合は(ステップS181:Yes)、処理はステップS183へ進み、横長さ差が閾値TH3以上である場合は(ステップS181:No)、処理はステップS187へ進む。 In step S181, the image processing unit 15 has a threshold value of the absolute value of the difference between the horizontal length W of the medium image this time and the horizontal length W'of the previous medium image (hereinafter, may be referred to as "horizontal length difference"). It is determined whether or not it is less than TH3. If the lateral length difference is less than the threshold TH3 (step S181: Yes), the process proceeds to step S183, and if the lateral length difference is greater than or equal to the threshold TH3 (step S181: No), the process proceeds to step S187.

ステップS183では、画像処理部15は、今回媒体画像及び前回媒体画像は共に見開きの画像、または、共にカラーチャートの画像で、かつ、今回媒体画像と前回媒体画像とは互いに対になる画像であると判定する。つまり、ステップS183では、画像処理部15は、今回媒体画像と前回媒体画像とが、見開き画像同士の対画像、または、カラーチャート画像同士の対画像であると判定する。画像処理部15は、今回媒体画像と前回媒体画像とが、見開き画像同士の対画像であるか、または、カラーチャート画像同士の対画像であるかを、例えば、今回媒体画像の横長さに基づいて判定する。例えば、画像処理部15は、今回媒体画像の横長さが閾値TH4以上である場合は、今回媒体画像と前回媒体画像とが見開き画像同士の対画像であると判定し、今回媒体画像の横長さが閾値TH4未満である場合は、今回媒体画像と前回媒体画像とがカラーチャート画像同士の対画像であると判定する。 In step S183, the image processing unit 15 indicates that the current medium image and the previous medium image are both spread images or both are color chart images, and the current medium image and the previous medium image are paired with each other. Is determined. That is, in step S183, the image processing unit 15 determines that the current medium image and the previous medium image are a pair of images of the spread images or a pair of images of the color chart images. The image processing unit 15 determines whether the current medium image and the previous medium image are paired images of spread images or paired images of color chart images, for example, based on the horizontal length of the current medium image. To judge. For example, when the horizontal length of the medium image this time is the threshold TH4 or more, the image processing unit 15 determines that the medium image this time and the previous medium image are paired images of the spread images, and determines that the horizontal length of the medium image this time is a pair image. When is less than the threshold value TH4, it is determined that the current medium image and the previous medium image are paired images of the color chart images.

一方で、ステップS185では、画像処理部15は、縦長さ差が閾値TH2未満であるか否かを判定する。縦長さ差が閾値TH2未満である場合は(ステップS185:Yes)、処理はステップS187へ進み、縦長さ差が閾値TH2以上である場合は(ステップS185:No)、処理はステップS191へ進む。 On the other hand, in step S185, the image processing unit 15 determines whether or not the vertical length difference is less than the threshold value TH2. If the vertical length difference is less than the threshold value TH2 (step S185: Yes), the process proceeds to step S187, and if the vertical length difference is greater than or equal to the threshold value TH2 (step S185: No), the process proceeds to step S191.

ステップS187では、画像処理部15は、今回媒体画像の横長さWが、前回媒体画像の横長さW’の所定範囲にあるか否かを判定する。画像処理部15は、例えば、今回媒体画像の横長さWが、前回媒体画像の横長さW’の2分の1(つまり、W’/2)以上、かつ、2倍(つまり、2W’)未満の所定範囲にあるか否かを判定する。今回媒体画像の横長さWがこの所定範囲にある場合は(ステップS187:Yes)、処理はステップS189へ進み、今回媒体画像の横長さWがこの所定範囲にない場合は(ステップS187:No)、処理はステップS191へ進む。 In step S187, the image processing unit 15 determines whether or not the horizontal length W of the medium image this time is within a predetermined range of the horizontal length W'of the previous medium image. In the image processing unit 15, for example, the horizontal length W of the medium image this time is more than half (that is, W'/ 2) or twice (that is, 2W') of the horizontal length W'of the previous medium image. It is determined whether or not it is within a predetermined range of less than. If the horizontal length W of the medium image this time is within this predetermined range (step S187: Yes), the process proceeds to step S189, and if the horizontal length W of the medium image this time is not within this predetermined range (step S187: No). , The process proceeds to step S191.

ステップS189では、画像処理部15は、今回媒体画像及び前回媒体画像の一方が表紙の画像、他方が見開きの画像で、かつ、今回媒体画像と前回媒体画像とは互いに対になる画像であると判定する。つまり、ステップS183では、画像処理部15は、今回媒体画像と前回媒体画像とが、表紙画像と見開き画像との対画像であると判定する。 In step S189, the image processing unit 15 determines that one of the current medium image and the previous medium image is a cover image and the other is a spread image, and the current medium image and the previous medium image are paired with each other. judge. That is, in step S183, the image processing unit 15 determines that the current medium image and the previous medium image are paired images of the cover image and the spread image.

一方で、ステップS191では、画像処理部15は、今回媒体画像と前回媒体画像とが互いに対にならない画像であると判定する。つまり、ステップS191では、画像処理部15は、今回媒体画像と前回媒体画像とが対画像ではないと判定する。 On the other hand, in step S191, the image processing unit 15 determines that the current medium image and the previous medium image are not paired with each other. That is, in step S191, the image processing unit 15 determines that the current medium image and the previous medium image are not paired images.

図8A,B,Cに、対画像の判定例を示す。 8A, B, and C show an example of determining the image pair.

図8Aにおいて、例えば、読取画像RIAに含まれる媒体画像MIAが前回媒体画像であり、読取画像RIBに含まれる媒体画像MIBが今回媒体画像である。図8Aでは、読取画像基準位置MRP1と前回媒体画像重心GBAとの間の前回距離DTAと、読取画像基準位置MRP1と今回媒体画像重心GBBとの間の今回距離DTBとの距離差は閾値TH1未満である(ステップS177:Yes)。また、媒体画像MIAの縦長さH5と媒体画像MIBの縦長さH6との間の縦長さ差は閾値TH2未満である(ステップS179:Yes)。さらに、媒体画像MIAの横長さW5と媒体画像MIBの横長さW6との間の横長さ差は閾値TH3未満である(ステップS181:Yes)。よって、媒体画像MIAと媒体画像MIBとは、見開き画像同士の対画像であると判定される(ステップS183)。 In FIG. 8A, for example, the medium image MIA included in the scanned image RIA is the previous medium image, and the medium image MIB included in the scanned image RIB is the current medium image. In FIG. 8A, the distance difference between the previous distance DTA between the scanned image reference position MRP1 and the previous medium image center of gravity GBA and the current distance DTB between the scanned image reference position MRP1 and the current media image center of gravity GBB is less than the threshold TH1. (Step S177: Yes). Further, the vertical length difference between the vertical length H5 of the medium image MIA and the vertical length H6 of the medium image MIB is less than the threshold value TH2 (step S179: Yes). Further, the lateral length difference between the lateral length W5 of the medium image MIA and the lateral length W6 of the medium image MIB is less than the threshold TH3 (step S181: Yes). Therefore, it is determined that the medium image MIA and the medium image MIB are paired images of the spread images (step S183).

また、図8Bにおいて、例えば、読取画像RICに含まれる媒体画像MICが前回媒体画像であり、読取画像RIDに含まれる媒体画像MIDが今回媒体画像である。図8Bでは、読取画像基準位置MRP1と前回媒体画像重心GBCとの間の前回距離DTCと、読取画像基準位置MRP1と今回媒体画像重心GBDとの間の今回距離DTDとの距離差は閾値TH1未満である(ステップS177:Yes)。また、媒体画像MICの縦長さH3と媒体画像MIDの縦長さH4との間の縦長さ差は閾値TH2未満である(ステップS179:Yes)。しかし、媒体画像MICの横長さW3と媒体画像MIDの横長さW4との間の横長さ差は閾値TH3以上である(ステップS181:No)。但し、媒体画像MIDの横長さW4は、媒体画像MICの横長さW3の2分の1以上、かつ、2倍未満の範囲にある(ステップS187:Yes)。よって、媒体画像MICと媒体画像MIDとは、表紙画像と見開き画像との対画像であると判定される(ステップS189)。 Further, in FIG. 8B, for example, the medium image MIC included in the scanned image RIC is the previous medium image, and the medium image MID included in the scanned image RID is the medium image this time. In FIG. 8B, the distance difference between the previous distance DTC between the scanned image reference position MRP1 and the previous media image center of gravity GBC and the current distance DTD between the scanned image reference position MRP1 and the current media image center of gravity GBD is less than the threshold TH1. (Step S177: Yes). Further, the vertical length difference between the vertical length H3 of the medium image MIC and the vertical length H4 of the medium image MID is less than the threshold value TH2 (step S179: Yes). However, the horizontal length difference between the horizontal length W3 of the medium image MIC and the horizontal length W4 of the medium image MID is the threshold value TH3 or more (step S181: No). However, the horizontal length W4 of the medium image MID is in the range of more than half and less than twice the horizontal length W3 of the medium image MIC (step S187: Yes). Therefore, it is determined that the medium image MIC and the medium image MID are paired images of the cover image and the spread image (step S189).

また、図8Cにおいて、例えば、読取画像RIEに含まれる媒体画像MIEが前回媒体画像であり、読取画像RIFに含まれる媒体画像MIFが今回媒体画像である。図8Cでは、読取画像基準位置MRP1と前回媒体画像重心GBEとの間の前回距離DTEと、読取画像基準位置MRP1と今回媒体画像重心GBFとの間の今回距離DTFとの距離差は閾値TH1以上である(ステップS177:No)。但し、媒体画像MIEの縦長さH1と媒体画像MIFの縦長さH2との間の縦長さ差は閾値TH2未満である(ステップS185:Yes)。さらに、媒体画像MIFの横長さW2は、媒体画像MIEの横長さW1の2分の1以上、かつ、2倍未満の範囲にある(ステップS187:Yes)。よって、媒体画像MIEと媒体画像MIFとは、表紙画像と見開き画像との対画像であると判定される(ステップS189)。 Further, in FIG. 8C, for example, the medium image MIE included in the scanned image RIE is the previous medium image, and the medium image MIF included in the scanned image RIF is the medium image this time. In FIG. 8C, the distance difference between the previous distance DTE between the scanned image reference position MRP1 and the previous media image center of gravity GBE and the current distance DTF between the scanned image reference position MRP1 and the current media image center of gravity GBF is the threshold TH1 or more. (Step S177: No). However, the vertical difference between the vertical length H1 of the medium image MIE and the vertical length H2 of the medium image MIF is less than the threshold value TH2 (step S185: Yes). Further, the horizontal length W2 of the medium image MIF is in the range of more than half and less than twice the horizontal length W1 of the medium image MIE (step S187: Yes). Therefore, it is determined that the medium image MIE and the medium image MIF are paired images of the cover image and the spread image (step S189).

なお、画像処理部15は、今回選択された読取画像及び前回選択された読取画像に含まれるすべての媒体画像を対象としてステップS171〜S191(図7)の処理を行う。 The image processing unit 15 performs the processing of steps S171 to S191 (FIG. 7) for the scanned image selected this time and all the medium images included in the scanned image selected last time.

図2に戻り、ステップS123では、画像処理部15は、ステップS171〜S191(図7)の処理において対画像が存在したか否かを判定する。図7においてステップS183またはステップS189の処理が行われた場合は、対画像が存在したと判定され、図7においてステップS191の処理が行われた場合は、対画像が存在しなかったと判定される。対画像が存在した場合は(ステップS123:Yes)、処理はステップS125へ進み、対画像が存在しなかった場合は(ステップS123:No)、処理はステップS131へ進む。 Returning to FIG. 2, in step S123, the image processing unit 15 determines whether or not a pair of images exists in the processing of steps S171 to S191 (FIG. 7). When the processing of step S183 or step S189 is performed in FIG. 7, it is determined that the paired image exists, and when the processing of step S191 is performed in FIG. 7, it is determined that the paired image does not exist. .. If the paired image exists (step S123: Yes), the process proceeds to step S125, and if the paired image does not exist (step S123: No), the process proceeds to step S131.

ステップS125では、画像処理部15は、対となる2つの画像が見開き画像同士またはカラーチャート画像同士であるか否かを判定する。図7においてステップS183の処理が行われた場合は、対となる2つの画像が見開き画像同士またはカラーチャート画像同士であると判定され、図7においてステップS189の処理が行われた場合は、対となる2つの画像が見開き画像同士及びカラーチャート画像同士でないと判定される。対となる2つの画像が見開き画像同士またはカラーチャート画像同士である場合は(ステップS125:Yes)、処理はステップS127へ進み、対となる2つの画像が見開き画像同士及びカラーチャート画像同士でない場合は(ステップS125:No)、処理はステップS129へ進む。 In step S125, the image processing unit 15 determines whether or not the two paired images are spread images or color chart images. When the process of step S183 is performed in FIG. 7, it is determined that the two paired images are spread images or color chart images, and when the process of step S189 is performed in FIG. 7, the pair is paired. It is determined that the two images are not the spread images and the color chart images. If the two paired images are spread images or color chart images (step S125: Yes), the process proceeds to step S127, and if the two paired images are not spread images or color chart images. (Step S125: No), the process proceeds to step S129.

画像処理部15は、ステップS127では位置設定処理Aを行う一方で、ステップS129では位置設定処理Bを行う。位置設定処理A, Bの詳細は後述する。ステップS127,S129の処理後、処理はステップS135へ進む。 The image processing unit 15 performs the position setting process A in step S127, while the position setting process B is performed in step S129. Details of the position setting processes A and B will be described later. After the processing of steps S127 and S129, the processing proceeds to step S135.

一方で、ステップS131では、画像処理部15は、対画像が存在しないことを示す警告を出力する。例えば、画像処理部15は、N番目に選択された読取画像内に、N−1番目に選択された読取画像内の媒体画像と対になる媒体画像が存在しないことを示す警告メッセージを表示部17に表示させる。つまり、画像処理部15は、前回媒体画像と対になる今回媒体画像が存在しないときに(ステップS123:No)、警告を出力する。 On the other hand, in step S131, the image processing unit 15 outputs a warning indicating that the pair of images does not exist. For example, the image processing unit 15 displays a warning message indicating that there is no medium image paired with the medium image in the N-1st selected scanned image in the Nth selected scanned image. Display on 17. That is, the image processing unit 15 outputs a warning when the current medium image paired with the previous medium image does not exist (step S123: No).

次いで、ステップS133では、画像処理部15は、処理を続行するか否かを判定する。例えば、ステップS131で出力された警告に対してオペレータが、処理を続行する旨の指示を画像処理装置10に与えた場合は、画像処理部15は、処理を続行すると判定する(ステップS133:Yes)。一方で、ステップS131で出力された警告に対してオペレータが、処理を中止する旨の指示を画像処理装置10に与えた場合は、画像処理部15は、処理を続行しないと判定する(ステップS133:No)。処理が続行される場合は(ステップS133:Yes)、処理はステップS119へ進み、処理が続行されない場合は(ステップS133:No)、処理は終了する。 Next, in step S133, the image processing unit 15 determines whether or not to continue the processing. For example, when the operator gives an instruction to the image processing apparatus 10 to continue the processing in response to the warning output in step S131, the image processing unit 15 determines that the processing is continued (step S133: Yes). ). On the other hand, when the operator gives an instruction to the image processing apparatus 10 to stop the processing in response to the warning output in step S131, the image processing unit 15 determines that the processing is not continued (step S133). : No). If the process is continued (step S133: Yes), the process proceeds to step S119, and if the process is not continued (step S133: No), the process ends.

ステップS119では、画像処理部15は、位置設定処理Cを行う。位置設定処理Cの詳細は後述する。ステップS119の処理後、処理はステップS135へ進む。 In step S119, the image processing unit 15 performs the position setting process C. The details of the position setting process C will be described later. After the process of step S119, the process proceeds to step S135.

次いで、ステップS135では、画像処理部15は、位置設定処理A,B,C(ステップS127,S129,S119)の結果に基づいて、読取画像において媒体画像を再配置する。ステップS135の処理の詳細は後述する。 Next, in step S135, the image processing unit 15 rearranges the medium image in the scanned image based on the results of the position setting processes A, B, and C (steps S127, S129, S119). Details of the process in step S135 will be described later.

次いで、ステップS136では、画像処理部15は、ステップS113で選択された読取画像に含まれるすべての媒体画像に対してステップS115〜S135の処理が完了したか否かを判定する。ステップS113で選択された読取画像に含まれるすべての媒体画像に対してステップS115〜S135の処理が完了した場合は(ステップS136:Yes)、処理はステップS137へ進む。一方で、ステップS113で選択された読取画像において、ステップS115〜S135の処理が行われていない媒体画像が残っている場合は(ステップS136:No)、処理はステップS115へ戻る。 Next, in step S136, the image processing unit 15 determines whether or not the processing of steps S115 to S135 has been completed for all the medium images included in the scanned image selected in step S113. When the processing of steps S115 to S135 is completed for all the medium images included in the scanned image selected in step S113 (step S136: Yes), the processing proceeds to step S137. On the other hand, if the scanned image selected in step S113 still has a medium image that has not been processed in steps S115 to S135 (step S136: No), the process returns to step S115.

ステップS137では、制御部11は、記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS113〜S135の処理が完了したか否かを判定する。記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS113〜S135の処理が完了した場合は(ステップS137:Yes)、処理はステップS139へ進む。一方で、記憶部13に記憶されている一連の複数の読取画像において、ステップS113〜S135の処理が行われていない読取画像が残っている場合は(ステップS137:No)、処理はステップS113へ戻る。 In step S137, the control unit 11 determines whether or not the processing of steps S113 to S135 has been completed for all of the series of scanned images stored in the storage unit 13. When the processing of steps S113 to S135 is completed for all of the series of scanned images stored in the storage unit 13 (step S137: Yes), the processing proceeds to step S139. On the other hand, if there are still scanned images that have not been processed in steps S113 to S135 in the series of scanned images stored in the storage unit 13 (step S137: No), the processing proceeds to step S113. return.

ステップS139では、画像処理部15は、読取画像に対して抽出領域を設定する。ステップS139の処理の詳細は後述する。 In step S139, the image processing unit 15 sets an extraction area for the scanned image. Details of the process in step S139 will be described later.

次いで、ステップS141では、画像処理部15は、ステップS139で設定した抽出領域に基づいて、媒体画像を抽出する。ステップS141の処理の詳細は後述する。 Next, in step S141, the image processing unit 15 extracts the medium image based on the extraction region set in step S139. Details of the process in step S141 will be described later.

以下、図2、図3、図5及び図7に示した一連の処理に基づく動作例について説明する。 Hereinafter, an operation example based on the series of processes shown in FIGS. 2, 3, 5, and 7 will be described.

以下では、図9に示すように、画像処理部15は、矩形のすべての読取画像上に、読取画像の左上の頂点を原点として右方向にX座標、下方向にY座標を設定する。つまり、読取画像において、X座標は横方向の座標であり、Y座標は縦方向の座標である。 In the following, as shown in FIG. 9, the image processing unit 15 sets the X coordinate in the right direction and the Y coordinate in the downward direction with the upper left vertex of the scanned image as the origin on all the scanned images of the rectangle. That is, in the scanned image, the X coordinate is the horizontal coordinate and the Y coordinate is the vertical coordinate.

また例えば、読取画像RI11,RI12,RI13,RI14(図10A,図11A,図12A,図13A)は、一冊の古書の一連の複数の読取画像に相当する。読取画像RI11は、オモテ表紙の画像である媒体画像MI11を含む(図10A)。つまり、読取画像RI11には、媒体画像MI11が配置されている。読取画像RI12は、見開き12画像である媒体画像MI121と、カラーチャートの画像である媒体画像MI122とを含む(図11A)。つまり、読取画像RI12には、媒体画像MI121と媒体画像MI122とが配置されている。読取画像RI13は、見開き34画像である媒体画像MI131と、カラーチャートの画像である媒体画像MI132とを含む(図12A)。つまり、読取画像RI13には、媒体画像MI131と媒体画像MI132とが配置されている。読取画像RI14は、ウラ表紙の画像である媒体画像MI14を含む(図13A)。つまり、読取画像RI14には、媒体画像MI14が配置されている。また、読取画像RI11,RI12,RI13,RI14は、原稿台画像MTIを含む。 Further, for example, the scanned images RI11, RI12, RI13, and RI14 (FIGS. 10A, 11A, 12A, and 13A) correspond to a series of a plurality of scanned images of one old book. The scanned image RI 11 includes a medium image MI 11 which is an image of the front cover (FIG. 10A). That is, the medium image MI11 is arranged on the scanned image RI11. The scanned image RI 12 includes a medium image MI 121 which is a spread 12 image and a medium image MI 122 which is an image of a color chart (FIG. 11A). That is, the medium image MI121 and the medium image MI122 are arranged in the scanned image RI12. The scanned image RI 13 includes a medium image MI131 which is a spread 34 image and a medium image MI132 which is an image of a color chart (FIG. 12A). That is, the medium image MI131 and the medium image MI132 are arranged in the scanned image RI13. The scanned image RI 14 includes a medium image MI 14 which is an image of the back cover (FIG. 13A). That is, the medium image MI14 is arranged on the scanned image RI14. Further, the scanned images RI11, RI12, RI13, and RI14 include the platen image MTI.

まず、ステップS103〜S107の処理(図2)に従って、画像処理部15は、読取画像RI11,RI12,RI13,RI14の各々に対して、図10B、図11B、図12B、図13Bに示すように動作する。 First, according to the processing of steps S103 to S107 (FIG. 2), the image processing unit 15 sets the scanned images RI11, RI12, RI13, and RI14 as shown in FIGS. 10B, 11B, 12B, and 13B. Operate.

すなわち、図10Bに示すように、画像処理部15は、媒体画像MI11の外接矩形BR11を検出し、検出した外接矩形BR11の重心GB11を算出する。また、画像処理部15は、媒体画像MI11の媒体輪郭図形の上辺が直線であるため、媒体画像MI11において、媒体輪郭図形の上辺の中点を媒体画像基準位置RRP11に設定する。 That is, as shown in FIG. 10B, the image processing unit 15 detects the circumscribed rectangle BR11 of the medium image MI11 and calculates the center of gravity GB11 of the detected circumscribed rectangle BR11. Further, since the upper side of the medium contour figure of the medium image MI11 is a straight line, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure to the medium image reference position RRP11 in the medium image MI11.

また、図11Bに示すように、画像処理部15は、媒体画像MI121の外接矩形BR121を検出し、検出した外接矩形BR121の重心GB121を算出する。また、画像処理部15は、媒体画像MI121の媒体輪郭図形の上辺が直線でないため、媒体画像MI121において、媒体輪郭図形の上辺の両端のコーナー点CR121a,CR121bを結ぶ近似直線SL121の中点を媒体画像基準位置RRP121に設定する。一方で、画像処理部15は、媒体画像MI122の外接矩形BR122を検出し、検出した外接矩形BR122の重心GB122を算出する。また、画像処理部15は、媒体画像MI122の媒体輪郭図形の上辺が直線であるため、媒体画像MI122において、媒体輪郭図形の上辺の中点を媒体画像基準位置RRP122に設定する。 Further, as shown in FIG. 11B, the image processing unit 15 detects the circumscribed rectangle BR121 of the medium image MI121 and calculates the center of gravity GB121 of the detected circumscribed rectangle BR121. Further, since the upper side of the medium contour figure of the medium image MI121 is not a straight line, the image processing unit 15 uses the middle point of the approximate straight line SL121 connecting the corner points CR121a and CR121b at both ends of the upper side of the medium contour figure as a medium in the medium image MI121. The image reference position is set to RRP121. On the other hand, the image processing unit 15 detects the circumscribed rectangle BR122 of the medium image MI122 and calculates the center of gravity GB122 of the detected circumscribed rectangle BR122. Further, since the upper side of the medium contour figure of the medium image MI 122 is a straight line, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure to the medium image reference position RRP 122 in the medium image MI 122.

また、図12Bに示すように、画像処理部15は、媒体画像MI131の外接矩形BR131を検出し、検出した外接矩形BR131の重心GB131を算出する。また、画像処理部15は、媒体画像MI131の媒体輪郭図形の上辺が直線でないため、媒体画像MI131において、媒体輪郭図形の上辺の両端のコーナー点CR131a,CR131bを結ぶ近似直線SL131の中点を媒体画像基準位置RRP131に設定する。一方で、画像処理部15は、媒体画像MI132の外接矩形BR132を検出し、検出した外接矩形BR132の重心GB132を算出する。また、画像処理部15は、媒体画像MI132の媒体輪郭図形の上辺が直線であるため、媒体画像MI132において、媒体輪郭図形の上辺の中点を媒体画像基準位置RRP132に設定する。 Further, as shown in FIG. 12B, the image processing unit 15 detects the circumscribed rectangle BR131 of the medium image MI131 and calculates the center of gravity GB131 of the detected circumscribed rectangle BR131. Further, since the upper side of the medium contour figure of the medium image MI131 is not a straight line, the image processing unit 15 uses the middle point of the approximate straight line SL131 connecting the corner points CR131a and CR131b at both ends of the upper side of the medium contour figure as a medium in the medium image MI131. Set to the image reference position RRP131. On the other hand, the image processing unit 15 detects the circumscribed rectangle BR132 of the medium image MI132 and calculates the center of gravity GB132 of the detected circumscribed rectangle BR132. Further, since the upper side of the medium contour figure of the medium image MI132 is a straight line, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure to the medium image reference position RRP132 in the medium image MI132.

また、図13Bに示すように、画像処理部15は、媒体画像MI14の外接矩形BR14を検出し、検出した外接矩形BR14の重心GB14を算出する。また、画像処理部15は、媒体画像MI14の媒体輪郭図形の上辺が直線であるため、媒体画像MI14において、媒体輪郭図形の上辺の中点を媒体画像基準位置RRP14に設定する。 Further, as shown in FIG. 13B, the image processing unit 15 detects the circumscribed rectangle BR14 of the medium image MI14 and calculates the center of gravity GB14 of the detected circumscribed rectangle BR14. Further, since the upper side of the medium contour figure of the medium image MI14 is a straight line, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure to the medium image reference position RRP14 in the medium image MI14.

ここで、外接矩形BR11は、読取画像RI11において媒体画像MI11が存在する領域を示し、外接矩形BR121は、読取画像RI12において媒体画像MI121が存在する領域を示し、外接矩形BR122は、読取画像RI12において媒体画像MI122が存在する領域を示す。また、外接矩形BR131は、読取画像RI13において媒体画像MI131が存在する領域を示し、外接矩形BR132は、読取画像RI13において媒体画像MI132が存在する領域を示し、外接矩形BR14は、読取画像RI14において媒体画像MI14が存在する領域を示す。 Here, the extrinsic rectangle BR11 indicates the region where the medium image MI11 exists in the scanned image RI11, the extrinsic rectangle BR121 indicates the region where the medium image MI121 exists in the scanned image RI12, and the extrinsic rectangle BR122 indicates the region where the medium image MI121 exists in the scanned image RI12. The area where the medium image MI 122 exists is shown. Further, the extrinsic rectangle BR131 indicates a region in which the medium image MI131 exists in the scanned image RI13, the extrinsic rectangle BR132 indicates the region in which the medium image MI132 exists in the scanned image RI13, and the extrinsic rectangle BR14 indicates the region in which the medium image MI132 exists in the scanned image RI14. The area where the image MI14 exists is shown.

このように、画像処理部15は、読取画像RI11,RI12,RI13,RI14の各々において、媒体画像MI11,MI121,MI122,MI131,MI132,MI14がそれぞれ存在する領域に、媒体画像基準位置RRP11,RRP121,RRP122,RRP131,RRP132,RRP14をそれぞれ設定する。 As described above, the image processing unit 15 has the medium image reference positions RRP11, RRP121 in each of the scanned images RI11, RI12, RI13, and RI14 in the region where the medium images MI11, MI121, MI122, MI131, MI132, and MI14 are present. , RRP122, RRP131, RRP132, RRP14, respectively.

読取画像RI14は、一冊の古書の一連の複数の読取画像の中の最後の画像であるため、読取画像RI14に対してステップS101〜S107の処理が完了したときに(ステップS109:Yes)、処理はステップS111へ進む。 Since the scanned image RI14 is the last image in a series of a plurality of scanned images of one old book, when the processing of steps S101 to S107 is completed for the scanned image RI14 (step S109: Yes), The process proceeds to step S111.

次いで、画像処理部15は、ステップS111の処理(図2)に従って、読取画像RI11,RI12,RI13,RI14の各々に対して、図10B、図11B、図12B、図13Bに示すように動作する。すなわち、画像処理部15は、図10B、図11B、図12B、図13Bに示すように、読取画像RI11,RI12,RI13,RI14の各々において、原稿台画像MTIの上辺の中点を読取画像基準位置MRP1に設定する。 Next, the image processing unit 15 operates as shown in FIGS. 10B, 11B, 12B, and 13B for each of the scanned images RI11, RI12, RI13, and RI14 according to the process of step S111 (FIG. 2). .. That is, as shown in FIGS. 10B, 11B, 12B, and 13B, the image processing unit 15 uses the midpoint of the upper side of the platen image MTI as a scanning image reference in each of the scanned images RI11, RI12, RI13, and RI14. Set to position MRP1.

このように、画像処理部15は、読取画像RI11,RI12,RI13,RI14の各々において、媒体画像MI11,MI121,MI122,MI131,MI132,MI14がそれぞれ存在する領域以外の領域に、読取画像基準位置MRP1を設定する。 In this way, the image processing unit 15 sets the scanned image reference position in each of the scanned images RI11, RI12, RI13, and RI14 in a region other than the region in which the medium images MI11, MI121, MI122, MI131, MI132, and MI14 are present. Set MRP1.

次いで、画像処理部15は、ステップS113の処理(図2)によって制御部11が選択した読取画像RI11(図10B)において、重心GB11を中心にして外接矩形BR11を右回りに回転させることによって媒体画像MI11の傾きを補正する(ステップS115,図10C)。 Next, the image processing unit 15 rotates the circumscribing rectangle BR11 clockwise around the center of gravity GB11 in the scanned image RI11 (FIG. 10B) selected by the control unit 11 in the process of step S113 (FIG. 2), thereby causing the medium. The inclination of the image MI11 is corrected (step S115, FIG. 10C).

また、読取画像RI11は一連の複数の読取画像の中の最初の読取画像であるため(ステップS117:Yes)、画像処理部15は、媒体画像MI11に対して位置設定処理Cを行う(ステップS119)。媒体画像MI11に対する位置設定処理Cでは、画像処理部15は、図10Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし、正立補正後の媒体画像MI11における媒体画像基準位置RRP11(座標(xb0,yb0))を終点とするベクトルVecb0を、原稿台画像MTIに対する媒体画像MI11の位置として設定する。つまり、媒体画像MI11に設定されたベクトルVecb0は、媒体画像基準位置RRP11と読取画像基準位置MRP1との間の位置関係を示す。Further, since the scanned image RI 11 is the first scanned image in a series of a plurality of scanned images (step S117: Yes), the image processing unit 15 performs the position setting process C on the medium image MI 11 (step S119). ). In the position setting process C for the medium image MI11, as shown in FIG. 10C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )), and the medium image MI11 after the upright correction. The vector Vec b0 whose end point is the medium image reference position RRP11 (coordinates (x b0 , y b0 )) in the above is set as the position of the medium image MI11 with respect to the platen image MTI. That is, the vector Vec b0 set in the medium image MI11 indicates the positional relationship between the medium image reference position RRP11 and the scanned image reference position MRP1.

そして、画像処理部15は、図10Cに示すように、読取画像RI11において、媒体画像MI11に設定したベクトルVecb0に基づいて媒体画像MI11を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecb0の終点の座標(xb0,yb0)に媒体画像基準位置RRP11が一致するように、媒体画像MI11を再配置する。画像処理部15は、媒体画像MI11の再配置後の読取画像RI11Fを記憶部13に記憶させる。なお、再配置後の媒体画像MI11の配置は、再配置前の媒体画像MI11の配置(つまり、正立補正後の媒体画像MI11の配置)と同一である。Then, as shown in FIG. 10C, the image processing unit 15 rearranges the medium image MI11 based on the vector Vec b0 set in the medium image MI11 in the scanned image RI11 (step S135). That is, the image processing unit 15 rearranges the medium image MI11 so that the medium image reference position RRP11 coincides with the coordinates (x b0 , y b0 ) of the end point of the vector Vec b0. The image processing unit 15 stores the read image RI11F after rearranging the medium image MI11 in the storage unit 13. The arrangement of the medium image MI11 after the rearrangement is the same as the arrangement of the medium image MI11 before the rearrangement (that is, the arrangement of the medium image MI11 after the upright correction).

また、画像処理部15は、ステップS113の処理(図2)によって制御部11が選択した読取画像RI12(図11B)において、重心GB121を中心にして外接矩形BR121を左回りに回転させることによって媒体画像MI121の傾きを補正する(ステップS115,図11C)。同様に、画像処理部15は、重心GB122を中心にして外接矩形BR122を右回りに回転させることによって媒体画像MI122の傾きを補正する(ステップS115,図11C)。 Further, in the scanned image RI12 (FIG. 11B) selected by the control unit 11 in the process of step S113 (FIG. 2), the image processing unit 15 rotates the circumscribing rectangle BR121 counterclockwise around the center of gravity GB121 to form a medium. The inclination of the image MI 121 is corrected (step S115, FIG. 11C). Similarly, the image processing unit 15 corrects the inclination of the medium image MI 122 by rotating the circumscribed rectangle BR 122 clockwise around the center of gravity GB 122 (step S115, FIG. 11C).

また、読取画像RI12は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI12に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI11と媒体画像MI121とは、表紙画像と見開き画像との対画像であると判定される一方で、媒体画像MI11と媒体画像MI122とは、対画像ではないと判定される。 Further, since the scanned image RI 12 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI 12 (step S121). .. By this pair image detection process, the medium image MI11 and the medium image MI121 are determined to be paired images of the cover image and the spread image, while the medium image MI11 and the medium image MI122 are not paired images. It is judged.

媒体画像MI11と媒体画像MI121とが表紙画像と見開き画像との対画像であると判定されたため、画像処理部15は、媒体画像MI121に対して位置設定処理Bを行う(ステップS129)。媒体画像MI121に対する位置設定処理Bでは、画像処理部15は、図11Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし媒体画像基準位置RRP121(座標(xb1,yb0))を終点とするベクトルVecb1を、原稿台画像MTIに対する媒体画像MI121の位置として設定する。つまり、媒体画像MI121に設定されたベクトルVecb1は、媒体画像基準位置RRP121と読取画像基準位置MRP1との間の位置関係を示す。ここで、図11Cにおいて、媒体画像基準位置RRP121のX座標の値xb1は正立補正後の媒体画像MI121における媒体画像基準位置RRP121のX座標の値xb1と同一である一方で、媒体画像基準位置RRP121のY座標の値yb0は図10Cにおける媒体画像基準位置RRP11のY座標の値yb0と同一である。Since it is determined that the medium image MI 11 and the medium image MI 121 are a pair of images of the cover image and the spread image, the image processing unit 15 performs the position setting process B on the medium image MI 121 (step S129). In the position setting process B for the medium image MI 121, as shown in FIG. 11C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )) and media image reference position RRP121 (coordinates (x)). The vector Vec b1 whose end point is b1, y b0 )) is set as the position of the medium image MI121 with respect to the platen image MTI. That is, the vector Vec b1 set in the medium image MI 121 indicates the positional relationship between the medium image reference position RRP121 and the scanned image reference position MRP1. Here, in FIG. 11C, the X-coordinate value x b1 of the medium image reference position RRP121 is the same as the X-coordinate value x b1 of the medium image reference position RRP121 in the medium image MI121 after the upright correction, while the medium image. the value of Y-coordinate of the reference position RRP121 y b0 is the same as the value y b0 Y coordinate of the media image reference position RRP11 in FIG 10C.

また、媒体画像MI11と媒体画像MI122とが対画像ではないと判定されたため、画像処理部15は、ステップS131の処理後、ステップS133において処理を続行すると判定した場合は、媒体画像MI122に対して位置設定処理Cを行う(ステップS119)。媒体画像MI122に対する位置設定処理Cでは、画像処理部15は、図11Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし、正立補正後の媒体画像MI122における媒体画像基準位置RRP122(座標(xc0,yc0))を終点とするベクトルVecc1を、原稿台画像MTIに対する媒体画像MI122の位置として設定する。つまり、媒体画像MI122に設定されたベクトルVecc1は、媒体画像基準位置RRP122と読取画像基準位置MRP1との間の位置関係を示す。Further, since it is determined that the medium image MI 11 and the medium image MI 122 are not paired images, the image processing unit 15 determines that the processing is continued in step S133 after the processing in step S131, with respect to the medium image MI 122. The position setting process C is performed (step S119). In the position setting process C for the medium image MI 122, as shown in FIG. 11C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )) and performs the upright correction of the medium image MI 122. The vector Vec c1 whose end point is the medium image reference position RRP122 (coordinates (x c0 , y c0 )) in the above is set as the position of the medium image MI122 with respect to the platen image MTI. That is, the vector Vec c1 set in the medium image MI 122 indicates the positional relationship between the medium image reference position RRP 122 and the scanned image reference position MRP1.

そして、画像処理部15は、図11Cに示すように、読取画像RI12において、媒体画像MI121に設定したベクトルVecb1に基づいて媒体画像MI121を再配置するとともに、媒体画像MI122に設定したベクトルVecc1に基づいて媒体画像MI122を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecb1の終点の座標(xb1,yb0)に媒体画像基準位置RRP121が一致するように、媒体画像MI121を再配置する。また、画像処理部15は、ベクトルVecc1の終点の座標(xc0,yc0)に媒体画像基準位置RRP122が一致するように、媒体画像MI122を再配置する。画像処理部15は、媒体画像MI121,MI122の再配置後の読取画像RI12Fを記憶部13に記憶させる。媒体画像MI121の再配置により、再配置後の媒体画像MI121の配置は、再配置前の媒体画像MI121の配置(つまり、正立補正後の媒体画像MI121の配置)から変更される。なお、再配置後の媒体画像MI122の配置は、再配置前の媒体画像MI122の配置(つまり、正立補正後の媒体画像MI122の配置)と同一である。Then, as shown in FIG. 11C, the image processing unit 15 rearranges the medium image MI121 based on the vector Vec b1 set in the medium image MI121 in the scanned image RI12, and rearranges the medium image MI121 and sets the vector Vec c1 in the medium image MI122. The medium image MI122 is rearranged based on (step S135). That is, the image processing unit 15 rearranges the medium image MI 121 so that the medium image reference position RRP 121 coincides with the coordinates (x b1 , y b0 ) of the end point of the vector Vec b1. Further, the image processing unit 15 rearranges the medium image MI 122 so that the medium image reference position RRP 122 coincides with the coordinates (x c0 , y c0 ) of the end point of the vector Vec c1. The image processing unit 15 stores the read image RI12F after rearranging the medium images MI121 and MI122 in the storage unit 13. Due to the rearrangement of the medium image MI121, the arrangement of the medium image MI121 after the rearrangement is changed from the arrangement of the medium image MI121 before the rearrangement (that is, the arrangement of the medium image MI121 after the upright correction). The arrangement of the medium image MI122 after the rearrangement is the same as the arrangement of the medium image MI122 before the rearrangement (that is, the arrangement of the medium image MI122 after the upright correction).

上記のように、画像処理部15は、ベクトルVecb1の終点の座標(xb1,yb0)に媒体画像基準位置RRP121が一致するように、媒体画像MI121を再配置する(図11C)。また上記のように、媒体画像基準位置RRP121のX座標の値xb1は正立補正後の媒体画像MI121における媒体画像基準位置RRP121のX座標の値xb1と同一である一方で、媒体画像基準位置RRP121のY座標の値yb0は図10Cにおける媒体画像基準位置RRP11のY座標の値yb0と同一である。また上記のように、媒体画像MI11と媒体画像MI121とは表紙画像と見開き画像との対画像である。また、一方の媒体画像と他方の媒体画像とが表紙画像と見開き画像との対画像であると判定されるのは(ステップS189)、一方の媒体画像の縦長さと他方の媒体画像の縦長さとの差が閾値TH2未満であり(ステップS179:Yes)、一方の媒体画像の横長さと他方の媒体画像の横長さとの差が閾値TH3以上であり(ステップS181:No)、かつ、他方の媒体画像の横長さが一方の媒体画像の横長さの所定範囲にある場合である(ステップS187:Yes)。つまり、画像処理部15は、媒体画像MI11の縦長さと媒体画像MI121の縦長さとの差が閾値TH2未満であり、媒体画像MI11の横長さと媒体画像MI121の横長さとの差が閾値TH3以上であり、かつ、媒体画像MI121の横長さが媒体画像MI11の横長さの所定範囲にあるときは、媒体画像MI121の再配置の際に、媒体画像MI121の縦方向の配置を変更する一方で、媒体画像MI121の横方向の配置を変更しない。As described above, the image processing unit 15 rearranges the medium image MI121 so that the medium image reference position RRP121 coincides with the coordinates (x b1 , y b0 ) of the end point of the vector Vec b1 (FIG. 11C). Further, as described above, the X coordinate value x b1 of the medium image reference position RRP121 is the same as the X coordinate value x b1 of the medium image reference position RRP121 in the medium image MI121 after the upright correction, while the medium image reference. position value y b0 Y coordinate of RRP121 is identical to the value y b0 Y coordinate of the media image reference position RRP11 in FIG 10C. Further, as described above, the medium image MI11 and the medium image MI121 are paired images of the cover image and the spread image. Further, it is determined that one medium image and the other medium image are paired images of the cover image and the spread image (step S189), that is, the vertical length of one medium image and the vertical length of the other medium image. The difference is less than the threshold TH2 (step S179: Yes), the difference between the landscape of one medium image and the landscape of the other medium image is greater than or equal to the threshold TH3 (step S181: No), and of the other medium image. This is a case where the horizontal length is within a predetermined range of the horizontal length of one medium image (step S187: Yes). That is, in the image processing unit 15, the difference between the vertical length of the medium image MI11 and the vertical length of the medium image MI121 is less than the threshold value TH2, and the difference between the horizontal length of the medium image MI11 and the horizontal length of the medium image MI121 is the threshold value TH3 or more. When the horizontal length of the medium image MI 121 is within the predetermined range of the horizontal length of the medium image MI 11, the vertical arrangement of the medium image MI 121 is changed when the medium image MI 121 is rearranged, while the medium image MI 121 is rearranged. Do not change the horizontal arrangement of.

また、画像処理部15は、ステップS113の処理(図2)によって制御部11が選択した読取画像RI13(図12B)において、重心GB131を中心にして外接矩形BR131を右回りに回転させることによって媒体画像MI131の傾きを補正する(ステップS115,図12C)。同様に、画像処理部15は、重心GB132を中心にして外接矩形BR132を左回りに回転させることによって媒体画像MI132の傾きを補正する(ステップS115,図12C)。 Further, the image processing unit 15 rotates the circumscribing rectangle BR131 clockwise around the center of gravity GB131 in the scanned image RI13 (FIG. 12B) selected by the control unit 11 in the process of step S113 (FIG. 2), thereby causing the medium. The inclination of the image MI131 is corrected (step S115, FIG. 12C). Similarly, the image processing unit 15 corrects the inclination of the medium image MI132 by rotating the circumscribed rectangle BR132 counterclockwise around the center of gravity GB132 (step S115, FIG. 12C).

また、読取画像RI13は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI13に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI121と媒体画像MI131とは見開き画像同士の対画像であると判定され、媒体画像MI122と媒体画像MI132とはカラーチャート画像同士の対画像であると判定される。 Further, since the scanned image RI 13 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI 13 (step S121). .. By this pair image detection process, it is determined that the medium image MI121 and the medium image MI131 are paired images of the spread images, and that the medium image MI122 and the medium image MI132 are paired images of the color chart images. ..

媒体画像MI121と媒体画像MI131とが見開き画像同士の対画像であると判定されたため、画像処理部15は、媒体画像MI131に対して位置設定処理Aを行う(ステップS127)。媒体画像MI131に対する位置設定処理Aでは、画像処理部15は、図12Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし媒体画像基準位置RRP131(座標(xb1,yb0))を終点とするベクトルVecb1を、原稿台画像MTIに対する媒体画像MI131の位置として設定する。つまり、媒体画像MI131に設定されたベクトルVecb1は、媒体画像基準位置RRP131と読取画像基準位置MRP1との間の位置関係を示す。ここで、図12Cにおいて、媒体画像基準位置RRP131のX座標の値xb1は図11Cにおける媒体画像基準位置RRP121のX座標の値xb1と同一であり、媒体画像基準位置RRP131のY座標の値yb0は図11Cにおける媒体画像基準位置RRP121のY座標の値yb0と同一である。つまり、媒体画像MI131に設定されたベクトルVecb1は、媒体画像MI121に設定されたベクトルVecb1と同一である。Since it is determined that the medium image MI 121 and the medium image MI 131 are paired images of the spread images, the image processing unit 15 performs the position setting process A on the medium image MI 131 (step S127). In the position setting process A for the medium image MI131, as shown in FIG. 12C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )) and media image reference position RRP131 (coordinates (x)). The vector Vec b1 whose end point is b1, y b0 )) is set as the position of the medium image MI131 with respect to the platen image MTI. That is, the vector Vec b1 set in the medium image MI131 indicates the positional relationship between the medium image reference position RRP131 and the scanned image reference position MRP1. Here, in FIG. 12C, the X coordinate value x b1 of the medium image reference position RRP131 is the same as the X coordinate value x b1 of the medium image reference position RRP121 in FIG. 11C, and the Y coordinate value of the medium image reference position RRP131. y b0 is the same as the Y coordinate value y b0 of the medium image reference position RRP121 in FIG. 11C. That is, the vector Vec b1 set in the medium image MI131 is the same as the vector Vec b1 set in the medium image MI121.

また、媒体画像MI122と媒体画像MI132とがカラーチャート画像同士の対画像であると判定されたため、画像処理部15は、媒体画像MI132に対して位置設定処理Aを行う(ステップS127)。媒体画像MI132に対する位置設定処理Aでは、画像処理部15は、図12Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし媒体画像基準位置RRP132(座標(xc0,yc0))を終点とするベクトルVecc1を、原稿台画像MTIに対する媒体画像MI132の位置として設定する。つまり、媒体画像MI132に設定されたベクトルVecc1は、媒体画像基準位置RRP132と読取画像基準位置MRP1との間の位置関係を示す。ここで、図12Cにおいて、媒体画像基準位置RRP132のX座標の値xc0は図11Cにおける媒体画像基準位置RRP122のX座標の値xc0と同一であり、媒体画像基準位置RRP132のY座標の値yc0は図11Cにおける媒体画像基準位置RRP122のY座標の値yc0と同一である。つまり、媒体画像MI132に設定されたベクトルVecc1は、媒体画像MI122に設定されたベクトルVecc1と同一である。Further, since it is determined that the medium image MI 122 and the medium image MI 132 are paired images of the color chart images, the image processing unit 15 performs the position setting process A on the medium image MI 132 (step S127). In the position setting process A for the medium image MI 132, as shown in FIG. 12C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )) and media image reference position RRP132 (coordinates (x)). The vector Vec c1 whose end point is c0, y c0 )) is set as the position of the medium image MI132 with respect to the platen image MTI. That is, the vector Vec c1 set in the medium image MI132 indicates the positional relationship between the medium image reference position RRP132 and the scanned image reference position MRP1. Here, in FIG. 12C, the X coordinate value x c0 of the medium image reference position RRP 132 is the same as the X coordinate value x c0 of the medium image reference position RRP 122 in FIG. 11C, and the Y coordinate value of the medium image reference position RRP 132. y c0 is the same as the Y coordinate value y c0 of the medium image reference position RRP122 in FIG. 11C. That is, the vector Vec c1 set in the medium image MI132 is the same as the vector Vec c1 set in the medium image MI122.

そして、画像処理部15は、図12Cに示すように、読取画像RI13において、媒体画像MI131に設定したベクトルVecb1に基づいて媒体画像MI131を再配置するとともに、媒体画像MI132に設定したベクトルVecc1に基づいて媒体画像MI132を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecb1の終点の座標(xb1,yb0)に媒体画像基準位置RRP131が一致するように、媒体画像MI131を再配置する。また、画像処理部15は、ベクトルVecc1の終点の座標(xc0,yc0)に媒体画像基準位置RRP132が一致するように、媒体画像MI132を再配置する。画像処理部15は、媒体画像MI131,MI132の再配置後の読取画像RI13Fを記憶部13に記憶させる。媒体画像MI131の再配置により、再配置後の媒体画像MI131の配置は、再配置前の媒体画像MI131の配置(つまり、正立補正後の媒体画像MI131の配置)から変更される。また、媒体画像MI132の再配置により、再配置後の媒体画像MI132の配置は、再配置前の媒体画像MI132の配置(つまり、正立補正後の媒体画像MI132の配置)から変更される。Then, as shown in FIG. 12C, the image processing unit 15 rearranges the medium image MI131 based on the vector Vec b1 set in the medium image MI131 in the scanned image RI13, and rearranges the medium image MI131 and sets the vector Vec c1 in the medium image MI132. The medium image MI132 is rearranged based on (step S135). That is, the image processing unit 15 rearranges the medium image MI131 so that the medium image reference position RRP131 coincides with the coordinates (x b1 , y b0 ) of the end point of the vector Vec b1. Further, the image processing unit 15 rearranges the medium image MI132 so that the medium image reference position RRP132 coincides with the coordinates (x c0 , y c0 ) of the end point of the vector Vec c1. The image processing unit 15 stores the read image RI13F after rearranging the medium images MI131 and MI132 in the storage unit 13. Due to the rearrangement of the medium image MI131, the arrangement of the medium image MI131 after the rearrangement is changed from the arrangement of the medium image MI131 before the rearrangement (that is, the arrangement of the medium image MI131 after the upright correction). Further, due to the rearrangement of the medium image MI132, the arrangement of the medium image MI132 after the rearrangement is changed from the arrangement of the medium image MI132 before the rearrangement (that is, the arrangement of the medium image MI132 after the upright correction).

上記のように、媒体画像MI121と媒体画像MI131とは見開き画像同士の対画像である。また上記のように、媒体画像MI131に設定されたベクトルVecb1は、媒体画像MI121に設定されたベクトルVecb1と同一である。また上記のように、媒体画像MI121に設定されたベクトルVecb1は、媒体画像基準位置RRP121と読取画像基準位置MRP1との間の位置関係を示し、媒体画像MI131に設定されたベクトルVecb1は、媒体画像基準位置RRP131と読取画像基準位置MRP1との間の位置関係を示す。また上記のように、ベクトルVecb1の終点の座標(xb1,yb0)に媒体画像基準位置RRP121が一致するように媒体画像MI121が再配置される一方で、ベクトルVecb1の終点の座標(xb1,yb0)に媒体画像基準位置RRP131が一致するように媒体画像MI131が再配置される。つまり、画像処理部15は、媒体画像MI121と対になる媒体画像MI131を、媒体画像MI121と媒体画像MI131との間において位置関係が同一になるように再配置する。As described above, the medium image MI121 and the medium image MI131 are paired images of spread images. Further, as described above, the vector Vec b1 set in the medium image MI131 is the same as the vector Vec b1 set in the medium image MI121. Further, as described above, the vector Vec b1 set in the medium image MI121 indicates the positional relationship between the medium image reference position RRP121 and the scanned image reference position MRP1, and the vector Vec b1 set in the medium image MI131 indicates the positional relationship. The positional relationship between the medium image reference position RRP131 and the scanned image reference position MRP1 is shown. Also as described above, while the medium image MI121 is repositioned to medium image reference position RRP121 the coordinates (x b1, y b0) of end point of the vector Vec b1 match, the end point of the vector Vec b1 coordinates ( The medium image MI131 is rearranged so that the medium image reference position RRP131 coincides with x b1 , y b0). That is, the image processing unit 15 rearranges the medium image MI131 paired with the medium image MI121 so that the positional relationship between the medium image MI121 and the medium image MI131 is the same.

また上記のように、媒体画像MI122と媒体画像MI132とはカラーチャート画像同士の対画像である。また上記のように、媒体画像MI132に設定されたベクトルVecc1は、媒体画像MI122に設定されたベクトルVecc1と同一である。また上記のように、媒体画像MI122に設定されたベクトルVecc1は、媒体画像基準位置RRP122と読取画像基準位置MRP1との間の位置関係を示し、媒体画像MI132に設定されたベクトルVecc1は、媒体画像基準位置RRP132と読取画像基準位置MRP1との間の位置関係を示す。また上記のように、ベクトルVecc1の終点の座標(xc0,yc0)に媒体画像基準位置RRP122が一致するように媒体画像MI122が再配置される一方で、ベクトルVecc1の終点の座標(xc0,yc0)に媒体画像基準位置RRP132が一致するように媒体画像MI132が再配置される。つまり、画像処理部15は、媒体画像MI122と対になる媒体画像MI132を、媒体画像MI122と媒体画像MI132との間において位置関係が同一になるように再配置する。Further, as described above, the medium image MI122 and the medium image MI132 are paired images of color chart images. Further, as described above, the vector Vec c1 set in the medium image MI132 is the same as the vector Vec c1 set in the medium image MI122. Further, as described above, the vector Vec c1 set in the medium image MI122 indicates the positional relationship between the medium image reference position RRP122 and the scanned image reference position MRP1, and the vector Vec c1 set in the medium image MI132 is The positional relationship between the medium image reference position RRP132 and the scanned image reference position MRP1 is shown. Also as described above, while the medium image MI122 is repositioned to medium image reference position RRP122 the coordinates (x c0, y c0) of the end point of the vector Vec c1 match, the end point of the vector Vec c1 coordinates ( The medium image MI132 is rearranged so that the medium image reference position RRP132 coincides with x c0 , y c0). That is, the image processing unit 15 rearranges the medium image MI132 paired with the medium image MI122 so that the positional relationship between the medium image MI122 and the medium image MI132 is the same.

また、ステップS113の処理(図2)によって制御部11が選択した読取画像RI14に含まれる媒体画像MI14の外接矩形BR14に傾きは無いため(図13B)、媒体画像MI14に対して正立補正が行われても(ステップS115)、媒体画像MI14は回転されない。 Further, since the circumscribed rectangle BR14 of the medium image MI14 included in the scanned image RI14 selected by the control unit 11 by the process of step S113 (FIG. 2) has no inclination (FIG. 13B), the upright correction is performed with respect to the medium image MI14. Even if this is done (step S115), the medium image MI14 is not rotated.

また、読取画像RI14は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI14に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI131と媒体画像MI14とは、表紙画像と見開き画像との対画像であると判定される。 Further, since the scanned image RI 14 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI 14 (step S121). .. By this pair image detection process, it is determined that the medium image MI131 and the medium image MI14 are paired images of the cover image and the spread image.

媒体画像MI131と媒体画像MI14とが表紙画像と見開き画像との対画像であると判定されたため、画像処理部15は、媒体画像MI14に対して位置設定処理Bを行う(ステップS129)。媒体画像MI14に対する位置設定処理Bでは、画像処理部15は、図13Cに示すように、読取画像基準位置MRP1(座標(xs0,ys0))を始点とし媒体画像基準位置RRP14(座標(xb3,yb0))を終点とするベクトルVecb3を、原稿台画像MTIに対する媒体画像MI14の位置として設定する。つまり、媒体画像MI14に設定されたベクトルVecb3は、媒体画像基準位置RRP14と読取画像基準位置MRP1との間の位置関係を示す。ここで、図13Cにおいて、媒体画像基準位置RRP14のX座標の値xb3は図13Bにおける媒体画像MI14の媒体画像基準位置RRP14のX座標の値xb3と同一である一方で、媒体画像基準位置RRP14のY座標の値yb0は図12Cにおける媒体画像基準位置RRP131のY座標の値yb0と同一である。Since it is determined that the medium image MI131 and the medium image MI14 are paired images of the cover image and the spread image, the image processing unit 15 performs the position setting process B on the medium image MI14 (step S129). In the position setting process B for the medium image MI14, as shown in FIG. 13C, the image processing unit 15 starts from the scanned image reference position MRP1 (coordinates (x s0 , y s0 )) and media image reference position RRP14 (coordinates (x)). The vector Vec b3 ending in b3, y b0 )) is set as the position of the medium image MI14 with respect to the platen image MTI. That is, the vector Vec b3 set in the medium image MI14 indicates the positional relationship between the medium image reference position RRP14 and the scanned image reference position MRP1. Here, in FIG. 13C, the X-coordinate value x b3 of the medium image reference position RRP14 is the same as the X-coordinate value x b3 of the medium image reference position RRP14 of the medium image MI14 in FIG. 13B, while the medium image reference position. the value y b0 Y coordinate of RRP14 is identical to the value y b0 Y coordinate of the media image reference position RRP131 in FIG 12C.

そして、画像処理部15は、図13Cに示すように、読取画像RI14において、媒体画像MI14に設定したベクトルVecb3に基づいて媒体画像MI14を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecb3の終点の座標(xb3,yb0)に媒体画像基準位置RRP14が一致するように、媒体画像MI14を再配置する。画像処理部15は、媒体画像MI14の再配置後の読取画像RI14Fを記憶部13に記憶させる。媒体画像MI14の再配置により、再配置後の媒体画像MI14の配置は、再配置前の媒体画像MI14の配置(つまり、正立補正後の媒体画像MI14の配置)から変更される。Then, as shown in FIG. 13C, the image processing unit 15 rearranges the medium image MI14 based on the vector Vec b3 set in the medium image MI14 in the scanned image RI14 (step S135). That is, the image processing unit 15 rearranges the medium image MI14 so that the medium image reference position RRP14 coincides with the coordinates (x b3 , y b0 ) of the end point of the vector Vec b3. The image processing unit 15 stores the read image RI14F after rearranging the medium image MI14 in the storage unit 13. Due to the rearrangement of the medium image MI14, the arrangement of the medium image MI14 after the rearrangement is changed from the arrangement of the medium image MI14 before the rearrangement (that is, the arrangement of the medium image MI14 after the upright correction).

上記のように、画像処理部15は、ベクトルVecb3の終点の座標(xb3,yb0)に媒体画像基準位置RRP14が一致するように、媒体画像MI14を再配置する(図13C)。また上記のように、媒体画像基準位置RRP14のX座標の値xb3は正立補正後の媒体画像MI14における媒体画像基準位置RRP14のX座標の値xb3と同一である一方で、媒体画像基準位置RRP14のY座標の値yb0は図12Cにおける媒体画像基準位置RRP131のY座標の値yb0と同一である。また上記のように、媒体画像MI14と媒体画像MI131とは表紙画像と見開き画像との対画像である。また、一方の媒体画像と他方の媒体画像とが表紙画像と見開き画像との対画像であると判定されるのは(ステップS189)、一方の媒体画像の縦長さと他方の媒体画像の縦長さとの差が閾値TH2未満であり(ステップS179:Yes)、一方の媒体画像の横長さと他方の媒体画像の横長さとの差が閾値TH3以上であり(ステップS181:No)、かつ、他方の媒体画像の横長さが一方の媒体画像の横長さの所定範囲にある場合である(ステップS187:Yes)。つまり、画像処理部15は、媒体画像MI131の縦長さと媒体画像MI14の縦長さとの差が閾値TH2未満であり、媒体画像MI131の横長さと媒体画像MI14の横長さとの差が閾値TH3以上であり、かつ、媒体画像MI131の横長さが媒体画像MI14の横長さの所定範囲にあるときは、媒体画像MI14の再配置の際に、媒体画像MI14の縦方向の配置を変更する一方で、媒体画像MI14の横方向の配置を変更しない。As described above, the image processing unit 15 rearranges the medium image MI14 so that the medium image reference position RRP14 coincides with the coordinates (x b3 , y b0 ) of the end point of the vector Vec b3 (FIG. 13C). Further, as described above, the X coordinate value x b3 of the medium image reference position RRP14 is the same as the X coordinate value x b3 of the medium image reference position RRP14 in the medium image MI14 after the erecting correction, while the medium image reference. position value y b0 Y coordinate of RRP14 is identical to the value y b0 Y coordinate of the media image reference position RRP131 in FIG 12C. Further, as described above, the medium image MI14 and the medium image MI131 are paired images of the cover image and the spread image. Further, it is determined that one medium image and the other medium image are paired images of the cover image and the spread image (step S189), that is, the vertical length of one medium image and the vertical length of the other medium image. The difference is less than the threshold TH2 (step S179: Yes), the difference between the landscape of one medium image and the landscape of the other medium image is greater than or equal to the threshold TH3 (step S181: No), and of the other medium image. This is a case where the horizontal length is within a predetermined range of the horizontal length of one medium image (step S187: Yes). That is, in the image processing unit 15, the difference between the vertical length of the medium image MI131 and the vertical length of the medium image MI14 is less than the threshold value TH2, and the difference between the horizontal length of the medium image MI131 and the horizontal length of the medium image MI14 is the threshold value TH3 or more. When the horizontal length of the medium image MI131 is within the predetermined range of the horizontal length of the medium image MI14, the vertical arrangement of the medium image MI14 is changed when the medium image MI14 is rearranged, while the medium image MI14 is rearranged. Do not change the horizontal arrangement of.

読取画像RI14は、一冊の古書の一連の複数の読取画像の中の最後の画像であるため、読取画像RI14に対してステップS113〜S135の処理が完了したときに(ステップS137:Yes)、処理はステップS139(抽出領域設定)へ進む。 Since the scanned image RI14 is the last image in a series of a plurality of scanned images of one old book, when the processing of steps S113 to S135 is completed for the scanned image RI14 (step S137: Yes), The process proceeds to step S139 (extraction area setting).

抽出領域の設定にあたり、画像処理部15は、記憶部13から読取画像RI11F,RI12F,RI13F,RI14Fを取得する。読取画像RI11Fには、正立補正後の媒体画像MI11が含まれ(図14A)、読取画像RI12Fには、正立補正後及び配置変更後の媒体画像MI121と、正立補正後の媒体画像MI122とが含まれる(図14B)。また、読取画像RI13Fには、正立補正後及び配置変更後の媒体画像MI131と、正立補正後及び配置変更後の媒体画像MI132とが含まれる(図14C)。また、読取画像RI14Fには、正立補正後及び配置変更後の媒体画像MI14が含まれる(図14D)。 In setting the extraction area, the image processing unit 15 acquires the read images RI11F, RI12F, RI13F, and RI14F from the storage unit 13. The scanned image RI11F includes the medium image MI11 after the erecting correction (FIG. 14A), and the scanned image RI12F includes the medium image MI121 after the erecting correction and the arrangement change, and the medium image MI122 after the erecting correction. And are included (Fig. 14B). Further, the scanned image RI13F includes a medium image MI131 after the upright correction and the arrangement change, and a medium image MI132 after the upright correction and the arrangement change (FIG. 14C). Further, the scanned image RI14F includes the medium image MI14 after the upright correction and the arrangement change (FIG. 14D).

画像処理部15は、図14A〜Dに示すように、正立補正後の媒体画像MI11,MI122と、正立補正後及び配置変更後の媒体画像MI121,MI131,MI132,MI14とに基づいて、読取画像RI11F,RI12F,RI13F,RI14Fに対して、位置及びサイズが同一の抽出領域EA11を設定する(ステップS139)。つまり、矩形の抽出領域EA11の縦長さDstH1は読取画像RI11F,RI12F,RI13F,RI14Fのすべてにおいて同一である。また、矩形の抽出領域EA11の横長さDstW1は読取画像RI11F,RI12F,RI13F,RI14Fのすべてにおいて同一である。また、読取画像基準位置MRP1を始点とし、矩形の抽出領域EA11の左上の頂点を終点とするベクトルVecLd0は、読取画像RI11F,RI12F,RI13F,RI14Fのすべてにおいて同一である。また、読取画像基準位置MRP1を始点とし、矩形の抽出領域EA11の右上の頂点を終点とするベクトルVecRd0は、読取画像RI11F,RI12F,RI13F,RI14Fのすべてにおいて同一である。また、読取画像RI11Fに設定された抽出領域EA11には媒体画像MI11が存在し(図14A)、読取画像RI12Fに設定された抽出領域EA11には媒体画像MI121,122が存在し(図14B)、読取画像RI13Fに設定された抽出領域EA11には媒体画像MI131,132が存在し(図14C)、読取画像RI14Fに設定された抽出領域EA11には媒体画像MI14が存在する(図14D)。As shown in FIGS. 14A to 14D, the image processing unit 15 is based on the medium images MI11, MI122 after the erecting correction and the medium images MI121, MI131, MI132, MI14 after the erecting correction and the arrangement change. An extraction region EA11 having the same position and size is set for the scanned images RI11F, RI12F, RI13F, and RI14F (step S139). That is, the vertical length DstH1 of the rectangular extraction region EA11 is the same in all of the scanned images RI11F, RI12F, RI13F, and RI14F. Further, the horizontal length DstW1 of the rectangular extraction region EA11 is the same in all of the scanned images RI11F, RI12F, RI13F, and RI14F. Further, the vector VecL d0 starting from the scanned image reference position MRP1 and ending at the upper left vertex of the rectangular extraction region EA11 is the same in all of the scanned images RI11F, RI12F, RI13F, and RI14F. Further, the vector VecR d0 starting from the scanned image reference position MRP1 and ending at the upper right vertex of the rectangular extraction region EA11 is the same in all of the scanned images RI11F, RI12F, RI13F, and RI14F. Further, the medium image MI11 exists in the extraction area EA11 set in the scanned image RI11F (FIG. 14A), and the medium images MI121 and 122 exist in the extraction area EA11 set in the scanned image RI12F (FIG. 14B). The medium images MI131 and 132 exist in the extraction area EA11 set in the scanned image RI13F (FIG. 14C), and the medium image MI14 exists in the extraction area EA11 set in the scanned image RI14F (FIG. 14D).

そこで、画像処理部15は、図15A〜Dに示すように、ステップS139で設定した同一の抽出領域EA11に従って、読取画像RI11Fから媒体画像MI11を抽出し、読取画像RI12Fから媒体画像MI121,MI122を抽出し、読取画像RI13Fから媒体画像MI131,MI132を抽出し、読取画像RI14Fから媒体画像MI14を抽出する(ステップS141)。 Therefore, as shown in FIGS. 15A to 15D, the image processing unit 15 extracts the medium image MI11 from the scanned image RI11F according to the same extraction region EA11 set in step S139, and extracts the medium images MI121 and MI122 from the scanned image RI12F. The media images MI131 and MI132 are extracted from the scanned image RI13F, and the medium image MI14 is extracted from the scanned image RI14F (step S141).

図16A〜C、図17、図18A〜C、及び、図19A〜Cに、媒体画像の再配置後の読取画像に対する抽出領域の設定例を示す。一例として、読取画像RI1Fには外接矩形BR1を有する再配置後の媒体画像MI1が含まれ(図16A)、読取画像RI2Fには外接矩形BR2を有する再配置後の媒体画像MI2が含まれ(図16B)、読取画像RI3Fには、外接矩形BR3を有する再配置後の媒体画像MI3と、外接矩形BR4を有する再配置後の媒体画像MI4とが含まれる(図16C)。また、読取画像RI1F,RI2F,RI3Fのすべてに読取画像基準位置MRP1が設定されている(図16A〜C)。 16A to 16C, FIGS. 17, 18A to 18C, and 19A to 19C show an example of setting an extraction area for the scanned image after rearranging the medium image. As an example, the scanned image RI1F includes a rearranged medium image MI1 having an extrinsic rectangle BR1 (FIG. 16A), and the scanned image RI2F includes a rearranged medium image MI2 having an extrinsic rectangle BR2 (FIG. 16A). 16B), the scanned image RI3F includes a rearranged medium image MI3 having an extrinsic rectangle BR3 and a rearranged medium image MI4 having an extrinsic rectangle BR4 (FIG. 16C). Further, the scanned image reference position MRP1 is set in all of the scanned images RI1F, RI2F, and RI3F (FIGS. 16A to 16C).

画像処理部15は、読取画像RI1F,RI2F,RI3Fにおける再配置後のすべての媒体画像MI1,MI2,MI3,MI4を包含する外接矩形に基づいて抽出領域EA1を設定する。例えば、画像処理部15は、図17に示すように、外接矩形BR1,BR2,BR3,BR4のすべてを包含する矩形を抽出領域EA1に設定する。また、画像処理部15は、図17に示すように、読取画像基準位置MRP1を始点とし、抽出領域EA1の左上の頂点を終点とするベクトルVEA1aと、読取画像基準位置MRP1を始点とし、抽出領域EA1の右上の頂点を終点とするベクトルVEA1bとを、抽出領域EA1に対して設定する。 The image processing unit 15 sets the extraction region EA1 based on the circumscribed rectangle including all the medium images MI1, MI2, MI3, MI4 after the rearrangement in the scanned images RI1F, RI2F, and RI3F. For example, as shown in FIG. 17, the image processing unit 15 sets a rectangle including all of the circumscribed rectangles BR1, BR2, BR3, and BR4 in the extraction region EA1. Further, as shown in FIG. 17, the image processing unit 15 has a vector VEA1a whose starting point is the scanned image reference position MRP1 and whose end point is the upper left apex of the extraction area EA1 and whose start point is the scanned image reference position MRP1. A vector VEA1b whose end point is the upper right vertex of the EA1 is set with respect to the extraction region EA1.

次いで、画像処理部15は、ベクトルVEA1a,VEA1bが設定された抽出領域EA1を読取画像RI1F,RI2F,RI3Fの各々に設定する(図18A〜C)。よって、読取画像RI1Fに設定された抽出領域EA1には媒体画像MI1が存在し(図18A)、読取画像RI2Fに設定された抽出領域EA1には媒体画像MI2が存在し(図18B)、読取画像RI3Fに設定された抽出領域EA1には媒体画像MI3,MI4が存在する(図18C)。画像RI1F,RI2F,RI3Fの各々に設定された抽出領域EA1は、画像RI1F,RI2F,RI3Fのすべてにおいて、位置及びサイズが同一である。 Next, the image processing unit 15 sets the extraction region EA1 in which the vectors VEA1a and VEA1b are set in each of the scanned images RI1F, RI2F, and RI3F (FIGS. 18A to 18C). Therefore, the medium image MI1 exists in the extraction region EA1 set in the scanned image RI1F (FIG. 18A), and the medium image MI2 exists in the extraction region EA1 set in the scanned image RI2F (FIG. 18B). The medium images MI3 and MI4 are present in the extraction region EA1 set in RI3F (FIG. 18C). The extraction region EA1 set in each of the images RI1F, RI2F, and RI3F has the same position and size in all of the images RI1F, RI2F, and RI3F.

そこで、画像処理部15は、図19A〜Cに示すように、位置及びサイズが同一の抽出領域EA1に従って、読取画像RI1Fから媒体画像MI1を抽出し、読取画像RI2Fから媒体画像MI2を抽出し、読取画像RI3Fから媒体画像MI3,MI4を抽出する。 Therefore, as shown in FIGS. 19A to 19C, the image processing unit 15 extracts the medium image MI1 from the scanned image RI1F and extracts the medium image MI2 from the scanned image RI2F according to the extraction region EA1 having the same position and size. The medium images MI3 and MI4 are extracted from the scanned image RI3F.

図20に、古書のオモテ表紙の画像、見開き12画像、見開き34画像、…、ウラ表紙の画像の一連の読取画像の一例と、それらの読取画像に対して図2示す処理が行われた後の画像(つまり、処理後画像)の一例とを示す。 FIG. 20 shows an example of a series of scanned images of the front cover image of an old book, 12 spread images, 34 spread images, ..., Back cover images, and after the processed images shown in FIG. 2 are performed on the scanned images. An example of the image (that is, the processed image) is shown.

以上のように、実施例1では、画像処理装置10は、記憶部13と、画像処理部15とを有する。記憶部13は、各々が媒体画像を含む一連の複数の読取画像を記憶する。画像処理部15は、複数の読取画像の各々において、媒体画像が存在する領域(以下では「媒体画像領域」と呼ぶことがある)に媒体画像基準位置を設定し、媒体画像領域以外の領域に読取画像基準位置を設定する。また、画像処理部15は、媒体画像基準位置と読取画像基準位置との間の位置関係に基づいて、読取画像内で媒体画像を再配置する。また、画像処理部15は、再配置後の媒体画像に基づいて、複数の読取画像において同一の抽出領域を設定する。そして、画像処理部15は、設定した抽出領域に従って、複数の読取画像の各々から媒体画像を抽出する。 As described above, in the first embodiment, the image processing device 10 has a storage unit 13 and an image processing unit 15. The storage unit 13 stores a series of a plurality of scanned images, each including a medium image. In each of the plurality of scanned images, the image processing unit 15 sets a medium image reference position in an area where the medium image exists (hereinafter, may be referred to as a “medium image area”), and sets the medium image reference position in an area other than the medium image area. Set the scanned image reference position. Further, the image processing unit 15 rearranges the medium image in the scanned image based on the positional relationship between the medium image reference position and the scanned image reference position. Further, the image processing unit 15 sets the same extraction region in a plurality of scanned images based on the medium image after rearrangement. Then, the image processing unit 15 extracts a medium image from each of the plurality of scanned images according to the set extraction area.

こうすることで、一連の複数の読取画像にそれぞれ含まれる媒体画像間における位置ズレを抑制することができる。よって、一連の複数の読取画像にそれぞれ含まれる媒体画像を連続して見る者の違和感を軽減することができる。このため、例えば、オペレータがオーバーヘッド型スキャナの原稿台に本を設置する際に、ページ間での媒体画像の位置ズレが生じないように気をつけながら慎重に設置することが不要になる。よって、例えば、オーバーヘッド型のスキャナを用いて一冊の本を電子データ化する場合のオペレータの作業効率を向上することができる。 By doing so, it is possible to suppress the positional deviation between the medium images included in each of the series of a plurality of scanned images. Therefore, it is possible to reduce the discomfort of a person who continuously views the medium images included in each of a series of a plurality of scanned images. For this reason, for example, when an operator installs a book on the platen of an overhead scanner, it is not necessary to carefully install the book while being careful not to shift the position of the medium image between pages. Therefore, for example, it is possible to improve the work efficiency of the operator when converting one book into electronic data by using an overhead scanner.

また、実施例1では、記憶部13は少なくとも二つの読取画像を記憶する。画像処理部15は、二つの読取画像のうちの一方の読取画像に含まれる媒体画像と、二つの読取画像のうちの他方の読取画像に含まれ、かつ、一方の読取画像に含まれる媒体画像と対になる媒体画像との間において、位置関係が同一になるように、他方の読取画像に含まれる媒体画像を再配置する。 Further, in the first embodiment, the storage unit 13 stores at least two read images. The image processing unit 15 includes a medium image included in one of the two scanned images and a medium image included in the other scanned image of the two scanned images and included in one of the scanned images. The medium image included in the other scanned image is rearranged so that the positional relationship between the image and the paired medium image is the same.

こうすることで、互いに対になる媒体画像間(例えば、見開き画像同士間、または、カラーチャート画像同士間)における位置ズレを抑制することができる。 By doing so, it is possible to suppress the positional deviation between the medium images paired with each other (for example, between the spread images or between the color chart images).

また、実施例1では、画像処理部15は、複数の読取画像における再配置後のすべての媒体画像の外接矩形を包含する矩形に基づいて抽出領域を設定する。 Further, in the first embodiment, the image processing unit 15 sets the extraction region based on the rectangle including the circumscribed rectangle of all the medium images after rearrangement in the plurality of scanned images.

こうすることで、特に媒体画像が見開き画像である場合に、適切な抽出領域を設定することができる。また、読取画像に例えば見開き画像とカラーチャート画像のような互いに別種の媒体画像が含まれる場合に、適切な抽出領域を設定することができる。 By doing so, an appropriate extraction area can be set, especially when the medium image is a spread image. Further, when the scanned image includes different types of medium images such as a spread image and a color chart image, an appropriate extraction region can be set.

また、実施例1では、記憶部13は少なくとも二つの読取画像を記憶する。画像処理部15は、二つの読取画像のうちの一方の読取画像に含まれる媒体画像の縦長さと、二つの読取画像のうちの他方の読取画像に含まれる媒体画像の縦長さとの差が閾値TH2未満であり、一方の読取画像に含まれる媒体画像の横長さと他方の読取画像に含まれる媒体画像の横長さとの差が閾値TH3以上であり、かつ、他方の読取画像に含まれる媒体画像の横長さが一方の読取画像に含まれる媒体画像の横長さの所定範囲にあるときは、他方の読取画像に含まれる媒体画像を再配置する際に、縦方向の配置を変更する一方で横方向の配置を変更しない。 Further, in the first embodiment, the storage unit 13 stores at least two read images. In the image processing unit 15, the difference between the vertical length of the medium image included in one of the two scanned images and the vertical length of the medium image included in the other scanned image of the two scanned images is the threshold TH2. Less than, the difference between the horizontal length of the medium image included in one scanned image and the horizontal length of the medium image included in the other scanned image is equal to or more than the threshold TH3, and the horizontal length of the medium image included in the other scanned image. When the width is within a predetermined range of the horizontal length of the medium image included in one scanned image, when rearranging the medium image included in the other scanned image, the vertical arrangement is changed while the horizontal arrangement is changed. Do not change the placement.

こうすることで、例えば、媒体画像として、表紙の画像(つまり、1ページ分の画像)と見開き画像(つまり、2ページ分の画像)とが混在する場合に、媒体画像の過度な配置変更を抑制することができる。よって、表紙の画像と見開き画像とを連続して見る者の違和感を軽減することができる。 By doing so, for example, when the cover image (that is, the image for one page) and the spread image (that is, the image for two pages) are mixed as the medium image, the arrangement of the medium image is excessively changed. It can be suppressed. Therefore, it is possible to reduce the discomfort of a person who continuously views the cover image and the spread image.

また、実施例1では、画像処理部15は、対になる媒体画像が存在しないときに警告を出力する。 Further, in the first embodiment, the image processing unit 15 outputs a warning when there is no paired medium image.

こうすることで、オペレータは、対になる媒体画像が存在しないことを知ることができる。このため、オペレータは、対になる媒体画像が存在しないときに、処理を続行するか否かを適宜選択可能になる。 By doing so, the operator can know that there is no paired medium image. Therefore, the operator can appropriately select whether or not to continue the process when the paired medium image does not exist.

以上、実施例1について説明した。 The first embodiment has been described above.

[実施例2]
実施例2では、実施例1と同様に、一冊の古書の各ページをスキャナによって読み取って一冊の本を電子データ化する場合を一例に挙げて説明する。但し、実施例2では、図21に示すように、オペレータが右めくりの古書BKを裁断して背を切り離すことにより1枚ずつバラバラになった各ページをADF(Auto Document Feeder)付きのスキャナに連続して読み取らせる場合を一例に挙げて説明する。図21は、実施例2の古書の一例を示す図である。1冊の古書BKが切断されることにより生じた複数枚の原稿はオペレータによってまとめてシューターに置かれる。シューターに置かれた複数枚の原稿はADFによって1枚ずつ連続してスキャナの中に取り込まれ、スキャナによって各原稿の表面(おもてめん)の画像と裏面(うらめん)の画像とが読み取られる。
[Example 2]
In the second embodiment, similarly to the first embodiment, a case where each page of one old book is read by a scanner and one book is converted into electronic data will be described as an example. However, in the second embodiment, as shown in FIG. 21, the operator cuts the old book BK turned to the right and cuts off the back, so that each page separated one by one is used as a scanner with an ADF (Auto Document Feeder). The case of continuous reading will be described as an example. FIG. 21 is a diagram showing an example of an old book of Example 2. A plurality of manuscripts generated by cutting one old book BK are put together by an operator on a shooter. Multiple originals placed on the shooter are continuously scanned into the scanner one by one by the ADF, and the scanner reads the front side (front side) image and the back side (back side) image of each document. Be done.

<画像処理装置の構成>
実施例2の画像処理装置の構成例については、実施例1(図1)のものと同一であるため、説明を省略する。
<Configuration of image processing device>
Since the configuration example of the image processing apparatus of the second embodiment is the same as that of the first embodiment (FIG. 1), the description thereof will be omitted.

<画像処理装置の処理・動作>
図22、図23、図24、図25、及び、図37は、実施例2の画像処理装置の処理フローの一例を示す図である。図26A〜C、図27A〜C、図28A〜C、図29A〜C、図30A〜D、図31A〜D、図32、図33A〜C、図34、図35A〜C、図36A〜C、及び、図38A〜Cは、実施例2の画像処理装置の動作例の説明に供する図である。
<Processing and operation of image processing equipment>
22, FIG. 23, FIG. 24, FIG. 25, and FIG. 37 are diagrams showing an example of the processing flow of the image processing apparatus of the second embodiment. 26A-C, 27A-C, 28A-C, 29A-C, 30A-D, 31A-D, 32, 33A-C, 34, 35A-C, 36A-C. , And FIGS. 38A to 38C are diagrams for explaining an operation example of the image processing apparatus of the second embodiment.

図22に示す処理フローは、実施例1同様、例えば、画像読取装置10が有する処理開始ボタン(図示省略)がオペレータによって押下されたときに開始される。 The processing flow shown in FIG. 22 is started when, for example, the processing start button (not shown) of the image reading device 10 is pressed by the operator, as in the first embodiment.

図22のステップS101では、制御部11は、記憶部13に記憶されている一連の複数の読取画像の中から、画像処理部15での処理の対象となる読取画像を選択して記憶部13から取得し、取得した読取画像を画像処理部15へ出力する。但し、白紙の画像は予め除去されて記憶部13には記憶されていない。 In step S101 of FIG. 22, the control unit 11 selects a scanned image to be processed by the image processing unit 15 from a series of a plurality of scanned images stored in the storage unit 13, and the storage unit 13 And outputs the acquired scanned image to the image processing unit 15. However, the blank image has been removed in advance and is not stored in the storage unit 13.

例えば、一冊の古書の読取画像として、オモテ表紙の画像、1ページ目の画像、2ページ目の画像、…、ウラ表紙の画像の一連の画像が記憶部13に記憶されている場合は、制御部11は、ステップS101〜S109の1回目の処理ループにおけるステップS101でオモテ表紙の画像を、ステップS101〜S109の2回目の処理ループにおけるステップS101で1ページ目の画像を、ステップS101〜S109の3回目の処理ループにおけるステップS101で3ページ目の画像を順に記憶部13から取得する。また、制御部11は、ステップS101〜S109の最後の処理ループにおけるステップS101でウラ表紙の画像を記憶部13から取得する。また例えば、オモテ表紙の画像、1ページ目の画像、2ページ目の画像、…、ウラ表紙の画像の一連の画像は1つのファイルとして記憶部13に記憶されており、制御部11は、処理対象のファイルから1ページ目の画像、2ページ目の画像、…、ウラ表紙の画像の各画像を順に選択する。処理対象のファイルは、例えば、オペレータによって任意に選択される。 For example, when a series of images of the front cover image, the first page image, the second page image, ..., The back cover image are stored in the storage unit 13 as the read image of one old book, The control unit 11 displays the image of the front cover in step S101 in the first processing loop of steps S101 to S109, the image of the first page in step S101 in the second processing loop of steps S101 to S109, and the image of the first page in steps S101 to S109. In step S101 in the third processing loop of the above, the images on the third page are sequentially acquired from the storage unit 13. Further, the control unit 11 acquires an image of the back cover from the storage unit 13 in step S101 in the final processing loop of steps S101 to S109. Further, for example, a series of images of the front cover image, the first page image, the second page image, ..., The back cover image are stored as one file in the storage unit 13, and the control unit 11 processes them. From the target file, each image of the first page image, the second page image, ..., The back cover image is selected in order. The file to be processed is arbitrarily selected by the operator, for example.

図22において、ステップS103〜S105の処理については、実施例1(図2)のものと同一であるため、説明を省略する。 In FIG. 22, the processes of steps S103 to S105 are the same as those of the first embodiment (FIG. 2), and thus the description thereof will be omitted.

図22のステップS201では、画像処理部15は、媒体画像基準位置設定処理を行う。 In step S201 of FIG. 22, the image processing unit 15 performs the medium image reference position setting process.

図23に、媒体画像基準位置設定処理の処理フローの一例を示す。図23におけるステップS151,S153,S155,S161の処理については、実施例1(図3,図5)に示したものと同一であるため、説明を省略する。 FIG. 23 shows an example of the processing flow of the medium image reference position setting process. The processing of steps S151, S153, S155, and S161 in FIG. 23 is the same as that shown in the first embodiment (FIGS. 3 and 5), and thus the description thereof will be omitted.

図23のステップS211では、画像処理部15は、裁断箇所検出処理を行う。 In step S211 of FIG. 23, the image processing unit 15 performs cutting location detection processing.

図24及び図25に、裁断箇所検出処理の処理フローの一例を示す。図24に裁断箇所検出処理の第一処理例を示し、図25に裁断箇所検出処理の第二処理例を示す。以下、裁断箇所検出処理について第一処理例と第二処理例とに分けて説明する。 24 and 25 show an example of the processing flow of the cutting portion detection process. FIG. 24 shows an example of the first processing of the cutting location detection process, and FIG. 25 shows an example of the second processing of the cutting location detection process. Hereinafter, the cutting portion detection process will be described separately for the first process example and the second process example.

<裁断箇所検出処理の第一処理例(図24)>
図24のステップS221では、画像処理部15は、ステップS101で順に選択される一連の読取画像が左めくりの画像であるか否かを判定する。電子データ化の対象となる古書が左めくりの書物であるか右めくりの書物であるかは、オペレータによって画像処理装置10に予め指示され、「左めくり」または「右めくり」の指示結果が記憶部13に予め記憶されている。画像処理部15は、記憶部13に記憶されている指示結果が「左めくり」であるときは一連の複数の読取画像が左めくりの画像であると判定し、記憶部13に記憶されている指示結果が「右めくり」であるときは一連の複数の読取画像が右めくりの画像であると判定する。一連の複数の読取画像が左めくりの画像である場合は(ステップS221:Yes)、処理はステップS223へ進み、一連の複数の読取画像が右めくりの画像である場合は(ステップS221:No)、処理はステップS229へ進む。
<Example of first processing of cutting location detection processing (FIG. 24)>
In step S221 of FIG. 24, the image processing unit 15 determines whether or not the series of scanned images sequentially selected in step S101 is a left-turned image. Whether the old book to be converted into electronic data is a left-turning book or a right-turning book is instructed in advance by the operator to the image processing device 10, and the instruction result of "left-turning" or "right-turning" is stored. It is stored in advance in the unit 13. When the instruction result stored in the storage unit 13 is "left-turning", the image processing unit 15 determines that a series of a plurality of read images are left-turning images, and stores them in the storage unit 13. When the instruction result is "right-turning", it is determined that a series of a plurality of scanned images are right-turning images. When the series of the plurality of scanned images is a left-turned image (step S221: Yes), the process proceeds to step S223, and when the series of the plurality of scanned images is a right-turned image (step S221: No). , The process proceeds to step S229.

ステップS223では、画像処理部15は、ステップS101で選択された読取画像が奇数ページの画像であるか否かを判定する。ステップS101で選択された読取画像が奇数ページの画像である場合は(ステップS223:Yes)、処理はステップS225へ進み、ステップS101で選択された読取画像が偶数ページの画像である場合は(ステップS223:No)、処理はステップS227へ進む。 In step S223, the image processing unit 15 determines whether or not the scanned image selected in step S101 is an odd-numbered page image. If the scanned image selected in step S101 is an odd-numbered page image (step S223: Yes), the process proceeds to step S225, and if the scanned image selected in step S101 is an even-numbered page image (step). S223: No), the process proceeds to step S227.

ステップS229でも、画像処理部15は、ステップS101で選択された読取画像が奇数ページの画像であるか否かを判定する。ステップS101で選択された読取画像が奇数ページの画像である場合は(ステップS229:Yes)、処理はステップS227へ進み、ステップS101で選択された読取画像が偶数ページの画像である場合は(ステップS229:No)、処理はステップS225へ進む。 Also in step S229, the image processing unit 15 determines whether or not the scanned image selected in step S101 is an odd-numbered page image. If the scanned image selected in step S101 is an odd-numbered page image (step S229: Yes), the process proceeds to step S227, and if the scanned image selected in step S101 is an even-numbered page image (step). S229: No), the process proceeds to step S225.

ステップS225では、画像処理部15は、媒体画像における裁断箇所(以下では「媒体裁断箇所」と呼ぶことがある)が媒体画像の左側に存在すると判定する。 In step S225, the image processing unit 15 determines that the cut portion (hereinafter, may be referred to as “media cut portion”) in the medium image exists on the left side of the medium image.

一方で、テップS227では、画像処理部15は、媒体裁断箇所が媒体画像の右側に存在すると判定する。 On the other hand, in Tep S227, the image processing unit 15 determines that the medium cutting portion exists on the right side of the medium image.

<裁断箇所検出処理の第二処理例(図25)>
図25のステップS231では、画像処理部15は、ステップS101で選択された読取画像に含まれる媒体画像の左辺側のコーナー角度LAを算出する。例えば、画像処理部15は、媒体画像の左上コーナーの角度をコーナー角度LAとして算出する。
<Example of second processing of cutting location detection processing (Fig. 25)>
In step S231 of FIG. 25, the image processing unit 15 calculates the corner angle LA on the left side of the medium image included in the scanned image selected in step S101. For example, the image processing unit 15 calculates the angle of the upper left corner of the medium image as the corner angle LA.

次いで、ステップS233では、画像処理部15は、コーナー角度LAと直角(90°)との差分の絶対値である差分角度DLAを算出する。 Next, in step S233, the image processing unit 15 calculates the difference angle DLA, which is the absolute value of the difference between the corner angle LA and the right angle (90 °).

次いで、ステップS235では、画像処理部15は、ステップS101で選択された読取画像に含まれる媒体画像の右辺側のコーナー角度RAを算出する。例えば、画像処理部15は、媒体画像の右上コーナーの角度をコーナー角度RAとして算出する。 Next, in step S235, the image processing unit 15 calculates the corner angle RA on the right side of the medium image included in the scanned image selected in step S101. For example, the image processing unit 15 calculates the angle of the upper right corner of the medium image as the corner angle RA.

次いで、ステップS237では、画像処理部15は、コーナー角度RAと直角(90°)との差分の絶対値である差分角度DRAを算出する。 Next, in step S237, the image processing unit 15 calculates the difference angle DRA, which is the absolute value of the difference between the corner angle RA and the right angle (90 °).

次いで、ステップS239では、画像処理部15は、差分角度DLAが差分角度DRA未満であるか否かを判定する。差分角度DLAが差分角度DRA未満である場合は(ステップS239:Yes)、処理はステップS227へ進み、差分角度DLAが差分角度DRA以上である場合は(ステップS239:No)、処理はステップS225へ進む。 Next, in step S239, the image processing unit 15 determines whether or not the difference angle DLA is less than the difference angle DRA. If the difference angle DLA is less than the difference angle DRA (step S239: Yes), the process proceeds to step S227, and if the difference angle DLA is greater than or equal to the difference angle DRA (step S239: No), the process proceeds to step S225. move on.

ステップS227では、画像処理部15は、媒体裁断箇所が媒体画像の右側に存在すると判定する。 In step S227, the image processing unit 15 determines that the medium cutting portion exists on the right side of the medium image.

一方で、ステップS225では、画像処理部15は、媒体裁断箇所が媒体画像の左側に存在すると判定する。 On the other hand, in step S225, the image processing unit 15 determines that the medium cutting portion exists on the left side of the medium image.

以上、裁断箇所検出処理の処理例について説明した。 The processing example of the cutting portion detection processing has been described above.

図23に戻り、ステップS213では、画像処理部15は、媒体裁断箇所が媒体画像の左側に存在するか否かを判定する。媒体裁断箇所が媒体画像の左側に存在する場合は(つまり、ステップS225の処理が行われた場合は)(ステップS213:Yes)、処理はステップS215へ進む。一方で、媒体裁断箇所が媒体画像の右側に存在する場合は(つまり、ステップS227の処理が行われた場合は)(ステップS213:No)、処理はステップS217へ進む。 Returning to FIG. 23, in step S213, the image processing unit 15 determines whether or not the medium cutting portion exists on the left side of the medium image. If the medium cut portion exists on the left side of the medium image (that is, when the process of step S225 is performed) (step S213: Yes), the process proceeds to step S215. On the other hand, if the medium cut portion exists on the right side of the medium image (that is, when the process of step S227 is performed) (step S213: No), the process proceeds to step S217.

ステップS215では、画像処理部15は、読取画像に含まれる媒体画像の上辺の右コーナー点を媒体画像基準位置に設定する。 In step S215, the image processing unit 15 sets the right corner point of the upper side of the medium image included in the scanned image as the medium image reference position.

一方で、ステップS217では、画像処理部15は、読取画像に含まれる媒体画像の上辺の左コーナー点を媒体画像基準位置に設定する。 On the other hand, in step S217, the image processing unit 15 sets the left corner point of the upper side of the medium image included in the scanned image as the medium image reference position.

図22に戻り、ステップS109では、制御部11は、記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS101〜S201の処理が完了したか否かを判定する。記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS101〜S201の処理が完了した場合は(ステップS109:Yes)、処理はステップS111へ進む。一方で、記憶部13に記憶されている一連の複数の読取画像において、ステップS101〜S201の処理が行われていない読取画像が残っている場合は(ステップS109:No)、処理はステップS101へ戻る。例えば、一冊の古書の読取画像として、オモテ表紙の画像、1ページ目の画像、2ページ目の画像、…、ウラ表紙の画像の一連の画像が記憶部13に記憶されている場合は、ウラ表紙の画像に対してステップS101〜S201の処理が完了したときに、処理はステップS111へ進む。 Returning to FIG. 22, in step S109, the control unit 11 determines whether or not the processing of steps S101 to S201 has been completed for all of the series of scanned images stored in the storage unit 13. When the processing of steps S101 to S201 is completed for all of the series of scanned images stored in the storage unit 13 (step S109: Yes), the processing proceeds to step S111. On the other hand, if the scanned images that have not been processed in steps S101 to S201 remain in the series of scanned images stored in the storage unit 13 (step S109: No), the process proceeds to step S101. return. For example, when a series of images of the front cover image, the first page image, the second page image, ..., The back cover image, and the back cover image are stored in the storage unit 13 as the read image of one old book, When the processing of steps S101 to S201 is completed for the back cover image, the processing proceeds to step S111.

図22におけるステップS111〜S133の処理については、実施例1(図2)に示したものと同一であるため、説明を省略する。但し、実施例2の読取画像には見開き画像もカラーチャート画像も含まれていないため、実施例2のステップS121で行われる対象画像検出処理(図7)では、ステップS183またはステップS189の処理が行われるときに、単に、今回媒体画像と前回媒体画像とが互いに対になる画像であると判定される。 Since the processes of steps S111 to S133 in FIG. 22 are the same as those shown in the first embodiment (FIG. 2), the description thereof will be omitted. However, since the scanned image of Example 2 does not include a spread image or a color chart image, in the target image detection process (FIG. 7) performed in step S121 of Example 2, the process of step S183 or step S189 is performed. When this is done, it is simply determined that the current medium image and the previous medium image are paired images.

ステップS123では、画像処理部15は、ステップS171〜S191(図7)の処理において対画像が存在したか否かを判定する。図7においてステップS183またはステップS189の処理が行われた場合は、対画像が存在したと判定され、図7においてステップS191の処理が行われた場合は、対画像が存在しなかったと判定される。対画像が存在した場合は(ステップS123:Yes)、処理はステップS203へ進み、対画像が存在しなかった場合は(ステップS123:No)、処理はステップS131へ進む。 In step S123, the image processing unit 15 determines whether or not a pair of images exists in the processing of steps S171 to S191 (FIG. 7). When the processing of step S183 or step S189 is performed in FIG. 7, it is determined that the paired image exists, and when the processing of step S191 is performed in FIG. 7, it is determined that the paired image does not exist. .. If the paired image exists (step S123: Yes), the process proceeds to step S203, and if the paired image does not exist (step S123: No), the process proceeds to step S131.

ステップS203では、画像処理部15は、位置設定処理Dを行う。位置設定処理Dの詳細は後述する。ステップS203の処理後、処理はステップS135へ進む。 In step S203, the image processing unit 15 performs the position setting process D. The details of the position setting process D will be described later. After the process of step S203, the process proceeds to step S135.

次いで、ステップS135では、画像処理部15は、位置設定処理C,D(ステップS119,S203)の結果に基づいて、読取画像において媒体画像を再配置する。ステップS135の処理の詳細は後述する。 Next, in step S135, the image processing unit 15 rearranges the medium image in the scanned image based on the results of the position setting processes C and D (steps S119 and S203). Details of the process in step S135 will be described later.

次いで、ステップS137では、制御部11は、記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS113〜S135,S203の処理が完了したか否かを判定する。記憶部13に記憶されている一連の複数の読取画像のすべてに対してステップS113〜S135,S203の処理が完了した場合は(ステップS137:Yes)、処理はステップS205へ進む。一方で、記憶部13に記憶されている一連の複数の読取画像において、ステップS113〜S135,S203の処理が行われていない読取画像が残っている場合は(ステップS137:No)、処理はステップS113へ戻る。 Next, in step S137, the control unit 11 determines whether or not the processes of steps S113 to S135 and S203 have been completed for all of the series of scanned images stored in the storage unit 13. When the processes of steps S113 to S135 and S203 are completed for all of the series of scanned images stored in the storage unit 13 (step S137: Yes), the process proceeds to step S205. On the other hand, in a series of a series of scanned images stored in the storage unit 13, if the scanned images that have not been processed in steps S113 to S135 and S203 remain (step S137: No), the processing is a step. Return to S113.

ステップS205では、画像処理部15は、読取画像に対して抽出領域を設定する。ステップS205の処理の詳細は後述する。 In step S205, the image processing unit 15 sets an extraction area for the scanned image. Details of the process in step S205 will be described later.

次いで、ステップS141では、画像処理部15は、ステップS205で設定した抽出領域に基づいて、媒体画像を抽出する。ステップS141の処理の詳細は後述する。 Next, in step S141, the image processing unit 15 extracts the medium image based on the extraction region set in step S205. Details of the process in step S141 will be described later.

以下、図22、図23、図24及び図25に示した一連の処理に基づく動作例について説明する。 Hereinafter, an operation example based on the series of processes shown in FIGS. 22, 23, 24, and 25 will be described.

以下では、実施例1と同様に、画像処理部15は、矩形のすべての読取画像上に、読取画像の左上の頂点を原点として右方向にX座標、下方向にY座標を設定する。つまり、読取画像において、X座標は横方向の座標であり、Y座標は縦方向の座標である。 In the following, as in the first embodiment, the image processing unit 15 sets the X coordinate in the right direction and the Y coordinate in the downward direction with the upper left vertex of the scanned image as the origin on all the scanned images of the rectangle. That is, in the scanned image, the X coordinate is the horizontal coordinate and the Y coordinate is the vertical coordinate.

また例えば、読取画像RI21,RI22,RI23,RI24(図26A,図27A,図28A,図29A)は、一冊の古書の一連の複数の読取画像に相当する。読取画像RI21は、オモテ表紙の画像である媒体画像MI21を含み、媒体画像MI21における媒体裁断箇所CPは媒体画像MI21の右側に存在する(図26A)。つまり、読取画像RI21には、媒体画像MI21が配置されている。読取画像RI22は、1ページ目の画像である媒体画像MI22を含み、媒体画像MI22における媒体裁断箇所CPは媒体画像MI22の左側に存在する(図27A)。つまり、読取画像RI22には、媒体画像MI22が配置されている。読取画像RI23は、2ページ目の画像である媒体画像MI23を含み、媒体画像MI23における媒体裁断箇所CPは媒体画像MI23の右側に存在する(図28A)。つまり、読取画像RI23には、媒体画像MI23が配置されている。読取画像RI24は、ウラ表紙の画像である媒体画像MI24を含み、媒体画像MI24における媒体裁断箇所CPは媒体画像MI24の左側に存在する(図29A)。つまり、読取画像RI24には、媒体画像MI24が配置されている。 Further, for example, the scanned images RI21, RI22, RI23, and RI24 (FIGS. 26A, 27A, 28A, and 29A) correspond to a series of a plurality of scanned images of one old book. The scanned image RI21 includes the medium image MI21 which is an image of the front cover, and the medium cut portion CP in the medium image MI21 exists on the right side of the medium image MI21 (FIG. 26A). That is, the medium image MI21 is arranged on the scanned image RI21. The scanned image RI 22 includes the medium image MI 22 which is the image of the first page, and the medium cutting portion CP in the medium image MI 22 exists on the left side of the medium image MI 22 (FIG. 27A). That is, the medium image MI22 is arranged on the scanned image RI22. The scanned image RI23 includes the medium image MI23 which is the image of the second page, and the medium cutting portion CP in the medium image MI23 exists on the right side of the medium image MI23 (FIG. 28A). That is, the medium image MI23 is arranged on the scanned image RI23. The scanned image RI24 includes a medium image MI24 which is an image of the back cover, and the medium cut portion CP in the medium image MI24 is on the left side of the medium image MI24 (FIG. 29A). That is, the medium image MI24 is arranged on the scanned image RI24.

まず、ステップS103〜S105,S201の処理(図22)に従って、画像処理部15は、読取画像RI21,RI22,RI23,RI24の各々に対して、図26B、図27B、図28B、図29Bに示すように動作する。 First, according to the processing of steps S103 to S105 and S201 (FIG. 22), the image processing unit 15 shows FIGS. 26B, 27B, 28B, and 29B for each of the scanned images RI21, RI22, RI23, and RI24. Works like this.

すなわち、図26Bに示すように、画像処理部15は、媒体画像MI21の外接矩形BR21を検出し、検出した外接矩形BR21の重心GB21を算出する。また、画像処理部15は、媒体裁断箇所CPが媒体画像MI21の右側に存在するため、外接矩形BR21の左上の頂点を媒体画像基準位置RRP21に設定する。 That is, as shown in FIG. 26B, the image processing unit 15 detects the circumscribed rectangle BR21 of the medium image MI21 and calculates the center of gravity GB21 of the detected circumscribed rectangle BR21. Further, since the medium cutting portion CP exists on the right side of the medium image MI21, the image processing unit 15 sets the upper left apex of the circumscribed rectangle BR21 at the medium image reference position RRP21.

また、図27Bに示すように、画像処理部15は、媒体画像MI22の外接矩形BR22を検出し、検出した外接矩形BR22の重心GB22を算出する。また、画像処理部15は、媒体裁断箇所CPが媒体画像MI22の左側に存在するため、外接矩形BR22の右上の頂点を媒体画像基準位置RRP22に設定する。 Further, as shown in FIG. 27B, the image processing unit 15 detects the circumscribed rectangle BR22 of the medium image MI22 and calculates the center of gravity GB22 of the detected circumscribed rectangle BR22. Further, since the medium cutting portion CP exists on the left side of the medium image MI22, the image processing unit 15 sets the upper right apex of the circumscribed rectangle BR22 at the medium image reference position RRP22.

また、図28Bに示すように、画像処理部15は、媒体画像MI23の外接矩形BR23を検出し、検出した外接矩形BR23の重心GB23を算出する。また、画像処理部15は、媒体裁断箇所CPが媒体画像MI23の右側に存在するため、外接矩形BR23の左上の頂点を媒体画像基準位置RRP23に設定する。 Further, as shown in FIG. 28B, the image processing unit 15 detects the circumscribed rectangle BR23 of the medium image MI23 and calculates the center of gravity GB23 of the detected circumscribed rectangle BR23. Further, since the medium cutting portion CP exists on the right side of the medium image MI23, the image processing unit 15 sets the upper left apex of the circumscribed rectangle BR23 at the medium image reference position RRP23.

また、図29Bに示すように、画像処理部15は、媒体画像MI24の外接矩形BR24を検出し、検出した外接矩形BR24の重心GB24を算出する。また、画像処理部15は、媒体裁断箇所CPが媒体画像MI24の左側に存在するため、外接矩形BR24の右上の頂点を媒体画像基準位置RRP24に設定する。 Further, as shown in FIG. 29B, the image processing unit 15 detects the circumscribed rectangle BR24 of the medium image MI24 and calculates the center of gravity GB24 of the detected circumscribed rectangle BR24. Further, since the medium cutting portion CP exists on the left side of the medium image MI24, the image processing unit 15 sets the upper right apex of the circumscribed rectangle BR24 at the medium image reference position RRP24.

ここで、外接矩形BR21は、読取画像RI21において媒体画像MI21が存在する領域を示し、外接矩形BR22は、読取画像RI22において媒体画像MI22が存在する領域を示し、外接矩形BR23は、読取画像RI23において媒体画像MI23が存在する領域を示し、外接矩形BR24は、読取画像RI24において媒体画像MI24が存在する領域を示す。 Here, the extrinsic rectangle BR21 indicates the region where the medium image MI21 exists in the scanned image RI21, the extrinsic rectangle BR22 indicates the region where the medium image MI22 exists in the scanned image RI22, and the extrinsic rectangle BR23 indicates the region where the medium image MI22 exists in the scanned image RI23. The region where the medium image MI23 exists is shown, and the circumscribing rectangle BR24 shows the region where the medium image MI24 exists in the scanned image RI24.

このように、画像処理部15は、読取画像RI21,RI22,RI23,RI24の各々において、媒体画像MI21,MI22,MI23,MI24がそれぞれ存在する領域に、媒体画像基準位置RRP21,RRP22,RRP23,RRP24をそれぞれ設定する。 As described above, the image processing unit 15 has the medium image reference positions RRP21, RRP22, RRP23, and RRP24 in the regions where the medium images MI21, MI22, MI23, and MI24 are present in each of the scanned images RI21, RI22, RI23, and RI24. To set each.

読取画像RI24は、一冊の古書の一連の複数の読取画像の中の最後の画像であるため、読取画像RI24に対してステップS101〜S105,S201の処理が完了したときに(ステップS109:Yes)、処理はステップS111へ進む。 Since the scanned image RI24 is the last image in a series of a plurality of scanned images of one old book, when the processing of steps S101 to S105 and S201 is completed for the scanned image RI24 (step S109: Yes). ), The process proceeds to step S111.

次いで、画像処理部15は、ステップS111の処理(図2)に従って、読取画像RI21,RI22,RI23,RI24の各々に対して、図26B、図27B、図28B、図29Bに示すように動作する。すなわち、画像処理部15は、図26B、図27B、図28B、図29Bに示すように、縦長さ及び横長さが互いに同一の矩形の読取画像RI21,RI22,RI23,RI24の各々において、読取画像RI21,RI22,RI23,RI24の上辺の中点を読取画像基準位置MRP2に設定する。矩形の読取画像RI21,RI22,RI23,RI24の横長さがSrcWと表される場合、読取画像基準位置MRP2の座標は(SrcW/2,0)と表される。 Next, the image processing unit 15 operates as shown in FIGS. 26B, 27B, 28B, and 29B for each of the scanned images RI21, RI22, RI23, and RI24 according to the process of step S111 (FIG. 2). .. That is, as shown in FIGS. 26B, 27B, 28B, and 29B, the image processing unit 15 has read images in each of the rectangular read images RI21, RI22, RI23, and RI24 having the same vertical and horizontal lengths. The midpoint of the upper side of RI21, RI22, RI23, and RI24 is set to the scanned image reference position MRP2. When the horizontal length of the rectangular scanned images RI21, RI22, RI23, and RI24 is expressed as SrcW, the coordinates of the scanned image reference position MRP2 are expressed as (SrcW / 2,0).

このように、画像処理部15は、読取画像RI21,RI22,RI23,RI24の各々において、媒体画像MI21,MI22,MI23,MI24がそれぞれ存在する領域以外の領域に、読取画像基準位置MRP2を設定する。 In this way, the image processing unit 15 sets the scanned image reference position MRP2 in each of the scanned images RI21, RI22, RI23, and RI24 in a region other than the region in which the medium images MI21, MI22, MI23, and MI24 are present. ..

次いで、ステップS113の処理(図22)によって制御部11が選択した読取画像RI21に含まれる媒体画像MI21の外接矩形BR21に傾きは無いため(図26B)、媒体画像MI21に対して正立補正が行われても(ステップS115)、媒体画像MI21は回転されない。 Next, since the circumscribed rectangle BR21 of the medium image MI21 included in the scanned image RI21 selected by the control unit 11 by the process of step S113 (FIG. 22) has no inclination (FIG. 26B), the upright correction is performed on the medium image MI21. Even if this is done (step S115), the medium image MI21 is not rotated.

また、読取画像RI21は一連の複数の読取画像の中の最初の読取画像であるため(ステップS117:Yes)、画像処理部15は、媒体画像MI21に対して位置設定処理Cを行う(ステップS119)。媒体画像MI21に対する位置設定処理Cでは、画像処理部15は、図26Cに示すように、読取画像基準位置MRP2(座標(SrcW/2,0))を始点とし、正立補正後の媒体画像MI21における媒体画像基準位置RRP21(座標(xb0,yb0))を終点とするベクトルVecLb0を、読取画像RI21に対する媒体画像MI21の位置として設定する。つまり、媒体画像MI21に設定されたベクトルVecLb0は、媒体画像基準位置RRP21と読取画像基準位置MRP2との間の位置関係を示す。Further, since the scanned image RI 21 is the first scanned image in a series of a plurality of scanned images (step S117: Yes), the image processing unit 15 performs the position setting process C on the medium image MI 21 (step S119). ). In the position setting process C for the medium image MI21, as shown in FIG. 26C, the image processing unit 15 starts from the scanned image reference position MRP2 (coordinates (SrcW / 2,0)), and the medium image MI21 after erect correction is performed. The vector VecL b0 whose end point is the medium image reference position RRP21 (coordinates (x b0 , y b0 )) in the above is set as the position of the medium image MI21 with respect to the scanned image RI21. That is, the vector VecL b0 set in the medium image MI21 indicates the positional relationship between the medium image reference position RRP21 and the scanned image reference position MRP2.

そして、画像処理部15は、図26Cに示すように、読取画像RI21において、媒体画像MI21に設定したベクトルVecLb0に基づいて媒体画像MI21を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecLb0の終点の座標(xb0,yb0)に媒体画像基準位置RRP21が一致するように、媒体画像MI21を再配置する。画像処理部15は、媒体画像MI21の再配置後の読取画像RI21Fを記憶部13に記憶させる。なお、再配置後の媒体画像MI21の配置は、再配置前の媒体画像MI21の配置(つまり、正立補正後の媒体画像MI21の配置)と同一である。Then, as shown in FIG. 26C, the image processing unit 15 rearranges the medium image MI21 based on the vector VecL b0 set in the medium image MI21 in the scanned image RI21 (step S135). That is, the image processing unit 15 rearranges the medium image MI 21 so that the medium image reference position RRP 21 coincides with the coordinates (x b0 , y b0 ) of the end point of the vector VecL b0. The image processing unit 15 stores the read image RI21F after rearranging the medium image MI21 in the storage unit 13. The arrangement of the medium image MI21 after the rearrangement is the same as the arrangement of the medium image MI21 before the rearrangement (that is, the arrangement of the medium image MI21 after the upright correction).

また、ステップS113の処理(図22)によって制御部11が選択した読取画像RI22に含まれる媒体画像MI22の外接矩形BR22に傾きは無いため(図27B)、媒体画像MI22に対して正立補正が行われても(ステップS115)、媒体画像MI22は回転されない。 Further, since the circumscribed rectangle BR22 of the medium image MI22 included in the scanned image RI22 selected by the control unit 11 by the process of step S113 (FIG. 22) has no inclination (FIG. 27B), the upright correction is performed with respect to the medium image MI22. Even if this is done (step S115), the medium image MI22 is not rotated.

また、読取画像RI22は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI22に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI21と媒体画像MI22とは対画像であると判定される。 Further, since the scanned image RI 22 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI 22 (step S121). .. By this pair image detection process, it is determined that the medium image MI21 and the medium image MI22 are paired images.

媒体画像MI21と媒体画像MI22とが対画像であると判定されたため、画像処理部15は、媒体画像MI22に対して位置設定処理Dを行う(ステップS203)。媒体画像MI22に対する位置設定処理Dでは、画像処理部15は、図27Cに示すように、読取画像基準位置MRP2(座標(SrcW/2,0))を始点とし媒体画像基準位置RRP22(座標(xb1,yb0))を終点とするベクトルVecRb0を、読取画像RI22に対する媒体画像MI22の位置として設定する。つまり、媒体画像MI22に設定されたベクトルVecRb0は、媒体画像基準位置RRP22と読取画像基準位置MRP2との間の位置関係を示す。ここで、媒体画像MI22に設定されたベクトルVecRb0は、読取画像基準位置MRP2に対してX座標方向で、媒体画像MI21に設定されたベクトルVecLb0と対称なベクトルである。つまり、ベクトルVecRb0の終点のY座標yb0は、ベクトルVecLb0の終点のY座標yb0と同一である。また、読取画像基準位置MRP2からベクトルVecRb0の終点のX座標xb1までの距離は、読取画像基準位置MRP2からベクトルVecLb0の終点のX座標xb0までの距離と同一である。Since it is determined that the medium image MI21 and the medium image MI22 are paired images, the image processing unit 15 performs the position setting process D on the medium image MI22 (step S203). In the position setting process D for the medium image MI22, as shown in FIG. 27C, the image processing unit 15 starts at the scanned image reference position MRP2 (coordinates (SrcW / 2,0)) and starts at the medium image reference position RRP22 (coordinates (x)). The vector VecR b0 ending in b1, y b0 )) is set as the position of the medium image MI22 with respect to the scanned image RI22. That is, the vector VecR b0 set in the medium image MI 22 indicates the positional relationship between the medium image reference position RRP 22 and the scanned image reference position MRP2. Here, the vector VecR b0 set in the medium image MI22 is a vector symmetric with the vector VecL b0 set in the medium image MI21 in the X coordinate direction with respect to the scanned image reference position MRP2. That, Y-coordinate y b0 of the end point of the vector VecR b0 is the same as the Y-coordinate y b0 of the end point of the vector VecL b0. The distance from the read image reference position MRP2 to X-coordinate x b1 of the end point of the vector VecR b0 is the same as the distance from the read image reference position MRP2 to X-coordinate x b0 of the end point of the vector VecL b0.

そして、画像処理部15は、図27Cに示すように、読取画像RI22において、媒体画像MI22に設定したベクトルVecRb0に基づいて媒体画像MI22を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecRb0の終点の座標(xb1,yb1)に媒体画像基準位置RRP22が一致するように、媒体画像MI22を再配置する。画像処理部15は、媒体画像MI22の再配置後の読取画像RI22Fを記憶部13に記憶させる。媒体画像MI22の再配置により、再配置後の媒体画像MI22の配置は、再配置前の媒体画像MI22の配置(つまり、正立補正後の媒体画像MI22の配置)から変更される。Then, as shown in FIG. 27C, the image processing unit 15 rearranges the medium image MI22 based on the vector VecR b0 set in the medium image MI22 in the scanned image RI22 (step S135). That is, the image processing unit 15 rearranges the medium image MI 22 so that the medium image reference position RRP 22 coincides with the coordinates (x b1 , y b1 ) of the end point of the vector VecR b0. The image processing unit 15 stores the read image RI22F after rearranging the medium image MI22 in the storage unit 13. Due to the rearrangement of the medium image MI22, the arrangement of the medium image MI22 after the rearrangement is changed from the arrangement of the medium image MI22 before the rearrangement (that is, the arrangement of the medium image MI22 after the upright correction).

また、画像処理部15は、ステップS113の処理(図2)によって制御部11が選択した読取画像RI23(図28B)において、重心GB23を中心にして外接矩形BR23を右回りに回転させることによって媒体画像MI23の傾きを補正する(ステップS115,図28C)。 Further, the image processing unit 15 rotates the circumscribing rectangle BR23 clockwise around the center of gravity GB23 in the scanned image RI23 (FIG. 28B) selected by the control unit 11 in the process of step S113 (FIG. 2), thereby causing the medium. The inclination of the image MI23 is corrected (step S115, FIG. 28C).

また、読取画像RI23は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI23に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI22と媒体画像MI23とは対画像であると判定される。 Further, since the scanned image RI23 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI23 (step S121). .. By this pair image detection process, it is determined that the medium image MI22 and the medium image MI23 are paired images.

媒体画像MI22と媒体画像MI23とが対画像であると判定されたため、画像処理部15は、媒体画像MI23に対して位置設定処理Dを行う(ステップS203)。媒体画像MI23に対する位置設定処理Dでは、画像処理部15は、図28Cに示すように、読取画像基準位置MRP2(座標(SrcW/2,0))を始点とし媒体画像基準位置RRP23(座標(xb0,yb0))を終点とするベクトルVecLb0を、読取画像RI23に対する媒体画像MI23の位置として設定する。つまり、媒体画像MI23に設定されたベクトルVecLb0は、媒体画像基準位置RRP23と読取画像基準位置MRP2との間の位置関係を示す。ここで、媒体画像MI23に設定されたベクトルVecLb0は、媒体画像MI21に設定されたベクトルVecLb0と同一のベクトルである。Since it is determined that the medium image MI 22 and the medium image MI 23 are paired images, the image processing unit 15 performs the position setting process D on the medium image MI 23 (step S203). In the position setting process D for the medium image MI23, as shown in FIG. 28C, the image processing unit 15 starts at the scanned image reference position MRP2 (coordinates (SrcW / 2,0)) and starts at the medium image reference position RRP23 (coordinates (x)). The vector VecL b0 ending in b0, y b0 )) is set as the position of the medium image MI23 with respect to the scanned image RI23. That is, the vector VecL b0 set in the medium image MI23 indicates the positional relationship between the medium image reference position RRP23 and the scanned image reference position MRP2. Here, the vector VecL b0 set in the medium image MI23 is the same vector as the vector VecL b0 set in the medium image MI21.

そして、画像処理部15は、図28Cに示すように、読取画像RI23において、媒体画像MI23に設定したベクトルVecLb0に基づいて媒体画像MI23を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecLb0の終点の座標(xb0,yb0)に媒体画像基準位置RRP23が一致するように、媒体画像MI23を再配置する。画像処理部15は、媒体画像MI23の再配置後の読取画像RI23Fを記憶部13に記憶させる。媒体画像MI23の再配置により、再配置後の媒体画像MI23の配置は、再配置前の媒体画像MI23の配置(つまり、正立補正後の媒体画像MI23の配置)から変更される。Then, as shown in FIG. 28C, the image processing unit 15 rearranges the medium image MI23 based on the vector VecL b0 set in the medium image MI23 in the scanned image RI23 (step S135). That is, the image processing unit 15 rearranges the medium image MI23 so that the medium image reference position RRP23 coincides with the coordinates (x b0 , y b0 ) of the end point of the vector VecL b0. The image processing unit 15 stores the read image RI23F after rearranging the medium image MI23 in the storage unit 13. Due to the rearrangement of the medium image MI23, the arrangement of the medium image MI23 after the rearrangement is changed from the arrangement of the medium image MI23 before the rearrangement (that is, the arrangement of the medium image MI23 after the upright correction).

上記のように、媒体画像MI21と媒体画像MI22とは対画像であり、また、媒体画像MI22と媒体画像MI23とは対画像である。よって、媒体画像MI21と媒体画像MI23とは対画像である。また上記のように、媒体画像MI23に設定されたベクトルVecLb0は、媒体画像MI21に設定されたベクトルVecLb0と同一である。また上記のように、媒体画像MI21に設定されたベクトルVecLb0は、媒体画像基準位置RRP21と読取画像基準位置MRP2との間の位置関係を示し、媒体画像MI23に設定されたベクトルVecLb0は、媒体画像基準位置RRP23と読取画像基準位置MRP2との間の位置関係を示す。また上記のように、ベクトルVecLb0の終点の座標(xb0,yb0)に媒体画像基準位置RRP21が一致するように媒体画像MI21が再配置される一方で、ベクトルVecLb0の終点の座標(xb0,yb0)に媒体画像基準位置RRP23が一致するように媒体画像MI23が再配置される。つまり、画像処理部15は、媒体画像MI21と対になる媒体画像MI23を、媒体画像MI21と媒体画像MI23との間において位置関係が同一になるように再配置する。As described above, the medium image MI21 and the medium image MI22 are paired images, and the medium image MI22 and the medium image MI23 are paired images. Therefore, the medium image MI21 and the medium image MI23 are paired images. Further, as described above, the vector VecL b0 set in the medium image MI23 is the same as the vector VecL b0 set in the medium image MI21. Further, as described above, the vector VecL b0 set in the medium image MI21 indicates the positional relationship between the medium image reference position RRP21 and the scanned image reference position MRP2, and the vector VecL b0 set in the medium image MI23 is The positional relationship between the medium image reference position RRP23 and the scanned image reference position MRP2 is shown. Also as described above, while the medium image MI21 are repositioned to medium image reference position RRP21 the coordinates (x b0, y b0) of end point of the vector VecL b0 match, the end point of the vector VecL b0 coordinates ( The medium image MI23 is rearranged so that the medium image reference position RRP23 coincides with x b0 , y b0). That is, the image processing unit 15 rearranges the medium image MI23 paired with the medium image MI21 so that the positional relationship between the medium image MI21 and the medium image MI23 is the same.

また、ステップS113の処理(図22)によって制御部11が選択した読取画像RI24に含まれる媒体画像MI24の外接矩形BR24に傾きは無いため(図29B)、媒体画像MI24に対して正立補正が行われても(ステップS115)、媒体画像MI24は回転されない。 Further, since the circumscribing rectangle BR24 of the medium image MI24 included in the scanned image RI24 selected by the control unit 11 by the process of step S113 (FIG. 22) has no inclination (FIG. 29B), the upright correction is performed with respect to the medium image MI24. Even if this is done (step S115), the medium image MI24 is not rotated.

また、読取画像RI24は一連の複数の読取画像の中の最初の読取画像でないため(ステップS117:No)、画像処理部15は、読取画像RI24に対して対画像検出処理を行う(ステップS121)。この対画像検出処理により、媒体画像MI23と媒体画像MI24とは対画像であると判定される。 Further, since the scanned image RI24 is not the first scanned image in a series of a plurality of scanned images (step S117: No), the image processing unit 15 performs anti-image detection processing on the scanned image RI24 (step S121). .. By this pair image detection process, it is determined that the medium image MI23 and the medium image MI24 are paired images.

媒体画像MI23と媒体画像MI24とが対画像であると判定されたため、画像処理部15は、媒体画像MI24に対して位置設定処理Dを行う(ステップS203)。媒体画像MI24に対する位置設定処理Dでは、画像処理部15は、図29Cに示すように、読取画像基準位置MRP2(座標(SrcW/2,0))を始点とし媒体画像基準位置RRP24(座標(xb1,yb0))を終点とするベクトルVecRb0を、読取画像RI24に対する媒体画像MI24の位置として設定する。つまり、媒体画像MI24に設定されたベクトルVecRb0は、媒体画像基準位置RRP24と読取画像基準位置MRP2との間の位置関係を示す。ここで、媒体画像MI24に設定されたベクトルVecRb0は、媒体画像MI22に設定されたベクトルVecRb0と同一のベクトルである。Since it is determined that the medium image MI23 and the medium image MI24 are paired images, the image processing unit 15 performs the position setting process D on the medium image MI24 (step S203). In the position setting process D for the medium image MI24, as shown in FIG. 29C, the image processing unit 15 starts at the scanned image reference position MRP2 (coordinates (SrcW / 2,0)) and starts at the medium image reference position RRP24 (coordinates (x)). The vector VecR b0 ending in b1, y b0 )) is set as the position of the medium image MI24 with respect to the scanned image RI24. That is, the vector VecR b0 set in the medium image MI24 indicates the positional relationship between the medium image reference position RRP24 and the scanned image reference position MRP2. Here, the vector VecR b0 set in the medium image MI24 is the same vector as the vector VecR b0 set in the medium image MI22.

そして、画像処理部15は、図29Cに示すように、読取画像RI24において、媒体画像MI24に設定したベクトルVecRb0に基づいて媒体画像MI24を再配置する(ステップS135)。つまり、画像処理部15は、ベクトルVecRb0の終点の座標(xb1,yb1)に媒体画像基準位置RRP24が一致するように、媒体画像MI24を再配置する。画像処理部15は、媒体画像MI24の再配置後の読取画像RI24Fを記憶部13に記憶させる。媒体画像MI24の再配置により、再配置後の媒体画像MI24の配置は、再配置前の媒体画像MI24の配置(つまり、正立補正後の媒体画像MI24の配置)から変更される。Then, as shown in FIG. 29C, the image processing unit 15 rearranges the medium image MI24 based on the vector VecR b0 set in the medium image MI24 in the scanned image RI24 (step S135). That is, the image processing unit 15 rearranges the medium image MI24 so that the medium image reference position RRP24 coincides with the coordinates (x b1 , y b1 ) of the end point of the vector VecR b0. The image processing unit 15 stores the read image RI24F after rearranging the medium image MI24 in the storage unit 13. Due to the rearrangement of the medium image MI24, the arrangement of the medium image MI24 after the rearrangement is changed from the arrangement of the medium image MI24 before the rearrangement (that is, the arrangement of the medium image MI24 after the upright correction).

上記のように、媒体画像MI22と媒体画像MI23とは対画像であり、また、媒体画像MI23と媒体画像MI24とは対画像である。よって、媒体画像MI22と媒体画像MI24とは対画像である。また上記のように、媒体画像MI22に設定されたベクトルVecRb0は、媒体画像MI24に設定されたベクトルVecRb0と同一である。また上記のように、媒体画像MI22に設定されたベクトルVecRb0は、媒体画像基準位置RRP22と読取画像基準位置MRP2との間の位置関係を示し、媒体画像MI24に設定されたベクトルVecRb0は、媒体画像基準位置RRP24と読取画像基準位置MRP2との間の位置関係を示す。また上記のように、ベクトルVecRb0の終点の座標(xb1,yb0)に媒体画像基準位置RRP22が一致するように媒体画像MI22が再配置される一方で、ベクトルVecRb0の終点の座標(xb1,yb0)に媒体画像基準位置RRP24が一致するように媒体画像MI24が再配置される。つまり、画像処理部15は、媒体画像MI22と対になる媒体画像MI24を、媒体画像MI22と媒体画像MI24との間において位置関係が同一になるように再配置する。As described above, the medium image MI22 and the medium image MI23 are paired images, and the medium image MI23 and the medium image MI24 are paired images. Therefore, the medium image MI22 and the medium image MI24 are paired images. Further, as described above, the vector VecR b0 set in the medium image MI22 is the same as the vector VecR b0 set in the medium image MI24. Further, as described above, the vector VecR b0 set in the medium image MI22 indicates the positional relationship between the medium image reference position RRP22 and the scanned image reference position MRP2, and the vector VecR b0 set in the medium image MI24 is The positional relationship between the medium image reference position RRP24 and the scanned image reference position MRP2 is shown. Also as described above, while the medium image MI22 are repositioned to medium image reference position RRP22 the coordinates (x b1, y b0) of end point of the vector VecR b0 match, the end point of the vector VecR b0 coordinates ( The medium image MI24 is rearranged so that the medium image reference position RRP24 coincides with x b1 , y b0). That is, the image processing unit 15 rearranges the medium image MI24 paired with the medium image MI22 so that the positional relationship between the medium image MI22 and the medium image MI24 is the same.

読取画像RI24は、一冊の古書の一連の複数の読取画像の中の最後の画像であるため、読取画像RI24に対してステップS113〜S135,S203の処理が完了したときに(ステップS137:Yes)、処理はステップS205(抽出領域設定)へ進む。 Since the scanned image RI24 is the last image in a series of a plurality of scanned images of one old book, when the processing of steps S113 to S135 and S203 is completed for the scanned image RI24 (step S137: Yes). ), The process proceeds to step S205 (extraction area setting).

抽出領域の設定にあたり、画像処理部15は、記憶部13から読取画像RI21F,RI22F,RI23F,RI24Fを取得する。読取画像RI21Fには、媒体画像MI21が含まれ(図30A)、読取画像RI22Fには、配置変更後の媒体画像MI22が含まれ(図30B)、読取画像RI23Fには、正立補正後及び配置変更後の媒体画像MI23が含まれる(図30C)、読取画像RI24Fには、配置変更後の媒体画像MI24が含まれる(図30D)。 In setting the extraction area, the image processing unit 15 acquires the read images RI21F, RI22F, RI23F, and RI24F from the storage unit 13. The scanned image RI21F includes the medium image MI21 (FIG. 30A), the scanned image RI22F includes the media image MI22 after the arrangement change (FIG. 30B), and the scanned image RI23F has the upright correction and arrangement. The modified medium image MI23 is included (FIG. 30C), and the scanned image RI24F includes the modified medium image MI24 (FIG. 30D).

画像処理部15は、図30A〜Dに示すように、媒体画像MI21,MI22,MI23,MI24に基づいて、読取画像RI21F,RI22F,RI23F,RI24Fに対してサイズが同一の抽出領域EA21,EA22を設定する(ステップS139)。つまり、矩形の抽出領域EA21の縦長さDstH2は読取画像RI21F,RI22F,RI23F,RI24Fのすべてにおいて同一である。また、矩形の抽出領域EA21の横長さDstW2は読取画像RI21F,RI22F,RI23F,RI24Fのすべてにおいて同一である。また、上記のように、媒体画像MI21に設定されたベクトルVecLb0とMI23に設定されたベクトルVecLb0とは同一であり、媒体画像MI22に設定されたベクトルVecRb0と媒体画像MI24に設定されたベクトルVecRb0とは同一である。よって、読取画像RI21Fと読取画像RI23Fとに対しては、位置及びサイズが同一の抽出領域EA21が設定される。また、読取画像RI22Fと読取画像RI24Fとに対しては、位置及びサイズが同一の抽出領域EA22が設定される。また、抽出領域EA21と抽出領域EA22とは、サイズと、読取画像上におけるY座標方向の位置とが同一である一方で、読取画像上におけるX座標方向の位置が異なる。また、読取画像基準位置MRP2から抽出領域EA21の左上の頂点までの距離は、読取画像基準位置MRP2から抽出領域EA22の右上の頂点までの距離と同一である。また、読取画像RI21Fに設定された抽出領域EA21には媒体画像MI21の主要部分が存在し(図30A)、読取画像RI22Fに設定された抽出領域EA22には媒体画像MI22の主要部分が存在し(図30B)、読取画像RI23Fに設定された抽出領域EA21には媒体画像MI23の主要部分が存在し(図30C)、読取画像RI24Fに設定された抽出領域EA22には媒体画像MI24の主要部分が存在する(図30D)。As shown in FIGS. 30A to 30D, the image processing unit 15 sets the extraction regions EA21 and EA22 having the same size as the scanned images RI21F, RI22F, RI23F and RI24F based on the medium images MI21, MI22, MI23 and MI24. Set (step S139). That is, the vertical length DstH2 of the rectangular extraction region EA21 is the same in all of the scanned images RI21F, RI22F, RI23F, and RI24F. Further, the horizontal length DstW2 of the rectangular extraction region EA21 is the same in all of the scanned images RI21F, RI22F, RI23F, and RI24F. Further, as described above, is identical to the vector VecL b0 set in vector VecL b0 and MI23 set in the medium image MI21, it was set to the vector VecR b0 and medium image MI24 set in the medium image MI22 Same as the vector VecR b0 . Therefore, the extraction region EA21 having the same position and size is set for the scanned image RI21F and the scanned image RI23F. Further, for the scanned image RI22F and the scanned image RI24F, an extraction region EA22 having the same position and size is set. Further, the extraction area EA21 and the extraction area EA22 have the same size and the position in the Y coordinate direction on the scanned image, but are different in the position in the X coordinate direction on the scanned image. The distance from the scanned image reference position MRP2 to the upper left apex of the extraction area EA21 is the same as the distance from the scanned image reference position MRP2 to the upper right apex of the extraction area EA22. Further, the extraction region EA21 set in the scanned image RI21F has a main part of the medium image MI21 (FIG. 30A), and the extraction region EA22 set in the scanned image RI22F has the main part of the medium image MI22 (FIG. 30A). FIG. 30B), the extraction region EA21 set in the scanned image RI23F has a main part of the medium image MI23 (FIG. 30C), and the extraction region EA22 set in the scanned image RI24F has the main part of the medium image MI24. (Fig. 30D).

ここで、媒体画像の「主要部分」とは、媒体画像において文字、写真、図形、表等の何かしらの情報の少なくとも一部が存在する部分である。 Here, the "main part" of the medium image is a part in the medium image in which at least a part of some information such as characters, photographs, figures, and tables exists.

そこで、画像処理部15は、図31A〜Dに示すように、ステップS139で設定した抽出領域EA21,EA22に従って、読取画像RI21Fから媒体画像MI21の主要部分MI21Cを抽出し、読取画像RI22Fから媒体画像MI22の主要部分MI22Cを抽出し、読取画像RI23Fから媒体画像MI23の主要部分MI23Cを抽出し、読取画像RI24Fから媒体画像MI24の主要部分MI24Cを抽出する(ステップS141)。 Therefore, as shown in FIGS. 31A to 31D, the image processing unit 15 extracts the main portion MI21C of the medium image MI21 from the scanned image RI21F according to the extraction regions EA21 and EA22 set in step S139, and media images from the scanned image RI22F. The main part MI22C of MI22 is extracted, the main part MI23C of the medium image MI23 is extracted from the scanned image RI23F, and the main part MI24C of the medium image MI24 is extracted from the scanned image RI24F (step S141).

そして、画像処理部15は、図32に示すように、主要部分MI21C,MI22C,MI23C,MI24Cを表示部17に表示させる。すなわち、画像処理部15は、オモテ表紙の画像の主要部分MI21C、1ページ目の画像の主要部分MI22C、2ページ目の画像の主要部分MI23C、…、ウラ表紙の画像の主要部分MI24Cを順に表示部17に表示させる。また、画像処理部15は、オモテ表紙の画像の主要部分MI21C、及び、ウラ表紙の画像の主要部分MI24Cをそれぞれ単独のページとして表示部17に表示させる一方で、1ページ目の画像の主要部分MI22Cと2ページ目の画像の主要部分MI23Cとを裁断箇所で接合して見開きのページとして表示部17に表示させる。 Then, as shown in FIG. 32, the image processing unit 15 causes the display unit 17 to display the main parts MI21C, MI22C, MI23C, and MI24C. That is, the image processing unit 15 displays the main part MI21C of the image on the front cover, the main part MI22C of the image on the first page, the main part MI23C of the image on the second page, ..., The main part MI24C of the image on the back cover in order. It is displayed on the unit 17. Further, the image processing unit 15 causes the display unit 17 to display the main part MI21C of the front cover image and the main part MI24C of the back cover image as independent pages, while the main part of the image on the first page. The MI22C and the main part MI23C of the image on the second page are joined at the cut portion and displayed on the display unit 17 as a double-page spread.

図33A〜C、図34、図35A〜C、及び、図36A〜Cに、媒体画像の再配置後の読取画像に対する抽出領域の設定例を示す。一例として、読取画像RI6Fには再配置後の媒体画像MI6が含まれ(図33A)、読取画像RI7Fには再配置後の媒体画像MI7が含まれ(図33B)、読取画像RI8Fには、再配置後の媒体画像MI8が含まれる(図33C)。 33A to 33C, FIGS. 34A to 35C, and FIGS. 36A to 36C show an example of setting an extraction area for the scanned image after rearranging the medium image. As an example, the scanned image RI6F includes the rearranged medium image MI6 (FIG. 33A), the scanned image RI7F contains the rearranged medium image MI7 (FIG. 33B), and the scanned image RI8F is relocated. The arranged medium image MI8 is included (FIG. 33C).

図33Aに示すように、媒体画像MI6における媒体裁断箇所CPは媒体画像MI6の右側に存在するため、画像処理部15は、媒体画像MI6の外接矩形の右辺を左方向に平行移動させることにより、読取画像RI6Fにおいて、媒体裁断箇所CPを含まない矩形IR6を作成する。 As shown in FIG. 33A, since the medium cutting portion CP in the medium image MI6 exists on the right side of the medium image MI6, the image processing unit 15 moves the right side of the circumscribing rectangle of the medium image MI6 in parallel to the left. In the scanned image RI6F, a rectangle IR6 that does not include the medium cutting portion CP is created.

また、図33Bに示すように、媒体画像MI7における媒体裁断箇所CPは媒体画像MI7の左側に存在するため、画像処理部15は、媒体画像MI7の外接矩形の左辺を右方向に平行移動させることにより、読取画像RI7Fにおいて、媒体裁断箇所CPを含まない矩形IR7を作成する。 Further, as shown in FIG. 33B, since the medium cutting portion CP in the medium image MI7 exists on the left side of the medium image MI7, the image processing unit 15 moves the left side of the circumscribing rectangle of the medium image MI7 in parallel to the right. Therefore, in the scanned image RI7F, a rectangle IR7 that does not include the medium cutting portion CP is created.

また、図33Cに示すように、媒体画像MI8における媒体裁断箇所CPは媒体画像MI8の左側に存在するため、画像処理部15は、媒体画像MI8の外接矩形の右辺を左方向に平行移動させることにより、読取画像RI8Fにおいて、媒体裁断箇所CPを含まない矩形IR8を作成する。 Further, as shown in FIG. 33C, since the medium cutting portion CP in the medium image MI8 exists on the left side of the medium image MI8, the image processing unit 15 translates the right side of the circumscribing rectangle of the medium image MI8 to the left. Therefore, in the scanned image RI8F, a rectangle IR8 that does not include the medium cutting portion CP is created.

次いで、画像処理部15は、図34に示すように、矩形IR6,IR7,IR8のすべてが重複する矩形領域を抽出領域EA2として決定する。また、画像処理部15は、読取画像基準位置MRP2を始点とし矩形の抽出領域EA2の左上の頂点を終点とするベクトルVL2を求める。 Next, as shown in FIG. 34, the image processing unit 15 determines a rectangular region in which all of the rectangles IR6, IR7, and IR8 overlap as the extraction region EA2. Further, the image processing unit 15 obtains a vector VL2 starting from the scanned image reference position MRP2 and ending at the upper left vertex of the rectangular extraction region EA2.

そして、画像処理部15は、図35Aに示すように、ベクトルVL2が設定された抽出領域EA2を読取画像RI6Fに設定する。 Then, as shown in FIG. 35A, the image processing unit 15 sets the extraction region EA2 in which the vector VL2 is set in the scanned image RI6F.

また、画像処理部15は、図35Bに示すように、ベクトルVL3が設定された抽出領域EA3を読取画像RI7Fに設定する。ここで、抽出領域EA3のサイズは、抽出領域EA2のサイズと同一である。また、ベクトルVL3は、読取画像基準位置MRP2に対してX座標方向で、ベクトルVL2と対称なベクトルである。すなわち、抽出領域EA3のY座標方向の位置は、抽出領域EA2のY座標方向の位置と同一である。また、読取画像基準位置MRP2から抽出領域EA3の右上の頂点までの距離は、読取画像基準位置MRP2から抽出領域EA23の左上の頂点までの距離と同一である。 Further, as shown in FIG. 35B, the image processing unit 15 sets the extraction region EA3 in which the vector VL3 is set in the scanned image RI7F. Here, the size of the extraction region EA3 is the same as the size of the extraction region EA2. Further, the vector VL3 is a vector symmetrical with respect to the vector VL2 in the X coordinate direction with respect to the scanned image reference position MRP2. That is, the position of the extraction area EA3 in the Y coordinate direction is the same as the position of the extraction area EA2 in the Y coordinate direction. The distance from the scanned image reference position MRP2 to the upper right apex of the extraction area EA3 is the same as the distance from the scanned image reference position MRP2 to the upper left apex of the extraction area EA23.

また、画像処理部15は、図35Cに示すように、ベクトルVL2が設定された抽出領域EA2を読取画像RI8Fに設定する。よって、読取画像RI6Fと読取画像RI8Fとに対しては、位置及びサイズが同一の読取画像RI8Fが設定される。 Further, as shown in FIG. 35C, the image processing unit 15 sets the extraction region EA2 in which the vector VL2 is set in the scanned image RI8F. Therefore, for the scanned image RI6F and the scanned image RI8F, the scanned image RI8F having the same position and size is set.

よって、読取画像RI6Fに設定された抽出領域EA2には媒体画像MI6の主要部分が存在し、読取画像RI7Fに設定された抽出領域EA3には媒体画像MI7の主要部分が存在し、読取画像RI8Fに設定された抽出領域EA2には媒体画像MI8の主要部分が存在する。 Therefore, the main part of the medium image MI6 exists in the extraction area EA2 set in the scanned image RI6F, and the main part of the medium image MI7 exists in the extraction area EA3 set in the scanned image RI7F. The main part of the medium image MI8 exists in the set extraction region EA2.

そこで、画像処理部15は、図36A〜Cに示すように、抽出領域EA2,EA3に従って、読取画像RI6Fから媒体画像MI6の主要部分MI6Cを抽出し、読取画像RI7Fから媒体画像MI7の主要部分MI7Cを抽出し、読取画像RI8Fから媒体画像MI8の主要部分MI8Cを抽出する。 Therefore, as shown in FIGS. 36A to 36C, the image processing unit 15 extracts the main portion MI6C of the medium image MI6 from the scanned image RI6F according to the extraction regions EA2 and EA3, and extracts the main portion MI7C of the medium image MI7 from the scanned image RI7F. Is extracted, and the main part MI8C of the medium image MI8 is extracted from the scanned image RI8F.

図37に、媒体裁断箇所を含まない矩形の作成処理の一例を示す。 FIG. 37 shows an example of a rectangle creation process that does not include the medium cutting portion.

図37のステップS251では、画像処理部15は、媒体輪郭図形における変曲点を検出する。 In step S251 of FIG. 37, the image processing unit 15 detects an inflection point in the medium contour figure.

次いで、ステップS253では、画像処理部15は、媒体裁断箇所が媒体画像の左側に存在するか否かを判定する。媒体裁断箇所が媒体画像の左側に存在する場合は(ステップS253:Yes)、処理はステップS255へ進み、媒体裁断箇所が媒体画像の右側に存在する場合は(ステップS253:No)、処理はステップS257へ進む。 Next, in step S253, the image processing unit 15 determines whether or not the medium cutting portion exists on the left side of the medium image. If the medium cut portion is on the left side of the medium image (step S253: Yes), the process proceeds to step S255, and if the medium cut portion is on the right side of the medium image (step S253: No), the process is a step. Proceed to S257.

ステップS255では、画像処理部15は、ステップS251で検出した変曲点のうちX座標の最大値を有する変曲点の位置(以下では「X座標最大値位置」と呼ぶことがある)を検出する。 In step S255, the image processing unit 15 detects the position of the inflection point having the maximum value of the X coordinate (hereinafter, may be referred to as “the maximum value position of the X coordinate”) among the inflection points detected in step S251. do.

一方で、ステップS257では、画像処理部15は、ステップS251で検出した変曲点のうちX座標の最小値を有する変曲点の位置(以下では「X座標最小値位置」と呼ぶことがある)を検出する。 On the other hand, in step S257, the image processing unit 15 may refer to the position of the inflection point having the minimum value of the X coordinate among the inflection points detected in step S251 (hereinafter, referred to as "the minimum value position of the X coordinate"). ) Is detected.

そして、ステップS259では、画像処理部15は、媒体裁断箇所が媒体画像の左側に存在する場合は、媒体画像の外接矩形の左辺をステップS255で検出したX座標最大値位置まで右方向に平行移動させることにより、読取画像において、媒体裁断箇所を含まない矩形を作成する。また、画像処理部15は、媒体裁断箇所が媒体画像の右側に存在する場合は、媒体画像の外接矩形の右辺をステップS257で検出したX座標最小値位置まで左方向に平行移動させることにより、読取画像において、媒体裁断箇所を含まない矩形を作成する。 Then, in step S259, when the medium cutting portion exists on the left side of the medium image, the image processing unit 15 translates the left side of the circumscribing rectangle of the medium image to the rightward to the X coordinate maximum value position detected in step S255. By doing so, a rectangle that does not include the medium cut portion is created in the scanned image. Further, when the medium cutting portion exists on the right side of the medium image, the image processing unit 15 translates the right side of the circumscribing rectangle of the medium image to the left to the minimum value position of the X coordinate detected in step S257. In the scanned image, a rectangle that does not include the medium cut portion is created.

以下、図38Aに示すように、読取画像RIに媒体画像MIが含まれ、外接矩形BRが検出された媒体画像MIの左側に媒体裁断箇所が存在する場合の動作例を説明する。図38Bに示すように、画像処理部15は、媒体画像MIの媒体輪郭図形における複数の変曲点IPを検出する。媒体裁断箇所CPが媒体画像MIの左側に存在するため、次いで、画像処理部15は、図38Cに示すように、複数の変曲点IPのうちX座標の最大値を有する変曲点IPの位置IPMを検出する。そして、画像処理部15は、図38Cに示すように、外接矩形BRの左辺を位置IPM(つまり、X座標最大値位置)まで右方向に平行移動させることにより、読取画像RIにおいて、媒体裁断箇所CPを含まない矩形IRを作成する。 Hereinafter, as shown in FIG. 38A, an operation example will be described when the scanned image RI includes the medium image MI and the medium cutting portion exists on the left side of the medium image MI in which the circumscribed rectangle BR is detected. As shown in FIG. 38B, the image processing unit 15 detects a plurality of inflection point IPs in the medium contour figure of the medium image MI. Since the medium cutting point CP exists on the left side of the medium image MI, the image processing unit 15 then, as shown in FIG. 38C, of the inflection point IP having the maximum value of the X coordinate among the plurality of inflection point IPs. Detect position IPM. Then, as shown in FIG. 38C, the image processing unit 15 translates the left side of the circumscribing rectangle BR to the position IPM (that is, the X coordinate maximum value position) in the right direction, thereby causing the medium cutting portion in the scanned image RI. Create a rectangular IR that does not include CP.

以上のように、実施例2では、画像処理装置10は、記憶部13と、画像処理部15とを有する。記憶部13は、各々が媒体画像を含む一連の複数の読取画像を記憶する。画像処理部15は、複数の読取画像の各々において、媒体画像領域に媒体画像基準位置を設定し、媒体画像領域以外の領域に読取画像基準位置を設定する。また、画像処理部15は、媒体画像基準位置と読取画像基準位置との間の位置関係に基づいて、読取画像内で媒体画像を再配置する。また、画像処理部15は、再配置後の媒体画像に基づいて、複数の読取画像において同一の抽出領域を設定する。そして、画像処理部15は、設定した抽出領域に従って、複数の読取画像の各々から媒体画像を抽出する。 As described above, in the second embodiment, the image processing device 10 has a storage unit 13 and an image processing unit 15. The storage unit 13 stores a series of a plurality of scanned images, each including a medium image. The image processing unit 15 sets the medium image reference position in the medium image area and sets the scanned image reference position in the area other than the medium image area in each of the plurality of scanned images. Further, the image processing unit 15 rearranges the medium image in the scanned image based on the positional relationship between the medium image reference position and the scanned image reference position. Further, the image processing unit 15 sets the same extraction region in a plurality of scanned images based on the medium image after rearrangement. Then, the image processing unit 15 extracts a medium image from each of the plurality of scanned images according to the set extraction area.

こうすることで、一連の複数の読取画像にそれぞれ含まれる媒体画像間における位置ズレを抑制することができる。このため、例えば、1冊の本が裁断されて1枚ずつバラバラになった各ページをADFを用いて電子データ化する場合に、搬送時のスキューの影響による媒体画像間における位置ズレを抑制することができる。よって、ADFを用いて電子データ化された媒体画像を複数ページに渡って連続して見る者の違和感を軽減することができる。 By doing so, it is possible to suppress the positional deviation between the medium images included in each of the series of a plurality of scanned images. For this reason, for example, when one book is cut and each page separated one by one is converted into electronic data using ADF, the positional deviation between the medium images due to the influence of skew during transportation is suppressed. be able to. Therefore, it is possible to reduce the discomfort of a person who continuously views a medium image converted into electronic data using ADF over a plurality of pages.

また、実施例2では、記憶部13は少なくとも二つの読取画像を記憶する。画像処理部15は、二つの読取画像のうちの一方の読取画像に含まれる媒体画像と、二つの読取画像のうちの他方の読取画像に含まれ、かつ、一方の読取画像に含まれる媒体画像と対になる媒体画像との間において、位置関係が同一になるように、他方の読取画像に含まれる媒体画像を再配置する。 Further, in the second embodiment, the storage unit 13 stores at least two read images. The image processing unit 15 includes a medium image included in one of the two scanned images and a medium image included in the other scanned image of the two scanned images and included in one of the scanned images. The medium image included in the other scanned image is rearranged so that the positional relationship between the image and the paired medium image is the same.

こうすることで、互いに対になる媒体画像間(例えば、奇数ページの媒体画像同士間、または、偶数ページの媒体画像同士間)における位置ズレを抑制することができる。 By doing so, it is possible to suppress the positional deviation between the medium images paired with each other (for example, between the medium images of odd-numbered pages or between the medium images of even-numbered pages).

また、実施例2では、画像処理部15は、複数の読取画像における再配置後のすべての媒体画像の外接矩形が重複する矩形領域に基づいて抽出領域を設定する。 Further, in the second embodiment, the image processing unit 15 sets the extraction area based on the rectangular area where the circumscribed rectangles of all the medium images after rearrangement in the plurality of scanned images overlap.

こうすることで、特に媒体画像が媒体裁断箇所が含まれる場合に、適切な抽出領域を設定することができる。 By doing so, an appropriate extraction area can be set, especially when the medium image includes a medium cut portion.

また、実施例2では、画像処理部15は、媒体画像において媒体裁断箇所を検出し、検出した媒体裁断箇所に基づいて媒体画像上に媒体画像基準位置を設定する。 Further, in the second embodiment, the image processing unit 15 detects the medium cut portion in the medium image and sets the medium image reference position on the medium image based on the detected medium cut portion.

こうすることで、媒体裁断箇所を含む媒体画像に対して適切な媒体画像基準位置を設定することができる。 By doing so, it is possible to set an appropriate medium image reference position for the medium image including the medium cut portion.

以上、実施例2について説明した。 The second embodiment has been described above.

[実施例3]
実施例3は、媒体画像基準位置の設定方法と抽出領域の設定方法とが、実施例2と相違する。以下、実施例2と相違する点について説明する。
[Example 3]
In the third embodiment, the method of setting the medium image reference position and the method of setting the extraction area are different from those of the second embodiment. Hereinafter, the differences from the second embodiment will be described.

<画像処理装置の処理・動作>
図39は、実施例3の画像処理装置の処理フローの一例を示す図である。図40A〜C、図41A〜C、図42A〜C、図43A〜C、図44A〜D、図45A〜D、図46、図47A〜C、図48、図49A〜C、及び、図50A〜Cは、実施例3の画像処理装置の動作例の説明に供する図である。
<Processing and operation of image processing equipment>
FIG. 39 is a diagram showing an example of a processing flow of the image processing apparatus of the third embodiment. 40A-C, 41A-C, 42A-C, 43A-C, 44A-D, 45A-D, 46, 47A-C, 48, 49A-C, and 50A. ~ C are diagrams provided for explaining an operation example of the image processing apparatus of the third embodiment.

図39に、媒体画像基準位置設定処理の処理フローの一例を示す。図39におけるステップS151,S153,S155,S161の処理については、実施例2(図23)示したものと同一であるため、説明を省略する。 FIG. 39 shows an example of the processing flow of the medium image reference position setting process. Since the processes of steps S151, S153, S155, and S161 in FIG. 39 are the same as those shown in the second embodiment (FIG. 23), the description thereof will be omitted.

図39のステップS271では、画像処理部15は、媒体画像の外接矩形の重心を媒体画像基準位置に設定する。 In step S271 of FIG. 39, the image processing unit 15 sets the center of gravity of the circumscribed rectangle of the medium image at the medium image reference position.

以下、実施例3の画像処理装置の動作例について説明する。 Hereinafter, an operation example of the image processing apparatus of the third embodiment will be described.

例えば、読取画像RI31,RI32,RI33,RI34(図40A,図41A,図42A,図43A)は、一冊の古書の一連の複数の読取画像に相当する。読取画像RI31は、オモテ表紙の画像である媒体画像MI31を含み、媒体画像MI31における媒体裁断箇所CPは媒体画像MI31の右側に存在する(図40A)。つまり、読取画像RI31には、媒体画像MI31が配置されている。読取画像RI32は、1ページ目の画像である媒体画像MI32を含み、媒体画像MI32における媒体裁断箇所CPは媒体画像MI32の左側に存在する(図41A)。つまり、読取画像RI32には、媒体画像MI32が配置されている。読取画像RI33は、2ページ目の画像である媒体画像MI33を含み、媒体画像MI33における媒体裁断箇所CPは媒体画像MI33の右側に存在する(図42A)。つまり、読取画像RI33には、媒体画像MI33が配置されている。読取画像RI34は、ウラ表紙の画像である媒体画像MI34を含み、媒体画像MI34における媒体裁断箇所CPは媒体画像MI34の左側に存在する(図43A)。つまり、読取画像RI34には、媒体画像MI34が配置されている。 For example, the scanned images RI31, RI32, RI33, and RI34 (FIGS. 40A, 41A, 42A, 43A) correspond to a series of plurality of scanned images of one old book. The scanned image RI31 includes the medium image MI31 which is an image of the front cover, and the medium cut portion CP in the medium image MI31 exists on the right side of the medium image MI31 (FIG. 40A). That is, the medium image MI31 is arranged on the scanned image RI31. The scanned image RI32 includes the medium image MI32 which is the image of the first page, and the medium cutting portion CP in the medium image MI32 exists on the left side of the medium image MI32 (FIG. 41A). That is, the medium image MI32 is arranged on the scanned image RI32. The scanned image RI33 includes the medium image MI33 which is the image of the second page, and the medium cut portion CP in the medium image MI33 exists on the right side of the medium image MI33 (FIG. 42A). That is, the medium image MI33 is arranged on the scanned image RI33. The scanned image RI34 includes the medium image MI34 which is an image of the back cover, and the medium cut portion CP in the medium image MI34 exists on the left side of the medium image MI34 (FIG. 43A). That is, the medium image MI34 is arranged on the scanned image RI34.

まず、図40Bに示すように、画像処理部15は、媒体画像MI31の外接矩形BR31を検出し、検出した外接矩形BR31の重心GB31を算出する。また、画像処理部15は、重心GB31を媒体画像MI31の媒体画像基準位置に設定する。 First, as shown in FIG. 40B, the image processing unit 15 detects the circumscribed rectangle BR31 of the medium image MI31 and calculates the center of gravity GB31 of the detected circumscribed rectangle BR31. Further, the image processing unit 15 sets the center of gravity GB31 at the medium image reference position of the medium image MI31.

また、図41Bに示すように、画像処理部15は、媒体画像MI32の外接矩形BR32を検出し、検出した外接矩形BR32の重心GB32を算出する。また、画像処理部15は、重心GB32を媒体画像MI32の媒体画像基準位置に設定する。 Further, as shown in FIG. 41B, the image processing unit 15 detects the circumscribed rectangle BR32 of the medium image MI32 and calculates the center of gravity GB32 of the detected circumscribed rectangle BR32. Further, the image processing unit 15 sets the center of gravity GB32 at the medium image reference position of the medium image MI32.

また、図42Bに示すように、画像処理部15は、媒体画像MI33の外接矩形BR33を検出し、検出した外接矩形BR33の重心GB33を算出する。また、画像処理部15は、重心GB33を媒体画像MI33の媒体画像基準位置に設定する。 Further, as shown in FIG. 42B, the image processing unit 15 detects the circumscribed rectangle BR33 of the medium image MI33 and calculates the center of gravity GB33 of the detected circumscribed rectangle BR33. Further, the image processing unit 15 sets the center of gravity GB33 at the medium image reference position of the medium image MI33.

また、図43Bに示すように、画像処理部15は、媒体画像MI34の外接矩形BR34を検出し、検出した外接矩形BR34の重心GB34を算出する。また、画像処理部15は、重心GB34を媒体画像MI34の媒体画像基準位置に設定する。 Further, as shown in FIG. 43B, the image processing unit 15 detects the circumscribed rectangle BR34 of the medium image MI34 and calculates the center of gravity GB34 of the detected circumscribed rectangle BR34. Further, the image processing unit 15 sets the center of gravity GB34 at the medium image reference position of the medium image MI34.

次いで、画像処理部15は、矩形のクロッピング領域CA31を読取画像RI31に対して設定する(図40B)。クロッピング領域CA31は外接矩形BR31を包含し、クロッピング領域CA31の縦長さは外接矩形BR31の縦長さに所定の余白MG1を付したものであり、クロッピング領域CA31の横長さは外接矩形BR31の横長さに所定の余白MG2を付したものである。そして、画像処理部15は、クロッピング領域CA31に従って、読取画像RI31からクロッピング画像RI31Fを切り出す(図40C)。 Next, the image processing unit 15 sets a rectangular cropping region CA31 with respect to the scanned image RI31 (FIG. 40B). The cropping area CA31 includes the circumscribed rectangle BR31, the vertical length of the cropping area CA31 is the vertical length of the circumscribed rectangle BR31 with a predetermined margin MG1, and the horizontal length of the cropping area CA31 is the horizontal length of the circumscribed rectangle BR31. A predetermined margin MG2 is attached. Then, the image processing unit 15 cuts out the cropping image RI31F from the scanned image RI31 according to the cropping region CA31 (FIG. 40C).

また、画像処理部15は、矩形のクロッピング領域CA32を読取画像RI32に対して設定する(図41B)。クロッピング領域CA32は外接矩形BR32を包含し、クロッピング領域CA32の縦長さは外接矩形BR32の縦長さに所定の余白MG1を付したものであり、クロッピング領域CA32の横長さは外接矩形BR32の横長さに所定の余白MG2を付したものである。そして、画像処理部15は、クロッピング領域CA32に従って、読取画像RI32からクロッピング画像RI32Fを切り出す(図41C)。 Further, the image processing unit 15 sets a rectangular cropping region CA32 for the scanned image RI32 (FIG. 41B). The cropping area CA32 includes the circumscribed rectangle BR32, the vertical length of the cropping area CA32 is the vertical length of the circumscribed rectangle BR32 with a predetermined margin MG1, and the horizontal length of the cropping area CA32 is the horizontal length of the circumscribed rectangle BR32. A predetermined margin MG2 is attached. Then, the image processing unit 15 cuts out the cropping image RI32F from the scanned image RI32 according to the cropping region CA32 (FIG. 41C).

また、画像処理部15は、矩形のクロッピング領域CA33を読取画像RI33に対して設定する(図42B)。クロッピング領域CA33は外接矩形BR33を包含し、クロッピング領域CA33の縦長さは外接矩形BR33の縦長さに所定の余白MG1を付したものであり、クロッピング領域CA33の横長さは外接矩形BR33の横長さに所定の余白MG2を付したものである。そして、画像処理部15は、クロッピング領域CA33に従って、正立補正後のクロッピング画像RI33Fを読取画像RI33から切り出す(図42C)。 Further, the image processing unit 15 sets a rectangular cropping region CA33 with respect to the scanned image RI33 (FIG. 42B). The cropping area CA33 includes the circumscribed rectangle BR33, the vertical length of the cropping area CA33 is the vertical length of the circumscribed rectangle BR33 with a predetermined margin MG1, and the horizontal length of the cropping area CA33 is the horizontal length of the circumscribed rectangle BR33. A predetermined margin MG2 is attached. Then, the image processing unit 15 cuts out the cropped image RI33F after the upright correction from the scanned image RI33 according to the cropping region CA33 (FIG. 42C).

また、画像処理部15は、矩形のクロッピング領域CA34を読取画像RI34に対して設定する(図43B)。クロッピング領域CA34は外接矩形BR34を包含し、クロッピング領域CA34の縦長さは外接矩形BR34の縦長さに所定の余白MG1を付したものであり、クロッピング領域CA34の横長さは外接矩形BR34の横長さに所定の余白MG2を付したものである。そして、画像処理部15は、クロッピング領域CA34に従って、読取画像RI34からクロッピング画像RI34Fを切り出す(図43C)。 Further, the image processing unit 15 sets a rectangular cropping region CA34 with respect to the scanned image RI34 (FIG. 43B). The cropping area CA34 includes the circumscribed rectangle BR34, the vertical length of the cropping area CA34 is the vertical length of the circumscribed rectangle BR34 with a predetermined margin MG1, and the horizontal length of the cropping area CA34 is the horizontal length of the circumscribed rectangle BR34. A predetermined margin MG2 is attached. Then, the image processing unit 15 cuts out the cropping image RI34F from the scanned image RI34 according to the cropping region CA34 (FIG. 43C).

次いで、画像処理部15は、図44A〜Dに示すように、媒体画像MI31,M322,MI33,MI34に基づいて、クロッピング画像RI31F,RI32F,RI33F,RI34Fに対して位置及びサイズが同一の抽出領域EA31を設定する。矩形の抽出領域EA31の縦長さDstH3はクロッピング画像RI31F,RI32F,RI33F,RI34Fのすべてにおいて同一である。また、矩形の抽出領域EA31の横長さDstW3はクロッピング画像RI31F,RI32F,RI33F,RI34Fのすべてにおいて同一である。また、クロッピング画像RI31Fに設定された抽出領域EA31には媒体画像MI31の主要部分が存在し(図44A)、クロッピング画像RI32Fに設定された抽出領域EA31には媒体画像MI32の主要部分が存在し(図44B)、クロッピング画像RI331Fに設定された抽出領域EA31には媒体画像MI33の主要部分が存在し(図44C)、クロッピング画像RI34Fに設定された抽出領域EA31には媒体画像MI34の主要部分が存在する(図44D)。 Next, as shown in FIGS. 44A to 44D, the image processing unit 15 has an extraction region having the same position and size as the cropping images RI31F, RI32F, RI33F, and RI34F based on the medium images MI31, M322, MI33, and MI34. Set EA31. The vertical length DstH3 of the rectangular extraction region EA31 is the same in all of the cropping images RI31F, RI32F, RI33F, and RI34F. Further, the horizontal length DstW3 of the rectangular extraction region EA31 is the same in all of the cropping images RI31F, RI32F, RI33F, and RI34F. Further, the main part of the medium image MI31 exists in the extraction region EA31 set in the cropping image RI31F (FIG. 44A), and the main part of the medium image MI32 exists in the extraction region EA31 set in the cropping image RI32F (FIG. 44A). 44B), the main part of the medium image MI33 is present in the extraction region EA31 set in the cropping image RI331F (FIG. 44C), and the main part of the medium image MI34 is present in the extraction region EA31 set in the cropping image RI34F. (Fig. 44D).

そこで、画像処理部15は、図45A〜Dに示すように、抽出領域EA31に従って、クロッピング画像RI31Fから媒体画像MI31の主要部分MI31Cを抽出し、クロッピング画像RI32Fから媒体画像MI32の主要部分MI32Cを抽出し、クロッピング画像RI33Fから媒体画像MI33の主要部分MI33Cを抽出し、クロッピング画像RI34Fから媒体画像MI34の主要部分MI34Cを抽出を抽出する。 Therefore, as shown in FIGS. 45A to 45D, the image processing unit 15 extracts the main part MI31C of the medium image MI31 from the cropping image RI31F and extracts the main part MI32C of the medium image MI32 from the cropping image RI32F according to the extraction region EA31. Then, the main part MI33C of the medium image MI33 is extracted from the cropped image RI33F, and the main part MI34C of the medium image MI34 is extracted from the cropped image RI34F.

そして、画像処理部15は、図46に示すように、主要部分MI31C,MI32C,MI33C,MI34Cを表示部17に表示させる。すなわち、画像処理部15は、オモテ表紙の画像の主要部分MI31C、1ページ目の画像の主要部分MI32C、2ページ目の画像の主要部分MI33C、…、ウラ表紙の画像の主要部分MI34Cを順に表示部17に表示させる。また、画像処理部15は、オモテ表紙の画像の主要部分MI31C、及び、ウラ表紙の画像の主要部分MI34Cをそれぞれ単独のページとして表示部17に表示させる一方で、1ページ目の画像の主要部分MI32Cと2ページ目の画像の主要部分MI33Cとを裁断箇所で接合して見開きのページとして表示部17に表示させる。 Then, as shown in FIG. 46, the image processing unit 15 causes the display unit 17 to display the main parts MI31C, MI32C, MI33C, and MI34C. That is, the image processing unit 15 displays the main part MI31C of the image on the front cover, the main part MI32C of the image on the first page, the main part MI33C of the image on the second page, ..., The main part MI34C of the image on the back cover in order. It is displayed on the unit 17. Further, the image processing unit 15 causes the display unit 17 to display the main part MI31C of the front cover image and the main part MI34C of the back cover image as independent pages, while the main part of the image on the first page. The MI32C and the main part MI33C of the image on the second page are joined at the cut portion and displayed on the display unit 17 as a double-page spread.

図47A〜C、図48、図49A〜C、及び、図50A〜Cに、読取画像に対する抽出領域の設定例を示す。一例として、クロッピング画像RI41Fには媒体画像MI41が含まれ(図47A)、クロッピング画像RI42Fには媒体画像MI42が含まれ(図47B)、クロッピング画像RI43Fには媒体画像MI43が含まれる(図47C)。また、クロッピング画像RI41Fには、媒体画像MI41の外接矩形の重心GB41が設定され、クロッピング画像RI42Fには、媒体画像MI42の外接矩形の重心GB42が設定され、クロッピング画像RI43Fには、媒体画像MI43の外接矩形の重心GB43が設定されている。 47A to 47C, FIGS. 48, 49A to 49C, and 50A to 50C show examples of setting the extraction region for the scanned image. As an example, the cropping image RI41F includes a medium image MI41 (FIG. 47A), the cropping image RI42F includes a medium image MI42 (FIG. 47B), and the cropping image RI43F includes a medium image MI43 (FIG. 47C). .. Further, the cropping image RI41F is set with the center of gravity GB41 of the circumscribing rectangle of the medium image MI41, the cropping image RI42F is set with the center of gravity GB42 of the circumscribing rectangle of the medium image MI42, and the cropping image RI43F is set with the center of gravity GB42 of the medium image MI43. The center of gravity GB43 of the circumscribing rectangle is set.

図47Aに示すように、媒体画像MI41における媒体裁断箇所CPは媒体画像MI41の右側に存在するため、画像処理部15は、媒体画像MI41の外接矩形の右辺を左方向に平行移動させることにより、クロッピング画像RI41Fにおいて、媒体裁断箇所CPを含まない矩形IR41を作成する。 As shown in FIG. 47A, since the medium cutting portion CP in the medium image MI41 exists on the right side of the medium image MI41, the image processing unit 15 moves the right side of the circumscribing rectangle of the medium image MI41 in parallel to the left. In the cropping image RI41F, a rectangle IR41 that does not include the medium cutting portion CP is created.

また、図47Bに示すように、媒体画像MI42における媒体裁断箇所CPは媒体画像MI42の左側に存在するため、画像処理部15は、媒体画像MI42の外接矩形の左辺を右方向に平行移動させることにより、クロッピング画像RI42Fにおいて、媒体裁断箇所CPを含まない矩形IR42を作成する。 Further, as shown in FIG. 47B, since the medium cutting portion CP in the medium image MI42 exists on the left side of the medium image MI42, the image processing unit 15 moves the left side of the circumscribing rectangle of the medium image MI42 in parallel to the right. Therefore, in the cropping image RI42F, a rectangle IR42 that does not include the medium cutting portion CP is created.

また、図47Cに示すように、媒体画像MI43における媒体裁断箇所CPは媒体画像MI43の右側に存在するため、画像処理部15は、媒体画像MI43の外接矩形の右辺を左方向に平行移動させることにより、クロッピング画像RI43Fにおいて、媒体裁断箇所CPを含まない矩形IR43を作成する。 Further, as shown in FIG. 47C, since the medium cutting portion CP in the medium image MI43 exists on the right side of the medium image MI43, the image processing unit 15 moves the right side of the circumscribing rectangle of the medium image MI43 in parallel to the left. Therefore, in the cropping image RI43F, a rectangle IR43 that does not include the medium cutting portion CP is created.

次いで、画像処理部15は、図48に示すように、重心GB41,GB42,GB43を互いに一致させて矩形IR41,IR42,IR43を配置する。そして、画像処理部15は、矩形IR41,IR42,IR43のすべてが重複する矩形領域を抽出領域EA4として決定する。よって、矩形の抽出領域EA4の重心GB5は、重心GB41,GB42,GB43に一致する。 Next, as shown in FIG. 48, the image processing unit 15 arranges the rectangles IR41, IR42, and IR43 by aligning the centers of gravity GB41, GB42, and GB43 with each other. Then, the image processing unit 15 determines a rectangular region in which all of the rectangles IR41, IR42, and IR43 overlap as the extraction region EA4. Therefore, the center of gravity GB5 of the rectangular extraction region EA4 coincides with the centers of gravity GB41, GB42, and GB43.

そして、画像処理部15は、図49Aに示すように、重心GB5を重心GB41に一致させて抽出領域EA4をクロッピング画像RI41Fに設定する。 Then, as shown in FIG. 49A, the image processing unit 15 sets the extraction region EA4 in the cropping image RI41F by matching the center of gravity GB5 with the center of gravity GB41.

また、画像処理部15は、図49Bに示すように、重心GB5を重心GB42に一致させて抽出領域EA4をクロッピング画像RI42Fに設定する。 Further, as shown in FIG. 49B, the image processing unit 15 sets the extraction region EA4 in the cropping image RI42F by matching the center of gravity GB5 with the center of gravity GB42.

また、画像処理部15は、図49Cに示すように、重心GB5を重心GB43に一致させて抽出領域EA4をクロッピング画像RI43Fに設定する。 Further, as shown in FIG. 49C, the image processing unit 15 sets the extraction region EA4 in the cropping image RI43F by matching the center of gravity GB5 with the center of gravity GB43.

よって、クロッピング画像RI41Fに設定された抽出領域EA4には媒体画像MI41の主要部分が存在し、クロッピング画像RI42Fに設定された抽出領域EA4には媒体画像MI42の主要部分が存在し、クロッピング画像RI43Fに設定された抽出領域EA4には媒体画像MI43の主要部分が存在する。 Therefore, the main part of the medium image MI41 exists in the extraction area EA4 set in the cropping image RI41F, and the main part of the medium image MI42 exists in the extraction area EA4 set in the cropping image RI42F. The main part of the medium image MI43 exists in the set extraction region EA4.

そこで、画像処理部15は、図50A〜Cに示すように、抽出領域EA4に従って、クロッピング画像RI41Fから媒体画像MI41の主要部分MI41Cを抽出し、クロッピング画像RI42Fから媒体画像MI42の主要部分MI42Cを抽出し、クロッピング画像RI43Fから媒体画像MI43の主要部分MI43Cを抽出する。 Therefore, as shown in FIGS. 50A to 50C, the image processing unit 15 extracts the main part MI41C of the medium image MI41 from the cropping image RI41F and extracts the main part MI42C of the medium image MI42 from the cropping image RI42F according to the extraction region EA4. Then, the main part MI43C of the medium image MI43 is extracted from the cropping image RI43F.

以上、実施例3について説明した。 The third embodiment has been described above.

[実施例4]
実施例1では、画像処理部15は、媒体輪郭図形の上辺の中点、または、媒体輪郭図形の上辺の両端のコーナー点を結ぶ直線の中点を媒体画像基準位置に設定した。
[Example 4]
In the first embodiment, the image processing unit 15 sets the midpoint of the upper side of the medium contour figure or the midpoint of the straight line connecting the corner points at both ends of the upper side of the medium contour figure as the medium image reference position.

しかし、画像処理部15は、媒体輪郭図形の下辺の中点、または、媒体輪郭図形の下辺の両端のコーナー点を結ぶ直線の中点を媒体画像基準位置に設定しても良い。また、画像処理部15は、媒体輪郭図形の左辺の中点、または、媒体輪郭図形の左辺の両端のコーナー点を結ぶ直線の中点を媒体画像基準位置に設定しても良い。また、画像処理部15は、媒体輪郭図形の右辺の中点、または、媒体輪郭図形の右辺の両端のコーナー点を結ぶ直線の中点を媒体画像基準位置に設定しても良い。 However, the image processing unit 15 may set the midpoint of the lower side of the medium contour figure or the midpoint of the straight line connecting the corner points at both ends of the lower side of the medium contour figure as the medium image reference position. Further, the image processing unit 15 may set the midpoint of the left side of the medium contour figure or the midpoint of the straight line connecting the corner points at both ends of the left side of the medium contour figure as the medium image reference position. Further, the image processing unit 15 may set the midpoint of the right side of the medium contour figure or the midpoint of the straight line connecting the corner points at both ends of the right side of the medium contour figure as the medium image reference position.

また、画像処理部15は、媒体画像において、本のノド部の上端を媒体画像基準位置に設定しても良い。 Further, the image processing unit 15 may set the upper end of the throat portion of the book as the medium image reference position in the medium image.

[実施例5]
実施例1では、画像処理部15は、読取画像に含まれる原稿台画像の上辺の中点を読取画像基準位置に設定した。
[Example 5]
In the first embodiment, the image processing unit 15 sets the midpoint of the upper side of the platen image included in the scanned image as the scanned image reference position.

しかし、画像処理部15は、読取画像に含まれる原稿台画像の下辺の中点を読取画像基準位置に設定しても良い。 However, the image processing unit 15 may set the midpoint of the lower side of the platen image included in the scanned image as the scanned image reference position.

また、画像処理部15は、矩形の読取画像の何れかの頂点を読取画像基準位置に設定しても良い。 Further, the image processing unit 15 may set any vertex of the rectangular scanned image as the scanned image reference position.

[実施例6]
実施例1では、画像処理部15は、複数の読取画像における再配置後のすべての媒体画像の外接矩形を包含する矩形に基づいて抽出領域を設定した。また、実施例2では、画像処理部15は、複数の読取画像における再配置後のすべての媒体画像の外接矩形が重複する矩形領域に基づいて抽出領域を設定した。実施例1,2における抽出領域の設定の際に、画像処理部15は、外接矩形に所定の余白を付した領域に基づいて抽出領域を設定しても良い。こうすることで、読取画像から媒体画像を抽出する際に媒体画像の一部が欠けてしまう可能性を低くすることができる。
[Example 6]
In the first embodiment, the image processing unit 15 sets the extraction region based on the rectangle including the circumscribed rectangle of all the medium images after rearrangement in the plurality of scanned images. Further, in the second embodiment, the image processing unit 15 sets the extraction area based on the rectangular area where the circumscribed rectangles of all the medium images after rearrangement in the plurality of scanned images overlap. When setting the extraction area in Examples 1 and 2, the image processing unit 15 may set the extraction area based on the area in which the circumscribed rectangle is provided with a predetermined margin. By doing so, it is possible to reduce the possibility that a part of the medium image is missing when the medium image is extracted from the scanned image.

[実施例7]
記憶部13は、ハードウェアとして、例えば、メモリにより実現される。メモリの一例として、SDRAM(Synchronous Dynamic Random Access Memory)等のRAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ等が挙げられる。
[Example 7]
The storage unit 13 is realized as hardware, for example, by a memory. Examples of the memory include RAM (Random Access Memory) such as SDRAM (Synchronous Dynamic Random Access Memory), ROM (Read Only Memory), and flash memory.

制御部11及び画像処理部15は、ハードウェアとして、例えばプロセッサにより実現される。プロセッサの一例として、CPU(Central Processing Unit)、DSP(Digital Signal Processor)、FPGA(Field Programmable Gate Array)等が挙げられる。また、制御部11及び画像処理部15は、プロセッサと周辺回路とを含むLSI(Large Scale Integrated circuit)によって実現されても良い。さらに、制御部11及び画像処理部15は、GPU(Graphics Processing Unit)、ASIC(Application Specific Integrated Circuit)等を用いて実現されても良い。 The control unit 11 and the image processing unit 15 are realized as hardware, for example, by a processor. Examples of processors include CPUs (Central Processing Units), DSPs (Digital Signal Processors), FPGAs (Field Programmable Gate Arrays), and the like. Further, the control unit 11 and the image processing unit 15 may be realized by an LSI (Large Scale Integrated circuit) including a processor and peripheral circuits. Further, the control unit 11 and the image processing unit 15 may be realized by using a GPU (Graphics Processing Unit), an ASIC (Application Specific Integrated Circuit), or the like.

表示部17は、ハードウェアとして、例えばディスプレイにより実現される。画像処理装置10に用いられるディスプレイの一例として、液晶ディスプレイが挙げられる。 The display unit 17 is realized as hardware, for example, by a display. An example of a display used in the image processing device 10 is a liquid crystal display.

画像処理装置10での上記説明における各処理の全部または一部は、各処理に対応するプログラムを画像処理装置10が有するプロセッサに実行させることによって実現しても良い。例えば、上記説明における各処理に対応するプログラムがメモリに記憶され、プログラムがプロセッサによってメモリから読み出されて実行されても良い。また、プログラムは、任意のネットワークを介して画像処理装置10に接続されたプログラムサーバに記憶され、そのプログラムサーバから画像処理装置10にダウンロードされて実行されたり、画像処理装置10が読み取り可能な記録媒体に記憶され、その記録媒体から読み出されて実行されても良い。画像処理装置10が読み取り可能な記録媒体には、例えば、メモリカード、USBメモリ、SDカード、フレキシブルディスク、光磁気ディスク、CD−ROM、DVD、及び、Blu−ray(登録商標)ディスク等の可搬の記憶媒体が含まれる。また、プログラムは、任意の言語や任意の記述方法にて記述されたデータ処理方法であり、ソースコードやバイナリコード等の形式を問わない。また、プログラムは必ずしも単一的に構成されるものに限られず、複数のモジュールや複数のライブラリとして分散構成されるものや、OSに代表される別個のプログラムと協働してその機能を達成するものも含む。 All or part of each process in the above description in the image processing device 10 may be realized by causing a processor included in the image processing device 10 to execute a program corresponding to each process. For example, the program corresponding to each process in the above description may be stored in the memory, and the program may be read from the memory by the processor and executed. Further, the program is stored in a program server connected to the image processing device 10 via an arbitrary network, downloaded from the program server to the image processing device 10 and executed, or a record that can be read by the image processing device 10. It may be stored in a medium, read from the recording medium, and executed. Recording media that can be read by the image processing device 10 include, for example, memory cards, USB memory, SD cards, flexible disks, magneto-optical disks, CD-ROMs, DVDs, and Blu-ray (registered trademark) disks. Carrying storage media is included. The program is a data processing method described in an arbitrary language or an arbitrary description method, and may be in any format such as source code or binary code. In addition, the program is not necessarily limited to a single program, but is distributed as multiple modules or multiple libraries, or cooperates with a separate program represented by the OS to achieve its function. Including things.

画像処理装置10の分散・統合の具体的形態は図示するものに限られず、画像処理装置10の全部または一部を、各種の付加等に応じて、または、機能負荷に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。 The specific form of dispersion / integration of the image processing device 10 is not limited to the one shown in the drawing, and all or a part of the image processing device 10 can be used as an arbitrary unit according to various additions or functional loads. It can be functionally or physically distributed and integrated.

1 画像処理装置
11 制御部
13 記憶部
15 画像処理部
17 表示部
1 Image processing device 11 Control unit 13 Storage unit 15 Image processing unit 17 Display unit

Claims (12)

各々が媒体画像を含む一連の複数の読取画像を記憶する記憶部と、
前記複数の読取画像の各々において、前記媒体画像が存在する第一領域に第一基準位置を設定し、前記第一領域以外の第二領域に第二基準位置を設定し、前記第一基準位置と前記第二基準位置との間の位置関係に基づいて、前記読取画像内で前記媒体画像を再配置し、
再配置後の前記媒体画像に基づいて、前記複数の読取画像において同一の抽出領域を設定し、前記抽出領域に従って、前記複数の読取画像の各々から前記媒体画像を抽出する画像処理部と、
を具備する画像処理装置。
A storage unit, each of which stores a series of a plurality of scanned images including a medium image,
In each of the plurality of scanned images, the first reference position is set in the first region where the medium image exists, the second reference position is set in the second region other than the first region, and the first reference position is set. The medium image is rearranged in the scanned image based on the positional relationship between the second reference position and the second reference position.
An image processing unit that sets the same extraction region in the plurality of scanned images based on the rearranged medium image and extracts the medium image from each of the plurality of scanned images according to the extracted region.
An image processing device comprising.
前記複数の読取画像は、二つの読取画像を含み、
前記画像処理部は、前記二つの読取画像のうちの一方の読取画像に含まれる第一媒体画像と、前記二つの読取画像のうちの他方の読取画像に含まれ、かつ、前記第一媒体画像と対になる第二媒体画像との間において、前記位置関係が同一になるように前記第二媒体画像を再配置する、
請求項1に記載の画像処理装置。
The plurality of scanned images include two scanned images.
The image processing unit includes the first medium image included in one of the two scanned images and the other scanned image of the two scanned images, and the first medium image. The second medium image is rearranged so that the positional relationship is the same between the second medium image and the paired second medium image.
The image processing apparatus according to claim 1.
前記画像処理部は、前記複数の読取画像における再配置後のすべての前記媒体画像の外接矩形を包含する矩形に基づいて前記抽出領域を設定する、
請求項1に記載の画像処理装置。
The image processing unit sets the extraction region based on a rectangle including the circumscribed rectangles of all the medium images after rearrangement in the plurality of scanned images.
The image processing apparatus according to claim 1.
前記画像処理部は、前記複数の読取画像における再配置後のすべての前記媒体画像の外接矩形が重複する矩形領域に基づいて前記抽出領域を設定する、
請求項1に記載の画像処理装置。
The image processing unit sets the extraction region based on a rectangular region in which the circumscribed rectangles of all the media images after rearrangement in the plurality of scanned images overlap.
The image processing apparatus according to claim 1.
前記画像処理部は、前記読取画像に含まれる原稿台画像の上辺の中点を前記第二基準位置に設定する、
請求項1に記載の画像処理装置。
The image processing unit sets the midpoint of the upper side of the platen image included in the scanned image at the second reference position.
The image processing apparatus according to claim 1.
前記画像処理部は、矩形の前記読取画像の頂点を前記第二基準位置に設定する、
請求項1に記載の画像処理装置。
The image processing unit sets the apex of the rectangular scanned image at the second reference position.
The image processing apparatus according to claim 1.
前記画像処理部は、前記媒体画像上の二つのコーナー点を結ぶ直線の中点を前記第一基準位置に設定する、
請求項1に記載の画像処理装置。
The image processing unit sets the midpoint of the straight line connecting the two corner points on the medium image at the first reference position.
The image processing apparatus according to claim 1.
前記画像処理部は、前記外接矩形に所定の余白を付した領域に基づいて前記抽出領域を設定する、
請求項3または4に記載の画像処理装置。
The image processing unit sets the extraction area based on the area in which the circumscribed rectangle is provided with a predetermined margin.
The image processing apparatus according to claim 3 or 4.
前記画像処理部は、前記媒体画像において媒体の裁断箇所を検出し、前記裁断箇所に基づいて前記媒体画像上に前記第一基準位置を設定する、
請求項1に記載の画像処理装置。
The image processing unit detects a cut portion of the medium in the medium image and sets the first reference position on the medium image based on the cut portion.
The image processing apparatus according to claim 1.
前記複数の読取画像は、二つの読取画像を含み、
前記画像処理部は、前記二つの読取画像のうちの一方の読取画像に含まれる第一媒体画像の縦の長さと、前記二つの読取画像のうちの他方の読取画像に含まれる第二媒体画像の縦の長さとの差が第一閾値未満であり、前記第一媒体画像の横の長さと前記第二媒体画像の横の長さとの差が第二閾値以上であり、かつ、前記第二媒体画像の横の長さが前記第一媒体画像の横の長さの所定範囲にあるときは、前記第二媒体画像の縦方向の配置を変更する一方で、前記第二媒体画像の横方向の配置を変更しない、
請求項1に記載の画像処理装置。
The plurality of scanned images include two scanned images.
The image processing unit has the vertical length of the first medium image included in one of the two scanned images and the second medium image included in the other scanned image of the two scanned images. The difference between the vertical length and the vertical length of the first medium image is less than the first threshold value, the difference between the horizontal length of the first medium image and the horizontal length of the second medium image is greater than or equal to the second threshold value, and the second is the second. When the horizontal length of the medium image is within a predetermined range of the horizontal length of the first medium image, the vertical arrangement of the second medium image is changed, while the horizontal direction of the second medium image is changed. Do not change the placement of
The image processing apparatus according to claim 1.
前記画像処理部は、前記第一媒体画像と対になる媒体画像が存在しないときに、警告を出力する、
請求項2に記載の画像処理装置。
The image processing unit outputs a warning when there is no medium image paired with the first medium image.
The image processing apparatus according to claim 2.
各々が媒体画像を含む一連の複数の読取画像を記憶し、
前記複数の読取画像の各々において、前記媒体画像が存在する第一領域に第一基準位置を設定し、前記第一領域以外の第二領域に第二基準位置を設定し、前記第一基準位置と前記第二基準位置との間の位置関係に基づいて、前記読取画像内で前記媒体画像を再配置し、
再配置後の前記媒体画像に基づいて、前記複数の読取画像において同一の抽出領域を設定し、前記抽出領域に従って、前記複数の読取画像の各々から前記媒体画像を抽出する、
画像処理方法。
Stores a series of multiple scanned images, each containing a medium image,
In each of the plurality of scanned images, the first reference position is set in the first region where the medium image exists, the second reference position is set in the second region other than the first region, and the first reference position is set. The medium image is rearranged in the scanned image based on the positional relationship between the second reference position and the second reference position.
The same extraction region is set in the plurality of scanned images based on the rearranged medium image, and the medium image is extracted from each of the plurality of scanned images according to the extraction region.
Image processing method.
JP2020530857A 2018-07-20 2018-07-20 Image processing device and image processing method Active JP6956269B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/027354 WO2020017045A1 (en) 2018-07-20 2018-07-20 Image processing device and image processing method

Publications (2)

Publication Number Publication Date
JPWO2020017045A1 JPWO2020017045A1 (en) 2021-02-25
JP6956269B2 true JP6956269B2 (en) 2021-11-02

Family

ID=69163698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020530857A Active JP6956269B2 (en) 2018-07-20 2018-07-20 Image processing device and image processing method

Country Status (2)

Country Link
JP (1) JP6956269B2 (en)
WO (1) WO2020017045A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3648382B2 (en) * 1997-07-24 2005-05-18 株式会社リコー Image processing device
JP4168957B2 (en) * 2004-03-17 2008-10-22 富士ゼロックス株式会社 Image processing program and apparatus
CN102833460B (en) * 2011-06-15 2015-03-11 富士通株式会社 Image processing method, image processing device and scanner

Also Published As

Publication number Publication date
WO2020017045A1 (en) 2020-01-23
JPWO2020017045A1 (en) 2021-02-25

Similar Documents

Publication Publication Date Title
US20150317784A1 (en) Image processing apparatus, information processing method, and program
KR101557999B1 (en) Image processing method recording medium recording image processing program and image processing apparatus
US10007846B2 (en) Image processing method
JP2018520428A (en) Image processing method and apparatus
JP6956269B2 (en) Image processing device and image processing method
JP5541679B2 (en) Image processing apparatus and method, and program
US10296802B2 (en) Image processing device, image processing method, and computer program product
JP2016051110A (en) Display device and display control program
JP6543649B2 (en) Screen difference detection device and program
US20230410361A1 (en) Image processing system, processing method, and non-transitory storage medium
CN111133474B (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2010102396A (en) Person detection device, person detection method, and program
KR101503640B1 (en) Apparatus and method for supporting electronic signature
JP6137464B2 (en) Image processing apparatus and image processing program
JP2010097564A (en) Information processor and layout processing method
JPH09147109A (en) Method and device for specific mark detection
US10051150B2 (en) Image processing apparatus and medium storing program executable by computer
JP6613625B2 (en) Image processing program, image processing apparatus, and image processing method
JP2020166653A (en) Information processing device, information processing method, and program
JP2018147471A (en) Image processing system and method
JPH1153539A (en) Circular pattern discriminating method and storage medium
US10250777B2 (en) Image processing apparatus and non-transitory computer readable medium for image difference confirmation
JP2015041233A (en) Image processor and method thereof
JP2002171395A (en) Image processor, method for the same and storage medium
JP7443965B2 (en) Information processing device, correction method, program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200824

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210914

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211004

R150 Certificate of patent or registration of utility model

Ref document number: 6956269

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150