JP2012151586A - Image processing apparatus, image processing method, and image processing program - Google Patents

Image processing apparatus, image processing method, and image processing program Download PDF

Info

Publication number
JP2012151586A
JP2012151586A JP2011007595A JP2011007595A JP2012151586A JP 2012151586 A JP2012151586 A JP 2012151586A JP 2011007595 A JP2011007595 A JP 2011007595A JP 2011007595 A JP2011007595 A JP 2011007595A JP 2012151586 A JP2012151586 A JP 2012151586A
Authority
JP
Japan
Prior art keywords
image
fold
optical density
medium
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011007595A
Other languages
Japanese (ja)
Inventor
Tomoaki Shibata
智章 柴田
Hideo Ueno
英生 上野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011007595A priority Critical patent/JP2012151586A/en
Publication of JP2012151586A publication Critical patent/JP2012151586A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus, an image processing method, and an image processing program capable of acquiring image data on a page-by-page basis from a medium, without setting the positions of folds by a user.SOLUTION: The image processing apparatus acquires an image from a front side 101 and a back side of a medium 100 formed of a sheet of foldable paper and determines an optical density thereof. The image processing apparatus extracts a portion in which the determined optical density is conspicuously different from that in the other part. If folds 121, 122, and 123 are formed in the medium 100 having a white ground color, the optical density in the portion becomes larger than the other portion. The image processing apparatus determines portions having larger optical densities as the positions of the folds and divides the image at the positions of the folds. As the result, images 111, 112, 113, and 114 divided on the page-by-page basis are produced.

Description

本発明は、折り目の位置に基づいて画像を加工する画像処理装置、画像処理方法、及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program that process an image based on a fold position.

折り畳むことが可能な一枚の用紙からなり、折り目によって区切られた複数のページの其々に情報を付した媒体がある。この媒体の一例として、折り畳みパンフレットや飲食店のメニューなどがある。このような媒体からページ単位で画像データを取得することができる装置が提案されている。例えば特許文献1に記載された装置では、折り目の位置がページの区切り位置として予めユーザによって設定される。該装置は、設定された区切り位置で元の画像データを分割する。これによって該装置は、折り目によって区分されたページ単位で、画像データを取得することができる。   There is a medium made of a single sheet that can be folded, and information is attached to each of a plurality of pages separated by folds. Examples of this medium include folding brochures and restaurant menus. An apparatus capable of acquiring image data from such a medium in units of pages has been proposed. For example, in the apparatus described in Patent Document 1, the position of the fold is set in advance by the user as the page break position. The apparatus divides the original image data at the set delimiter positions. Accordingly, the apparatus can acquire image data in units of pages divided by folds.

特開2008−258913号公報JP 2008-258913 A

上述の装置では、折り目の位置をユーザが設定する必要がある。従って、折り目の位置の異なる複数の媒体からページ単位で画像データを取得する場合などに、ユーザは折り目の位置の設定を繰り返し行わなければならいという問題点がある。   In the above-described apparatus, the user needs to set the position of the fold. Therefore, there is a problem that the user has to repeatedly set the fold position when acquiring image data in units of pages from a plurality of media having different fold positions.

本発明の目的は、ユーザによる折り目の位置の設定を要せず、媒体からページ単位で画像データを取得することができる画像処理装置、画像処理方法、及び画像処理プログラムを提供することにある。   An object of the present invention is to provide an image processing apparatus, an image processing method, and an image processing program capable of acquiring image data in units of pages from a medium without requiring the user to set a fold position.

本発明の第一態様に係る画像処理装置は、折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得部と、前記取得部において取得した前記画像の一部分の光学濃度を決定する決定部と、前記決定部によって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断部と、前記第一判断部において、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工部とを備えている。   An image processing apparatus according to a first aspect of the present invention includes an acquisition unit that acquires a part of an image formed on a medium that is folded in a fold after being folded, and the image acquired in the acquisition unit A determination unit that determines an optical density of a part of the image, and when a difference between the optical density determined by the determination unit and an optical density of another part of the image is greater than a predetermined value, the part of the image is And a processing unit that processes the image based on the position of the fold when the first determination unit determines that a part of the image corresponds to the fold. ing.

第一態様によれば、画像処理装置は、画像の光学濃度に基づいて、媒体の折り目の位置を特定することができる。従って画像処理装置は、ユーザによる折り目の位置の設定を要することなく、特定された折り目の位置をページの区切りと認識できる。画像処理装置は、ページの区切りを正確に認識して画像を加工することで、ページ毎に区切られた画像をユーザに提供できる。   According to the first aspect, the image processing apparatus can specify the position of the fold of the medium based on the optical density of the image. Therefore, the image processing apparatus can recognize the specified fold position as a page break without requiring the user to set the fold position. The image processing apparatus can provide the user with an image divided for each page by accurately recognizing the page break and processing the image.

また第一態様において、前記取得部は、前記媒体の一方の面に形成された第一画像の一部分である第一部分、及び、他方の面に形成された第二画像の一部分であって、前記媒体を挟んで前記第一部分と対向する部分である第二部分を取得し、前記決定部は、前記第一部分及び前記第二部分の前記光学濃度を決定し、前記第一判断部は、前記決定部において決定した前記第一部分の光学濃度と、前記第一画像の他の部分の光学濃度との差が前記所定値より大きく、且つ、前記第二部分の前記光学濃度と、前記第二画像の他の部分の光学濃度との差が前記所定値より大きい場合に、前記第一部分及び前記第二部分が前記折り目に相当すると判断してもよい。画像処理装置は、一方の面に形成された画像から決定した光学濃度と、他方の面に形成された画像から決定した光学濃度との両方が所定条件を満たす場合に、光学濃度を決定した部分が折り目に相当すると判断する。これによって画像処理装置は、ページの区切りを正確に認識することができる。従って、ページの区切りが正確に認識できない場合に発生する不具合、例えば、加工後の画像に、隣接する位置にある画像の一部が含まれたり、加工後の画像の一部が欠けたりする不具合を防止できる。   In the first aspect, the acquisition unit is a first part that is a part of a first image formed on one side of the medium, and a part of a second image that is formed on the other side of the medium. A second part that is a part facing the first part across the medium is acquired, the determination unit determines the optical density of the first part and the second part, and the first determination unit determines the determination The difference between the optical density of the first part determined in the part and the optical density of the other part of the first image is greater than the predetermined value, and the optical density of the second part and the second image When the difference from the optical density of the other part is larger than the predetermined value, it may be determined that the first part and the second part correspond to the fold. The image processing apparatus determines the optical density when both the optical density determined from the image formed on one surface and the optical density determined from the image formed on the other surface satisfy a predetermined condition. Is equivalent to a crease. As a result, the image processing apparatus can accurately recognize page breaks. Therefore, a problem that occurs when the page breaks cannot be recognized correctly, for example, a problem that a part of the image at the adjacent position is included in the processed image or a part of the processed image is missing. Can be prevented.

また、第一態様において、前記第一判断部は、前記折り目の種別が、前記第一部分が外側になるように折れる山折りであるか、又は、前記第一部分が内側になるように折れる谷折りであるかを判断する第二判断部であって、前記第一部分の前記光学濃度と前記第一画像の他の部分の光学濃度との差が、前記第二部分の前記光学濃度と前記第二画像の他の部分の光学濃度との差よりも大きい場合に、前記山折りであると判断し、前記第一部分の前記光学濃度と前記第一画像の他の部分の光学濃度との差が、前記第二部分の前記光学濃度と前記第二画像の他の部分の光学濃度との差よりも小さい場合に、前記谷折りであると判断する第二判断部を備え、前記加工部は、前記第二判断部において判断した前記折り目の種別に基づいて、前記画像を加工してもよい。画像処理装置は、折り目の種類(山折り又は谷折り)を特定することができる。画像処理装置は、媒体が折り畳まれた状態や開かれた状態を、特定した折り目の種類から特定することができる。従って画像処理装置は、媒体が折り畳まれた状態や開かれた状態から、ユーザによる媒体の使用態様を推定し、使用態様に合わせた加工を行うことができる。   Further, in the first aspect, the first determination unit is configured such that the type of the fold is a mountain fold that is folded so that the first portion is outside, or a valley fold that is folded so that the first portion is inside. A difference between the optical density of the first part and the optical density of the other part of the first image is determined by the second determination unit for determining whether the optical density of the second part and the second part When the difference between the optical density of the other part of the image is larger than the difference between the optical density of the first part and the optical density of the other part of the first image, When the difference between the optical density of the second part and the optical density of the other part of the second image is smaller, a second determination unit that determines that the valley is folded, the processing unit, The image is added based on the fold type determined by the second determination unit. It may be. The image processing apparatus can specify the type of fold (mountain fold or valley fold). The image processing apparatus can specify the folded state and the opened state of the medium from the specified fold type. Therefore, the image processing apparatus can estimate the usage mode of the medium by the user from the folded or opened state of the medium, and can perform processing according to the usage mode.

また第一態様において、前記折り目の種別と、前記折り目の位置で分割された其々の前記画像に割り当てるページ番号を特定するページ割情報とが対応付けて記憶された記憶部を備え、前記加工部は、前記折り目の位置で前記画像を分割し、前記第二判断部において判断した前記折り目の種別に対応付けられて前記記憶部に記憶されている前記ページ割情報に基づいて、分割した前記画像の其々に前記ページ番号を設定してもよい。従って画像処理装置は、折り目の種別やその並びに応じて最適なページ割情報を決定し、ページの区切りで分割した画像の其々にページ番号を設定することができる。   In the first aspect, the image processing apparatus further includes a storage unit that stores the type of the crease and pagination information that specifies a page number to be assigned to each of the images divided at the position of the crease, The section divides the image at the position of the fold, and divides the image based on the page allocation information stored in the storage unit in association with the fold type determined by the second determination unit. The page number may be set for each image. Therefore, the image processing apparatus can determine the optimum page allocation information according to the type of folds and the arrangement thereof, and can set the page number for each of the images divided at the page breaks.

また第一態様において、前記加工部は、前記折り目の位置で前記画像を分割し、分割した其々の前記画像を個別のファイルとしてもよい。これによって画像処理装置は、加工後の画像をユーザが使用する場合の利便性を高めることができる。   In the first aspect, the processing unit may divide the image at the position of the fold, and may set the divided images as individual files. Accordingly, the image processing apparatus can improve convenience when the user uses the processed image.

また第一態様において、前記第一画像を読み取る第一読み取り部と、前記第二画像を読み取る第二読み取り部とを備え、前記取得部は、前記第一読み取り部において読み取った前記第一画像の前記第一部分、及び、前記第二読み取り部において読み取った前記第二画像の前記第二部分を取得してもよい。これによって画像処理装置は、媒体の両面から画像を直接読み取ることができる。   In the first aspect, the image processing apparatus includes a first reading unit that reads the first image and a second reading unit that reads the second image, and the acquisition unit includes the first image read by the first reading unit. You may acquire said 2nd part of said 2nd image read in said 1st part and said 2nd reading part. As a result, the image processing apparatus can directly read images from both sides of the medium.

また第一態様において、前記媒体を搬送する搬送部を備え、前記第一読み取り部、及び前記第二読み取り部は、前記搬送部による前記媒体の搬送方向に直交する走査方向に沿って、各々、前記第一画像、及び前記第二画像を読み取ってもよい。これによって画像処理装置は、媒体を搬送しながら媒体の両面から画像を直接読み取ることができる。   Further, in the first aspect, a transport unit that transports the medium is provided, and the first reading unit and the second reading unit are respectively along a scanning direction orthogonal to the transport direction of the medium by the transport unit, The first image and the second image may be read. Thus, the image processing apparatus can directly read images from both sides of the medium while conveying the medium.

また第一態様において、前記取得部は、前記第一画像の前記走査方向における両端部に対応する前記第一部分、及び、第二画像の前記走査方向における両端部に対応する前記第二部分を取得してもよい。これによって画像処理装置は、光学濃度の変化を正確に特定できる。理由は次の通りである。画像の中心部分には、文字や図形などの画像が含まれる可能性が高い。従ってこれらの画像が光学濃度に大きく影響すると、折り目の形成に起因する光学濃度の変化が相対的に小さくなり、光学濃度の変化を特定する場合の精度が悪化する可能性がある。一方、両端部の画像には、文字や図形が含まれる可能性が低い。両端部の画像から光学濃度が決定された場合、折り目の形成に起因する光学濃度の変化は顕著に現れる。従って画像処理装置は、光学濃度の変化を正確に特定できる。   In the first aspect, the acquisition unit acquires the first part corresponding to both ends of the first image in the scanning direction and the second part corresponding to both ends of the second image in the scanning direction. May be. As a result, the image processing apparatus can accurately identify a change in optical density. The reason is as follows. There is a high possibility that images such as characters and figures are included in the center of the image. Therefore, if these images greatly affect the optical density, the change in the optical density due to the formation of the crease becomes relatively small, and the accuracy in specifying the change in the optical density may deteriorate. On the other hand, the images at both ends are unlikely to contain characters and graphics. When the optical density is determined from the images at both ends, a change in the optical density due to the formation of the fold appears significantly. Therefore, the image processing apparatus can accurately identify a change in optical density.

