JPS59177686A - Character recognizing device - Google Patents

Character recognizing device

Info

Publication number
JPS59177686A
JPS59177686A JP58053412A JP5341283A JPS59177686A JP S59177686 A JPS59177686 A JP S59177686A JP 58053412 A JP58053412 A JP 58053412A JP 5341283 A JP5341283 A JP 5341283A JP S59177686 A JPS59177686 A JP S59177686A
Authority
JP
Japan
Prior art keywords
unknown
pattern
character
character recognition
unknown pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP58053412A
Other languages
Japanese (ja)
Inventor
Minoru Nagao
永尾 実
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58053412A priority Critical patent/JPS59177686A/en
Publication of JPS59177686A publication Critical patent/JPS59177686A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PURPOSE:To improve the precision of character recognition to make the character recognition processing efficient by scanning an unknown pattern from directions opposite to each other to detect the recessed parts of this pattern and comparing positional relations among respective recessed parts to discriminate the unknown character. CONSTITUTION:The unknown character recorded on a form 1 is read optically by a camera 2, and the optical pattern (unknown pattern) of the unknown character is stored in a picture memory 4. A CPU5 executes the recognition processing of the unknown pattern on a basis of a character recognizing program stored in an ROM6. A picture 8 of the picture memory 4 is scanned from the left to the right to detect the left outline of the unknown pattern, and a left recessed part L is detected. Next, the picture 8 of the picture memory 4 is scanned from the right to the left to detect the right outline of the unknown pattern, and a right recessed part R is extracted.

Description

【発明の詳細な説明】 〈発明の技術分野〉 本発明は、未知の文字や記号等の光学パターン(以下「
未知パターン」という)を読み取って認識する文字認識
装置に関連し、本発明は、和船られしい特定の未知文字
間の識別に用いる文字J忍識装置に関する。
[Detailed Description of the Invention] <Technical Field of the Invention> The present invention relates to optical patterns such as unknown characters and symbols (hereinafter referred to as "
The present invention relates to a character recognition device that reads and recognizes unknown patterns (referred to as "unknown patterns"), and relates to a character recognition device that is used to identify specific unknown characters that are typical of Japanese ships.

〈発明の背景〉 従来の文字認識装置では、未知パターンから文字の特徴
部分を抽出する等して、未知文字を判別する方式が採用
されている。この種方式において、未知文字から幾つか
の候補文字が抽出されることがあり、かかる場合にはこ
れら候補文字から更にひとつの文字を特定する必要があ
る。ところが例えは数字「2」と英文字「S」の如く、
特に字体が和船られしいようなとき、これら候補文字を
ひとつに絞ることが困難であり、これがため、文字認識
精度の低下を招く原因となっていた。
<Background of the Invention> Conventional character recognition devices employ a method of identifying unknown characters by, for example, extracting characteristic parts of characters from unknown patterns. In this type of method, several candidate characters may be extracted from the unknown characters, and in such a case, it is necessary to specify one more character from these candidate characters. However, an example is the number "2" and the alphabet "S".
Especially when the font looks like a Japanese ship, it is difficult to narrow down the candidate characters to just one, which causes a drop in character recognition accuracy.

〈発明の目的〉 本発明は、和船られしい未知文字間の識別を可能とした
新規な文字認識装置を提供することにより、この種装置
の文字認識精度を向」ニさせ、文字認識処理の効率化を
はかることを目的とする。
<Object of the Invention> The present invention improves the character recognition accuracy of this type of device by providing a new character recognition device that can distinguish between unknown characters typical of Japanese ships, and improves character recognition processing. The purpose is to improve efficiency.

〈発明の構成および効果〉 上記目的を達成するため、本発明では、未知パターンを
相対する方向から走査して未知パターンの凹部を検出す
ると共に、各凹部の位置関係を比較して未知文字を判別
するようにした。
<Configuration and Effects of the Invention> In order to achieve the above object, the present invention scans the unknown pattern from opposite directions to detect the recesses of the unknown pattern, and also identifies unknown characters by comparing the positional relationship of each recess. I decided to do so.

本発明によれは、例えは数字「2」と英文字「S」とて
は、左右方向から見た凹部の位置が上下異なるから、こ
れら和船られしい未知文字と靴も容易に識別でき、文字
認識精度を向上し得ると共に、文字認識処理を効率化で
きる等、発明目的を達成した優れた効果を奏する。
According to the present invention, for example, the number ``2'' and the English letter ``S'' have different positions of the recesses when viewed from the left and right, so these unknown letters and shoes that are typical of Japanese ships can be easily identified. This invention achieves excellent effects such as improving character recognition accuracy and streamlining character recognition processing.

〈実施例の説明〉 第1図は本発明にかかる文字認識装置の回路構成例を示
す。図示例において、用紙1に記録された未知文字はカ
シワ2により光学的に読み取られ、A/D変換器3にて
デジタルデータに変換された後、未知文字の光学パター
ン(未知パターン)は画像メモリ4に格納される。また
C P U (CenLral Processing
 Unit)5は、ROM (Read 0nly M
emory ) 6 fin格納された文字認識プログ
ラムに基つき、RAM(Random A、ccess
 Memory ) 7に対するデータの読み男きを行
ないつつ前記未知パターンの認第2図は本発明にかかる
文字認識方式の原理を示し、数字「2」の未知パターン
(第2図(1)に示す)と、英文字「S」および数字「
5」の各未知パターン(第2図(2) (3)に示す)
とをXY座標上で対比している。図示例の各未知パター
ンは、左向きの凹部りと、右向きの凹部にとを有するが
、「2」の文字パターンと「S」「5」の文字パターン
とでは各凹部L 、 Rの位檻関係が上下反転している
。従って各凹部t 、 Rの最深点A (Xa 、 Y
a )、13(Xb 、 Yb )を求め、Ya)Yb
の場合、未知パターンは「2」であり、Y b ) Y
 aの場合、未知パターンは「S」若しくは「5」であ
