JPH0387793A - Automatically character pattern shaping method - Google Patents

Automatically character pattern shaping method

Info

Publication number
JPH0387793A
JPH0387793A JP1223944A JP22394489A JPH0387793A JP H0387793 A JPH0387793 A JP H0387793A JP 1223944 A JP1223944 A JP 1223944A JP 22394489 A JP22394489 A JP 22394489A JP H0387793 A JPH0387793 A JP H0387793A
Authority
JP
Japan
Prior art keywords
line
noise
adjacent
character
character pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1223944A
Other languages
Japanese (ja)
Inventor
Katsuhiko Nishikawa
克彦 西川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1223944A priority Critical patent/JPH0387793A/en
Publication of JPH0387793A publication Critical patent/JPH0387793A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To automatically generate a sharp, high-quality character pattern that never deteriorates the shape of an adjacent one from an alphabetic character by adopting such a constitution that the noise of an adjacent edge part is removed when the linear noise of a character pattern is removed. CONSTITUTION:The numbers w1 and w2 of self picture elements in two noise lines adjacent to the horizontal line of a dot pattern which is generated by a scanner from the alphabetic character formed by a line inserting means are obtained, and if the rate w1 / w2 is less than a prescribed threshold, the recessed noise in the noise line is buried with a black picture element. On the other hand, if the ratio w1 / w2 exceeds the prescribed threshold, a line deleting means obtains an adjacent approximate straight line along the contour line with the following black picture element in the noise line adjacent to the horizontal line as a starting point, from a trace starting point and an already traced point, instead of removing the recessed noise, deletes black dots in a part protruding from an intersection C between the edge approximate straight line and the noise line, and removes the adjacent noise. Thus, a sharp, high-quality character pattern that never deteriorates an adjacent one can be automatically generated from the alphabetic character.

Description

【発明の詳細な説明】 〔概要〕 字母の鱗部分の雑音除去を行う文字パターン自動整形方
式に関し、 直線雑音除去時に鱗のエツジ部分の雑音除去を行い、鱗
部分の形状が崩れない品質の高い美しい文字パターンを
字母から自動生成することを目的とし、 字母をスキャナなどを用いて生成したドツトパターンの
水平線(あるいは垂直線)に隣接する2つの雑音行の白
画素の数W、、W=をそれぞれ求め、これらの比w、/
wzが所定閾値よりも小さいときに第1の雑音行の凹雑
音を黒画素で埋める線挿入手段と、この線挿入手段によ
って求めた比W+/Wzが所定閾値よりも大きいときに
凹雑音除去を行うことなく、水平線(あるいは垂直線)
に隣接する雑音行の次の行の黒画素を始点として輪郭線
に沿って追跡し、始点とこの追跡した点とをもとに鱗の
エツジ近似直線を求め、このエツジ近似直線と雑音行と
の交点Cからはみ出る部分の黒ドツトを削除する線削除
手段とを備え、この線削除手段によって端部分の雑音除
去を行うようにIjI戒する。
[Detailed Description of the Invention] [Summary] Regarding an automatic character pattern shaping method that removes noise from the scale portions of letters, noise is removed from the edge portions of the scales when straight line noise is removed, and the shape of the scale portions is not distorted and is of high quality. The purpose of this paper is to automatically generate beautiful character patterns from the character capitals, and calculate the number of white pixels W, , W= in two noise lines adjacent to the horizontal line (or vertical line) of the dot pattern generated from the character capital using a scanner. Find these ratios w, /
A line insertion means for filling the concave noise in the first noise row with black pixels when wz is smaller than a predetermined threshold, and a line insertion means for removing the concave noise when the ratio W+/Wz obtained by the line insertion means is larger than a predetermined threshold. horizontal line (or vertical line) without doing
Trace along the contour line starting from the black pixel in the next row of the noise row adjacent to , find the edge approximation line of the scale based on the start point and this traced point, and connect this edge approximation line with the noise line. and a line deletion means for deleting black dots in the portion protruding from the intersection point C, and the line deletion means is designed to remove noise at the end portion.

〔産業上の利用分野〕[Industrial application field]

