JPS60195685A - Character segmenting circuit - Google Patents

Character segmenting circuit

Info

Publication number
JPS60195685A
JPS60195685A JP59051912A JP5191284A JPS60195685A JP S60195685 A JPS60195685 A JP S60195685A JP 59051912 A JP59051912 A JP 59051912A JP 5191284 A JP5191284 A JP 5191284A JP S60195685 A JPS60195685 A JP S60195685A
Authority
JP
Japan
Prior art keywords
histogram
circuit
character
character string
density gradient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59051912A
Other languages
Japanese (ja)
Inventor
Takashi Torio
隆 鳥生
Noboru Ozaki
暢 尾崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59051912A priority Critical patent/JPS60195685A/en
Publication of JPS60195685A publication Critical patent/JPS60195685A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To obtain a character segmenting circuit which can reduce a memory capacity, by calculating a density gradient direction histogram in the direction of character line and detecting the direction of a character string by collating the calculated histogram with the direction histogram of a standard pattern. CONSTITUTION:A picture memory 1 stores a picture to be processed immediately out of read pictures and differentiation arithmetic circuits 5 and 6 calculate and detect the horizontal and vertical components of the density gradient vector of stored pictures. A density gradient direction detecting circuit 7 detects the direction of the density gradient vector. A direction histogram calculating circuit 8 calculates the direction histogram of density gradient vectors from the direction of the vectors obtained for each picture element and causes a histogram memory 10 to record the histogram. A direction detecting circuit 11 compares the standard histogram of another histogram memory 9 with the direction histogram and detects the direction of a character string to be processed. A projection circuit 12 projects the picture against the axis normal to the detected direction of the character string and a line separating circuit 13 finds the minimum value, 2nd mean value and 3rd mean value of the projected values by scanning the projection.

Description

【発明の詳細な説明】 (a)発明の技術分野 本発明は2文字線方向の分布状況を示す濃度勾配方向ヒ
ストグラムを利用して1文字列の方向を検出した後2行
の分離1個々の文字の分離の2段階の分離処理で文字の
切出しを行う文字切出し回路に関する。
Detailed Description of the Invention (a) Technical Field of the Invention The present invention detects the direction of one character string by using a concentration gradient direction histogram showing the distribution status of two character line directions, and then separates two lines. The present invention relates to a character extraction circuit that performs character extraction using two-stage character separation processing.

(b)技術の背景 図形や物体を認識する画像処理方法としては。(b) Technology background As an image processing method for recognizing figures and objects.

光学的画像処理5電気的アナログ処理、ディジタル画像
処理等各種の方法が考えられ、検討されている。この中
で、電子計算機又は専用の処理装置によるディジタル画
像処理は、非線形処理が容易に行えること、プログラム
により処理やパラメタが変えられ、融通性に冨んでいる
こと、精度が高いこと等の特徴を有し、その応用分野と
しては多岐にわたっており1例えば医療用画像処理や非
破壊検査、目視検査、物品の認識等の産業用画像処理と
して今後が大いに期待されている。
Optical Image Processing 5 Various methods such as electrical analog processing and digital image processing have been considered and are being studied. Among these, digital image processing using a computer or a dedicated processing device has the following characteristics: non-linear processing can be easily performed, processing and parameters can be changed by a program, making it highly flexible, and high accuracy. The field of application is wide-ranging, and there are great expectations for the future as industrial image processing such as medical image processing, non-destructive inspection, visual inspection, and article recognition.

ディジタル画像処理は上記のような特徴を有する反面、
まだ各種の欠点や未開発部分もあるため。
While digital image processing has the above characteristics,
There are still various shortcomings and undeveloped areas.

より応用範囲の広いしかもより確実性の高い画像処理技
術の開発が要望されている。
There is a demand for the development of image processing technology that has a wider range of applications and is more reliable.

(c)従来技術と問題点 次に画像処理技術の主要な構成部分をなす文字切出し方
法を例に取り1図面を参照して説明する。
(c) Prior Art and Problems Next, a character extraction method, which is a main component of image processing technology, will be explained with reference to one drawing.

