JP2013061839A - Image processor, image processing method, image forming device and image processing program - Google Patents

Image processor, image processing method, image forming device and image processing program Download PDF

Info

Publication number
JP2013061839A
JP2013061839A JP2011200326A JP2011200326A JP2013061839A JP 2013061839 A JP2013061839 A JP 2013061839A JP 2011200326 A JP2011200326 A JP 2011200326A JP 2011200326 A JP2011200326 A JP 2011200326A JP 2013061839 A JP2013061839 A JP 2013061839A
Authority
JP
Japan
Prior art keywords
ruled line
corner
image
feature amount
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.)
Withdrawn
Application number
JP2011200326A
Other languages
Japanese (ja)
Inventor
Masaru Sekiguchi
優 関口
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 JP2011200326A priority Critical patent/JP2013061839A/en
Publication of JP2013061839A publication Critical patent/JP2013061839A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image processor capable of recognizing a ruled line corner with various shapes in image processing of reading a form image to recognize ruled lines.SOLUTION: The image processor capable of reading an image having ruled lines with width and length, and a ruled line corner area formed in a corner area of two ruled lines, comprises: ruled line corner area extracting means for extracting the ruled line corner area from the image; feature quantity extracting means for extracting a feature quantity of an image of the ruled line corner area from the image of the ruled line corner area; feature quantity dictionary for holding a feature quantity corresponding to a plurality of corner patterns of the ruled line corner area; and ruled line corner extracting means for comparing the feature quantity extracted by the feature quantity extracting means with the feature quantity of the corner pattern held in the feature quantity dictionary to calculate a coincidence degree, and extracting the corner pattern with a predetermined coincidence degree as the ruled line corner.

Description

本発明は、画像処理装置、画像処理方法、画像形成装置、画像処理プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, an image forming apparatus, and an image processing program.

スキャナ機能を有するMFP機(Multi Function Printer)などの画像処理装置において、表を含む帳票画像を読み取って処理を行う帳票認識処理が知られている。帳票認識処理において、帳票画像から表を形成する罫線を抽出し、ベクトルデータに変換したり、抽出した罫線をデジタルデータ化し、再利用したりする処理が行われる。当該処理を行うため、帳票画像から罫線を抽出する技術が既に公開されている。   In an image processing apparatus such as an MFP (Multi Function Printer) having a scanner function, a form recognition process is known in which a form image including a table is read and processed. In the form recognition process, a ruled line forming a table is extracted from the form image and converted into vector data, or the extracted ruled line is converted into digital data and reused. In order to perform this process, a technique for extracting ruled lines from a form image has already been disclosed.

特許文献1に記載された技術によると、実線からなる罫線と、点線や破線等の非実線からなる罫線とで、異なる方法を用いて罫線を抽出する。実線罫線の場合、帳票画像から黒画素連結矩形を抽出し、罫線候補とする。実線でも罫線が分断されている場合があるため、あらかじめ統合許容パラメータを設定し、複数の黒画素連結矩形で統合許容パラメータの範囲内にあるものを統合し、実線罫線として認識する。非実線罫線の場合、線の種類に固有の長さの線を固有の間隔で固有の規則に従って繋いだパターンであるため、黒画素連結矩形の幅、高さ、及び隣接間距離のヒストグラムをとると、線種に固有の幅、高さ及び距離でピークを示す。このため、隣接した黒画素連結矩形間の距離を計算し、それらの幅、高さ及び距離のヒストグラムを計算し、ピークを示した幅、高さ、距離の黒画素連結矩形を統合し、非実線罫線として認識する。   According to the technique described in Patent Document 1, ruled lines are extracted using different methods for ruled lines made of solid lines and ruled lines made of non-solid lines such as dotted lines and broken lines. In the case of a solid ruled line, a black pixel connected rectangle is extracted from the form image and is set as a ruled line candidate. Since the ruled line may be divided even in the solid line, an integration allowable parameter is set in advance, and a plurality of black pixel connected rectangles within the range of the integration allowable parameter are integrated and recognized as a solid line ruled line. In the case of non-solid ruled lines, since the pattern is a pattern in which lines having a length specific to the line type are connected at a specific interval according to a specific rule, a histogram of the width, height, and distance between adjacent pixels of the black pixel connection rectangle is taken. And peaks at widths, heights and distances specific to the line type. Therefore, the distance between adjacent black pixel connected rectangles is calculated, the histogram of their width, height and distance is calculated, the black pixel connected rectangles of the width, height and distance showing the peak are integrated, Recognized as a solid ruled line.

また、特許文献2に記載された技術によると、元の画像から潰れ気味の二値画像と、掠れ気味の二値画像を生成し、これらを用いて罫線を抽出する。潰れ気味の二値画像から線分候補領域を抽出し、各線分候補領域毎に掠れ気味の二値画像と元画像とを参照し、掠れ気味の二値画像を元画像で補完する処理が行われる。補完処理の結果、線分候補領域内で黒画素の割合が一定値以上である場合、その線分候補領域は実線罫線であると判断される。尚、特許文献2に記載された技術は、実線からなる罫線を抽出することを前提としており、破線や鎖線等の非実線罫線は想定していない。   According to the technique described in Patent Document 2, a collapsed binary image and a blurred binary image are generated from the original image, and ruled lines are extracted using these images. Line segment candidate areas are extracted from the collapsed binary image, and the process is performed for each line segment candidate area, referring to the blurred binary image and the original image, and complementing the blurred binary image with the original image. Is called. If the ratio of black pixels in the line candidate area is equal to or greater than a certain value as a result of the complement processing, it is determined that the line candidate area is a solid ruled line. The technique described in Patent Document 2 is based on the assumption that a ruled line made of a solid line is extracted, and does not assume non-solid line ruled lines such as a broken line and a chain line.

(特許文献1及び2参照)   (See Patent Documents 1 and 2)

しかし、特許文献1の方法では、例えば非実線罫線において、幅、高さ及び距離のヒストグラムを作成し、黒画素連結矩形を罫線として認識する関係上、非実線罫線における罫線と罫線の交点が角丸等で構成されている場合の角部については認識することができない。固有の幅、高さ、距離でピークを示す法則が成り立たないためである。また、特許文献2の方法では、角部を含む領域について二値化画像を生成して、角丸等である角部の罫線を認識することができるものの、実線である罫線を認識することを前提としている。従って、罫線と罫線の交点が角丸等で構成され、なおかつ角部が点線である場合など、様々な形状を持つ角部について認識することができないという問題があった。   However, in the method of Patent Document 1, for example, a histogram of width, height, and distance is created for a non-solid ruled line, and the black pixel connection rectangle is recognized as a ruled line. A corner portion formed by a circle or the like cannot be recognized. This is because the law that shows a peak in a specific width, height, and distance does not hold. In the method of Patent Document 2, a binarized image can be generated for a region including a corner and a corner ruled line such as a rounded corner can be recognized, but a ruled line that is a solid line can be recognized. It is assumed. Therefore, there is a problem that corners having various shapes cannot be recognized, for example, when the intersection of the ruled lines is constituted by rounded corners and the corners are dotted lines.

本発明は、上記の点に鑑みてなされたものであって、帳票画像を読み取って罫線を認識する画像処理において、様々な形状を持つ罫線の角部を認識することのできる画像処理装置、画像処理方法及び画像形成装置、画像処理プログラムの提供を目的とする。   The present invention has been made in view of the above points, and in image processing for recognizing a ruled line by reading a form image, an image processing apparatus and an image capable of recognizing a corner of a ruled line having various shapes It is an object to provide a processing method, an image forming apparatus, and an image processing program.

