JP2011139371A - Image processor, image processing method, and program by which computer executes - Google Patents

Image processor, image processing method, and program by which computer executes Download PDF

Info

Publication number
JP2011139371A
JP2011139371A JP2009298865A JP2009298865A JP2011139371A JP 2011139371 A JP2011139371 A JP 2011139371A JP 2009298865 A JP2009298865 A JP 2009298865A JP 2009298865 A JP2009298865 A JP 2009298865A JP 2011139371 A JP2011139371 A JP 2011139371A
Authority
JP
Japan
Prior art keywords
crease line
detection result
read image
image
read
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
JP2009298865A
Other languages
Japanese (ja)
Inventor
Fumio Yoshizawa
史男 吉澤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009298865A priority Critical patent/JP2011139371A/en
Publication of JP2011139371A publication Critical patent/JP2011139371A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor that detects with high accuracy a pleat line of the read image obtained by optically reading a reading medium, and also to provide an image processing method, and a program by which a computer executes. <P>SOLUTION: A detection portion 14 detects each of the pleat lines of first and second surfaces of the read images of the reading medium, and a correction portion 15 compares the pleat line detection result of the first surface of the read image with that of the second surface of the read image by using the geometrical feature of each pleat line so as to correct the pleat line detection results of the first and second surfaces of the read images. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法、およびコンピュータが実行可能なプログラムに関し、詳細には、紙文書などの読取媒体を光学的に読み取って得られた画像情報から、読取媒体の折り目が原因で、読取画像に重畳するノイズを検出する処理を実行する画像処理装置、画像処理方法、およびコンピュータが実行可能なプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a computer-executable program, and in particular, causes of a fold in the reading medium from image information obtained by optically reading a reading medium such as a paper document. Thus, the present invention relates to an image processing apparatus, an image processing method, and a computer-executable program that execute processing for detecting noise superimposed on a read image.

折り目の付いた紙文書を、スキャナなどの読取装置を用いて読み取ると、折り目の部分が細線(以降、折目線と称する)となって読み取られることがある。これらの細線は、原稿上に描かれたものではないため、殆どの利用者にとっては不要な情報のはずである。加えて、OCRや像域分離といった画像認識の用途があると、折目線が認識精度を落とす原因にもなり得る。このため、折目線は消去または目立たなくすることが望ましい。   When a creased paper document is read using a reading device such as a scanner, the fold portion may be read as a thin line (hereinafter referred to as a crease line). Since these thin lines are not drawn on the manuscript, they should be unnecessary information for most users. In addition, if there is an application for image recognition such as OCR or image area separation, the crease line may cause a decrease in recognition accuracy. For this reason, it is desirable that the crease line is erased or not noticeable.

折目線を消去または目立たなくする技術としては、例えば、特許文献1の画像処理装置や特許文献2の画像情報の折目ノイズ除去装置などが提案されている。特許文献1では、読取画像の中から「周囲との明度差は大きいが、色差が小さい箇所」を探索し、それらが線状に連なっている場合に折目線として検出する。そして、折目線として検出した箇所に対して、周囲の明度に類似させることで折目線を目立たなくしている。   For example, an image processing apparatus disclosed in Patent Document 1 and a crease noise removing apparatus disclosed in Patent Document 2 have been proposed as techniques for erasing or making the crease line inconspicuous. In Japanese Patent Laid-Open No. 2004-260688, “locations where the brightness difference from the surroundings is large but the color difference is small” are searched from the read image, and are detected as a crease line when they are connected in a line. Then, the crease line is made inconspicuous by making the portion detected as the crease line resemble the surrounding lightness.

また、特許文献2では、読取画像を白黒画像に変換し、「白黒画像の任意の1辺と平行な向きに所定以上のランレングスをもち、同様のランレングスが垂直な向きに連続する箇所」を折目線として検出している。そして、折目線として検出した箇所に対して、周囲の濃度に類似させることで折目線を目立たなくしている。   Further, in Patent Document 2, a read image is converted into a black and white image, and “a portion having a run length of a predetermined length or more in a direction parallel to an arbitrary side of a black and white image and a similar run length continuing in a vertical direction” Is detected as a crease line. Then, the fold line is made inconspicuous by making the portion detected as the fold line similar to the surrounding density.

両特許文献では、折目線の色や形といった見た目に注目して、読取画像の中から折目線を検出している。確かに、折目線には特徴的な色や形があるため、それらを検出条件として使うことは妥当と考えられる。しかしながら、紙文書には文字や線、図形といった様々な物が描かれるため、見た目だけに注目したのでは、折目線そっくりなものを折目線と誤検出する可能性がある。   In both patent documents, the crease line is detected from the read image by paying attention to the appearance such as the color and shape of the crease line. Certainly, the crease lines have characteristic colors and shapes, so it is considered appropriate to use them as detection conditions. However, since various objects such as characters, lines, and figures are drawn on the paper document, if attention is paid only to the appearance, there is a possibility that an object that looks exactly like the crease line is erroneously detected as a crease line.

本発明は、上記に鑑みてなされたものであって、読取媒体を光学的に読み取って得られた読取画像の折目線を高精度に検出することが可能な画像処理装置、画像処理方法、およびコンピュータが実行可能なプログラムを提供することを目的とする。   The present invention has been made in view of the above, and is an image processing apparatus, an image processing method, and an image processing apparatus that can detect a crease line of a read image obtained by optically reading a reading medium with high accuracy. An object is to provide a computer-executable program.

上述した課題を解決し、目的を達成するために、本発明は、読取媒体を光学的に読み取って得られた読取画像の折目線を検出する画像処理装置であって、前記読取媒体の第1面の読取画像の折目線検出結果と、前記読取媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、前記第1面および前記第2面の読取画像の折目線検出結果を補正する補正手段を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides an image processing apparatus for detecting a fold line of a read image obtained by optically reading a read medium, wherein A crease line detection result of the read image of the surface and a crease line detection result of the read image of the second surface of the reading medium are compared using a geometric feature of the crease line, and the first surface and the first surface are compared. The image forming apparatus includes a correcting unit that corrects the crease line detection result of the two-side read image.

