JPH039507B2 - - Google Patents

Info

Publication number
JPH039507B2
JPH039507B2 JP57005207A JP520782A JPH039507B2 JP H039507 B2 JPH039507 B2 JP H039507B2 JP 57005207 A JP57005207 A JP 57005207A JP 520782 A JP520782 A JP 520782A JP H039507 B2 JPH039507 B2 JP H039507B2
Authority
JP
Japan
Prior art keywords
perturbation
circuit
character
deformation
value
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
JP57005207A
Other languages
Japanese (ja)
Other versions
JPS58123176A (en
Inventor
Kenichiro Ishii
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP57005207A priority Critical patent/JPS58123176A/en
Publication of JPS58123176A publication Critical patent/JPS58123176A/en
Publication of JPH039507B2 publication Critical patent/JPH039507B2/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/16Image preprocessing
    • G06V30/166Normalisation of pattern dimensions
    • 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

Description

【発明の詳細な説明】 (1) 発明の属する分野の説明 本発明は、単純な構成で、変形パターンを高
速、かつ大量に発生させる変形パターン発生方法
及び変形パターン発生装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Description of the field to which the invention pertains The present invention relates to a deformed pattern generation method and a deformed pattern generation device that have a simple configuration and generate deformed patterns at high speed and in large quantities.

(2) 従来の技術の説明 文字読取装置の識別辞書設計には、通常大量の
学習用データを用いているが、データ収集の代替
手段として、人工的に発生させた変形文字パター
ンを用いる方法がある。変形文字パターンの人工
的発生方法に関しては、従来標準字形に対し種々
の変形要因即ち、線形、非線形な変形、あるいは
大局的、局所的な変形などを組み合わせて与える
方法、人間の筆記運動を解析し、それを模したフ
イードバツク系によつて文字生成モデルを構成す
る方法などが知られている。
(2) Description of conventional technology A large amount of training data is usually used to design identification dictionaries for character reading devices, but as an alternative means of data collection, there is a method using artificially generated modified character patterns. be. Conventionally, methods for artificially generating deformed character patterns include methods that combine various deformation factors, such as linear and nonlinear deformation, global and local deformation, to standard glyphs, and methods that analyze human writing motion. , a method of configuring a character generation model using a feedback system that imitates this is known.

前者の方法に於ては、線形な変形は2次元マト
リツクスによる回転、伸縮、などによつて実現
し、非線形な変形は高次の多項式や、その他の特
殊な関係によつて実現している。
In the former method, linear transformation is realized by rotation, expansion and contraction, etc. using a two-dimensional matrix, and nonlinear transformation is realized by high-order polynomials and other special relationships.

また、後者の方法に於ては、人間の筆記運動を
第1図に示す如く微小ストローク110の系列と
して捉え、ある時点でのストロークを標準字形と
比較し、その結果をフイードバツクすることによ
り、次の時点でのストロークの長さ、方向を決定
するという方法を用いている。
In addition, in the latter method, the human writing movement is understood as a series of minute strokes 110 as shown in Figure 1, the stroke at a certain point is compared with a standard character shape, and the results are fed back to the next step. A method is used to determine the length and direction of the stroke at the point in time.

これら従来方法は、 a) パラメータの数が多く、変形を制御するの
が困難である、 b) 変形文字発生に必要な処理量が多くなる、 c) 変形の度合を定量的に表わすのが困難であ
る、 などの欠点があつた。
These conventional methods a) have a large number of parameters and are difficult to control deformation; b) require a large amount of processing to generate deformed characters; and c) are difficult to quantitatively express the degree of deformation. There were drawbacks such as .

(3) 発明の目的 本発明は、これらの欠点を解決するため、標準
字形に不規則な摂動を加え、変形文字を発生する
という単純な構成をとることにより、文字変形を
少数のパラメータで表わすとともに、文字変形量
の定量化を可能にしたもので、以下図面について
詳細に説明する。
(3) Purpose of the Invention In order to solve these drawbacks, the present invention employs a simple configuration in which irregular perturbations are applied to standard character shapes to generate deformed characters, thereby representing character deformations with a small number of parameters. This also makes it possible to quantify the amount of character deformation, and the drawings will be described in detail below.

(4) 発明の構成および作用の説明 第2図は本発明の実施例であつて、210は乱
数発生回路、220は平滑化回路、230は標準
字形格納メモリ、240は摂動値演算回路、25
0は変形量演算回路、260は変形量出力端子、
270は太め回路、280は変形パターンメモ
リ、290は制御部である。
(4) Description of structure and operation of the invention FIG. 2 shows an embodiment of the invention, in which 210 is a random number generation circuit, 220 is a smoothing circuit, 230 is a standard shape storage memory, 240 is a perturbation value calculation circuit, 25
0 is a deformation amount calculation circuit, 260 is a deformation amount output terminal,
270 is a thick circuit, 280 is a modified pattern memory, and 290 is a control section.

