JP5365440B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP5365440B2
JP5365440B2 JP2009212684A JP2009212684A JP5365440B2 JP 5365440 B2 JP5365440 B2 JP 5365440B2 JP 2009212684 A JP2009212684 A JP 2009212684A JP 2009212684 A JP2009212684 A JP 2009212684A JP 5365440 B2 JP5365440 B2 JP 5365440B2
Authority
JP
Japan
Prior art keywords
image
module
line
pixel
solid line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2009212684A
Other languages
Japanese (ja)
Other versions
JP2011065204A (en
Inventor
邦和 上野
伸一 矢田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2009212684A priority Critical patent/JP5365440B2/en
Priority to US12/776,929 priority patent/US8503774B2/en
Publication of JP2011065204A publication Critical patent/JP2011065204A/en
Application granted granted Critical
Publication of JP5365440B2 publication Critical patent/JP5365440B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/412Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

An image processing apparatus includes an image receiving section, a succession value image generating section and a solid converting section. The image receiving section receives an image contains a line having breaks. The succession value image generating section generates a succession value image having as a pixel value the number of times of succession of black or white pixels in the image received by the image receiving section. The solid-line converting section, based on the succession value image generated by the succession value image generating section, performs solid-line conversion in which the line having breaks is changed into a solid line.

Description

本発明は、画像処理装置及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program.

点線等の切れ目のある線によって構成されている表等を含む文書を対象とした画像処理が行われている。
これに関連する技術として、例えば、特許文献1には、文書画像中の表の破線や鎖線のような不連続な罫線を、簡単な処理で、高速に抽出することを目的とし、文書画像を二値原画像の形で読み取り、読み取られた二値原画像に対して水平及び垂直方向の各方向に走査して黒ビット列とそれに連結した白ビット列を検出し、検出された黒ビット列とそれに連結した白ビット列に対して白ビット列の長さの判定を行い、該白ビット列の長さが閾値以下の黒ビット列とそれに連結した閾値以下の白ビット列を検出し、検出された黒ビット列とそれに連結した閾値以下の白ビット列の連続に対し、基本ビット列を検出し、検出された基本ビット列が規則的に所定回数以上繰返される制限付繰返しビット列を検出して制限付繰返しパタンを抽出することが開示されている。
Image processing is performed on a document including a table or the like formed by a line having a break such as a dotted line.
As a technique related to this, for example, Patent Document 1 discloses that a document image is extracted from a document image for the purpose of extracting a discontinuous ruled line such as a broken line or a chain line of a table in a document image with a simple process. Scans in the form of a binary original image, scans the read binary original image in each of the horizontal and vertical directions, detects a black bit string and a white bit string connected thereto, and detects the detected black bit string and the connected black bit string The length of the white bit string is determined with respect to the white bit string, the black bit string whose length is less than or equal to the threshold and the white bit string less than the threshold connected thereto are detected, and the detected black bit string and the detected black bit string are connected to the detected black bit string. A basic bit string is detected for a series of white bit strings that are less than or equal to a threshold value, a limited repeated bit string in which the detected basic bit string is regularly repeated a predetermined number of times or more is detected, and a limited repeated pattern is extracted. There has been disclosed.

また、例えば、特許文献2には、印刷物・文書等から読み込まれた図形データから、文字・破線・点線、線種にかかわらず表構造及びセル内の文字を正確に認識できる表認識装置を提供することを目的とし、図形データの連結黒画素の外接矩形リストを作成する黒画素ラベリング部と、外接矩形の辺の長さから矩形内が文字であるか否かを判断する文字矩形推定部と、文字であると推定された矩形内の黒画素を除いた部分の縮小画像を作成する縮小画像作成部と、縮小画像の縦・横2方向の黒画素のランのうち一定長さ以上のものを抽出するラン抽出部と、抽出されたランを連結することにより罫線を抽出する罫線抽出部と、抽出された罫線で囲まれた矩形を検索し、表のセルとして抽出する表構造抽出部とを備えていることが開示されている。   Further, for example, Patent Document 2 provides a table recognition device that can accurately recognize table structures and characters in cells from graphic data read from printed matter / documents, etc., regardless of characters, broken lines, dotted lines, and line types. A black pixel labeling unit that creates a circumscribed rectangle list of connected black pixels of graphic data, and a character rectangle estimation unit that determines whether the inside of the rectangle is a character from the length of a side of the circumscribed rectangle A reduced image creation unit for creating a reduced image of a portion excluding black pixels in a rectangle estimated to be a character, and a black pixel run in two vertical and horizontal directions of the reduced image having a certain length or more A run extraction unit for extracting a ruled line, a ruled line extraction unit for extracting a ruled line by concatenating the extracted runs, a table structure extraction unit for searching a rectangle surrounded by the extracted ruled line and extracting it as a table cell It is disclosed that it has .

また、例えば、特許文献3には、点線の罫線を認識し、点線罫線を含む表を処理することを目的とし、2値画像入力部より2値イメージメモリに原稿の2値画像を入力し、矩形抽出部は罫線方向に関し連結する黒画素を包含する矩形を抽出し、点線要素抽出部は予め定められた大きさより小さい矩形を点線要素として抽出し、点線要素抽出部は、罫線方向に関し、予め定められた間隔より接近した点線要素を統合し、点線矩形として抽出することが開示されている。   Further, for example, in Patent Document 3, a binary image of a document is input from a binary image input unit to a binary image memory for the purpose of recognizing a dotted ruled line and processing a table including the dotted ruled line. The rectangle extraction unit extracts a rectangle including black pixels connected in relation to the ruled line direction, the dotted line element extraction unit extracts a rectangle smaller than a predetermined size as a dotted line element, and the dotted line element extraction unit relates to the ruled line direction in advance. It is disclosed that dotted line elements that are closer than a predetermined interval are integrated and extracted as a dotted rectangle.

また、例えば、特許文献4には、点線のような非実線の罫線を含んだ表に対しても正確な処理を可能にするための罫線認識方法を提供することを目的とし、2値画像について、主走査方向及び副走査方向の各ラインの黒ランと白ランを抽出し、前記抽出した黒ランと白ランそれぞれのランの長さについてのヒストグラムを求め、このヒストグラムのピーク部分の値が一定値を越えるときは、そのピーク部分に対応した長さを持つ黒ラン及び白ランの連続範囲を非実線の罫線候補として抽出し、前記抽出した黒ランの長さの閾値処理を行い、一定長以上の長さの黒ランを実線の罫線候補として抽出し、前記抽出した非実線、実線の罫線候補について、それぞれライン間で連結したものを統合し、罫線と認識することを特徴とする罫線認識方法が開示されている。   In addition, for example, Patent Document 4 aims to provide a ruled line recognition method for enabling accurate processing even for a table including a non-solid ruled line such as a dotted line. The black run and the white run of each line in the main scanning direction and the sub-scanning direction are extracted, the histogram for the length of each of the extracted black run and the white run is obtained, and the value of the peak portion of the histogram is constant. When the value is exceeded, a continuous range of black runs and white runs having a length corresponding to the peak portion is extracted as a candidate for a non-solid ruled line, and the threshold processing for the length of the extracted black run is performed. A ruled line recognition characterized in that the black run of the above length is extracted as a candidate for a solid line, and the extracted non-solid line and solid line rule candidates are combined together and recognized as a ruled line. Way It is shown.

特開平05−040847号公報Japanese Patent Laid-Open No. 05-040847 特開平05−012489号公報JP 05-012489 A 特開平07−230525号公報Japanese Patent Application Laid-Open No. 07-230525 特許第3140079号公報Japanese Patent No. 3140079

本発明は、画像内の切れ目のある線を実線化する場合にあって、切れ目のある線以外のものを切れ目のある線として実線化してしまうことを抑制するようにした画像処理装置及び画像処理プログラムを提供することを目的としている。   The present invention relates to an image processing apparatus and image processing in which when a line having a break in an image is turned into a solid line, a line other than the line having a break is prevented from being turned into a solid line as a line having a break. The purpose is to provide a program.

かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。
請求項1の発明は、画像を受け付ける画像受付手段と、前記画像受付手段によって受け付けられた画像内における黒画素又は白画素が連続する度数を画素値として有する連続度数画像を作成する連続度数画像作成手段と、前記連続度数画像作成手段によって作成された連続度数画像に基づいて、切れ目のある線を実線に変更する実線化を行う実線化手段を具備し、前記実線化手段は、前記連続度数画像内の画素であって、水平方向又は垂直方向に連続している度数を画素値として有する画素の画素値と、予め定められた第1の閾値とを比較することにより2つの第1の画素を抽出し、前記2つの第1の画素に挟まれた線分は前記度数の方向と直角に交差しており、前記2つの第1の画素の間に挟まれた画素の画素値と予め定められた第2の閾値とを比較することにより、前記第1の画素に挟まれた線分上にある第2の画素を抽出し、該第2の画素を前記切れ目のある線の切れ目部分として実線化を行うものであることを特徴とする画像処理装置である。
The gist of the present invention for achieving the object lies in the inventions of the following items.
According to the first aspect of the present invention, there is provided an image receiving means for receiving an image, and a continuous frequency image creation for creating a continuous power image having a frequency of black pixels or white pixels in the image received by the image receiving means as a pixel value. And a solid line forming means for performing a solid line changing a broken line to a solid line based on the continuous frequency image created by the continuous frequency image creating means, and the solid line drawing means includes the continuous frequency image. By comparing a pixel value of a pixel having a frequency that is continuous in the horizontal direction or the vertical direction as a pixel value with a predetermined first threshold value. The line segment extracted and sandwiched between the two first pixels intersects the direction of the power at a right angle, and is determined in advance as the pixel value of the pixel sandwiched between the two first pixels. Second threshold To extract a second pixel located on a line segment sandwiched between the first pixels, and use the second pixel as a broken line portion of the broken line to make a solid line. an image processing apparatus, characterized in that there.

請求項の発明は、前記実線化手段によって実線化された線に基づいて作成された画像に基づいて、前記受付手段によって受け付けられた画像内の実線又は切れ目のある線と接触している画素塊を分離する分離手段をさらに具備することを特徴とする請求項1に記載の画像処理装置である。 According to a second aspect of the present invention, a pixel that is in contact with a solid line or a broken line in an image received by the receiving unit based on an image created based on the solid line formed by the solid line forming unit. The image processing apparatus according to claim 1, further comprising separation means for separating a lump.

請求項の発明は、前記実線化手段によって実線化が行われた画像内の白画素が連続する度数を画素値として有する白連続度数画像を作成する白連続度数画像作成手段と、前記実線化手段によって実線化が行われた画像内の黒画素が連続する度数を画素値として有する黒連続度数画像を作成する黒連続度数画像作成手段と、前記白連続度数画像作成手段によって作成された白連続度数画像と前記黒連続度数画像作成手段によって作成された黒連続度数画像に基づいて、前記画像受付手段によって受け付けられた画像から線分を抽出する線分抽出手段をさらに具備することを特徴とする請求項1又は2に記載の画像処理装置である。 According to a third aspect of the present invention, there is provided a continuous white power image creating means for creating a continuous white power image having a frequency of continuous white pixels in an image subjected to a solid line by the solid line forming means as a pixel value; A continuous black power image creating means for creating a black continuous power image having a frequency of continuous black pixels in the image that has been converted into a solid line by the means, and a white continuous image created by the white continuous power image creating means Further comprising line segment extraction means for extracting a line segment from the image received by the image receiving means based on the frequency image and the black continuous frequency image created by the black continuous frequency image creating means. An image processing apparatus according to claim 1.

請求項の発明は、コンピュータを、画像を受け付ける画像受付手段と、前記画像受付手段によって受け付けられた画像内における黒画素又は白画素が連続する度数を画素値として有する連続度数画像を作成する連続度数画像作成手段と、前記連続度数画像作成手段によって作成された連続度数画像に基づいて、切れ目のある線を実線に変更する実線化を行う実線化手段として機能させ、前記実線化手段は、前記連続度数画像内の画素であって、水平方向又は垂直方向に連続している度数を画素値として有する画素の画素値と、予め定められた第1の閾値とを比較することにより2つの第1の画素を抽出し、前記2つの第1の画素に挟まれた線分は前記度数の方向と直角に交差しており、前記2つの第1の画素の間に挟まれた画素の画素値と予め定められた第2の閾値とを比較することにより、前記第1の画素に挟まれた線分上にある第2の画素を抽出し、該第2の画素を前記切れ目のある線の切れ目部分として実線化を行うものであることを特徴とする画像処理プログラムである。 According to the invention of claim 4 , the computer generates an image reception means for receiving an image and a continuous frequency image having as a pixel value the frequency at which black pixels or white pixels in the image received by the image reception means are continuous. Based on the frequency image creating means and the continuous frequency image created by the continuous frequency image creating means, the frequency line creating means functions as a solid line forming means for changing to a solid line, and the solid line forming means includes By comparing the pixel value of a pixel in the continuous power image having a pixel value that is a frequency that is continuous in the horizontal direction or the vertical direction, the two first values are compared with each other. The line segment sandwiched between the two first pixels intersects the direction of the power at a right angle, and the pixel value of the pixel sandwiched between the two first pixels A second pixel located on a line segment sandwiched between the first pixels is extracted by comparing the second threshold value with a second threshold value determined for the second pixel, and the second pixel is defined as a break in the line having the break. An image processing program characterized by performing solid line as a part .

請求項1の画像処理装置によれば、画像内の切れ目のある線を実線化する場合にあって、切れ目のある線以外のものを切れ目のある線として実線化してしまうことを抑制できる。そして、本構成を有していない場合に比較して、切れ目のある線を実線化する処理の負荷を軽減させることができる。 According to the image processing apparatus of the first aspect, when a line with a break in the image is made a solid line, it can be suppressed that a line other than the line with a break is made into a solid line as a line with a break. And compared with the case where it does not have this structure, the load of the process which makes a continuous line a solid line can be reduced.

請求項の画像処理装置によれば、線と接触している画素塊を分離することができる。 According to the image processing apparatus of the second aspect , it is possible to separate the pixel block in contact with the line.

請求項の画像処理装置によれば、画像内から線分を抽出する場合にあって、線分でないものを線分として抽出してしまうことを抑制できる。 According to the image processing apparatus of the third aspect , when a line segment is extracted from the image, it is possible to suppress extraction of a non-line segment as a line segment.

請求項の画像処理プログラムによれば、画像内の切れ目のある線を実線化する場合にあって、切れ目のある線以外のものを切れ目のある線として実線化してしまうことを抑制できる。そして、本構成を有していない場合に比較して、切れ目のある線を実線化する処理の負荷を軽減させることができる。 According to the image processing program of the fourth aspect , when a line with a break in the image is made into a solid line, it can be suppressed that a line other than the line with a break is made into a solid line as a line with a break. And compared with the case where it does not have this structure, the load of the process which makes a continuous line a solid line can be reduced.

第1の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 1st Embodiment. 第1の実施の形態の構成例についての詳細なモジュール構成図である。It is a detailed module block diagram about the structural example of 1st Embodiment. 受付画像の例を示す説明図である。It is explanatory drawing which shows the example of a reception image. 白ランマップ画像の例を示す説明図である。It is explanatory drawing which shows the example of a white run map image. 白ランマップ画像の性質の例を示す説明図である。It is explanatory drawing which shows the example of the property of a white run map image. 白ランマップ画像の性質の例を示す説明図である。It is explanatory drawing which shows the example of the property of a white run map image. 白ランマップフィルタリングモジュールVによる処理例を示す説明図である。It is explanatory drawing which shows the process example by the white run map filtering module. 論理和処理モジュールV等による処理例を示す説明図である。It is explanatory drawing which shows the example of a process by the logical sum process module V etc. 黒ランマップ画像作成モジュールH等による処理例を示す説明図である。It is explanatory drawing which shows the example of a process by the black run map image creation module H etc. 論理和処理モジュールによる処理例を示す説明図である。It is explanatory drawing which shows the process example by a logical sum processing module. 反転処理モジュール等による処理例を示す説明図である。It is explanatory drawing which shows the process example by an inversion processing module. 第1の実施の形態による処理例を示す説明図である。It is explanatory drawing which shows the process example by 1st Embodiment. 第2の実施の形態の構成例についての概念的なモジュール構成図である。It is a conceptual module block diagram about the structural example of 2nd Embodiment. 第2の実施の形態の構成例についての詳細なモジュール構成図である。It is a detailed module block diagram about the structural example of 2nd Embodiment. 黒ランレングスと白ランレングスとの関係例を示す説明図である。It is explanatory drawing which shows the example of a relationship between black run length and white run length. 黒白ランマップフィルタリングモジュールVによる処理例を示す説明図である。It is explanatory drawing which shows the process example by the black-and-white run map filtering module V. FIG. 第2の実施の形態による処理例を示す説明図である。It is explanatory drawing which shows the process example by 2nd Embodiment. 第3の実施の形態の反転・論理積処理モジュールの構成例についての詳細なモジュール構成図である。It is a detailed module block diagram about the structural example of the inversion and logical product processing module of 3rd Embodiment. 第1〜3の実施の形態を実現するコンピュータのハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example of the computer which implement | achieves 1st-3rd embodiment.

以下、図面に基づき本発明を実現するにあたっての好適な各種の実施の形態の例を説明する。
図1は、第1の実施の形態の構成例についての概念的なモジュール構成図を示している。
なお、モジュールとは、一般的に論理的に分離可能なソフトウェア(コンピュータ・プログラム)、ハードウェア等の部品を指す。したがって、本実施の形態におけるモジュールはコンピュータ・プログラムにおけるモジュールのことだけでなく、ハードウェア構成におけるモジュールも指す。それゆえ、本実施の形態は、コンピュータ・プログラム、システム及び方法の説明をも兼ねている。ただし、説明の都合上、「記憶する」、「記憶させる」、これらと同等の文言を用いるが、これらの文言は、実施の形態がコンピュータ・プログラムの場合は、記憶装置に記憶させる、又は記憶装置に記憶させるように制御するの意である。また、モジュールは機能に一対一に対応していてもよいが、実装においては、1モジュールを1プログラムで構成してもよいし、複数モジュールを1プログラムで構成してもよく、逆に1モジュールを複数プログラムで構成してもよい。また、複数モジュールは1コンピュータによって実行されてもよいし、分散又は並列環境におけるコンピュータによって1モジュールが複数コンピュータで実行されてもよい。なお、1つのモジュールに他のモジュールが含まれていてもよい。また、以下、「接続」とは物理的な接続の他、論理的な接続(データの授受、指示、データ間の参照関係等)の場合にも用いる。
また、システム又は装置とは、複数のコンピュータ、ハードウェア、装置等がネットワーク(一対一対応の通信接続を含む)等の通信手段で接続されて構成されるほか、1つのコンピュータ、ハードウェア、装置等によって実現される場合も含まれる。「装置」と「システム」とは、互いに同義の用語として用いる。もちろんのことながら、「システム」には、人為的な取り決めである社会的な「仕組み」(社会システム)にすぎないものは含まない。「予め定められた」とは、対象としている処理の前に定まっていることをいい、本実施の形態による処理が始まる前はもちろんのこと、本実施の形態による処理が始まった後であっても、対象としている処理の前であれば、そのときの状況・状態に応じて、又はそれまでの状況・状態に応じて定まることの意を含めて用いる。
Hereinafter, examples of various preferred embodiments for realizing the present invention will be described with reference to the drawings.
FIG. 1 is a conceptual module configuration diagram of a configuration example according to the first embodiment.
The module generally refers to components such as software (computer program) and hardware that can be logically separated. Therefore, the module in the present embodiment indicates not only a module in a computer program but also a module in a hardware configuration. Therefore, the present embodiment also serves as an explanation of a computer program, a system, and a method. However, for the sake of explanation, the words “store”, “store”, and equivalents thereof are used. However, when the embodiment is a computer program, these words are stored in a storage device or stored in memory. It is the control to be stored in the device. Modules may correspond to functions one-to-one, but in mounting, one module may be configured by one program, or a plurality of modules may be configured by one program, and conversely, one module May be composed of a plurality of programs. The plurality of modules may be executed by one computer, or one module may be executed by a plurality of computers in a distributed or parallel environment. Note that one module may include other modules. Hereinafter, “connection” is used not only for physical connection but also for logical connection (data exchange, instruction, reference relationship between data, etc.).
In addition, the system or device is configured by connecting a plurality of computers, hardware, devices, and the like by communication means such as a network (including one-to-one correspondence communication connection), etc., and one computer, hardware, device. The case where it implement | achieves by etc. is included. “Apparatus” and “system” are used as synonymous terms. Of course, the “system” does not include a social “mechanism” (social system) that is an artificial arrangement. “Predetermined” means that the process is determined before the target process, and not only before the process according to this embodiment starts but also after the process according to this embodiment starts. In addition, if it is before the target processing, it is used in accordance with the situation / state at that time or with the intention to be decided according to the situation / state up to that point.

第1の実施の形態である画像処理装置は、図1に例示するように、画像受付モジュール110、表罫線補正モジュール120、接触文字分離モジュール130、論理和合成モジュール140、画像出力モジュール150を有している。   As illustrated in FIG. 1, the image processing apparatus according to the first embodiment includes an image reception module 110, a table ruled line correction module 120, a contact character separation module 130, a logical sum synthesis module 140, and an image output module 150. doing.

画像受付モジュール110は、表罫線補正モジュール120、接触文字分離モジュール130と接続されている。画像を受け付け、その画像を表罫線補正モジュール120、接触文字分離モジュール130へ渡す。画像を受け付けるとは、例えば、スキャナ、カメラ等で画像を読み込むこと、ファックス等で通信回線を介して外部機器から画像を受信すること、ハードディスク(コンピュータに内蔵されているものの他に、通信回線を介して接続されているもの等を含む)等に記憶されている画像を読み出すこと等が含まれる。ここで、受け付ける画像は、2値画像であるが、多値画像(カラー画像を含む)であってもよい。多値画像の場合は、2値化処理を行う。受け付ける画像は、1枚であってもよいし、複数枚であってもよい。また、画像の内容として、表等を構成している罫線が含まれている文書であれば、ビジネスに用いられる文書、帳票、広告宣伝用のパンフレット等であってもよい。また、その罫線には、切れ目のある線が含まれていてもよいし、罫線に画素塊が接触していてもよい。   The image reception module 110 is connected to the front ruled line correction module 120 and the contact character separation module 130. The image is received, and the image is transferred to the table ruled line correction module 120 and the contact character separation module 130. Accepting an image means, for example, reading an image with a scanner, a camera, etc., receiving an image from an external device via a communication line by fax, etc., a hard disk (in addition to what is built in a computer, a communication line For example, reading out an image stored in a device etc.). Here, the received image is a binary image, but may be a multi-valued image (including a color image). In the case of a multi-value image, binarization processing is performed. One image may be received or a plurality of images may be received. Further, as long as the content of the image includes a ruled line constituting a table or the like, it may be a document used for business, a form, a pamphlet for advertisement, or the like. Further, the ruled line may include a line with a break, or the pixel block may be in contact with the ruled line.

ここで、切れ目のある線とは、実線以外の線であり、例えば、点線、破線、一点鎖線、二点鎖線等のほか、これらが混在した線がある。以下、総称して点線ともいう。
また、画素塊とは、罫線以外であって4連結又は8連結で連続する画素領域を少なくとも含み、これらの画素領域の集合をも含む。これらの画素領域の集合とは、4連結等で連続した画素領域が複数あり、その複数の画素領域は近傍にあるものをいう。ここで、近傍にあるものとは、例えば、互いの画素領域が距離的に近いもの、文章としての1行から1文字ずつ切り出すように縦又は横方向に射影し、空白地点で切り出した画像領域、又は予め定められた間隔で切り出した画像領域等がある。
なお、1つの画素塊として、1文字の画像となる場合が多い。ただし、実際に人間が文字として認識できる画素領域である必要はない。文字の一部分、文字を形成しない画素領域等もあり、何らかの画素の塊であればよい。
また、罫線は、黒色であるのが一般的であるが、白色である罫線にも対応できる。ただし、以下の説明では黒色の罫線の場合について主に説明する。
Here, the broken line is a line other than a solid line, and includes, for example, a dotted line, a broken line, a one-dot chain line, a two-dot chain line, and the like, and a line in which these are mixed. Hereinafter, it is also collectively referred to as a dotted line.
The pixel block includes at least a pixel area other than the ruled line and continuous in four or eight connections, and includes a set of these pixel areas. The set of these pixel areas means that there are a plurality of continuous pixel areas such as 4-connected, and the plurality of pixel areas are in the vicinity. Here, what is in the vicinity is, for example, an image area in which the pixel areas are close to each other in distance, an image area that is projected vertically or horizontally so as to cut out one character at a time from a line as a sentence, and cut out at a blank spot Or an image region cut out at a predetermined interval.
In many cases, an image of one character is formed as one pixel block. However, it is not necessary that the pixel area is actually recognizable as a character by humans. There are a part of a character, a pixel region that does not form a character, and the like, and any pixel block may be used.
Further, the ruled line is generally black, but can also correspond to a white ruled line. However, in the following description, the case of a black ruled line will be mainly described.

表罫線補正モジュール120は、画像受付モジュール110、接触文字分離モジュール130、論理和合成モジュール140と接続されており、画像受付モジュール110によって受け付けられた画像内における黒画素又は白画素が連続する度数を画素値として有する連続度数画像を作成する。次に、その作成した連続度数画像に基づいて、切れ目のある線を実線に変更する実線化を行う。そして、切れ目のある線を実線化した画像を接触文字分離モジュール130、論理和合成モジュール140へ渡す。また、接触文字分離モジュール130等へ渡す画像として、実線化した罫線だけの画像としてもよい。つまり、画像受付モジュール110が受け付けた画像から罫線部分だけを抽出した画像(画素塊を除去した画像)としてもよい。
例えば、表罫線補正モジュール120は、連続度数画像内の画素であって、予め定められた第1の閾値と比較して抽出された2つの第1の画素を両端とし、その第1の画素の間にある画素が、予め定められた第2の閾値と比較して抽出された第2の画素である場合に、その第2の画素を切れ目のある線の切れ目部分として実線化を行うようにしてもよい。なお、表罫線補正モジュール120内の構成、処理内容等についての詳細は、図2等を用いて後述する。
The table ruled line correction module 120 is connected to the image reception module 110, the contact character separation module 130, and the logical sum synthesis module 140. The table ruled line correction module 120 determines the frequency of black pixels or white pixels in the image received by the image reception module 110. A continuous frequency image having pixel values is created. Next, based on the created continuous frequency image, a solid line is formed by changing a line having a break into a solid line. Then, an image obtained by making the line with the cut line a solid line is passed to the contact character separation module 130 and the logical sum synthesis module 140. Further, the image to be transferred to the contact character separation module 130 or the like may be an image having only a solid ruled line. That is, an image obtained by extracting only the ruled line portion from the image received by the image receiving module 110 (an image obtained by removing the pixel block) may be used.
For example, the table ruled line correction module 120 has two first pixels extracted in comparison with a predetermined first threshold that are pixels in the continuous frequency image as both ends, and the first pixel When a pixel in between is a second pixel extracted by comparison with a predetermined second threshold value, the second pixel is used as a solid line as a broken line. May be. Details of the configuration and processing contents in the table ruled line correction module 120 will be described later with reference to FIG.

連続度数画像とは、注目画素において、その注目画素と同じ色の画素が水平方向又は垂直方向に連続している度数(いわゆるランレングス長)を画素値として有する画像のことである。換言すると、ランレングスを構成している画素に、そのランレングス長の値を画素値として与えるものである。したがって、そのランレングス内の画素は同じ画素値となる。以下、連続度数画像をランマップ画像ともいう。黒画素のランレングスを基にしたものを黒ランマップ画像といい、白画素のランレングスを基にしたものを白ランマップ画像ともいう。
このランマップ画像は、画像受付モジュール110によって受け付けられた画像と同じ大きさ(幅×縦長)である。ただし、画像受付モジュール110によって受け付けられた画像は2値画像であるが、ランマップ画像は1画素が度数を表せるような多値画像である。例えば、8bit/画素としてもよい。この場合、度数が256以上となる場合は、画素値を255と固定してもよい。
また、実線化とは、切れ目のある線を実線に変更することをいい、具体的には、切れ目のある線をつないで(短線間の空白を埋めて)実線にすることをいう。
The continuous power image is an image having, as a pixel value, a frequency (a so-called run length) in which pixels of the same color as the target pixel are continuous in the horizontal direction or the vertical direction. In other words, the value of the run length is given as a pixel value to the pixels constituting the run length. Therefore, the pixels in the run length have the same pixel value. Hereinafter, the continuous power image is also referred to as a run map image. An image based on the run length of black pixels is called a black run map image, and an image based on the run length of white pixels is also called a white run map image.
This run map image has the same size (width × vertical length) as the image received by the image receiving module 110. However, the image received by the image receiving module 110 is a binary image, but the run map image is a multi-valued image in which one pixel can represent the frequency. For example, it may be 8 bits / pixel. In this case, when the frequency is 256 or more, the pixel value may be fixed to 255.
The solid line means that a line having a break is changed to a solid line. Specifically, the line having a break is connected (filled with a space between short lines) to become a solid line.

接触文字分離モジュール130は、画像受付モジュール110、表罫線補正モジュール120、論理和合成モジュール140と接続されている。表罫線補正モジュール120によって実線化された線に基づいて作成された画像に基づいて、画像受付モジュール110によって受け付けられた画像内の実線又は切れ目のある線と接触している画素塊を分離する。具体的には、例えば、罫線だけとなった画像を反転処理(白画素を黒画素へ、黒画素を白画素へ変更する処理)を行い、その反転した画像に対して収縮処理を行う。この反転処理と収縮処理を行った画像に対して画像受付モジュール110によって受け付けられた画像との論理積処理を行って、接触している画素塊を、実線又は切れ目のある線である罫線から分離する。そして、罫線以外の画像だけの画像(文字だけの画像)を論理和合成モジュール140へ渡す。なお、接触文字分離モジュール130内の構成、処理内容等についての詳細は、図2等を用いて後述する。   The contact character separation module 130 is connected to the image reception module 110, the table ruled line correction module 120, and the logical sum synthesis module 140. Based on the image created based on the solid line formed by the table ruled line correction module 120, the pixel block that is in contact with the solid line or the broken line in the image received by the image receiving module 110 is separated. Specifically, for example, an image having only ruled lines is subjected to inversion processing (processing for changing white pixels to black pixels and black pixels to white pixels), and contraction processing is performed on the inverted image. A logical product process with the image received by the image receiving module 110 is performed on the image that has been subjected to the inversion process and the contraction process, and the pixel block that is in contact is separated from the ruled line that is a solid line or a broken line To do. Then, an image of only the image other than the ruled line (image of only the character) is passed to the logical sum synthesis module 140. Details of the configuration, processing contents, and the like in the contact character separation module 130 will be described later with reference to FIG.

論理和合成モジュール140は、表罫線補正モジュール120、接触文字分離モジュール130、画像出力モジュール150と接続されている。表罫線補正モジュール120から切れ目のある線を実線化したものであって罫線部分だけの画像を受け取り、接触文字分離モジュール130から罫線に接触した画素塊を分離したものであって罫線以外の画像だけの画像を受け取って、これらを論理和による合成を行って、切れ目のある線を実線化し、罫線に接触した画素塊を分離した画像を作成する。そして、その画像を画像出力モジュール150へ渡す。なお、論理和合成モジュール140内の構成、処理内容等についての詳細は、図2等を用いて後述する。   The logical sum synthesis module 140 is connected to the table ruled line correction module 120, the contact character separation module 130, and the image output module 150. An image of only the ruled line portion is received from the table ruled line correction module 120, and only the image of the ruled line portion is received, and the pixel block contacting the ruled line is separated from the contact character separating module 130, and only the image other than the ruled line is received. These images are received, and these are combined by logical sum to create a solid line from the cut line and separate the pixel block in contact with the ruled line. Then, the image is passed to the image output module 150. Details of the configuration, processing contents, etc. in the logical sum synthesis module 140 will be described later with reference to FIG.

画像出力モジュール150は、論理和合成モジュール140と接続されている。論理和合成モジュール140によって論理和合成された画像を受け取り、その画像を出力する。画像を出力するとは、例えば、プリンタ等の印刷装置で印刷すること、ディスプレイ等の表示装置に表示すること、ファックス等の画像送信装置で画像を送信すること、画像データベース等の画像記憶装置へ画像を書き込むこと、メモリーカード等の記憶媒体に記憶すること、他の情報処理装置へ渡すこと等が含まれる。例えば、文字認識処理装置へ出力して、文字認識処理装置がその画像を認識しXML(eXtensible Markup Language)等の文書へ変換してもよい。   The image output module 150 is connected to the logical sum synthesis module 140. An image logically synthesized by the logical sum synthesis module 140 is received and the image is output. To output an image is, for example, printing on a printing device such as a printer, displaying on a display device such as a display, transmitting an image on an image transmission device such as a fax, or image to an image storage device such as an image database. , Storing in a storage medium such as a memory card, passing to another information processing apparatus, and the like. For example, the image may be output to a character recognition processing device, and the character recognition processing device may recognize the image and convert the image into a document such as XML (extensible Markup Language).

図2は、第1の実施の形態の構成例についての詳細なモジュール構成図である。
画像受付モジュール110は、白ランマップ画像作成モジュール222H、論理和処理モジュール224H、白ランマップ画像作成モジュール222V、論理和処理モジュール224V、論理積処理モジュール233と接続されている。受け付ける画像としては、図3(a)に例示する受付画像300がある。受付画像300内の領域310のように、文字と罫線が接触している接触発生領域311、312がある(図3(b)参照)。また、受付画像300内の領域320のように、罫線として実線321以外にも、点線322、破線323、一点鎖線324等がある(図3(c)参照)。
FIG. 2 is a detailed module configuration diagram for the configuration example of the first exemplary embodiment.
The image reception module 110 is connected to the white run map image creation module 222H, the logical sum processing module 224H, the white run map image creation module 222V, the logical sum processing module 224V, and the logical product processing module 233. As an image to be received, there is a received image 300 illustrated in FIG. Like an area 310 in the received image 300, there are contact occurrence areas 311 and 312 where characters and ruled lines are in contact (see FIG. 3B). In addition to the solid line 321 as a ruled line, there are a dotted line 322, a broken line 323, an alternate long and short dash line 324, etc. as in the region 320 in the received image 300 (see FIG. 3C).

表罫線補正モジュール120は、水平方向処理モジュール221H、垂直方向処理モジュール221V、論理和処理モジュール227を有している。水平方向処理モジュール221Hは、白ランマップ画像作成モジュール222H、白ランマップフィルタリングモジュール223H、論理和処理モジュール224H、黒ランマップ画像作成モジュール225H、しきい値処理モジュール226Hを有している。垂直方向処理モジュール221Vは、白ランマップ画像作成モジュール222V、白ランマップフィルタリングモジュール223V、論理和処理モジュール224V、黒ランマップ画像作成モジュール225V、しきい値処理モジュール226Vを有している。水平方向処理モジュール221Hは、画像受付モジュール110が受け付けた画像に対して水平方向の処理(横罫線を抽出する処理)を行い、垂直方向処理モジュール221Vは、画像受付モジュール110が受け付けた画像に対して垂直方向の処理(縦罫線を抽出する処理)を行うものであり、両者は水平方向、垂直方向の罫線を扱う点では異なるが、90度回転させれば同じ処理を行っているものであり、同等の対応するモジュールを有している。以下の説明では、いずれか一方又は両者を統合して説明する。   The table ruled line correction module 120 includes a horizontal direction processing module 221H, a vertical direction processing module 221V, and a logical sum processing module 227. The horizontal processing module 221H includes a white run map image creation module 222H, a white run map filtering module 223H, a logical sum processing module 224H, a black run map image creation module 225H, and a threshold processing module 226H. The vertical processing module 221V has a white run map image creation module 222V, a white run map filtering module 223V, a logical sum processing module 224V, a black run map image creation module 225V, and a threshold processing module 226V. The horizontal processing module 221H performs horizontal processing (processing for extracting horizontal ruled lines) on the image received by the image receiving module 110, and the vertical processing module 221V performs processing on the image received by the image receiving module 110. The processing in the vertical direction (processing for extracting vertical ruled lines) is different, and both are different in that they handle ruled lines in the horizontal and vertical directions, but the same processing is performed if rotated 90 degrees. , Have an equivalent corresponding module. In the following description, either one or both will be described.

白ランマップ画像作成モジュール222は、画像受付モジュール110、白ランマップフィルタリングモジュール223と接続されている。画像受付モジュール110から受け取った画像を用いて白ランマップ画像を作成する。そして、作成した白ランマップ画像を白ランマップフィルタリングモジュール223へ渡す。
例えば、具体的には、画像の白画素を注目画素として特定し、各白画素のランレングス長(白ランマップ画像作成モジュール222Hの処理の場合は水平方向につながっている白画素数、白ランマップ画像作成モジュール222Vの処理の場合は垂直方向につながっている白画素数)をカウントし、そのランレングスに属する白画素にランレングス長を画素値とする値を与える。より具体的には、ある白画素の塊のランレングス長が10であった場合、その塊に属する白画素10画素の画素値を10とする。
図4は、白ランマップ画像の例を示す説明図である。図4(a)に例示する白ランマップ画像410は、白ランマップ画像作成モジュール222Hによって作成されたものであり、図4(b)に例示する白ランマップ画像420は、白ランマップ画像作成モジュール222Vによって作成されたものである。この図では、黒いほど白ランレングス長値が大きい画素を示している。つまり、長い白ランレングスがある部分ほど黒く表示されている。なお、ランレングス長が255を超えるものは255としている。
The white run map image creation module 222 is connected to the image reception module 110 and the white run map filtering module 223. A white run map image is created using the image received from the image receiving module 110. The generated white run map image is passed to the white run map filtering module 223.
For example, specifically, the white pixel of the image is specified as the target pixel, and the run length of each white pixel (in the case of the processing of the white run map image creation module 222H, the number of white pixels connected in the horizontal direction, the white run In the case of the processing of the map image creation module 222V, the number of white pixels connected in the vertical direction) is counted, and a value having the run length length as the pixel value is given to the white pixels belonging to the run length. More specifically, when the run length of a block of white pixels is 10, the pixel value of 10 white pixels belonging to the block is set to 10.
FIG. 4 is an explanatory diagram illustrating an example of a white run map image. The white run map image 410 illustrated in FIG. 4A is created by the white run map image creation module 222H, and the white run map image 420 illustrated in FIG. 4B is created as a white run map image. This is created by the module 222V. In this figure, the pixel whose white run length length value is larger as it is blacker. In other words, the longer white run length is displayed in black. Note that the run length exceeding 255 is set to 255.

白ランマップフィルタリングモジュール223は、白ランマップ画像作成モジュール222、論理和処理モジュール224と接続されている。白ランマップ画像作成モジュール222から受け取った白ランマップ画像に対して、フィルタリング処理を行う。そして、フィルタリング処理の結果を論理和処理モジュール224へ渡す。
ここで、白ランマップ画像の性質について図5、図6の例を用いて説明する。
図5(b)の白ランマップ画像の例は、白ランマップ画像作成モジュール222Vが図5(a)に例示する文字の画像を対象としたものであり、図6(b)の白ランマップ画像の例は、白ランマップ画像作成モジュール222Vが図6(a)に例示する点線の画像を対象としたものである。このように、文字画素隣接領域には比較的短い白ラン画素が多いが、点線隣接領域には比較的長い白ランレングスの画素が多い。白ランマップフィルタリングモジュール223は、この性質を利用するものである。
The white run map filtering module 223 is connected to the white run map image creation module 222 and the logical sum processing module 224. A filtering process is performed on the white run map image received from the white run map image creation module 222. Then, the result of the filtering process is passed to the logical sum processing module 224.
Here, the property of the white run map image will be described with reference to the examples of FIGS.
The example of the white run map image in FIG. 5B is for the character image exemplified in FIG. 5A by the white run map image creation module 222V, and the white run map image in FIG. 6B. An example of the image is an image of a dotted line illustrated in FIG. 6A by the white run map image creation module 222V. Thus, there are many relatively short white run pixels in the character pixel adjacent region, but there are many relatively long white run length pixels in the dotted line adjacent region. The white run map filtering module 223 uses this property.

図7は、白ランマップフィルタリングモジュール223Vによる処理例を示す説明図である。図7(a)に例示する画像は、2画素幅で2画素おきに黒白と変化する点線の画像である。この画像には、以下のような性質がある。
(1)点線の横には長い白ランレングスが存在する。図7(a)の例では、両端の画素(右上がり線で示された矩形であり、例えば、画素701)は長い白ランレングスである。
(2)点線を構成する白画素は短い。図7(a)の例では、点線を構成する黒画素(画素703)の間に挟まれた白画素(右下がり線で示された矩形であり、例えば、画素702)は短い白ランレングスである。
FIG. 7 is an explanatory diagram showing an example of processing by the white run map filtering module 223V. The image illustrated in FIG. 7A is a dotted image that changes in black and white every two pixels with a width of two pixels. This image has the following properties.
(1) A long white run length exists beside the dotted line. In the example of FIG. 7A, the pixels at both ends (the rectangles indicated by the upward right lines, for example, the pixel 701) have a long white run length.
(2) The white pixels constituting the dotted line are short. In the example of FIG. 7A, a white pixel (a rectangle indicated by a right-down line, for example, the pixel 702) sandwiched between black pixels (pixel 703) constituting a dotted line has a short white run length. is there.

白ランマップフィルタリングモジュール223Vは、横方向9×1画素フィルタ(図7(b)に例示するフィルタ710)を用いて、点線を構成する白画素を検知する。つまり、白ランマップ画像に対して、このフィルタ710内の画素で、長い白ランレングス長を持つ画素Aに挟まれた短い白ランレングス長を持つ画素Bを黒画素(ON)として出力する。それ以外の場合は白画素(OFF)として出力する。長い白ランレングス長を持つ画素Aとは、その画素の画素値が予め定められた閾値(Th_w)よりも大である画素をいい、短い白ランレングス長を持つ画素Bとは、その画素の画素値が予め定められた閾値(Th_s)よりも小である画素をいう。
このフィルタ処理により、点線を構成する白画素のみをON、それ以外の画素をOFF(文字と実線)とする2値画像が作成される。
また、白ランマップフィルタリングモジュール223Hも、縦方向1×9画素フィルタを用いて同等のフィルタ処理を行う。
なお、フィルタのサイズは、検出する点線幅に応じたものとなるように可変としてもよい。前述の9×1画素フィルタは7画素までの点線を検出することができる。
The white run map filtering module 223V detects white pixels constituting a dotted line using a horizontal 9 × 1 pixel filter (filter 710 illustrated in FIG. 7B). That is, for the white run map image, a pixel B having a short white run length sandwiched between pixels A having a long white run length is output as a black pixel (ON). In other cases, the pixel is output as a white pixel (OFF). The pixel A having a long white run length is a pixel having a pixel value larger than a predetermined threshold (Th_w), and the pixel B having a short white run length is a pixel having a short white run length. A pixel whose pixel value is smaller than a predetermined threshold (Th_s).
By this filtering process, a binary image is created in which only white pixels constituting the dotted line are turned on and other pixels are turned off (character and solid line).
The white run map filtering module 223H also performs the same filter processing using a vertical 1 × 9 pixel filter.
Note that the size of the filter may be variable so as to correspond to the detected dotted line width. The 9 × 1 pixel filter described above can detect a dotted line up to 7 pixels.

論理和処理モジュール224は、画像受付モジュール110、白ランマップフィルタリングモジュール223、黒ランマップ画像作成モジュール225と接続されている。画像受付モジュール110から受け取った画像と白ランマップフィルタリングモジュール223から受け取った白ランマップ画像との論理和処理を行って、点線を実線化した画像を作成する。そして、その作成した画像を黒ランマップ画像作成モジュール225へ渡す。
図8は、論理和処理モジュール224V等による処理例を示す説明図である。受付画像300は、画像受付モジュール110が受け取った画像であり、領域811、812、813内にそれぞれ点線、破線、一点鎖線がある。白ランマップ画像420は、白ランマップ画像作成モジュール222Vが作成した白ランマップ画像である。この白ランマップ画像420に対して、白ランマップフィルタリングモジュール223Vは、点線を構成する白画素をON、それ以外の画素をOFFとした2値画像を作成する。実線化画像(垂直方向)800は、論理和処理モジュール224Vが作成した画像であり、領域811、812、813に対応する領域821、822、823内の点線等は実線になっている。
The logical sum processing module 224 is connected to the image receiving module 110, the white run map filtering module 223, and the black run map image creating module 225. An logical sum process is performed on the image received from the image reception module 110 and the white run map image received from the white run map filtering module 223 to create an image in which the dotted line is a solid line. Then, the created image is transferred to the black run map image creation module 225.
FIG. 8 is an explanatory diagram showing an example of processing by the logical sum processing module 224V or the like. The received image 300 is an image received by the image receiving module 110, and there are a dotted line, a broken line, and an alternate long and short dash line in the areas 811 812 812, respectively. The white run map image 420 is a white run map image created by the white run map image creation module 222V. For this white run map image 420, the white run map filtering module 223V creates a binary image in which white pixels constituting the dotted line are turned on and other pixels are turned off. A solid line image (vertical direction) 800 is an image created by the logical sum processing module 224V, and dotted lines and the like in the regions 821, 822, and 823 corresponding to the regions 811, 812, and 813 are solid lines.

黒ランマップ画像作成モジュール225は、論理和処理モジュール224、しきい値処理モジュール226と接続されている。論理和処理モジュール224から受け取った画像(点線を実線化した画像)を用いて黒ランマップ画像を作成する。そして、作成した黒ランマップ画像をしきい値処理モジュール226へ渡す。黒ランマップ画像の作成は、白ランマップ画像作成モジュール222の白ランマップ画像の作成と同等であり、画像の黒画素を注目画素として特定し、各黒画素のランレングス長(黒ランマップ画像作成モジュール225Hの処理の場合は水平方向につながっている黒画素数、黒ランマップ画像作成モジュール225Vの処理の場合は垂直方向につながっている黒画素数)をカウントし、そのランレングスに属する黒画素にランレングス長を画素値とする値を与える。   The black run map image creation module 225 is connected to the logical sum processing module 224 and the threshold processing module 226. A black run map image is created using the image received from the logical sum processing module 224 (image obtained by converting the dotted line into a solid line). Then, the created black run map image is transferred to the threshold processing module 226. The creation of the black run map image is equivalent to the creation of the white run map image of the white run map image creation module 222, and the black pixel of the image is specified as the target pixel, and the run length of each black pixel (black run map image) In the case of the processing of the creation module 225H, the number of black pixels connected in the horizontal direction is counted, and in the case of the processing of the black run map image creation module 225V, the number of black pixels connected in the vertical direction is counted. A value having a run length length as a pixel value is given to the pixel.

しきい値処理モジュール226は、黒ランマップ画像作成モジュール225、論理和処理モジュール227と接続されている。黒ランマップ画像作成モジュール225から受け取った黒ランマップ画像内のそれぞれの画素に対してしきい値処理を行う。そして、しきい値処理を行った画像を論理和処理モジュール227へ渡す。ここで、しきい値処理とは、予め定められたしきい値と各画素の画素値とを比較して、そのしきい値以上の画素を罫線を構成する画素であるとして抽出するものである。したがって、そのしきい値以上の罫線が残り、それ未満の罫線は除去されることとなる。
図9は、黒ランマップ画像作成モジュール225、しきい値処理モジュール226による処理例を示す説明図である。
図9(a)に例示する実線化画像(水平方向)900は、論理和処理モジュール224Hの出力画像であり、この実線化画像(水平方向)900に対して黒ランマップ画像作成モジュール225H、しきい値処理モジュール226Hによって処理した結果が横罫線画像910である。このように、水平方向の点線を実線化した画像からしきい値以上の横罫線だけを抽出する。
図9(b)に例示する実線化画像(垂直方向)800に対しても黒ランマップ画像作成モジュール225V、しきい値処理モジュール226Vによる同等の処理を行い、処理結果が縦罫線画像920である。
The threshold processing module 226 is connected to the black run map image creation module 225 and the logical sum processing module 227. Threshold processing is performed on each pixel in the black run map image received from the black run map image creation module 225. Then, the image subjected to the threshold processing is transferred to the logical sum processing module 227. Here, the threshold processing is to compare a predetermined threshold value with the pixel value of each pixel and extract pixels that are equal to or higher than the threshold value as pixels constituting a ruled line. . Therefore, the ruled lines exceeding the threshold value remain, and the ruled lines less than the threshold value are removed.
FIG. 9 is an explanatory diagram showing an example of processing by the black run map image creation module 225 and the threshold processing module 226.
A solid line image (horizontal direction) 900 illustrated in FIG. 9A is an output image of the logical sum processing module 224H. A black run map image creation module 225H, The result of processing by the threshold processing module 226H is a horizontal ruled line image 910. In this way, only horizontal ruled lines that are equal to or greater than the threshold value are extracted from an image obtained by converting horizontal dotted lines into solid lines.
The same processing by the black run map image creation module 225V and the threshold processing module 226V is also performed on the solid line image (vertical direction) 800 illustrated in FIG. 9B, and the processing result is the vertical ruled line image 920. .

論理和処理モジュール227は、しきい値処理モジュール226H、しきい値処理モジュール226V、反転処理モジュール231、論理和処理モジュール241と接続されている。しきい値処理モジュール226Hから横罫線だけからなる画像を受け取り、しきい値処理モジュール226Vから縦罫線だけからなる画像を受け取り、両者の画像を論理和合成する。そして、その論理和合成した画像を反転処理モジュール231、論理和処理モジュール241へ渡す。
図10は、論理和処理モジュール227による処理例を示す説明図である。論理和処理モジュール227は、しきい値処理モジュール226Hから横罫線画像910、しきい値処理モジュール226Vから縦罫線画像920を受け取り、論理和合成して罫線画像1000を作成する。
The logical sum processing module 227 is connected to the threshold processing module 226H, the threshold processing module 226V, the inversion processing module 231, and the logical sum processing module 241. An image consisting only of horizontal ruled lines is received from the threshold processing module 226H, an image consisting only of vertical ruled lines is received from the threshold processing module 226V, and the two images are ORed. Then, the logically synthesized image is transferred to the inversion processing module 231 and the logical sum processing module 241.
FIG. 10 is an explanatory diagram showing an example of processing by the logical sum processing module 227. The logical sum processing module 227 receives the horizontal ruled line image 910 from the threshold processing module 226H and the vertical ruled line image 920 from the threshold processing module 226V, and creates a ruled line image 1000 by performing a logical sum synthesis.

接触文字分離モジュール130は、反転処理モジュール231、収縮処理モジュール232、論理積処理モジュール233を有している。
反転処理モジュール231は、論理和処理モジュール227、収縮処理モジュール232と接続されている。論理和処理モジュール227から罫線のみとなった画像を受け取り、反転処理(論理否定処理)を行う。そして、その反転処理した画像を収縮処理モジュール232へ渡す。
収縮処理モジュール232は、反転処理モジュール231、論理積処理モジュール233と接続されている。反転処理モジュール231から反転処理した画像を受け取り、収縮処理を行う。そして、その収縮処理した画像を論理積処理モジュール233へ渡す。ここで、収縮処理とは、黒領域の境界にある画素の値を背景成分の白画素の値に変換して、黒領域を1画素以上縮める処理のことである。例えば、1画素移動させた画像と元の画像との論理積処理を行うようにしてもよい。その他、従来から知られている画像処理としての収縮処理を行えばよい。これによって、罫線に接触している文字を切り離すための画像が作成されることとなる。
論理積処理モジュール233は、画像受付モジュール110、収縮処理モジュール232、論理和処理モジュール241と接続されている。画像受付モジュール110から画像を受け取り、収縮処理モジュール232から収縮処理した画像を受け取り、論理積処理を行う。そして、その論理積処理した画像を論理和処理モジュール241へ渡す。これによって、罫線以外の文字だけの画像が作成される。また、罫線に接触していた文字は、その接触部分を削除した文字となっている。
The contact character separation module 130 includes an inversion processing module 231, a contraction processing module 232, and a logical product processing module 233.
The inversion processing module 231 is connected to the logical sum processing module 227 and the contraction processing module 232. An image having only ruled lines is received from the logical sum processing module 227, and reverse processing (logical negation processing) is performed. Then, the inverted image is transferred to the contraction processing module 232.
The contraction processing module 232 is connected to the inversion processing module 231 and the logical product processing module 233. The reversal-processed image is received from the reversal processing module 231 and contraction processing is performed. Then, the contracted image is transferred to the logical product processing module 233. Here, the contraction process is a process of converting the value of the pixel at the boundary of the black area into the value of the white pixel of the background component and reducing the black area by one or more pixels. For example, logical product processing of an image moved by one pixel and the original image may be performed. In addition, a contraction process as a conventionally known image process may be performed. As a result, an image for separating the character in contact with the ruled line is created.
The logical product processing module 233 is connected to the image reception module 110, the contraction processing module 232, and the logical sum processing module 241. An image is received from the image receiving module 110, an image subjected to contraction processing is received from the contraction processing module 232, and logical product processing is performed. Then, the logical product processed image is transferred to the logical sum processing module 241. As a result, an image of only characters other than the ruled lines is created. Further, the character that is in contact with the ruled line is a character in which the contact portion is deleted.

論理和合成モジュール140は、論理和処理モジュール241を有している。
論理和処理モジュール241は、論理和処理モジュール227、論理積処理モジュール233、画像出力モジュール150と接続されている。論理和処理モジュール227から論理和処理した画像(罫線だけの画像)を受け取り、論理積処理モジュール233から論理積処理した画像(文字だけの画像)を受け取り、論理和処理を行う。そして、その論理和処理した画像を画像出力モジュール150へ渡す。
図11は、反転処理モジュール231、収縮処理モジュール232、論理積処理モジュール233、論理和処理モジュール241による処理例を示す説明図である。反転処理モジュール231が罫線画像1000に対して反転処理を行って反転画像1010を作成し、収縮処理モジュール232が反転画像1010に対して収縮処理を行って接触文字分離用マスク1020を作成し、論理積処理モジュール233が受付画像300と接触文字分離用マスク1020に対して論理積処理を行って文字画像1030を作成し、論理和処理モジュール241が罫線画像1000と文字画像1030に対して論理和処理を行って出力画像1040を作成することを示している。
The logical sum synthesis module 140 has a logical sum processing module 241.
The logical sum processing module 241 is connected to the logical sum processing module 227, the logical product processing module 233, and the image output module 150. The logical sum processing image 227 receives an image subjected to logical sum processing (image having only ruled lines) from the logical sum processing module 227, and receives the logical product processing image (image including only characters) from the logical product processing module 233, and performs logical sum processing. Then, the logical sum processed image is transferred to the image output module 150.
FIG. 11 is an explanatory diagram illustrating an example of processing performed by the inversion processing module 231, the contraction processing module 232, the logical product processing module 233, and the logical sum processing module 241. The reversal processing module 231 performs reversal processing on the ruled line image 1000 to create a reversal image 1010, and the contraction processing module 232 performs retraction processing on the reversal image 1010 to create a contact character separation mask 1020. The product processing module 233 performs logical product processing on the received image 300 and the contact character separation mask 1020 to create a character image 1030, and the logical sum processing module 241 performs logical sum processing on the ruled line image 1000 and the character image 1030. To create an output image 1040.

画像出力モジュール150は、論理和処理モジュール241と接続されている。論理和処理モジュール241から点線を実線化し、罫線に接触している文字を分離している画像を受け取り、出力する。
図12は、第1の実施の形態による処理例を示す説明図である。図12(a1)に例示する受付画像300は、画像受付モジュール110が受け付ける画像の例であり、領域310内には図12(b1)に例示するように罫線と接触発生領域311、312で接触している文字があり、また領域1210には図12(c1)に例示するように点線、破線、一点鎖線が含まれている。図12(a2)に例示する出力画像1040は、画像出力モジュール150によって出力された画像の例であり、接触文字があった領域1230内は図12(b2)に例示するように接触部分が分離しており(分離領域1231、1232)、点線、破線、一点鎖線が含まれていた領域1220内は図12(c2)に例示するように実線となっている。
The image output module 150 is connected to the logical sum processing module 241. A dotted line is converted into a solid line from the logical sum processing module 241, and an image separating characters touching the ruled line is received and output.
FIG. 12 is an explanatory diagram illustrating a processing example according to the first exemplary embodiment. A reception image 300 illustrated in FIG. 12A1 is an example of an image received by the image reception module 110. In the region 310, the ruled line and the contact generation regions 311 and 312 are contacted as illustrated in FIG. 12B1. The region 1210 includes a dotted line, a broken line, and an alternate long and short dash line as illustrated in FIG. An output image 1040 illustrated in FIG. 12A2 is an example of an image output by the image output module 150, and the contact portion is separated in the region 1230 where the contact characters exist as illustrated in FIG. 12B2. In the region 1220 including the dotted lines, broken lines, and alternate long and short dash lines (separated regions 1231 and 1232), the solid line is illustrated in FIG.

図13は、第2の実施の形態の構成例についての概念的なモジュール構成図である。第2の実施の形態である画像処理装置は、図13に例示するように、画像受付モジュール1310、点線実線化モジュール1320、線分抽出モジュール1330、論理積合成モジュール1340、画像出力モジュール1350を有している。
第2の実施の形態は、受け付けた画像から文字を削除して罫線のみの画像とするものである。第1の実施の形態とは異なり、出力する画像は、点線を実線化していない。例えば、画像のフォーム(文字が記載される前の原型文書)を認識する場合等に用いられるものである。
FIG. 13 is a conceptual module configuration diagram of a configuration example according to the second embodiment. As illustrated in FIG. 13, the image processing apparatus according to the second embodiment includes an image reception module 1310, a dotted line solid line module 1320, a line segment extraction module 1330, a logical product synthesis module 1340, and an image output module 1350. doing.
In the second embodiment, characters are deleted from the received image to form an image with only ruled lines. Unlike the first embodiment, the output image does not have a dotted line as a solid line. For example, it is used when recognizing an image form (original document before characters are described).

画像受付モジュール1310は、点線実線化モジュール1320、論理積合成モジュール1340と接続されている。図1に例示した画像受付モジュール110と同等のものであり、受け付けた画像を点線実線化モジュール1320、論理積合成モジュール1340へ渡す。
点線実線化モジュール1320は、画像受付モジュール1310、線分抽出モジュール1330と接続されている。画像受付モジュール1310が受け付けた画像内の点線を実線化するものである。図1に例示した表罫線補正モジュール120の途中までの処理と同等のものを行うものである。なお、点線実線化モジュール1320内の構成、処理内容等についての詳細は、図14等を用いて後述する。
The image reception module 1310 is connected to the dotted line solid line module 1320 and the logical product synthesis module 1340. This is equivalent to the image reception module 110 illustrated in FIG. 1, and passes the received image to the dotted line solid line module 1320 and the logical product synthesis module 1340.
The dotted line solid line module 1320 is connected to the image reception module 1310 and the line segment extraction module 1330. The dotted line in the image received by the image receiving module 1310 is made into a solid line. This is equivalent to the processing up to the middle of the table ruled line correction module 120 illustrated in FIG. Details of the configuration, processing contents, and the like in the dotted line solid line module 1320 will be described later with reference to FIG.

線分抽出モジュール1330は、点線実線化モジュール1320、論理積合成モジュール1340と接続されている。点線実線化モジュール1320によって実線化した画像から罫線である線分を抽出する。そして、罫線だけにした画像を論理積合成モジュール1340へ渡す。
具体的には、例えば、点線実線化モジュール1320によって実線化が行われた画像から白ランマップ画像と黒ランマップ画像を作成する。そして、その作成された白ランマップ画像と黒ランマップ画像に基づいて、画像受付モジュール1310によって受け付けられた画像から線分を抽出する。なお、線分抽出モジュール1330内の構成、処理内容等についての詳細は、図14等を用いて後述する。
The line segment extraction module 1330 is connected to the dotted line solid line module 1320 and the logical product synthesis module 1340. A line segment, which is a ruled line, is extracted from the image that has been solidified by the dotted line solid line module 1320. Then, an image having only ruled lines is passed to the logical product synthesis module 1340.
Specifically, for example, a white run map image and a black run map image are created from an image that has been solid lined by the dotted line solid line module 1320. A line segment is extracted from the image received by the image receiving module 1310 based on the generated white run map image and black run map image. Details of the configuration, processing contents, and the like in the line segment extraction module 1330 will be described later with reference to FIG.

論理積合成モジュール1340は、画像受付モジュール1310、線分抽出モジュール1330、画像出力モジュール1350と接続されている。線分抽出モジュール1330によって作成された罫線だけの画像と画像受付モジュール1310によって受け付けられた画像との論理積合成を行い、文書から文字を削除して罫線だけの画像を作成する。なお、論理積合成モジュール1340内の構成、処理内容等についての詳細は、図14等を用いて後述する。   The logical product synthesis module 1340 is connected to the image reception module 1310, the line segment extraction module 1330, and the image output module 1350. The logical product synthesis of the image of only the ruled line created by the line segment extraction module 1330 and the image accepted by the image receiving module 1310 is performed, and characters are deleted from the document to create an image of only the ruled line. Details of the configuration, processing contents, etc. in the logical product synthesis module 1340 will be described later with reference to FIG.

画像出力モジュール1350は、論理積合成モジュール1340と接続されている。図1に例示した画像出力モジュール150と同等のものであり、論理積合成モジュール1340から受け取った画像を出力する。例えば、フォーム認識処理装置へ出力して、フォーム認識処理装置がその画像を認識してフォームの種別に沿った処理を行うようにしてもよい。また、表解析処理装置へ出力して、表解析処理装置が罫線から構成されている表の解析処理を行うようにしてもよい。   The image output module 1350 is connected to the logical product synthesis module 1340. The image output module 150 is equivalent to the image output module 150 illustrated in FIG. 1, and outputs an image received from the logical product synthesis module 1340. For example, the image may be output to the form recognition processing apparatus, and the form recognition processing apparatus may recognize the image and perform processing according to the form type. Alternatively, the data may be output to a table analysis processing apparatus, and the table analysis processing apparatus may perform analysis processing on a table composed of ruled lines.

図14は、第2の実施の形態の構成例についての詳細なモジュール構成図である。
画像受付モジュール1310は、白ランマップ画像作成モジュール1421H、論理和処理モジュール1423H、白ランマップ画像作成モジュール1421V、論理和処理モジュール1423V、論理積処理モジュール1441と接続されている。図2に例示した画像受付モジュール110と同等のものである。
FIG. 14 is a detailed module configuration diagram of a configuration example according to the second embodiment.
The image reception module 1310 is connected to the white run map image creation module 1421H, the logical sum processing module 1423H, the white run map image creation module 1421V, the logical sum processing module 1423V, and the logical product processing module 1441. This is equivalent to the image reception module 110 illustrated in FIG.

点線実線化モジュール1320は、水平方向処理モジュール1400Hと垂直方向処理モジュール1400Vに分かれており、点線実線化モジュール1320内の水平方向処理モジュール1400Hは、白ランマップ画像作成モジュール1421H、白ランマップフィルタリングモジュール1422H、論理和処理モジュール1423Hを有しており、点線実線化モジュール1320内の垂直方向処理モジュール1400Vは、白ランマップ画像作成モジュール1421V、白ランマップフィルタリングモジュール1422V、論理和処理モジュール1423Vを有している。
線分抽出モジュール1330は、論理和処理モジュール1434を有しており、その他のモジュールは水平方向処理モジュール1400Hと垂直方向処理モジュール1400Vに分かれており、線分抽出モジュール1330内の水平方向処理モジュール1400Hは、白ランマップ画像作成モジュール1431H、黒ランマップ画像作成モジュール1432H、黒白ランマップフィルタリングモジュール1433Hを有しており、線分抽出モジュール1330内の垂直方向処理モジュール1400Vは、白ランマップ画像作成モジュール1431V、黒ランマップ画像作成モジュール1432V、黒白ランマップフィルタリングモジュール1433Vを有している。
水平方向処理モジュール1400Hと垂直方向処理モジュール1400Vの両者は水平方向、垂直方向の罫線を扱う点では異なるが、90度回転させれば同じ処理を行っているものであり、同等の対応するモジュールを有している。以下の説明では、いずれか一方又は両者を統合して説明する。
The dotted line solid line module 1320 is divided into a horizontal direction processing module 1400H and a vertical direction processing module 1400V. The horizontal direction processing module 1400H in the dotted line solid line module 1320 includes a white run map image creation module 1421H and a white run map filtering module. 1422H, a logical sum processing module 1423H, and a vertical direction processing module 1400V in the dotted line solid line module 1320 has a white run map image creation module 1421V, a white run map filtering module 1422V, and a logical sum processing module 1423V. ing.
The line segment extraction module 1330 has a logical sum processing module 1434, and other modules are divided into a horizontal direction processing module 1400H and a vertical direction processing module 1400V. The horizontal direction processing module 1400H in the line segment extraction module 1330 Has a white run map image creation module 1431H, a black run map image creation module 1432H, and a black and white run map filtering module 1433H. The vertical direction processing module 1400V in the line segment extraction module 1330 is a white run map image creation module. 1431V, black run map image creation module 1432V, and black and white run map filtering module 1433V.
Both the horizontal direction processing module 1400H and the vertical direction processing module 1400V are different in that they handle horizontal and vertical ruled lines, but the same processing is performed if they are rotated 90 degrees. Have. In the following description, either one or both will be described.

点線実線化モジュール1320内の白ランマップ画像作成モジュール1421、白ランマップフィルタリングモジュール1422、論理和処理モジュール1423は、それぞれ図2に例示した白ランマップ画像作成モジュール222、白ランマップフィルタリングモジュール223、論理和処理モジュール224と同等のものである。   The white run map image creation module 1421, the white run map filtering module 1422, and the logical sum processing module 1423 in the dotted line solid line module 1320 are respectively a white run map image creation module 222, a white run map filtering module 223 illustrated in FIG. This is equivalent to the logical sum processing module 224.

白ランマップ画像作成モジュール1431は、論理和処理モジュール1423、黒白ランマップフィルタリングモジュール1433と接続されている。論理和処理モジュール1423から受け取った画像(点線が実線化された画像)を用いて白ランマップ画像を作成する。そして、作成した白ランマップ画像を黒白ランマップフィルタリングモジュール1433へ渡す。
黒ランマップ画像作成モジュール1432は、論理和処理モジュール1423、黒白ランマップフィルタリングモジュール1433と接続されている。論理和処理モジュール1423から受け取った画像(点線が実線化された画像)を用いて黒ランマップ画像を作成する。そして、作成した黒ランマップ画像を黒白ランマップフィルタリングモジュール1433へ渡す。
The white run map image creation module 1431 is connected to the logical sum processing module 1423 and the black and white run map filtering module 1433. A white run map image is created using the image received from the logical sum processing module 1423 (image in which the dotted line is made into a solid line). Then, the created white run map image is passed to the black and white run map filtering module 1433.
The black run map image creation module 1432 is connected to the logical sum processing module 1423 and the black and white run map filtering module 1433. A black run map image is created using the image received from the logical sum processing module 1423 (the image in which the dotted line is made into a solid line). The generated black run map image is passed to the black and white run map filtering module 1433.

黒白ランマップフィルタリングモジュール1433は、白ランマップ画像作成モジュール1431、黒ランマップ画像作成モジュール1432、論理和処理モジュール1434と接続されている。白ランマップ画像作成モジュール1431から受け取った白ランマップ画像、黒ランマップ画像作成モジュール1432から受け取った黒ランマップ画像を用いて、罫線を抽出する。
実線だけの画像(点線が実線化された画像を含む)において、「文字の黒ランレングスに隣接する白ランレングスの長さは、実線の黒ランレングスに隣接する白ランレングスに比較して短い」という性質がある。図15は、黒ランレングスと白ランレングスとの関係例を示す説明図である。図15(b)に例示するように文字画像1550の隣接領域1560、1570の白ランレングス長は、図15(a)に例示する直線画像1510の隣接領域1520、1530の白ランレングス長よりも短い。
The black and white run map filtering module 1433 is connected to the white run map image creation module 1431, the black run map image creation module 1432, and the logical sum processing module 1434. Ruled lines are extracted using the white run map image received from the white run map image creation module 1431 and the black run map image received from the black run map image creation module 1432.
In an image with only a solid line (including an image in which the dotted line is made into a solid line), “The length of the white run length adjacent to the black run length of the character is shorter than the white run length adjacent to the black run length of the solid line. ”. FIG. 15 is an explanatory diagram illustrating a relationship example between a black run length and a white run length. As illustrated in FIG. 15B, the white run lengths of the adjacent regions 1560 and 1570 of the character image 1550 are larger than the white run lengths of the adjacent regions 1520 and 1530 of the linear image 1510 illustrated in FIG. short.

図16は、黒白ランマップフィルタリングモジュール1433Vによる処理例を示す説明図である。白ランマップ画像作成モジュール1431Vから受け取った白ランマップ画像と黒ランマップ画像作成モジュール1432Vから受け取った黒ランマップ画像を用いて、フィルタリング処理を行う。
ここでのフィルタリング処理とは、以下の4つの条件を満たす場合に、その注目画素を黒画素(ON)として出力し、それ以外の場合は白画素(OFF)として出力するものである。
(1V)横方向9×1画素フィルタ(図16(a)(b)に例示するフィルタ1610、1620)内の中央に位置する注目画素が黒画素であること
(2V)注目画素における黒ランレングス長が予め定められたしきい値(TH_AV)以上であること
(3V)注目画素の右半分4画素のいずれかの白ランレングス長が予め定められたしきい値(TH_BV)以上であること
(4V)注目画素の左半分4画素のいずれかの白ランレングス長が予め定められたしきい値(TH_CV)以上であること
FIG. 16 is an explanatory diagram showing an example of processing by the black and white run map filtering module 1433V. Filtering processing is performed using the white run map image received from the white run map image creation module 1431V and the black run map image received from the black run map image creation module 1432V.
In this filtering process, when the following four conditions are satisfied, the target pixel is output as a black pixel (ON), and in other cases, it is output as a white pixel (OFF).
(1V) The pixel of interest located at the center in the horizontal 9 × 1 pixel filter (filters 1610 and 1620 illustrated in FIGS. 16A and 16B) is a black pixel. (2V) Black run length of the pixel of interest The length is equal to or greater than a predetermined threshold (TH_AV). (3V) The white run length of any one of the four pixels in the right half of the target pixel is equal to or greater than a predetermined threshold (TH_BV). 4V) The white run length of any one of the four pixels in the left half of the target pixel is equal to or greater than a predetermined threshold (TH_CV).