また、上述した課題を解決し、目的を達成するために、本発明は、読取媒体を光学的に読み取って得られた読取画像の折目線を検出する画像処理方法であって、前記読取媒体の第1面の読取画像の折目線検出結果と、前記読取媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、前記第1面および前記第2面の読取画像の折目線検出結果を補正する補正工程を含むことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides an image processing method for detecting a crease line of a read image obtained by optically reading a read medium, A fold line detection result of the read image of the first surface and a fold line detection result of the read image of the second surface of the reading medium are compared using a geometric feature of the fold line, and the first surface and A correction step of correcting a crease line detection result of the read image on the second surface is included.

本発明にかかる画像処理装置によれば、読取媒体を光学的に読み取って得られた読取画像の折目線を検出する画像処理装置であって、前記読取媒体の第1面の読取画像の折目線検出結果と、前記読取媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、前記第1面および前記第2面の読取画像の折目線検出結果を補正する補正手段を備えているので、読取媒体を光学的に読み取って得られた読取画像の折目線を高精度に検出することが可能な画像処理装置を提供することが可能になるという効果を奏する。   According to the image processing apparatus of the present invention, the image processing apparatus detects a crease line of a read image obtained by optically reading the read medium, and the crease line of the read image on the first surface of the read medium. The detection result and the fold line detection result of the read image on the second surface of the reading medium are compared using the geometric feature of the fold line, and the folding of the read images on the first surface and the second surface is compared. Since the correction means for correcting the line-of-sight detection result is provided, it is possible to provide an image processing apparatus capable of detecting the crease line of the read image obtained by optically reading the reading medium with high accuracy. The effect of becoming.

図1は、本発明の原理を説明するための図である。FIG. 1 is a diagram for explaining the principle of the present invention. 図2は、本発明の画像処理装置の構成例を示す図である。FIG. 2 is a diagram showing a configuration example of the image processing apparatus of the present invention. 図3は、本発明の画像処理装置の動作シーケンス例を示す図である。FIG. 3 is a diagram showing an example of an operation sequence of the image processing apparatus of the present invention. 図4は、操作部の表示例を示す図である。FIG. 4 is a diagram illustrating a display example of the operation unit. 図5は、折目線検出結果の一例を示す図である。FIG. 5 is a diagram illustrating an example of the crease line detection result. 図6は、記録部に記録されたデータの一例を示す図である。FIG. 6 is a diagram illustrating an example of data recorded in the recording unit. 図7−1は、折目線検出結果の一例を示す図である。FIG. 7-1 is a diagram illustrating an example of a fold line detection result. 図7−2は、折目線検出結果の一例を示す図である。FIG. 7B is a diagram illustrating an example of a fold line detection result. 図8は、Correction動作のフロチャート例を示す図である。FIG. 8 is a diagram illustrating a flowchart example of the correction operation. 図9は、グループ処理の実例を示す図である。FIG. 9 is a diagram illustrating an example of group processing. 図10−1は、折目線の幾何学的な特徴の一例を示す図である。FIG. 10A is a diagram illustrating an example of a geometric feature of a crease line. 図10−2は、折目線の幾何学的な特徴の一例を示す図である。FIG. 10B is a diagram illustrating an example of a geometric feature of the crease line. 図11−1は、折目線の幾何学的な特徴の一例を示す図である。FIG. 11A is a diagram illustrating an example of a geometric feature of a crease line. 図11−2は、折目線の幾何学的な特徴の一例を示す図である。FIG. 11B is a diagram illustrating an example of a geometric feature of a crease line. 図12は、鏡面処理の実例を示す図である。FIG. 12 is a diagram illustrating an example of mirror surface processing. 図13は、収縮処理の実例を示す図である。FIG. 13 is a diagram illustrating an example of the contraction process. 図14は、膨張処理の実例を示す図である。FIG. 14 is a diagram illustrating an example of the expansion process.

以下に、この発明にかかる画像処理装置、画像処理方法、およびコンピュータが実行可能なプログラムの実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。また、下記実施の形態における構成要素には、当業者が容易に想定できるものまたは実質的に同一のものが含まれる。   Embodiments of an image processing apparatus, an image processing method, and a computer-executable program according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments. In addition, constituent elements in the following embodiments include those that can be easily assumed by those skilled in the art or that are substantially the same.

(本発明の原理)
本発明は、紙文書などの読取媒体を光学的に読み取って得られた画像情報から、読取媒体の折り目が原因で読取画像に重畳するノイズを高精度に検出するものである。図1は、本発明の原理を説明するための図である。
(Principle of the present invention)
According to the present invention, noise superimposed on a read image due to a fold of the read medium is detected with high accuracy from image information obtained by optically reading a read medium such as a paper document. FIG. 1 is a diagram for explaining the principle of the present invention.