本発明の第二態様に係る画像処理方法は、折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得ステップと、前記取得ステップにおいて取得した前記画像の一部分の光学濃度を決定する決定ステップと、前記決定ステップによって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断ステップと、前記第一判断ステップにおいて、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工ステップとを備えている。   The image processing method according to the second aspect of the present invention includes an acquisition step of acquiring a part of an image formed on a medium that is folded in a crease and then being spread, and the image acquired in the acquisition step A determination step for determining an optical density of a part of the image, and when a difference between the optical density determined by the determination step and an optical density of another part of the image is greater than a predetermined value, And a processing step of processing the image based on the position of the fold when it is determined in the first determination step that a part of the image corresponds to the fold. ing.

第二態様によれば、画像の光学濃度に基づいて、媒体の折り目の位置が特定される。従って、ユーザによる折り目の位置の設定を要することなく、特定された折り目の位置をページの区切りと認識できる。ページの区切りが正確に認識されて画像が加工されることで、ページ毎に区切られた画像をユーザに提供できる。   According to the second aspect, the position of the fold of the medium is specified based on the optical density of the image. Therefore, the specified fold position can be recognized as a page break without requiring the user to set the fold position. By accurately recognizing the page break and processing the image, it is possible to provide the user with an image separated for each page.

本発明の第三態様に係る画像処理プログラムは、折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得ステップと、前記取得ステップにおいて取得した前記画像の一部分の光学濃度を決定する決定ステップと、前記決定ステップによって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断ステップと、前記第一判断ステップにおいて、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工ステップとをコンピュータに実行させる。   An image processing program according to the third aspect of the present invention includes an acquisition step of acquiring a part of an image formed on a medium that is folded in a fold after being folded, and the image acquired in the acquisition step A determination step for determining an optical density of a part of the image, and when a difference between the optical density determined by the determination step and an optical density of another part of the image is greater than a predetermined value, And a processing step of processing the image based on the position of the fold when it is determined in the first determination step that a part of the image corresponds to the fold. To run.

第三態様によれば、画像の光学濃度に基づいて、媒体の折り目の位置が特定される。従って、ユーザによる折り目の位置の設定を要することなく、特定された折り目の位置をページの区切りと認識できる。ページの区切りが正確に認識されて画像が加工されることで、ページ毎に区切られた画像をユーザに提供できる。   According to the third aspect, the position of the fold of the medium is specified based on the optical density of the image. Therefore, the specified fold position can be recognized as a page break without requiring the user to set the fold position. By accurately recognizing the page break and processing the image, it is possible to provide the user with an image separated for each page.

画像処理装置1の斜視図である。1 is a perspective view of an image processing device 1. FIG. 画像処理装置1の内部構造を右側から見た透視図である。2 is a perspective view of the internal structure of the image processing apparatus 1 as viewed from the right side. FIG. 画像処理装置1の電気的構成を示すブロック図である。2 is a block diagram showing an electrical configuration of the image processing apparatus 1. FIG. 媒体100を示す模式図である。1 is a schematic diagram showing a medium 100. FIG. 媒体100の表面101側の画像に基づいて決定された、ライン毎の光学濃度を示すグラフである。4 is a graph showing optical density for each line, determined based on an image on the surface 101 side of the medium 100. FIG. 媒体100の裏面102側の画像に基づいて決定された、ライン毎の光学濃度を示すグラフである。4 is a graph showing optical density for each line, determined based on an image on the back surface 102 side of the medium 100. メイン処理を示すフローチャートである。It is a flowchart which shows a main process. 先端検出処理を示すフローチャートである。It is a flowchart which shows a front-end | tip detection process. 折り目検出処理を示すフローチャートである。It is a flowchart which shows a fold detection process. 折り目検出処理を示すフローチャートであって、図9の続きである。FIG. 10 is a flowchart showing a fold detection process, which is a continuation of FIG. 折り目判別処理を示すフローチャートである。It is a flowchart which shows a crease discrimination | determination process. 媒体100を示す模式図である。1 is a schematic diagram showing a medium 100. FIG. 折り目テーブル731を示す図である。It is a figure which shows the fold table 731. FIG. ページ割テーブル732を示す図である。It is a figure showing a page allocation table 732.

以下、本発明の一実施形態について、図面を参照して説明する。これらの図面は、本発明が採用しうる技術的特徴を説明するために用いられるものである。記載されている装置の構成、各種処理のフローチャート等は、それのみに限定する趣旨ではなく、単なる説明例である。図2の前面側、背面側、左側、右側、上側、及び下側を、其々、画像処理装置1の右側、左側、前側、後側、上側、及び下側とする。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. These drawings are used to explain technical features that can be adopted by the present invention. The configuration of the apparatus, the flowcharts of various processes, and the like that are described are not intended to be limited to only that, but are merely illustrative examples. The front side, back side, left side, right side, upper side, and lower side in FIG. 2 are the right side, left side, front side, rear side, upper side, and lower side of the image processing apparatus 1, respectively.

図1及び図2を参照し、画像処理装置1の概略構成について説明する。画像処理装置1は、画像スキャナの一種である。図1に示すように、画像処理装置1は、本体部2、給紙トレイ4、及び排出トレイ6を備えている。本体部2は、側面視にて略三角形状を有している。本体部2の上部に給紙口3が設けられている。本体部2の前面下部に排出口5が設けられている。給紙トレイ4は、本体部2のうち給紙口3の後側に接続し、上方に延びている。排出トレイ6は、本体部2のうち排出口5の下側に接続し、前方に延びている。給紙トレイ4にセットされたシート7は、給紙口3から一枚ずつ本体部2に取り込まれる。取り込まれたシート7は、排出口5から排出され、排出トレイ6に積載される。本体部2前側の傾斜面の左側に、スタートスイッチ15、及びランプ16が設けられている。ユーザは、スタートスイッチ15を操作することによって、シート7の取り込みを開始することができる。ランプ16は、画像処理装置1の動作状態をユーザに通知する。   A schematic configuration of the image processing apparatus 1 will be described with reference to FIGS. 1 and 2. The image processing apparatus 1 is a kind of image scanner. As shown in FIG. 1, the image processing apparatus 1 includes a main body 2, a paper feed tray 4, and a discharge tray 6. The main body 2 has a substantially triangular shape in a side view. A paper feed port 3 is provided in the upper part of the main body 2. A discharge port 5 is provided in the lower front portion of the main body 2. The paper feed tray 4 is connected to the rear side of the paper feed port 3 in the main body 2 and extends upward. The discharge tray 6 is connected to the lower side of the discharge port 5 in the main body 2 and extends forward. Sheets 7 set in the paper feed tray 4 are taken into the main body 2 one by one from the paper feed port 3. The taken sheet 7 is discharged from the discharge port 5 and stacked on the discharge tray 6. A start switch 15 and a lamp 16 are provided on the left side of the inclined surface on the front side of the main body 2. The user can start taking in the sheet 7 by operating the start switch 15. The lamp 16 notifies the user of the operation state of the image processing apparatus 1.

図2に示すように、本体部2は、搬送路11、下側フレーム12、及び上側フレーム13を備えている。給紙口3から取り込まれたシート7は、搬送路11を通り、排出口5から排出される。下側フレーム12は、搬送路11の下側に設けられている。上側フレーム13は、搬送路11の上側に設けられている。   As shown in FIG. 2, the main body 2 includes a conveyance path 11, a lower frame 12, and an upper frame 13. The sheet 7 taken in from the sheet feeding port 3 passes through the conveyance path 11 and is discharged from the discharge port 5. The lower frame 12 is provided below the conveyance path 11. The upper frame 13 is provided on the upper side of the conveyance path 11.

下側フレーム12は、搬送ローラ17、18、19、及び20、モータ56、シートセンサ37、及びラインセンサ41を備えている。搬送ローラ17は、給紙口3の近傍に設けられている。搬送ローラ17の搬送方向下流側に、搬送方向上流側から下流側に向かって順に、搬送ローラ18、19、及び20が設けられている。搬送ローラ17は、給紙トレイ4にセットされたシート7を、搬送路11内に取り込む。搬送ローラ18、及び19は、搬送路11内に取り込まれたシート7を、排出口5に向けて搬送する。搬送ローラ20は、排出口5からシート7を排出する。モータ56は、搬送ローラ17、18、19、及び20を駆動する。   The lower frame 12 includes conveyance rollers 17, 18, 19, and 20, a motor 56, a sheet sensor 37, and a line sensor 41. The transport roller 17 is provided in the vicinity of the paper feed port 3. Conveying rollers 18, 19, and 20 are provided on the downstream side of the conveying roller 17 in the conveying direction from the upstream side in the conveying direction toward the downstream side. The transport roller 17 takes the sheet 7 set on the paper feed tray 4 into the transport path 11. The conveyance rollers 18 and 19 convey the sheet 7 taken into the conveyance path 11 toward the discharge port 5. The conveyance roller 20 discharges the sheet 7 from the discharge port 5. The motor 56 drives the transport rollers 17, 18, 19, and 20.

シートセンサ37は、搬送ローラ19の搬送方向下流側に設けられている。シートセンサ37は、回動部38を備えている。回動部38の上端は、搬送路11内に突出している。回動部38は、搬送路11内を通過するシート7によって、下端を軸として搬送方向下流側に回動する。回動部38は、回動した状態でON信号を出力し、回動しない状態でOFF信号を出力する。シートセンサ37は、回動部38から出力される信号を受信することで、後述するラインセンサ41の上部にシート7があるか否かを検出することができる。   The sheet sensor 37 is provided on the downstream side of the conveyance roller 19 in the conveyance direction. The sheet sensor 37 includes a rotation unit 38. The upper end of the rotation unit 38 protrudes into the conveyance path 11. The rotation unit 38 is rotated downstream in the conveyance direction about the lower end by the sheet 7 passing through the conveyance path 11. The rotating unit 38 outputs an ON signal in a rotated state, and outputs an OFF signal in a non-rotated state. The sheet sensor 37 can detect whether or not the sheet 7 is above the line sensor 41 described later by receiving a signal output from the rotation unit 38.

ラインセンサ41は、シートセンサ37の搬送方向下流側に設けられている。ラインセンサ41は、密着型のイメージセンサ(CIS:Contact Image Sensor)である。ラインセンサ41の左右方向の長さは、搬送路11の左右方向の長さと略同一である。ラインセンサ41は、搬送路11に沿って搬送されるシート7の下面の画像を、シート7の搬送方向に直交する方向(走査方向)に沿って1ライン分ずつ読み取ることができる。   The line sensor 41 is provided on the downstream side of the sheet sensor 37 in the conveyance direction. The line sensor 41 is a contact-type image sensor (CIS: Contact Image Sensor). The length of the line sensor 41 in the left-right direction is substantially the same as the length of the transport path 11 in the left-right direction. The line sensor 41 can read the image of the lower surface of the sheet 7 conveyed along the conveyance path 11 line by line along a direction (scanning direction) orthogonal to the conveyance direction of the sheet 7.

ラインセンサ41は、光源、レンズ及び受光素子を備えている。光源は、シート7の下面に光を照射する。受光素子は、シート7において反射した反射光をレンズにより集光し、RGB信号に変換して出力する。出力されたRGB信号に対して画像処理が行われることによって、シート7の下面の画像がページ単位で得られる。   The line sensor 41 includes a light source, a lens, and a light receiving element. The light source irradiates the lower surface of the sheet 7 with light. The light receiving element collects the reflected light reflected on the sheet 7 by a lens, converts the light into RGB signals, and outputs the RGB signals. By performing image processing on the output RGB signals, an image of the lower surface of the sheet 7 is obtained in units of pages.

上側フレーム13は、分離部材21、及び25、ピンチローラ31、及び46、及びラインセンサ42を備えている。分離部材21、及び25は、ゴム等の高摩擦弾性部材である。分離部材21は、搬送ローラ17と対向する位置に設けられている。分離部材25は、搬送ローラ18と対向する位置に設けられている。分離部材21、及び25は、給紙トレイ4にセットされた複数のシート7のうち最も下側のシート7を他のシートから分離する為に設けられている。ピンチローラ31は、搬送ローラ19と対向する位置に設けられている。ピンチローラ46は、搬送ローラ20と対向する位置に設けられている。ピンチローラ31、及び46は、搬送ローラ19、及び20と共に回転し、シート7を搬送する。   The upper frame 13 includes separation members 21 and 25, pinch rollers 31 and 46, and a line sensor 42. The separating members 21 and 25 are high friction elastic members such as rubber. The separating member 21 is provided at a position facing the conveying roller 17. The separation member 25 is provided at a position facing the conveyance roller 18. Separating members 21 and 25 are provided to separate the lowermost sheet 7 from the other sheets among the plurality of sheets 7 set in the sheet feeding tray 4. The pinch roller 31 is provided at a position facing the conveying roller 19. The pinch roller 46 is provided at a position facing the conveying roller 20. The pinch rollers 31 and 46 rotate together with the conveyance rollers 19 and 20 and convey the sheet 7.