これを動作するには、制御部290から初期化
のための信号を平滑化回路220、変形量演算回
路250、太め回路270、変形パターンメモリ
280に送り、次に結線2901を通して送られ
てくるタイミング信号により、乱数発生回路21
0が(−1,1)の値の一様乱数を1個発生し、
それを平滑化回路220に送る。またこのタイミ
ング信号は無線2902を通して摂動演算回路2
40にも送られ、 摂動演算回路はこの信号を受けて標準字形格納
メモリ230より標準字形上の1点の座標値、及
び法線方向角度を読み出してくる。
To operate this, a signal for initialization is sent from the control unit 290 to the smoothing circuit 220, the deformation amount calculation circuit 250, the thickening circuit 270, and the deformation pattern memory 280, and then the timing signal is sent through the connection 2901. According to the signal, the random number generation circuit 21
Generate one uniform random number with a value of 0 (-1, 1),
It is sent to the smoothing circuit 220. Also, this timing signal is transmitted to the perturbation calculation circuit 2 through the radio 2902.
40, and the perturbation calculation circuit receives this signal and reads out the coordinate value of one point on the standard character shape and the normal direction angle from the standard character shape storage memory 230.

平滑化回路220では、乱数発生回路210か
ら新たに送られてきた乱数と、すでに格納されて
いる乱数とをもとに平滑化の演算を行ない、その
結果摂動値1個を発生し、摂動演算回路240、
及び変形量演算回路250に送る。
The smoothing circuit 220 performs a smoothing operation based on the random numbers newly sent from the random number generation circuit 210 and the already stored random numbers, generates one perturbation value as a result, and performs the perturbation calculation. circuit 240,
and sent to the deformation amount calculation circuit 250.

摂動演算回路240は、送られてきた摂動値と
あらかじめ標準字形格納メモリ230より読み出
されていた座標値及び法線角度とから新たな座標
値を計算し、太め回路270に送る。
The perturbation calculation circuit 240 calculates new coordinate values from the sent perturbation value and the coordinate values and normal angles that have been read out in advance from the standard shape storage memory 230, and sends them to the thickening circuit 270.

変形量演算回路250では平滑化回路220よ
り送られてきた摂動値を用い、文字変形量の更新
を行なう。一方、太め回路270は、摂動演算回
路240より送られてきた座標値をもとに太め処
理を行ない、その結果を変形パターンメモリ28
0に書き込む。以上の処理が終ると、次のタイミ
ング信号により再度乱数を発生させ、同様な処理
をくり返す。
The deformation amount calculation circuit 250 uses the perturbation value sent from the smoothing circuit 220 to update the character deformation amount. On the other hand, the thickening circuit 270 performs thickening processing based on the coordinate values sent from the perturbation calculation circuit 240, and stores the results in the deformation pattern memory 28.
Write to 0. When the above processing is completed, random numbers are generated again using the next timing signal, and the same processing is repeated.

標準字形格納メモリ230中に、読み出すべき
座標値及び法線方向角度が無くなつた時、制御部
290は終了信号を、乱数発生回路210、平滑
化回路220、摂動演算回路240、変形量演算
回路250、太め回路270に送る。変形量演算
回路250は、この信号を受けて変形量を出力端
子260に出力し、他の回路では以後の処理を停
止する。
When there are no more coordinate values and normal angles to be read out in the standard glyph storage memory 230, the control unit 290 sends a termination signal to the random number generation circuit 210, the smoothing circuit 220, the perturbation calculation circuit 240, and the deformation amount calculation circuit. 250, and send it to the thick circuit 270. The deformation amount calculation circuit 250 receives this signal and outputs the deformation amount to the output terminal 260, and other circuits stop subsequent processing.

この時点で、変形パターンメモリ280には、
端子260に出力される文字変形量に相当する変
形文字パターンが格納されている。引き続き変形
文字パターンを発生させるには、制御部290よ
り初期化信号を送り、上述したものと同様な処理
をくり返す。
At this point, the deformed pattern memory 280 has the following information:
A modified character pattern corresponding to the amount of character modification output to the terminal 260 is stored. To continue generating modified character patterns, the controller 290 sends an initialization signal and repeats the same process as described above.

本発明で用いられる乱数発生回路、平滑化回
路、摂動演算回路、変形量演算回路、太め回路
は、いずれも単純な構成で実現でき、そのため、
種々の変形文字を、高速かつ大量に発生させるこ
とが可能である。
The random number generation circuit, smoothing circuit, perturbation calculation circuit, deformation amount calculation circuit, and thick circuit used in the present invention can all be realized with a simple configuration, and therefore,
It is possible to generate various modified characters at high speed and in large quantities.

第3図は、平滑化回路220の構成図である。
この部分の動作の目的は、乱数発生回路210よ
り順次送られてくる乱数の系列を、平滑化し、摂
動値の系列に変換して、摂動演算回路240及び
変形量演算回路250に送出することである。平
滑化回路220は、変形パラメータ格納メモリ2
21、平滑化係数発生回路222、平滑化係数格
納メモリ223、乱数系列格納メモリ224、乗
算器225、加算器226、摂動値レジスタ22
7、アドレスレジスタ228、加算器229より
成る。
FIG. 3 is a block diagram of the smoothing circuit 220.
The purpose of this part of the operation is to smooth the random number sequence sequentially sent from the random number generation circuit 210, convert it into a perturbation value sequence, and send it to the perturbation calculation circuit 240 and the deformation calculation circuit 250. be. The smoothing circuit 220 includes the deformation parameter storage memory 2
21, smoothing coefficient generation circuit 222, smoothing coefficient storage memory 223, random number sequence storage memory 224, multiplier 225, adder 226, perturbation value register 22
7, an address register 228, and an adder 229.