黒白ランマップフィルタリングモジュール1433Hによる処理の場合の条件も、前述の4条件と同等のものであり、以下の4つの条件を満たす場合に、その注目画素を黒画素(ON)として出力し、それ以外の場合は白画素(OFF)として出力するものである。
(1H)縦方向1×9画素フィルタ内の中央に位置する注目画素が黒画素であること
(2H)注目画素における黒ランレングス長が予め定められたしきい値(TH_AH)以上であること
(3H)注目画素の上半分4画素のいずれかの白ランレングス長が予め定められたしきい値(TH_BH)以上であること
(4H)注目画素の下半分4画素のいずれかの白ランレングス長が予め定められたしきい値(TH_CH)以上であること
なお、これらの条件を満たすか否かについては、白ランマップ画像と黒ランマップ画像の両方を参照する。また、TH_AV、TH_BV、TH_CV、TH_AH、TH_BH、TH_CHは、それぞれ異なる値であってもよいし、同じ値が含まれていてもよい。
なお、フィルタのサイズは、検出する線幅に応じたものとなるように可変としてもよい。
The conditions for processing by the black and white run map filtering module 1433H are also equivalent to the above four conditions. When the following four conditions are satisfied, the target pixel is output as a black pixel (ON), and the others In this case, the pixel is output as a white pixel (OFF).
(1H) The target pixel located in the center of the vertical 1 × 9 pixel filter is a black pixel. (2H) The black run length length of the target pixel is equal to or greater than a predetermined threshold (TH_AH). 3H) The white run length of any of the upper half 4 pixels of the target pixel is equal to or greater than a predetermined threshold (TH_BH). (4H) The white run length of any of the lower half 4 pixels of the target pixel. Is greater than or equal to a predetermined threshold value (TH_CH). Note that whether or not these conditions are satisfied refers to both the white run map image and the black run map image. Further, TH_AV, TH_BV, TH_CV, TH_AH, TH_BH, and TH_CH may be different values or may include the same value.
Note that the size of the filter may be variable so as to correspond to the detected line width.

