Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3476640B2 - Noise processing method and apparatus - Google Patents
[go: Go Back, main page]

JP3476640B2 - Noise processing method and apparatus - Google Patents

Noise processing method and apparatus

Info

Publication number
JP3476640B2
JP3476640B2 JP00195297A JP195297A JP3476640B2 JP 3476640 B2 JP3476640 B2 JP 3476640B2 JP 00195297 A JP00195297 A JP 00195297A JP 195297 A JP195297 A JP 195297A JP 3476640 B2 JP3476640 B2 JP 3476640B2
Authority
JP
Japan
Prior art keywords
length
black
width
black pixel
pixels
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.)
Expired - Lifetime
Application number
JP00195297A
Other languages
Japanese (ja)
Other versions
JPH10200725A (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.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
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 Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP00195297A priority Critical patent/JP3476640B2/en
Publication of JPH10200725A publication Critical patent/JPH10200725A/en
Application granted granted Critical
Publication of JP3476640B2 publication Critical patent/JP3476640B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は文字認識で使用され
る入力用紙イメージのノイズ除去および画品質判定を行
うノイズ処理方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a noise processing method and apparatus for removing noise from an input paper image used for character recognition and determining image quality.

【0002】[0002]

【従来の技術】文字認識処理ではファクシミリ等で入力
した入力用紙イメージを認識し、オペレータが確認修正
を行っている。このため、ファクシミリ等で入力した入
力用紙イメージにノイズが含まれると正確に書かれた文
字でも誤認識が発生し、オペレータの修正が必要とな
る。また、多くのノイズ、大きなノイズが含まれた入力
用紙イメージを認識して、確認修正を行う時間が増大
し、認識せずに入力用紙を見て文字入力するよりオペレ
ータの処理時間が長くなる。このようなことから、従来
もフィルター処理やマスク処理でノイズ除去を行ってい
た。しかし、画面全体に及ぶ不定間隔の水平垂直な点
線、破線等は除去できなかった。また、除去可能と考え
られる水平垂直な直線ノイズでも、長いという理由でだ
けで除去すると入力帳票の罫線や文字を消してしまうと
いう問題があつた。
2. Description of the Related Art In a character recognition process, an operator recognizes an input paper image input by a facsimile or the like and confirms and corrects it. For this reason, if noise is included in the input paper image input by a facsimile or the like, erroneous recognition will occur even in correctly written characters, and correction by the operator is required. Further, the time required for recognizing an input paper image containing a lot of noise and a large amount of noise and performing confirmation correction increases, and the processing time of the operator becomes longer than that of observing the input paper without inputting characters. For this reason, noise removal has conventionally been performed by filter processing or mask processing. However, it was not possible to remove horizontal and vertical dotted lines, broken lines, and the like with irregular intervals over the entire screen. In addition, there is a problem that even if the horizontal and vertical linear noise that is considered to be removable is deleted only because it is long, the ruled lines and characters on the input form are erased.

【0003】[0003]

【発明が解決しようとする課題】本発明の目的は、ファ
クシミリ等から入力された入力用紙イメージの水平およ
び垂直で不規則な点線あるいは破線ノイズと、直線ノイ
ズの除去による画品質向上またはノイズの大きさによる
画品質不良と判定することで文字認識の精度向上および
オペレータの処理時間短縮を図るものである。
SUMMARY OF THE INVENTION It is an object of the present invention, the irregular dotted or dashed noise in the horizontal and vertical input paper image inputted from a facsimile or the like, the image quality or noise due to the removal of the linear noise magnitude It is intended to improve the accuracy of character recognition and shorten the processing time of the operator by determining that the image quality is bad due to the image quality.

【0004】[0004]

【課題を解決するための手段】本発明のノイズ処理方法
は、ファクシミリを含むスキャナで入力された入力用紙
イメージを水平および垂直方向に走査し、黒画素が一定
の間隔以下で存在する黒画素列の長さと幅を検出し、
長さが予め設定された黒画素列の長さに対する閾値を
越え、かつ該幅が予め設定された、黒画素列の幅に対す
る閾値以下の時に該黒画素列を除去対象の黒画素列と判
定する画素列判定段階と、除去対象と判定された黒画素
で構成される領域である黒画素領域の幅方向の両側の、
該領域の周辺から所定距離内にある領域である周辺領域
の画素を検査し、前記黒画素領域内の各幅方向の黒画素
のうち、前記周辺領域内の当該黒画素の幅方向に位置す
る画素が全て白画素である黒画素を白画素に変換する画
素列変換段階を有する。また、本発明のノイズ処理装置
は、ファクシミリを含むスキャナで入力された入力用紙
イメージを水平および垂直方向に走査し、黒画素が一定
の間隔以下で存在する黒画素列の長さと幅を検出し、該
長さが予め設定された、黒画素列の長さに対する閾値を
越え、かつ該幅が予め設定された、黒画素列の幅に対す
る閾値以下の時に前記黒画素列を除去対象の黒画素列と
判定する画素列判定手段と、除去対象と判定された黒画
素で構成される領域である黒画素領域の幅方向の両側
の、該領域の周辺から所定距離内にある領域である周辺
領域の画素を検査し、前記黒画素領域内の各幅方向の黒
画素のうち、前記周辺領域内の当該黒画素の幅方向に位
置する画素が全て白画素である黒画素を白画素に変換す
る画素列を変換する画素列変換手段を有する。
A noise processing method of the present invention scans an input paper image input by a scanner including a facsimile in horizontal and vertical directions, and a black pixel column in which black pixels exist at a certain interval or less. of detecting the length and width, said
Length is set in advance, exceeds a threshold for the length of the black pixel row, and the width is set in advance, and black pixel row to be removed a black-pixel rows when more than the threshold to the width of the black pixel columns Pixel row judgment stage to judge and black pixels judged to be removed
On both sides in the width direction of the black pixel area, which is an area composed of
A peripheral area that is an area within a predetermined distance from the periphery of the area
Of the black pixels in each width direction in the black pixel area
Located in the width direction of the black pixel in the peripheral area
Image that converts black pixels that are all white pixels to white pixels
It has a string conversion stage . Further, the noise processing device of the present invention
Is an input sheet entered by a scanner including a facsimile
Scans the image horizontally and vertically with constant black pixels
Detecting the length and width of the black pixel row existing below the interval of
Set the threshold for the length of the black pixel row, the length of which is preset.
Over the width of the black pixel column, which width is preset.
When the black pixel row is equal to or less than a threshold value,
Pixel column determination means for determination, and black image determined to be removed
Both sides in the width direction of the black pixel area, which is an area composed of elements
, Which is an area within a predetermined distance from the area surrounding the area
Inspect the pixels in the area and check the black in each width direction within the black pixel area.
Of the pixels, the position in the width direction of the black pixel in the peripheral area
Converts black pixels, which are all white pixels, to white pixels
And a pixel column conversion means for converting the pixel column.

【0005】 また、予め設定された黒画素列の長さに
対する閾値は、入力用紙イメージの傾斜角度に応じて決
められ、例えば、入力用紙イメージの傾斜がない場合、
前記入力用紙イメージの幅相当の長さであり、前記入力
用紙イメージの傾斜がある場合、文字入力欄を越える長
さである。
Further, the preset threshold value for the length of the black pixel row is determined according to the inclination angle of the input paper image.
, For example, if there is no skew in the input paper image,
The input paper image has a length corresponding to the width of the input
If the paper image is slanted, the length exceeds the character input field.
That's it.

【0006】 さらに、画素列判定段階は、予め設定さ
れた黒画素列の長さに対する閾値を越え、かつ検出され
た幅が黒画素列の幅に対する閾値を越えた時に入力用紙
イメージを画品質不良と判定する。
[0006] Furthermore, the pixel row determination step, exceeds a threshold for the length of the preset black pixel row, and detected
Width is determined at the input paper image was e Yue threshold to the width of the black pixel row image quality poor.

【0007】 本発明は、ファクシミリ等のスキャナで
入力された入力用紙イメージを水平および垂直方向に走
査し、一定間隔以下で黒画素が存在する黒画素列を直線
とみなすことで不定間隔の点線あるいは破線を直線の長
さ、幅として検出するとともに、入力用紙イメージの傾
角度を検出し、これら直線のさと傾斜角度でノイズ
除去または画品質の判定を行えるようにしたことを特徴
する。これにより、従来除去できなかった不定間隔の
水平垂直な点線あるいは破線ノイズを除去可能とすると
ともに、入力用紙イメージの傾斜角度を利用することで
入力用紙中の罫線とノイズを識別可能とするため、文字
記入欄を示す罫線を消さずにノイズ除去可能である。さ
らに、罫線や文字情報を消してしまうようなノイズを判
定可能としているため、このようなノイズの場合は画品
質不良として無駄な認識を行わないようにする点が従来
技術と大きく異なる。
The present invention scans an input paper image input by a scanner such as a facsimile in the horizontal and vertical directions, and regards a black pixel row in which black pixels are present at a certain interval or less as a straight line, thereby forming a dotted line or an indefinite space. It is characterized in that the broken line is detected as the length and width of the straight line, the inclination angle of the input paper image is detected, and noise removal or image quality determination can be performed based on the length and the inclination angle of the straight line . As a result, it is possible to remove horizontal and vertical dotted lines or broken line noise with irregular intervals that could not be removed conventionally, and it is possible to distinguish the ruled lines and noise in the input paper by using the inclination angle of the input paper image. It is possible to remove noise without erasing the ruled line indicating the character entry field. Furthermore, since noise that erases ruled lines and character information can be determined, in the case of such noise, it is significantly different from the conventional technology in that unnecessary recognition is not performed as defective image quality.

【0008】 本発明は、まず入力用紙イメージの水
および垂直方向の点線、破線、直線の長さと幅を検出
し、長さや幅が文字記入欄相当以下の線分の場合はノイ
ズ無しと判定し(小さいノイズは本発明の対象外)、長
さや幅が大きく罫線や文字情報を隠すのに十分な大きさ
の線分が存在する場合は画品質不良と判定して以降の処
理は行わない。長さが規定値以上で幅が規定値以下の線
分が存在する場合は入力用紙イメージの傾斜角度を検出
する。例えば、傾斜が無い場合は入力用紙イメージの水
平垂直幅相当の長さを有する線分で、罫線幅相当以下の
線分を除去し、傾斜がある場合は文字記入欄を越える長
さ以上で罫線幅相当以下の線分を除去する。このよう
に、大きなノイズ特有の特徴と入力用紙の傾斜角度を利
用して、入力用紙イメージの正確なノイズ除去を可能に
するとともに、入力用紙イメージの画品質不良を判定す
ることができる。
[0008] In the present invention, first horizontal and vertical dotted lines in the input paper image, broken lines, and detects a straight line length and width, if the length or width of the character entry column corresponding following line segments that no noise determination However, if there is a line segment having a large length or width and a size large enough to hide ruled lines or character information, it is determined that the image quality is poor and the subsequent processing is not performed. . When there is a line segment whose length is equal to or greater than the specified value and whose width is equal to or less than the specified value, the inclination angle of the input paper image is detected. For example, when the inclination is not the line segment to have a length of the horizontal vertical width corresponding input sheet image to remove border width corresponding following segment, if there is slope greater than or equal to the length exceeding the character entry column Remove line segments that are less than or equal to the ruled line width. As described above, the characteristic peculiar to large noise and the inclination angle of the input paper can be used to enable accurate noise removal of the input paper image and determine the image quality defect of the input paper image.

【0009】[0009]

【実施例】次に、本発明の実施例について、図面を参照
して、説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0010】図1は本発明の実施例を示すブロック図で
あり、図2は水平垂直線分の検出方法を示した図であ
り、図3は水平垂直線分の除去処理を示した図である。
図4は水平垂直線分の除去方法を示した図で、図4
(a)は除去対象黒画素列を示した図、図4(b)は除
去対象黒画素列を除去した図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing a method for detecting horizontal and vertical line segments, and FIG. 3 is a diagram showing processing for removing horizontal and vertical line segments. is there.
FIG. 4 is a diagram showing a method of removing horizontal and vertical line segments.
FIG. 4A is a diagram showing a black pixel column to be removed, and FIG. 4B is a diagram showing a black pixel column to be removed.

【0011】 図1に示すように、1は入力用紙イメー
ジを格納するイメージメモリ部、2はイメージメモリ部
lを水平垂直方向に走査して黒画素列の長さと幅を検出
し、除去対象黒画素列の判定および画品質不良を判定す
る水平垂直線分検出部、3はイメージメモリ部1に格納
された入力用紙イメージの傾斜角度を検出する用紙傾斜
検出部、4は除去対象黒画素列を挟む幅方向の両側の
域の画素を調査し、両側の領域の画素全て白画素の場
合は除去対象黒画素を白画素に変換する水平垂直線分除
去部、5は用紙傾斜検出部3で検出された、入力用紙イ
メージの傾斜角度に応じてイメージメモリ部1の傾斜補
正を行う用紙傾斜補正部、6はイメージメモリ部1に格
納された入力用紙イメージの文字を認識する文字認識
部、7は入力イメージを見ながら認識結果を修正する確
認修正部である。
As shown in FIG. 1, 1 is an image memory unit for storing an input paper image, 2 is a horizontal and vertical scanning of the image memory unit 1 to detect the length and width of a black pixel column, and the black to be removed is detected. A horizontal / vertical line segment detection unit 3 for determining a pixel row and an image quality defect, 3 is a paper inclination detection unit for detecting an inclination angle of an input paper image stored in the image memory unit 1, and 4 is a black pixel row to be removed. The horizontal and vertical line segment removing units 5 and 5 inspect the pixels on both sides of the sandwiched width direction and convert the black pixels to be removed into white pixels if all the pixels on both sides are white pixels. The input paper error detected by the inclination detector 3
A sheet inclination correction unit that performs inclination correction of the image memory unit 1 according to the inclination angle of the image, 6 is a character recognition unit that recognizes the characters of the input paper image stored in the image memory unit 1, and 7 is while looking at the input image. It is a confirmation and correction unit that corrects the recognition result.

【0012】次に、本発明の実施例の動作について、図
1、2及び図3を参照して、詳細に説明する。まず、水
平垂直線分検出部2は図2に示すようにイメージメモリ
部を水平方向と垂直方向に走査し、一定間隔(S)以下
で存在する黒画素列の長さと幅を検出する(図3のP1
とP2)。そして、検出した水平垂直の黒画素列の長さ
を判定し(図3のP3、以降図3を省略する)、検出さ
れた線分が規定値La未満で、黒画素列の幅が規定値B
未満の場合は大きな直線ノイズ無しと判定し(P4)、
除去線分無しを水平垂直線分除去部4へ通知するととも
に用紙傾斜検出部3に入力用紙イメージの傾斜検出を指
示する(P5)。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIGS. First, the horizontal / vertical line segment detection unit 2 scans the image memory unit in the horizontal direction and the vertical direction as shown in FIG. 2 to detect the length and width of the black pixel row existing at a constant interval (S) or less (see FIG. P1 of 3
And P2). Then, the length of the detected horizontal and vertical black pixel row is determined (P3 in FIG. 3, hereinafter FIG. 3 is omitted), the detected line segment is less than the specified value La, and the width of the black pixel row is the specified value. B
If less than, it is determined that there is no large linear noise (P4),
The horizontal / vertical line segment removing unit 4 is notified that there is no removal line segment, and the sheet inclination detecting unit 3 is instructed to detect the inclination of the input sheet image (P5).

【0013】検出した水平垂直の黒画素列の長さが規定
値La以上で、黒画素列の幅が規定値B以上の場合(P
6)は文字や罫線が隠れるほどのノイズであるため、画
品質不良と判定し、画品質不良を確認修正部7に通知し
て(P7)、オペレータの判断を受ける。その他の線分
のうち,検出した水平垂直の黒画素列の長さが規定値L
a以上で、黒画素列の幅が規定値B未満の場合(P8)
は,検出線分の長さ,幅,位置情報を水平垂直線分除去
部4へ通知するとともに,用紙傾斜検出部3に対し傾斜
検出を指示する(P5)。傾斜検出指示を受けた用紙傾
斜検出部3は、任意の角度で傾斜させて基準座標軸上の
任意座標からの垂直距離が等しい値となる画素の出現頻
度を集計し、出現頻度が最大となる基準座標軸の傾斜角
度を求め、この傾斜角度をもって入力用紙の入力時の傾
斜量を検出し、その傾斜量を水平垂直線分除去部4と用
紙傾斜検出部5へ通知する。
When the length of the detected horizontal and vertical black pixel row is the specified value La or more and the width of the black pixel row is the specified value B or more (P
In 6), the noise is such that the characters and ruled lines are hidden, so it is determined that the image quality is poor, and the confirmation / correction unit 7 is notified of the poor image quality (P7), and the operator determines. Of the other line segments, the length of the detected horizontal and vertical black pixel row is the specified value L.
When the width of the black pixel row is a or more and less than the specified value B (P8)
Notifies the horizontal and vertical line segment removing unit 4 of the length, width, and position information of the detected line segment, and instructs the sheet inclination detecting unit 3 to detect the inclination (P5). Upon receiving the inclination detection instruction, the sheet inclination detection unit 3 inclines at an arbitrary angle, collects the appearance frequencies of pixels having the same vertical distance from the arbitrary coordinates on the reference coordinate axis, and determines the appearance frequency as the maximum. The tilt angle of the coordinate axis is obtained, the tilt amount at the time of input of the input paper is detected by this tilt angle, and the tilt amount is notified to the horizontal and vertical line segment removing unit 4 and the paper tilt detecting unit 5.

【0014】 入力用紙イメージの傾斜角度を受け取っ
た水平垂直線分除去部4では、傾斜角度が0度場合
(P9)は水平垂直線分検出部2で検出された黒画素列
の長さが規定値Lb以上で、幅が規定値B未満の線分を
対象に除去処理を行い(P11)、傾斜がある場合(P
10)は黒画素列の長さが規定値La以上で、幅が規定
値B未満の線分を対象に除去処理を行う(P11)。
[0014] In the input paper image tilt angle received taking <br/> was horizontal vertical line removal section 4, when the inclination angle is 0 degrees (P9) black pixels detected in the horizontal and vertical line detection unit 2 When the line length is equal to or greater than the specified value Lb and the width is less than the specified value B, the removal processing is performed (P11), and if there is an inclination (P11).
In 10), the removal processing is performed on the line segment whose black pixel column length is the specified value La or more and whose width is less than the specified value B (P11).