変形パラメータ格納メモリ221には予め外部
より2つの変形パラメータA、Wを格納してお
く。AはA≧0なる実数値、Wは正の整数でかつ
奇数である。変形パターン発生処理に先立ち、平
滑化係数発生回路222は、変形パラメータ格納
メモリ221に格納されているパラメータA、W
を参照し、W個の平滑化係数g1,g2……gwを発
生する。平滑化係数gkは、平滑化係数格納メモ
リ223にアドレスK(K=1、2、……、W)
をもつて順次格納される。
Two deformation parameters A and W are previously stored in the deformation parameter storage memory 221 from the outside. A is a real value satisfying A≧0, and W is a positive integer and an odd number. Prior to the deformation pattern generation process, the smoothing coefficient generation circuit 222 generates parameters A and W stored in the deformation parameter storage memory 221.
With reference to , W smoothing coefficients g 1 , g 2 , . . . gw are generated. The smoothing coefficient gk is stored in the smoothing coefficient storage memory 223 at address K (K=1, 2, ..., W).
are stored sequentially.

gk(K=1、2、……、W)の値は、次のよう
なガウス関数の関数値を用いる。
As the value of gk (K=1, 2, . . . , W), the following Gaussian function value is used.

gk=C・Aexp〔−18(K−w+1/2)2/(W −1)2〕 …(1) 但し C=WK=1 〔−36(K−w+1/2)2/(W−1)2 〕 ……(2) (K=1、2、……、W) また乱数発生回路には予め乱数発生のための初
期値を設定しておく。
gk=C・Aexp [−18(K−w+1/2) 2 /(W −1) 2 ] …(1) However, C= WK=1 [−36(K−w+1/2) 2 /(W -1) 2 ] ...(2) (K=1, 2, ..., W) In addition, initial values for random number generation are set in advance in the random number generation circuit.

乱数発生回路210が結線2901を介して制
御部290より初期化信号を受け取ると、乱数発
生回路210は、W個の乱数を発生し、それらを
結線210を介して、乱数系列格納メモリ224
のアドレス1からアドレスWまでに順次格納す
る。以後、乱数系列格納メモリ224のアドレス
iのメモリ内容を、fi(i=1,2,……,W)
で表わす。
When the random number generation circuit 210 receives an initialization signal from the control unit 290 via the connection 2901, the random number generation circuit 210 generates W random numbers and sends them to the random number series storage memory 224 via the connection 210.
are sequentially stored from address 1 to address W. Thereafter, the memory contents at address i of the random number sequence storage memory 224 are set as fi (i=1, 2, ..., W).
It is expressed as

次に、制御部290から結線2903を介して
送られてくるタイミング信号により、摂動値レジ
スタ227及びアドレスレジスタ228はそれぞ
れリセツトされ、値0が設定される。また同タイ
ミング信号により、乱数発生回路210は、結線
2101を介して乱数1個を乱数系列格納メモリ
224に送る。
Next, the perturbation value register 227 and address register 228 are each reset to a value of 0 by a timing signal sent from the control section 290 via the connection 2903. Also, in response to the same timing signal, the random number generation circuit 210 sends one random number to the random number sequence storage memory 224 via the connection 2101.

乱数系列格納メモリ224は、fW-1をアドレス
Wに、fW-2をアドレスW−1に、……、f1をアド
レス2に移した後、送られてきた上記乱数1個
を、アドレス1に格納する。
After moving f W-1 to address W, f W-2 to address W-1, ..., f 1 to address 2, the random number sequence storage memory 224 stores the one random number sent as follows. Store at address 1.

加算器229は、アドレスレジスタ228の内
容を、タイミング2291により1ずつカウント
アツプし、当該レジスタの内容で示される乱数系
列格納メモリ224、及び平滑化係数格納メモリ
223の内容を、順次乗算器225に送る。乗算
器225は、両者の積を算出し、結果を加算器2
26に順次送る。加算器226は、この結果を摂
動値レジスタ227に順次加算して行く。
The adder 229 counts up the contents of the address register 228 by 1 at timing 2291, and sequentially sends the contents of the random number sequence storage memory 224 and the smoothing coefficient storage memory 223 indicated by the contents of the register to the multiplier 225. send. Multiplier 225 calculates the product of both, and sends the result to adder 2.
26 sequentially. The adder 226 sequentially adds this result to the perturbation value register 227.

アドレスレジスタ228の内容がW+1になつ
た時点で、これらの加算、乗算は停止される。こ
の時点で、摂動値レジスタ227には、次式で示
す摂動値γが格納されている。
When the contents of the address register 228 reach W+1, these additions and multiplications are stopped. At this point, the perturbation value register 227 stores a perturbation value γ expressed by the following equation.