ラインセンサ42は、ラインセンサ41と対向する位置に設けられている。ラインセンサ42はCISである。ラインセンサ42の左右方向の長さは、搬送路11の左右方向の長さと略同一である。ラインセンサ42の構成及び駆動機構は、上述したラインセンサ41と同一である。ラインセンサ42は、搬送路11に沿って搬送されるシート7の上面の画像を、シート7の搬送方向に直交する方向(走査方向)に沿って1ライン分ずつ読み取ることができる。   The line sensor 42 is provided at a position facing the line sensor 41. The line sensor 42 is a CIS. The length of the line sensor 42 in the left-right direction is substantially the same as the length of the transport path 11 in the left-right direction. The configuration and drive mechanism of the line sensor 42 are the same as those of the line sensor 41 described above. The line sensor 42 can read the image on the upper surface of the sheet 7 conveyed along the conveyance path 11 line by line along a direction (scanning direction) orthogonal to the conveyance direction of the sheet 7.

図3を参照し、画像処理装置1の電気的構成について説明する。画像処理装置1は、制御回路部61を備えている。制御回路部61は、入出力インターフェース62を介して、スタートスイッチ15、ランプ16、モータ駆動回路63、ラインセンサ駆動回路65、及びシートセンサ37と電気的に接続している。   The electrical configuration of the image processing apparatus 1 will be described with reference to FIG. The image processing apparatus 1 includes a control circuit unit 61. The control circuit unit 61 is electrically connected to the start switch 15, the lamp 16, the motor drive circuit 63, the line sensor drive circuit 65, and the sheet sensor 37 via the input / output interface 62.

制御回路部61は、CPU71、ROM72、FLASH・ROM73、RAM74、及び通信I/F75を備えている。CPU71は、画像処理装置1の全体の制御を行う演算装置である。ROM72は、CPU71が処理を行う場合に必要な各種パラメータを記憶する。FLASH・ROM73は、CPU71が処理を行うためのプログラム、及び、後述する各種テーブルを記憶する。RAM74は、CPU71により演算された各種の演算結果や、ラインセンサ41、及び42によって読み取られた画像を一時的に記憶する。通信I/F75は、外部に接続されたPC81と通信を行う場合のタイミング制御を行う。CPU71は、シートセンサ37から出力される信号であって、シート7を検出しているか否かを示す信号を受信することができる。   The control circuit unit 61 includes a CPU 71, ROM 72, FLASH / ROM 73, RAM 74, and communication I / F 75. The CPU 71 is an arithmetic device that performs overall control of the image processing apparatus 1. The ROM 72 stores various parameters required when the CPU 71 performs processing. The FLASH / ROM 73 stores a program for the CPU 71 to perform processing and various tables to be described later. The RAM 74 temporarily stores various calculation results calculated by the CPU 71 and images read by the line sensors 41 and 42. The communication I / F 75 performs timing control when communicating with the PC 81 connected to the outside. The CPU 71 can receive a signal output from the sheet sensor 37 and indicating whether or not the sheet 7 is detected.

モータ駆動回路63は、モータ56と接続している。モータ駆動回路63は、制御回路部61のCPU71からの指示に従って、モータ56を駆動制御する。ラインセンサ駆動回路65は、ラインセンサ41、及び42と接続している。ラインセンサ駆動回路65は、制御回路部61のCPU71からの指示に従って、ラインセンサ41、及び42の光源を点灯させるための駆動制御を行う。またラインセンサ駆動回路65は、受光素子の電気信号をRGB信号等に変換して出力する。CPU71は、ラインセンサ駆動回路65から受信したRGB信号等に基づいて画像を作成し、RAM74に一時記憶することができる。   The motor drive circuit 63 is connected to the motor 56. The motor driving circuit 63 drives and controls the motor 56 in accordance with an instruction from the CPU 71 of the control circuit unit 61. The line sensor drive circuit 65 is connected to the line sensors 41 and 42. The line sensor drive circuit 65 performs drive control for lighting the light sources of the line sensors 41 and 42 in accordance with instructions from the CPU 71 of the control circuit unit 61. Further, the line sensor driving circuit 65 converts the electrical signal of the light receiving element into an RGB signal or the like and outputs it. The CPU 71 can create an image based on the RGB signals received from the line sensor drive circuit 65 and temporarily store it in the RAM 74.

図4を参照し、画像処理装置1に取り込まれるシート7の一例である、媒体100について説明する。図4の前面及び背面を、媒体100の表面及び裏面と定義する。媒体100は、表面101に折り目121、122、及び123を有し、裏面102に折り目126、127、及び128を有している。折り目121と126、折り目122と127、及び折り目123と128は、其々、媒体100を挟んで対向配置している。媒体100は、折り目121、122、123、126、127、及び128の位置で折り畳むことが可能なシート状の媒体である。媒体100の例として、折り畳みパンフレットや飲食店のメニューが挙げられる。   With reference to FIG. 4, the medium 100 which is an example of the sheet 7 taken into the image processing apparatus 1 will be described. The front and back surfaces in FIG. 4 are defined as the front and back surfaces of the medium 100. The medium 100 has folds 121, 122, and 123 on the front surface 101, and folds 126, 127, and 128 on the back surface 102. The fold lines 121 and 126, the fold lines 122 and 127, and the fold lines 123 and 128 are opposed to each other with the medium 100 interposed therebetween. The medium 100 is a sheet-like medium that can be folded at the positions of the fold lines 121, 122, 123, 126, 127, and 128. Examples of the medium 100 include a folded pamphlet and a restaurant menu.

折り目121、123、126、及び128の位置では、表面101の折り目121、及び123が内側になるように折れ曲がっている。折り目122、及び127の位置では、表面101の折り目122が外側になるように折れ曲がっている。以下、表面101側の折り目が外側になるように折れる折れ目を「山折り」という。表面101の折り目が内側になるように折れる折り目を「谷折り」という。媒体100の表面101は、折り目121、122、及び123によって4つのページの画像(画像111、112、113、及び114)に分割されている。同様に、媒体100の裏面102は、折り目126、127、及び128によって4つのページの画像(画像115、116、117、及び118)に分割されている。表面101の其々のページには、文字などの情報が掲載されている。なお図示されていないが、裏面102の其々のページにも同様に情報が掲載されているものとする。   At the positions of the fold lines 121, 123, 126, and 128, the fold lines 121 and 123 of the surface 101 are bent so as to be inside. At the positions of the fold lines 122 and 127, the fold line 122 of the surface 101 is bent so as to be on the outside. Hereinafter, the fold that is folded so that the fold on the surface 101 side is on the outside is referred to as “mountain fold”. The fold that is folded so that the fold of the surface 101 is on the inside is called “valley fold”. The surface 101 of the medium 100 is divided into four pages of images (images 111, 112, 113, and 114) by fold lines 121, 122, and 123. Similarly, the back surface 102 of the medium 100 is divided into four pages of images (images 115, 116, 117, and 118) by fold lines 126, 127, and 128. Information such as characters is posted on each page of the surface 101. Although not shown, it is assumed that information is similarly posted on each page of the back surface 102.

折り目の位置の光学濃度は、折り目のない位置の光学濃度と大きく異なる。例えば媒体100の地色が白色である場合、折り目の位置の光学濃度は、折り目のない位置の光学濃度と比べて大きくなる。理由は、折り目によって媒体100の表面に凹凸が形成され、この凹凸が乱反射の要因となるためである。一方、媒体100の地色が濃色である場合、折り目の位置の光学濃度は、折り目のない位置の光学濃度と比べて小さくなる。理由は、折り目によって表面の濃色が剥げ、媒体100本来の色(白色など)が露出するためである。なお、折り目は、シートの端部から反対側の端部まで延伸しているため、この特徴を利用することで、折り目であるか、又は、媒体100表面に形成された線画であるかを判定することが可能になる。   The optical density at the position of the fold is greatly different from the optical density at the position without the fold. For example, when the ground color of the medium 100 is white, the optical density at the position of the fold is larger than the optical density at the position without the fold. The reason is that irregularities are formed on the surface of the medium 100 by the folds, and the irregularities cause irregular reflection. On the other hand, when the ground color of the medium 100 is a dark color, the optical density at the position of the fold is smaller than the optical density at the position without the fold. The reason is that the dark color on the surface is peeled off by the crease, and the original color (such as white) of the medium 100 is exposed. Note that since the fold extends from the end of the sheet to the opposite end, it is determined whether this is a fold or a line drawing formed on the surface of the medium 100 by using this feature. It becomes possible to do.

図5及び図6は、媒体100から実際に読み取られた画像の光学濃度の分布を示している。なお、媒体100の地色は白色である。図5は、媒体100の表面101の画像の光学濃度を示し、図6は、媒体100の裏面102の画像の光学濃度を示している。横軸は、媒体100の横方向(図4における左右方向)の位置を示している。縦軸は、光学濃度を100で正規化した濃度レベルを示している。   5 and 6 show the optical density distribution of an image actually read from the medium 100. FIG. Note that the ground color of the medium 100 is white. FIG. 5 shows the optical density of the image on the front surface 101 of the medium 100, and FIG. 6 shows the optical density of the image on the back surface 102 of the medium 100. The horizontal axis indicates the position of the medium 100 in the horizontal direction (left-right direction in FIG. 4). The vertical axis represents the density level obtained by normalizing the optical density by 100.

図5における光学濃度のピーク141、142、及び143の位置は、其々、媒体100の表面101の折り目121、122、及び123の位置に対応している。図6における光学濃度のピーク146、147、及び148の位置は、其々、媒体100の裏面102の折り目126、127、及び128の位置に対応している。なお、図5における光学濃度のピーク144、及び145の位置、及び、図6における光学濃度のピーク149、及び150の位置は、其々、媒体100の左端部124(図4参照)、及び右端部125(図4参照)の位置に対応している。このように、媒体100の地色が白色の場合、折り目の位置における光学濃度は、他の位置における光学濃度と比較して顕著に大きくなる。一方、媒体100の地色が濃色である場合、折り目の位置における光学濃度は、他の位置における光学濃度と比較して顕著に小さくなる。従って、光学濃度が大きく変化した部分を特定することによって、媒体100に形成された折り目の位置を特定することができる。   The positions of the optical density peaks 141, 142, and 143 in FIG. 5 correspond to the positions of the folds 121, 122, and 123 of the surface 101 of the medium 100, respectively. The positions of the optical density peaks 146, 147, and 148 in FIG. 6 correspond to the positions of the folds 126, 127, and 128 on the back surface 102 of the medium 100, respectively. The positions of the optical density peaks 144 and 145 in FIG. 5 and the positions of the optical density peaks 149 and 150 in FIG. 6 are the left end portion 124 (see FIG. 4) and the right end of the medium 100, respectively. This corresponds to the position of the portion 125 (see FIG. 4). Thus, when the ground color of the medium 100 is white, the optical density at the position of the fold is significantly higher than the optical density at other positions. On the other hand, when the ground color of the medium 100 is dark, the optical density at the fold position is significantly smaller than the optical density at other positions. Therefore, the position of the crease formed in the medium 100 can be specified by specifying the portion where the optical density has greatly changed.

光学濃度に基づき、折り目の種別を特定することも可能である。図5及び図6に示すように、媒体100の地色が白色である場合、山折りの折り目(折り目122、及び127)の位置では、裏面102よりも表面101の方が、光学濃度は大きくなる(ピーク142>ピーク147)。一方、谷折りの折り目(折り目121、123、126、及び128)の位置では、裏面102よりも表面101の方が、光学濃度は小さくなる(ピーク141<ピーク146、ピーク143<ピーク148)。一方、媒体100の地色が濃色である場合、山折りの折り目の位置では、裏面102よりも表面101の方が、光学濃度は小さくなる。一方、谷折りの折り目の位置では、裏面102よりも表面101の方が、光学濃度は大きくなる。従って、媒体100を挟んで対向する位置にある其々の折り目の光学濃度を比較することによって、折り目の種別(山折り又は谷折り)を特定することができる。   It is also possible to specify the type of fold based on the optical density. As shown in FIGS. 5 and 6, when the ground color of the medium 100 is white, the optical density of the front surface 101 is higher than that of the back surface 102 at the position of the fold folds (folds 122 and 127). (Peak 142> peak 147). On the other hand, at the positions of the valley folds (folds 121, 123, 126, and 128), the optical density is smaller on the front surface 101 than on the rear surface 102 (peak 141 <peak 146, peak 143 <peak 148). On the other hand, when the ground color of the medium 100 is a dark color, the optical density of the front surface 101 is smaller than that of the back surface 102 at the position of the mountain fold. On the other hand, the optical density of the front surface 101 is higher than that of the back surface 102 at the position of the valley fold. Therefore, by comparing the optical densities of the folds at positions facing each other across the medium 100, the fold type (mountain fold or valley fold) can be specified.