【0015】 線分除去処理は図4で示すように指示さ
れた黒画素列の幅方向の両側の周辺画素を調査し、白画
素列に挟まれた場合は指示された黒画素を白画素に変換
することで黒画素列を除去する(P12)。そして、指
示された線分の除去を終わると、用紙傾斜検出部5へ傾
斜補正指示を通知する(P13)。傾斜補正指示の通知
を受けた用紙傾斜補正部5は用紙傾斜検出部3から通知
された傾斜角度をもとに、入力用紙イメージの傾斜補正
を行う(P7)。用紙傾斜補正部5は傾斜補正が終わる
と文字認識部6へ文字認識指示を通知する(P14)。
文字認識指示の通知を受けた文字認識部6は入力用紙イ
メージを解析して文字切り出し、文字認識を行い認識結
果を確認修正部7へ通知する(P7)。認識結果の通知
を受けた確認修正部7は認識結果とイメージメモリ部l
の入力用紙イメージをディスプレイに表示し、オペレー
タが確認修正を行う。ただし、画品質不良の通知を受け
た確認修正部7はイメージメモリ部1の入力用紙イメー
ジをディスプレイに表示し、オペレータは入力用紙イメ
ージを見ながら文字列をキーボードから入力し文字デー
タを作成する。なお、上記説明の規定値は0<La<L
b、Lb≒Wの関係にある。
In the line segment removal processing , peripheral pixels on both sides in the width direction of the designated black pixel column are examined as shown in FIG. 4, and when the pixel pixel is sandwiched between white pixel columns, the designated black pixel is changed to a white pixel. The black pixel row is removed by conversion (P12). Then, when the removal of the instructed line segment is finished, the sheet inclination detection unit 5 is notified of the inclination correction instruction (P13). Upon receipt of the notification of the tilt correction instruction, the paper tilt correction unit 5 performs tilt correction of the input paper image based on the tilt angle notified from the paper tilt detection unit 3 (P7). When the inclination correction is completed, the sheet inclination correction unit 5 notifies the character recognition unit 6 of a character recognition instruction (P14).
Upon receiving the notification of the character recognition instruction, the character recognition unit 6 analyzes the input paper image, cuts out the characters, recognizes the characters, and notifies the confirmation correction unit 7 of the recognition result (P7). The confirmation correction unit 7 that has received the notification of the recognition result recognizes the recognition result and the image memory unit l.
The input paper image of is displayed on the display, and the operator confirms and corrects it. However, the confirmation correction unit 7 which has received the notification of the poor image quality displays the input paper image of the image memory unit 1 on the display, and the operator inputs the character string from the keyboard while looking at the input paper image to create the character data. The specified value in the above description is 0 <La <L.
b and Lb≈W.

