JPS5913073B2 - Fixed line method - Google Patents

Fixed line method

Info

Publication number
JPS5913073B2
JPS5913073B2 JP52125060A JP12506077A JPS5913073B2 JP S5913073 B2 JPS5913073 B2 JP S5913073B2 JP 52125060 A JP52125060 A JP 52125060A JP 12506077 A JP12506077 A JP 12506077A JP S5913073 B2 JPS5913073 B2 JP S5913073B2
Authority
JP
Japan
Prior art keywords
circuit
bit
line
interest
thinning
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
JP52125060A
Other languages
Japanese (ja)
Other versions
JPS5459035A (en
Inventor
勇 能勢
義征 山下
雄之輔 羽下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP52125060A priority Critical patent/JPS5913073B2/en
Publication of JPS5459035A publication Critical patent/JPS5459035A/en
Publication of JPS5913073B2 publication Critical patent/JPS5913073B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は文字読取装置、特に手書文字を読取る装置の前
処理部における定線化方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a line-setting method in a preprocessing section of a character reading device, particularly a handwritten character reading device.

従来の前処理部を第1図に示す。A conventional preprocessing section is shown in FIG.

第1図において、1は光電変換部からの2値化ディジタ
ル信号、門 2はフィルタ、3はパターンレジスタの如
<構成されており、フィルタ2は量子化ノイズを除〈程
度であつたので、線幅の非常に太い文字あるいは非常に
細い文字の場合は、文字の読取りが困難になる場合が多
かつた。又、細線化回路を設けてあフ る装置もあるが
、あまり細めすぎると第2図に示すように文字パターン
が変形して誤読される危険性があつた。本発明の目的は
これらの欠点を除去するため、太い部分は細めるがある
一定幅以下には細めないようにし、又非常に細い部分は
太めるようにしたもので、以下詳細に説明する。
In FIG. 1, 1 is a binary digital signal from a photoelectric converter, gate 2 is a filter, and 3 is a pattern register.Since filter 2 was able to remove quantization noise, In the case of characters with very thick lines or very thin lines, it was often difficult to read the characters. Additionally, some devices are equipped with a thinning circuit, but if the line is made too thin, the character pattern may be deformed and misread, as shown in Figure 2. The purpose of the present invention is to eliminate these drawbacks by preventing thick portions from narrowing below a certain width, and by widening very thin portions, which will be described in detail below.

第3図は本発明の第1の実施例を示す前処理部における
定線化方式のブロック図であつて、4は文字図形を光電
変換して得られた2値化入力信号、95は細線化回路、
6は細線化回路の出力信号、Tは検査回路、8は太線化
回路制御入力信号、9は太線化回路パターン入力信号、
10は太線化回路、11は定線化出力信号である。
FIG. 3 is a block diagram of a fixed line method in a preprocessing section showing the first embodiment of the present invention, in which 4 is a binary input signal obtained by photoelectrically converting a character figure, and 95 is a thin line. circuit,
6 is the output signal of the thinning circuit, T is the test circuit, 8 is the thickening circuit control input signal, 9 is the thickening circuit pattern input signal,
10 is a thick line conversion circuit, and 11 is a constant line conversion output signal.

第3図において、細線化回路5はある条件のも5 とに
細線化を行なうもので、2値化入力信号4を入力として
、着目ビットを中心とした3×3ビット及び5×5ビッ
トの周辺径路(以下周辺という)を調べ、3×3ビット
における特定ビット(着目ビットの上下左右)の白黒情
報並びに3×3ビッ’0 卜及び5×5ビットにおける
白から黒あるいは黒から白への変化点個数とで決定され
るその着目ビットの値(白又は黒)を出力する。
In FIG. 3, the line thinning circuit 5 performs line thinning under certain conditions, and uses the binarized input signal 4 as input to generate 3 x 3 bits and 5 x 5 bits centered on the bit of interest. Examine the peripheral path (hereinafter referred to as peripheral) and obtain the black and white information of specific bits (top, bottom, left and right of the bit of interest) in 3 x 3 bits, as well as the information from white to black or from black to white in 3 x 3 bit '0' and 5 x 5 bit. The value (white or black) of the bit of interest determined by the number of change points is output.

次に検査回路7はある条件のもとに太線化のための制御
情報を検出するもので、細線化回路5の■5 出力信号
6より、着目ビットを中心とした3×3ビット及び5×
5ビットの周辺を細線化回路5と同様に調べ、特定ビッ
トの白黒情報並びに変化点個数とで決定されるその着目
ビツトの値を太線化回路制御信号8として出力すると共
に細線化回路5の出力信号6もそのまま太線化回路パタ
ーン入力信号9として出力する。
Next, the inspection circuit 7 detects control information for thickening the line under certain conditions, and from the output signal 6 of the thinning circuit 5, 3×3 bits centered around the bit of interest and 5×
The area around the 5 bits is examined in the same way as the thinning circuit 5, and the value of the bit of interest determined by the black and white information of the specific bit and the number of changing points is output as the thick line circuit control signal 8 and the output of the thinning circuit 5. The signal 6 is also outputted as it is as a bold circuit pattern input signal 9.

次に太線化回路10はある条件のもとに太線化を行なう
もので、検査回路7からの出力信号8より着目ビツトt
中心とした3X3ビツトの周辺を調べ、その周辺の制御
情報(細められないという制御情報)の有無と、上記信
号8に同期した信号9の着目ビツトの白黒情報とにより
決まるその着,目ビツトの値(白又は黒)を出力する。
Next, the thickening circuit 10 thickens the line under certain conditions, and uses the output signal 8 from the inspection circuit 7 to determine the bit t of interest.
The surroundings of the 3X3 bits in the center are examined, and the position and the target bit are determined by the presence or absence of control information (control information that does not narrow down) around the center and the black and white information of the target bit of signal 9 synchronized with signal 8. Outputs the value (white or black).

この太線化回路10の出力11が定線化の最終出力であ
る。太線化回路10の出力11はパターンレジスタ(図
示せず)に入力される。なお、本発明では黒のビツトは
論理値「1」、 1白のビツトは論理値「0」を意味す
るものとする。
The output 11 of this thick line forming circuit 10 is the final output of the line forming circuit 10. The output 11 of the thickening circuit 10 is input to a pattern register (not shown). In the present invention, a black bit means a logical value "1", and a white bit means a logical value "0".

第4図は第3図における細線化回路5の詳細を示した図
である。なお、検査回路7もこれと同じ構成である。第
4図において、4−1,4−2,・・・・・・ 4−5
は2値化パターン入力信号であり、13−1,13−2
,・・・・・・,13−5はシフトレジスタで5列あり
谷センサ視野に対応するビツト数で構成されており、2
値化パターン入力信号がシリアルに入力する場合のもの
である。又14一1,14−2,・・・・・・14−5
はシフトレジスタで5列あり各列5ビツト構成で各ビツ
トの出力はXOνX1ツX2t゜゜゜゜゛)X24であ
る。このシフトレジスタ14−1,14−2,・・・・
・・,14−5は着目ビツトX。を中心とした3×3ビ
ツト及び5X5ビツトの周辺を調べるためのものであつ
て、.ピツトX1〜X8は着目ビツトX。を中心とした
3X3ビツトの周辺を示し、ビツトX,〜X24は着目
ビツトXOを中心とした5×5ビツトの周辺を示してい
る。15−1,15−2,・・・・・・,15−24は
ビツJトX1〜X24を入力とする排他的論理和(Ex
clusiveOR)回路で各出力はY,,y2,y2
4である。
FIG. 4 is a diagram showing details of the thinning circuit 5 in FIG. 3. Note that the inspection circuit 7 also has the same configuration. In Figure 4, 4-1, 4-2,...4-5
are binary pattern input signals, 13-1, 13-2
,...,13-5 is a shift register with 5 columns, consisting of the number of bits corresponding to the field of view of the valley sensor, and 2
This is for the case where the digitized pattern input signal is input serially. Also 14-1, 14-2, 14-5
is a shift register with 5 columns, each column has 5 bits, and the output of each bit is XOνX1×2t゜゜゜゜゛)X24. These shift registers 14-1, 14-2,...
..., 14-5 is the bit of interest X. The purpose is to investigate the surroundings of 3x3 bits and 5x5 bits centered on . Bits X1 to X8 are bits of interest. The periphery of 3×3 bits centered on the bit XO is shown, and bits X, to X24 are the periphery of 5×5 bits centered on the bit of interest XO. 15-1, 15-2, ..., 15-24 are exclusive ORs (Ex
exclusiveOR) circuit, each output is Y,,y2,y2
It is 4.