γ=WK=1 gk・fk ……(3) 摂動値γは、結線2201を介して、摂動演算
回路240、変形量演算回路250に送られる。
以後、タイミング信号を受け取る度に、上述した
ことと同様にして、乱数の発生、乱数系列格納メ
モリ内容のシフト、(3)式による積和演算、摂動値
の送出をくり返し、制御部290からの終了信号
によつて、当該処理は停止する。
γ= WK=1 gk·fk (3) The perturbation value γ is sent to the perturbation calculation circuit 240 and the deformation calculation circuit 250 via the connection 2201.
Thereafter, every time a timing signal is received, generation of random numbers, shifting of the random number sequence storage memory contents, sum-of-products calculation using equation (3), and sending of perturbation values are repeated in the same manner as described above. The process is stopped by the end signal.

結線2201を介して平滑化回路220より出
力される摂動値γの系列は、結線2101を介し
て送られてくる乱数系列を(1)式で表わされる関数
によつてたたみ込み、平滑化したものとなつてお
り、平滑化の度合がパラメータWで、また摂動値
γの系列は、変形パラメータ格納メモリ内のA、
Wの値を書き換えるという単純な操作で制御でき
る。
The series of perturbation values γ output from the smoothing circuit 220 via the connection 2201 is obtained by convolving and smoothing the random number series sent via the connection 2101 by the function expressed by equation (1). The degree of smoothing is the parameter W, and the series of perturbation values γ are A, A, and A in the deformation parameter storage memory.
It can be controlled by simply rewriting the value of W.

第9図は平滑化処理の具体例を示したものであ
る。ここでパラメータAは一定とし、パラメータ
Wをさまざまに変化させた時の平滑化の効果を示
している。図でaは−1から1の値をとる一様乱
数の系列であり、b,c,d,e,fはこの一様
乱数の系列を式(3)の演算により平滑化して得られ
た系列である。b,c,d,e,fはそれぞれパ
ラメータWが、W=3,W=7,W=11,W=
15,W=19の場合に対応しており、図から明らか
なように、Wが大きくなる程平滑化の効果が大き
くなることがわかる。
FIG. 9 shows a specific example of the smoothing process. Here, the smoothing effect when the parameter A is set constant and the parameter W is varied is shown. In the figure, a is a sequence of uniform random numbers that take values from -1 to 1, and b, c, d, e, and f are obtained by smoothing this sequence of uniform random numbers using the calculation of equation (3). It is a series. The parameters W of b, c, d, e, and f are respectively W=3, W=7, W=11, W=
15, corresponds to the case of W=19, and as is clear from the figure, it can be seen that the smoothing effect becomes larger as W becomes larger.

第4図は、摂動演算回路240の構成図であ
る。この回路の動作の目的は、平滑化回路220
より送られてくる摂動値をもとに、標準字形に摂
動を与え、変形を生ぜしめることである。摂動演
算回路240は、摂動演算部241、アドレスレ
ジスタ242、加算器243、より成る。
FIG. 4 is a configuration diagram of the perturbation calculation circuit 240. The purpose of the operation of this circuit is that the smoothing circuit 220
Based on the perturbation values sent from the standard character, perturbation is applied to the standard character shape to cause deformation. The perturbation calculation circuit 240 includes a perturbation calculation section 241, an address register 242, and an adder 243.

第5図は、第4図の動作を説明するための、標
準字形“5”を例にとつた実施例説明図である。
FIG. 5 is an explanatory diagram of an embodiment, taking the standard character shape "5" as an example, for explaining the operation of FIG. 4.

第5図に於て、標準字形510は、N個の文字
点によつて構成されているものとする。標準字形
格納メモリ230には、第5図で示されるN個の
文字点のx、y座標値並びに法線方向が、予め格
納されている。法線方向は法線とx軸とがなす角
度で表わす。座標値、及び法線方向は、実際に人
間が文字を書く順、即ち第5図の側では、ABC
そしてADの順にアドレス1からアドレスNまで
に格納される。アドレスj(1≦j≦N)に格納
されているx、y座標値、法線方向を、それぞれ
Xj、Yj、θjとする。
In FIG. 5, it is assumed that a standard character form 510 is composed of N character points. The standard character shape storage memory 230 stores in advance the x and y coordinate values and normal directions of N character points shown in FIG. The normal direction is expressed by the angle between the normal and the x-axis. The coordinate values and normal direction are in the order in which characters are actually written by humans, that is, on the side shown in Figure 5, they are ABC.
Then, they are stored in AD order from address 1 to address N. The x, y coordinate values and normal direction stored at address j (1≦j≦N) are respectively
Let Xj, Yj, and θj.

制御部290からの初期化信号を受けて、アド
レスレジスタ242はリセツトされ、該レジスタ
に値0が入る。以後は、制御部290からのタイ
ミング信号を受け取る毎に、加算器243は、ア
ドレスレジスタ242を1ずつカウントアツプす
る。今、j番目のタイミング信号を受け取つた場
合を例にとると、加算器243がアドレスレ ジ
スタ242を1だけカウントアツプした後、当該
レジスタの内容で示される標準字形格納メモリの
アドレスが参照され、座標値Xj、Yj及び法線方
向θjが結線2301を介し、摂動演算部241に
送られる。
Upon receiving the initialization signal from the control section 290, the address register 242 is reset and the value 0 is entered into the register. Thereafter, every time the adder 243 receives a timing signal from the control section 290, the adder 243 counts up the address register 242 by one. Now, taking the case where the j-th timing signal is received as an example, after the adder 243 counts up the address register 242 by 1, the address of the standard glyph storage memory indicated by the contents of the register is referenced, The coordinate values Xj, Yj and the normal direction θj are sent to the perturbation calculation unit 241 via a connection 2301.