黒白ランマップフィルタリングモジュール1433Vによって、図16(a)に例示する罫線の黒画素は黒画素(ON)として出力され、図16(b)に例示する文字内の黒画素は白画素(OFF)として出力されることとなる。   The black pixel of the ruled line illustrated in FIG. 16A is output as a black pixel (ON) by the black-and-white run map filtering module 1433V, and the black pixel in the character illustrated in FIG. 16B is output as a white pixel (OFF). Will be output.

論理和処理モジュール1434は、黒白ランマップフィルタリングモジュール1433H、黒白ランマップフィルタリングモジュール1433V、論理積処理モジュール1441と接続されている。黒白ランマップフィルタリングモジュール1433Hからの横罫線だけが抽出された画像と黒白ランマップフィルタリングモジュール1433Vからの縦罫線だけが抽出された画像との論理和合成を行うことによって、点線が実線化された罫線だけの画像を作成する。そして、その作成された画像を論理積処理モジュール1441へ渡す。
論理積処理モジュール1441は、画像受付モジュール1310、論理和処理モジュール1434、画像出力モジュール1350と接続されている。論理和処理モジュール1434からの点線が実線化された罫線だけの画像と画像受付モジュール1310からの画像との論理積処理を行うことによって、点線を含む罫線だけの画像を作成する。そして、その作成された画像を画像出力モジュール1350へ渡す。
The logical sum processing module 1434 is connected to the black and white run map filtering module 1433H, the black and white run map filtering module 1433V, and the logical product processing module 1441. A ruled line in which a dotted line is made a solid line by performing a logical sum synthesis of an image in which only a horizontal ruled line from the black and white run map filtering module 1433H is extracted and an image in which only a vertical ruled line from the black and white run map filtering module 1433V is extracted. Just create an image. Then, the created image is transferred to the logical product processing module 1441.
The logical product processing module 1441 is connected to the image receiving module 1310, the logical sum processing module 1434, and the image output module 1350. An image of only the ruled line including the dotted line is created by performing a logical product process on the image of only the ruled line in which the dotted line from the logical sum processing module 1434 is turned into a solid line and the image from the image receiving module 1310. Then, the created image is transferred to the image output module 1350.