図1において、紙文書などの折り目は、紙が折り曲げられたことで起こる傷跡である(101参照)。紙文書の折り目は両面に入る。紙文書を光学的に読み取ると、第1面と第2面の読取画像に重畳する折目線は鏡面座標を持つことになる。同図では、折り目を広げた紙文書(第1面:101参照)を水平方向および垂直方向に裏返した(反転)させた状態(第2面:102、103参照)を示しており、第1面と第2面の折目線は、鏡面座標を有している。本発明では、読取媒体の第1面の読取画像の折目線検出結果と、読取媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴、すなわち、同一の読取媒体の第1面と第2面の折目線は鏡面関係を有しているという特徴を利用して、第1面および第2面の読取画像の折目線検出結果を補正することで、折目線の検出精度を向上させるものである。   In FIG. 1, a crease in a paper document or the like is a scar caused by folding the paper (see 101). The fold line of the paper document enters both sides. When a paper document is optically read, the crease line superimposed on the read images on the first surface and the second surface has mirror coordinates. The figure shows a state where a paper document (first side: 101) with an expanded fold is turned over (reversed) in the horizontal and vertical directions (second side: 102, 103). The crease line between the surface and the second surface has specular coordinates. In the present invention, the crease line detection result of the read image on the first surface of the reading medium and the fold line detection result of the read image on the second surface of the reading medium are represented by the geometric characteristics of the crease line, that is, the same reading. By using the feature that the crease line between the first surface and the second surface of the medium has a mirror surface relationship, the crease line detection result of the read images of the first surface and the second surface is corrected, thereby making the crease line Is improved.

(実施の形態)
図2は、本発明の実施の形態にかかる画像処理装置の構成例を模式的に示した図である。画像処理装置1は、図2に示すように、読取部11と、出力部12と、操作部13と、検出部14と、補正部15と、記録部16と、制御部17等の各部位を備えている。
(Embodiment)
FIG. 2 is a diagram schematically illustrating a configuration example of the image processing apparatus according to the embodiment of the present invention. As shown in FIG. 2, the image processing apparatus 1 includes parts such as a reading unit 11, an output unit 12, an operation unit 13, a detection unit 14, a correction unit 15, a recording unit 16, and a control unit 17. It has.

読取部11は、読取媒体を光学的に読み取り、読取画像を生成する部位である。読取部11は、読取媒体を水平方向および/または垂直方向に反転させる機構を備えており、読取媒体の両面(第1面、第2面)を読み取り可能に構成されている。折り目の付いた紙文書を読み取ると、生成される読取画像に折目線が重畳する。   The reading unit 11 is a part that optically reads a reading medium and generates a read image. The reading unit 11 includes a mechanism that inverts the reading medium in the horizontal direction and / or the vertical direction, and is configured to be able to read both surfaces (first surface and second surface) of the reading medium. When a creased paper document is read, a crease line is superimposed on the generated read image.

検出部14は、読取画像の中から折目線を検出するための部位である。具体的には、検出部14は、読取画像を構成する各画素について、折目線であるか否かの判定を行い、読取画像と同サイズの2値データを検出結果として生成する。   The detection unit 14 is a part for detecting a crease line from the read image. Specifically, the detection unit 14 determines whether or not each pixel constituting the read image is a crease line, and generates binary data having the same size as the read image as a detection result.

記録部16は、読取画像とその折目線検出結果とを関連づけて記録するための部位である。記録部16は、例えば、記録媒体としてのRAM(Random Access Memory)を使用することができ、記録情報を部分的に読み書きすることができる。また、記録部16の記録容量は、少なくとも読取画像と折目線検出結果とを各々2面分だけ記録可能な大きさである。   The recording unit 16 is a part for recording the read image and the crease line detection result in association with each other. The recording unit 16 can use, for example, a RAM (Random Access Memory) as a recording medium, and can partially read and write recorded information. Further, the recording capacity of the recording unit 16 is a size capable of recording at least the read image and the crease line detection result for each two sides.

補正部15は、検出部14の折目線検出結果を補正する部位である。具体的には、補正部15は、記録部16から折目線検出結果を読み出し、必要に応じて、検出結果を修正して、記録部16に書き戻す。   The correction unit 15 is a part that corrects the crease line detection result of the detection unit 14. Specifically, the correction unit 15 reads the crease line detection result from the recording unit 16, corrects the detection result as necessary, and writes it back to the recording unit 16.

出力部12は、読取画像と折目線検出結果とを出力するための部位である。出力部12は、例えば、画像処理(例えば、読取画像に重畳する折目線を目立たなくする処理)を実施する機器が接続される。   The output unit 12 is a part for outputting the read image and the crease line detection result. For example, the output unit 12 is connected to a device that performs image processing (for example, processing for making a fold line superimposed on a read image inconspicuous).

操作部13は、画像処理装置1の利用者が種々の設定を行ったり、本画像処理装置1の利用者に種々の情報を提供したりするための部位である。操作部13は、例えば、タッチパネルのようなソフトキーを表示できる表示装置で構成することができる。   The operation unit 13 is a part for the user of the image processing apparatus 1 to perform various settings and to provide various information to the user of the image processing apparatus 1. The operation unit 13 can be configured by a display device that can display soft keys such as a touch panel, for example.

制御部17は、CPU,ROM、RAM、A/D変換器、ポート等で構成されており、画像処理装置1の各部位の動作を制御するための部位である。制御部17は、後述する基本動作の開始から終了までの期間、それぞれの部位を制御する。   The control unit 17 includes a CPU, a ROM, a RAM, an A / D converter, a port, and the like, and is a part for controlling the operation of each part of the image processing apparatus 1. The control unit 17 controls each part during a period from the start to the end of a basic operation described later.

図3〜図6を参照して、図2の画像処理装置1の基本動作を説明する。図3は、図2の画像処理装置1の動作シーケンスの一例を示している。特に、図3は各部位の動作及び情報の流れを時系列に表したものであり、Scan動作,Detection動作,本発明の特徴的部分であるCorrection動作、Output動作の4つに区別される。Correction動作では、同一原稿の表面と裏面の折目線検出結果が必要となるため、Correction動作を開始する以前に、同一原稿の表面と裏面についてのScan動作とDetection動作を各々実行する。図4は、操作部13の操作画面の一例を示している。図5は、折目線検出結果の一例を示す図である。図6は、記録部16に記録されたデータの一例を示す図である。   The basic operation of the image processing apparatus 1 in FIG. 2 will be described with reference to FIGS. FIG. 3 shows an example of an operation sequence of the image processing apparatus 1 of FIG. In particular, FIG. 3 shows the operation of each part and the flow of information in time series, and can be classified into four types: a scan operation, a detection operation, a correction operation which is a characteristic part of the present invention, and an output operation. In the correction operation, the crease line detection result on the front and back sides of the same document is required. Therefore, before the correction operation is started, the scan operation and the detection operation on the front and back sides of the same document are executed. FIG. 4 shows an example of the operation screen of the operation unit 13. FIG. 5 is a diagram illustrating an example of the crease line detection result. FIG. 6 is a diagram illustrating an example of data recorded in the recording unit 16.