【0016】 図2は水平垂直線分の検出方法を示した
図であり、10はイメージメモリ部1に格納された入力
用紙イメージ、11は文字記入欄をあらわす罫線、12
は幅b2で間隔S2の水平点線ノイズ、13は幅b2で
間隔Sの水平破線ノイズ、14は水平破線ノイズ13
の延長線上にある幅b2の水平直線ノイズ,15は幅b
3の水平直線ノイズ、16は幅blで間隔S1の垂直点
線ノイズ、17は幅b1の垂直直線ノイズ、18は幅b
3の垂直直線ノイズ、19は水平破線ノイズ12の長
さ、20は水平破線ノイズ13と水平直線ノイズ14の
合計の長さ、21は水平直線ノイズ15の長さ、22は
垂直点線ノイズ16の長さ、23は垂直直線ノイズ17
の長さ、24は垂直直線ノイズ18の長さ、Wは入力用
紙イメージ10の最大走査幅と最大走査高さ(本例では
正方領域とした)、Bはノイズ線幅、Laはノイズと判
定する長さのノイズ閾値、Lbは走査幅におよぶと判断
するための走査幅閾値である。
FIG. 2 is a diagram showing a method of detecting horizontal and vertical line segments, 10 is an input paper image stored in the image memory unit 1, 11 is a ruled line representing a character entry field, and 12 is a ruled line.
Horizontal dotted line noise interval S2 are wide b2, 13 is a horizontal dashed line noise interval S 3 with a width b2, 14 is a horizontal dashed line noise 13
Horizontal straight line noise of width b2 on the extension line of, and 15 is width b
3 horizontal straight line noise, 16 vertical dotted line noise with width bl and interval S1, 17 vertical vertical line noise with width b1, 18 width b
3, vertical straight line noise 3, 19 is the length of the horizontal broken line noise 12, 20 is the total length of the horizontal broken line noise 13 and horizontal straight line noise 14, 21 is the length of the horizontal straight line noise 15, and 22 is the vertical dotted line noise 16. Length, 23 is vertical linear noise 17
, 24 is the length of the vertical linear noise 18, W is the maximum scanning width and maximum scanning height of the input paper image 10 (in this example, it is a square area), B is the noise line width, and La is noise. The noise threshold of length Lb is a scanning width threshold for determining that the scanning width is reached.