第1図は従来の文字切出し方法の概要を示す。FIG. 1 shows an outline of a conventional character extraction method.

図において、1,2は画像メモリ、3は位置合わせ回路
74は文字切出し回路をそれぞれ示す。又■は入力画像
データを示す。
In the figure, 1 and 2 are image memories, and 3 is a positioning circuit 74, which is a character cutting circuit. Also, ■ indicates input image data.

第1図は入力画像データ■を記録する画像メモリ1.標
準画像パターンを記憶している画像メモlJ2.画像メ
モリ1で記録しいる画像データを画像メモリ2で記憶し
ている標準画像パターンと位置合わせする位置合わせ回
路31位置合わせ回路3で位置合わせし補正した画像デ
ータを個々の文字に切り出す文字切出し回路4から構成
されている。
FIG. 1 shows an image memory 1 for recording input image data. Image memory lJ2 that stores standard image patterns. A positioning circuit 31 that aligns the image data recorded in the image memory 1 with the standard image pattern stored in the image memory 2; a character cutting circuit that cuts out the image data aligned and corrected by the positioning circuit 3 into individual characters; It consists of 4.

第1図に示す従来の文字切出し方法は2画像メモリ2に
予め記憶されている標準画像パターンと当面の処理対象
の入力画像データ■とを位置合わせすることによって1
文字列全体位置を補正し。
The conventional character cutting method shown in FIG.
Correct the entire position of the string.

予め記憶されている標準画像パターンにおける個々の文
字位置を参照して個々の文字を切り出す方法である。
This is a method of cutting out each character by referring to the position of each character in a standard image pattern stored in advance.

しかし、この方法では位置合わせの処理に長時間を要し
、更に多くの標準画像パターンを記憶する必要があるた
め大容量の画像メモリ2が必要になると言う欠点があっ
た。
However, this method has disadvantages in that it takes a long time to process the alignment, and that a large capacity image memory 2 is required since it is necessary to store a larger number of standard image patterns.

(d)発明の目的 本発明は、上記欠点を解消した新規な文字切出し回路を
提供することを目的とし、特にメモリ容量の削減と文字
切出し処理の高速化が図れる文字切出し回路を実現する
ことにある。
(d) Purpose of the Invention The object of the present invention is to provide a novel character extraction circuit that eliminates the above drawbacks, and particularly to realize a character extraction circuit that can reduce memory capacity and speed up character extraction processing. be.

(e)発明の構成 本発明の目的は、単数又は複数の行で構成される文字列
から個々の文字を切出す文字切出し回路であって、前記
文字列上の文字線方向の分布状況を示す濃度勾配方向ヒ
ストグラムを算出する第1の手段と、前記第1の手段で
算出された方向ヒストグラムと標準パターンの方向ヒス
トグラムとを照合することによって該文字列の方向を検
出する第2の手段と、前記第2の手段で検出された方向
と垂直な軸に対して該文字列の画像を投影する第3の手
段と、前記第3の手段で得られる投影像から前記文字列
の個々の行の位置を検出して前記文字列を個々の行に分
離する第4の手段と、前記第4の手段にて分離された個
々の行を前記第2の手段で検出された方向と平行な軸に
対して投影する第5の手段と、前記第5の手段で得られ
る個々の行の投影像から個々の文字位置を検出して個々
の行を個々の文字に分離する第6の手段とを設け。
(e) Structure of the Invention An object of the present invention is to provide a character cutting circuit that cuts out individual characters from a character string consisting of one or more lines, and which shows the distribution situation in the character line direction on the character string. a first means for calculating a density gradient direction histogram; a second means for detecting the direction of the character string by comparing the direction histogram calculated by the first means with the direction histogram of a standard pattern; a third means for projecting an image of the character string onto an axis perpendicular to the direction detected by the second means; fourth means for detecting a position and separating the character string into individual lines; and aligning the individual lines separated by the fourth means on an axis parallel to the direction detected by the second means. and a sixth means for detecting the position of each character from the projected image of each line obtained by the fifth means and separating each line into individual characters. .