摂動演算部241は、同じタイミング信号によ
つて、平滑化回路220から結線2201を介し
て送られてくる摂動値γjと上記Xj、Yj、θjを用
い、次式により摂動を加えた後の座標値X′j、Y′j
を算出し、結果を結線2401を介し、太め回路
270に送出する。
The perturbation calculation unit 241 uses the perturbation value γj sent from the smoothing circuit 220 via the connection 2201 and the above-mentioned Xj, Yj, θj by the same timing signal, and calculates the coordinates after perturbation according to the following equation. Values X′j, Y′j
is calculated, and the result is sent to the thick circuit 270 via the connection 2401.

X′j=Xj+γj cos θj ……(4) Y′j=Yj+γj sin θj ……(5) 式(4)、(5)は、第5図に於て、標準字形上の点
(Xj、Yj)がγjだけの摂動を受けて移つた点
(X′j、Y′j)を求めていることに相当する。太め
回路270へX′j、Y′jの送出が終了すると、制御
部290からのj+1番号のタイミング信号によ
り、上述したことと同じ処理をくり返し、太め回
路270へX′j+1、Y′j+1の値が送られる。そして、
アドレスレジスタ242の内容がNを越えた時、
制御部290から停止信号が送出され、上記の処
理は停止する。
X′j=Xj+γj cos θj ……(4) Y′j=Yj+γj sin θj ……(5) Equations (4) and (5) are expressed by the points on the standard glyph (Xj, Yj ) is perturbed by γj and moves (X′j, Y′j). When the sending of X'j and Y'j to the thick circuit 270 is completed, the same process as described above is repeated according to the timing signal of number j+1 from the control section 290, and X' j+1 and Y' are sent to the thick circuit 270. The value of j+1 is sent. and,
When the contents of the address register 242 exceed N,
A stop signal is sent from the control unit 290, and the above processing is stopped.

このように、摂動演算回路240は、平滑化回
路220から順次送られてくる摂動値を用い、標
準字形上の各点に摂動を与えて変形文字を生成す
る機能を有している。(1)式のパラメータAは、摂
動の大きさ、即ち、標準字形からの平均的なずれ
の大きさ、を表わしており、Aが大きい程、標準
字形からのずれは大きくなる。また、(1)式のパラ
メータWは、摂動を受けた文字線の標準字形の回
りの変化の度合を表わしており、Wが大きい程滑
らかな変化を示すようになる。
In this way, the perturbation calculation circuit 240 has a function of generating a modified character by perturbing each point on the standard character shape using the perturbation values sequentially sent from the smoothing circuit 220. The parameter A in equation (1) represents the magnitude of perturbation, that is, the average magnitude of deviation from the standard character shape, and the larger A is, the greater the deviation from the standard character shape. Further, the parameter W in equation (1) represents the degree of change around the standard character shape of the perturbed character line, and the larger W is, the smoother the change is.

第8図は変形文字生成の具体例を示したもので
ある。図示されている文字枠は64×64メツシユ
(9.6×9.6mm)、文字高さは約30メツシユ(4.5mm)
である。
FIG. 8 shows a specific example of generating modified characters. The character frame shown is 64 x 64 meshes (9.6 x 9.6mm), and the character height is approximately 30 meshes (4.5mm).
It is.

ここで摂動のパラメータW,Aについては、W
の値として W=3.45,5.85,8.25mm の3種を選び、さらに各Wの値に対してAの値を A=0.3,0.6,0.9 とした場合の各々について文字パターンが変形を
受ける様子を図に示す。なお図中のDの値は、後
述される文字変形量であり、標準字形からのずれ
量の平均値を示している。
Here, regarding the perturbation parameters W and A, W
We selected three values of W = 3.45, 5.85, and 8.25 mm as the values of W, and furthermore, for each value of W, we set the value of A to A = 0.3, 0.6, and 0.9. As shown in the figure. Note that the value D in the figure is the amount of character deformation, which will be described later, and indicates the average value of the amount of deviation from the standard character shape.

図から明らかなように、Aの値の増加に伴い、
標準字形からのずれが大きくなり、Dの値も増加
するのが判る。一方、Wの値が増加すると、標準
字形の回りの変化は緩やかになり、滑らかな文字
線が得られるのが判る。
As is clear from the figure, as the value of A increases,
It can be seen that the deviation from the standard character shape becomes larger and the value of D also increases. On the other hand, it can be seen that as the value of W increases, the changes around the standard character shape become gentler, resulting in smoother character lines.

第6図は、変形量演算回路250の構成図であ
る。この回路の動作の目的は、平滑化回路220
より順次送られてくる摂動値をもとに文字変形量
を算出することであり、加算器251、変形量レ
ジスタ252、除算器253より成つている。
FIG. 6 is a configuration diagram of the deformation amount calculation circuit 250. The purpose of the operation of this circuit is that the smoothing circuit 220
The purpose of this is to calculate the amount of character deformation based on the perturbation values that are sent sequentially.