【0017】 次に、図2を用いて水平垂直線分の検出
方法を説明する。まずイメージメモリ部1を上端から水
平方向に走査しながら下端に進む。そして、各走査線上
の黒画素の存在を調査し、黒画素が検出された場合は、
規定値で示される距離の範囲内に次の黒画素が存在する
か調ベる。そして、黒画素を検出した場合は黒画素間の
距離を黒画素数として加算する。検出できない場合は黒
画素数として加算せず、次の黒画素を探す。このような
方法でb2画素幅で間隔S2の水平点線ノイズ12を調
査すると、黒画素が規定S未満であるため黒画素の連
続とみなして、点線ノイズの長さ19を得る。b2画素
幅で間隔S3の水平破線ノイズ13の間隔も規定値S未
満であり、直線ノイズ14との間隔S4は規定値S以上
であることから、破線の端から端までの長さと水平でb
2画素幅の直線ノイズ14の長さを加えた破線ノイズと
直線ノイズの合計の長さ20を得る。b3画素幅の直線
ノイズ15は直線ノイズの長さ21を得る。また、垂直
方向に対しても、左端から垂直方向に走査しながら右端
に進み、水平線分検出と同様の処理で、幅b1で間隔S
1の垂直点線ノイズ16を調査し、規定S未満である
ため黒画素の連続とみなし、点線ノイズの長さ22を得
る。幅b1の垂直直線ノイズ17は直線ノイズの長さ2
3を、幅b3の垂直直線ノイズ18は直線ノイズの長さ
24を得る。
Next, a method of detecting horizontal and vertical line segments will be described with reference to FIG. First, the image memory unit 1 moves to the lower end while scanning horizontally from the upper end. Then, the presence of black pixels on each scan line is investigated, and if black pixels are detected,
Check whether the next black pixel exists within the range of the distance indicated by the specified value . When black pixels are detected, the distance between black pixels is added as the number of black pixels. If it cannot be detected, the next black pixel is searched for without adding it as the number of black pixels. When the horizontal dotted line noise 12 having a width of b2 pixels and an interval of S2 is examined by such a method, since the black pixels are less than the specified value S, it is considered that the black pixels are continuous and the length 19 of the dotted line noise is obtained. Since the interval between the horizontal broken line noises 13 having the width b2 and the interval S3 is less than the specified value S, and the interval S4 with the linear noise 14 is not less than the specified value S, the length from the end of the broken line to the end is horizontal.
A total length 20 of the broken line noise and the straight line noise obtained by adding the length of the straight line noise 14 having a width of 2 pixels is obtained. For the linear noise 15 having a width of b3 pixels, the length 21 of the linear noise is obtained. Also in the vertical direction, the scanning proceeds from the left end to the right end while scanning in the vertical direction, and the same process as the detection of the horizontal line segment is performed.
The vertical dotted line noise 16 of 1 is examined, and since it is less than the specified value S, it is regarded as a continuous black pixel, and the length 22 of the dotted line noise is obtained. The vertical linear noise 17 having the width b1 is the length 2 of the linear noise.
3, the vertical linear noise 18 of width b3 obtains the length 24 of the linear noise.