そこで上記課題を解決するため、本発明の画像処理装置は、幅と長さを有する罫線と、二つの罫線の角部領域に形成される角部罫線領域を有する画像を読み取る画像処理装置において、前記画像から、前記角部罫線領域を抽出する角部罫線領域抽出手段と、前記角部罫線領域の画像から、前記角部罫線領域の画像の特徴量を抽出する特徴量抽出手段と、前記角部罫線領域の複数の角部のパターンに対応した特徴量を保持する特徴量辞書と、前記特徴量抽出手段により抽出された特徴量と、前記特徴量辞書に保持されている前記角部のパターンの特徴量とを比較して一致度を算出し、所定の一致度を有する前記角部のパターンを前記角部罫線として抽出する角部罫線抽出手段と、を有することを特徴とする。   Therefore, in order to solve the above problems, an image processing apparatus of the present invention is an image processing apparatus that reads an image having a ruled line having a width and a length and a corner ruled line area formed in a corner area of two ruled lines. A corner ruled line region extracting unit for extracting the corner ruled line region from the image; a feature amount extracting unit for extracting a feature amount of the image of the corner ruled line region from the image of the corner ruled line region; A feature dictionary that stores feature quantities corresponding to a plurality of corner patterns in the ruled line region, a feature quantity extracted by the feature quantity extraction unit, and a pattern of the corners that is held in the feature dictionary And a corner ruled line extracting means for calculating the degree of coincidence by comparing with the feature amount and extracting the corner pattern having a predetermined degree of coincidence as the corner ruled line.

また、上記問題を解決するため、本発明は、上記画像処理装置における画像処理方法、上記画像処理装置を備える画像形成装置、上記画像処理方法をコンピュータに実行させる画像処理プログラムとしてもよい。   In order to solve the above problem, the present invention may be an image processing method in the image processing apparatus, an image forming apparatus including the image processing apparatus, and an image processing program for causing a computer to execute the image processing method.

本発明によれば、帳票画像を読み取って罫線を認識する画像処理において、様々な形状を持つ罫線の角部を認識することのできる画像処理装置、画像処理方法及び画像処理プログラムを提供することができる。   According to the present invention, it is possible to provide an image processing apparatus, an image processing method, and an image processing program capable of recognizing corner portions of ruled lines having various shapes in image processing for reading a form image and recognizing ruled lines. it can.

画像処理装置1のハードウェア構成図である。2 is a hardware configuration diagram of the image processing apparatus 1. FIG. 角丸罫線の一例である。It is an example of a rounded ruled line. 様々な形状の罫線の例である。It is an example of the ruled line of various shapes. 画像処理部108の機能ブロック図である。3 is a functional block diagram of an image processing unit 108. FIG. 罫線抽出処理の結果表示図である。It is a result display figure of ruled line extraction processing. 罫線領域の詳細を示す図である。It is a figure which shows the detail of a ruled line area | region. 角部罫線領域について説明するための図である。It is a figure for demonstrating a corner part ruled line area | region. 罫線抽出処理後の角丸箇所の拡大図である。It is an enlarged view of the rounded corner part after a ruled line extraction process. 角部罫線領域を示す図である。It is a figure which shows a corner part ruled line area | region. 入力画像における角丸罫線と角部特徴量辞書107とのマッチングイメージを示す図である。It is a figure which shows the matching image with a rounded ruled line in an input image, and the corner | angular part feature-value dictionary. 角丸罫線のパターン例である。It is an example of a rounded ruled line pattern. 入力から出力までの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process from an input to an output. 画像処理部108における処理の流れを示すフローチャートである。3 is a flowchart illustrating a processing flow in an image processing unit. 画像形成装置2のハードウェア構成図である。2 is a hardware configuration diagram of an image forming apparatus 2. FIG.

以下、図面に基づいて本発明の実施の形態を説明する。図1は、画像処理装置1のハードウェア構成図である。尚、以下の説明においては、便宜上、本実施の形態の説明に必要な構成要素が示されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a hardware configuration diagram of the image processing apparatus 1. In the following description, components necessary for the description of the present embodiment are shown for convenience.

(画像処理装置1の構成と機能)
画像処理装置1は、一般的なスキャナ機能を有する装置である。画像処理装置1は、CPU101、スキャナ部102、外部記憶部103、入力画像メモリ部104、表示部105、操作部106、角部特徴量辞書107、画像処理部108、通信制御部109、出力メモリ部113を備える。外部記憶部103は、CD、DVDなどのメディア部111、及びHDD112を備える。通信制御部109は、ネットワーク網110に接続されている。
(Configuration and function of image processing apparatus 1)
The image processing apparatus 1 is an apparatus having a general scanner function. The image processing apparatus 1 includes a CPU 101, a scanner unit 102, an external storage unit 103, an input image memory unit 104, a display unit 105, an operation unit 106, a corner feature quantity dictionary 107, an image processing unit 108, a communication control unit 109, and an output memory. The unit 113 is provided. The external storage unit 103 includes a media unit 111 such as a CD and a DVD, and an HDD 112. The communication control unit 109 is connected to the network 110.

CPU101は、画像処理装置1の制御を行う。スキャナ部102は、セットされた原稿をスキャンする。外部記憶部103は、メディア部111またはHDD112を用いて画像を保持する。入力画像メモリ部104は、スキャナ部102、外部記憶部103または通信制御部109から取得した入力画像を保持する。表示部105は、入力画像メモリ部104に保持された入力画像のプレビュー表示し、またはGUI画面を表示し、GUI画面において操作部106にてユーザ操作が行われる。   The CPU 101 controls the image processing apparatus 1. The scanner unit 102 scans a set document. The external storage unit 103 holds an image using the media unit 111 or the HDD 112. The input image memory unit 104 holds an input image acquired from the scanner unit 102, the external storage unit 103, or the communication control unit 109. The display unit 105 displays a preview of the input image held in the input image memory unit 104 or displays a GUI screen, and a user operation is performed on the operation unit 106 on the GUI screen.

角部特徴量辞書107は、予め罫線の角部の特徴量を辞書として保持する。画像処理部108は、入力画像メモリ部104に保持された入力画像に対し、罫線を抽出し、罫線の角部について角部特徴量辞書107の特徴量とマッチングを行うが、詳細は後述する。画像処理部108は、入力画像が多値画像であった場合に、入力画像から二値画像を生成する。出力メモリ部113は、画像処理部108において処理が行われた罫線についてのデータを保持する。通信制御部109は、ネットワーク網110から入力画像を取り寄せたり、処理結果の情報を配信する。   The corner feature quantity dictionary 107 holds in advance the feature quantities of the corners of the ruled lines as a dictionary. The image processing unit 108 extracts ruled lines from the input image held in the input image memory unit 104 and matches the corners of the ruled lines with the feature amounts of the corner feature amount dictionary 107. Details will be described later. The image processing unit 108 generates a binary image from the input image when the input image is a multi-valued image. The output memory unit 113 holds data on ruled lines processed by the image processing unit 108. The communication control unit 109 obtains an input image from the network 110 and distributes processing result information.

(画像処理装置1の処理の概要)
図1において、スキャナ部102、外部記憶部103または通信制御部109から入力された画像が入力画像メモリ部104に保持され、画像処理部108に送られる。画像処理部108では、縦の罫線及び横の罫線が抽出され、罫線の角部である角部罫線領域が抽出される。画像処理部108において、角部罫線領域内の角部の罫線の特徴量が算出される。以下、罫線の角部が角丸で構成されている場合の角部を角丸罫線とする。
(Outline of processing of image processing apparatus 1)
In FIG. 1, an image input from the scanner unit 102, the external storage unit 103, or the communication control unit 109 is held in the input image memory unit 104 and sent to the image processing unit 108. In the image processing unit 108, vertical ruled lines and horizontal ruled lines are extracted, and corner ruled line regions that are corners of the ruled lines are extracted. In the image processing unit 108, the feature amount of the corner ruled line in the corner ruled line region is calculated. Hereinafter, the corner portion when the corner portion of the ruled line is composed of rounded corners is referred to as a rounded ruled line.