画像処理装置1は、ラインセンサ41、42を介して媒体100から読み込んだ画像に基づいて光学濃度を決定する。画像処理装置1は、他の部分と比較して光学濃度が顕著に異なるか否かを判断することで、折り目の位置を特定する。画像処理装置1は、媒体100から読み込んだ画像を、特定された折り目の位置で分割し、ページ毎に管理する。従ってユーザは、画像処理装置1に対して折り目の位置の設定を行うことなく、画像をページごとに区切り、区切られた画像を利用することができる。なお、「決定」とは、ラインセンサ41、42を介して得られた画像のデータに基づき、特定の数値を求めること、及び得られた画像のデータに基づき、テーブルなどの判断基準から特定の数値を決定することの両方を含む。   The image processing apparatus 1 determines the optical density based on the image read from the medium 100 via the line sensors 41 and 42. The image processing apparatus 1 identifies the position of the fold by determining whether or not the optical density is significantly different from that of other portions. The image processing apparatus 1 divides an image read from the medium 100 at the specified fold position, and manages it for each page. Therefore, the user can use the divided image by dividing the image for each page without setting the position of the fold for the image processing apparatus 1. Note that “determining” refers to obtaining a specific numerical value based on the image data obtained via the line sensors 41 and 42, and specifying a specific value from a judgment criterion such as a table based on the obtained image data. Includes both determining numerical values.

また画像処理装置1は、表面101及び裏面102の其々の光学濃度を比較することによって、折り目の種別を特定する。画像処理装置1は、特定した折り目の種別に基づいて、分割された画像の其々に対して割り当てるページ番号を決定する。ページ番号は、例えば以下のようにして決定される。   In addition, the image processing apparatus 1 identifies the type of the fold by comparing the optical densities of the front surface 101 and the back surface 102. The image processing apparatus 1 determines a page number to be assigned to each of the divided images based on the specified fold type. For example, the page number is determined as follows.

例えば図4の媒体100のように、折り目の種別の並びが左から順に「谷折り、山折り、谷折り」である場合、ユーザははじめに、表面101の最も左側のページの画像111から、画像112、113、及び114の順で閲覧することが想定される。次いでユーザは、媒体100を裏返し、裏面102の最も右側の画像118から、画像117、116、及び115の順で媒体100を閲覧することが想定される。従って画像処理装置1は、折り目の種別の並びが「谷折り、山折り、谷折り」である場合、画像111、112、113、114、118、117、116、及び115の順で降順となるようにページ番号を設定する。このように画像処理装置1は、折り目の種別の並び順に基づき、想定される閲覧順を想定して最適なページ番号を設定することができる。   For example, when the arrangement of fold types is “valley fold, mountain fold, valley fold” in order from the left as in the medium 100 of FIG. 4, the user starts from the image 111 of the leftmost page of the surface 101 with the image 111. It is assumed that browsing is performed in the order of 112, 113, and 114. Next, it is assumed that the user turns over the medium 100 and browses the medium 100 in the order of the images 117, 116, and 115 from the rightmost image 118 of the back surface 102. Therefore, the image processing apparatus 1 descends in the order of the images 111, 112, 113, 114, 118, 117, 116, and 115 when the arrangement of the fold types is “valley fold, mountain fold, valley fold”. Set the page number as follows. As described above, the image processing apparatus 1 can set an optimal page number on the basis of an assumed browsing order based on the arrangement order of the fold types.

図7から図11のフローチャートを参照し、画像処理装置1のCPU71において実行されるメイン処理について説明する。CPU71に電源が投入された場合に、メイン処理は起動され実行される。ラインセンサ41、及び42によって読み込まれた二つの画像に基づいて折り目を検出するために、メイン処理中では、二つの画像に対応する二つの先端検出処理(図8参照)、及び折り目検出処理(図9、及び図10)が並列して起動され実行される。   A main process executed in the CPU 71 of the image processing apparatus 1 will be described with reference to flowcharts of FIGS. When the CPU 71 is powered on, the main process is activated and executed. In order to detect a fold based on the two images read by the line sensors 41 and 42, two leading edge detection processes (see FIG. 8) corresponding to the two images and a fold detection process ( 9 and 10) are activated and executed in parallel.

図7から図11を参照し、メイン処理について説明する。図7に示すように、はじめに、画像処理装置1に接続されたPC81を介して、動作条件が設定される(S11)。動作条件として、例えば媒体100の大きさ種別(A4,B5など)、両面/片面印刷設定等が挙げられる。なおこれらの動作条件は、画像処理装置1が媒体100を取り込んだ段階で自動的に判断されてもよい。   The main process will be described with reference to FIGS. As shown in FIG. 7, first, operating conditions are set via the PC 81 connected to the image processing apparatus 1 (S11). Examples of the operating conditions include the size type of the medium 100 (A4, B5, etc.), duplex / single-sided print setting, and the like. Note that these operating conditions may be automatically determined when the image processing apparatus 1 captures the medium 100.

ユーザは、媒体100の折り目を伸ばして見開いた状態とし、給紙トレイ4にセットする。図12は、見開いた状態で給紙トレイ4にセットされた媒体100を上側から見た様子を示している。媒体100の表面101が上側を向いた状態であるとする。図12の矢印160は、媒体100が取り込まれる方向を示している。   The user extends the fold line of the medium 100 so as to open the medium 100 and sets the medium 100 in the paper feed tray 4. FIG. 12 shows a state in which the medium 100 set on the paper feed tray 4 in a spread state is viewed from above. Assume that the surface 101 of the medium 100 faces upward. An arrow 160 in FIG. 12 indicates a direction in which the medium 100 is taken.

スタートスイッチ15が押下されたかが監視される(S13)。スタートスイッチ15が押下されていない場合(S13:NO)、処理はS13に戻る。スタートスイッチ15が押下された場合(S13:YES)、モータ56の駆動が開始され、搬送ローラ17、18、19、及び20は回転を開始する。給紙トレイ4にセットされた媒体100は、給紙口3を介して搬送路11内に取り込まれ、媒体100の搬送が開始される(S15)。給紙口3から取り込まれた媒体100は、搬送路11内を給紙口3から排出口5に向かって搬送される。ラインセンサ41、及び42による画像の読み取りが開始される(S17)。以後、ラインセンサ41、42によって読み取られた画像を取得することが可能な状態となる。次の処理であるS18、及びS19において、媒体100の表面101の画像は、ラインセンサ42によって1ラインずつ読み取られる。媒体100の裏面102の画像は、ラインセンサ41によって1ラインずつ読み取られる。   It is monitored whether the start switch 15 is pressed (S13). If the start switch 15 is not pressed (S13: NO), the process returns to S13. When the start switch 15 is pressed (S13: YES), the driving of the motor 56 is started, and the transport rollers 17, 18, 19, and 20 start to rotate. The medium 100 set in the paper feed tray 4 is taken into the transport path 11 through the paper feed port 3, and the transport of the medium 100 is started (S15). The medium 100 taken in from the paper feed port 3 is transported in the transport path 11 from the paper feed port 3 toward the discharge port 5. Image reading by the line sensors 41 and 42 is started (S17). Thereafter, an image read by the line sensors 41 and 42 can be acquired. In S18 and S19, which are the next processes, the image of the surface 101 of the medium 100 is read line by line by the line sensor 42. The image on the back surface 102 of the medium 100 is read line by line by the line sensor 41.

媒体100の先端検出処理(図8参照)が実行される(S18)。媒体100の表面101の画像、及び裏面102の画像に対応する二つの折り目検出処理(図9、図10参照)が開始される(S19)。なお以下では、ラインセンサ42によって読み取られた画像に基づく先端検出処理、及び折り目検出処理について説明する。   The leading edge detection process (see FIG. 8) of the medium 100 is executed (S18). Two fold detection processes (see FIGS. 9 and 10) corresponding to the image of the front surface 101 and the image of the back surface 102 of the medium 100 are started (S19). In the following, a tip detection process and a fold detection process based on an image read by the line sensor 42 will be described.

図8を参照し、先端検出処理について説明する。先端検出処理では、RAM74に記憶された変数H_STEPが使用される。変数H_STEPは、画像処理装置1の動作状態を示す変数である。変数H_STEP、は、先端検出処理の開始時に0が格納され(S101)、初期化される。   The tip detection process will be described with reference to FIG. In the tip detection process, a variable H_STEP stored in the RAM 74 is used. The variable H_STEP is a variable indicating the operation state of the image processing apparatus 1. The variable H_STEP is initialized with 0 stored at the start of the tip detection process (S101).

ラインセンサ42によって読み取られた1ライン分の画像が取得される(S102)。ここで、取得される画像は、媒体100の表面の画像である。取得された画像が解析されることによって、給紙口3から取り込まれた媒体100がラインセンサ42に到達したかが判断される(S103)。例えば、ラインセンサ42によって読み取られた1ライン分の画像から決定した光学濃度にピーク(例えば、図5におけるピーク144)が最初に検出された場合、検出されたピークは媒体100の先端部に起因するピークであると判断してもよい。そして、媒体100がラインセンサ42に到達したと判断してもよい。スタートスイッチ15が押下されてから時間が経過しておらず、媒体100がラインセンサ42に到達していない場合(S103:NO)、処理はS102に戻る。ラインセンサ42によって読み取られた次の1ライン分の画像が取得され(S102)、処理が繰り返される。   An image for one line read by the line sensor 42 is acquired (S102). Here, the acquired image is an image of the surface of the medium 100. By analyzing the acquired image, it is determined whether the medium 100 taken from the paper feed port 3 has reached the line sensor 42 (S103). For example, when a peak (for example, peak 144 in FIG. 5) is first detected in the optical density determined from the image for one line read by the line sensor 42, the detected peak is caused by the tip of the medium 100. You may judge that it is a peak. Then, it may be determined that the medium 100 has reached the line sensor 42. If the time has not elapsed since the start switch 15 was pressed and the medium 100 has not reached the line sensor 42 (S103: NO), the process returns to S102. An image for the next one line read by the line sensor 42 is acquired (S102), and the process is repeated.

なお上述では、ラインセンサ42によって読み取られた画像を解析することによって、媒体100がラインセンサ42に到達したか否かが判断されたが、本発明はこれに限定されない。例えば、シートセンサ37から出力される信号に基づいて、媒体100がラインセンサ42に到達したか否かを判断してもよい。   In the above description, it is determined whether or not the medium 100 has reached the line sensor 42 by analyzing the image read by the line sensor 42, but the present invention is not limited to this. For example, it may be determined whether the medium 100 has reached the line sensor 42 based on a signal output from the sheet sensor 37.

媒体100がラインセンサ42に到達したと判断した場合(S103:YES)、取得された1ライン分の画像のうち、左右両端部分の画像が抽出される(S104)。抽出された画像の光学濃度が決定され、次いで、決定された光学濃度の平均値が算出される(S105)。   When it is determined that the medium 100 has reached the line sensor 42 (S103: YES), the left and right end portions of the acquired image for one line are extracted (S104). The optical density of the extracted image is determined, and then the average value of the determined optical density is calculated (S105).

S104、及びS105では、例えば図12に示す媒体100から読み取られた1ライン分の画像のうち、左端部分131及び右端部分132に相当する部分の画像から光学濃度が決定され、その平均値が算出される。   In S104 and S105, for example, the optical density is determined from the image corresponding to the left end portion 131 and the right end portion 132 in the image for one line read from the medium 100 shown in FIG. 12, and the average value is calculated. Is done.

算出された光学濃度の平均値が所定値より大きいか否かが判断される(S106)。所定値は、媒体100の先端が読み取られた場合に検出されるおおよその光学濃度の閾値としてあらかじめROM72に記憶されている。算出された光学濃度の平均値が所定値より大きいと判断されると(S106:YES)、未だ媒体100の先端を読み取っていることになるため、変数H_STEPに1が格納された後(S107)、処理はS102に戻る。一方、算出された光学濃度の平均値が所定値以下であると判断されると(S106:NO)、変数H_STEPが1であるか否かが判断される(S108)。変数H_STEPが1でないと判断されると(S108:NO)、処理がS102に戻る。変数H_STEPが1であると判断されると(S108:YES)、変数H_STEPに0が格納された後(S109)、媒体100の先端検出は全て終了したので、先端検出処理は終了し、処理はメイン処理(図7参照)に戻る。   It is determined whether or not the calculated average value of optical density is greater than a predetermined value (S106). The predetermined value is stored in advance in the ROM 72 as an approximate optical density threshold detected when the front end of the medium 100 is read. If it is determined that the calculated average value of the optical density is larger than the predetermined value (S106: YES), since the leading edge of the medium 100 is still being read, 1 is stored in the variable H_STEP (S107). The process returns to S102. On the other hand, if it is determined that the calculated average value of the optical density is equal to or less than the predetermined value (S106: NO), it is determined whether or not the variable H_STEP is 1 (S108). If it is determined that the variable H_STEP is not 1 (S108: NO), the process returns to S102. If it is determined that the variable H_STEP is 1 (S108: YES), after 0 is stored in the variable H_STEP (S109), all of the leading edge detection of the medium 100 is completed, so the leading edge detection process is terminated and the process is completed. Return to the main process (see FIG. 7).