制御部290より結線2904を介して送られ
てくる初期化信号により、変形量レジスタ252
はリセツトされ、値0が設定される。加算器25
1は結線2201を介して平滑化回路220より
送られてくる摂動値の絶対値と変形量レジスタ2
52の内容とを加算し、結果を書き込むことによ
り、変形量レジスタ252の内容を書き換える。
制御部290からのタイミング信号によつて平滑
化回路より摂動値が送られてくる間、上記の動作
をくり返し、制御部290より終了信号を受信し
た時点で、当該動作を停止し、変形量レジスタ2
52の内容は、除算器253に送られ、ここで、
1/Nの除算を受け、文字変形量として出力端子2 60に出力される。
An initialization signal sent from the control unit 290 via the connection 2904 causes the deformation amount register 252 to
is reset and set to the value 0. Adder 25
1 is the absolute value of the perturbation value sent from the smoothing circuit 220 via the connection 2201 and the deformation amount register 2
By adding the contents of 52 and writing the result, the contents of the deformation amount register 252 are rewritten.
The above operation is repeated while the perturbation value is sent from the smoothing circuit in response to the timing signal from the control unit 290, and when the end signal is received from the control unit 290, the operation is stopped and the deformation amount register is stored. 2
The contents of 52 are sent to the divider 253, where:
It is divided by 1/N and outputted to output terminal 260 as a character deformation amount.

端子260に出力される値は、 1/NNj=1 |γj| となつており、これは文字変形量を標準字形上の
各点に加えられる摂動の大きさの平均値として表
わしたものである。このような構成になつている
から文字変形量を単純な処理で高速に算出でき
る。
The value output to the terminal 260 is 1/N Nj=1 |γj|, which represents the amount of character deformation as the average value of the magnitude of perturbation applied to each point on the standard character shape. It is something. With this configuration, the amount of character deformation can be calculated quickly with simple processing.

第7図は、太め回路270及び変形パターンメ
モリ280の構成図である。この回路の動作の目
的は、摂動演算算回路240より送られてくる座
標値をもとに、太め処理を行ない、結果を変形パ
ターンメモリに書き込むことである。
FIG. 7 is a configuration diagram of the thick circuit 270 and the modified pattern memory 280. The purpose of this circuit's operation is to perform thickening processing based on the coordinate values sent from the perturbation calculation circuit 240, and to write the results into the deformation pattern memory.

太め回路270は座標レジスタ271、加算器
272、太め領域格納メモリ273、アドレスレ
ジスタ274、加算器275より成つている。
The thick circuit 270 includes a coordinate register 271, an adder 272, a thick area storage memory 273, an address register 274, and an adder 275.

変形パターンメモリ280は、パターンの各点
を1ビツト、即ち、文字線上の点を1、それ以外
の点を0で表わしている。
In the modified pattern memory 280, each point of the pattern is represented by 1 bit, that is, a point on a character line is represented by 1, and other points are represented by 0.

太め領域格納メモリ273には次式を満たす
(u,v)の対(Ul,Vl)(l=1、2、……、
L)がアドレス1からアドレスLまでに格納され
ている。
The thick area storage memory 273 stores pairs (u, v) (Ul, Vl) (l=1, 2, . . . ) that satisfy the following equation.
L) is stored from address 1 to address L.

u2+v2≦H ……(6) ここでLは(u,v)の対の数、Hは太めの度
合を示すパラメータで、外部より指定する。
u 2 +v 2 ≦H (6) Here, L is the number of pairs of (u, v), and H is a parameter indicating the degree of thickness, which is specified from the outside.

制御部290より結線2905及び2906を
介して送られてくる初期化信号により、座標レジ
スタ271及び変形パターンメモリ280がそれ
ぞれリセツトされ、値0が入る。次に、摂動演算
回路240より座標値が結線2401を介して送
られてくると、それらは座標レジスタ271に格
納される。
An initialization signal sent from the control unit 290 via connections 2905 and 2906 resets the coordinate register 271 and the deformation pattern memory 280, respectively, and stores the value 0 therein. Next, when coordinate values are sent from the perturbation calculation circuit 240 via the connection 2401, they are stored in the coordinate register 271.

格納が終了すると、タイミング276が作動状
態となり、以後一定間隔で加算器275にタイミ
ング信号を送り始める。加算器275は、タイミ
ング信号276を受け取ると、アドレスレジスタ
274の内容を1だけカウントアツプし、その値
で示される太め領域格納メモリ273のアドレス
が参照される。
When the storage is completed, the timing 276 becomes active and starts sending timing signals to the adder 275 at regular intervals thereafter. When the adder 275 receives the timing signal 276, the adder 275 counts up the contents of the address register 274 by 1, and refers to the address of the thick area storage memory 273 indicated by the value.