角部特徴量辞書107には、あらかじめ縦罫線及び横罫線の交点である角部について、様々なパターンの角丸罫線についての特徴量が算出され、辞書として保持されている。画像処理部108において算出された特徴量と、角部特徴量辞書107に保持された特徴量の辞書との比較が行われる。所定の一致度を持つ特徴量を角部特徴量辞書107が保持していた場合、その特徴量に対応する角部のパターンが、角部候補領域内の角丸罫線であると認識される。認識された角丸罫線のデジタルデータと画像処理部108で抽出された縦罫線及び横罫線のデジタルデータが出力メモリ部113に蓄積され、必要に応じて再利用される。   In the corner feature quantity dictionary 107, the feature quantities for the rounded ruled lines of various patterns are calculated in advance and stored as a dictionary for the corners that are the intersections of the vertical ruled lines and the horizontal ruled lines. The feature amount calculated by the image processing unit 108 is compared with the feature amount dictionary held in the corner feature amount dictionary 107. When the corner feature quantity dictionary 107 holds a feature quantity having a predetermined degree of coincidence, the corner pattern corresponding to the feature quantity is recognized as a rounded ruled line in the corner candidate area. The recognized rounded ruled line digital data and the vertical and horizontal ruled line digital data extracted by the image processing unit 108 are accumulated in the output memory unit 113 and reused as necessary.

角丸罫線について、角部特徴量辞書107に角丸罫線の特徴量を辞書として保持し、入力画像の角部と比較して角丸罫線を認識することで、様々な形状の角丸罫線を取得することができる。   With respect to the rounded ruled lines, the feature values of the rounded ruled lines are stored in the corner feature quantity dictionary 107 as a dictionary, and the rounded ruled lines of various shapes are recognized by comparing the rounded ruled lines with the corners of the input image. Can be acquired.

(本実施例の対象とする罫線の一例)
本実施例の対象とする罫線について説明する。図2は、角丸罫線の一例である。帳票画像等においてよく見られる表のうち、角の丸い表について示す。本実施例では、このような表における直線状の罫線と、角部の角丸罫線とに分けて抽出する。
(An example of ruled lines targeted by this embodiment)
A ruled line that is an object of this embodiment will be described. FIG. 2 is an example of a rounded ruled line. A table with rounded corners among tables often found in a form image or the like will be described. In the present embodiment, extraction is performed by dividing into a linear ruled line in such a table and a rounded ruled line at the corner.

図3は、様々な形状の罫線の例である。本実施例では、図2の一般的な角丸罫線だけでなく、b)の破線罫線における角丸部分も含め、これらすべての罫線について、角部も含めて正確に抽出することができる。尚、本願の抽出可能とする罫線については、この範囲に限定されるものではなく、多種多様にわたる角部を持つ罫線において対応が可能である。   FIG. 3 shows examples of ruled lines having various shapes. In the present embodiment, not only the general rounded ruled line in FIG. 2 but also the rounded part in the broken line ruled line b) can be accurately extracted including all corners. It should be noted that the ruled lines that can be extracted in the present application are not limited to this range, and can be dealt with in ruled lines having a wide variety of corners.

尚、角部が縦罫線及び横罫線で構成される場合は、本実施例の対象外である。   In addition, when a corner | angular part is comprised by a vertical ruled line and a horizontal ruled line, it is out of the object of a present Example.

(画像処理部108の構成と機能)
次に、画像処理部108の機能について説明する。図4は、画像処理部108の機能ブロック図である。
(Configuration and function of the image processing unit 108)
Next, functions of the image processing unit 108 will be described. FIG. 4 is a functional block diagram of the image processing unit 108.

画像処理部108は、画像処理装置1において入力された画像に対し処理を行う。画像処理装置108は、処理制御部201、画像入力部207、結果出力部208を備える。処理制御部201は、二値化処理部202、罫線抽出処理部203、角部罫線領域抽出部204、特徴量抽出部205、マッチング部206を備える。   The image processing unit 108 performs processing on the image input in the image processing apparatus 1. The image processing apparatus 108 includes a processing control unit 201, an image input unit 207, and a result output unit 208. The processing control unit 201 includes a binarization processing unit 202, a ruled line extraction processing unit 203, a corner ruled line region extraction unit 204, a feature amount extraction unit 205, and a matching unit 206.

画像入力部207は、入力画像メモリ部104から画像処理部108への入力画像の受け取りを制御する。処理制御部201は、画像入力部207から入力された入力画像に対し、処理を実行する。結果出力部208は、処理制御部201において抽出された縦罫線及び横罫線、角丸罫線のデジタルデータを出力メモリ部113に出力する。   The image input unit 207 controls reception of an input image from the input image memory unit 104 to the image processing unit 108. The processing control unit 201 performs processing on the input image input from the image input unit 207. The result output unit 208 outputs the digital data of the vertical ruled lines, the horizontal ruled lines, and the rounded ruled lines extracted by the processing control unit 201 to the output memory unit 113.

二値化処理部202は、入力画像が多値画像である場合、入力画像から二値化画像を取得する。罫線抽出処理部203は、入力画像から縦の罫線及び横の罫線を抽出する。角部罫線領域抽出部204は、罫線抽出処理部203において抽出された縦の罫線及び横の罫線から縦の罫線領域及び横の罫線領域を抽出し、これらの罫線領域から角部の領域である角部罫線領域を抽出する。特徴量抽出部は、角部罫線領域抽出部において抽出された角部罫線領域内の入力画像から、所定の方法で特徴量を算出する。マッチング部206は、特徴量抽出部205で抽出された角部罫線領域内の入力画像の特徴量と、角部特徴量辞書107に保持された角部特徴量辞書107との比較を行い、所定の一致度を有する角部特徴量辞書107内の特徴量を選択する。   When the input image is a multi-valued image, the binarization processing unit 202 acquires a binarized image from the input image. The ruled line extraction processing unit 203 extracts vertical ruled lines and horizontal ruled lines from the input image. The corner ruled line area extraction unit 204 extracts the vertical ruled line area and the horizontal ruled line area from the vertical ruled line and the horizontal ruled line extracted by the ruled line extraction processing unit 203, and is a corner area from these ruled line areas. A corner ruled line region is extracted. The feature amount extraction unit calculates a feature amount by a predetermined method from the input image in the corner ruled line region extracted by the corner ruled line region extraction unit. The matching unit 206 compares the feature amount of the input image in the corner ruled line region extracted by the feature amount extraction unit 205 with the corner feature amount dictionary 107 held in the corner feature amount dictionary 107 to obtain a predetermined value. The feature amount in the corner feature amount dictionary 107 having the same degree of matching is selected.

(画像処理部108の処理)
画像入力部207から入力された入力画像に対し、罫線抽出処理部203において縦の罫線及び横の罫線を抽出する罫線抽出処理を行う。罫線の抽出方法については、本出願人が既に提案している特許文献1の技術を用いる。具体的には、実線罫線については入力画像から黒画素連結矩形を抽出し、罫線候補とする。実線でも罫線が分断されている場合があるため、あらかじめ統合許容パラメータを設定し、複数の黒画素連結矩形で統合許容パラメータの範囲内にあるものを統合し、実線罫線として認識する。点線、鎖線等の非実線罫線の場合は、黒画素連結矩形の幅、高さ、隣接距離間のヒストグラムを生成し、ピークを示した幅、高さ、距離の黒画素連結矩形を統合して非実線罫線として認識する。
(Processing of the image processing unit 108)
The ruled line extraction processing unit 203 performs a ruled line extraction process for extracting a vertical ruled line and a horizontal ruled line on the input image input from the image input unit 207. For the ruled line extraction method, the technique of Patent Document 1 already proposed by the present applicant is used. Specifically, for a solid ruled line, a black pixel connected rectangle is extracted from the input image and set as a ruled line candidate. Since the ruled line may be divided even in the solid line, an integration allowable parameter is set in advance, and a plurality of black pixel connected rectangles within the range of the integration allowable parameter are integrated and recognized as a solid line ruled line. In the case of non-solid ruled lines such as dotted lines and chain lines, a histogram between the width, height, and adjacent distance of the black pixel connection rectangle is generated, and the black pixel connection rectangle of the width, height, and distance indicating the peak is integrated. Recognize as a non-solid ruled line.