図9を参照し、折り目検出処理について説明する。折り目検出処理では、RAM74に記憶された開始フラグ、エラーフラグ、変数STEP、位置カウンタ、及び幅カウンタが使用される。開始フラグは、折り目判別処理(図11参照、後述)の開始を指示するフラグである。エラーフラグは、折り目判別処理においてエラーが発生したことを通知するフラグである。変数STEPは、画像処理装置1の動作状態を示す変数である。位置カウンタは、ラインセンサ42が読み取る1ライン分の画像の位置を特定するカウンタである。幅カウンタは、折り目の形成に起因して光学濃度が顕著に変化する部分の幅を特定するカウンタである。開始フラグ、エラーフラグ、変数STEP、位置カウンタ、及び幅カウンタは、折り目検出処理の開始時に0が代入され初期化される。位置カウンタは、ラインセンサ42によって読み取られた1ライン分の画像が取得される度に1ずつ加算される。   The crease detection process will be described with reference to FIG. In the fold detection process, a start flag, an error flag, a variable STEP, a position counter, and a width counter stored in the RAM 74 are used. The start flag is a flag for instructing the start of the crease determination process (see FIG. 11, described later). The error flag is a flag for notifying that an error has occurred in the crease determination process. The variable STEP is a variable indicating the operation state of the image processing apparatus 1. The position counter is a counter that specifies the position of an image for one line read by the line sensor 42. The width counter is a counter that specifies the width of a portion where the optical density changes significantly due to the formation of a fold. The start flag, error flag, variable STEP, position counter, and width counter are initialized by substituting 0 at the start of the fold detection process. The position counter is incremented by one each time an image for one line read by the line sensor 42 is acquired.

変数STEPに1が格納される(S35)。なお、変数STEPが1である状態は、図12における区間152、154、156、及び158のいずれかの位置にラインセンサ42がある状態に相当する。S35では変数STEPは0から1に変化しているので、図12のうち区間151から区間152にラインセンサ42の位置が移動したことになる。   1 is stored in the variable STEP (S35). Note that the state in which the variable STEP is 1 corresponds to a state in which the line sensor 42 is in any position in the sections 152, 154, 156, and 158 in FIG. Since the variable STEP has changed from 0 to 1 in S35, the position of the line sensor 42 has moved from the section 151 to the section 152 in FIG.

折り目判別処理(図11参照)において折り目の種別を判別できないエラーが発生したかが、エラーフラグによって判断される(S37)。折り目判別処理において折り目の種別が判別できなかった場合、エラーフラグに1が格納される(S97、図11参照)。折り目を判別できないエラーが発生した場合(S37:YES)、ページ毎の画像にページ番号を設定することができない。この場合、折り目を検出する処理は中止され、ラインセンサ42による画像の読み取りのみが以下のようにして行われる。   Whether or not an error that cannot determine the type of the crease has occurred in the crease determination process (see FIG. 11) is determined based on the error flag (S37). If the fold type cannot be determined in the fold determination process, 1 is stored in the error flag (S97, see FIG. 11). If an error that cannot determine the fold occurs (S37: YES), the page number cannot be set for the image for each page. In this case, the process of detecting the fold is stopped, and only the image reading by the line sensor 42 is performed as follows.

ラインセンサ42によって読み取られた次の1ライン分の画像が取得される(S39)。シートセンサ37が媒体100を検出しているかが判断される(S41)。シートセンサ37が媒体100を検出している場合(S41:YES)、媒体100は、ラインセンサ42の下方に存在することになる。処理はS39に戻り、ラインセンサ42によって読み取られる1ライン分の画像が繰り返し取得される(S39)。一方、シートセンサ37が媒体100を検出しなくなった場合(S41:NO)、媒体100はシートセンサ37の上方を既に通り過ぎていることになる。この場合、変数STEPに0が格納される(S43)。変数STEPは1から0に変化しているので、図12のうち区間158から区間159にラインセンサ42の位置が移動したことになる。媒体100上の画像の読み取りは全て終了したので、折り目検出処理は終了し、処理はメイン処理(図7参照)に戻る。   An image for the next one line read by the line sensor 42 is acquired (S39). It is determined whether the sheet sensor 37 detects the medium 100 (S41). When the sheet sensor 37 detects the medium 100 (S41: YES), the medium 100 exists below the line sensor 42. The process returns to S39, and an image for one line read by the line sensor 42 is repeatedly acquired (S39). On the other hand, when the sheet sensor 37 no longer detects the medium 100 (S41: NO), the medium 100 has already passed over the sheet sensor 37. In this case, 0 is stored in the variable STEP (S43). Since the variable STEP changes from 1 to 0, the position of the line sensor 42 has moved from the section 158 to the section 159 in FIG. Since all the reading of the image on the medium 100 is completed, the fold detection process is terminated, and the process returns to the main process (see FIG. 7).

一方、エラーフラグが0であり、折り目判別処理(図11参照)においてエラーが発生していない場合(S37:NO)、処理はS45に進む。ラインセンサ42によって読み取られた次の1ライン分の画像が取得される(S45)。取得された1ライン分の画像のうち、左右両端部分の画像が抽出される(S47)。抽出された画像の光学濃度が決定され、次いで、決定された光学濃度の平均値が算出される(S49)。   On the other hand, if the error flag is 0 and no error has occurred in the crease determination process (see FIG. 11) (S37: NO), the process proceeds to S45. An image for the next one line read by the line sensor 42 is acquired (S45). Of the acquired image for one line, the images of the left and right end portions are extracted (S47). The optical density of the extracted image is determined, and then the average value of the determined optical density is calculated (S49).

S47、及びS49では、例えば図12に示す媒体100から読み取られた1ライン分の画像のうち、左端部分131及び右端部分132に相当する部分の画像から光学濃度が決定され、その平均値が算出される。中心部分133の画像は、光学濃度を決定する場合の対象から除外される。理由は次の通りである。画像の中心部分133には、文字や図形などの画像が含まれる可能性が高い。従ってこれらの画像が光学濃度に大きく影響すると、折り目の形成に起因する光学濃度の変化が相対的に小さくなり、光学濃度の変化を特定する場合の精度が悪化する可能性がある。一方、左端部分131及び右端部分132の画像には、文字や図形が含まれる可能性が低い。左端部分131及び右端部分132の画像から光学濃度が決定された場合、折り目の形成に起因する光学濃度の変化は顕著に現れる。従って、光学濃度の変化を正確に特定できる。   In S47 and S49, for example, the optical density is determined from the image corresponding to the left end portion 131 and the right end portion 132 of the image for one line read from the medium 100 shown in FIG. 12, and the average value is calculated. Is done. The image of the central portion 133 is excluded from the target for determining the optical density. The reason is as follows. The central portion 133 of the image is likely to contain images such as characters and figures. Therefore, if these images greatly affect the optical density, the change in the optical density due to the formation of the crease becomes relatively small, and the accuracy in specifying the change in the optical density may deteriorate. On the other hand, the images of the left end portion 131 and the right end portion 132 are unlikely to contain characters and graphics. When the optical density is determined from the images of the left end portion 131 and the right end portion 132, the change in the optical density due to the formation of the fold appears significantly. Therefore, the change in optical density can be specified accurately.

次いで、S45で取得された1ライン分の画像の読み取り位置を除く他の位置の画像に基づいて、光学濃度の平均値が算出される(S50)。S49での処理と同様、画像の左右端部分の画像が抽出されて光学濃度が決定され、その平均値が算出される。ここで他の位置の画像は、例えば、ラインセンサ42による画像の読み取りを開始してから、S45において1ライン分の画像を取得するまでの間に取得された全ての画像のうち、変数STEPが1である状態で取得された画像としてもよい。例えば図12のうち、区間155内にラインセンサ42がある場合には、区間152、及び154内から取得された画像に基づいて光学濃度が決定され、その平均値が算出されてもよい。   Next, an average value of the optical density is calculated based on the images at other positions excluding the image reading position for one line acquired at S45 (S50). Similar to the processing in S49, the images of the left and right end portions of the image are extracted, the optical density is determined, and the average value is calculated. Here, as for the images at other positions, for example, the variable STEP among all the images acquired from the start of the image reading by the line sensor 42 until the acquisition of the image for one line in S45. It is good also as an image acquired in the state which is 1. For example, in FIG. 12, when the line sensor 42 is in the section 155, the optical density may be determined based on the images acquired from the sections 152 and 154, and the average value may be calculated.

図10に示すように、S49(図9参照)で算出された光学濃度の平均値と、S50(図9参照)で算出された光学濃度の平均値との差分が算出される(S51)。算出された差分が所定値より大きいか否かが判断される(S52)。算出された差分が所定値より大きいと判断された場合(S52:YES)、S45(図9参照)で取得された1ライン分の画像の光学濃度の平均値が、他の位置の画像の光学濃度の平均値と比較して顕著に異なっていると判断される。この場合、S45で取得した1ライン分の画像の位置が、折り目の位置に相当する可能性がある。   As shown in FIG. 10, the difference between the average optical density calculated in S49 (see FIG. 9) and the average optical density calculated in S50 (see FIG. 9) is calculated (S51). It is determined whether or not the calculated difference is larger than a predetermined value (S52). When it is determined that the calculated difference is larger than the predetermined value (S52: YES), the average value of the optical density of the image for one line acquired in S45 (see FIG. 9) is the optical value of the image at another position. It is judged that it is significantly different from the average value of density. In this case, the position of the image for one line acquired in S45 may correspond to the position of the fold.

シートセンサ37が媒体100を検出しているかが判断される(S53)。シートセンサ37が媒体100を検出しなくなっていた場合(S53:NO)、媒体100はシートセンサ37の上方を既に通り過ぎていることになる。検出された光学濃度の平均値の顕著な変化は、媒体100の端部に起因するものである可能性がある。この場合、変数STEPに0が格納される(S43)。変数STEPは1から0に変化しているので、図12のうち区間158から区間159にラインセンサ42の位置が移動したことになる。媒体100上の画像の読み取りは全て終了したので、折り目検出処理は終了し、処理はメイン処理(図7参照)に戻る。   It is determined whether the sheet sensor 37 detects the medium 100 (S53). When the sheet sensor 37 no longer detects the medium 100 (S53: NO), the medium 100 has already passed over the sheet sensor 37. The noticeable change in the average value of the detected optical density may be due to the edge of the medium 100. In this case, 0 is stored in the variable STEP (S43). Since the variable STEP changes from 1 to 0, the position of the line sensor 42 has moved from the section 158 to the section 159 in FIG. Since all the reading of the image on the medium 100 is completed, the fold detection process is terminated, and the process returns to the main process (see FIG. 7).

一方、シートセンサ37が媒体100を検出している場合(S53:YES)、媒体100はラインセンサ42の下方に存在することになる。媒体100上の画像から光学濃度が正確に特定されている。従って、S49(図9参照)で算出された光学濃度の顕著な変化は、媒体100に形成された折り目に起因するピーク(例えば、図5におけるピーク141、142、及び143)に相当すると判断される。変数STEPに2が格納される(S55)。なお、変数STEPが2である状態は、図12における区間153、155、及び157のいずれの位置にラインセンサ42がある状態に相当する。S55では変数STEPは1から2に変化しているので、図12のうち区間152から区間153、区間154から区間155、及び区間156から区間157にラインセンサ42の位置が移動したことになる。   On the other hand, when the sheet sensor 37 detects the medium 100 (S53: YES), the medium 100 exists below the line sensor 42. The optical density is accurately specified from the image on the medium 100. Therefore, it is determined that the significant change in the optical density calculated in S49 (see FIG. 9) corresponds to the peaks (for example, peaks 141, 142, and 143 in FIG. 5) caused by the folds formed on the medium 100. The 2 is stored in the variable STEP (S55). The state in which the variable STEP is 2 corresponds to a state in which the line sensor 42 is located at any position in the sections 153, 155, and 157 in FIG. In S55, since the variable STEP is changed from 1 to 2, the position of the line sensor 42 is moved from the section 152 to the section 153, from the section 154 to the section 155, and from the section 156 to the section 157 in FIG.