メモリ容量の削減と文字切出し処理の高速化が図れるこ
とを特徴とする文字切出し回路を提供することにより達
成することが出来る。
This can be achieved by providing a character extraction circuit that is characterized by reducing memory capacity and increasing the speed of character extraction processing.

(f)発明の実施例 以下本発明を図面を参照して説明する。(f) Examples of the invention The present invention will be explained below with reference to the drawings.

第2図は本発明に係る文字切出、し回路の一実施例、第
3図は本発明に係る文字切出しに時の投影図、第4図は
本発明に係る文字切出し図をそれぞれ示す。
FIG. 2 shows an embodiment of the character cutting circuit according to the present invention, FIG. 3 shows a projected view of the character cutting circuit according to the present invention, and FIG. 4 shows a character cutting diagram according to the present invention.

図において、5,6は微分演算回路、7は濃度勾配方向
検出回路、8は方向ヒストグラム算出回路、9.10は
ヒストグラムメモリ、11は方向検出回路、12.14
は投影回路、13は行分離回路、15は文字分離回路を
それぞれ示す。
In the figure, 5 and 6 are differential operation circuits, 7 is a concentration gradient direction detection circuit, 8 is a direction histogram calculation circuit, 9.10 is a histogram memory, 11 is a direction detection circuit, and 12.14
13 represents a projection circuit, 13 represents a line separation circuit, and 15 represents a character separation circuit.

尚第1図と同一記号は同一内容を示し、又第3図、第4
図におけるR1−R3は文字列の行、Tl−Tl0は個
々の文字をそれぞれ示す。
Note that the same symbols as in Figure 1 indicate the same content, and also in Figures 3 and 4.
In the figure, R1 to R3 indicate rows of character strings, and Tl to Tl0 indicate individual characters, respectively.

本実施例は第1図で説明した画像メモリjと。This embodiment uses the image memory j described in FIG.

画像メモリ1の記憶している画像データの濃度勾配ベク
トルの水平成分3垂直成分を検出する微分演算回路5,
61画像データの濃度勾配ベクトルの方向を検出する濃
度勾配方向検出回路71画像データの各画素毎に得られ
る濃度勾配ベクトルの方向からヒストグラムを算出する
方向ヒストグラム算出回路8.標準パターンのヒストグ
ラ1、を記憶するヒストグラムメモリ9.方向ヒストグ
ラム算出回路8から算出された処理対象画像データの方
向ヒストグラムを記憶するヒストグラムメモリ10、ヒ
ストグラムメモリ9の記憶内容とヒストグラムメモリ1
0の記憶内容を比較して処理対象画像データの文字列の
方向を検出する方向検出回路11.方向検出回路11で
検出した文字列の方向と垂直な軸に対して画像データを
投影する投影図!l 2.投影回路12で得られた1次
元投影像を走査し所定区間の投影値をめ投影値が所定値
より大きい値を持つ区間を検出分離する行分離回路13
.方向検出回路11と行分離回路13の出力から複数個
の領域を抽出し各領域を文字列の方向と水平な軸に投影
する投影回路14.投影回路14から得られた各投影像
を走査して所定の投影値より大きい値を持つ領域を検出
分離し個々の文字の位置を表す文字分離回路15とから
構成されている。
a differential calculation circuit 5 for detecting the horizontal component 3 and the vertical component of the density gradient vector of the image data stored in the image memory 1;
61. A density gradient direction detection circuit that detects the direction of the density gradient vector of image data. 71. A direction histogram calculation circuit that calculates a histogram from the direction of the density gradient vector obtained for each pixel of the image data. Histogram memory 9 for storing the standard pattern histogram 1. Histogram memory 10 that stores the direction histogram of the image data to be processed calculated by the direction histogram calculation circuit 8, the storage contents of the histogram memory 9 and the histogram memory 1
A direction detection circuit 11 that detects the direction of the character string of the image data to be processed by comparing the stored contents of 0. A projection diagram in which image data is projected onto an axis perpendicular to the direction of the character string detected by the direction detection circuit 11! l 2. A row separation circuit 13 that scans the one-dimensional projected image obtained by the projection circuit 12, finds projection values in a predetermined section, and detects and separates sections in which the projection value is larger than a predetermined value.
.. A projection circuit 14 that extracts a plurality of regions from the outputs of the direction detection circuit 11 and the line separation circuit 13 and projects each region onto an axis parallel to the direction of the character string. The character separation circuit 15 scans each projection image obtained from the projection circuit 14, detects and separates regions having values larger than a predetermined projection value, and represents the positions of individual characters.