16−1,16−2は演算回路であつて、演算回路16
−1は着目ピツトX。
16-1 and 16-2 are arithmetic circuits, and the arithmetic circuit 16
-1 is the focus point X.

を中心とした3×3ビツトの周辺に沿つた白から黒ある
・いは黒から白への変化点個数を演算するもので、(
Σ y )/゛2(分母の2は黒→白又は白→n=1n
黒のうぢ一方に着目するためである)の演算結果をYA
に出力し、演算回路16−2は着目ビツトXOを中心と
した5×5ビツトの周辺に沿つた白から黒あるいは黒か
ら白への変化点個数を演算するもので、( Σ y )
/2(分母の2は前記n=9n演算回路16−1の場合
と同じ)の演賛結果をY3に出力する。
It calculates the number of transition points from white to black or from black to white along the periphery of 3 × 3 bits centered on (
Σ y )/゛2 (denominator 2 is black → white or white → n = 1n
This is to focus on one side of the black color.
The arithmetic circuit 16-2 calculates the number of transition points from white to black or from black to white along the periphery of 5×5 bits centered on the bit of interest XO, (Σ y )
/2 (the denominator 2 is the same as in the case of the n=9n arithmetic circuit 16-1) is output to Y3.

17は特定のビツトX2,X4,X6,X8を入力とす
る4AND回路でY。
17 is a 4AND circuit that inputs specific bits X2, X4, X6, and X8.

はその出力である。このような細線化回路5における着
目ビツトの値を決定する条件は、とすると、 (条件1) (条件2) XO=「0 5の出力6は HOut=「O」 XO=「1」の場合、 YA=YB=1かつYc=[0」の 場合のみ HOut=[O」、 他はHOut=「1」 の場合、細線化回路 である。
is its output. The conditions for determining the value of the target bit in the thinning circuit 5 are as follows: (Condition 1) (Condition 2) XO = "0"5's output 6 is HOut = "O" XO = "1" , HOut=[O] only when YA=YB=1 and Yc=[0], and HOut=[1] otherwise, it is a thinning circuit.

すなわち、着目ビツトX。In other words, the bit of interest is X.

の出力値として、着目ビツトX。が白の場合並びに着目
ビットX。を中心とした3×3ビツトの周辺に沿つた変
化点個数YA及び着目ビツトX。を中心とした5×5ビ
ツトの周辺に沿つた変化点個数YBが共に1でぁりかつ
着目ビツトX。を中心とした3×3ビツトの周辺の特定
ビツトX2′X49X6′X8の論理積Y。が「O」で
あつてかつ着目ビツトX。が黒の場合のみ「0」とし、
他は「1」とする。又、細線化回路5と同じ回路構成の
検査回路7における着目ビツトの値を決定する条件は、
YA,YB,Ycは前記第(1)式〜第(3)式で定義
すると、(条件3)XO=「O」の場合、検査回路7の
出力8はKOut=[0」 (条件4)XO=「1」の場合、 (YA〉又はYB〉2)かつY。
The bit of interest is X as the output value. If is white and the bit of interest is X. The number of changing points YA and the bit of interest X along the periphery of 3×3 bits centered on . The number of change points YB along the periphery of 5×5 bits centered on is both 1 and the bit of interest is X. Logical product Y of specific bits X2'X49X6'X8 around 3x3 bits centered on . is "O" and the bit of interest is X. Set to "0" only if is black,
The others are set to "1". Furthermore, the conditions for determining the value of the bit of interest in the inspection circuit 7 having the same circuit configuration as the thinning circuit 5 are as follows:
When YA, YB, and Yc are defined by the above equations (1) to (3), (condition 3) when XO = "O", the output 8 of the test circuit 7 is KOut = [0] (condition 4) If XO=“1”, (YA>or YB>2) and Y.

「0」の場合のみ KOut二[1」、 それ以外はKOut=「0」 である。Only if "0" KOut2[1], Otherwise, KOut="0" It is.

すなわち、着目ビツトX。In other words, the bit of interest is X.

の出力値として、着目ビツトX。な中心とした3X3ビ
ツトの周辺に沿つた変化点個数YAが2以上であるか又
は着目ビツトX。を中心とした5×5ビツトの周辺に沿
つた変化点個数YBが2以上であつてかつ着目ビツトX
。を中心とした3×3ビツトの周辺の特定ビツトX2ラ
X4ラX6リ X8の論理積Ycが「0」の場合のみ「
1」とし、他は「0」とする。第5図は第3図における
太線化回路10の詳細を示した図である。第5図におい
て8−1,82,8−3は検査回路7の出力信号で太線
化回路を制御するための信号である。9−1,9−2は
検査回路7の出力信号で太線化回路パターン入力信号で
ある。
The bit of interest is X as the output value. The number of changing points YA along the periphery of the central 3X3 bit is 2 or more, or the bit of interest is X. The number of change points YB along the periphery of 5 × 5 bits centered on is 2 or more and the bit of interest
. Specific bits around the 3x3 bits centered around
1” and the others are 0. FIG. 5 is a diagram showing details of the thick line circuit 10 in FIG. 3. In FIG. 5, 8-1, 82, and 8-3 are output signals of the inspection circuit 7 and are signals for controlling the bold line circuit. 9-1 and 9-2 are output signals of the inspection circuit 7, which are thick line circuit pattern input signals.

19−1,19−2,19−3はシフトレジスタ13−
1〜13−5と同じシフトレジスタで3列あり太線化回
路制御信号がシリアルに入力する場合のものである。
19-1, 19-2, 19-3 are shift registers 13-
This is the same shift register as 1 to 13-5, but has three columns, and the thick line circuit control signal is input serially.

20−1,202,20−3はシフトレジスタで3列あ
り各列3ビツト構成で谷ビツトの出力はC。
20-1, 202, and 20-3 are shift registers with three columns, each column consisting of three bits, and the output of the valley bit is C.

,C,,C2・・・・・・,C8である。又21−1,
21−2もシフトレジスタ19−1〜19−3と同じシ
フトレジスタで2列あり太線化回路パターン入力信号が
シリアル入力する場合のものであり、22もシフトレジ
スタで第2ビツトの出力はP。である。又シフトレジス
タ20−1〜20−3のビツトC1〜C8は着目ビツト
C。を中心とした3X3ビットの周辺を示し、シフトレ
ジスタ22のビツトPOは太線化回路制御信号と同期し
た太線化回路パターン入力信号(細線化回路5の出力信
号と同じ信号)の着目ビツトを示している。23はビツ
ト出力C1〜C8を入力とする80R回路であり、24
は80R回路23の出力とビツト出力POを入力とする
0R回路である。
,C,,C2...,C8. Also 21-1,
The shift register 21-2 is the same as the shift registers 19-1 to 19-3, and has two columns, and is used when the bold circuit pattern input signal is serially input.The output of the second bit of the shift register 22 is P. It is. Bits C1 to C8 of shift registers 20-1 to 20-3 are bit C of interest. The bit PO of the shift register 22 shows the target bit of the thick line circuit pattern input signal (the same signal as the output signal of the thin line circuit 5) synchronized with the thick line circuit control signal. There is. 23 is an 80R circuit which receives bit outputs C1 to C8 as input;
is an 0R circuit whose inputs are the output of the 80R circuit 23 and the bit output PO.

このような太線化回路10における着目ビツトの値は次
式で定義される。
The value of the bit of interest in such thick line conversion circuit 10 is defined by the following equation.

F0ut=PO( Σ C ) ・・・・・・・・・(
4)m−1mすなわち、着目ビツトC。
F0ut=PO(ΣC) ・・・・・・・・・(
4) m-1m, that is, the bit C of interest.

の出力値として、着目ビツトC。を中心とした3X3ビ
ツトの周辺に1つ以上の黒情報(細められないという制
御情報)があるかもしくはその着目ビツトC。と同期し
たビツトP。が黒情報の場合は「1」とし、他は「O」
とする。上記FOutが定線化の最終出力である。
The bit C of interest is the output value of . There is one or more pieces of black information (control information that does not narrow down) around the 3X3 bit centered on , or the bit C of interest is there. Bit P synchronized with. If it is black information, set it to "1", otherwise set it to "O".
shall be. The above FOut is the final output of the constant line conversion.

第6図及び第7図は本実施例による定線化方式の具体例
を示したものである。
FIGS. 6 and 7 show specific examples of the line straightening method according to this embodiment.

(第6図及び第7図において×印は黒ビツトを表わすも
のとする。)第6図は細い線が定線化される場合を示す
もので、第6図aは細線化回路5に入力される2値化パ
ターンであり、第6図bは第6図aのパターンを細線化
回路5の(条件1)及び(条件2)によつて細線化した
パターンである。第6図cは第6図bのパターンを検査
回路7の(条件3)及び(条件4)によつて細められる
か否かの検査をした結果のパターンで、これ以上細めら
れない線縁パターンを示している。第6図dは第6図c
のパターンを太線化回路10の第(4)式に定義された
条件によつて太線化したパターンであつて定線化された
状態を小すものである。又第7図は太い線が定線化され
る場合を示すもので、第7図aは細線化回路5に入力さ
れる2値化パターンであり、第7図bは細線化回路5の
出力パターンである。
(In Figures 6 and 7, the x marks represent black bits.) Figure 6 shows the case where a thin line is made into a constant line, and Figure 6a shows the input to the thinning circuit 5. FIG. 6b is a pattern obtained by thinning the pattern of FIG. 6a according to (condition 1) and (condition 2) of the thinning circuit 5. FIG. 6c is a pattern that is the result of testing the pattern in FIG. 6b to see if it can be narrowed by (condition 3) and (condition 4) of the inspection circuit 7, and is a line edge pattern that cannot be narrowed any further. It shows. Figure 6 d is Figure 6 c
This is a pattern obtained by making the pattern into a thick line according to the condition defined by equation (4) of the thick line making circuit 10, and reduces the constant line state. 7 shows a case where a thick line is made into a constant line, FIG. 7a is a binary pattern input to the thinning circuit 5, and FIG. 7b is an output of the thinning circuit 5. It's a pattern.

第7図cは検査回路7の出力パターンであって黒ビツト
がまつたくないが、これは第7図bのパターンがこれ以
上太められないことを示しており、第7図dに示す太線
化回路10の出力パターンは第7図bと同じパターンに
なる。以上説明したように、第1の実施例ではまず細線
化回路を通すことにより太い線は細められる。
Figure 7c shows the output pattern of the test circuit 7, and the black bits are not bright, which indicates that the pattern in Figure 7b cannot be made any thicker, and the pattern shown in Figure 7d is thickened. The output pattern of circuit 10 will be the same as that in FIG. 7b. As explained above, in the first embodiment, thick lines are first thinned by passing them through a thinning circuit.

しかし細い線は3×3及び5×5の範囲で検査している
ので連続している細い線は切れないように考慮されてい
る。又次に太線化回路化通すことにより非常に細い線は
太められるので、細線化回路と太線化回路の組合わせに
より、ほぼ一定の線幅χもつ文字パターンが得られる利
点がある。一般的11CO.5mlの芯を用いたシヤー
プベンシルで書いた文字を100μm前後でサンプルす
ると線幅はサンプル数にて8〜2サンプル程度であるの
で、まず細線化回路を2〜3段通した後太線化回路を1
段通すと4〜2サンプル程度の線幅をもつたパターンが
得られる。又あまり細線化の段数を増すとパターンの歪
が大きくなるのでその点からもこのくらいの段数が望ま
しい。又、第1の実施例では各部回路を演算素子を用い
て説明したが、ROMを用いることにより実装密度が上
がりかつ同様の効果を得ることができる。
However, since thin lines are inspected in the 3×3 and 5×5 ranges, consideration is given to ensuring that continuous thin lines do not break. Next, very thin lines can be made thicker by passing them through the thickening circuit, so the combination of the thinning circuit and the thickening circuit has the advantage that a character pattern having a substantially constant line width χ can be obtained. General 11CO. If you sample a character written with Sharp Vencil using a 5ml lead at around 100μm, the line width will be about 8 to 2 samples, so first pass it through 2 to 3 stages of thinning circuit, then thicken it. 1
By passing through the layers, a pattern with a line width of about 4 to 2 samples is obtained. Further, if the number of stages of line thinning is increased too much, the distortion of the pattern becomes large, so from this point of view as well, this number of stages is desirable. Further, in the first embodiment, each circuit was explained using arithmetic elements, but by using a ROM, the packaging density can be increased and similar effects can be obtained.

又従来の簡単なノイズ除去フイルタを定線化回路の前後
においた方が出力に望ましいパターンが得られる。第1
の実施例では細線化回路において(条件2)の場合Y。
Furthermore, a desirable pattern can be obtained in the output by placing a conventional simple noise removal filter before and after the linearization circuit. 1st
In the embodiment, Y in the case of (condition 2) in the thinning circuit.

=0という条件が入つていたが、第2の実施例としてこ
の条件を除いた細線化回路を用いても同様の効果がある
。すなわち、第2の実施例の細線化回路の着目ビツトの
値を決定する条件は、(条件1) (条件5) XO=「0」の場合、 HOut=「O」 XO=「1」の場合、 YA=YB=1の場合のみ HOut=「0」, 他はHOut二「1」 である。
Although the condition that =0 is included, the same effect can be obtained even if a thinning circuit excluding this condition is used as the second embodiment. That is, the conditions for determining the value of the target bit of the line thinning circuit of the second embodiment are (Condition 1) (Condition 5) When XO = "0", HOut = "O", When XO = "1" , HOut="0" only when YA=YB=1, otherwise HOut="1".

すなわち、着目ビツトX。In other words, the bit of interest is X.

の出力値として、着目ビツトX。が白の場合並びに着目
ピツトX。を中心とした3×3ビツトの周辺に沿つた変
化点個数YA及び着目ビツトX。を中心とした5×5ビ
ツトの周辺に沿つた変化点個数YBが共VClであつて
かつ着目ビツトX。が黒の場合のみ「0」とし、他は[
1」とする。又、第1の実施例の細線化回路では、3X
3ビツトの周辺において着目ビツトが線の縁であつても
特定ビツト(上下左右のビツト)が黒であればそのビツ
トは細めない(YO′−0という条件による)ので斜目
の線は第8図aに示すように水平あるいは垂直線と比べ
て1/Jnの割合で細められていくことになり、細める
量がパターンの形により異なり歪の原因となる場合があ
る。
The bit of interest is X as the output value. If is white, and focus point X. The number of changing points YA and the bit of interest X along the periphery of 3×3 bits centered on . The number of changing points YB along the periphery of 5×5 bits centered on is both VCl and the bit of interest is X. Set to "0" only if is black, otherwise [
1". Moreover, in the thinning circuit of the first embodiment, 3X
Even if the bit of interest is at the edge of the line around the 3rd bit, if the specific bit (upper, lower, left, or right bit) is black, that bit will not be thinned (under the condition of YO'-0), so the diagonal line will be the 8th line. As shown in Figure a, the lines are thinned at a rate of 1/Jn compared to horizontal or vertical lines, and the amount of thinning varies depending on the shape of the pattern and may cause distortion.

又第2の実施例の細線化回路では逆に斜めの線は第8図
bに示すように水平線あるいは垂直線と比べて!2の割
合で細められていく。
In the thinning circuit of the second embodiment, on the other hand, diagonal lines are compared to horizontal or vertical lines as shown in FIG. 8b! It is narrowed down at a rate of 2.

従つて、第3の実施例として、細線化部を第1の実施例
で用いた細線化回路Aと第2の実施例で用いた細線化回
路Bを用い奇数段を細線化回路Aとし偶数段を細線化回
路Bとするかあるいは奇数段を細線化回路Bとし偶数段
を細線化回路Aとする方式にすれば、細める割合が均等
になるのでさらに歪の少ない定線化パターンが得られる
。第9図及び第10図は細線化回路を3段用いた定線化
方式の具体例を示したもので、第9図は前記細線化回路
Aを3段用いた場合、第10図は寄数段に前記細線化回
路Bを偶数段に前記細線化回路Aを用いた第3の実施例
の場合である。
Therefore, as a third embodiment, the thinning circuit A used in the first embodiment and the thinning circuit B used in the second embodiment are used as the thinning section, and the odd-numbered stages are thinned circuit A and the even-numbered stages are thinned circuit A. If the stages are made into thinning circuit B, or the odd-numbered stages are made into thinning circuit B and the even-numbered stages are made into thinning circuit A, the thinning ratio becomes equal, and a constant line pattern with even less distortion can be obtained. . 9 and 10 show specific examples of a fixed line method using three stages of line thinning circuits. This is the case of the third embodiment in which the thinning circuit B is used in several stages and the thinning circuit A is used in even stages.

なお、第9図及び第10図における×印は原パターンの
黒ビツトを示し2印は定紹ヒ出力パターンの黒ビツトを
示す。第9図及び第10図から明らかなように、第3の
実施例ではさらに歪の少ない定線化パターンが得られる
。前記第1及び第2の実施例による細線化方式では第6
図a及びbに示すように細い線では線の両端が1段の細
線化において大きく(黒ビツトパターンで2ビツトに相
当する長さ)削られるので線が短くなつてしまう。
Note that the x marks in FIGS. 9 and 10 indicate black bits of the original pattern, and the 2 marks indicate black bits of the regular output pattern. As is clear from FIGS. 9 and 10, in the third embodiment, a fixed line pattern with even less distortion can be obtained. In the line thinning methods according to the first and second embodiments, the sixth
As shown in Figures a and b, both ends of the line are significantly shaved off (by a length equivalent to 2 bits in a black bit pattern) in one stage of line thinning, resulting in a shortened line.

従つて、第4の実施例として下記の(条件1)と(条件
6)による細線化回路を用いた定線化方式にすれば上記
の欠点が除去できる。(条件1) XO−「0」の場合
、 HOut=「o」 (条件6) XO=「1」の場合、 YA:YB=1かつYc=YO二「0」 の場合のみ HOut=「O」、 他はHOut二「1−! 但し 24≧Kの場合Y。
Therefore, the above-mentioned drawbacks can be eliminated by adopting a line thinning method using a line thinning circuit according to (condition 1) and (condition 6) described below as the fourth embodiment. (Condition 1) If XO = “0”, HOut = “o” (Condition 6) If XO = “1”, HOut = “O” only if YA:YB = 1 and Yc = YO2 “0” , Others are HOut2 "1-! However, if 24≧K, Y.

=[0」Σ X n=9n<Kの場合Y。= [0”Σ Y if n=9n<K.

=「1」(Kは定数) すなわち、着目ビツトX。= “1” (K is a constant) In other words, the bit of interest is X.

の出力値として、着目ビツトX。が白0場合並びに着目
ビットX。を中心とした3X3ビツトの周辺に沿つた変
化点個数YA及び着目ビツトX。を中心とした5×5ビ
ット周辺に沿つた変化点個数YBが共に1でありかつ着
目ビツトX。を中心とした3×3ビツトの周辺の特定ビ
ツトX2,X4,X6,X8の論理積Y。が「O」であ
りかつ着目ピツトXOを中心とした5×5ビツトの周辺
の黒情報の個数Kが一定の数以上であつてかつ着目ビツ
トX。が黒の場合のみ[0」とし、他は「1」とする。
第4の実施例によれば第6図aのパターンは細線化して
も同じパターンとなり線の端が削られないので多段の細
線化回路を用いても線長が著しく短くなることはない。
The bit of interest is X as the output value. If is white 0 and the target bit X. The number of change points YA and the bit of interest X along the periphery of 3X3 bits centered on . The number of change points YB along the 5×5 bits around the center are both 1 and the bit of interest is X. Logical product Y of specific bits X2, X4, X6, and X8 around 3×3 bits centered on . is "O", and the number K of black information surrounding the 5x5 bits centered on the focused pit XO is a certain number or more, and the focused bit X. It is set as [0] only when is black, and set as [1] otherwise.
According to the fourth embodiment, even if the pattern shown in FIG. 6A is thinned, the same pattern remains and the ends of the line are not shaved, so even if a multi-stage thinning circuit is used, the line length will not be significantly shortened.

一般的にKの値としては4〜3が適当であり本実施例で
はK=3である。又、第5の実施例として、下記の(条
件1)と(条件7)による細線化回路を用いた定線化方
式にしても第4の実施例と同様の効果が得られる。(条
件1) XO−「O」の場合、HOut=「O」 (条件7) XO−「1」の場合、 YA=YB=1かつY。
Generally, a value of 4 to 3 is appropriate for K, and in this embodiment, K=3. Further, as a fifth embodiment, the same effect as the fourth embodiment can be obtained even if a line thinning method using a line thinning circuit according to (condition 1) and (condition 7) described below is adopted. (Condition 1) In the case of XO-“O”, HOut=“O” (Condition 7) In the case of XO-“1”, YA=YB=1 and Y.

=「0」の場合のみ HOut=[o」、 他はHOut二[1」 但し 24≧Kの場合Y。Only if = “0” HOut=[o”, Others are HOut2 [1] however Y if 24≧K.

−[0」n&Xn<−Mの場合YD=[1」 (Mは定数) すなわち、着目ビツトX。-[0"n&Xn<-M then YD=[1" (M is a constant) In other words, the bit of interest is X.

の出力値として、着目ビツトX。が白の場合並びに着目
ビツトX。を中心とした3×3ビツトの周辺に沿つた変
化点個数YA及び着目ビツトX。を中心とした5×5ビ
ツトの周辺に沿つた変化点個数YBが共に1でありかつ
着目ビツトX。を中心とした5×5ビツトの周辺の黒情
報の個数Kが一定の数以上であつてかつ着目ビツトX。
が黒の場合のみ[0」とし、他は[1」とする。なお、
Kの値は第4の実施例の場合と同じである。
The bit of interest is X as the output value. If is white and the bit of interest is X. The number of changing points YA and the bit of interest X along the periphery of 3×3 bits centered on . The number of change points YB along the periphery of 5×5 bits centered on is both 1 and the bit of interest is X. The number K of black information surrounding the 5×5 bits centered on the target bit X is greater than or equal to a certain number.
It is set to [0] only when is black, and set to [1] otherwise. In addition,
The value of K is the same as in the fourth embodiment.

以上実施例により詳述したように、本発明は細線化回路
と太線化回路を有しているので、原パターンχあまり歪
まさない範囲でほぼ一定線幅のハブターンを得ることが
できる利点があり、手書文字読取装置の前処理部に利用
することができる。
As described above in detail with reference to the embodiments, since the present invention has a thinning circuit and a thickening circuit, it has the advantage that a hub turn with a substantially constant line width can be obtained without significantly distorting the original pattern χ. , it can be used in a preprocessing section of a handwritten character reading device.

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

第1図は従来の前処理部のプロツク図、第2図は従来の
細線化によるパターンの歪を示した図、第3図は本発明
の第1の実施例を示す定線化方式のプロツク図、第4図
は第3図における細線化回路の詳細を示した図、第5図
は第3図における太線化回路の詳細を示した図、第6図
、第7図は第1の実施例における定線化の説明図、第8
図は第1及び第2の実施例における斜目の線の細線化を
示した図、第9図は細線化回路Aを3段用いた場合の定
線化を示した図、第10図は第3の実施例による定線化
を示した図である。 4,4−1〜4−5・・・・・・光電変換して得られた
2値化入力信号、5・・・・・・細線化回路、6・・・
・・・細線化回路の出力信号、7・・・・・・検査回路
、8,8−1〜8−3・・・・・・太線化回路制御入力
信号、9,91〜9−2・・・・・・太線化回路パター
ン入力信号、10・・・・・・太硬ヒ回路、11・・・
・・・定線化出力信号、13−1〜13−5,14〜1
〜14−5,19−1〜19−3,20−1〜20−3
,21−1〜21−2,22・・・・・・シフトレジス
タ、15−1〜15−24・・・・・・排他的論理和回
路、16−1〜16−2・・・・・・演算回路、17・
・・・・・4AND回路、23・・・・・・80R回路
、24・・・・・・0R回路、XO〜X24・・・・・
・シフトレジスタ14−1〜14−5の各ビツト出力、
CO−C8・・・・・・シフトレジスタ20一1〜20
−3の各ビツト出力、PO・・・・・・シフトレジスタ
22のビツト出力。
FIG. 1 is a block diagram of a conventional preprocessing section, FIG. 2 is a diagram showing pattern distortion due to conventional line thinning, and FIG. 3 is a block diagram of a fixed line method according to the first embodiment of the present invention. 4 shows details of the thinning circuit in FIG. 3, FIG. 5 shows details of the thickening circuit in FIG. 3, and FIGS. 6 and 7 show details of the thinning circuit in FIG. 3. Explanatory diagram of constant line conversion in example, No. 8
The figure shows the thinning of diagonal lines in the first and second embodiments, FIG. 9 shows the line thinning when three stages of thinning circuit A are used, and FIG. It is a figure showing fixed line formation by a 3rd example. 4, 4-1 to 4-5... Binarized input signal obtained by photoelectric conversion, 5... Thinning circuit, 6...
... Thinning circuit output signal, 7... Inspection circuit, 8, 8-1 to 8-3... Thick line circuit control input signal, 9, 91 to 9-2. ...Thick circuit pattern input signal, 10...Thick hard circuit, 11...
... Fixed line output signal, 13-1 to 13-5, 14 to 1
〜14-5, 19-1〜19-3, 20-1〜20-3
, 21-1 to 21-2, 22...shift register, 15-1 to 15-24...exclusive OR circuit, 16-1 to 16-2...・Arithmetic circuit, 17・
...4AND circuit, 23...80R circuit, 24...0R circuit, XO~X24...
・Each bit output of shift registers 14-1 to 14-5,
CO-C8...Shift register 20-1-20
-3 bit output, PO... Bit output of shift register 22.

Claims (1)

【特許請求の範囲】[Claims] 1 文字図形の2値化ディジタル信号を入力として、そ
の着目ビットを中心としたi×i(iは3以上の整数)
ビットの周辺径路に沿つた、黒から白への若しくは白か
ら黒への第1変化点個数を検出し、且つ前記着目ビット
を中心としたj×jビット(jは5以上の整数で、j>
i)の周辺径路に沿つた、黒から白への若しくは白から
黒への第2変化点個数を検出し、少なくとも第1変化点
個数と第2変化点個数とが共に1個であることを含む定
められた条件を満足する場合に、前記着目ビットを黒か
ら白へ変換する細線化処理を施し、この細線化処理を1
ないし複数回行なつた後太線化処理を行なうことを特徴
とした定線化方式。
1 Input a binary digital signal of a character figure and calculate i×i (i is an integer of 3 or more) centered on the bit of interest.
Detects the number of first change points from black to white or from white to black along the peripheral path of the bit, and detects j×j bits (j is an integer of 5 or more, and j >
Detecting the number of second changing points from black to white or from white to black along the peripheral path of i), and checking that at least the first number of changing points and the second number of changing points are one. If predetermined conditions including
A fixed line forming method characterized by carrying out thick line processing after carrying out the process one or more times.
JP52125060A 1977-10-20 1977-10-20 Fixed line method Expired JPS5913073B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52125060A JPS5913073B2 (en) 1977-10-20 1977-10-20 Fixed line method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52125060A JPS5913073B2 (en) 1977-10-20 1977-10-20 Fixed line method

Publications (2)

Publication Number Publication Date
JPS5459035A JPS5459035A (en) 1979-05-12
JPS5913073B2 true JPS5913073B2 (en) 1984-03-27

Family

ID=14900816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52125060A Expired JPS5913073B2 (en) 1977-10-20 1977-10-20 Fixed line method

Country Status (1)

Country Link
JP (1) JPS5913073B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5760457A (en) * 1980-09-29 1982-04-12 Mitsubishi Electric Corp Character fair copy device
JPS59211174A (en) * 1983-05-17 1984-11-29 Ricoh Co Ltd Core wire pattern extraction method
JP2933828B2 (en) * 1994-07-25 1999-08-16 株式会社リコー Image pattern processing device

Also Published As

Publication number Publication date
JPS5459035A (en) 1979-05-12

Similar Documents

Publication Publication Date Title
US4942619A (en) Pattern inspecting apparatus
JPS63265371A (en) Diagram connecting device
JPS5913073B2 (en) Fixed line method
JP3919505B2 (en) Pattern inspection apparatus and method
JP3116438B2 (en) Inspection apparatus and inspection method for printed wiring board
JPS5830645A (en) Pattern inspecting system
JPS6295405A (en) location recognition device
JP3198105B2 (en) Automatic visual inspection device
JPH02268372A (en) Mark detecting method
JPS62280981A (en) Pattern defect inspection device
JP2843389B2 (en) Bonding ball inspection device
JPH095030A (en) Edge position detecting device, edge position detecting method and line position measuring method
JPS5923536A (en) Reference pattern take in system
JPS59168312A (en) Pattern-defect judging device
JPS5896365A (en) Linear graph detecting method
JPH09185718A (en) Automatic pattern defect inspection system
JPS63115035A (en) Pattern data inspecting device
JP2664270B2 (en) Foreign object detection method and device
JPS62288987A (en) Pattern inspection device
JPS62115590A (en) Picture circumference length extracting system
JPS6071906A (en) Method for measuring circumferential length of binary coded image
JPS6084815A (en) Picture processing apparatus
JP2001242851A (en) Method and device for interpolation and recording medium
JPS62274477A (en) Pattern defect inspection equipment
JPS62200742A (en) Wafer shape measuring device