S49(図9参照)で算出された光学濃度の平均値は、RAM74に記憶される(S57)。変数STEPが2である状態で繰り返し算出される光学濃度の平均値の全てが、RAM74に累積されることになる。なお、S57でRAM74に記憶された光学濃度の平均値は、折り目判別処理(S85、S87、図11参照)において、変数STEPが2である区間内の光学濃度の平均値を算出する場合に使用される(詳細は後述する。)。   The average value of the optical density calculated in S49 (see FIG. 9) is stored in the RAM 74 (S57). All the optical density average values repeatedly calculated in a state where the variable STEP is 2 are accumulated in the RAM 74. Note that the average value of the optical density stored in the RAM 74 in S57 is used when calculating the average value of the optical density in the section where the variable STEP is 2 in the crease determination process (S85, S87, see FIG. 11). (Details will be described later).

S52で判断された、光学濃度が顕著に変化した状態が、2回以上連続しているかが判断される(S59)。前回決定された光学濃度の平均値には、顕著な変化が見られなかった場合(S59:NO)、光学濃度の平均値が顕著に変化し始める時点を記憶するために、この時点での位置カウンタがRAM74に記憶される(S61)。処理はS37(図9参照)に戻る。一方、S52で判断された光学濃度の顕著な変化が2回以上連続している場合(S59:YES)、折り目の形成に起因して光学濃度が顕著に変化している部分の幅を特定するために、幅カウンタに1が加算される(S63)。処理はS37に戻る。図9に示すように、ラインセンサ42が読み取った次のラインの画像が取得され(S45)、処理が繰り返される。   It is determined whether or not the state in which the optical density has changed significantly determined in S52 is continuous twice or more (S59). In the case where no significant change is found in the previously determined average value of optical density (S59: NO), the position at this point is stored in order to store the time point when the average value of optical density starts to change significantly. The counter is stored in the RAM 74 (S61). The process returns to S37 (see FIG. 9). On the other hand, when the remarkable change in the optical density determined in S52 is continuous two or more times (S59: YES), the width of the portion where the optical density is significantly changed due to the formation of the fold is specified. Therefore, 1 is added to the width counter (S63). The process returns to S37. As shown in FIG. 9, an image of the next line read by the line sensor 42 is acquired (S45), and the process is repeated.

一方、図10のS52において、S49(図9参照)で算出された光学濃度の平均値と、S50(図9参照)で算出された光学濃度の平均値との差分が、所定値以下であると判断された場合(S52:NO)、変数STEPが2であるかが判断される(S65)。変数STEPが2である場合(S65:YES)、折り目の形成に起因して光学濃度が顕著に変化している部分が終了したと判断される。この場合、折り目の正確な位置が特定される(S67)。折り目の正確な位置は、S61でRAM74に記憶した位置カウンタと、S63で更新した幅カウンタとに基づき、「位置カウンタ+幅カウンタ/2」を算出することによって特定される。算出される値は、図12における変数STEPが2である区間153、155、及び157の其々の中心位置を示す。特定された折り目の正確な位置は、RAM74に記憶される。   On the other hand, in S52 of FIG. 10, the difference between the average value of the optical density calculated in S49 (see FIG. 9) and the average value of the optical density calculated in S50 (see FIG. 9) is not more than a predetermined value. Is determined (S52: NO), it is determined whether the variable STEP is 2 (S65). When the variable STEP is 2 (S65: YES), it is determined that the portion where the optical density is significantly changed due to the formation of the fold is completed. In this case, the exact position of the fold is specified (S67). The exact position of the fold is specified by calculating “position counter + width counter / 2” based on the position counter stored in the RAM 74 in S61 and the width counter updated in S63. The calculated value indicates the center position of each of the sections 153, 155, and 157 in which the variable STEP in FIG. The exact position of the identified fold is stored in the RAM 74.

変数STEPに1が格納される(S69)。変数STEPは2から1に変化しているので、図12のうち区間153から区間154、区間155から区間156、及び区間157から区間158にラインセンサ42の位置が移動したことになる。折り目の種別を判別する折り目判別処理(図11参照)を起動するために、開始フラグに1が格納される(S71)。   1 is stored in the variable STEP (S69). Since the variable STEP has changed from 2 to 1, the position of the line sensor 42 has moved from section 153 to section 154, section 155 to section 156, and section 157 to section 158 in FIG. In order to start the crease determination process (see FIG. 11) for determining the fold type, 1 is stored in the start flag (S71).

なお、上述までで説明した折り目検出処理は、ラインセンサ41から取得された画像に対しても同様に行われ、折り目の位置が特定される(S67、図10参照)。折り目が特定された後、開始フラグに1が格納される(S71)。媒体100の表面101及び裏面102の両方から、折り目の位置が特定されたことになる。開始フラグに1が格納されると、折り目判別処理が実行される(S73)。折り目判別処理が実行された後、処理はS37(図9参照)に戻る。   The fold detection process described above is performed in the same manner on the image acquired from the line sensor 41, and the position of the fold is specified (S67, see FIG. 10). After the fold is specified, 1 is stored in the start flag (S71). The position of the fold is specified from both the front surface 101 and the back surface 102 of the medium 100. When 1 is stored in the start flag, a crease determination process is executed (S73). After the crease determination process is executed, the process returns to S37 (see FIG. 9).

図11を参照し、折り目判別処理について説明する。折り目判別処理では、媒体100の表面101と裏面102との両方から、対応する折り目が特定されたか否かが監視される。ラインセンサ42から取得された画像に基づく折り目検出処理(図9)、及び、ラインセンサ41から取得された画像に基づく折り目検出処理(図9)において、開始フラグに1が格納されたか否かによって、対応する折り目が検出されたか否かが判断される(S81)。少なくとも一方の開始フラグに1が格納されていない場合(S81:NO)、表面101及び裏面102の折り目の位置が特定されていないので、処理はS81に戻る。   The crease determination process will be described with reference to FIG. In the crease determination process, it is monitored whether or not a corresponding crease is specified from both the front surface 101 and the back surface 102 of the medium 100. Whether or not 1 is stored in the start flag in the fold detection process based on the image acquired from the line sensor 42 (FIG. 9) and the fold detection process based on the image acquired from the line sensor 41 (FIG. 9). Then, it is determined whether or not a corresponding fold is detected (S81). If 1 is not stored in at least one of the start flags (S81: NO), the positions of the folds on the front surface 101 and the back surface 102 are not specified, and the process returns to S81.

一方、双方の処理において開始フラグに1が格納された場合(S81:YES)、表面101の画像から特定された折り目の位置と、裏面102の画像から特定された折り目の位置とが一致するかが判断される(S83)。折り目の位置が一致するか否かは、折り目検出処理のS67(図10参照)において特定された折り目の位置が比較されることによって判断される。折り目の位置が一致しない場合(S83:NO)、特定された折り目の位置の少なくとも一方が誤っている可能性がある。この場合、折り目判別処理は終了し、処理は折り目検出処理(図10参照)に戻る。一方、折り目の位置が一致する場合(S83:YES)、この位置で折り目が確実に形成されていると判断される。   On the other hand, if 1 is stored in the start flag in both processes (S81: YES), does the position of the fold specified from the image on the front surface 101 match the position of the fold specified from the image on the back surface 102? Is determined (S83). Whether or not the positions of the folds match is determined by comparing the positions of the folds identified in S67 (see FIG. 10) of the fold detection process. If the fold positions do not match (S83: NO), at least one of the specified fold positions may be incorrect. In this case, the crease determination process ends, and the process returns to the crease detection process (see FIG. 10). On the other hand, when the position of the crease matches (S83: YES), it is determined that the crease is reliably formed at this position.

折り目の種別(山折り又は谷折り)を判別するための処理が以下のようにして行われる。表面101の画像に基づいて実行された折り目検出処理のS57(図10参照)でRAM74に累積された光学濃度の平均値に基づき、その平均値が算出される(S85)。裏面102の画像に基づいて実行された折り目検出処理のS57でRAM74に累積された光学濃度の平均値に基づき、その平均値が算出される(S87)。S85及びS87で算出された平均値は、変数STEPが2である区間(図4参照)、即ち、折り目付近の光学濃度の平均値に相当する。   Processing for determining the type of fold (mountain fold or valley fold) is performed as follows. Based on the average value of the optical density accumulated in the RAM 74 in S57 (see FIG. 10) of the fold detection process executed based on the image of the surface 101, the average value is calculated (S85). Based on the average value of the optical density accumulated in the RAM 74 in S57 of the fold detection process executed based on the image of the back surface 102, the average value is calculated (S87). The average value calculated in S85 and S87 corresponds to the average value of the optical density in the section where the variable STEP is 2 (see FIG. 4), that is, in the vicinity of the fold.

S85で算出された表面101の折り目付近の光学濃度の平均値と、S87で算出された裏面102の折り目付近の光学濃度の平均値とが比較される(S89、S93)。表面101の折り目付近の光学濃度の平均値が、裏面102の折り目付近の光学濃度の平均値よりも大きい場合(S89:YES)、折り目の種別は山折りであると判別される(S91)。判別結果は、折り目の位置に対応付けられてRAM74に記憶される。処理はS99に進む。   The average value of the optical density near the fold of the front surface 101 calculated in S85 is compared with the average value of the optical density near the fold of the back surface 102 calculated in S87 (S89, S93). When the average value of the optical density in the vicinity of the fold line on the front surface 101 is larger than the average value of the optical density in the vicinity of the fold line on the back surface 102 (S89: YES), it is determined that the fold type is mountain fold (S91). The determination result is stored in the RAM 74 in association with the position of the fold. The process proceeds to S99.

表面101の折り目付近の光学濃度の平均値が、裏面102の折り目付近の光学濃度の平均値よりも小さい場合(S89:NO、S93:YES)、折り目の種別は谷折りであると判別される(S95)。判別結果は、折り目の位置に対応付けられてRAM74に記憶される。処理はS99に進む。   When the average value of the optical density in the vicinity of the fold line on the front surface 101 is smaller than the average value of the optical density in the vicinity of the fold line on the back surface 102 (S89: NO, S93: YES), the fold type is determined to be valley fold. (S95). The determination result is stored in the RAM 74 in association with the position of the fold. The process proceeds to S99.

表面101の折り目付近の光学濃度の平均値と、裏面102の折り目付近の光学濃度の平均値とが一致する場合(S93:NO)、折り目の種別を判別することができないので、エラーフラグに1が格納される(S97)。処理はS99に進む。なお、エラーフラグに1が格納された場合、折り目検出処理のS37(図9参照)において、折り目の位置を検出する処理は中断される。   If the average value of the optical density in the vicinity of the fold line on the front surface 101 matches the average value of the optical density in the vicinity of the fold line on the back surface 102 (S93: NO), the type of the fold line cannot be determined. Is stored (S97). The process proceeds to S99. When 1 is stored in the error flag, the process of detecting the position of the fold is interrupted in S37 (see FIG. 9) of the fold detection process.

S99では、表面101に対応する折り目検出処理、及び裏面102に対応する折り目検出処理において1が格納された開始フラグを初期化するために、開始フラグに0が格納される(S99)。折り目判別処理は終了し、処理は折り目検出処理(図10参照)に戻る。   In S99, 0 is stored in the start flag in order to initialize the start flag in which 1 is stored in the fold detection process corresponding to the front surface 101 and the fold detection process corresponding to the back surface 102 (S99). The fold determination process ends, and the process returns to the fold detection process (see FIG. 10).

上述のように画像処理装置1は、表面101に形成された画像から決定した光学濃度と、裏面102に形成された画像から決定した光学濃度との両方が所定条件を満たす場合に、該当部分が折り目に相当すると判断できる。これによって画像処理装置1は、ページの区切りを正確に認識することができる。画像処理装置1は、ページの区切りが正確に認識できない場合に発生する不具合、例えば、加工後の画像に、隣接する位置にある画像の一部が含まれたり、加工後の画像の一部が欠けたりする不具合が発生することを防止できる。   As described above, when both the optical density determined from the image formed on the front surface 101 and the optical density determined from the image formed on the back surface 102 satisfy the predetermined condition, the image processing apparatus 1 It can be determined that it corresponds to a crease. As a result, the image processing apparatus 1 can accurately recognize page breaks. The image processing apparatus 1 has a problem that occurs when a page break cannot be accurately recognized. For example, the processed image includes a part of an image at an adjacent position or a part of the processed image. It is possible to prevent occurrence of defects such as chipping.

また画像処理装置1は、媒体100の表面101及び裏面102の其々の光学濃度を比較することによって、折り目の種別を特定することができる。なお特定した折り目の種別は、画像にページ番号を設定する場合に参照される(後述)。   Further, the image processing apparatus 1 can identify the type of the fold by comparing the optical densities of the front surface 101 and the back surface 102 of the medium 100. The specified fold type is referred to when a page number is set for an image (described later).

以上までで説明した折り目判別処理は、折り目検出処理(図9、及び図10参照)において折り目が検出する度に実行される。判別された折り目の種別は、折り目の数分RAM74に記憶される。   The crease determination process described above is executed every time a crease is detected in the crease detection process (see FIGS. 9 and 10). The determined fold types are stored in the RAM 74 by the number of folds.