ると認識し得る。
<Description of Embodiments> FIG. 1 shows an example of a circuit configuration of a character recognition device according to the present invention. In the illustrated example, an unknown character recorded on a sheet of paper 1 is optically read by a crinkle 2, converted into digital data by an A/D converter 3, and then the optical pattern (unknown pattern) of the unknown character is stored in an image memory. It is stored in 4. Also, CPU (CenLral Processing
Unit) 5 is ROM (Read Only M
memory) 6 Based on the character recognition program stored in fin, RAM (Random A,
Figure 2 shows the principle of the character recognition method according to the present invention, and the unknown pattern of the number "2" (shown in Figure 2 (1)) , the alphabetic letter “S” and the number “
5" each unknown pattern (shown in Figure 2 (2) and (3))
are compared on the XY coordinates. Each unknown pattern in the illustrated example has a concave portion facing left and a concave portion facing right, but the positional relationship of each concave portion L and R in the character pattern “2” and the character patterns “S” and “5” is is upside down. Therefore, the deepest point A (Xa, Y
a), 13(Xb, Yb), Ya)Yb
, the unknown pattern is "2" and Y b ) Y
In case a, the unknown pattern can be recognized as "S" or "5".

第3図は前記凹部L 、 Rの検出方法を具体的に示す
。今画像メモリ41こ数字「2」の未知パターン(第3
図(1)に示す)が格納されている場合、まずこの画像
メモリ4の画面8を左から右方向へ走査する(第3図(
2)に示す)。
FIG. 3 specifically shows a method for detecting the recesses L and R. Now the image memory 41 is the unknown pattern of the number "2" (3rd
(shown in Figure 3) is stored, the screen 8 of this image memory 4 is first scanned from left to right (Figure 3 (
2)).

そして各走査線3が未知パターンに至る点を順次抽出し
てゆくと、未知パターンの左側輪郭線を検出し得、これ
により左向き凹部りを抽出てきる。つき(こ画イ象メモ
リ4の画面8を右から左方向へ走査する(第3図(3)
に示す)。
By sequentially extracting the points where each scanning line 3 reaches the unknown pattern, the left side contour of the unknown pattern can be detected, thereby extracting the leftward concave portion. (Scan the screen 8 of the image memory 4 from right to left (Figure 3 (3))
).

そして各走査線すが未知パターンに至る点を順次抽出し
てゆくと、未知パターンの右側輪郭線に検出し得、これ
により右向き凹部kを抽出できる。
Then, by sequentially extracting the points where each scanning line reaches the unknown pattern, the points can be detected on the right side contour of the unknown pattern, and thereby the rightward concave portion k can be extracted.

第4図は縦10ビツトX構8ビツトの画素9より成る画
像メモリ40画面8上(こ数字「2」の未知パターンを
形成した状態を示す。
FIG. 4 shows a state in which an unknown pattern of the number "2" is formed on the screen 8 of an image memory 40 consisting of 8-bit pixels 9 in a vertical 10-bit x structure.

図中斜線部分は未知パターンを構成する「黒画素」、白
地部分は背景部分の「白画素」を意味し、このjiji
j面8を第3図に示す前記方法にて走査すると、パター
ン輪郭線を検出できる。この輪郭線の位屑データは第5
図に示すデータ設定領域M、 、 M2に格納され、図
示例では左側輪郭線の位iσデータ設定領域M1のn番
地からI]+9番地(第5図(])に示す)に、また右
側輪郭線の位置データはデータ設定領域M2のn1番地
から01+9番地(第51’QI +21に示す)に夫
々格納される。
In the figure, the shaded area means the "black pixel" that makes up the unknown pattern, and the white area means the "white pixel" of the background part.
When the j-plane 8 is scanned by the method shown in FIG. 3, the pattern outline can be detected. The scrap data of this contour line is the fifth
In the illustrated example, the data is stored in the data setting areas M, , M2 shown in the figure, and in the illustrated example, the left contour line is stored at addresses n to I]+9 of the iσ data setting area M1 (shown in FIG. 5 ( )), and the right contour The line position data is stored at addresses n1 to 01+9 (shown as 51'QI+21) of the data setting area M2.

第6図はRA M 5のデータ比較領域M3を示し、図
中、MINUS、 PLUS、 EQUAL、 Y、T
で示す各領域には前記位置データに基づき算出されるr
ljrOJの2値データかセットされる。
Figure 6 shows the data comparison area M3 of RAM 5, and in the figure, MINUS, PLUS, EQUAL, Y, T
Each area indicated by r is calculated based on the position data.
Binary data of ljrOJ is set.

第7図は左側輪郭線の位置データより算出した2値デー
タを図表として表わしたものである。同図において、M
INUS、 PLUS、 EQUALの各欄は、前記n
 w n 千9番地の各位置を前の番地の位置データと
大小比較して、その増減傾向を「1」「0」の2値デー
タで表わしたものであり、またY、Tの各欄は増減傾向
に基づき検出した凹部の最深点を同様に2値テータ表わ
しまたものである。
FIG. 7 is a diagram showing binary data calculated from the position data of the left contour line. In the same figure, M
The INUS, PLUS, and EQUAL columns are based on the above n.
w n Each position of 1,000 9th address is compared in size with the position data of the previous address, and the increase/decrease trend is expressed as binary data of "1" and "0", and each column of Y and T is The deepest point of the recess detected based on the increasing/decreasing trend is similarly expressed as a binary theta.

第8図は数字「2」と英文字rsJとを識別する場合に
おける文字認識装置の制御動作を示し、スタート時点に
おいて、未知文字が読み取られ、画像メモリ4に未知パ
ターンが格納されている。そしてまずステップ1]にお
いて、画(象メモリ4のil++l侑」か左から右方向
へ走査され、未知パターンの左側輪郭線の位置データが
RA M 5のデータ設定領域M1 に格納される。つ
きにステップ12てデータ設定領域M1の各番地の位置
データが前の番地の位置データと大小比較される。その
結果位置テークの大きさが負の方向1こ変化する場合は
ステップ13の判定か=YES″′となってステップ1
5へ進み、データ比較領域M3のMINLJS 領域に
「1」がセットされる。また位置データが正の方向に変
化する場合は、ステップ13の判定が゛”NO”、ステ
ップ14の判定か=−YES”となってステップ16へ
進み、データ比較領域M3のP L U S領域に「]
」かセセラされる。史にデータ内容が変化していない場
合は、ステップ13.14の各判定が”NO”となって
ステップ17へ進め、データ比較領域N13のEQUA
L領域に「1」がセットされる。そしてステップ15,
16.17の各セット処工里後は原則としてステップ1
2へ戻って、次のデータ比較処理が実行される。
FIG. 8 shows the control operation of the character recognition device when identifying the number "2" and the alphabetic character rsJ. At the start, an unknown character is read and the unknown pattern is stored in the image memory 4. First, in step 1], the image (image memory 4) is scanned from left to right, and the position data of the left contour of the unknown pattern is stored in the data setting area M1 of RAM 5. In step 12, the position data at each address in the data setting area M1 is compared in size with the position data at the previous address.If the result is that the size of the position take changes by one in the negative direction, the determination in step 13 is YES. ″′ and step 1
5, "1" is set in the MINLJS area of the data comparison area M3. If the position data changes in the positive direction, the determination in step 13 is "NO", the determination in step 14 is -YES", and the process advances to step 16, where the PLUS area of the data comparison area M3 is changed. ni "]
” or sesera. If the data content has not changed in the history, each determination in steps 13 and 14 becomes "NO" and the process proceeds to step 17, where the EQUA in the data comparison area N13 is
"1" is set in the L area. And step 15,
As a general rule, step 1 is performed after each set processing in 16.17.
Returning to step 2, the next data comparison process is executed.