図3において、まず、画像処理装置1では、紙文書を光学的に読み取って、その読取画像を記録部16に記録するScan動作が行われる。具体的には、利用者は読取部11に紙文書を設置し、操作部13を用いて設定情報(少なくとも、(1)紙文書の大きさ、(2)紙文書の見開き方向、(3)読取面の3種類)の設定を行い、確定ボタンを押すと設定情報が確定して、スキャン動作が開始される。操作部13の操作画面は、例えば、図4に示すように、(1)紙文書の大きさを選択するボタン(A3,B4,Letter)、(2)紙文書の見開き方向を選択するボタン(左右開き、上下開き)、(3)読取面を選択するボタン(表面、裏面)、確定ボタンを備えている。   In FIG. 3, first, the image processing apparatus 1 performs a Scan operation for optically reading a paper document and recording the read image in the recording unit 16. Specifically, the user installs a paper document in the reading unit 11 and uses the operation unit 13 to set information (at least (1) the size of the paper document, (2) the spread direction of the paper document, (3) (3 types of reading surface) are set, and when the confirm button is pressed, the setting information is confirmed and the scanning operation is started. For example, as shown in FIG. 4, the operation screen of the operation unit 13 includes (1) buttons (A3, B4, Letter) for selecting the size of a paper document, and (2) buttons for selecting a facing direction of the paper document ( (3) A button for selecting a reading surface (front surface, back surface) and a confirmation button are provided.

確定した設定情報は一旦、操作部13から制御部17に送信される(ステップS1)。制御部17は、受信した設定情報に基づいて、利用者の設定に従う動作を実現するための制御パラメーラを各部位に転送する(ステップS2)。制御情報を受け取った各部位は、ステータス信号1を制御部17に返信する(ステップS3)。   The confirmed setting information is once transmitted from the operation unit 13 to the control unit 17 (step S1). Based on the received setting information, the control unit 17 transfers a control parameter for realizing an operation according to the setting of the user to each part (step S2). Each part that has received the control information returns a status signal 1 to the control unit 17 (step S3).

制御部17は、全ての部位からステータス信号1を受け取ると、読取部11に対して読取動作の開始を指示する(ステップS4)。読取部11は、読取動作の開始の指示を受け取ると、紙文書の大きさだけ読取動作を行って読取画像を生成し、読取画像を記録部16に転送する(ステップS5)。記録部16は、紙文書の大きさ、見開き方向、読取面の3種類の情報を読取画像と関連付けて記憶する。読取画像の記録が終了すると、記録部16は、ステータス信号2を制御部に返信し(ステップS6)、制御部17は、ステータス信号2を受信するとScan動作を終了する。   When receiving the status signal 1 from all the parts, the control unit 17 instructs the reading unit 11 to start the reading operation (step S4). When the reading unit 11 receives an instruction to start the reading operation, the reading unit 11 performs a reading operation for the size of the paper document to generate a read image, and transfers the read image to the recording unit 16 (step S5). The recording unit 16 stores three types of information, that is, the size of the paper document, the spread direction, and the reading surface, in association with the read image. When the recording of the read image is completed, the recording unit 16 returns the status signal 2 to the control unit (step S6), and when the control unit 17 receives the status signal 2, the scanning operation is terminated.

つぎに、画像処理装置1では、記録部16に記憶されている読取画像の中から折目線を検出するDetection動作が行われる。具体的には、まず、制御部17から検出部14に対して検出動作の開始が指示されると(ステップS7)、検出部14は記録部16から読取画像を読み出して(ステップS8)、各画素が折目線であるか否かの判定を行う。判定のアルゴリズムは、例えば、従来技術と同様とすることができるので詳細な説明を省略する。判定が終了すると、検出部14は、読取画像と同サイズの2値のビットマップデータを折目線検出結果として生成し、読取画像と関連付けて記録部16に蓄積する(ステップS9)。   Next, in the image processing apparatus 1, a detection operation for detecting a crease line from the read image stored in the recording unit 16 is performed. Specifically, first, when the control unit 17 instructs the detection unit 14 to start a detection operation (step S7), the detection unit 14 reads a read image from the recording unit 16 (step S8). It is determined whether or not the pixel is a crease line. The determination algorithm can be the same as that of the prior art, for example, and thus detailed description thereof is omitted. When the determination is completed, the detection unit 14 generates binary bitmap data having the same size as the read image as a crease line detection result, and stores it in the recording unit 16 in association with the read image (step S9).

読取画像と同サイズの2値のビットマップデータは、読取画像の各画素について「0」または「1」の状態を表すことができるので、例えば、図5に示すように、折目線であれば「1」、折目線でなければ「0」を割り付けることとができる。また、記録部16には、図6に示すように、読取媒体の大きさ、見開き方向、読取面、折目線検出結果、読取画像が互いに関連付けられて記録されることになる。   Since binary bitmap data having the same size as the read image can represent the state of “0” or “1” for each pixel of the read image, for example, as shown in FIG. If it is “1” and not a crease line, “0” can be assigned. Further, as shown in FIG. 6, the recording unit 16 records the size of the reading medium, the spread direction, the reading surface, the crease line detection result, and the read image in association with each other.

折目線検出結果の蓄積が終了すると、記録部16は、ステータス信号3を制御部17に返信する(ステップS10)。制御部17が、ステータス信号3を受信するとDetection動作を終了する。   When the accumulation of the crease line detection results is completed, the recording unit 16 returns the status signal 3 to the control unit 17 (step S10). When the control unit 17 receives the status signal 3, the detection operation ends.

上記のScan動作とDetection動作は、同一原稿の表面と裏面について、各々実行される。   The Scan operation and the Detection operation are executed for the front and back surfaces of the same document.

記録部16に記録された折目線検出結果を補正するCorrection動作について説明する。制御部17から補正部15に対して補正動作の開始が指示されると(ステップS11)、補正部15は、記録部16に記録されている同一原稿の表面と裏面の折目線検出結果を適時読み出し(ステップS12)、折目線が持つ幾何学的な特徴を使って、両者の折目線検出結果を補正する。折目線検出結果を補正するアルゴリズムの詳細については後述する(図8〜図13参照)。補正部15は、折目線検出結果の補正が覆った箇所、すなわち、「0」が「1」に、または「1」が「0」に補正された箇所については、新しい結果を記録部16に上書きする(ステップS13)。補正部15は、全ての折目線検出結果について補正が終了すると、ステータス信号4を制御部17に返信する(ステップS14)。制御部17はステータス信号4を受信するとCorrection動作を終了する。   The Correction operation for correcting the crease line detection result recorded in the recording unit 16 will be described. When the control unit 17 instructs the correction unit 15 to start the correction operation (step S11), the correction unit 15 uses the detection result of the crease lines on the front and back surfaces of the same document recorded in the recording unit 16 in a timely manner. Reading (step S12), the crease line detection result of both is corrected using the geometric features of the crease line. Details of the algorithm for correcting the crease line detection result will be described later (see FIGS. 8 to 13). The correction unit 15 stores the new result in the recording unit 16 for the portion covered by the correction of the crease line detection result, that is, the portion where “0” is corrected to “1” or “1” is corrected to “0”. Overwriting is performed (step S13). When the correction of all the crease line detection results is completed, the correction unit 15 returns a status signal 4 to the control unit 17 (step S14). When receiving the status signal 4, the control unit 17 ends the correction operation.

最後に、画像処理装置1では、記録部16に蓄積されている読取画像と折目線検出結果を、出力部12から外部装置へ出力するOutput動作が行われる。具体的には、まず、制御部17から出力部12に対して出力動作の開始が指示されると(ステップS15)、出力部12は記録部16から読取画像と折目線検出結果を読み出し(ステップS16)、外部装置が解釈可能な形式に変換した後に外部装置に出力する(ステップS17)。読取画像と折目線検出結果が全て出力されると、出力部12は、ステータス信号5を制御部17に返信する(ステップS18)。制御部17がステータス信号5を受信するとOutput動作を終了する。   Finally, in the image processing apparatus 1, an output operation for outputting the read image and the crease line detection result stored in the recording unit 16 from the output unit 12 to the external device is performed. Specifically, first, when the control unit 17 instructs the output unit 12 to start an output operation (step S15), the output unit 12 reads the read image and the crease line detection result from the recording unit 16 (step S15). S16), after converting into a format interpretable by the external device, output to the external device (step S17). When all of the read image and the crease line detection result are output, the output unit 12 returns a status signal 5 to the control unit 17 (step S18). When the control unit 17 receives the status signal 5, the output operation ends.

図7−1〜図14を参照して、上記Correction動作の折目線検出結果を補正するアルゴリズムについて詳細に説明する。図7−1および図7−2は、折目線検出結果の一例を示す図である。図8は、Correction動作の一例を説明するためのフロチャートである。図9は、グループ処理の実例を示す図である。図10−1、図10−2、図11−1および図11−2は、折目線の幾何学的な特徴の一例を示す図である。図12は、鏡面処理の一例を説明するための図である。図13は、収縮処理の一例を説明するための図である。図14は、膨張処理の一例を説明するための図である。   With reference to FIGS. 7A to 14, an algorithm for correcting the crease line detection result of the correction operation will be described in detail. 7A and 7B are diagrams illustrating an example of the crease line detection result. FIG. 8 is a flowchart for explaining an example of the correction operation. FIG. 9 is a diagram illustrating an example of group processing. 10-1, FIG. 10-2, FIG. 11-1, and FIG. 11-2 are diagrams showing examples of geometric features of crease lines. FIG. 12 is a diagram for explaining an example of the mirror surface processing. FIG. 13 is a diagram for explaining an example of the contraction process. FIG. 14 is a diagram for explaining an example of the expansion process.

ここでは、一例として、図7−1に示すような左右開きの紙文書について、Scan動作とDetection動作を行った結果、図7−2に示すような折目線検出結果が2値データとして記録部16に記録されている場合について説明する。   Here, as an example, as a result of performing the Scan operation and the Detection operation on the left and right open paper document as shown in FIG. 7A, the crease line detection result as shown in FIG. The case of being recorded in No. 16 will be described.

図8に示すように、Correction動作は、グループ処理と(ステップS21)、鏡面処理と(ステップS22)、収縮処理と(ステップS23)、膨張処理と(ステップS24)の4つの工程を含んでいる。   As shown in FIG. 8, the correction operation includes four steps of group processing (step S21), mirror surface processing (step S22), contraction processing (step S23), and expansion processing (step S24). .

グループ処理(ステップS21)では、連続して折目線と判定された領域が1単位となるように、折目線検出結果をグループ化する。例えば、図7−2に示すような折目線検出結果の場合は、図9に示すように、表面の折目線検出結果はグループA〜E、裏面の折目線検出結果はグループF〜Lにグループ化することができる。   In the group processing (step S21), the crease line detection results are grouped so that the area continuously determined as the crease line is one unit. For example, in the case of the crease line detection result as shown in FIG. 7-2, as shown in FIG. 9, the crease line detection result on the front surface is grouped into groups A to E, and the crease line detection result on the back surface is grouped into groups F to L. Can be

鏡面処理(ステップS22)では、裏面の折目線検出結果を水平方向または垂直方向に鏡面化したものを作成して、表面の折目線検出結果と重ね合わせる。この場合、鏡面化する向きは読取媒体の見開き方向によって切り替える。なぜなら、見開き方向によって、読取媒体と読取画像との天地が切り替わるからである。例えば、左右開きの読取媒体(図10−1参照)の場合は、表面と裏面の読取画像に重畳する折目線は水平方向に鏡面関係(図10−2参照)を有する。上下開き(図11−1参照)の場合は、垂直方向に鏡面関係(図11−2参照)を有する。図9の場合は、元となる紙文書(図7−1参照)が左右開きであるので、水平方向に鏡面化したものを重ねると、図12に示すような結果となる。なお、図12では、折目線検出結果の重なりが見易いように、少しだけズラして重ねた図としている。   In the mirror surface processing (step S22), a crease line detection result on the back surface is made a mirror surface in the horizontal direction or the vertical direction, and is superimposed on the crease line detection result on the front surface. In this case, the mirroring direction is switched depending on the spread direction of the reading medium. This is because the top and bottom of the reading medium and the read image are switched depending on the spread direction. For example, in the case of a left-and-right reading medium (see FIG. 10-1), the crease line superimposed on the front and back read images has a mirror-surface relationship in the horizontal direction (see FIG. 10-2). In the case of vertical opening (see FIG. 11-1), it has a mirror surface relationship (see FIG. 11-2) in the vertical direction. In the case of FIG. 9, the original paper document (see FIG. 7-1) opens left and right. Therefore, if the mirrored ones are overlapped in the horizontal direction, the result shown in FIG. 12 is obtained. Note that FIG. 12 is a diagram in which the overlapping of the crease line detection results is slightly shifted so as to be easily seen.

収縮処理(ステップS23)では、鏡面処理が済んだものに対してグループ単位で第1の補正を行う。具体的には、表面と裏面の両方で折目線と検出されていた箇所が重なっているグループは、そのままの検出結果(つまり折目線であるという判定結果のまま)とし、表面と裏面の両方で折目線と検出されていた箇所が重なっていないグループは検出結果を修正する(つまり折目線では無いという判定結果に変える)。   In the contraction process (step S23), the first correction is performed on a group basis for the mirror-finished process. Specifically, the group where the fold line is detected on both the front and back surfaces is the same as the detection result (that is, the determination result that it is a crease line). The detection result is corrected for a group in which the fold line and the detected part do not overlap each other (that is, the determination result is changed to a determination result indicating that the fold line is not present).

例えば、鏡面処理の済んだものが図12とすると、表面のグループAは裏面のグループF,H、表面のグループBは裏面のグループI,J,K、表面のグループCは裏面のグループJ、表面のグループEは裏面のグループLと重なっているので、これらのグループは折目線であるという判定結果を変えない。他方、グループDとGは重なるグループが見つからないため折目線では無いという判定結果に変える。すなわち、図12に示す結果は、収縮処理により、図13に示す結果に補正される。   For example, if the mirror-finished surface is FIG. 12, the front surface group A is the back surface groups F and H, the front surface group B is the back surface groups I, J, and K, the front surface group C is the back surface group J, Since the front surface group E overlaps the rear surface group L, the determination result that these groups are crease lines is not changed. On the other hand, the groups D and G are changed to a determination result that they are not crease lines because no overlapping group is found. That is, the result shown in FIG. 12 is corrected to the result shown in FIG. 13 by the contraction process.

膨張処理(ステップS24)では、収縮処理が済んだものに対して、画素単位で第2の補正を行う。具体的には、表面および裏面のいずれか一方で折目線と検出されていた箇所があれば、それは両面で折目線が検出されたものと補正する。例えば、収縮処理の済んだものが図13とした場合、膨張処理で図14に示すように補正される。   In the expansion process (step S24), the second correction is performed on a pixel-by-pixel basis for the processed contraction process. Specifically, if there is a part that has been detected as a crease line on either the front surface or the back surface, it is corrected that the crease line has been detected on both sides. For example, when the contraction process is completed as shown in FIG. 13, the expansion process corrects as shown in FIG.

以上説明したように、本実施の形態によれば、検出部14は、読取媒体の第1面および第2面の読取画像の折目線をそれぞれ検出し、補正部15は、第1面の読取画像の折目線検出結果と第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、第1面および第2面の読取画像の折目線検出結果を補正することとしたので、折目線そっくりなものを折目線と誤検出することを防止でき、読取画像の折目線の検出結果を向上させることが可能となる。   As described above, according to the present embodiment, the detection unit 14 detects the crease lines of the read images on the first surface and the second surface of the reading medium, and the correction unit 15 reads the first surface. The crease line detection result of the first surface and the second surface is compared by comparing the crease line detection result of the image and the crease line detection result of the read image of the second surface using the geometric characteristics of the crease line. Therefore, it is possible to prevent erroneous detection of a crease line-like object as a crease line, and to improve the detection result of the crease line of the read image.

また、補正部15は、第1面の読取画像の折目線検出結果と第2面の読取画像の折目線検出結果とを比較する場合には、水平または垂直方向に鏡面関係を有する位置の結果同士を比較することとしたので、折目線が持つ幾何学的な特徴を利用した比較が可能になる。   Further, when the correction unit 15 compares the crease line detection result of the read image on the first surface with the crease line detection result of the read image on the second surface, the result of the position having a mirror surface relationship in the horizontal or vertical direction. Since the comparison is made, it is possible to make a comparison using the geometric features of the crease line.

また、水平もしくは垂直方向に鏡面関係とする向きは、読取媒体と読取画像の天地の状態によって決定することとしたので、同一の折目線を正しく比較することが可能になる。   In addition, since the direction having a mirror-like relationship in the horizontal or vertical direction is determined by the top and bottom state of the reading medium and the read image, the same crease line can be correctly compared.

また、補正部15は、第1面の読取画像の折目線検出結果と第2面の読取画像の折目線検出結果を比較する場合には、折目線として検出された箇所が連続する領域を最小単位とすることとしたので、折目線が持つ幾何学的な特徴を利用した比較の精度を高めることが可能となる。   Further, when comparing the crease line detection result of the read image on the first surface and the crease line detection result of the read image on the second surface, the correction unit 15 minimizes an area where the portions detected as crease lines are continuous. Since the unit is used, it is possible to improve the accuracy of comparison using the geometric features of the crease line.

また、補正部15は、第1面の読取画像の折目線検出結果と第2面の読取画像の折目線検出結果のうち、両面で折目線が検出されない場合は、両面とも折目線が検出されなかったものと補正する収縮処理を実行することとしたので、折目線の過検出を補正することが可能となる。   Further, the correction unit 15 detects the crease line on both sides when the crease line detection result on the first surface and the crease line detection result on the second surface read image are not detected on both sides. Since the contraction process is performed to correct that there is no crease, over-detection of the crease line can be corrected.

また、補正部15は、第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果のうち、少なくとも一方で折目線が検出されている場合は、両面で折目線が検出されたものと補正する膨張処理を実行することとしたので、折目線の検出不足を補正することが可能となる。   Further, the correction unit 15 folds both sides when a crease line is detected on at least one of the crease line detection result of the read image on the first surface and the crease line detection result on the read image of the second surface. Since the expansion process is performed to correct the detection of the line of sight, it is possible to correct the insufficient detection of the fold line.

また、補正部15は、収縮処理を実行した後に膨張処理を実行することとしたので、より多くの過検出と検出不足を補正することが可能となる。   Further, since the correction unit 15 executes the expansion process after executing the contraction process, it is possible to correct more overdetection and underdetection.

(プログラム)
なお、本発明の画像処理装置は、複数の機器(例えば、ホストコンピュータ、インターフェイス機器、スキャナ、プリンタ等)から構成されるシステムに適用しても、1つの機器から構成される装置(ホストコンピュータ等)に適用しても良い。
(program)
Note that the image processing apparatus according to the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a scanner, a printer, and the like). ) May be applied.