本発明は、字母の端部分の雑音除去を行う文字バクーン
自動整形方式に関するものである。ワードプロセッサ、
電子組版システムなどにおいて、印刷にドツトパターン
で表現する文字を使用している。日本語の場合、これら
に使用される文字数が膨大であり、これを効率的に作成
することが要求されている。
The present invention relates to an automatic character Bakun formatting method that removes noise from the end portions of characters. word processor,
In electronic typesetting systems, characters expressed in dot patterns are used for printing. In the case of Japanese, the number of characters used for these is enormous, and it is required to create them efficiently.

〔従来の技術と発明が解決しようとする課題〕従来、手
書きした字母をスキャナで読み込んでドツトパターンに
展開し、背景雑音除去、直線雑音除去、および縦・横線
整形を行い、ベクトル化などして文字パターンを生成す
るようにしていた。
[Prior art and problems to be solved by the invention] Conventionally, handwritten characters are read in with a scanner, developed into a dot pattern, background noise removed, straight line noise removed, vertical and horizontal line shaping performed, and vectorized. I was trying to generate a character pattern.

しかし、鱗に適した処理を行っていなかったため、整形
後の端部分の形状が崩れてしまい、品質が低下してしま
うという問題があった。
However, since the scales were not treated appropriately, the shape of the end portion after shaping was distorted, resulting in a decrease in quality.

本発明は、直線雑音除去時に鱗のエツジ部分の雑音除去
を行い、端部分の形状が崩れない品質の高い美しい文字
パターンを字母から自動生成することを目的としている
An object of the present invention is to remove noise from the edge portions of the scales when removing straight line noise, and to automatically generate beautiful character patterns of high quality from the capital letters without distorting the shape of the edge portions.

〔課題を解決する手段〕[Means to solve problems]

第1図を参照して課題を解決する手段を説明する。 Means for solving the problem will be explained with reference to FIG.

第1図において、線挿入手段9は、字母をスキャナなど
を用いて生成したドツトパターンの水平線(あるいは垂
直線)に隣接する2つの雑音行の白画素の数W、 、w
2をそれぞれ求め、これらの比w1/w2が所定閾値よ
りも小さいときに第1の雑音行の凹雑音を黒画素で埋め
るものである。
In FIG. 1, the line insertion means 9 extracts the number of white pixels W, , w of two noise lines adjacent to the horizontal line (or vertical line) of a dot pattern generated using a scanner or the like.
2 are calculated, and when these ratios w1/w2 are smaller than a predetermined threshold, the concave noise in the first noise row is filled with black pixels.

線削除手段10ば、線挿入手段9によって求めた比W 
I/ W 2が所定閾値よりも大きいときに、凹雑音除
去を行うことなく、水平線(あるいは垂直線)に隣接す
る雑音行の次の行の黒画素を始点として輪郭線に沿って
追跡し、始点とこの追跡した点とをも乙に鱗のエツジ近
似直線を求め、このエツジ近似直線と雑音行との交点C
からはみ出る部分の黒ドツトを削除するものである。
The ratio W obtained by the line deletion means 10 and the line insertion means 9
When I/W2 is larger than a predetermined threshold, trace along the contour line starting from the black pixel in the next row of the noise row adjacent to the horizontal line (or vertical line) without performing concave noise removal, The edge approximation line of the scale is calculated using the starting point and this traced point, and the intersection point C of this edge approximation line and the noise line is calculated.
This removes the black dots that protrude from the image.

(作用) 本発明は、第1図に示すように、線挿入手段9が字母を
スキャナなどを用いて生成したドツトパターンの水平線
(あるいは垂直線)に隣接する2つの雑音行の白画素の
数W 1 、W 1をそれぞれ求め、これらの比Wl/
Wlが所定閾値よりも小さいときに第1の雑音行の凹雑
音を黒画素で埋めるようにし、一方、求めた比w、/w
2が所定閾値よりも大きいときに凹雑音除去を行うこと
なく、線削除手段10が水平線(あるいは垂直線)に隣
接する雑音行の次の行の黒画素を始点として輪郭線に沿
って追跡し、始点とこの追跡した点とをもとに鱗のエツ
ジ近似直線を求め、このエツジ近似直線と雑音行との交
点Cからはみ出る部分の黒ドツトを削除し、端部分の雑
音除去するようにしている。
(Function) As shown in FIG. 1, the present invention provides the number of white pixels in two noise lines adjacent to a horizontal line (or vertical line) of a dot pattern generated by the line insertion means 9 using a scanner or the like. Find W 1 and W 1 respectively, and calculate their ratio Wl/
When Wl is smaller than a predetermined threshold, the concave noise in the first noise row is filled with black pixels, while the obtained ratio w, /w
2 is larger than a predetermined threshold, the line deletion means 10 traces along the contour line starting from the black pixel in the next row of the noise row adjacent to the horizontal line (or vertical line) without performing concave noise removal. , find the edge approximation line of the scale based on the starting point and this traced point, delete the black dots in the part that protrudes from the intersection C of this edge approximation line and the noise line, and remove the noise in the edge part. There is.