罫線抽出処理部203において、縦罫線及び横罫線が抽出されると、角部罫線領域抽出部204において縦罫線及び横罫線の座標を求め、それらの座標を罫線領域とする。縦罫線及び横罫線の抽出について、図5に示す。   When the ruled line extraction processing unit 203 extracts the vertical ruled line and the horizontal ruled line, the corner ruled line region extracting unit 204 obtains the coordinates of the vertical ruled line and the horizontal ruled line, and uses these coordinates as the ruled line region. Extraction of the vertical ruled line and the horizontal ruled line is shown in FIG.

(罫線領域)
図5は、罫線抽出処理の結果表示図である。図2で示した角丸罫線の一例のうち、角部を除いた縦罫線Lm及び横罫線Lnを含む罫線が抽出されている。抽出された縦罫線及び横罫線の座標を罫線領域とする。罫線領域は、後述する角部罫線領域を求めるために必要となる。
(Rule area)
FIG. 5 is a result display diagram of the ruled line extraction process. Of the rounded ruled lines shown in FIG. 2, the ruled lines including the vertical ruled lines Lm and the horizontal ruled lines Ln excluding the corners are extracted. The extracted vertical ruled lines and horizontal ruled lines are set as ruled line areas. The ruled line area is necessary for obtaining a corner ruled line area described later.

本実施例では縦罫線の罫線領域と横罫線の罫線領域が直角の位置関係にあることを想定している。縦罫線と横罫線が直線であって、直角の位置関係にある場合、各罫線領域は罫線自体の有する座標と同一である。例えば図5の縦罫線Lmと横罫線Lnの場合、罫線が直線であって直角の位置関係にあるため、各罫線領域は罫線自体の有する座標と同一となる。   In the present embodiment, it is assumed that the ruled line area of the vertical ruled line and the ruled line area of the horizontal ruled line have a right-angle positional relationship. When the vertical ruled line and the horizontal ruled line are straight lines and have a right-angled positional relationship, each ruled line region has the same coordinates as the ruled line itself. For example, in the case of the vertical ruled line Lm and the horizontal ruled line Ln in FIG. 5, the ruled line is a straight line and has a right-angled positional relationship, so that each ruled line region is the same as the coordinates of the ruled line itself.

図6(a)(b)(c)(d)は罫線領域の詳細を示す図である。図6(a)のように縦罫線Lm2と横罫線Ln2が直角の位置関係にない場合、罫線領域は罫線のうち一辺(例えば図6(a)の場合Lm2)を基準に、直角の位置関係になるよう構成する。図6(b)のように、直線罫線であれば罫線の両端を含み、かつ基準となる一辺の罫線と直角の位置になるような矩形の領域を構成する。図6(a)の罫線について罫線領域を図示したのが図6(c)である。罫線領域Rm2と罫線領域Rn2が直角の位置関係になるよう構成している。尚、ここでは図6(b)の矩形を外接矩形とする。   6A, 6B, 6C, and 6D are diagrams showing details of the ruled line region. When the vertical ruled line Lm2 and the horizontal ruled line Ln2 are not in a right-angle positional relationship as shown in FIG. 6A, the ruled line area is in a right-angled positional relationship based on one side of the ruled line (for example, Lm2 in FIG. 6A). Configure to be As shown in FIG. 6B, in the case of a straight ruled line, a rectangular region including both ends of the ruled line and at a position perpendicular to the reference ruled line is formed. FIG. 6C shows a ruled line area for the ruled line in FIG. The ruled line region Rm2 and the ruled line region Rn2 are configured to have a right-angled positional relationship. Here, the rectangle in FIG. 6B is a circumscribed rectangle.

罫線が波線であるなど、直線でない場合であっても、罫線の外接矩形が罫線領域として抽出される。この場合、罫線領域は罫線を構成する画素のすべてを含むよう構成される。図6(d)は、罫線が波線である場合の罫線領域の構成例である。尚、ここで、罫線の外接矩形とは、罫線に外接している矩形である。   Even if the ruled line is not a straight line such as a wavy line, the circumscribed rectangle of the ruled line is extracted as the ruled line region. In this case, the ruled line region is configured to include all of the pixels constituting the ruled line. FIG. 6D is a configuration example of a ruled line region when the ruled line is a wavy line. Here, the circumscribed rectangle of the ruled line is a rectangle circumscribed by the ruled line.

(角部罫線領域)
罫線抽出処理部203において求めた罫線領域から、角部罫線領域を抽出する。図7は、角部罫線領域について説明するための図である。
(Corner ruled line area)
A corner ruled line region is extracted from the ruled line region obtained by the ruled line extraction processing unit 203. FIG. 7 is a diagram for explaining a corner ruled line region.

縦罫線の罫線領域と横罫線の罫線領域が連結せず、かつ縦罫線の罫線領域と横罫線の罫線領域の間隔が一定値に収まっている場合、角部に角丸罫線が存在する可能性が高いため、以下の手順で角部罫線領域を抽出する。   If the ruled line area of the vertical ruled line and the ruled line area of the horizontal ruled line are not connected, and the interval between the ruled line area of the vertical ruled line and the ruled line area of the horizontal ruled line is within a certain value, a rounded ruled line may exist at the corner. Therefore, the corner ruled line region is extracted by the following procedure.

図5において縦罫線及び横罫線が抽出されるが、角部の罫線については抽出されずに残っている。そのため、罫線領域から角丸部分を含む領域である角部罫線領域を求める。図5において抽出された罫線に対して角部罫線領域を求めた図が図7である。本実施例の場合、C1、C2、C3、C4が角部罫線領域である。   In FIG. 5, vertical ruled lines and horizontal ruled lines are extracted, but the corner ruled lines remain without being extracted. Therefore, a corner ruled line region that is a region including a rounded corner is obtained from the ruled line region. FIG. 7 shows a corner ruled line area obtained for the ruled line extracted in FIG. In this embodiment, C1, C2, C3, and C4 are corner ruled line regions.

角部罫線領域の求め方について説明する。図8は、罫線抽出処理後の角丸箇所の拡大図である。本実施例における角丸箇所は、縦罫線領域Rmの点A、B、横罫線領域RnのE、Fに囲まれた箇所である。   A method for obtaining the corner ruled line region will be described. FIG. 8 is an enlarged view of rounded corners after the ruled line extraction process. The rounded corners in the present embodiment are places surrounded by points A and B in the vertical ruled line region Rm and E and F in the horizontal ruled line region Rn.

図9において、角部罫線領域を示す。角部罫線領域C1は、点A及び点Eの座標から求めることができる矩形である。角部罫線領域に、角部の角丸罫線Mが示されている。この角丸罫線について、角部特徴量辞書107に保持されている角部特徴量辞書107との比較を行い、角部特徴量辞書107の角丸罫線と一致する角丸罫線を本実施例における角丸罫線とみなす処理を行う。   In FIG. 9, a corner ruled line region is shown. The corner ruled line region C1 is a rectangle that can be obtained from the coordinates of the points A and E. Round corner ruled lines M at the corners are shown in the corner ruled line region. This rounded ruled line is compared with the corner feature value dictionary 107 held in the corner feature value dictionary 107, and a rounded ruled line that matches the rounded ruled line in the corner feature value dictionary 107 is used in this embodiment. Performs processing that is regarded as a rounded ruled line.

(マッチングの概要)
角部罫線領域内における入力画像の角丸罫線と、角部特徴量辞書107との比較について、図10においてイメージ図を示す。図10は、入力画像の角丸罫線と角部特徴量辞書107の角丸罫線とのマッチングイメージを示す図である。
(Overview of matching)
FIG. 10 shows an image diagram of a comparison between the rounded ruled line of the input image in the corner ruled line area and the corner feature quantity dictionary 107. FIG. 10 is a diagram showing a matching image between the rounded ruled line of the input image and the rounded ruled line of the corner feature quantity dictionary 107.