また、本発明の目的は、上述した画像処理装置の機能を実現するソフトウエアのプログラムコードを記録した記録媒体を、システムまたは装置に供給し、そのシステムまたは装置のコンピュータ(または、CPU、MPU、DSP)が記録媒体に格納されたプログラムコードを実行することによっても達成することが可能である。この場合、記録媒体から読み出されたプログラムコード自体が前述した画像処理装置の機能を実現することになり、そのプログラムコードまたはそのプログラムを記憶した記録媒体は本発明を構成することになる。プログラムコードを供給するための記録媒体としては、例えば、FD、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリ、ROMなどの光記録媒体、磁気記録媒体、光磁気記録媒体、半導体記録媒体を使用することができる。   Another object of the present invention is to supply a recording medium recording a program code of software for realizing the functions of the above-described image processing apparatus to the system or apparatus, and the computer of the system or apparatus (or CPU, MPU, It can also be achieved by the DSP) executing the program code stored in the recording medium. In this case, the program code read from the recording medium itself realizes the functions of the image processing apparatus described above, and the program code or the recording medium storing the program constitutes the present invention. Examples of the recording medium for supplying the program code include an FD, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory, an optical recording medium such as a ROM, and a magnetic recording medium. A magneto-optical recording medium or a semiconductor recording medium can be used.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した画像処理装置の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した画像処理装置の機能が実現される場合も含まれること言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the image processing apparatus described above are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. However, it goes without saying that a case where the function of the image processing apparatus described above is realized by performing part or all of the actual processing.