【0018】このようにして各走査線のノイズの長さを
計測し、その後で水平線分の場合は、黒画素が規定値以
下で挟まれた水平線分の垂直方向のつながりを見て、垂
直線分の場合は黒画素数が既定値以下で挟まれた垂直線
分の水平方向のつながりを見て、垂直水平線分の幅を検
出する。本例では、垂直点線ノイズ16、垂直直線ノイ
ズ17は幅b1、水平点線ノイズ12、水平破線ノイズ
13、水平直線ノイズ14は幅b2、水平直線ノイズ1
5、垂直直線ノイズ18は幅b3と検出される。なお、
規定値の関係は、0<S1<S2<S3<S<S4であ
る。
In this way, the length of noise of each scanning line is measured, and then, in the case of a horizontal line segment, the vertical line is observed by observing the vertical connection of the horizontal line segments in which black pixels are sandwiched by a specified value or less. In the case of minutes, the width of the vertical horizontal line segment is detected by looking at the horizontal connection of the vertical line segments sandwiched by the number of black pixels equal to or less than a predetermined value. In this example, the vertical dotted line noise 16 and the vertical straight line noise 17 have a width b1, the horizontal dotted line noise 12, the horizontal broken line noise 13 and the horizontal straight line noise 14 have a width b2 and the horizontal straight line noise 1 respectively.
5, the vertical linear noise 18 is detected as having a width b3. In addition,
The relationship of specified values is 0 <S1 <S2 <S3 <S <S4.