画像出力モジュール1350は、論理積処理モジュール1441と接続されている。論理積処理モジュール1441から罫線だけの画像を受け取り、出力する。
図17は、第2の実施の形態による処理例を示す説明図である。受付画像1710は、画像受付モジュール1310が受け付ける画像の例であり、文字、写真画像、点線、実線等の罫線が含まれている。出力画像1720は、第2の実施の形態による処理結果であり、画像出力モジュール1350が出力する画像である。このように点線、実線等の罫線だけの画像になっている。
The image output module 1350 is connected to the logical product processing module 1441. An image having only ruled lines is received from the logical product processing module 1441 and output.
FIG. 17 is an explanatory diagram illustrating a processing example according to the second exemplary embodiment. The received image 1710 is an example of an image received by the image receiving module 1310, and includes ruled lines such as characters, photographic images, dotted lines, and solid lines. An output image 1720 is a processing result according to the second embodiment, and is an image output by the image output module 1350. Thus, the image is only a ruled line such as a dotted line or a solid line.

図18は、第3の実施の形態の反転・論理積処理モジュール1840の構成例についての詳細なモジュール構成図である。これは、第2の実施の形態の論理積合成モジュール1340を反転・論理積処理モジュール1840に置き換えたものである。なお、第2の実施の形態と同種の部位には同一符号を付し重複した説明を省略する。
反転・論理積処理モジュール1840は、反転処理モジュール1841、論理積処理モジュール1842を有している。
反転処理モジュール1841は、論理和処理モジュール1434、論理積処理モジュール1842と接続されている。論理和処理モジュール1434から受け取った点線が実線化された罫線だけの画像の反転処理を行う。反転処理は、第1の実施の形態の反転処理モジュール231と同等の処理である。そして、反転処理した画像を論理積処理モジュール1842へ渡す。
論理積処理モジュール1842は、画像受付モジュール1310、反転処理モジュール1841、画像出力モジュール1350と接続されている。画像受付モジュール1310から受け取った画像と反転処理モジュール1841から受け取った反転画像との論理積処理を行うことによって、罫線を削除した文字だけの画像を作成する。そして、その文字だけの画像を画像出力モジュール1350へ渡す。
画像出力モジュール1350は、論理積処理モジュール1842と接続されている。論理積処理モジュール1842から受け取った画像を出力する。例えば、文字認識装置へ出力して、文字認識装置が文字認識を行うようにしてもよい。
FIG. 18 is a detailed module configuration diagram of a configuration example of the inversion / logical product processing module 1840 according to the third embodiment. This is obtained by replacing the logical product synthesis module 1340 of the second embodiment with an inversion / logical product processing module 1840. In addition, the same code | symbol is attached | subjected to the site | part of the same kind as 2nd Embodiment, and the overlapping description is abbreviate | omitted.
The inversion / logical product processing module 1840 includes an inversion processing module 1841 and a logical product processing module 1842.
The inversion processing module 1841 is connected to the logical sum processing module 1434 and the logical product processing module 1842. An image reversal process is performed only for the ruled lines in which the dotted lines received from the logical sum processing module 1434 are turned into solid lines. The inversion processing is equivalent to the inversion processing module 231 of the first embodiment. Then, the inverted image is passed to the logical product processing module 1842.
The logical product processing module 1842 is connected to the image receiving module 1310, the inversion processing module 1841, and the image output module 1350. By performing an AND process on the image received from the image receiving module 1310 and the inverted image received from the inversion processing module 1841, an image of only the characters from which the ruled lines have been deleted is created. Then, an image of only that character is passed to the image output module 1350.
The image output module 1350 is connected to the logical product processing module 1842. The image received from the logical product processing module 1842 is output. For example, the data may be output to a character recognition device, and the character recognition device may perform character recognition.