摂動演算回路240より送られてくる座標値が
X′j、Y′j、参照された太め領域格納メモリ273
のアドレスの内容がUl、Vlの場合を例にとると、
加算器272は X″j=X′j+Ue ……(6) Y″j=Y′j+Ve ……(7) を計算し、新たな座標値(X″j、Y″j)を結線2
701を介して変形パターンメモリ280に送
り、当該座標に対応するメモリ上の所定のビツト
を1にする。以後、タイミング信号276を受信
する度に、同様な処理をくり返す。加算器275
の内容がL+1になると、タイミング276は信
号の送出を停止する。
The coordinate values sent from the perturbation calculation circuit 240 are
X′j, Y′j, referenced thick area storage memory 273
For example, if the contents of the address are Ul and Vl,
The adder 272 calculates X″j=X′j+Ue...(6) Y″j=Y′j+Ve...(7), and adds new coordinate values (X″j, Y″j) to the connection 2.
701 to the modified pattern memory 280, and sets a predetermined bit on the memory corresponding to the coordinate to 1. Thereafter, the same process is repeated every time the timing signal 276 is received. Adder 275
When the content of becomes L+1, timing 276 stops sending the signal.

次に摂動演算回路240より新たな座標値が送
られてくると、座標レジスタ271に当該座標値
が格納されるとともに、タイミング276が作動
状態となり、上記と同様な処理をくり返す。
Next, when a new coordinate value is sent from the perturbation calculation circuit 240, the coordinate value is stored in the coordinate register 271, and the timing 276 is activated to repeat the same process as described above.

制御部290からの終了信号を受信すると太め
回路270の処理は停止する。この時点で変形パ
ターンメモリ280には、文字線幅2Hを有する
変形文字パターンが格納されている。従つて、H
を用いて文字線幅を制御することができる。
Upon receiving the end signal from the control unit 290, the thick circuit 270 stops processing. At this point, the modified pattern memory 280 stores a modified character pattern having a character line width of 2H. Therefore, H
can be used to control the character line width.

(5) 効果の説明 以上説明したように、本発明による変形パター
ン発生は、乱数発生回路、平滑化回路、摂動演算
回路、太め回路を基本として構成されており、各
部の処理はメモリを参照しながらの加算、積和演
算、のみで可能であり非線形変換などの複雑な処
理を必要としない。また変形の制御は2つのパラ
メータによつてのみ可能である。
(5) Explanation of Effects As explained above, the deformed pattern generation according to the present invention is basically composed of a random number generation circuit, a smoothing circuit, a perturbation calculation circuit, and a thick circuit, and the processing of each part refers to the memory. It is possible to perform only simple addition and product-sum operations, and does not require complex processing such as nonlinear transformation. Furthermore, control of the deformation is only possible with two parameters.

そのため単純な装置構成で種々の変形文字パタ
ーンを高速かつ大量に発生できる利点がある。
Therefore, there is an advantage that various modified character patterns can be generated in large quantities at high speed with a simple device configuration.

また変形量演算回路の出力である文字変形量を
変形文字パターンを併用し、文字認識装置の認識
試験に適用すれば、文字変形と認識性能の関係が
明らかとなり、文字変形に対する文字認識装置の
安定性をチエツクすることができる。
In addition, if the character deformation amount output from the deformation calculation circuit is used together with the deformed character pattern and applied to the recognition test of a character recognition device, the relationship between character deformation and recognition performance will become clear, and the character recognition device will stabilize against character deformation. You can check the gender.

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

第1図は従来の変形パターン発生法を説明する
ための説明図、第2図は本発明方式の1実施例構
成図、第3図は第2図の平滑化回路の1実施例ブ
ロツク図、第4図は第2図の摂動演算回路の1実
施例ブロツク図、第5図は第4図の動作を説明す
るための説明図、第6図は第2図の変形量演算回
路の1実施例ブロツク図、第7図は第2図の太め
回路の一実施例ブロツク図、第8図は変形文字生
成の具体例を示す説明図、第9図は平滑化処理の
具体例を示す説明図である。 図において、110は微小ストローク、210
は乱数発生回路、220は平滑化回路、230は
標準字形格納メモリ、240は摂動演算回路、2
50は変形演算回路、270は太め回路、280
は変形パターンメモリ、290は制御部、510
は標準字形を示す。
FIG. 1 is an explanatory diagram for explaining the conventional deformed pattern generation method, FIG. 2 is a block diagram of one embodiment of the method of the present invention, and FIG. 3 is a block diagram of one embodiment of the smoothing circuit of FIG. 2. 4 is a block diagram of one embodiment of the perturbation calculation circuit in FIG. 2, FIG. 5 is an explanatory diagram for explaining the operation of FIG. 4, and FIG. 6 is an implementation of the deformation amount calculation circuit in FIG. Example block diagram, FIG. 7 is an example block diagram of the thick circuit in FIG. 2, FIG. 8 is an explanatory diagram showing a specific example of deformed character generation, and FIG. 9 is an explanatory diagram showing a specific example of smoothing processing. It is. In the figure, 110 is a minute stroke, 210
2 is a random number generation circuit, 220 is a smoothing circuit, 230 is a standard shape storage memory, 240 is a perturbation calculation circuit, 2
50 is a modified calculation circuit, 270 is a thick circuit, 280
is a deformation pattern memory, 290 is a control unit, 510
indicates a standard glyph.

Claims (1)