斯くてステップ15のセット処理があった場合において
、前回の比較処理でP L U S領域に「1」がセッ
ト済の場合は、ステップ18の判定がYES”となり、
ステップ1つてY領域に[]]がセットセンれる。これ
により左向き凹部りの最深点Aが検出され、つきのステ
ップ20でY領域か「1」となる番地(第7図の例では
第4番目に相当する番地)がRA M70所定領域(図
示せず)に記憶される。
In this way, when the setting process in step 15 is performed, if "1" has already been set in the PLUS area in the previous comparison process, the determination in step 18 is ``YES''.
[]] is set in the Y area in one step. As a result, the deepest point A of the leftward concave portion is detected, and in the next step 20, the address corresponding to "1" in the Y area (the address corresponding to the 4th address in the example of FIG. ).

つきのステップ21は左右両方向の走査か完了したか否
かをチェックしており、この場合その判定は” No 
”であるから、ステップ22において比較テーク領域M
3の内容をクリアした後ステップ11へ戻り、つきに右
から左方向への走査か行なわれると共に、」二記と同様
のデータ比較処理が実行される。
The next step 21 checks whether scanning in both left and right directions has been completed, and in this case, the determination is "No".
” Therefore, in step 22, the comparison take area M
After clearing the contents of step 3, the process returns to step 11, where scanning is performed from right to left and data comparison processing similar to that described in section 2 is executed.