図19を参照して、前述の実施の形態の画像処理装置のハードウェア構成例について説明する。図19に示す構成は、例えばパーソナルコンピュータ(PC)などによって構成されるものであり、スキャナ等のデータ読み取り部1917と、プリンタなどのデータ出力部1918を備えたハードウェア構成例を示している。   A hardware configuration example of the image processing apparatus according to the above-described embodiment will be described with reference to FIG. The configuration illustrated in FIG. 19 is configured by, for example, a personal computer (PC), and illustrates a hardware configuration example including a data reading unit 1917 such as a scanner and a data output unit 1918 such as a printer.

CPU(Central Processing Unit)1901は、前述の実施の形態において説明した各種のモジュール、すなわち、白ランマップ画像作成モジュール222H、白ランマップフィルタリングモジュール223H、論理和処理モジュール224H、黒ランマップ画像作成モジュール225H、しきい値処理モジュール226H、収縮処理モジュール232、黒白ランマップフィルタリングモジュール1433H等の各モジュールの実行シーケンスを記述したコンピュータ・プログラムにしたがった処理を実行する制御部である。   A CPU (Central Processing Unit) 1901 includes various modules described in the above-described embodiments, that is, a white run map image creation module 222H, a white run map filtering module 223H, a logical sum processing module 224H, and a black run map image creation module. It is a control unit that executes processing according to a computer program that describes the execution sequence of each module such as 225H, threshold processing module 226H, contraction processing module 232, black and white run map filtering module 1433H.