図10(a)において、角部特徴量辞書107は様々な角丸罫線の特徴量を角部特徴量辞書として保持している。図10(a)ではわかりやすく角丸罫線の画素データの例を示しているが、実際に角部特徴量辞書107に保持するのは画素データではなく、これらの特徴量を数値で示した値である。   In FIG. 10A, a corner feature quantity dictionary 107 holds feature quantities of various rounded ruled lines as a corner feature quantity dictionary. FIG. 10A shows an example of pixel data of a rounded ruled line for easy understanding. However, what is actually held in the corner feature quantity dictionary 107 is not pixel data, and values indicating these feature quantities in numerical values. It is.

図10(b)において、角部特徴量辞書107と入力画像中の角丸罫線とのマッチングを例示する。入力画像についても、角部特徴量辞書107と同様に特徴量を算出し、図に示すイメージで特徴量同士の比較を行い、一致する角部特徴量辞書107内の角丸罫線を入力画像の角丸罫線として抽出する。本図においてマッチングを画素データ上で行うよう表示しているが、実際は画素データ上での比較は行わず、特徴量である数値の比較で一致度を算出する。   FIG. 10B illustrates an example of matching between the corner feature quantity dictionary 107 and a rounded ruled line in the input image. As for the input image, the feature amount is calculated in the same manner as the corner feature amount dictionary 107, the feature amounts are compared with each other in the image shown in the figure, and the rounded ruled line in the corner feature amount dictionary 107 is matched with the input image. Extract as a rounded ruled line. Although matching is shown on the pixel data in this figure, the degree of coincidence is calculated by comparing numerical values that are feature amounts without actually comparing pixel data.

図4に戻る。角部罫線領域内の入力画像には、縦罫線及び横罫線の交点である角部が示されている。特徴量抽出部205において、角部罫線領域内の入力画像が有する特徴量を算出する。特徴量抽出部205において算出した特徴量と、角部特徴量辞書107において保持している特徴量の辞書との比較がマッチング部206で行われ、角部特徴量辞書107が保持する特徴量の中で所定の一致度を有する角丸罫線の特徴量が選択され、角部罫線領域内の角丸罫線であると認識される。罫線抽出処理部203で抽出された縦罫線及び横罫線のデジタルデータ、マッチング部206で認識された角丸罫線のデジタルデータが、結果出力部208で所定の出力装置に出力される。   Returning to FIG. The input image in the corner ruled line area shows a corner that is the intersection of the vertical ruled line and the horizontal ruled line. The feature amount extraction unit 205 calculates the feature amount of the input image in the corner ruled line region. The matching unit 206 compares the feature amount calculated in the feature amount extraction unit 205 with the feature amount dictionary held in the corner feature amount dictionary 107, and the feature amount held in the corner feature amount dictionary 107 is compared. Among them, a feature amount of a rounded ruled line having a predetermined degree of coincidence is selected and recognized as a rounded ruled line in the corner ruled line region. The digital data of the vertical ruled lines and horizontal ruled lines extracted by the ruled line extraction processing unit 203 and the digital data of rounded ruled lines recognized by the matching unit 206 are output to a predetermined output device by the result output unit 208.

画像処理部108において、角部罫線領域を抽出し、角部特徴量辞書107にあらかじめ保持した特徴量の辞書との比較を行い、角丸罫線を認識することで、様々な形状の角丸罫線について認識することができる。   In the image processing unit 108, corner ruled line regions are extracted, compared with a feature value dictionary stored in advance in the corner feature value dictionary 107, and rounded ruled lines of various shapes are recognized by recognizing the rounded ruled lines. Can be recognized about.

(角部特徴量辞書107)
次に、角部特徴量辞書107について説明する。角部特徴量辞書107には、角部の罫線を特定する角部罫線特定データと、角部の罫線の特徴量とが対応付けられて格納されている。角部罫線特定データとは、例えば角部の罫線が円を四分割した場合の円弧であるときは、罫線を特定するデータは円の半径r、中心角θ(この場合は90度)である。また例えば、角部の罫線が楕円を四分割した場合の楕円の円弧であるときは、角部罫線特定データは、長軸の半径の長さra、短軸の半径の長さrb、中心角θ(この場合は90度)である。これらは一例であり、角部罫線特定データは、角部の罫線を特定することのできるあらゆるデータを含む。
(Corner feature value dictionary 107)
Next, the corner feature quantity dictionary 107 will be described. The corner feature quantity dictionary 107 stores corner ruled line specifying data for specifying the corner ruled lines and the feature values of the corner ruled lines in association with each other. The corner ruled line specifying data is, for example, when the ruled line at the corner is an arc when the circle is divided into four, the data specifying the ruled line is the radius r of the circle and the central angle θ (90 degrees in this case). . Further, for example, when the corner ruled line is an elliptical arc when the ellipse is divided into four, the corner ruled line specifying data includes the major axis radius length ra, the minor axis radius length rb, and the central angle. θ (90 degrees in this case). These are examples, and the corner ruled line specifying data includes any data that can specify the ruled line at the corner.

角部特徴量辞書107は、角部罫線特定データと、角部の特徴量とを対応させて格納している。角部の特徴量の算出方法については後述する。   The corner feature amount dictionary 107 stores corner ruled line specifying data and corner portion feature amounts in association with each other. A method for calculating the corner feature amount will be described later.

(特徴量の算出)
角部特徴量辞書107は、様々な角丸罫線の特徴量を辞書として保持する。図11(a)に、角丸罫線のパターン例を示す。例えばこれらの角丸罫線について特徴量を算出し、特徴量を辞書として保持する。
(Calculation of feature value)
The corner feature amount dictionary 107 holds feature amounts of various rounded ruled lines as a dictionary. FIG. 11A shows an example of a rounded ruled line pattern. For example, feature quantities are calculated for these rounded ruled lines, and the feature quantities are stored as a dictionary.

特徴量の算出については、出願人が特許文献3において公開している、多層方向ヒストグラム法を用いる。具体的には、まず角部罫線領域を16分割する。次に、罫線を構成する画素のうち、白画素(背景画素)に隣接する画素を角丸罫線の輪郭画素とみなし、輪郭画素に8方向の方向コードを付ける。角部罫線領域の枠の各辺から対抗する辺に向かって角部罫線領域を横方向に走査し、白画素の次に出現する輪郭画素の方向コードを検出し、その方向コードが走査線上で何番目に検出されたかを記憶する。縦方向にも同様の処理を行う。   For the calculation of the feature amount, the multilayer direction histogram method disclosed in Patent Document 3 by the applicant is used. Specifically, the corner ruled line region is first divided into 16 parts. Next, among the pixels constituting the ruled line, the pixel adjacent to the white pixel (background pixel) is regarded as a contour pixel of the rounded ruled line, and eight direction codes are attached to the contour pixel. The corner ruled line region is scanned laterally from each side of the frame of the corner ruled line region to the opposite side, and the direction code of the contour pixel appearing next to the white pixel is detected, and the direction code is detected on the scan line. It memorizes what number was detected. Similar processing is performed in the vertical direction.

角部罫線領域の分割領域毎に、横方向及び縦方向の2層の層別の方向コードのヒストグラムを求め、その各ヒストグラム値を成分とするベクトルを角丸罫線の特徴量とする。本実施形態の場合、角部罫線領域を16分割し、8方向の方向コードを2層に分けてヒストグラムを算出しているので、全体として256次元(=16×8×2)の特徴ベクトルが抽出される。尚、分割数及び方向数、層数は任意とする。   For each divided area of the corner ruled line area, a histogram of direction codes for two layers in the horizontal direction and the vertical direction is obtained, and a vector having each histogram value as a component is used as a feature quantity of the rounded ruled line. In the case of this embodiment, the corner ruled line region is divided into 16 and the direction codes in 8 directions are divided into 2 layers to calculate the histogram, so that 256-dimensional (= 16 × 8 × 2) feature vectors as a whole are obtained. Extracted. The number of divisions, the number of directions, and the number of layers are arbitrary.