次に本実施例の動作を説明する。尚本実施例での画像メ
モリlは512 x512 xabitの容量を持つも
のとする。
Next, the operation of this embodiment will be explained. It is assumed that the image memory l in this embodiment has a capacity of 512 x 512 xabits.

読み取った入力画像データ■の内、当面処理対象とする
画像を画像メモリ1は記憶している。この記憶している
画像の濃度勾配ベクトル(画像を濃度の分布状況で分析
したベクトル)の水平成分と垂直成分を微分演算回路5
,6で演算検出し。
The image memory 1 stores an image to be processed for the time being out of the read input image data (2). Differential calculation circuit 5 calculates the horizontal and vertical components of the density gradient vector (vector obtained by analyzing the image in terms of density distribution) of the stored image.
, 6 to detect the calculation.

検出データにもとすき濃度勾配方向検出回路7により濃
度勾配ベクトルの方向を検出する。
A density gradient direction detection circuit 7 detects the direction of the density gradient vector based on the detection data.

更に、各画素毎に得られた濃度勾配ベクトルの方向から
方向ヒストグラム算出回路8はそのヒストグラムを算出
し、ヒストグラムメモリ10に記録させる。方向検出回
路11は標準パターンのヒストグラムを記憶しているヒ
スドグシムメモリ9の標準ヒストグラムと、前記ヒスト
グラムメモリ10で記録している方向ヒストグラムとを
比較して、処理対象の文字列(第3図、第4図に示す大
文字の英字の列1?l 、 R2,R3)の方向を検出
する。
Further, the direction histogram calculation circuit 8 calculates a histogram from the direction of the density gradient vector obtained for each pixel, and records it in the histogram memory 10. The direction detection circuit 11 compares the standard histogram stored in the hisdogsim memory 9 storing standard pattern histograms with the direction histogram recorded in the histogram memory 10, and determines the character string to be processed (see FIG. , the direction of the uppercase alphabetic character string 1?l, R2, R3) shown in FIG.

次に検出された文字列の方向と垂直な軸に対して画像を
投影回路12により投影(投影状況は第3図(A)に示
す)する。行分離回路13は投影回路12で得られた1
次投影像を走査し、まず走査開始始点からあらかじめ定
められた一定の区間における投影値の最小値、2番目に
小さい値、3番目に小さい値の平均値nをめる。
Next, an image is projected by the projection circuit 12 onto an axis perpendicular to the direction of the detected character string (the projection situation is shown in FIG. 3(A)). The row separation circuit 13 uses the 1 obtained by the projection circuit 12.
The next projected image is scanned, and first the average value n of the minimum value, second smallest value, and third smallest value of the projection values in a predetermined constant interval from the scanning start point is calculated.

次にあらかじめ定められた値tと平均値nの和をT11
とし、第4図(A)に示す如く投影値がT11より大き
い値を持つ区間(PI、 Ll) 、(F2,1.2 
) ・・・ (Fk、Lk )を分離検出する。行分離
回路13で分離検出された出力〔区間(PI、 Ll)
 、(F2.L2)・・・ (Fk、Lk ) )と方