ROM(Read Only Memory)1902は、CPU1901が使用するプログラムや演算パラメータ等を格納する。RAM(Random Access Memory)1903は、CPU1901の実行において使用するプログラムや、その実行において適宜変化するパラメータ等を格納する。これらはCPUバスなどから構成されるホストバス1904により相互に接続されている。   A ROM (Read Only Memory) 1902 stores programs, calculation parameters, and the like used by the CPU 1901. A RAM (Random Access Memory) 1903 stores programs used in the execution of the CPU 1901, parameters that change as appropriate during the execution, and the like. These are connected to each other by a host bus 1904 including a CPU bus.

ホストバス1904は、ブリッジ1905を介して、PCI(Peripheral Component Interconnect/Interface)バスなどの外部バス1906に接続されている。   The host bus 1904 is connected to an external bus 1906 such as a peripheral component interconnect / interface (PCI) bus through a bridge 1905.

キーボード1908、マウス等のポインティングデバイス1909は、操作者により操作される入力デバイスである。ディスプレイ1910は、液晶表示装置又はCRT(Cathode Ray Tube)などがあり、各種情報をテキストやイメージ情報として表示する。   A keyboard 1908 and a pointing device 1909 such as a mouse are input devices operated by an operator. The display 1910 includes a liquid crystal display device or a CRT (Cathode Ray Tube), and displays various types of information as text or image information.