また、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した画像処理装置の機能が実現される場合も含まれることは言うまでもない。   In addition, after the program code read from the recording medium is written in a memory provided in a function expansion board inserted in the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the above-described functions of the image processing apparatus are realized by the processing.

1 画像処理装置
11 読取部
12 出力部
13 操作部
14 検出部
15 補正部
16 記録部
17 制御部
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 11 Reading part 12 Output part 13 Operation part 14 Detection part 15 Correction part 16 Recording part 17 Control part

特開2002−77625号公報JP 2002-77625 A 特許第3925851号公報Japanese Patent No. 3925851

Claims (9)

読取媒体を光学的に読み取って得られた読取画像の折目線を検出する画像処理装置であって、
前記読取媒体の第1面の読取画像の折目線検出結果と、前記読取媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、前記第1面および前記第2面の読取画像の折目線検出結果を補正する補正手段を備えたことを特徴とする画像処理装置。
An image processing apparatus for detecting a crease line of a read image obtained by optically reading a reading medium,
The crease line detection result of the read image on the first surface of the read medium is compared with the crease line detection result of the read image on the second surface of the read medium using a geometric feature of the crease line, and An image processing apparatus comprising correction means for correcting a crease line detection result of a read image on the first surface and the second surface.
前記補正手段は、前記第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果とを比較する場合には、水平または垂直方向に鏡面関係を有する位置の結果同士を比較することを特徴とする請求項1に記載の画像処理装置。   When the correction means compares the crease line detection result of the read image of the first surface and the crease line detection result of the read image of the second surface, the result of the position having a mirror surface relationship in the horizontal or vertical direction. The image processing apparatus according to claim 1, wherein the image processing apparatuses compare each other. 前記水平もしくは垂直方向に鏡面関係とする向きは、前記読取媒体と前記読取画像の天地の状態によって決定されることを特徴とする請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein an orientation having a mirror-like relationship in the horizontal or vertical direction is determined by a top and bottom state of the reading medium and the read image. 前記補正手段は、前記第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果を比較する場合には、折目線として検出された箇所が連続する領域を最小単位とすることを特徴とする請求項1〜請求項3のいずれか1つに記載の画像処理装置。   When the crease line detection result of the read image of the first surface and the crease line detection result of the read image of the second surface are compared, the correction unit minimizes an area where the portions detected as crease lines are continuous. The image processing apparatus according to claim 1, wherein the image processing apparatus is a unit. 前記補正手段は、前記第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果のうち、両面で折目線が検出されない場合は、両面とも折目線が検出されなかったものと補正する収縮処理を実行することを特徴とする請求項1〜請求項4のいずれか1つに記載の画像処理装置。   The correction means detects a crease line on both sides when the crease line detection result of the read image of the first surface and the crease line detection result of the read image of the second surface are not detected on both sides. The image processing apparatus according to claim 1, wherein a contraction process for correcting that there is no image is executed. 前記補正手段は、前記第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果のうち、少なくとも一方で折目線が検出されている場合は、両面で折目線が検出されたものと補正する膨張処理を実行することを特徴とする請求項1〜請求項5のいずれか1つに記載の画像処理装置。   The correcting means is configured to fold lines on both sides when a crease line is detected on at least one of the crease line detection result of the read image on the first surface and the crease line detection result on the read image on the second surface. The image processing apparatus according to claim 1, wherein an expansion process is performed to correct the detected image. 前記補正手段は、前記第1面の読取画像の折目線検出結果と前記第2面の読取画像の折目線検出結果のうち、両面で折目線が検出されない場合は、両面とも折目線が検出されなかったものと補正する収縮処理を実行した後、少なくとも一方の面で折目線が検出されている場合は、両面で折目線が検出されたものと補正する膨張処理を実行することを特徴とする請求項1〜請求項4のいずれか1つに記載の画像処理装置。   The correction means detects a crease line on both sides when the crease line detection result of the read image of the first surface and the crease line detection result of the read image of the second surface are not detected on both sides. After performing the contraction process for correcting that there is no crease line, if a crease line is detected on at least one surface, an expansion process is performed to correct that the crease line is detected on both sides. The image processing apparatus according to claim 1. 読取媒体を光学的に読み取って得られた読取画像の折目線を検出する画像処理方法であって、
前記読取媒体の第1面の読取画像の折目線検出結果と、前記読取り媒体の第2面の読取画像の折目線検出結果とを折目線の幾何学的な特徴を利用して比較し、前記第1面および前記第2面の読取画像の折目線検出結果を補正する補正工程を含むことを特徴とする画像処理方法。
An image processing method for detecting a crease line of a read image obtained by optically reading a reading medium,
The crease line detection result of the read image on the first surface of the read medium is compared with the crease line detection result of the read image on the second surface of the read medium using a crease line geometric feature, An image processing method comprising: a correction step of correcting a crease line detection result of a read image on the first surface and the second surface.
請求項1〜請求項7のいずれか1つに記載の画像処理装置の各手段としてコンピュータを機能させることを特徴とするコンピュータが実行可能なプログラム。   A computer-executable program for causing a computer to function as each unit of the image processing apparatus according to any one of claims 1 to 7.
JP2009298865A 2009-12-28 2009-12-28 Image processor, image processing method, and program by which computer executes Pending JP2011139371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009298865A JP2011139371A (en) 2009-12-28 2009-12-28 Image processor, image processing method, and program by which computer executes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009298865A JP2011139371A (en) 2009-12-28 2009-12-28 Image processor, image processing method, and program by which computer executes