折り目検出処理(図9、及び図10参照)において全ての折り目が検出され、媒体100上の画像の読み取りが全て終了した場合(S53:NO、S43、図10参照)、折り目検出処理は終了してメイン処理(図7参照)に戻る。折り目検出処理によって検出された其々の折り目は、折り目判別処理(図11参照)においてその種別が判別されている。図7に示すように、折り目検出処理(S19)が終了した後、ラインセンサ41、及び42によって読み取られた媒体100上の画像は、其々、折り目検出処理によって検出された折り目の位置(S67、図10参照)で分割される(S21)。例えば図12に示すように、媒体100の表面101上の画像は、折り目121、122、及び123によって、画像111、112,113,及び114に分割される。   When all the folds are detected in the fold detection process (see FIGS. 9 and 10) and the reading of the image on the medium 100 is completed (S53: NO, S43, see FIG. 10), the fold detection process ends. To return to the main process (see FIG. 7). The type of each crease detected by the crease detection process is determined in the crease determination process (see FIG. 11). As shown in FIG. 7, after the fold detection process (S19) is completed, the images on the medium 100 read by the line sensors 41 and 42 are the positions of the folds detected by the fold detection process (S67). , See FIG. 10) (S21). For example, as shown in FIG. 12, the image on the surface 101 of the medium 100 is divided into images 111, 112, 113, and 114 by fold lines 121, 122, and 123.

S21において分割された其々の画像にページ番号が設定される(S23)。設定されるページ番号は、FLASH・ROM73に記憶された折り目テーブル731及びページ割テーブル732に基づき、以下のようにして決定される。   A page number is set for each of the images divided in S21 (S23). The page number to be set is determined as follows based on the crease table 731 and the page allocation table 732 stored in the FLASH / ROM 73.

図13を参照し、折り目テーブル731について説明する。折り目テーブル731には、折り目の種別(山折り又は谷折り)の組み合わせが複数格納されている。折り目判別処理(図11参照)において判別された、折り目の位置毎の折り目の種別が、折り目テーブル731に適用される。そして、折り目の種別の並びが一致する場合のインデックス番号が特定される。例えば図4に示す媒体100では、左から順に「谷折り・山折り・谷折り」の順で折り目が並んでいる。従って、折り目テーブル731が適用された場合、折り目の種別の並びが一致するインデックス番号「2」が特定される。   The crease table 731 will be described with reference to FIG. The fold table 731 stores a plurality of combinations of fold types (mountain folds or valley folds). The crease type for each crease position determined in the crease determination process (see FIG. 11) is applied to the crease table 731. And the index number when the arrangement | sequence of the kind of fold matches is specified. For example, in the medium 100 shown in FIG. 4, the creases are arranged in the order of “valley fold / mountain fold / valley fold” from the left. Therefore, when the crease table 731 is applied, the index number “2” that matches the arrangement of the crease types is specified.

図14を参照し、ページ割テーブル732について説明する。ページ割テーブル732には、折り目の位置で分割された其々のページの画像に割り当てるページ番号の情報(ページ割情報)が、インデックス毎に格納されている。折り目テーブル731(図13参照)に基づいてインデックス番号が特定された後、特定されたインデックス番号のページ割情報が、ページ割テーブル732から選択される。選択されたページ割情報によって特定される各ページのページ番号が、折り目の位置で分割された其々の画像に設定される。ページ割テーブル732には、媒体100が折り畳まれた状態や開かれた状態を想定して決定されるページ割情報が格納されている。画像処理装置1は、媒体100が実際にユーザによって閲覧される場合の閲覧順にページ番号を設定することができる。   The page allocation table 732 will be described with reference to FIG. In the page allocation table 732, page number information (page allocation information) assigned to the images of the respective pages divided at the fold positions is stored for each index. After the index number is specified based on the fold table 731 (see FIG. 13), the page allocation information of the specified index number is selected from the page allocation table 732. The page number of each page specified by the selected page allocation information is set for each image divided at the position of the fold. The page allocation table 732 stores page allocation information determined on the assumption that the medium 100 is folded or opened. The image processing apparatus 1 can set page numbers in the browsing order when the medium 100 is actually browsed by the user.