HDD(Hard Disk Drive)1911は、ハードディスクを内蔵し、ハードディスクを駆動し、CPU1901によって実行するプログラムや情報を記録又は再生させる。ハードディスクには、画像受付モジュール110が受け付けた画像、ランマップ画像などが格納される。さらに、その他の各種のデータ処理プログラム等、各種コンピュータ・プログラムが格納される。   An HDD (Hard Disk Drive) 1911 includes a hard disk, drives the hard disk, and records or reproduces a program executed by the CPU 1901 and information. The hard disk stores an image received by the image receiving module 110, a run map image, and the like. Further, various computer programs such as various other data processing programs are stored.

ドライブ1912は、装着されている磁気ディスク、光ディスク、光磁気ディスク、又は半導体メモリ等のリムーバブル記録媒体1913に記録されているデータ又はプログラムを読み出して、そのデータ又はプログラムを、インタフェース1907、外部バス1906、ブリッジ1905、及びホストバス1904を介して接続されているRAM1903に供給する。リムーバブル記録媒体1913も、ハードディスクと同様のデータ記録領域として利用可能である。   The drive 1912 reads out data or a program recorded in a removable recording medium 1913 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and the data or program is read out as an interface 1907 and an external bus 1906. , A bridge 1905, and a RAM 1903 connected via the host bus 1904. The removable recording medium 1913 can also be used as a data recording area similar to the hard disk.

接続ポート1914は、外部接続機器1915を接続するポートであり、USB、IEEE1394等の接続部を持つ。接続ポート1914は、インタフェース1907、及び外部バス1906、ブリッジ1905、ホストバス1904等を介してCPU1901等に接続されている。通信部1916は、ネットワークに接続され、外部とのデータ通信処理を実行する。データ読み取り部1917は、例えばスキャナであり、ドキュメントの読み取り処理を実行する。データ出力部1918は、例えばプリンタであり、ドキュメントデータの出力処理を実行する。   The connection port 1914 is a port for connecting the external connection device 1915 and has a connection unit such as USB or IEEE1394. The connection port 1914 is connected to the CPU 1901 and the like via the interface 1907, the external bus 1906, the bridge 1905, the host bus 1904, and the like. A communication unit 1916 is connected to a network and executes data communication processing with the outside. The data reading unit 1917 is a scanner, for example, and executes document reading processing. The data output unit 1918 is, for example, a printer, and executes document data output processing.

なお、図19に示す画像処理装置のハードウェア構成は、1つの構成例を示すものであり、本実施の形態は、図19に示す構成に限らず、本実施の形態において説明したモジュールを実行可能な構成であればよい。例えば、一部のモジュールを専用のハードウェア(例えば特定用途向け集積回路(Application Specific Integrated Circuit:ASIC)等)で構成してもよく、一部のモジュールは外部のシステム内にあり通信回線で接続しているような形態でもよく、さらに図19に示すシステムが複数互いに通信回線によって接続されていて互いに協調動作するようにしてもよい。また、複写機、ファックス、スキャナ、プリンタ、複合機(スキャナ、プリンタ、複写機、ファックス等のいずれか2つ以上の機能を有している画像処理装置)などに組み込まれていてもよい。   Note that the hardware configuration of the image processing apparatus illustrated in FIG. 19 illustrates one configuration example, and the present embodiment is not limited to the configuration illustrated in FIG. 19, and the modules described in the present embodiment are executed. Any configuration is possible. For example, some modules may be configured with dedicated hardware (for example, Application Specific Integrated Circuit (ASIC), etc.), and some modules are in an external system and connected via a communication line In addition, a plurality of systems shown in FIG. 19 may be connected to each other through communication lines so as to cooperate with each other. Further, it may be incorporated in a copying machine, a fax machine, a scanner, a printer, a multifunction machine (an image processing apparatus having any two or more functions of a scanner, a printer, a copying machine, a fax machine, etc.).

前述の実施の形態においては、水平方向と垂直方向に対しての処理を別個に示したが、一方の処理を行った後に90度回転させた画像を処理してもよい。また、水平方向と垂直方向に対しての処理を並列して行ってもよいし、順番に行うようにしてもよい。
なお、前述の各種の実施の形態を組み合わせてもよく(例えば、ある実施の形態内のモジュールを他の実施の形態内に適用する、入れ替えする等も含む)、各モジュールの処理内容として背景技術で説明した技術を採用してもよい。
また、前述の実施の形態の説明において、予め定められた値との比較において、「以上」、「以下」、「より大きい」、「より小さい(未満)」としたものは、その組み合わせに矛盾が生じない限り、それぞれ「より大きい」、「より小さい(未満)」、「以上」、「以下」としてもよい。
In the above-described embodiment, the processing for the horizontal direction and the vertical direction is shown separately. However, an image rotated by 90 degrees may be processed after performing one processing. Further, the processing for the horizontal direction and the vertical direction may be performed in parallel or in order.
Note that the various embodiments described above may be combined (for example, a module in one embodiment may be applied to another embodiment, replaced, etc.), and the background art may be used as the processing content of each module. You may employ | adopt the technique demonstrated by.
Further, in the description of the above-described embodiment, “more than”, “less than”, “greater than”, and “less than (less than)” in a comparison with a predetermined value contradicts the combination. As long as the above does not occur, “larger”, “smaller (less than)”, “more than”, and “less than” may be used.