辞書として保持する角丸罫線のパターンについて、それぞれ特徴量を算出し、この特徴量を辞書として角部特徴量辞書107に保持する。また、入力画像についても、角部罫線領域に含まれる角丸罫線について、同様の方法で特徴量を算出する。   A feature amount is calculated for each rounded ruled line pattern held as a dictionary, and the feature amount is held in the corner feature amount dictionary 107 as a dictionary. For the input image, the feature amount is calculated by the same method for the rounded ruled line included in the corner ruled line region.

(特徴量のマッチング)
入力画像の角丸罫線と、角部特徴量辞書107とのマッチングは、それぞれから算出された特徴量の数値の比較によって行われる。マッチングは、上述の特許文献3、及び出願人の出願による特許文献5の技術を用いて行う。各々の特徴量を特徴ベクトルとし、特徴ベクトル間の距離が算出され、この距離が角部特徴量辞書107内の比較対象である特徴ベクトルに対して一定値(例えば90%)以上の一致度を有する場合、両罫線は一致するとみなす。一致した特徴量に対応する角部特徴量辞書107の角丸罫線を、入力画像の角丸罫線とみなして出力する。
(Feature matching)
Matching between the rounded ruled line of the input image and the corner feature quantity dictionary 107 is performed by comparing the numerical values of the feature quantities calculated from the respective corners. Matching is performed using the technique of the above-mentioned patent document 3 and the patent document 5 filed by the applicant. Each feature amount is defined as a feature vector, and a distance between the feature vectors is calculated. A degree of coincidence of the distance with respect to a feature vector to be compared in the corner feature amount dictionary 107 is a certain value (for example, 90%) or more. If so, both ruled lines are considered to match. A rounded ruled line in the corner feature value dictionary 107 corresponding to the matched feature value is regarded as a rounded ruled line of the input image and output.

マッチングに関しては、本出願人による出願である特許文献6に開示された技術を用いることもできる。即ち、角部特徴量辞書107について特徴ベクトルでクラスタリングし、入力画像の角丸罫線の特徴ベクトルと各クラスタの代表とのマッチング処理を行い、最も高い一致度を示した代表を持つクラスタを有効クラスタとする。次に有効クラスタ内の各特徴ベクトルと、入力画像の角丸罫線の特徴ベクトルとの距離を算出し、最も高い一致度を示し、かつ一定値以上の一致度を有する特徴量について、入力画像中の角丸罫線に対応する角丸罫線であるとみなし、出力する。角部特徴量辞書107に保持した特徴量が膨大である場合、あらかじめクラスタリングしておくことで、マッチング時にコンピュータにかかる負荷を軽減できる。   Regarding the matching, the technique disclosed in Patent Document 6, which is an application by the present applicant, can also be used. That is, the corner feature dictionary 107 is clustered with feature vectors, the feature vector of the rounded ruled line of the input image is matched with the representative of each cluster, and the cluster with the representative that shows the highest degree of matching is the effective cluster. And Next, the distance between each feature vector in the effective cluster and the feature vector of the rounded ruled line of the input image is calculated, and the feature amount indicating the highest matching degree and having a matching degree equal to or greater than a certain value is included in the input image. It is regarded as a rounded ruled line corresponding to the rounded ruled line and output. When the feature amount held in the corner feature amount dictionary 107 is enormous, clustering in advance can reduce the load on the computer during matching.

角部特徴量辞書107に保持するデータを、画素データではなく数値である特徴量とすることで、データ量を軽減できる。また、マッチングについて特徴量から一致度を算出する方法を採ることで、画素同士の比較を行うよりも少ない負荷でマッチング処理をすることができる。   By setting the data held in the corner feature value dictionary 107 as feature values that are numerical values instead of pixel data, the data amount can be reduced. Further, by adopting a method for calculating the degree of coincidence from the feature amount for matching, matching processing can be performed with less load than when comparing pixels.

(入力から出力までの流れ)
次に、入力から出力までの処理の流れについて説明する。図12は、入力から出力までの処理の流れを示すフローチャートである。
(Flow from input to output)
Next, the flow of processing from input to output will be described. FIG. 12 is a flowchart showing the flow of processing from input to output.

S101において、入力画像メモリ部104に画像データが入力される。原稿をスキャンして入力画像を取得するほか、デジタルカメラなどで撮影したデータ、ネットワーク経由で取得した画像データなど、様々な方法で画像データを取得する。入力画像は画像処理部108に送られ、画像入力部207を経由して処理制御部201が受け付ける。   In S 101, image data is input to the input image memory unit 104. In addition to acquiring an input image by scanning a document, image data is acquired by various methods such as data captured by a digital camera or the like, or image data acquired via a network. The input image is sent to the image processing unit 108 and received by the processing control unit 201 via the image input unit 207.

入力画像が多値画像である場合、S102において、二値化処理部202が二値化画像を生成する。二値化画像の生成については、本出願人による特許文献7に記載された技術のほか、一般的な技術を利用して行う。生成された二値化画像について、S103において罫線抽出処理部203、角部罫線領域抽出部204、特徴量抽出部205、マッチング部206において上述の処理がなされ、入力画像の角丸罫線と一致する角部特徴量辞書107内の角丸罫線が選択される。この角丸罫線を入力画像の角丸罫線とみなし、S104において結果出力部208から各罫線のデジタルデータ及び角丸罫線のデジタルデータが出力される。出力された各データは出力メモリ部113に蓄積され、必要に応じて利用される。   If the input image is a multi-valued image, the binarization processing unit 202 generates a binarized image in S102. The generation of the binarized image is performed using a general technique in addition to the technique described in Patent Document 7 by the present applicant. The generated binarized image is subjected to the above-described processing in the ruled line extraction processing unit 203, the corner ruled line region extraction unit 204, the feature amount extraction unit 205, and the matching unit 206 in S103, and matches the rounded ruled line of the input image. A rounded ruled line in the corner feature quantity dictionary 107 is selected. The rounded ruled lines are regarded as the rounded ruled lines of the input image, and the digital data of each ruled line and the digital data of the rounded ruled lines are output from the result output unit 208 in S104. Each output data is accumulated in the output memory unit 113 and used as necessary.

(画像処理部108における処理の流れ)
画像処理部108における処理の流れについて説明する。図13は、画像処理部108における処理の流れを示すフローチャートである。この説明において、入力画像は二値画像であることを前提とする。
(Processing flow in the image processing unit 108)
A flow of processing in the image processing unit 108 will be described. FIG. 13 is a flowchart showing the flow of processing in the image processing unit 108. In this description, it is assumed that the input image is a binary image.

S201において、入力画像について罫線抽出処理部203で縦罫線及び横罫線が抽出される。S202において、縦罫線及び横罫線の罫線領域が抽出され、座標値が求められる。この座標値に基づいて、S203で、角部罫線領域抽出部204によって角部罫線領域が抽出される。S202において罫線領域を抽出した結果、各罫線が連結しているか、もしくは抽出した縦罫線と横罫線の各罫線領域の間隔が一定値を超える場合、角部に角丸罫線が存在しないとして処理を終了する。   In S201, the ruled line extraction processing unit 203 extracts vertical ruled lines and horizontal ruled lines from the input image. In S202, the ruled line area of the vertical ruled line and the horizontal ruled line is extracted, and the coordinate value is obtained. Based on this coordinate value, the corner ruled line area is extracted by the corner ruled line area extracting unit 204 in S203. As a result of extracting the ruled line area in S202, if the ruled lines are connected or if the interval between the extracted vertical ruled lines and the horizontal ruled lines exceeds a certain value, the process is performed assuming that there is no rounded ruled line at the corner. finish.