例えば図4に示す媒体では、折り目テーブル731(図13参照)に基づいてインデックス番号「2」が特定されているので、ページ割テーブル732におけるインデックス「2」に対応するページ割情報が選択される。選択されたページ割情報に基づいて、画像111(最左−表面)/ページ番号1、画像112(左−表面)/ページ番号2、画像113(右−表面)/ページ番号3、画像114(最右−表面)/ページ番号4、画像115(最左−裏面)/ページ番号8、画像116(左−裏面)/ページ番号7、画像117(右−裏面)/ページ番号6、画像118(最右−裏面)/ページ番号5のように、ページ番号が其々の画像に設定される。媒体100は、画像111、112、113、114、118、117、116、及び115の順で降順となるようにページ番号を設定する。ユーザは、画像111、112、113、114、118、117、116、及び115の順で媒体100を閲覧することが想定されるので、設定されたページ番号は、ユーザによるページの閲覧順と一致する。このように画像処理装置1は、折り目の種別の並び順に基づき、想定される閲覧順を想定して最適なページ番号を設定することができる。   For example, in the medium shown in FIG. 4, since the index number “2” is specified based on the fold table 731 (see FIG. 13), the page allocation information corresponding to the index “2” in the page allocation table 732 is selected. . Based on the selected page allocation information, image 111 (leftmost-front) / page number 1, image 112 (left-front) / page number 2, image 113 (right-front) / page number 3, image 114 ( Rightmost-front) / page number 4, image 115 (leftmost-back) / page number 8, image 116 (left-back) / page number 7, image 117 (right-back) / page number 6, image 118 ( The page number is set for each image, such as (rightmost-back) / page number 5. The medium 100 sets page numbers so that images 111, 112, 113, 114, 118, 117, 116, and 115 are in descending order. Since it is assumed that the user browses the medium 100 in the order of the images 111, 112, 113, 114, 118, 117, 116, and 115, the set page number matches the browsing order of the pages by the user. To do. As described above, the image processing apparatus 1 can set an optimal page number on the basis of an assumed browsing order based on the arrangement order of the fold types.

図7のS23で、分割された其々の画像にページ番号が設定された後、S17で開始されたラインセンサ41、及び42による画像の読み取りが終了される(S25)。モータ56の駆動が終了され、搬送ローラ17、18、19、及び20は回転を終了する。媒体100の搬送は終了される(S27)。媒体の取り込み100が終了したことをユーザに通知するために、ランプが点滅される(S29)。メイン処理は終了する。   After the page number is set for each of the divided images in S23 of FIG. 7, the image reading by the line sensors 41 and 42 started in S17 is ended (S25). The driving of the motor 56 is finished, and the transport rollers 17, 18, 19, and 20 finish the rotation. The conveyance of the medium 100 is finished (S27). In order to notify the user that the medium loading 100 has been completed, the lamp blinks (S29). The main process ends.

以上説明したように、画像処理装置1は、画像の光学濃度に基づいて、媒体100の折り目の位置を特定することができる。従って画像処理装置1は、ユーザによる折り目の位置の設定を要することなく、特定された折り目の位置をページの区切りと認識できる。画像処理装置1は、ページの区切りを正確に認識し、媒体100上の画像を加工することで、ページ毎に区切られた画像をユーザに提供できる。   As described above, the image processing apparatus 1 can specify the position of the fold of the medium 100 based on the optical density of the image. Therefore, the image processing apparatus 1 can recognize the specified fold position as a page break without requiring the user to set the fold position. The image processing apparatus 1 can accurately recognize the page break and process the image on the medium 100 to provide the user with an image separated for each page.

また画像処理装置1は、折り目の種別(山折り又は谷折り)に応じて最適なページ割情報を決定し、ページの区切りで分割した画像の其々にページ番号を設定することができる。   Further, the image processing apparatus 1 can determine optimum page allocation information according to the type of fold (mountain fold or valley fold), and can set a page number for each of the images divided at the page breaks.

なお、図9のS45の処理を行うCPU71が本発明の「取得部」に相当し、S49の処理を行うCPU71が本発明の「決定部」に相当する。図10のS52、及び、図11の折り目判別処理を行うCPU71が本発明の「第一判断部」に相当する。図7のS21、23の処理を行うCPU71が本発明の「加工部」に相当する。図11のS89、S91、S93、及びS95の処理を行うCPU71が本発明の「第二判断部」に相当する。ページ割テーブル732を記憶するFLASH・ROM73が本発明の「記憶部」に相当する。図2のラインセンサ41、42が、本発明の「読み取り部」に相当する。図9のS45の処理が本発明の「取得ステップ」に相当し、S49の処理が本発明の「決定ステップ」に相当する。図10のS52、及び、図11の折り目判別処理が本発明の「第一判断ステップ」に相当する。図7のS21、23の処理が本発明の「加工ステップ」に相当する。図2に示す搬送ローラ17、18、19、及び20などが本発明の「搬送部」に相当する。   The CPU 71 that performs the process of S45 in FIG. 9 corresponds to the “acquisition unit” of the present invention, and the CPU 71 that performs the process of S49 corresponds to the “determination unit” of the present invention. S52 in FIG. 10 and the CPU 71 that performs the crease determination process in FIG. 11 correspond to the “first determination unit” of the present invention. The CPU 71 that performs the processes of S21 and S23 in FIG. 7 corresponds to the “processing unit” of the present invention. The CPU 71 that performs the processes of S89, S91, S93, and S95 in FIG. 11 corresponds to the “second determination unit” of the present invention. The FLASH ROM 73 that stores the page allocation table 732 corresponds to the “storage unit” of the present invention. The line sensors 41 and 42 in FIG. 2 correspond to the “reading unit” of the present invention. The process of S45 in FIG. 9 corresponds to the “acquisition step” of the present invention, and the process of S49 corresponds to the “determination step” of the present invention. S52 in FIG. 10 and the crease determination process in FIG. 11 correspond to the “first determination step” of the present invention. The processes of S21 and S23 in FIG. 7 correspond to the “machining step” of the present invention. The conveyance rollers 17, 18, 19, and 20 shown in FIG. 2 correspond to the “conveyance unit” of the present invention.

本発明は上述の実施形態に限定されず、種々の変更が可能である。上述の実施形態では、所定位置における光学濃度と他の位置における光学濃度との差が所定値より大きい場合に、所定位置を折り目と判断していた。この方法は、地色に依らず常に一定の判断方法で折り目の位置を判断できるという点で有効である。これに対して、光学濃度と所定の閾値との関係に基づいて、折り目の位置を判断してもよい。地色が白色である場合には、光学濃度が所定の閾値よりも大きい場合に折り目と判断し、地色が濃色である場合には、光学濃度が所定の閾値よりも小さい場合に折り目と判断してもよい。この方法は、折り目の位置を容易に判断できるという点で有効である。   The present invention is not limited to the above-described embodiment, and various modifications can be made. In the above-described embodiment, when the difference between the optical density at a predetermined position and the optical density at another position is larger than a predetermined value, the predetermined position is determined as a fold. This method is effective in that the position of the fold can always be determined by a fixed determination method regardless of the background color. On the other hand, the position of the fold may be determined based on the relationship between the optical density and a predetermined threshold value. When the ground color is white, a crease is determined when the optical density is greater than a predetermined threshold, and when the ground color is dark, a crease is detected when the optical density is less than the predetermined threshold. You may judge. This method is effective in that the position of the fold can be easily determined.

折り目の位置で分割された其々の画像は、個別のファイルとして管理してもよい。これによってに画像処理装置1は、加工後の画像を使用するユーザの利便性を向上させることができる。   Each image divided at the position of the fold may be managed as an individual file. Thereby, the image processing apparatus 1 can improve the convenience of the user who uses the processed image.

上述の実施形態における各処理では、画像処理装置1において読み取られた画像は、画像処理装置1のCPU71において処理が行われ、折り目の位置及び種別の判別が行われていた。本発明はこれに限定されない。各処理は、通信I/F75を介して画像処理装置1と接続するPC81によって実行されてもよい。即ちPC81は、画像処理装置1がシート7から読み取った画像を取得し、上述した各処理を実行してもよい。   In each process in the above-described embodiment, the image read by the image processing apparatus 1 is processed by the CPU 71 of the image processing apparatus 1 to determine the position and type of the fold. The present invention is not limited to this. Each process may be executed by the PC 81 connected to the image processing apparatus 1 via the communication I / F 75. That is, the PC 81 may acquire an image read from the sheet 7 by the image processing apparatus 1 and execute the above-described processes.

上述の実施形態において、画像処理装置1の一例として、媒体を搬送しながら画像を読み取る、いわゆるシートフィードスキャナを挙げたが、これに限らず、例えば、FAX、及び複合機などであってもよい。   In the above-described embodiment, a so-called sheet feed scanner that reads an image while conveying a medium has been described as an example of the image processing apparatus 1. However, the image processing apparatus 1 is not limited thereto, and may be, for example, a FAX or a multifunction peripheral. .

上述の実施形態において、画像処理装置1は両面読み取りを行っていたが、これに限らず、例えば、画像処理装置は、1つのラインセンサを備え、片面読み取りを行ってもよい。   In the above-described embodiment, the image processing apparatus 1 performs double-sided reading. However, the present invention is not limited to this. For example, the image processing apparatus may include one line sensor and perform single-sided reading.

1 画像処理装置
37 シートセンサ
41 ラインセンサ
42 ラインセンサ
61 制御回路部
71 CPU
72 ROM
73 FLASH・ROM
732 ページ割テーブル
1 Image Processing Device 37 Sheet Sensor 41 Line Sensor 42 Line Sensor 61 Control Circuit 71 CPU
72 ROM
73 FLASH ROM
732 page allocation table

Claims (10)

折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得部と、
前記取得部において取得した前記画像の一部分の光学濃度を決定する決定部と、
前記決定部によって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断部と、
前記第一判断部において、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工部と
を備えたことを特徴とする画像処理装置。
An acquisition unit that acquires a part of an image formed on a medium that has been folded in a crease and then in a spread state;
A determination unit that determines an optical density of a portion of the image acquired in the acquisition unit;
A first determination unit that determines that a part of the image corresponds to the fold when the difference between the optical density determined by the determination unit and the optical density of the other part of the image is greater than a predetermined value;
An image processing apparatus comprising: a processing unit configured to process the image based on a position of the fold when the first determination unit determines that a part of the image corresponds to the fold.
前記取得部は、
前記媒体の一方の面に形成された第一画像の一部分である第一部分、及び、他方の面に形成された第二画像の一部分であって、前記媒体を挟んで前記第一部分と対向する部分である第二部分を取得し、
前記決定部は、
前記第一部分及び前記第二部分の前記光学濃度を決定し、
前記第一判断部は、
前記決定部において決定した前記第一部分の光学濃度と、前記第一画像の他の部分の光学濃度との差が前記所定値より大きく、且つ、前記第二部分の前記光学濃度と、前記第二画像の他の部分の光学濃度との差が前記所定値より大きい場合に、前記第一部分及び前記第二部分が前記折り目に相当すると判断することを特徴とする請求項1に記載の画像処理装置。
The acquisition unit
A first part that is a part of the first image formed on one side of the medium, and a part of the second image that is formed on the other side of the medium, the part facing the first part across the medium Get the second part that is
The determination unit is
Determining the optical density of the first portion and the second portion;
The first determination unit is
The difference between the optical density of the first part determined by the determining unit and the optical density of the other part of the first image is greater than the predetermined value, and the optical density of the second part and the second part 2. The image processing apparatus according to claim 1, wherein when the difference from the optical density of another part of the image is larger than the predetermined value, the first part and the second part are determined to correspond to the fold. .
前記第一判断部は、
前記折り目の種別が、前記第一部分が外側になるように折れる山折りであるか、又は、前記第一部分が内側になるように折れる谷折りであるかを判断する第二判断部であって、前記第一部分の前記光学濃度と前記第一画像の他の部分の光学濃度との差が、前記第二部分の前記光学濃度と前記第二画像の他の部分の光学濃度との差よりも大きい場合に、前記山折りであると判断し、前記第一部分の前記光学濃度と前記第一画像の他の部分の光学濃度との差が、前記第二部分の前記光学濃度と前記第二画像の他の部分の光学濃度との差よりも小さい場合に、前記谷折りであると判断する第二判断部を備え
前記加工部は、
前記第二判断部において判断した前記折り目の種別に基づいて、前記画像を加工することを特徴とする請求項2に記載の画像処理装置。
The first determination unit is
The fold type is a second determination unit that determines whether the first fold is a mountain fold that folds so that the first portion is on the outside, or a valley fold that folds so that the first portion is on the inside, The difference between the optical density of the first part and the optical density of the other part of the first image is greater than the difference between the optical density of the second part and the optical density of the other part of the second image. The difference between the optical density of the first part and the optical density of the other part of the first image is the difference between the optical density of the second part and the second image. When the difference from the optical density of the other part is smaller, the second determination unit for determining that the valley fold is provided, the processing unit,
The image processing apparatus according to claim 2, wherein the image is processed based on the fold type determined by the second determination unit.
前記折り目の種別と、前記折り目の位置で分割された其々の前記画像に割り当てるページ番号を特定するページ割情報とが対応付けて記憶された記憶部を備え、
前記加工部は、
前記折り目の位置で前記画像を分割し、前記第二判断部において判断した前記折り目の種別に対応付けられて前記記憶部に記憶されている前記ページ割情報に基づいて、分割した前記画像の其々に前記ページ番号を設定することを特徴とする請求項3に記載の画像処理装置。
A storage unit in which the type of folds and pagination information for specifying page numbers to be assigned to the images divided at the positions of the folds are stored in association with each other;
The processed portion is
The image is divided at the position of the fold, and the image of the divided image is divided based on the pagination information stored in the storage unit in association with the fold type determined by the second determination unit. The image processing apparatus according to claim 3, wherein the page number is set individually.
前記加工部は、
前記折り目の位置で前記画像を分割し、分割した其々の前記画像を個別のファイルとすることを特徴とする請求項1から3のいずれかに記載の画像処理装置。
The processed portion is
The image processing apparatus according to claim 1, wherein the image is divided at the position of the fold, and each of the divided images is an individual file.
前記第一画像を読み取る第一読み取り部と、
前記第二画像を読み取る第二読み取り部とを備え、
前記取得部は、
前記第一読み取り部において読み取った前記第一画像の前記第一部分、及び、前記第二読み取り部において読み取った前記第二画像の前記第二部分を取得することを特徴とする請求項2に記載の画像処理装置。
A first reading unit for reading the first image;
A second reading unit for reading the second image,
The acquisition unit
The first part of the first image read by the first reading unit and the second part of the second image read by the second reading unit are acquired. Image processing device.
前記媒体を搬送する搬送部を備え、
前記第一読み取り部、及び前記第二読み取り部は、前記搬送部による前記媒体の搬送方向に直交する走査方向に沿って、各々、前記第一画像、及び前記第二画像を読み取ることを特徴とする請求項6に記載の画像処理装置。
A transport unit for transporting the medium;
The first reading unit and the second reading unit read the first image and the second image, respectively, along a scanning direction orthogonal to a conveyance direction of the medium by the conveyance unit. The image processing apparatus according to claim 6.
前記取得部は、
前記第一画像の前記走査方向における両端部に対応する前記第一部分、及び、第二画像の前記走査方向における両端部に対応する前記第二部分を取得することを特徴とする請求項7に記載の画像処理装置。
The acquisition unit
The first portion corresponding to both end portions in the scanning direction of the first image and the second portion corresponding to both end portions in the scanning direction of the second image are acquired. Image processing apparatus.
折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得ステップと、
前記取得ステップにおいて取得した前記画像の一部分の光学濃度を決定する決定ステップと、
前記決定ステップによって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断ステップと、
前記第一判断ステップにおいて、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工ステップと
を備えたことを特徴とする画像処理方法。
An acquisition step of acquiring a portion of an image formed on a medium that has been folded in a crease and then in a spread state;
A determining step for determining an optical density of a portion of the image acquired in the acquiring step;
A first determination step of determining that a part of the image corresponds to the fold when the difference between the optical density determined by the determination step and the optical density of the other part of the image is greater than a predetermined value;
An image processing method comprising: a processing step of processing the image based on the position of the fold when it is determined in the first determination step that a part of the image corresponds to the fold.
折り目で折り畳まれた後、見開きの状態にされた媒体上に形成された画像の一部分を取得する取得ステップと、
前記取得ステップにおいて取得した前記画像の一部分の光学濃度を決定する決定ステップと、
前記決定ステップによって決定した前記光学濃度と、前記画像の他の部分の光学濃度との差が所定値より大きい場合に、前記画像の一部分が前記折り目に相当すると判断する第一判断ステップと、
前記第一判断ステップにおいて、前記画像の一部分が前記折り目に相当すると判断した場合に、前記折り目の位置に基づいて前記画像を加工する加工ステップと
をコンピュータに実行させるための画像処理プログラム。
An acquisition step of acquiring a portion of an image formed on a medium that has been folded in a crease and then in a spread state;
A determining step for determining an optical density of a portion of the image acquired in the acquiring step;
A first determination step of determining that a part of the image corresponds to the fold when the difference between the optical density determined by the determination step and the optical density of the other part of the image is greater than a predetermined value;
An image processing program for causing a computer to execute a processing step of processing the image based on the position of the fold when it is determined in the first determination step that a part of the image corresponds to the fold.
JP2011007595A 2011-01-18 2011-01-18 Image processing apparatus, image processing method, and image processing program Pending JP2012151586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011007595A JP2012151586A (en) 2011-01-18 2011-01-18 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011007595A JP2012151586A (en) 2011-01-18 2011-01-18 Image processing apparatus, image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2012151586A true JP2012151586A (en) 2012-08-09

Family

ID=46793445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011007595A Pending JP2012151586A (en) 2011-01-18 2011-01-18 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP2012151586A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254706A (en) * 2015-06-09 2016-12-21 柯尼卡美能达株式会社 Image read-out and image processing system
US10277759B1 (en) 2017-10-17 2019-04-30 Fuji Xerox Co., Ltd. Image processing device and method
US10348920B2 (en) 2017-09-06 2019-07-09 Fuji Xerox Co., Ltd. Image processing device and method for adjusting a fold position of a fold unit
US10350931B2 (en) 2017-09-06 2019-07-16 Fuji Xerox Co., Ltd. Image processing device and method for adjusting a fold position of a fold unit
US10536598B2 (en) 2017-10-20 2020-01-14 Fuji Xerox Co., Ltd. Image processing device and method
US10542163B2 (en) 2017-10-19 2020-01-21 Fuji Xerox Co., Ltd. Image forming device and method
US10793389B2 (en) 2017-09-06 2020-10-06 Fuji Xerox Co., Ltd. Image processing device with a fold unit for folding a position adjustment sheet and method therefor

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254706A (en) * 2015-06-09 2016-12-21 柯尼卡美能达株式会社 Image read-out and image processing system
JP2017005438A (en) * 2015-06-09 2017-01-05 コニカミノルタ株式会社 Image reading device and image formation device
US9712705B2 (en) 2015-06-09 2017-07-18 Konica Minolta, Inc. Image reading apparatus and image forming apparatus with memory management for Z-folded documents
CN106254706B (en) * 2015-06-09 2018-11-30 柯尼卡美能达株式会社 Image read-out and image forming apparatus
US10348920B2 (en) 2017-09-06 2019-07-09 Fuji Xerox Co., Ltd. Image processing device and method for adjusting a fold position of a fold unit
US10350931B2 (en) 2017-09-06 2019-07-16 Fuji Xerox Co., Ltd. Image processing device and method for adjusting a fold position of a fold unit
US10793389B2 (en) 2017-09-06 2020-10-06 Fuji Xerox Co., Ltd. Image processing device with a fold unit for folding a position adjustment sheet and method therefor
US10277759B1 (en) 2017-10-17 2019-04-30 Fuji Xerox Co., Ltd. Image processing device and method
US10542163B2 (en) 2017-10-19 2020-01-21 Fuji Xerox Co., Ltd. Image forming device and method
US10536598B2 (en) 2017-10-20 2020-01-14 Fuji Xerox Co., Ltd. Image processing device and method

Similar Documents

Publication Publication Date Title
JP2012151586A (en) Image processing apparatus, image processing method, and image processing program
TWI513271B (en) Scanning system and method for scanning multipage documents
TWI683778B (en) Medium feeding device and image reading apparatus
US9656820B2 (en) Sheet conveying apparatus which detects multiple feed
US7764408B2 (en) Document reading apparatus
JP3718655B2 (en) Image forming apparatus
JP5912266B2 (en) Image reading device
JP7095314B2 (en) Image forming device
JP5629129B2 (en) Image reading apparatus and image reading system
US9036222B2 (en) Document scanner
US20080152368A1 (en) Image forming device to determine paper width and image forming method thereof
JP5522024B2 (en) Image processing apparatus, image processing method, and image processing program
US9497344B2 (en) Image forming apparatus which detects a blank page from an image of a document, method for controlling the same, and storage medium
JP5516539B2 (en) Reading apparatus and program
US11330126B2 (en) Image reading device that reads an image of a document
US9451110B2 (en) Image forming apparatus and image forming method
JP2014036425A (en) Document reader and control method
JP7098497B2 (en) Image reader
JP2022135567A (en) Image inspection device and image forming apparatus
JP5786006B2 (en) Image erasing device
JP2005195866A (en) Image forming apparatus
US20220030126A1 (en) Information processing apparatus, image forming apparatus, and non-transitory computer readable medium
JP2003298808A (en) Original transporting and reading apparatus
JP6766588B2 (en) Image reader
JP2016063371A (en) Image reading device, image forming apparatus, control method, and program