なお、説明したプログラムについては、記録媒体に格納して提供してもよく、また、そのプログラムを通信手段によって提供してもよい。その場合、例えば、前記説明したプログラムについて、「プログラムを記録したコンピュータ読み取り可能な記録媒体」の発明として捉えてもよい。
「プログラムを記録したコンピュータ読み取り可能な記録媒体」とは、プログラムのインストール、実行、プログラムの流通などのために用いられる、プログラムが記録されたコンピュータで読み取り可能な記録媒体をいう。
なお、記録媒体としては、例えば、デジタル・バーサタイル・ディスク(DVD)であって、DVDフォーラムで策定された規格である「DVD−R、DVD−RW、DVD−RAM等」、DVD+RWで策定された規格である「DVD+R、DVD+RW等」、コンパクトディスク(CD)であって、読出し専用メモリ(CD−ROM)、CDレコーダブル(CD−R)、CDリライタブル(CD−RW)等、ブルーレイ・ディスク(Blu−ray Disc(登録商標))、光磁気ディスク(MO)、フレキシブルディスク(FD)、磁気テープ、ハードディスク、読出し専用メモリ(ROM)、電気的消去及び書換可能な読出し専用メモリ(EEPROM)、フラッシュ・メモリ、ランダム・アクセス・メモリ(RAM)等が含まれる。
そして、前記のプログラム又はその一部は、前記記録媒体に記録して保存や流通等させてもよい。また、通信によって、例えば、ローカル・エリア・ネットワーク(LAN)、メトロポリタン・エリア・ネットワーク(MAN)、ワイド・エリア・ネットワーク(WAN)、インターネット、イントラネット、エクストラネット等に用いられる有線ネットワーク、あるいは無線通信ネットワーク、さらにこれらの組み合わせ等の伝送媒体を用いて伝送させてもよく、また、搬送波に乗せて搬送させてもよい。
さらに、前記のプログラムは、他のプログラムの一部分であってもよく、あるいは別個のプログラムと共に記録媒体に記録されていてもよい。また、複数の記録媒体に分割して
記録されていてもよい。また、圧縮や暗号化など、復元可能であればどのような態様で記録されていてもよい。
The program described above may be provided by being stored in a recording medium, or the program may be provided by communication means. In that case, for example, the above-described program may be regarded as an invention of a “computer-readable recording medium recording the program”.
The “computer-readable recording medium on which a program is recorded” refers to a computer-readable recording medium on which a program is recorded, which is used for program installation, execution, program distribution, and the like.
The recording medium is, for example, a digital versatile disc (DVD), which is a standard established by the DVD Forum, such as “DVD-R, DVD-RW, DVD-RAM,” and DVD + RW. Standard “DVD + R, DVD + RW, etc.”, compact disc (CD), read-only memory (CD-ROM), CD recordable (CD-R), CD rewritable (CD-RW), Blu-ray disc ( Blu-ray Disc (registered trademark), magneto-optical disk (MO), flexible disk (FD), magnetic tape, hard disk, read-only memory (ROM), electrically erasable and rewritable read-only memory (EEPROM), flash Includes memory, random access memory (RAM), etc. .
The program or a part of the program may be recorded on the recording medium for storage or distribution. Also, by communication, for example, a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a wired network used for the Internet, an intranet, an extranet, etc., or wireless communication It may be transmitted using a transmission medium such as a network or a combination of these, or may be carried on a carrier wave.
Furthermore, the program may be a part of another program, or may be recorded on a recording medium together with a separate program. Moreover, it may be divided and recorded on a plurality of recording media. Further, it may be recorded in any manner as long as it can be restored, such as compression or encryption.

110…画像受付モジュール
120…表罫線補正モジュール
130…接触文字分離モジュール
140…論理和合成モジュール
150…画像出力モジュール
221H…水平方向処理モジュール
221V…垂直方向処理モジュール
222…白ランマップ画像作成モジュール
223…白ランマップフィルタリングモジュール
224…論理和処理モジュール
225…黒ランマップ画像作成モジュール
226…しきい値処理モジュール
227…論理和処理モジュール
231…反転処理モジュール
232…収縮処理モジュール
233…論理積処理モジュール
241…論理和処理モジュール
1310…画像受付モジュール
1320…点線実線化モジュール
1330…線分抽出モジュール
1340…論理積合成モジュール
1350…画像出力モジュール
1400H…水平方向処理モジュール
1400V…垂直方向処理モジュール
1421…白ランマップ画像作成モジュール
1422…白ランマップフィルタリングモジュール
1423…論理和処理モジュール
1431…白ランマップ画像作成モジュール
1432…黒ランマップ画像作成モジュール
1433…黒白ランマップフィルタリングモジュール
1434…論理和処理モジュール
1441…論理積処理モジュール
1840…反転・論理積処理モジュール
1841…反転処理モジュール
1842…論理積処理モジュール
DESCRIPTION OF SYMBOLS 110 ... Image reception module 120 ... Table ruled line correction module 130 ... Contact character separation module 140 ... Logical sum synthesis module 150 ... Image output module 221H ... Horizontal direction processing module 221V ... Vertical direction processing module 222 ... White run map image creation module 223 ... White run map filtering module 224 ... logical sum processing module 225 ... black run map image creation module 226 ... threshold processing module 227 ... logical sum processing module 231 ... inversion processing module 232 ... contraction processing module 233 ... logical product processing module 241 ... Logical sum processing module 1310 ... Image reception module 1320 ... Dotted line solid line module 1330 ... Line segment extraction module 1340 ... Logical product synthesis module 1350 ... Image output module 1400H ... Horizontal direction processing module 1400V ... Vertical direction processing module 1421 ... White run map image creation module 1422 ... White run map filtering module 1423 ... Logical sum processing module 1431 ... White run map image creation module 1432 ... Black run map image creation module 1433 ... black and white run map filtering module 1434 ... logical sum processing module 1441 ... logical product processing module 1840 ... inversion / logical product processing module 1841 ... inversion processing module 1842 ... logical product processing module

Claims (4)

画像を受け付ける画像受付手段と、
前記画像受付手段によって受け付けられた画像内における黒画素又は白画素が連続する度数を画素値として有する連続度数画像を作成する連続度数画像作成手段と、
前記連続度数画像作成手段によって作成された連続度数画像に基づいて、切れ目のある線を実線に変更する実線化を行う実線化手段
を具備し、
前記実線化手段は、前記連続度数画像内の画素であって、水平方向又は垂直方向に連続している度数を画素値として有する画素の画素値と、予め定められた第1の閾値とを比較することにより2つの第1の画素を抽出し、前記2つの第1の画素に挟まれた線分は前記度数の方向と直角に交差しており、前記2つの第1の画素の間に挟まれた画素の画素値と予め定められた第2の閾値とを比較することにより、前記第1の画素に挟まれた線分上にある第2の画素を抽出し、該第2の画素を前記切れ目のある線の切れ目部分として実線化を行うものである
ことを特徴とする画像処理装置。
Image receiving means for receiving images;
A continuous power image creating means for creating a continuous power image having, as a pixel value, a frequency of continuous black pixels or white pixels in the image received by the image receiving means;
Based on the continuous power image created by the continuous power image creating means, a solid line forming means for performing a solid line to change a line having a break into a solid line; and
The solid line means compares a pixel value of a pixel in the continuous frequency image having a pixel value that is a frequency that is continuous in the horizontal direction or the vertical direction with a predetermined first threshold value. Thus, two first pixels are extracted, and a line segment sandwiched between the two first pixels intersects the direction of the power at a right angle, and is sandwiched between the two first pixels. By comparing the pixel value of the selected pixel with a predetermined second threshold value, the second pixel on the line segment sandwiched between the first pixels is extracted, and the second pixel is An image processing apparatus for performing a solid line as a cut line portion of the cut line .
前記実線化手段によって実線化された線に基づいて作成された画像に基づいて、前記受付手段によって受け付けられた画像内の実線又は切れ目のある線と接触している画素塊を分離する分離手段
をさらに具備することを特徴とする請求項1に記載の画像処理装置。
Separating means for separating a pixel block in contact with a solid line or a broken line in the image received by the receiving means based on an image created based on the solid line made by the solid line means The image processing apparatus according to claim 1, further comprising:
前記実線化手段によって実線化が行われた画像内の白画素が連続する度数を画素値として有する白連続度数画像を作成する白連続度数画像作成手段と、
前記実線化手段によって実線化が行われた画像内の黒画素が連続する度数を画素値として有する黒連続度数画像を作成する黒連続度数画像作成手段と、
前記白連続度数画像作成手段によって作成された白連続度数画像と前記黒連続度数画像作成手段によって作成された黒連続度数画像に基づいて、前記画像受付手段によって受け付けられた画像から線分を抽出する線分抽出手段
をさらに具備することを特徴とする請求項1又は2に記載の画像処理装置。
A white continuous power image creating means for creating a white continuous power image having a frequency of continuous white pixels in the image subjected to solid line processing by the solid line processing means;
A black continuous power image creating means for creating a black continuous power image having as a pixel value a frequency of continuous black pixels in the image subjected to solid line processing by the solid line processing means;
Based on the white continuous power image created by the white continuous power image creating means and the black continuous power image created by the black continuous power image creating means, a line segment is extracted from the image received by the image receiving means. the image processing apparatus according to claim 1 or 2, further comprising a line segment extracting means.
コンピュータを、
画像を受け付ける画像受付手段と、
前記画像受付手段によって受け付けられた画像内における黒画素又は白画素が連続する度数を画素値として有する連続度数画像を作成する連続度数画像作成手段と、
前記連続度数画像作成手段によって作成された連続度数画像に基づいて、切れ目のある線を実線に変更する実線化を行う実線化手段
として機能させ
前記実線化手段は、前記連続度数画像内の画素であって、水平方向又は垂直方向に連続している度数を画素値として有する画素の画素値と、予め定められた第1の閾値とを比較することにより2つの第1の画素を抽出し、前記2つの第1の画素に挟まれた線分は前記度数の方向と直角に交差しており、前記2つの第1の画素の間に挟まれた画素の画素値と予め定められた第2の閾値とを比較することにより、前記第1の画素に挟まれた線分上にある第2の画素を抽出し、該第2の画素を前記切れ目のある線の切れ目部分として実線化を行うものである
ことを特徴とする画像処理プログラム。
Computer
Image receiving means for receiving images;
A continuous power image creating means for creating a continuous power image having, as a pixel value, a frequency of continuous black pixels or white pixels in the image received by the image receiving means;
Based on the continuous power image created by the continuous power image creating means, it functions as a solid line means for performing a solid line to change a broken line to a solid line ,
The solid line means compares a pixel value of a pixel in the continuous frequency image having a pixel value that is a frequency that is continuous in the horizontal direction or the vertical direction with a predetermined first threshold value. Thus, two first pixels are extracted, and a line segment sandwiched between the two first pixels intersects the direction of the power at a right angle, and is sandwiched between the two first pixels. By comparing the pixel value of the selected pixel with a predetermined second threshold value, the second pixel on the line segment sandwiched between the first pixels is extracted, and the second pixel is An image processing program characterized in that a solid line is formed as a cut line portion of the cut line .
JP2009212684A 2009-09-15 2009-09-15 Image processing apparatus and image processing program Active JP5365440B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2009212684A JP5365440B2 (en) 2009-09-15 2009-09-15 Image processing apparatus and image processing program
US12/776,929 US8503774B2 (en) 2009-09-15 2010-05-10 Apparatus, method and computer readable medium for performing solid-line conversion from lines having breaks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009212684A JP5365440B2 (en) 2009-09-15 2009-09-15 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2011065204A JP2011065204A (en) 2011-03-31
JP5365440B2 true JP5365440B2 (en) 2013-12-11

Family

ID=43730597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009212684A Active JP5365440B2 (en) 2009-09-15 2009-09-15 Image processing apparatus and image processing program

Country Status (2)

Country Link
US (1) US8503774B2 (en)
JP (1) JP5365440B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6044705B2 (en) * 2013-03-27 2016-12-14 株式会社ニコン Shape measuring apparatus, structure manufacturing system, shape measuring method, structure manufacturing method, and shape measuring program
JP6631119B2 (en) * 2015-09-18 2020-01-15 富士ゼロックス株式会社 Image processing device
CN109635762A (en) * 2018-12-18 2019-04-16 正元地理信息有限责任公司 A kind of city management method, system and device
CN109874051A (en) * 2019-02-21 2019-06-11 百度在线网络技术(北京)有限公司 Video content processing method, device and equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3060248B2 (en) 1991-03-06 2000-07-10 松下電器産業株式会社 Table recognition device
JP3140079B2 (en) 1991-03-19 2001-03-05 株式会社リコー Ruled line recognition method and table processing method
JP3052438B2 (en) 1991-07-03 2000-06-12 松下電器産業株式会社 Table recognition device
JPH0540847A (en) 1991-08-05 1993-02-19 Oki Electric Ind Co Ltd Table ruled line extraction method
JPH07230525A (en) 1993-12-22 1995-08-29 Ricoh Co Ltd Method for recognizing ruled line and method for processing table
JPH09282414A (en) * 1996-04-10 1997-10-31 Fujitsu Ltd Pattern extraction device
JP3391987B2 (en) * 1996-08-06 2003-03-31 株式会社リコー Form recognition device
JPH1097588A (en) * 1996-09-19 1998-04-14 Ricoh Co Ltd Ruled-line recognizing method, table processing method, and recording medium
JP2991145B2 (en) 1997-01-30 1999-12-20 日本電気株式会社 Line detector
JPH11232382A (en) 1998-02-10 1999-08-27 Hitachi Ltd Ruled line extraction method and ruled line elimination method
JP3180792B2 (en) * 1999-01-14 2001-06-25 日本電気株式会社 Character recognition device, character learning device, and computer-readable recording medium
JP4937030B2 (en) * 2007-07-24 2012-05-23 ルネサスエレクトロニクス株式会社 Image processing apparatus for vehicle

Also Published As

Publication number Publication date
US20110064305A1 (en) 2011-03-17
US8503774B2 (en) 2013-08-06
JP2011065204A (en) 2011-03-31

Similar Documents

Publication Publication Date Title
US8201084B2 (en) Image processing apparatus and computer readable medium
KR101235226B1 (en) Image processor and image processing method and recording medium
US20120134591A1 (en) Image processing apparatus, image processing method and computer-readable medium
US20150213332A1 (en) Image processing apparatus, non-transitory computer readable medium, and image processing method
JP5365440B2 (en) Image processing apparatus and image processing program
KR101248449B1 (en) Information processor, information processing method, and computer readable medium
US8805076B2 (en) Image processing apparatus, image processing method and computer readable medium
JP5601027B2 (en) Image processing apparatus and image processing program
JP4780184B2 (en) Image processing apparatus and image processing program
JP5742283B2 (en) Image processing apparatus and image processing program
JP5262778B2 (en) Image processing apparatus and image processing program
JP5489894B2 (en) Image processing apparatus and image processing program
JP6003375B2 (en) Image processing apparatus and image processing program
JP4872780B2 (en) Image processing system and image processing program
JP4793429B2 (en) Image processing apparatus and image processing program
JP6606885B2 (en) Image processing apparatus and image processing program
JP4973536B2 (en) Image processing apparatus and image processing program
JP6281309B2 (en) Image processing apparatus and image processing program
JP2016053797A (en) Image processor and image processing program
JP2012142872A (en) Image processing apparatus and image processing program
JP2009060498A (en) Image processing apparatus and image processing program
JP2010049336A (en) Image processor and image processing program
JP2008084186A (en) Image processing system and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120817

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130521

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130528

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130711

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130813

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130826

R150 Certificate of patent or registration of utility model

Ref document number: 5365440

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350