S204において、特徴量抽出部205で、角部罫線領域内の入力画像中の角丸罫線について、上述した方法で特徴量が算出される。S205において、求めた入力画像中の角丸罫線の特徴量と、角部特徴量辞書107で保持された角部特徴量辞書107内の特徴量とのマッチングが行われ、マッチング部206によって一致度が算出される。一致度が例えば90%を越える角部特徴量辞書107内の角丸罫線について、入力画像中の角丸罫線であるとみなされ、S206において結果出力部208から出力される。   In step S204, the feature amount extraction unit 205 calculates the feature amount for the rounded ruled line in the input image in the corner ruled line region by the method described above. In S205, matching is performed between the feature quantity of the rounded ruled line in the obtained input image and the feature quantity in the corner feature quantity dictionary 107 held in the corner feature quantity dictionary 107, and the matching unit 206 performs matching. Is calculated. A rounded ruled line in the corner feature quantity dictionary 107 having a matching degree exceeding 90%, for example, is regarded as a rounded ruled line in the input image, and is output from the result output unit 208 in S206.

尚、特徴量の算出に当たり、必要に応じてデータの正規化が行われる。   In calculating the feature amount, data normalization is performed as necessary.

予め多様な角丸罫線のパターンを特徴量である数値で保持し、入力画像の角部について特徴量を算出して一致度を算出し、一致する特徴量を入力画像の角丸罫線であるとみなす。この構成により、角丸罫線を有する罫線の抽出について、最小限のデータの保持で多様な角丸罫線を抽出することができる。   A variety of rounded ruled line patterns are held in advance as numerical values that are feature quantities, feature quantities are calculated for the corners of the input image, the degree of coincidence is calculated, and the matching feature quantities are rounded ruled lines of the input image I reckon. With this configuration, it is possible to extract various rounded ruled lines with a minimum amount of data for extracting ruled lines having rounded ruled lines.

(変形例)
尚、本実施例では角部が角丸で構成された角丸罫線を抽出することを前提とした。しかし、図11(b)のように角部が直線である場合も、同様の方法で抽出が可能である。しかし図11(c)のように、縦罫線と横罫線が直角に交わる場合は、罫線領域同士が連結しているため、本実施形態において想定していない。
(Modification)
In this embodiment, it is assumed that a rounded ruled line whose corners are rounded is extracted. However, even in the case where the corner is a straight line as shown in FIG. However, as shown in FIG. 11C, when the vertical ruled line and the horizontal ruled line intersect at a right angle, the ruled line regions are connected to each other and are not assumed in this embodiment.

また、本願においては、上述の機能を有する画像処理装置を備える画像形成装置としてもよい。図14において、画像形成装置2のハードウェア構成図を示す。   In the present application, an image forming apparatus including the image processing apparatus having the above-described function may be used. FIG. 14 shows a hardware configuration diagram of the image forming apparatus 2.

画像形成装置2は、スキャナ機能を有する一般的な複合機である。画像形成装置2は、画像処理装置1が備える機能を包含するほか、ARDF(Auto Reverse Document Feeder)301、イメージ変換部302、FAXmodem303、メーラ304、メモリ305、USB306、プリンタエンジン307、電源ユニット308を備える。   The image forming apparatus 2 is a general multifunction machine having a scanner function. The image forming apparatus 2 includes functions included in the image processing apparatus 1 and includes an ARDF (Auto Reverse Document Feeder) 301, an image conversion unit 302, a FAXmodem 303, a mailer 304, a memory 305, a USB 306, a printer engine 307, and a power supply unit 308. Prepare.

本実施形態においては、ARDF301において読み取られた原稿画像に帳票が含まれる場合、操作部106の操作を通じて罫線を抽出し、角部罫線領域に含まれる角丸罫線について特徴量を算出する。メモリ305またはHDD112に保管された角部特徴量辞書107の角丸パターンの特徴量との比較が行われ、入力画像の角丸罫線が抽出される。抽出された罫線のデジタルデータ及び角丸罫線のデジタルデータがメモリ305に蓄積され、通信制御部109により外部に送信され、またはメーラ304でメール送信されるなど、操作に応じた所定の出力が行われる。抽出した罫線について紙上に形成する場合、プリンタエンジン307により印刷されて出力される。   In the present embodiment, when a document is included in the document image read by the ARDF 301, a ruled line is extracted through the operation of the operation unit 106, and a feature amount is calculated for the rounded ruled line included in the corner ruled line region. The corner feature quantity dictionary 107 stored in the memory 305 or the HDD 112 is compared with the feature value of the rounded corner pattern, and the rounded ruled line of the input image is extracted. The extracted digital data of the ruled lines and the digital data of the rounded ruled lines are accumulated in the memory 305, transmitted to the outside by the communication control unit 109, or mailed by the mailer 304, and a predetermined output corresponding to the operation is performed. Is called. When the extracted ruled line is formed on paper, it is printed by the printer engine 307 and output.

以上、各実施形態に基づき本発明の説明を行ってきたが、上記実施形態に示した要件に本発明が限定されるものではない。これらの点に関しては、本発明の主旨をそこなわない範囲で変更することができ、その応用形態に応じて適切に定めることができる。   As mentioned above, although this invention has been demonstrated based on each embodiment, this invention is not limited to the requirements shown in the said embodiment. With respect to these points, the gist of the present invention can be changed without departing from the scope of the present invention, and can be appropriately determined according to the application form.

1 画像処理装置
2 画像形成装置
107 角部特徴量辞書
108 画像処理部
202 二値化処理部
203 罫線抽出処理部
204 角部罫線領域抽出部
205 特徴量抽出部
206 マッチング部
307 プリンタエンジン
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Image forming apparatus 107 Corner part feature-value dictionary 108 Image processing part 202 Binarization processing part 203 Ruled line extraction process part 204 Corner part ruled line area extraction part 205 Feature quantity extraction part 206 Matching part 307 Printer engine

特開平04−291478号公報Japanese Patent Laid-Open No. 04-291478 特開2002−133426号公報JP 2002-133426 A 特開昭63−778号公報JP-A 63-778 特開平10−105648号公報JP-A-10-105648 特開昭62−22187号公報Japanese Patent Laid-Open No. 62-22187 特開平11−96304号公報JP 11-96304 A 特開2000−331118号公報JP 2000-331118 A

Claims (10)