【0019】この結果、ノイズ閾値Lb以上でノイズ線
幅B未満の水平点線ノイズ12、垂直点線ノイズ16、
または垂直直線ノイズ17の場合は傾斜量が0でも水平
垂直線分除去処理を、走査幅闘値La以上でノイズ線幅
B未満の水平破線ノイズ13と水平直線ノイズ14のみ
の場合には傾斜量が0以外の場合に水平垂直線分除去処
理を行い、ノイズ闘値La以上でノイズ線幅B以上の水
平直線ノイズ15または垂直直線ノイズ18の場合は画
品質不良を判定することができる。
As a result, horizontal dotted line noise 12, vertical dotted line noise 16, which is equal to or larger than the noise threshold Lb and smaller than the noise line width B,
Alternatively, in the case of the vertical straight line noise 17, the horizontal and vertical line segment removal processing is performed even if the inclination amount is 0, and in the case of only the horizontal broken line noise 13 and the horizontal straight line noise 14 that are equal to or larger than the scanning width La and less than the noise line width B, the inclination amount When is not 0, the horizontal and vertical line segment removal processing is performed, and when the horizontal linear noise 15 or the vertical linear noise 18 having the noise threshold value La or more and the noise line width B or more, the image quality defect can be determined.

【0020】 以上の処理を行うことで、規定値で示さ
れる距離の範囲以内に黒画素が存在すれば不規則な間隔
であろうと点線、破線を繋がった線分と同様の長さとし
て検出できるため、全体に及ぶが画素数としては少ない
点線、破線でも十分な長さの線分として検出できる。な
お、上記処理では傾斜角度が0かそうでないかを判断基
準にしたが、傾斜角度の少さい場合としても状況によっ
ては問題無い。また、ノイズの長さの閾値はLa、Lb
の2種類、ノイズの画素幅の闘値はBを1種類設けた
が、種類を多くし、傾斜角度と組み合わせてきめこまか
な判定を行うこともできる。さらに、本例では罫線を用
いた入力用紙イメージを用いたが文字行のみの場合で罫
線がない場合でも、信学技法PRU94−33(199
4−09)に示すように文字行の黒画素分布を用いて傾
斜角を求めることで同様の処理が可能である。
By performing the above processing, the specified value is displayed.
If there are black pixels within the range of the distance that can be detected, even if the intervals are irregular, it can be detected as the same length as the line segment connecting the dotted line and the broken line. It can be detected as a line segment of sufficient length. In the above process, whether the tilt angle is 0 or not is used as a criterion for judgment, but even if the tilt angle is small, there is no problem depending on the situation. Further, the noise length thresholds are La and Lb.
, And B has one threshold value for the pixel width of noise, but it is also possible to make more detailed determinations by increasing the number and combining it with the inclination angle . Further, in this example, the input paper image using ruled lines is used, but even if there are only ruled lines and there are no ruled lines, the communication method PRU94-33 (199) is used.
Similar processing can be performed by obtaining the tilt angle using the black pixel distribution of the character line as shown in 4-09).

【0021】図4は水平垂直線分の除去方法を示した
図、図4(a)は除去対象黒画素列を示した図、図4
(b)は除去対象黒画素列を除去した図であり、30は
除去対象黒画素、31は黒画素、32は黒画素から変化
した白画素、33は白画素である。
FIG. 4 is a diagram showing a method for removing horizontal and vertical line segments, FIG. 4 (a) is a diagram showing a black pixel row to be removed, and FIG.
(B) is a diagram in which the removal target black pixel row is removed, 30 is a removal target black pixel, 31 is a black pixel, 32 is a white pixel changed from a black pixel, and 33 is a white pixel.

【0022】次に、図4を用いて水平垂直線分の除去方
法を説明する。まず、図4(a)のように除去対線分の
位置と幅が判明すると除去対象黒画素30が判明する。
この除去対象黒画素30の上下各2走査線の白画素を調
ベ、除去対象黒画素30が白画素33で挟まれている場
合のみ、除去対象黒画素30を図4(b)に示すように
白画素32に変換する。この処理を走査線の端から端ま
で行うことでノイズ線分を除去できる。なお、本例では
除去対象黒画素30の上下2画素を調ベたが、1画素で
も、さらに多くの画素を調ベてもよい。また、上下のみ
でなく隣接する周辺画素を調ベることでもできる。
Next, a method of removing horizontal and vertical line segments will be described with reference to FIG. First, as shown in FIG. 4A, when the position and width of the removal pair line segment are known, the removal target black pixel 30 is identified.
The white pixels on the upper and lower two scanning lines of the black pixel 30 to be removed are adjusted, and the black pixel 30 to be removed is shown in FIG. 4B only when the black pixel 30 to be removed is sandwiched by the white pixels 33. To white pixels 32. By performing this processing from end to end of the scanning line, the noise line segment can be removed. In this example, two pixels above and below the black pixel 30 to be removed are aligned, but one pixel or more pixels may be aligned. Further, not only the upper and lower sides but also the adjacent peripheral pixels can be adjusted.

【0023】[0023]

【発明の効果】以上説明したように、本発明によれば
入力用紙イメージに対し水平垂直ではあるが不規則な点
線、破線を簡単な手法で検出できるとともに、入力用紙
イメージの傾斜状況を利用してノイズ線分を除去するた
め、罫線等の線分が記入された入力用紙イメージに対し
ても罫線等の線分を消すことがなく、正確なノイズ除去
を可能とするとともに、ノイズの長さ、幅によっては明
らかに認識できない入力用紙イメージに対して画品質不
良を判定することができるため無駄な認識を行わないと
いう利点がある。
As described above, according to the present invention ,
Irregular dotted lines and broken lines that are horizontal and vertical to the input paper image can be detected with a simple method, and noise lines are removed by using the inclination of the input paper image. It does not erase line segments such as ruled lines even on the input paper image that has been input, and enables accurate noise removal, and image quality for the input paper image that cannot be clearly recognized depending on the length and width of noise. Since it is possible to determine a defect, there is an advantage that unnecessary recognition is not performed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】水平垂直線分の検出方法を示した図である。FIG. 2 is a diagram showing a method of detecting horizontal and vertical line segments.