従って、直線雑音除去時に鱗のエツジ部分の雑音除去を
併せて行うことにより、端部分の形状を崩さない品質の
高い美しい文字パターンを字母から自動生成することが
可能となる。
Therefore, by removing noise from the edge portions of scales at the same time as straight line noise removal, it is possible to automatically generate beautiful character patterns of high quality from the capitals without disturbing the shape of the edge portions.

〔実施例〕〔Example〕

次に、第1図から第3図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 to 3.

第1図において、字母lは、文字を表現する字母であっ
て、紙上に綺麗に描かれたものである。
In FIG. 1, the letter l is a letter representing a character, and is neatly drawn on paper.

図形人力装置t2は、字母1をスキャナなどを用いて走
査して生成した2値画像を計算機などに人力するもので
ある。
The graphic human input device t2 manually inputs a binary image generated by scanning the letter 1 using a scanner or the like into a computer or the like.

入力文字パターン3は、図形入力装置2によって読み取
られた字母の2(1!画像である。
The input character pattern 3 is an image of the character 2 (1!) read by the graphic input device 2.

背景雑音除去手段21は、入カバターン3から雑音を除
去するものであって、4ないし6から構成されている。
The background noise removing means 21 removes noise from the input cover turn 3, and is composed of 4 to 6.

周囲雑音除去手段4ば、字母の文字枠などの周囲に生し
た雑音を除去するものである。
Ambient noise removal means 4 is for removing noise generated around the character frames of letters and the like.

孤立雑音除去手段5は、文字パターンに接触しない孤立
した雑音を除去するものである。
The isolated noise removal means 5 removes isolated noise that does not touch the character pattern.

輪郭雑音除去手段6は、文字パターンに接触する数ドツ
トの小さな雑音を除去するものである。
The contour noise removing means 6 removes small noises of several dots that touch the character pattern.

直線雑音除去手段22は、背景雑音除去手段21により
背景雑音を除去した文字パターンから更に直線上の雑音
を除去するものであって、マないし9から構成されてい
る。
The linear noise removing means 22 further removes linear noise from the character pattern from which the background noise has been removed by the background noise removing means 21, and is comprised of squares to 9.

黒ラン抽出手段7ば、文字パターンから水平方向、垂直
方向の黒ランを抽出するものである。
The black run extraction means 7 extracts black runs in the horizontal and vertical directions from the character pattern.

関係抽出手段8は、黒ラン抽出手段7によって抽出した
黒ランの相互関係を調べ、文字から水平線・垂直線らし
い部分を抽出するものである。
The relationship extraction means 8 examines the mutual relationship of the black runs extracted by the black run extraction means 7, and extracts portions that appear to be horizontal lines or vertical lines from the characters.

線挿入手段9は、関係抽出手段8によって抽出した文字
の水平線・垂直線に隣接する凹雑音を除去するものであ
って、水平線(あるいは垂直&’jl)に隣接する2つ
の雑音行の白画素の数W、 、w。
The line insertion means 9 removes concave noise adjacent to the horizontal and vertical lines of the character extracted by the relation extraction means 8, and removes the white pixels of two noise lines adjacent to the horizontal line (or vertical &'jl). The number of W, ,w.

をそれぞれ求め、これらの比W 1 /’ W zが所
定閾値よりも小さいときにitの雑音行の凹雑音を黒画
素で埋めるものである(第2図を用いて後述する)。
are calculated, and when these ratios W 1 /' W z are smaller than a predetermined threshold, the concave noise in the it noise row is filled with black pixels (described later with reference to FIG. 2).

鱗・雑音除去手段23は、線削除手段IOから構成され
、直線雑音除去手段22によって求めた比W I/ W
 寡が所定閾値よりも大きいときに凹雑音を除去を行う
ことなく、鎖部分に対応する水平線(あるいは垂直線)
に隣接する雑音行の次の行の、IN素を始点として輪郭
線に沿って方向が反転するまで追跡し、始点とこの追跡
した終点とをもとに鱗のエツジ近似直線を求め、このエ
ツジ近似直線と雑音行との交点Cからはみ出る部分の黒
ドツトを削除するものである(第3図を用いて1!を述
する)。
The scale/noise removing means 23 is composed of a line removing means IO, and the ratio W I/W obtained by the straight line noise removing means 22 is
Horizontal line (or vertical line) corresponding to the chain part without removing concave noise when the noise is larger than a predetermined threshold.
Starting from the IN element of the next row of the noise row adjacent to This is to delete the black dots that protrude from the intersection C between the approximate straight line and the noise line (1! will be explained using FIG. 3).

縦・横線整形手段24は、鱗雑音除去手段23などによ
って雑音が除去された文字パターンの縦線および横線を
認識して線幅を揃えるものであって、11ないし14か
らIll威されている。
The vertical/horizontal line shaping means 24 recognizes the vertical lines and horizontal lines of the character pattern from which noise has been removed by the scale noise removing means 23, etc., and aligns the line widths, and is adapted from 11 to 14.

ベクトル化手段11は、文字パターンの輪郭をベクトル
化するものである。
The vectorizing means 11 vectorizes the outline of a character pattern.

ベクトル整形手段12は、ベクトル化された輪郭ベクト
ル中に存在する雑音を除去するものである。
The vector shaping means 12 removes noise existing in the vectorized contour vector.

線幅制御手段13ば、輪郭ベクトルから縦線を認識して
線幅を制御31するものである。
The line width control means 13 recognizes vertical lines from contour vectors and controls the line width.

フルドツト化手段14ば、輪郭ベク(・ルから文字パタ
ーンの輪郭線を復元し、その内部を塗り潰して整形され
た文字パターンを生成するものである。
The full-dot converting means 14 restores the contour line of the character pattern from the contour vector and fills the inside thereof to generate a shaped character pattern.

出力文字パターン15ば、縦・横線整形手段24によっ
て整形された美しい文字パターンである。
The output character pattern 15 is a beautiful character pattern shaped by the vertical/horizontal line shaping means 24.

次に、第2図を用いて線挿入手段9の動作を詳細に説明
する。これは、第1図関係抽出手段8によって抽出した
水平線(あるいは垂直線)(図中では横方向に“−°で
示す部分)に隣接する雑音行(Y、−1)および雑音行
(Y□゛+1〉の凹雑音を除去するものである。以下説
明する。
Next, the operation of the line insertion means 9 will be explained in detail using FIG. This is a noise line (Y, -1) and a noise line (Y□ This is to remove the concave noise of ゛+1〉.It will be explained below.

ST!!P 1  →−Y方向に走査して、水平線の上
の境界となる黒ランを検出し、その行のY座標をvlと
する。また、黒ランの左端・右端のX座標をx6,3x
2とする。
ST! ! P1 → Scan in the -Y direction to detect a black run that serves as a boundary above the horizontal line, and set the Y coordinate of that row to vl. Also, set the X coordinates of the left and right ends of the black run to x6, 3x
Set it to 2.

5TEP 2  (Yl−1)行と(Y、−2)行のX
、−X、間の白画素の個数を計数し、それぞれW、 、
wtとする。
5TEP 2 X in (Yl-1) row and (Y,-2) row
, -X, and calculate the number of white pixels between W, , and W, respectively.
Let it be wt.

5TEP 3  (11w1/Iltがある閾値以上で
あれば、線削除手段10による処理を行う。
5TEP 3 (11w1/Ilt is greater than or equal to a certain threshold value, processing by the line deletion means 10 is performed.

(21w+/−オがある閾値以下であれば、cY14>
行の×1〜X!間を1に埋め、凹雑音を除去する(例え
ば第2図“その結果゛に示すように縦矢印の部分のドツ
トを埋める)。
(If 21w+/-o is below a certain threshold, cY14>
Line ×1~X! Fill in the gaps with 1 and remove concave noise (for example, fill in the dots indicated by vertical arrows as shown in "Result" in Figure 2).

5TEP 4  + Y方向に走査して、水平線の下の
境界となる黒ランを検出し、その行のY座標をY、とす
る。また、黒ランの左端・右端のX座標をX8、×、と
する。
5TEP 4 + Scan in the Y direction to detect a black run that is the lower boundary of the horizontal line, and set the Y coordinate of that row to Y. Also, let the X coordinates of the left and right ends of the black run be X8,×.

5TEP 5  (Y*+1)行と(Y1+2)行のX
 s 〜X e間の白画素の個数を計数し、それぞれW
j 、w、とする。
5TEP 5 X in (Y*+1) and (Y1+2) rows
Count the number of white pixels between s and Xe, and calculate W
Let j, w.

5TEP 6  (1)Ws/waがある閾値以上であ
れば、線削除手段10による処理を行う。
5TEP 6 (1) If Ws/wa is equal to or greater than a certain threshold value, processing by the line deletion means 10 is performed.

(21w s / w aがある閾値以下であれば、(
Yx+1)行のX、〜x9間を1に埋め、凹雑音を除去
する。
(If 21w s / w a is below a certain threshold, (
The space between X and x9 in the Yx+1) row is filled with 1 to remove concave noise.

ST’EP 7  + X方向に走査して、垂直線の左
の境界となる黒ランを検出し、その行のX座標を×1と
する。また、黒ランの左端・右端のX座標をYesY、
とする。
ST'EP 7 + Scan in the X direction to detect a black run that is the left boundary of the vertical line, and set the X coordinate of that row to x1. Also, set the X coordinates of the left and right ends of the black run to YesY,
shall be.

5TEP 8  (XI−1)行と(X、−2)行のY
、 〜Yt間の白画素の個数を計数し、それぞれW、 
、vHとする。
5TEP 8 Y in rows (XI-1) and (X,-2)
, 〜Yt, and calculate the number of white pixels between W and Yt, respectively.
, vH.

5TEP 9  (1,、)  w1/wsがある閾値
以上であれば、線削除手段10による処理を行う。
5TEP 9 (1,,) If w1/ws is greater than or equal to a certain threshold, processing is performed by the line deletion means 10.

(2)wt/wtがある閾値以下であれば、(L−1)
行のY、〜Yi間を1に埋め、凹雑音を除去する。
(2) If wt/wt is below a certain threshold, (L-1)
The spaces between Y and Yi in the rows are filled with 1 to remove concave noise.

5TEP 10 +X方向に走査して、垂直線の右の境
界となる黒ランを検出し、その行のX座標をXIとする
。また、黒ランの左端・右端のX座標をYl、Y、とす
る。
5TEP 10 Scan in the +X direction to detect a black run that is the right boundary of the vertical line, and set the X coordinate of that row to XI. Also, let the X coordinates of the left and right ends of the black run be Yl, Y.

5TEP 11 (XI−1)行と(xz−2)行のY
 ’s 〜Y *間の白画素の個数を計数し、それぞれ
W= 、W、とする。
5TEP 11 Y in rows (XI-1) and (xz-2)
The number of white pixels between 's and Y* is counted and set as W= and W, respectively.

ST[!P 12 (1)  wi/waがある閾値以
上であれば、線削除手段10による処理を行う。
ST[! P 12 (1) If wi/wa is greater than or equal to a certain threshold, the line deletion means 10 performs processing.

12)  w x / w 4がある閾値以下であれば
、(L−1)行のY、〜Y4間を1に埋め、凹雑音を除
去する。
12) If w x / w 4 is less than a certain threshold, the space between Y and Y4 in row (L-1) is filled with 1 to remove concave noise.

以上の処理によって、例えば第2図上側に示す文字パタ
ーンが下側に示す文字パターン中の縦矢印を用いて示す
ドツトで埋め、水平線(あるいは垂直線)に隣接する凹
雑音を除去したり、あるいはw+/wx 、wa/wa
がある閾値以下の場合に次の線削除手段lOを実行して
鱗の部分を滑らかにして美しい文字パターンを生成する
Through the above processing, for example, the character pattern shown in the upper part of Figure 2 is filled with dots indicated by vertical arrows in the character pattern shown in the lower part, concave noise adjacent to horizontal lines (or vertical lines) is removed, or w+/wx, wa/wa
If it is below a certain threshold, the next line deletion means 10 is executed to smooth the scale portion and generate a beautiful character pattern.

第3図を用いて線削除手段10の動作を詳細に説明する
。鱗周囲の形状が既述したW+/Wt、W、/W4が所
定閾値以上のときに鱗の部分と認識し、以下の鎖部分の
雑音除去を行う。
The operation of the line deletion means 10 will be explained in detail using FIG. When the shape around the scales is W+/Wt, W, /W4, which are described above, are greater than a predetermined threshold value, it is recognized as a scale part, and the following noise removal is performed on the chain part.

5TEP l  水平線に隣接する黒画素をその方向が
反転するまで追跡する0例えば第3図ta+において、
文字パターンの水平線に隣接する雑音行lの次の行の始
点■からはじめて輪郭線の黒ドツトを、■、■、■、■
、■と追跡し、■で追跡方向が反転したので終了する。
5TEP l Track black pixels adjacent to the horizontal line until their direction is reversed 0 For example, in Figure 3 ta+,
Draw a black dot on the outline starting from the starting point ■ of the next line of the noise line l adjacent to the horizontal line of the character pattern, ■, ■, ■, ■
, ■ and the tracking direction is reversed at ■, so the process ends.

5TEP 2  追跡した始点と終点とをもとに鱗のエ
ツジ近似直線を求る。このエツジ近似直線は、始点■と
終点■とを結ぶ直線と、これらの間の点■から■の各点
との距離をそれぞれ算出し、距離が最大の■を求める(
第3開山))、この最大の距離が所定閾値(例えば1画
素の距jlりよりも大きいので、更に始点■とこの求め
た■とを結ぶ直線について、同様にその間に存在する点
との距離を求め、距離が所定閾値以下になるまで繰り返
し行う。
5TEP 2 Find a straight line that approximates the edge of the scales based on the traced starting and ending points. This edge approximation straight line is created by calculating the distance between the straight line connecting the starting point ■ and the ending point ■, and each point ■ between them, and finding the ■ with the maximum distance (
Since this maximum distance is larger than a predetermined threshold value (for example, the distance of one pixel), the distance between the straight line connecting the starting point ■ and the obtained ■ is similarly calculated. is repeatedly performed until the distance becomes equal to or less than a predetermined threshold.

ここで、始点■と点■とを結ぶ直線が求められ、これを
工Yジ近似直線とする(第3開山))。
Here, a straight line connecting the starting point (■) and the point (2) is found, and this is used as the approximate straight line for the work Y (third opening)).

5TEP 3  水平線に隣接する雑音行1と、ST[
!P 2で抽出したエツジ近似直線との交点Cを求める
(第3図(C))。
5TEP 3 Noise line 1 adjacent to the horizon and ST[
! The intersection point C with the edge approximate straight line extracted in step P2 is determined (Fig. 3 (C)).

5TEP 4  交点Cの外側の黒画素を雑音として除
去する。これにより第3図+dlに示す矢印を用いて示
す黒ドツトが雑音として削除され、鎖部分がエンジ近似
iiI線によって滑らかにされる。
5TEP 4 Remove black pixels outside the intersection C as noise. As a result, the black dot indicated by the arrow +dl in FIG. 3 is removed as noise, and the chain portion is smoothed by the edge approximation iii line.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、文字パターンの
直線雑音除去時に鱗のエツジ部分の雑音除去を行う構成
を採用しているため、鎖部分の形状が崩れない品質の高
い美しい文字パターンを字母から自動生成することがで
きる。
As explained above, according to the present invention, since a configuration is adopted in which noise is removed from the edge portions of scales when straight line noise is removed from character patterns, high-quality and beautiful character patterns can be created without distorting the shape of the chain portions. It can be automatically generated from the alphabet.

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

第、1図は本発明の1実施例構戒図、第2図は線挿入を
説明する図、第3図は線削除を説明する図を示す。 図中、lば字母、9は線挿入手段、IOは線削除手段、
21は背景雑音除去手段、22は直線雑音除去手段、2
3はv4雑音除去手段、24は縦・横線整形手段を表す
1 shows a composition diagram of one embodiment of the present invention, FIG. 2 shows a diagram for explaining line insertion, and FIG. 3 shows a diagram for explaining line deletion. In the figure, 9 is a line insertion means, IO is a line deletion means,
21 is a background noise removal means, 22 is a linear noise removal means, 2
3 represents a V4 noise removal means, and 24 represents a vertical/horizontal line shaping means.

Claims (1)

【特許請求の範囲】 字母の鱗部分の雑音除去を行う文字パターン自動整形方
式において、 字母をスキャナなどを用いて生成したドットパターンの
水平線(あるいは垂直線)に隣接する2つの雑音行の白
画素の数w_1,w_2をそれぞれ求め、これらの比w
_1/w_2が所定閾値よりも小さいときに第1の雑音
行の凹雑音を黒画素で埋める線挿入手段(9)と、 この線挿入手段(9)によって求めた比w_1/w_2
が所定閾値よりも大きいときに凹雑音除去を行うことな
く、水平線(あるいは垂直線)に隣接する雑音行の次の
行の黒画素を始点として輪郭線に沿って追跡し、始点と
この追跡した点とをもとに鱗のエッジ近似直線を求め、
このエッジ近似直線と雑音行との交点Cからはみ出る部
分の黒ドットを削除する線削除手段(10)とを備え、 この線削除手段(20)によって鱗部分の雑音除去を行
うように構成したことを特徴とする文字パターン自動整
形方式。
[Claims] In a character pattern automatic formatting method that removes noise from the scales of a character, white pixels in two noisy lines adjacent to a horizontal line (or vertical line) of a dot pattern generated from a character using a scanner etc. Find the numbers w_1 and w_2, respectively, and calculate the ratio w
a line insertion means (9) for filling the concave noise in the first noise row with black pixels when _1/w_2 is smaller than a predetermined threshold; and a ratio w_1/w_2 obtained by this line insertion means (9).
is larger than a predetermined threshold, without performing concave noise removal, trace along the contour line starting from the black pixel in the next row of the noise row adjacent to the horizontal line (or vertical line), and Find the approximate straight line of the scale edge based on the points,
A line deletion means (10) is provided for deleting black dots in a portion protruding from the intersection point C between the edge approximation straight line and the noise line, and the line deletion means (20) is configured to remove noise from scale portions. An automatic character pattern formatting method featuring the following.
JP1223944A 1989-08-30 1989-08-30 Automatically character pattern shaping method Pending JPH0387793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1223944A JPH0387793A (en) 1989-08-30 1989-08-30 Automatically character pattern shaping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1223944A JPH0387793A (en) 1989-08-30 1989-08-30 Automatically character pattern shaping method

Publications (1)

Publication Number Publication Date
JPH0387793A true JPH0387793A (en) 1991-04-12

Family

ID=16806149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1223944A Pending JPH0387793A (en) 1989-08-30 1989-08-30 Automatically character pattern shaping method

Country Status (1)

Country Link
JP (1) JPH0387793A (en)

Similar Documents

Publication Publication Date Title
US7945114B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
US8340433B2 (en) Image processing apparatus, electronic medium, and image processing method
KR101679744B1 (en) Apparatus and method for processing data in terminal having touch screen
Ronee et al. Handwritten character recognition using piecewise linear two-dimensional warping
KR910001525B1 (en) Method of curve approximation
Kiyko Recognition of objects in images of paper based line drawings
JPH0387793A (en) Automatically character pattern shaping method
JP2846486B2 (en) Image input device
JPH01129358A (en) Arithmetic unit for table numerical value
EP0377129A3 (en) Fast spatial segmenter for handwritten characters
JP2755299B2 (en) Image processing method
JP2937607B2 (en) Layout creation device
JP2962525B2 (en) Text block recognition method
JPH0658689B2 (en) Line figure separation device
JPH06274308A (en) Uniform modeling generation processing method for bezier curve
JPS63303473A (en) System for compressing pattern data by curve approximation
JPH08180087A (en) Distortion correcting method for graphic
JP2000251013A (en) Method and device for character recognition and storage medium
JPH03286390A (en) Nonlinear normalizing method for character
JPH0695644A (en) System for recognizing straight line of character pattern
JPH02166583A (en) Character recognizing device
JPS6352278A (en) Segment extracting device
JPS63198168A (en) Device for representing linear graphic by polygonal line
JPS62284484A (en) Mask mobile type contour extraction circuit