Publications (1)

Publication Number Publication Date
JP2011139371A true JP2011139371A (en) 2011-07-14

Family

ID=44350327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009298865A Pending JP2011139371A (en) 2009-12-28 2009-12-28 Image processor, image processing method, and program by which computer executes

Country Status (1)

Country Link
JP (1) JP2011139371A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019087957A (en) * 2017-11-10 2019-06-06 セイコーエプソン株式会社 Reading device, image processing program, and image production method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019087957A (en) * 2017-11-10 2019-06-06 セイコーエプソン株式会社 Reading device, image processing program, and image production method

Similar Documents

Publication Publication Date Title
JP3840471B2 (en) Document reading apparatus and image forming apparatus having the same
JP6288521B2 (en) Image processing device
KR100788444B1 (en) Log data recording device and log data recording method
JP6885111B2 (en) Image processing equipment and image forming equipment
JP4498266B2 (en) Image forming apparatus and control method thereof
JP5850295B2 (en) Image reading apparatus, image forming apparatus, and program
US8681385B2 (en) Image processing apparatus
US20150116788A1 (en) Image processing apparatus, controlling method thereof, and program
JP2021114653A (en) Image processing device and image processing method
US20150058798A1 (en) Image processing apparatus, image processing method, and storage medium
US10834281B2 (en) Document size detecting by matching between image of entire document and read size image
JP2011139371A (en) Image processor, image processing method, and program by which computer executes
US11233911B2 (en) Image processing apparatus and non-transitory computer readable medium for image processing
US9179036B2 (en) Image processing apparatus corresponding to a plurality of documents on a document plate, method for controlling the same, and program
JP4168957B2 (en) Image processing program and apparatus
JP2006072506A (en) Photographic processor
JP2006262535A (en) Document reader and image forming apparatus comprising same
US20160094747A1 (en) Power supply control device and method, image display apparatus, image forming apparatus, and non-transitory computer readable medium
JP2007049603A (en) Image processing apparatus, image forming apparatus, image processing method and program
JP2007174479A (en) Read control system
JP2006325260A (en) Image forming system
JP6876917B2 (en) Original size detection device, original size detection program and image processing system
JP2018173839A (en) Image processing device, processing method, and program
JP4803243B2 (en) Image processing apparatus and image processing program
JP2009100099A (en) Image reading apparatus