幅と長さを有する罫線と、二つの罫線の角部領域に形成される角部罫線領域を有する画像を読み取る画像処理装置において、
前記画像から、前記角部罫線領域を抽出する角部罫線領域抽出手段と、
前記角部罫線領域の画像から、前記角部罫線領域の画像の特徴量を抽出する特徴量抽出手段と、
前記角部罫線領域の複数の角部のパターンに対応した特徴量を保持する特徴量辞書と、
前記特徴量抽出手段により抽出された特徴量と、前記特徴量辞書に保持されている前記角部のパターンの特徴量とを比較して一致度を算出し、所定の一致度を有する前記角部のパターンを前記角部罫線として抽出する角部罫線抽出手段と、
を有することを特徴とする画像処理装置。
In an image processing apparatus that reads an image having a ruled line having a width and a length and a corner ruled line area formed in a corner area of two ruled lines,
A corner ruled line region extracting means for extracting the corner ruled line region from the image;
Feature amount extraction means for extracting the feature amount of the image of the corner ruled line region from the image of the corner ruled line region;
A feature dictionary that stores feature values corresponding to a plurality of corner patterns of the corner ruled line region;
The corner portion having a predetermined degree of coincidence is calculated by comparing the feature amount extracted by the feature amount extracting means with the feature amount of the pattern of the corner portion held in the feature amount dictionary. Corner ruled line extracting means for extracting the pattern of the above as the corner ruled line;
An image processing apparatus comprising:
読み取られた前記画像が多値画像の場合、読み取られた多値画像から二値画像を生成する二値画像生成手段を有し、
前記特徴量抽出手段は、前記二値画像から前記特徴量を抽出することを特徴とする、請求項1記載の画像処理装置。
In the case where the read image is a multi-value image, it has a binary image generation means for generating a binary image from the read multi-value image,
The image processing apparatus according to claim 1, wherein the feature amount extraction unit extracts the feature amount from the binary image.
前記角部罫線領域抽出手段は、縦の罫線である縦罫線を有する縦罫線領域及び横の罫線である横罫線を有する横罫線領域に基づいて前記角部罫線領域を抽出することを特徴とする、請求項1または2記載の画像処理装置。   The corner ruled line area extracting means extracts the corner ruled line area based on a vertical ruled line area having a vertical ruled line that is a vertical ruled line and a horizontal ruled line area having a horizontal ruled line that is a horizontal ruled line. The image processing apparatus according to claim 1 or 2. 前記縦罫線領域は、前記縦罫線の外接矩形の領域であり
前記横罫線領域は、前記横罫線の外接矩形の領域であり、
前記縦罫線領域または前記横罫線領域は、前記縦罫線または前記横罫線のいずれか一方を基準として直角の位置になるよう構成することを特徴とする、請求項3記載の画像処理装置。
The vertical ruled line area is a circumscribed rectangular area of the vertical ruled line, and the horizontal ruled line area is a circumscribed rectangular area of the horizontal ruled line,
The image processing apparatus according to claim 3, wherein the vertical ruled line region or the horizontal ruled line region is configured to be at a right angle with respect to either the vertical ruled line or the horizontal ruled line.
幅と長さを有する罫線と、二つの罫線の角部領域に形成される角部罫線領域を有する画像を読み取る画像処理方法において、
前記画像から、前記角部罫線領域を抽出する角部罫線領域抽出手順と、
前記角部罫線領域の画像から、前記角部罫線領域の画像の特徴量を抽出する特徴量抽出手順と、
前記特徴量抽出手順により抽出された特徴量と、前記角部罫線領域の複数の角部のパターンに対応した特徴量を保持する特徴量辞書に保持されている、前記角部のパターンの特徴量とを比較して一致度を算出し、所定の一致度を有する前記角部のパターンを前記角部罫線として抽出する角部罫線抽出手順と、
を有することを特徴とする画像処理方法。
In an image processing method for reading an image having a ruled line having a width and a length and a corner ruled line area formed in a corner area of two ruled lines,
A corner ruled line region extraction procedure for extracting the corner ruled line region from the image;
A feature amount extraction procedure for extracting a feature amount of the image of the corner ruled line region from the image of the corner ruled line region;
The feature amount of the corner pattern held in the feature amount dictionary that holds the feature amount extracted by the feature amount extraction procedure and the feature amount corresponding to the plurality of corner pattern of the corner ruled line region. The corner ruled line extraction procedure for calculating the degree of coincidence and extracting the corner pattern having a predetermined degree of matching as the corner ruled line;
An image processing method comprising:
読み取られた前記画像が多値画像の場合、読み取られた多値画像から二値画像を生成する二値画像生成手順を有し、
前記特徴量抽出手順は、前記二値画像から前記特徴量を抽出することを特徴とする、請求項5記載の画像処理方法。
When the read image is a multi-valued image, a binary image generation procedure for generating a binary image from the read multi-valued image is included.
6. The image processing method according to claim 5, wherein the feature amount extraction procedure extracts the feature amount from the binary image.
前記角部罫線領域抽出手順は、縦の罫線を有する縦罫線領域及び横の罫線を有する横罫線領域に基づいて抽出することを特徴とする、請求項5又は6記載の画像処理方法。   7. The image processing method according to claim 5, wherein the corner ruled line region extraction procedure is performed based on a vertical ruled line region having a vertical ruled line and a horizontal ruled line region having a horizontal ruled line. 前記縦罫線領域及び横罫線領域は、縦罫線または横罫線が斜線の場合、罫線の両端点及び罫線を含むよう構成することを特徴とする、請求項7記載の画像処理方法。   8. The image processing method according to claim 7, wherein the vertical ruled line region and the horizontal ruled line region are configured to include both end points of the ruled line and the ruled line when the vertical ruled line or the horizontal ruled line is an oblique line. 請求項1ないし4のいずれか一項に記載の画像処理装置と、
前記画像処理装置により画像処理を施された画像データに基づいて、用紙上に画像の形成を行うプリンタエンジンと、
を備えることを特徴とする画像形成装置。
An image processing apparatus according to any one of claims 1 to 4,
A printer engine for forming an image on paper based on image data subjected to image processing by the image processing apparatus;
An image forming apparatus comprising:
請求項5ないし8のいずれか一項に記載の画像処理方法をコンピュータに実行させる画像処理プログラム。   An image processing program for causing a computer to execute the image processing method according to any one of claims 5 to 8.
JP2011200326A 2011-09-14 2011-09-14 Image processor, image processing method, image forming device and image processing program Withdrawn JP2013061839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200326A JP2013061839A (en) 2011-09-14 2011-09-14 Image processor, image processing method, image forming device and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200326A JP2013061839A (en) 2011-09-14 2011-09-14 Image processor, image processing method, image forming device and image processing program

Publications (1)

Publication Number Publication Date
JP2013061839A true JP2013061839A (en) 2013-04-04

Family

ID=48186452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200326A Withdrawn JP2013061839A (en) 2011-09-14 2011-09-14 Image processor, image processing method, image forming device and image processing program

Country Status (1)

Country Link
JP (1) JP2013061839A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019174887A (en) * 2018-03-27 2019-10-10 京セラドキュメントソリューションズ株式会社 Image processing device
CN111291726A (en) * 2020-03-12 2020-06-16 泰康保险集团股份有限公司 Medical bill sorting method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019174887A (en) * 2018-03-27 2019-10-10 京セラドキュメントソリューションズ株式会社 Image processing device
CN111291726A (en) * 2020-03-12 2020-06-16 泰康保险集团股份有限公司 Medical bill sorting method, device, equipment and medium
CN111291726B (en) * 2020-03-12 2023-08-08 泰康保险集团股份有限公司 Medical bill sorting method, device, equipment and medium

Similar Documents

Publication Publication Date Title
JP5262869B2 (en) Image processing system, image processing server, MFP, and image processing method
US8849042B2 (en) Image processing apparatus, rectangle detection method, and computer-readable, non-transitory medium
JP4911340B2 (en) Two-dimensional code detection system and two-dimensional code detection program
JP4525787B2 (en) Image extraction apparatus and image extraction program
US7551753B2 (en) Image processing apparatus and method therefor
US9160884B2 (en) Image processing apparatus, line detection method, and computer-readable, non-transitory medium
US20070081179A1 (en) Image processing device, image processing method, and computer program product
WO2014160433A2 (en) Systems and methods for classifying objects in digital images captured using mobile devices
JP2005316755A (en) Two-dimensional rectangular code symbol reader and two-dimensional rectangular code symbol reading method
JP2011130439A (en) Image alignment method for image comparison and document authentication
US8897574B2 (en) Image processing apparatus, line detection method, and computer-readable, non-transitory medium
JP2010056689A (en) Image processor and image processing method
JP2007335920A (en) Image processing apparatus and image processing program
US9131193B2 (en) Image-processing device removing encircling lines for identifying sub-regions of image
US8553985B2 (en) Image processing apparatus, image processing method and computer-readable medium
US8229214B2 (en) Image processing apparatus and image processing method
JP5915662B2 (en) Image generation method, information processing method, program, and information processing apparatus
JP2013061839A (en) Image processor, image processing method, image forming device and image processing program
JP6403401B2 (en) Image processing apparatus, image processing method, and program
US9031324B2 (en) Image-processing device specifying encircling line for identifying sub-region of image
CN111860025B (en) Two-dimensional code region-of-interest positioning method and device
JP2013178659A (en) Character recognition apparatus, character recognition method and program
JP7301529B2 (en) Image processing device, image processing method, and program
JP2013026839A (en) Image processing program and image processing device
JP2009025992A (en) Two-dimensional code

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202