【特許請求の範囲】 1 一様乱数の系列を、低減濾波機能を有する関
数とのたたみ込み演算により平滑化し、摂動値の
系列を算出する処理と、摂動値を用いて標準字形
上の各点に筆記順と同順序で摂動を与え、摂動後
の文字の各点の座標値を算出する処理と、摂動値
の系列から文字変形量を算出する処理と、摂動後
の文字の各点の座標値をもとに、文字線の太め処
理とを行なうことを特徴とする変形パターン発生
方法。 2 初期値を与えることによつて一様乱数を順次
発生する乱数発生回路と、発生された乱数系列を
変形制御用のパラメータを有する関数でたたみ込
むことによつて平滑化し摂動値の系列を出力する
平滑化回路と、標準字形上の各点の座標値及び法
線方向の角度を筆記順に格納した標準字形格納メ
モリと、摂動値及び標準字形格納メモリから読み
出した座標値、法線方向角度をもとに新たな座標
値を算出する摂動演算回路と、摂動値の系列を平
均化することにより文字変形量を算出する変形量
演算回路と、上記摂動演算回路から出力される座
標値をもとに、指定された量だけの太め処理を文
字線に施す太め回路と、生成された変形パターン
を格納する変形パターンメモリと、それぞれの回
路に必要な制御信号を送出する制御部とを具備し
たことを特徴とする変形パターン発生装置。
[Claims] 1. A process of smoothing a uniform random number sequence by convolution with a function having a reduction filtering function to calculate a perturbation value sequence, and using the perturbation value to calculate each point on a standard character shape. A process of applying a perturbation in the same order as the writing order and calculating the coordinate value of each point of the character after perturbation, a process of calculating the amount of character deformation from a series of perturbation values, and a process of calculating the coordinate of each point of the character after perturbation. A deformed pattern generation method characterized by thickening character lines based on a value. 2 A random number generation circuit that sequentially generates uniform random numbers by giving an initial value, and a series of perturbation values that are smoothed by convolving the generated random number series with a function that has parameters for controlling deformation and output a series of perturbation values. A smoothing circuit that stores the coordinate values and normal direction angles of each point on the standard glyph in the order of writing, and a standard glyph storage memory that stores the perturbation values and the coordinate values and normal direction angles read from the standard glyph storage memory. A perturbation calculation circuit that calculates new coordinate values based on the perturbation calculation circuit, a deformation calculation circuit that calculates the amount of character deformation by averaging a series of perturbation values, and a perturbation calculation circuit that calculates new coordinate values based on the coordinate values output from the perturbation calculation circuit. The present invention further includes a thickening circuit that thickens a character line by a specified amount, a deformation pattern memory that stores the generated deformation pattern, and a control section that sends necessary control signals to each circuit. A deformed pattern generator characterized by:
JP57005207A 1982-01-14 1982-01-14 Generating system of deformed pattern Granted JPS58123176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57005207A JPS58123176A (en) 1982-01-14 1982-01-14 Generating system of deformed pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57005207A JPS58123176A (en) 1982-01-14 1982-01-14 Generating system of deformed pattern

Publications (2)

Publication Number Publication Date
JPS58123176A JPS58123176A (en) 1983-07-22
JPH039507B2 true JPH039507B2 (en) 1991-02-08

Family

ID=11604740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57005207A Granted JPS58123176A (en) 1982-01-14 1982-01-14 Generating system of deformed pattern

Country Status (1)

Country Link
JP (1) JPS58123176A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6037084A (en) * 1983-08-09 1985-02-26 Fujitsu Ltd Character recognizing device
JP5224156B2 (en) * 2006-09-23 2013-07-03 康二 三宅 How to make up for the lack of learning character samples in character recognition systems
JPWO2017141802A1 (en) 2016-02-15 2018-12-06 日本電気株式会社 Image processing apparatus, character recognition apparatus, image processing method, and program recording medium

Also Published As

Publication number Publication date
JPS58123176A (en) 1983-07-22

Similar Documents

Publication Publication Date Title
Van Leer Towards the ultimate conservative difference scheme. V. A second-order sequel to Godunov's method
CN110561421B (en) Mechanical arm indirect dragging demonstration method and device
US20070136042A1 (en) Quadrilateral grid extension of central difference scheme for ink-jet simulations
Sidilkover A genuinely multidimensional upwind scheme and efficient multigrid solver for the compressible Euler equations
US20020067363A1 (en) Animation generating method and device, and medium for providing program
CN110008387B (en) Flow field visualization implementation method and device and electronic equipment
US7536285B2 (en) Odd times refined quadrilateral mesh for level set
JPH039507B2 (en)
JP3458963B2 (en) Image conversion device
JP3222555B2 (en) Character pattern generation device and character recognition device using the same
CN113103239B (en) Robot attitude trajectory generation method and device and storage medium
JPS5816345A (en) Normal random number generator
JPS60124786A (en) Vector generating system
JPH03198167A (en) Method and device for deforming two-dimensional bit map image
JP2689815B2 (en) Vector font fill information generator
JPS5895392A (en) Character pattern generator
JP3024178B2 (en) Polygon fill device for image processing device
JPS63127288A (en) Pattern generator
Tao et al. Multi-scale image warping using weighted voronoi diagram
CN117863182A (en) Image processing-based mechanical arm fine control method and device and mechanical arm
JPS6238753B2 (en)
JP2666090B2 (en) Outline pattern generator
JPH0387794A (en) Character font generation system
JP3030998B2 (en) Character generator
Zhang et al. Adaptive simulation of facial expressions