向検出回路11で検出された文字列の方向とから画像を
R1,R2,・・・Rkのに個の領域に分割し、各領域
を文字列の方向と平行に投影回路14で投影し第4図(
B)に示す投影像(K個の投影像)を得る。
Next, the sum of the predetermined value t and the average value n is T11
As shown in FIG. 4(A), the sections (PI, Ll), (F2, 1.2) whose projection values are larger than T11 are
) ... (Fk, Lk) are detected separately. Output separated and detected by the row separation circuit 13 [section (PI, Ll)
, (F2.L2)... (Fk,Lk)) and the direction of the character string detected by the direction detection circuit 11, the image is divided into R1, R2,...Rk regions, and each The area is projected by the projection circuit 14 parallel to the direction of the character string as shown in FIG.
The projected images (K projected images) shown in B) are obtained.

投影回路14で得られたに個の投影像を文字分離回路1
5により走査し、走査開始点からあらかじめ定められた
一定の区間における投影値の最小値、2番目に小さい値
、3番目に小さい値の平均値mi(+=1〜k)をめ2
次にあらかしめ定められた値tと平均値miの和をTH
i ’ (i=1〜k)とし、第4図(B)に示す投影
値がTl1i ’より大きい値を持つ区間(F?、ピ)
、<F:、 シ’、> ・・・ (pi、 ti)を分
離検出する。これらの区間〔(の文字の位置を表すこと
となる。
The projected images obtained by the projection circuit 14 are transferred to the character separation circuit 1.
5, and find the average value mi (+=1 to k) of the minimum value, second smallest value, and third smallest value of the projection value in a predetermined certain section from the scanning start point.
Next, the sum of the predetermined value t and the average value mi is TH
i' (i=1 to k), and the interval (F?, Pi) in which the projection value shown in FIG. 4(B) is larger than Tl1i'
, <F:, si', > ... (pi, ti) are separated and detected. These sections represent the position of the characters in [(.

(g)発明の効果 以上のような本発明によれば、わずがな容置ですむ標準
パターンの方向ヒストグラムだけを予め記憶しておけば
良いので、メモリ容量を削減出来ると共に高速な処理が
可能な文字切出し回路を提供出来ると言う効果がある。
(g) Effects of the Invention According to the present invention as described above, only the directional histogram of the standard pattern, which requires only a small amount of storage, needs to be stored in advance, so the memory capacity can be reduced and high-speed processing can be achieved. This has the effect of providing a possible character extraction circuit.

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

第1図は従来の文字切出し方法の概要、第2図は本発明
に係る文字切出し回路の一実施例、第3図は本発明に係
る文字切出し時の投影図、第4図は本発明に係る文字切
出し図をそれぞれ示す。 図において、1.2は画像メモリ、3は位置合わせ回路
、4は文字切出し回路、5.6は微分演算回路、7は濃
度勾配方向検出回路、8は方向ヒストグラム算出回路、
9.10はヒストグラムメモリ、11は方向検出回路、
12.14は投影回路、13は行分離回路、15は文字
分離回路をそれぞれ示す 蓼1叫
FIG. 1 is an overview of a conventional character extraction method, FIG. 2 is an embodiment of a character extraction circuit according to the present invention, FIG. 3 is a projection diagram of character extraction according to the present invention, and FIG. 4 is a diagram according to the present invention. Such character cutout diagrams are shown respectively. In the figure, 1.2 is an image memory, 3 is an alignment circuit, 4 is a character cutting circuit, 5.6 is a differential calculation circuit, 7 is a density gradient direction detection circuit, 8 is a direction histogram calculation circuit,
9. 10 is a histogram memory, 11 is a direction detection circuit,
12. 14 indicates the projection circuit, 13 indicates the line separation circuit, and 15 indicates the character separation circuit.

Claims (1)

【特許請求の範囲】[Claims] 単数又は複数の行で構成される文字列から個々の文字を
切出す文字切出し回路であって、前記文字列上の文字線
方向の分布状況を示す濃度勾配方向ヒストグラムを算出
する第1の手段と、前記第1の手段で算出された方向ヒ
ストグラムと標準パターンの方向ヒストグラムとを照合
することによって該文字列の方向を検出する第2の手段
と、前記第2の手段で検出された方向と垂直な軸に対し
て該文字列の画像を投影する第3の手段と、前記第3の
手段で得られる投影像から前記文字列の個々の行の位置
を検出して前記文字列を個々の行に分離する第4の手段
と、前記第4の手段にて分離された個々の行を前記第2
の手段で検出された方向と平行な軸に対して投影する第
5の手段と、前記第5の手段で得られる個々の行の投影
像から個々の文字位置を検出して個々の行を個々の文字
に分離する第6の手段とを設けたことを特徴とする文字
切出し回路。
A character cutting circuit for cutting out individual characters from a character string consisting of one or more lines, the first means for calculating a density gradient direction histogram indicating the distribution situation in the character line direction on the character string; , a second means for detecting the direction of the character string by comparing the direction histogram calculated by the first means with a direction histogram of a standard pattern; and a second means perpendicular to the direction detected by the second means. a third means for projecting an image of the character string onto an axis; and detecting the position of each line of the character string from the projected image obtained by the third means, and and a fourth means for separating the individual rows separated by the fourth means into the second rows.
a fifth means for projecting onto an axis parallel to the direction detected by the means; and a fifth means for detecting the individual character positions from the projected images of the individual lines obtained by the fifth means, and A character cutting circuit characterized in that a sixth means for separating characters into characters is provided.
JP59051912A 1984-03-16 1984-03-16 Character segmenting circuit Pending JPS60195685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59051912A JPS60195685A (en) 1984-03-16 1984-03-16 Character segmenting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59051912A JPS60195685A (en) 1984-03-16 1984-03-16 Character segmenting circuit

Publications (1)

Publication Number Publication Date
JPS60195685A true JPS60195685A (en) 1985-10-04

Family

ID=12900082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59051912A Pending JPS60195685A (en) 1984-03-16 1984-03-16 Character segmenting circuit

Country Status (1)

Country Link
JP (1) JPS60195685A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0394959A2 (en) * 1989-04-25 1990-10-31 Fraunhofer-Gesellschaft Zur Förderung Der Angewandten Forschung E.V. Image analysis method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0394959A2 (en) * 1989-04-25 1990-10-31 Fraunhofer-Gesellschaft Zur Förderung Der Angewandten Forschung E.V. Image analysis method

Similar Documents

Publication Publication Date Title
CN110147774B (en) Table format picture layout analysis method and computer storage medium
US7502496B2 (en) Face image processing apparatus and method
US9256792B2 (en) Image processing apparatus, image processing method, and program
US20230065041A1 (en) Geometric pattern matching method and device for performing the method
JPS60195685A (en) Character segmenting circuit
JP2637591B2 (en) Position recognition apparatus and method
JP2516844B2 (en) Parts detection method and device
JP2702441B2 (en) Wafer identification character recognition system
US11900643B2 (en) Object detection method and object detection system
JPH05108800A (en) Picture defect discrimination processor
JPH10187886A (en) Character recognizing device and method
JP3388918B2 (en) String reader
JP4243577B2 (en) Similar image retrieval apparatus, method and program
JPH0546734A (en) Method for recognizing pattern
JPH07141465A (en) Method for detecting inclination of document image
JPH0772089A (en) Inspecting apparatus for defect of pattern
JP3106080B2 (en) Image processing apparatus and method
JPH0581430A (en) Detection of edge
JPS6162982A (en) Music staff detector
CN116634223A (en) Subtitle extraction method based on video text merging, filtering and classifying
JP2638147B2 (en) Magnetic head gap position recognition method
JPH02108177A (en) Tilt angle detecting device for image
JPS63250787A (en) Method for segmentating character
JPH01201786A (en) Character reader
JPS62127984A (en) Rotation-deviated character recognizing device