【図3】水平垂直線分の除去処理を示した図である。FIG. 3 is a diagram showing a removal process of horizontal and vertical line segments.

【図4】水平垂直線分の除去方法を示した図で、図4
(a)は除去対象黒画素列を示した図、図4(b)は除
去対象黒画素列を除去した図である。
4 is a diagram showing a method for removing horizontal and vertical line segments, and FIG.
FIG. 4A is a diagram showing a black pixel column to be removed, and FIG. 4B is a diagram showing a black pixel column to be removed.

【符号の説明】[Explanation of symbols]

1 イメージメモリ部 2 水平垂直線分検出部 3 用紙傾斜検出部 4 水平垂直線分除去部 5 用紙傾斜補正部 6 文字認識部 7 確認修正部 10 入力用紙イメージ 11 文字記入欄を示す罫線 12 水平点線ノイズ 13 水平破線ノイズ 14 水平直線ノイズ 15 水平直線ノイズ 16 垂直点線ノイズ 17 垂直直線ノイズ 18 垂直直線ノイズ 19 水平破線ノイズ12の長さ 20 水平破線ノイズ13と水平直線ノイズ14の合
計の長さ 21 水平直線ノイズ15の長さ 22 垂直点線ノイズ16の長さ 23 垂直直線ノイズ17の長さ 24 垂直直線ノイズ18の長さ 30 除去対象黒画素 31 黒画素 32 黒画素から変化した白画素 33 白画素
1 Image Memory Section 2 Horizontal / Vertical Line Segment Detection Section 3 Paper Inclination Detection Section 4 Horizontal / Vertical Line Segment Removal Section 5 Paper Inclination Correction Section 6 Character Recognition Section 7 Confirmation / Correction Section 10 Input Paper Image 11 Ruled Lines 12 for Character Entry Fields 12 Horizontal Dotted Lines Noise 13 Horizontal broken line noise 14 Horizontal straight line noise 15 Horizontal straight line noise 16 Vertical dotted line noise 17 Vertical straight line noise 18 Vertical straight line noise 19 Horizontal broken line noise 12 length 20 Horizontal broken line noise 13 and horizontal straight line noise 14 total length 21 Horizontal Length 22 of linear noise 15 Length 23 of vertical dotted noise 16 Length 24 of vertical linear noise 17 Length 30 of vertical linear noise 18 Black pixel 31 to be removed 31 Black pixel 32 White pixel changed from black pixel 33 White pixel

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岩崎 尚子 東京都武蔵野市御殿山一丁目1番3号 エヌ・ティ・ティ・アドバンステクノロ ジ株式会社内 (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/409 G06T 5/00 300 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Naoko Iwasaki 1-3 1-3 Gotenyama, Musashino-shi, Tokyo NTT Advanced Technology Corporation (58) Fields investigated (Int.Cl. 7 , DB name) H04N 1/38-1/409 G06T 5/00 300

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ファクシミリを含むスキャナで入力され
た入力用紙イメージを水平および垂直方向に走査し、黒
画素が一定の間隔以下で存在する黒画素列の長さと幅を
検出し、該長さが予め設定された、黒画素列の長さに対
する閾値を越え、かつ該幅が予め設定された黒画素列
の幅に対する閾値以下の時に該黒画素列を除去対象の黒
画素列と判定する画素列判定段階と、除去対象と判定された黒画素で構成される領域である黒
画素領域の幅方向の両側の、該領域の周辺から所定距離
内にある領域である周辺領域の画素を検査し、前記黒画
素領域内の各幅方向の黒画素のうち、前記周辺領域内の
当該黒画素の幅方向に位置する画素が全て白画素である
黒画素を白画素に変換する画素列変換段階 を有するノイ
ズ処理方法。
1. A scanning an input paper image input by a scanner comprising a facsimile horizontally and vertically, to detect the length and width of the black pixel array black pixels are present in the following regular intervals, the said length preset, beyond the threshold for the length of the black pixel rows, and the width is set in advance, the pixel determined as a black pixel row to be removed a black-pixel rows when the threshold value or less to the width of the black pixel columns Black, which is the area that consists of the black pixels that are determined to be removed at the column determination stage
Predetermined distance from the periphery of the pixel area on both sides in the width direction
The pixels in the peripheral area, which is the area inside the
Of the black pixels in each width direction in the elementary area,
All the pixels located in the width direction of the black pixel are white pixels.
A noise processing method comprising a pixel column conversion step of converting a black pixel into a white pixel .
【請求項2】 前記予め設定された黒画素列の長さに対
する閾値が、前記入力用紙イメージの傾斜角度に応じて
決められている、請求項1記載のノイズ処理方法。
2. A threshold for the length of the preset black pixel row, depending on the inclination angle of the input sheet image
The noise processing method according to claim 1 , which is determined .
【請求項3】 前記予め設定された黒画素列の長さに対
する閾値が、前記入力用紙イメージの傾斜がない場合、
前記入力用紙イメージの幅相当の長さであり、前記入力
用紙イメージの傾斜がある場合、文字入力欄を越える長
さである、請求項2記載のノイズ処理方法。
3. If the preset threshold value for the length of the black pixel row has no inclination of the input paper image,
The input paper image has a length corresponding to the width of the input
If the paper image is slanted, the length exceeds the character input field.
It is the noise processing method according to claim 2, wherein.
【請求項4】 前記画素列判定段階は、検出された長さ
、予め設定された黒画素列の長さに対する閾値を越
え、かつ検出された幅が黒画素列の幅に対する閾値を越
えた時に前記入力用紙イメージを画品質不良と判定す
請求項1記載のノイズ処理方法。
4. The pixel string determination step comprises detecting a detected length.
But above the threshold for the length of the preset black pixel row, and the detected width Yue threshold to the width of the black pixel columns
Wherein at was e determines input paper image image quality and poor noise processing method according to claim 1, wherein.
【請求項5】 ファクシミリを含むスキャナで入力され
た入力用紙イメージを水平および垂直方向に走査し、黒
画素が一定の間隔以下で存在する黒画素列の長さと幅を
検出し、該長さが予め設定された、黒画素列の長さに対
する閾値を越え、かつ該幅が予め設定された、黒画素列
の幅に対する閾値以下の時に前記黒画素列を除去対象の
黒画素列と判定する画素列判定手段と、除去対象と判定された黒画素で構成される領域である黒
画素領域の幅方向の両側の、該領域の周辺から所定距離
内にある領域である周辺領域の画素を検査し、前記黒画
素領域内の各幅方向の黒画素のうち、前記周辺領域内の
当該黒画素の幅方向に位置する画素が全て白画素である
黒画素を白画素に変換する画素列変換手段 を有するノイ
ズ処理装置。
5. A scanning an input paper image input by a scanner comprising a facsimile horizontally and vertically, to detect the length and width of the black pixel array black pixels are present in the following regular intervals, the said length A pixel that is determined to be a black pixel row to be removed when a preset threshold value for the length of the black pixel row is exceeded and the width is equal to or less than a preset threshold value for the width of the black pixel row. Black, which is an area composed of the column determination means and the black pixels determined to be removed
Predetermined distance from the periphery of the pixel area on both sides in the width direction
The pixels in the peripheral area, which is the area inside the
Of the black pixels in each width direction in the elementary area,
All the pixels located in the width direction of the black pixel are white pixels.
A noise processing device having a pixel column conversion means for converting a black pixel into a white pixel .
【請求項6】 前記予め設定された黒画素列の長さに対
する閾値が、前記入力用紙イメージの傾斜角度に応じて
決められている、請求項5記載のノイズ処理装置。
6. The threshold for the length of the preset black pixel row, depending on the inclination angle of the input sheet image
The noise processing device according to claim 5, which is determined .
【請求項7】 前記予め設定された黒画素列の長さに対
する閾値が、前記入力用紙イメージの傾斜がない場合、
前記入力用紙イメージの幅相当の長さであり、前記入力
用紙イメージの傾斜がある場合、文字入力欄を越える長
さである、請求項6記載のノイズ処理装置。
7. If the preset threshold value for the length of the black pixel row has no inclination of the input paper image,
The input paper image has a length corresponding to the width of the input
If the paper image is slanted, the length exceeds the character input field.
Is the noise processing apparatus according to claim 6, wherein.
【請求項8】 前記画素列判定手段は検出された長さ
が、予め設定された黒画素列の長さに対する閾値を越
え、かつ検出された幅が黒画素列の幅に対する閾値を越
えた時に前記入力用紙イメージを画品質不良と判定す
る、請求項5記載のノイズ処理装置。
8. The pixel row determination means has a detected length exceeding a preset threshold for the length of a black pixel row, and a detected width exceeding a threshold for the width of a black pixel row.
The noise processing device according to claim 5, wherein the image quality of the input paper is determined to be poor when it is obtained .
JP00195297A 1997-01-09 1997-01-09 Noise processing method and apparatus Expired - Lifetime JP3476640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00195297A JP3476640B2 (en) 1997-01-09 1997-01-09 Noise processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00195297A JP3476640B2 (en) 1997-01-09 1997-01-09 Noise processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH10200725A JPH10200725A (en) 1998-07-31
JP3476640B2 true JP3476640B2 (en) 2003-12-10

Family

ID=11515944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00195297A Expired - Lifetime JP3476640B2 (en) 1997-01-09 1997-01-09 Noise processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3476640B2 (en)

Also Published As

Publication number Publication date
JPH10200725A (en) 1998-07-31

Similar Documents

Publication Publication Date Title
JP2986383B2 (en) Method and apparatus for correcting skew for line scan images
US7457440B2 (en) Method of determining usability of a document image and an apparatus therefor
US6956587B1 (en) Method of automatically cropping and adjusting scanned images
JPH03201866A (en) Decision of picture skew angle from data including data of compressed form
JPH07192086A (en) Image skew detection method
US7689004B2 (en) Method and apparatus for evaluating the quality of document images
JP3571128B2 (en) Method and apparatus for recognizing dimensions of drawings
JPH0418351B2 (en)
JP3476640B2 (en) Noise processing method and apparatus
JP2006047077A (en) Screen line defect detection method and detection apparatus
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
CN107092909B (en) Angle detection algorithm based on triangle correspondence theorem
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JPH08272956A (en) Method and device for noise removal
JP3281469B2 (en) Document image inclination detecting method and apparatus
JP3038714B2 (en) Document skew correction device
JPH07121658A (en) Character string detection system
JPH0766413B2 (en) Document character direction detector
JP2000115531A (en) Image processing system and recording medium
JPH0679348B2 (en) Line cutting method
JP4250828B2 (en) Character recognition device
JP3146882B2 (en) Picture inspection method
JP4766783B2 (en) Image processing apparatus and image processing method
JP3923104B2 (en) Table processing method and table processing apparatus
JP3264547B2 (en) Micro film reader and image reading method thereof

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110926

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130926

Year of fee payment: 10

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term