JPH0122952B2 - - Google Patents

Info

Publication number
JPH0122952B2
JPH0122952B2 JP57166491A JP16649182A JPH0122952B2 JP H0122952 B2 JPH0122952 B2 JP H0122952B2 JP 57166491 A JP57166491 A JP 57166491A JP 16649182 A JP16649182 A JP 16649182A JP H0122952 B2 JPH0122952 B2 JP H0122952B2
Authority
JP
Japan
Prior art keywords
pattern
points
contour
original
outer frame
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
Application number
JP57166491A
Other languages
Japanese (ja)
Other versions
JPS5957388A (en
Inventor
Shiro Atsumi
Sadamasa Hirogaki
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP57166491A priority Critical patent/JPS5957388A/en
Publication of JPS5957388A publication Critical patent/JPS5957388A/en
Publication of JPH0122952B2 publication Critical patent/JPH0122952B2/ja
Granted legal-status Critical Current

Links

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/10Character recognition
    • G06V30/18Extraction of features or characteristics of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Input (AREA)
  • Collating Specific Patterns (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

(技術分野) 本発明は図形認識装置に関し、特に印鑑やフロ
ーチヤートなど、幾何学図形として表現できる外
枠の内部に文字や記号(以下「内部文字」と略称
する)を含んでいる図形において外枠部と内部文
字部とを分離する方法に関するものである。 (背景技術) 従来、電子計算機にプログラムを入力するため
には一般にフローチヤートを作成した後、コーデ
イングを行ないカードやテープなどにパンチして
から入力機器により入力するという手順を踏んで
いるため、多くの手数を必要としている。そこで
フローチヤートを認識しうる入力機器があれば、
フローチヤートから直接電子計算機にプログラム
を入力ることが可能であり、その省力効果は絶大
である。 ところでフローチヤートを認識するためには、
まずフローチヤートに使用されるシンボルすなわ
ち処理(長方形)、判断(菱形、六角形)、端子
(長円)、結合子(五角形、円、三角形)などを識
別分類した後、その内部文字を認識する必要があ
る。 ところで内部文字を認識する際には、シンボル
は一般にただ邪魔になるだけであるから内部文字
部のみを分離抽出できれば、内部文字の認識性能
は向上する。 また、従来、印鑑認識装置の一例である印鑑照
合装置としては、被照合印影パターンと登録印影
パターンとの位置整合をとつた後、両パターンの
マツチングをとりその一致率から被検印影の真偽
を判定する方法が知られているが、真偽の判定精
度の向上や、判定に要する時間の短縮のために
は、印鑑の外形形状や外形寸法などのように印影
外枠のみから抽出しうるいわゆる外部特徴および
印鑑内部文字の字数、文字寸法、書体などのいわ
ゆる内部特徴のうちで容易に抽出しうる特徴は極
力抽出して真偽判定に利用した方が有効であると
されている。ところで、内部特徴の抽出に際して
は、一般に印影外枠はただ邪魔になるだけである
といつた場合が多い。しかるに、内部文字部のみ
を分離抽出する簡易な方法がないために、外枠を
含めた全印影パターンから内部特徴を抽出せざる
を得ないといつた不便があつた。 (発明の課題) 本発明の目的はこれらの欠点を解決するため、
幾何学図形として表現できる外枠の内部に、内部
文字を含んでいる図形において、外枠部と内部文
字部とを簡易に分離しうるようにしたものであ
り、その特徴は、外枠とその内部の図形パターン
とを分離して識別する図形認識方法において、X
軸方向及びY軸方向の少なくとも一方向に原パタ
ーンの白点及び黒点に所定の数を加えることによ
り原パターンを塗りつぶし、塗りつぶされたパタ
ーンの最外殻輪郭線を追跡して抽出し、抽出され
た最外殻輪郭線のセルの総数に対する塗りつぶさ
れた白点である元白点のセルの数の比である元白
点数比を算出し、元白点数比が所定の値より小で
あるときは最外殻輪郭線の最外殻のセルの消去又
は値の置換又は符号の置換を前記元白点数比が前
記所定の値に達するまでくり返し、残りのパター
ンを内部の図形パターンと識別するごとき図形認
識方法にある。 (発明の構成および作用) 第1図は本発明の第1の実施例であつて、2値
化パターンを塗りつぶしパターン作成部1におい
て、外枠内部を塗りつぶして塗りつぶしパターン
を得る。次いで、最外殻輪郭追跡部2により塗り
つぶしパターンの最外殻を追跡しつつ全輪郭点数
と2値化パターンにおいては白点であつたが、塗
りつぶしによつて新たに黒点となつた点(以下元
白点と称する)の数すなわち元白点数とを計数、
元白点数比算出部3にて元白点数比=元白点数/
全輪郭点数を算出し、終結判定部4において元白
点数比が所定閾値をまだこえていないときには、
最外殻輪郭消去部5において今追跡した最外殻輪
郭を消去し、再び最外殻輪郭部追跡2に戻つて、
最外殻輪郭を消去した後の塗りつぶしパターンの
新たに最外殻となつた輪郭を追跡し……と同様な
操作を元白点数比が所定閾値を越えるまでくりか
えす。 ここで、塗りつぶしパターン作成部1につき第
2図を用いて説明する。X座標がXiでY座標が
Yjである点をP(Xi,Yj)で表わし、点P(Xi,
Yj)の値を|P(Xi、Yj)|で表わすこととする。
なお第2図は説明の便宜上、主走査間隔や副走査
間隔を実際よりも極端に荒く表示している。黒点
の値が1、白点の値が0なる2値化パターンに対
し、第2図Bに図示した如くX軸方向を主走査方
向、Y軸方向を副走査方向とするラスター・スキ
ヤンを行ない、各主走査毎に該主走査線上に存在
する黒点のうちX座標が最小である黒点のX座標
値XSと、X座標が最大である黒点のX座標値XE
を検出し、該主走査線上のXS〜XE間の全点の値
に例えば2を加える操作を行なう。例えば主走査
線lの場合、|P(XS、Yl)|=|P(XS、Yl)|+
2〜|P(XE、Yl)|=|P(XE、Yl)|+2を行
なうから、各点の値を図に示すと第2図Bの如く
なる。このような処理を副走査方向の全域、すな
わちl=1〜nまで行なつてX軸方向の塗りつぶ
しを終了する。 次いで、X軸方向の塗りつぶしを終えた図形パ
ターンを第2図Cに図示した如く、Y軸方向を主
走査方向、X軸方向を副走査方向とするラスタ
ー・スキヤンを行ない、各主走査毎に該主走査線
上に存在する値が3である点(2値化図形パター
ンにおける黒点は、値が必ず3に書きかえられて
おり、2値化図形パターンにおいては白点だつた
のにX軸方向の塗りつぶしによつて新規に黒点に
なつた点は値が必ず2である)のうちY座標が最
小である点のY座標値YSと、Y座標が最大であ
る点のY座標値YEを検出し、該主走査線上のYS
〜YEの全点の値に例えば4を加える操作を行な
う。例えば主走査線kの場合、|P(Xk、YS)|=
|P(Xk、YS)|+4〜|P(Xk、YE)|+4を行
うから、各点の値を図に示すと第2図Cの如くな
る。このような処理を副走査方向の全域すなわち
k=1〜mまで行なつて、X・Y両軸方向の塗り
つぶしを完了する。こうして得られた塗りつぶし
パターンの一例を第2図Dに図示する。なお第2
図Dにおいて、X軸方向の塗りつぶし線である水
平線と、Y軸方向の塗りつぶしである垂直線との
交点(例えばQやRやS)は、X・Y両軸方向と
も塗りつぶされた点であり、その値は7あるいは
6であり、2値化図形パターンにおいて黒点だつ
た点が7(例えばQやR)で、2値化図形パター
ンにおいて白点だつた点が6(例えばS)となつ
ている。 ところで、これまでの説明は外枠にカケがない
場合についてのものであつたため、第2図Dに
は、X軸方向のみ塗りつぶされた点又はY軸方向
のみ塗りつぶされた点が存在しないがもし外枠に
カケがあつた場合、X軸方向のみ塗りつぶされた
点の値は2となつており、Y軸方向のみ塗りつぶ
された点の値は4となつている。 これらの関係を表にまとめると下表のようにな
る。
(Technical Field) The present invention relates to a figure recognition device, and particularly to figures that include characters or symbols (hereinafter referred to as "internal characters") inside an outer frame that can be expressed as a geometric figure, such as a seal stamp or a flowchart. The present invention relates to a method of separating a frame portion and an internal character portion. (Background Art) Conventionally, in order to input a program into a computer, the steps are generally to create a flowchart, then code it, punch it on a card or tape, and then input it using an input device. It requires a lot of effort. If there is an input device that can recognize flowcharts,
It is possible to input a program directly into a computer from a flowchart, and the labor-saving effect is enormous. By the way, in order to recognize the flowchart,
First, the symbols used in the flowchart, such as processing (rectangle), judgment (diamond, hexagon), terminal (ellipse), and connector (pentagon, circle, triangle), are identified and classified, and then their internal characters are recognized. There is a need. By the way, when recognizing internal characters, symbols generally only get in the way, so if only the internal character part can be separated and extracted, the recognition performance of internal characters will improve. Conventionally, as a seal matching device, which is an example of a seal recognition device, after aligning the positions of the seal imprint pattern to be compared and the registered seal imprint pattern, the two patterns are matched and the authenticity of the tested seal imprint is determined based on the matching rate. However, in order to improve the accuracy of determining authenticity and reduce the time required for determination, it is possible to extract information only from the outer frame of the seal, such as the external shape and dimensions of the seal. It is said that it is more effective to extract as much as possible features that can be easily extracted from among the so-called external features and the so-called internal features such as the number of characters, character size, and font of the characters inside the stamp and use them for authenticity determination. By the way, when extracting internal features, it is often said that the outer frame of the seal imprint is only an obstacle. However, since there is no simple method for separating and extracting only internal character parts, there is an inconvenience in that internal features must be extracted from the entire seal imprint pattern including the outer frame. (Problems to be solved by the invention) The purpose of the present invention is to solve these drawbacks.
It is designed to easily separate the outer frame and the inner text in a figure that contains internal characters inside an outer frame that can be expressed as a geometric figure. In a figure recognition method that separates and identifies internal figure patterns,
The original pattern is filled in by adding a predetermined number to the white points and black points of the original pattern in at least one direction of the axial direction and the Y-axis direction, and the outermost shell contour of the filled pattern is traced and extracted. Calculate the original white point number ratio, which is the ratio of the number of original white point cells that are filled white points to the total number of cells of the outermost contour line, and when the original white point number ratio is smaller than a predetermined value. repeats the deletion, value replacement, or sign replacement of the outermost cell of the outermost shell contour until the original white point number ratio reaches the predetermined value, and the remaining pattern is identified from the internal figure pattern. It is in the figure recognition method. (Structure and operation of the invention) FIG. 1 shows a first embodiment of the present invention, in which a binarized pattern is filled in a fill-in pattern creation section 1, and the inside of the outer frame is filled in to obtain a fill-in pattern. Next, while tracking the outermost shell of the filled pattern by the outermost shell contour tracking unit 2, points that were white points in the total number of contour points and the binarized pattern but have become black points due to filling (hereinafter referred to as (referred to as the original white point), that is, the original white point number,
Original white point number ratio calculation unit 3 calculates the original white point number ratio = original white point number /
The total number of contour points is calculated, and when the original white point number ratio has not yet exceeded a predetermined threshold in the end determination section 4,
The outermost shell contour eraser 5 erases the outermost shell contour that has just been tracked, returns to the outermost shell contour tracing 2, and
After erasing the outermost contour, the newly outermost contour of the filled pattern is tracked, and the same operation is repeated until the original white point number ratio exceeds a predetermined threshold. Here, the filling pattern creation section 1 will be explained using FIG. 2. The X coordinate is Xi and the Y coordinate is
The point Yj is represented by P(Xi, Yj), and the point P(Xi,
Let the value of Yj) be expressed as |P(Xi, Yj)|.
In addition, in FIG. 2, for convenience of explanation, the main scanning interval and the sub-scanning interval are shown extremely rougher than they actually are. For a binary pattern in which the black point value is 1 and the white point value is 0, raster scanning is performed with the X-axis direction as the main scanning direction and the Y-axis direction as the sub-scanning direction, as shown in Figure 2B. , for each main scan, the X coordinate value X S of the black point with the minimum X coordinate among the black points existing on the main scanning line, and the X coordinate value X E of the black point with the maximum X coordinate.
is detected, and an operation is performed in which, for example, 2 is added to the values of all points between X S and X E on the main scanning line. For example, in the case of main scanning line l, |P(X S , Y l )|=|P(X S , Y l )|+
2 to |P(X E , Y l )|=|P(X E , Y l )|+2, so the values at each point are shown in a diagram as shown in FIG. 2B. Such processing is performed over the entire area in the sub-scanning direction, that is, from l=1 to n, and the filling in the X-axis direction is completed. Next, as shown in FIG. 2C, the graphic pattern that has been filled in the X-axis direction is raster scanned with the Y-axis direction as the main scanning direction and the X-axis direction as the sub-scanning direction, and is scanned for each main scanning. A point on the main scanning line whose value is 3 (the value of a black point in a binarized figure pattern is always rewritten to 3, and although it was a white point in the binarized figure pattern, it is A point that becomes a new black point by filling in will always have a value of 2), the Y coordinate value Y S of the point with the minimum Y coordinate, and the Y coordinate value Y E of the point with the maximum Y coordinate. Detect Y S on the main scanning line
For example, add 4 to the values of all points in ~ YE . For example, in the case of main scanning line k, |P(X k , Y S )|=
Since |P(X k , Y S )|+4 to |P(X k , Y E )|+4 are performed, the values at each point are shown in a diagram as shown in FIG. 2C. Such processing is performed over the entire area in the sub-scanning direction, that is, from k=1 to m, to complete filling in both the X and Y axes directions. An example of the fill pattern thus obtained is illustrated in FIG. 2D. Furthermore, the second
In Figure D, the intersections (for example, Q, R, and S) of the horizontal line, which is a fill line in the X-axis direction, and the vertical line, which is a fill line in the Y-axis direction, are filled points in both the X and Y axes. , its value is 7 or 6, and the black dots in the binarized figure pattern are 7 (for example, Q and R), and the white dots in the binarized figure pattern are 6 (for example, S). There is. By the way, since the explanation so far has been for the case where there is no chip in the outer frame, there may be no points in Fig. 2D that are filled only in the X-axis direction or points that are filled only in the Y-axis direction. If there is a chip in the outer frame, the value of points filled only in the X-axis direction is 2, and the value of points filled only in the Y-axis direction is 4. These relationships are summarized in the table below.

【表】 最外殻輪郭追跡部2は、第3図に図示した如く
X軸方向を主走査方向、Y軸方向を副走査方向と
する走査を行ない、最初に発見した黒点あるいは
元白点(値が2以上の点)SOを出発点として公知
の8連結―境界線追跡アルゴリズムを使用して、
黒点あるいは元白点を輪郭追跡してゆき輪郭点列
LO(最外殻輪郭線と名づける)を抽出する。なお
輪郭追跡の際、追跡点の値を監視することによつ
て元白点と黒点とを区別して元白点数および全輪
郭点数を計数しておく。 元白点数比算出部3は、元白点数を全輪郭点数
で除して元白点数比を算出する。 終結判定部4は、元白点数比と所定閾値とを比
較して両者の大小関係によつて終結すべきか否か
を判定するものであり、所定閾値の設定に関して
第4図を用いて説明する。例えば2値化パターン
が第4図Aだつたとすると、塗りつぶしパターン
は第4図Bとなる。ここで白ヌキの四角『□」印
は元白点で、『■』印は黒点である。この塗りつ
ぶしパターン第4図Bから最外殻輪郭線を抽出す
ると第4図Cが得られ、全輪郭点数=72で元白点
数=0であるから元白点数比は0となり、最外殻
輪郭消去部5にて今抽出した最外殻輪郭線を消去
する。消去は、例えば最外殻輪郭点の値を0に書
換えるなり、値の符号を反転するなり、次の輪郭
追跡に際してはあたかも白点であるようにみなさ
れるように適当な方法を任意に選定して差し支え
ない。 次いで、最外殻輪郭線を消去した後の塗りつぶ
しパターンから再び最外殻輪郭線を抽出すると、
第4図Dが得られるが元白点数比=0/68である
からやはり0となり、今抽出した最外殻輪郭線を
消去した後次の最外殻輪郭線第4図Eを抽出す
る。第4図Eの全輪郭点数は64で、元白点数は11
であるから元白点数比=11/64≒0.17であり、末
だ終結条件を満たしていないから、更に次の最外
殻輪郭線第4図Fを抽出すると全輪郭点数は60で
元白点数は56であるから元白点数比=56/60≒
0.93となる。ここで終結判定の所定閾値を0.95と
設定したとすれば、末だ終結条件を満たしていな
いから更に最外殻輪郭線第4図Gを抽出すると全
輪郭点数=52、元白点数=52となり、元白点数比
=52/52=1となり終結と判定される。この時点
で、消去されていない黒点(黒点であるから当然
元白点は含んでいない)は第4図Hであるから、
2値化パターンとして第4図Aの内部文字部のみ
が抽出されたことになる。 なお以上の説明においては、終結判定の所定閾
値を0.95と設定した場合につき説明したが、この
値が最適とは限らず認識対象となるパターンを勘
案して設定した方がよい。例えばフローチヤート
の場合は、一般にシンボル部の内部文字部との間
に隙間があるから、ほぼ確実に元白点数比が1に
達するから所定閾値を0.95〜1程度の値に設定し
て差し支えない。しかし、印鑑パターンの場合に
は、第5図Aのように印影外枠と文字部とが分離
しているパターンもあるが、全てがそうであると
は限らず印影外枠と文字部とを接触させたパター
ンがあり、その場合には、元白点数比が1に達す
ることはなく所定閾値をあまり高く設定すること
は適当ではない。発明者らの実験によれば、55種
類の印鑑(外枠と文字部とが接触した印鑑と分離
した印鑑の両者を含む)から得た414種の印影パ
ターンにつき、所定閾値を0.7〜0.75程度に設定
するのが適当であるという結果が得られている。
ここでパターンの分解能は8ドツト/mmの場合で
ある。 以上説明したように、第1の実施例では、塗り
つぶしパターンの最外殻輪郭線を抽出し、該輪郭
線の元白点数比が所定閾値をこえるまで最外殻輪
郭線を消去してゆき内部文字部のみを抽出するよ
うにしたものであるから次のような利点がある。 すなわち、塗りつぶしを施さないパターンを輪
郭追跡した場合には第5図Aや第5図Bに示した
ような、外枠にカケのあるパターンや外枠と内部
文字とが接触しているパターンの場合には輪郭線
がLAあるいはLBとなつてしまい最外殻だけを抽
出できずに内側をも追跡してしまうことになるが
塗りつぶしパターンを輪郭追跡するから、そのよ
うなことが生じずに最外殻のみを抽出することが
できる。 また、第4図Aの如く、外枠にカケがなくかつ
外枠と内部文字とが接触していないパターンの場
合でも最外殻輪郭線を消去してゆくうちに、残さ
れたパターンが実質的には外枠にカケが生じたと
同じことになり、上記と同様な欠点が生じてしま
う。 更に又、塗りつぶしパターンの元白点を計数す
るという概念を導入したことにより、終結判定の
ための有効な情報が得られるという利点である。 第1の実施例は、最外殻輪郭線を消去してゆ
き、内部文字部のみを抽出する図形認識装置を説
明したが、第1図の最外殻輪郭消去部5におい
て、消去すべきと判定れた最外殻輪郭線の各輪郭
点の値を例えば0に書きかえるのではなく、絶対
値はそのままにしておいて、符号をただ正から負
にかえるようにしておいて、終結判定された時点
において負の値を有する点のみを取りだせば、外
枠部のみを分離抽出する図形認識装置とすること
もできる。 また第1の実施例は、2値化パターンを用いる
装置について説明したが、多値パターンを用いる
装置も可能である。すなわち多値パターンがN値
である場合、例えばX軸方向の塗りつぶしの際に
点の値として加算する一定値を第1の実施例では
2としていたが、N+1以上の値としておけば
元々の多値情報は保存したままで塗りつぶしを行
なえるわけであるから、このような配慮を施しつ
つX・Y両軸方向の塗りつぶしパターンを作成す
ればよいわけである。 また第1の実施例は、外枠部と内部文字部との
分離・抽出についてのみ説明したが、終結判定す
るまでに何本の最外殻線を消去したかにより、外
枠の太さを認識することもできる。 また第1の実施例は、塗りつぶしパターン作成
部において、外枠内部の白点(すなわち塗りつぶ
し後は元白点となる白点)につき、(1)X軸方向の
み塗りつぶし、(2)Y軸方向のみ塗りつぶし、(3)
X・Y両軸方向とも塗りつぶしの3状況に応じて
その値を異ならせる場合について説明したが、こ
のような区別をつけることなくX軸方向あるいは
Y軸方向の少なくとも一方向に塗りつぶされた白
点(すなわち元白点に他ならない)の値を共通の
値にしても、第1の実施例と同様な効果が得られ
る。つまり塗りつぶしパターン作成部は、図形存
在許容領域内の全点を黒点(原パターンの黒点)、
元白点(少なくとも一方向に塗りつぶされた白点
つまり外枠内部の白点)、白点(全く塗りつぶさ
れなかつた白点つまり外枠外部の白点)の3種に
分類するわけである。 但し、2、4のように異なる値を設定しておく
と、外枠の欠けがわかるので便利なことがあり、
輪郭追跡において、例えば点の値が7、4、4、
4、4、2、2、2、2、7のように、もともと
黒の2つの点の間にY方向塗りつぶしの元白点の
連続とX方向塗りつぶしの元白点の連続あれば、
外枠の欠けがわかる。 (発明の効果) 本発明は、図形パターンの塗りつぶしパターン
を作成し、その最外殻輪郭線を順次抽出し、該輪
郭線の元白点数比と所定閾値とを比較することに
より該輪郭線が外枠部に属するものであるか、内
部文字部に属するものであるかを判別して、印鑑
やフローチヤートなどのように、外枠部と内部文
字部とで構成される図形パターンの外枠部と内部
文字部とを容易に分離・抽出するものであるか
ら、各種の図形認識装置に利用することができ
る。
[Table] The outermost shell contour tracking unit 2 performs scanning with the X-axis direction as the main scanning direction and the Y-axis direction as the sub-scanning direction, as shown in FIG. Using the well-known 8-connection-boundary tracing algorithm starting from S O (points with a value of 2 or more),
Contour tracing of black point or original white point and contour point sequence
Extract L O (named the outermost contour line). Note that during contour tracking, the original white points and black points are distinguished by monitoring the values of the tracking points, and the original white points and total contour points are counted. The original white point number ratio calculation unit 3 calculates the original white point number ratio by dividing the original white point number by the total number of contour points. The termination determination unit 4 compares the original white point ratio and a predetermined threshold value and determines whether or not to terminate the process based on the magnitude relationship between the two.The setting of the predetermined threshold value will be explained using FIG. . For example, if the binarized pattern is as shown in FIG. 4A, the filling pattern will be as shown in FIG. 4B. Here, the white square marked "□" is a former white dot, and the "■" mark is a black dot. If the outermost shell contour is extracted from this filled pattern Fig. 4B, Fig. 4C is obtained, and since the total number of contour points = 72 and the original white point number = 0, the original white point number ratio is 0, and the outermost shell contour The erasing section 5 erases the outermost shell contour line just extracted. For erasing, for example, rewriting the value of the outermost contour point to 0, inverting the sign of the value, or arbitrarily selecting an appropriate method so that it is treated as if it were a white point in the next contour tracing. It's okay to do that. Next, when the outermost shell contour is extracted again from the fill pattern after erasing the outermost shell contour,
Figure 4D is obtained, but since the original white point ratio = 0/68, it is still 0, and after erasing the outermost shell contour that has just been extracted, the next outermost shell contour in Figure 4E is extracted. The total number of contour points in Figure 4 E is 64, and the original number of white points is 11.
Therefore, the original white point number ratio = 11/64 ≒ 0.17, and the final condition is not satisfied, so when the next outermost shell contour line F in Figure 4 is extracted, the total number of contour points is 60, and the original white point number is is 56, so the original white score ratio = 56/60≒
It becomes 0.93. If we set the predetermined threshold value for termination judgment to 0.95, then since the final termination condition is not satisfied, if we further extract the outermost contour line G in Figure 4, the total number of contour points = 52 and the number of original white points = 52. , the original white point ratio = 52/52 = 1, and it is determined that the game is over. At this point, the unerased black point (which naturally does not include the original white point since it is a black point) is H in Figure 4, so
This means that only the internal character part of FIG. 4A is extracted as a binarized pattern. In the above explanation, the predetermined threshold value for determination of termination is set to 0.95, but this value is not necessarily optimal and should be set taking into consideration the pattern to be recognized. For example, in the case of a flowchart, there is generally a gap between the symbol part and the internal character part, so the original white point ratio will almost certainly reach 1, so it is okay to set the predetermined threshold to a value of about 0.95 to 1. . However, in the case of seal stamp patterns, there are some patterns in which the outer seal impression frame and the character part are separated, as shown in Figure 5A, but this is not the case in all patterns, and the outer seal impression frame and the character part are separated. If there is a pattern that is in contact with the pattern, in that case, the original white point number ratio will never reach 1, and it is not appropriate to set the predetermined threshold value too high. According to experiments conducted by the inventors, the predetermined threshold value was set at approximately 0.7 to 0.75 for 414 types of seal imprint patterns obtained from 55 types of seals (including both seals in which the outer frame and the character part were in contact and those in which the character part was separated). The results show that it is appropriate to set it to .
Here, the pattern resolution is 8 dots/mm. As explained above, in the first embodiment, the outermost contour of a fill pattern is extracted, and the outermost contour is erased until the original white point number ratio of the contour exceeds a predetermined threshold. Since it extracts only the character part, it has the following advantages. In other words, when tracing the outline of a pattern that is not filled in, it is possible to trace the outline of a pattern with chips in the outer frame or patterns where the outer frame and internal characters are in contact, as shown in Figures 5A and 5B. In this case, the contour line becomes L A or L B , and it is not possible to extract only the outermost shell, but the inner part is also traced. However, since the contour of the filled pattern is traced, this does not occur. Only the outermost shell can be extracted. In addition, even in the case of a pattern where there is no chip in the outer frame and the outer frame and the inner characters do not contact each other, as shown in Fig. 4A, as the outermost shell outline is erased, the remaining pattern becomes substantially In other words, this is the same as a chip in the outer frame, and the same drawbacks as above occur. Furthermore, by introducing the concept of counting the original white points of the filled pattern, there is an advantage that effective information for determining the end of the pattern can be obtained. In the first embodiment, the figure recognition device erases the outermost shell contour line and extracts only the internal character part. Instead of rewriting the value of each contour point of the determined outermost shell contour to 0, for example, leave the absolute value as is and just change the sign from positive to negative, and then the final determination is made. By extracting only the points having a negative value at the point in time, it is possible to create a figure recognition device that separates and extracts only the outer frame. Further, in the first embodiment, an apparatus using a binary pattern has been described, but an apparatus using a multi-value pattern is also possible. In other words, when the multi-value pattern has N values, for example, the constant value added as a point value when filling in the X-axis direction was set to 2 in the first embodiment, but if it is set to a value of N+1 or more, the original multi-value pattern is Since it is possible to perform filling while preserving the value information, it is sufficient to create filling patterns in both the X and Y axes directions while taking such consideration. Furthermore, in the first embodiment, only the separation and extraction of the outer frame part and the inner character part was explained, but the thickness of the outer frame can be changed depending on how many outermost shell lines are erased before determining the end. It can also be recognized. In addition, in the first embodiment, in the fill pattern creation section, for the white point inside the outer frame (that is, the white point that becomes the original white point after filling), (1) fill only in the X-axis direction, and (2) fill in the Y-axis direction. Fill only, (3)
We have explained the case where the values are different depending on the three filling situations in both the X and Y axis directions, but it is possible to use a white point that is filled in at least one direction of the X axis or Y axis without making such a distinction. Even if the value of (that is, nothing but the original white point) is set to a common value, the same effect as in the first embodiment can be obtained. In other words, the fill pattern creation section converts all points within the figure existence permissible area into black points (black points of the original pattern),
They are classified into three types: original white points (white points filled in at least one direction, that is, white points inside the outer frame), and white points (white points that are not filled in at all, that is, white points outside the outer frame). However, it may be useful to set different values like 2 and 4 so that you can see if the outer frame is missing.
In contour tracking, for example, if the point values are 7, 4, 4,
If there is a succession of original white points for filling in the Y direction and a succession of original white points for filling in the X direction between two originally black points like 4, 4, 2, 2, 2, 2, 7, then
You can see the chipping of the outer frame. (Effects of the Invention) The present invention creates a fill pattern for a figure pattern, sequentially extracts its outermost contour, and compares the original white point number ratio of the contour with a predetermined threshold value. The outer frame of a graphic pattern that is composed of an outer frame and an inner character part, such as a seal or a flowchart, is determined by determining whether it belongs to the outer frame part or the inner character part. Since it is easy to separate and extract parts and internal character parts, it can be used in various graphic recognition devices.

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

第1図は本発明の一実施例のブロツク図、第2
図A〜Dは本発明の一実施例における塗りつぶし
パターン作成部の説明図、第3図は本発明の一実
施例における最外殻輪郭追跡部の説明図、第4図
A〜Fは本発明の一実施例における処理過程の説
明図、第5図A〜Bは外枠にカケがあつたり外枠
と内部文字とが接触したりしているパターンの例
である。 1…塗りつぶしパターン作成部、2…最外殻輪
郭追跡部、3…元白点数比算出部、4…終結判定
部、5…最外殻輪郭消去部。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
Figures A to D are explanatory diagrams of a fill pattern creation unit in an embodiment of the present invention, Figure 3 is an explanatory diagram of an outermost shell contour tracking unit in an embodiment of the present invention, and Figures 4 A to F are diagrams of the invention FIGS. 5A and 5B, which are explanatory diagrams of the processing steps in one embodiment, are examples of patterns in which the outer frame is chipped or the outer frame and internal characters are in contact with each other. 1... Filling pattern creation section, 2... Outermost shell contour tracing section, 3... Original white point ratio calculation section, 4... End determination section, 5... Outermost shell contour erasing section.

Claims (1)

【特許請求の範囲】 1 外枠とその内部の図形パターンとを分離して
識別する図形認識方法において、X軸方向及びY
軸方向の少なくとも一方向に原パターンの外枠お
よび外枠内部の白点及び黒点に所定の数を加える
ことにより原パターンを塗りつぶし、塗りつぶさ
れたパターンの最外殻輪郭線を追跡して抽出し、
抽出された最外殻輪郭線のセルの総数に対する塗
りつぶされた白点である元白点のセルの数の比で
ある元白点数比を算出し、元白点数比が所定の値
より小であるときは最外殻輪郭線の最外殻のセル
の消去又は値の置換又は符号の置換を前記元白点
数比が前記所定の値に達するまでくり返し、残り
のパターンを内部の図形パターンであると識別す
ることを特徴とする図形認識方法。 2 前記所定の値が0.70〜0.75の範囲にあるごと
き特許請求の範囲第1項記載の印影パターンの図
形認識方法。
[Claims] 1. A figure recognition method for separately identifying an outer frame and an inner figure pattern,
The original pattern is filled in by adding a predetermined number to the outer frame and white points and black points inside the outer frame of the original pattern in at least one direction in the axial direction, and the outermost shell contour of the filled pattern is traced and extracted. ,
The original white point number ratio, which is the ratio of the number of original white point cells that are filled white points to the total number of cells of the extracted outermost shell contour, is calculated, and if the original white point number ratio is smaller than a predetermined value, In some cases, the deletion, value replacement, or sign replacement of the outermost cell of the outermost shell contour is repeated until the original white point number ratio reaches the predetermined value, and the remaining pattern is an internal figure pattern. A figure recognition method characterized by identifying. 2. The graphic recognition method for a seal imprint pattern according to claim 1, wherein the predetermined value is in the range of 0.70 to 0.75.
JP57166491A 1982-09-27 1982-09-27 Figure recognizing method Granted JPS5957388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57166491A JPS5957388A (en) 1982-09-27 1982-09-27 Figure recognizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57166491A JPS5957388A (en) 1982-09-27 1982-09-27 Figure recognizing method

Publications (2)

Publication Number Publication Date
JPS5957388A JPS5957388A (en) 1984-04-02
JPH0122952B2 true JPH0122952B2 (en) 1989-04-28

Family

ID=15832361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57166491A Granted JPS5957388A (en) 1982-09-27 1982-09-27 Figure recognizing method

Country Status (1)

Country Link
JP (1) JPS5957388A (en)

Also Published As

Publication number Publication date
JPS5957388A (en) 1984-04-02

Similar Documents

Publication Publication Date Title
JP2940936B2 (en) Tablespace identification method
EP0266140B1 (en) Optical character recognition by forming and detecting matrices of geographical features
CN112364834A (en) Form identification restoration method based on deep learning and image processing
JP2004272798A (en) Image reading device
CN109635729B (en) Form identification method and terminal
CN109271882B (en) Method for extracting color-distinguished handwritten Chinese characters
CN104463157A (en) Electronic identification method for handwritten characters
CN115841671A (en) Calligraphy character skeleton correction method, system and storage medium
JPH0122952B2 (en)
CN114241492A (en) Method for recognizing handwritten text of composition manuscript paper and reproducing text structure
JPS5835674A (en) Extracting method for feature of online hand-written character
JPS613287A (en) Graphic form input system
JP2789622B2 (en) Character / graphic area determination device
JP3936039B2 (en) Screened area extraction device
JPS5840236B2 (en) Online handwritten character recognition method
JPH0664629B2 (en) Character recognition method
JPH0545992B2 (en)
JP3239965B2 (en) Character recognition device
JPH0266681A (en) Drawing processor
JP2918363B2 (en) Character classification method and character recognition device
JPH0215388A (en) Character recognizing device
JPS60201485A (en) Handwritten character recognizing device
JPH05274472A (en) Image recognizing device
JPS6262392B2 (en)
JPS5837780A (en) Character recognizing method