斯くて右向き凹部にの最深点Bが検出されると、前記同
様、Y領域に「1」をセラl−して、その対応番地が記
憶される。そして両者の記憶番地につきその大小が比較
され、左向き凹部I、にががる記憶番地か右向き凹部】
(にかかる記憶番地より小さいとき、ステラ1230判
定が’YES”となり、ステップ24て未知パターンは
数字「2」であると判断され処理される。またステップ
23の判定が” NO”のとき、ステップ25に進み、
未知バク・−ンは英文字「SJであると判断され処理さ
れる。
When the deepest point B in the rightward concave portion is detected in this way, "1" is written in the Y area and its corresponding address is stored, as described above. Then, the sizes of both memory addresses are compared, and the leftward recess I, the bitter memory address, or the rightward recess]
(If the determination in step 23 is "NO", the Stellar 1230 determination is ``YES'' and the unknown pattern is determined to be the number "2" and processed. Proceed to step 25,
The unknown baku-n is determined to be the English letter "SJ" and is processed.

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

第1図は文字認識装置の回路構成を示すブロック図、第
2図+1) +2+ +31は本発明にかかる文字認識
の原理を示す図、第3図+1) +2) (3)は未知
パターンの四部検出方法を示す図、第4図は画像メモリ
に形成された未知パターンを示す図、@5図fi+ [
2+はRA Mのデータ設定領域を示す図、第6図はR
A Mのデータ比較領域を示す図、第7図はデータ比較
領域のデータ内容を1ン]表的に表わした図、第8図は
文字認識装置の制御動作を示ずフローチャー1・である
。 2・・・・・・カメラ   3・・・・・・A/D変換
器4・・・・・・画像メモリ 5・・・・・・CPU7
・・・・・・RAM eヤ/π百 分2フ 例3図 訊−I−図      計5図
Fig. 1 is a block diagram showing the circuit configuration of the character recognition device, Fig. 2 +1) +2+ +31 is a diagram showing the principle of character recognition according to the present invention, Fig. 3 +1) +2) (3) shows the four parts of the unknown pattern. A diagram showing the detection method, Figure 4 is a diagram showing an unknown pattern formed in the image memory, @5 Figure fi+ [
2+ is a diagram showing the data setting area of RAM, and Figure 6 is R.
Figure 7 shows the data comparison area of A M, Figure 7 is a table showing the data contents of the data comparison area, Figure 8 is flowchart 1 and does not show the control operation of the character recognition device. . 2...Camera 3...A/D converter 4...Image memory 5...CPU7
...RAM

Claims (1)

【特許請求の範囲】[Claims] 未知文字の光学パターンを読み取る読取り手段と、光学
パターンの読取りデータを格納する記憶手段と、光学パ
ターンの凹部を相対する方向より検出すると共に各回部
の位置関係を比較して未知文字を判別する判別手段とを
具備して成る文字認識装置。
A reading means for reading the optical pattern of the unknown character, a storage means for storing the read data of the optical pattern, and a discrimination unit for detecting the recessed part of the optical pattern from opposite directions and comparing the positional relationship of each part to determine the unknown character. A character recognition device comprising means.
JP58053412A 1983-03-28 1983-03-28 Character recognizing device Pending JPS59177686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58053412A JPS59177686A (en) 1983-03-28 1983-03-28 Character recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58053412A JPS59177686A (en) 1983-03-28 1983-03-28 Character recognizing device

Publications (1)

Publication Number Publication Date
JPS59177686A true JPS59177686A (en) 1984-10-08

Family

ID=12942112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58053412A Pending JPS59177686A (en) 1983-03-28 1983-03-28 Character recognizing device

Country Status (1)

Country Link
JP (1) JPS59177686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62281096A (en) * 1986-05-30 1987-12-05 Canon Inc Character recognition device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5268327A (en) * 1975-12-05 1977-06-07 Fujitsu Ltd Pattern recognition equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5268327A (en) * 1975-12-05 1977-06-07 Fujitsu Ltd Pattern recognition equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62281096A (en) * 1986-05-30 1987-12-05 Canon Inc Character recognition device
JP2578767B2 (en) * 1986-05-30 1997-02-05 キヤノン株式会社 Image processing method

Similar Documents

Publication Publication Date Title
JPH0546591B2 (en)
JPS62254282A (en) Method and apparatus for separating overlapped pattern
US6983071B2 (en) Character segmentation device, character segmentation method used thereby, and program therefor
JPS59177686A (en) Character recognizing device
JP3798179B2 (en) Pattern extraction device and character segmentation device
JP2000251010A (en) Document readout method
JP3095470B2 (en) Character recognition device
JP3060248B2 (en) Table recognition device
JP2004241827A (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP4974794B2 (en) Document recognition apparatus, document recognition method, and computer program
JP3027232B2 (en) Character recognition device
JP3517077B2 (en) Pattern extraction device and method for extracting pattern area
JP2674475B2 (en) Character reader
JP2925270B2 (en) Character reader
JPH0225553B2 (en)
JPH07168911A (en) Document recognition device
JPH05298487A (en) Alphabet recognizing device
JPH05128305A (en) Area dividing method
JPH04276888A (en) Character reader
JPS61196382A (en) Character segmenting system
JPH11161739A (en) Character recognizing device
JPH10222607A (en) Method for recognizing separation of graphic element from character element
JPH08171609A (en) High-speed character string extracting device
JPH05274473A (en) Optical character reader
JPS59178589A (en) Character recognizing device