JPS6141030B2 - - Google Patents
Info
- Publication number
- JPS6141030B2 JPS6141030B2 JP53119675A JP11967578A JPS6141030B2 JP S6141030 B2 JPS6141030 B2 JP S6141030B2 JP 53119675 A JP53119675 A JP 53119675A JP 11967578 A JP11967578 A JP 11967578A JP S6141030 B2 JPS6141030 B2 JP S6141030B2
- Authority
- JP
- Japan
- Prior art keywords
- screen
- sensor
- black
- characters
- column
- 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
Links
- 230000015654 memory Effects 0.000 claims description 45
- 239000000872 buffer Substances 0.000 claims description 30
- 238000000034 method Methods 0.000 claims description 14
- 238000000605 extraction Methods 0.000 claims description 11
- 230000003287 optical effect Effects 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000003708 edge detection Methods 0.000 claims 1
- 238000001514 detection method Methods 0.000 description 31
- 238000010586 diagram Methods 0.000 description 17
- 230000007704 transition Effects 0.000 description 14
- 238000003672 processing method Methods 0.000 description 7
- 239000002131 composite material Substances 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 3
- 239000012536 storage buffer Substances 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Description
【発明の詳細な説明】
本発明はセンサの視野よりも大きい文字、記号
等を読取る光学的文字読取方式に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an optical character reading method for reading characters, symbols, etc. that are larger than the field of view of a sensor.
一般の光学的文字読取装置においては、第1図
に示す如く用紙5上の文字、記号等(以下単に文
字という)6を光学系1を通して光電変換素子か
らなるイメージセンサ2に結像させ、イメージセ
ンサ2からのアナログ信号を2値化回路3で用紙
の白と文字の黒とに対応させて2値信号に変換
し、(以下2値信号を白黒パターンと称す)識別
回路4で文字の認識を行なうものである。この
際、垂直方向にはイメージセンサ2が電気的に走
査され、水平方向8にはイメージセンサ2が2次
元センサのとき電気的に走査されると共に光学系
あるいは用紙が機械的に移動されて文字を読取る
ことになり、又イメージセンサ2が1次元センサ
のとき光学系あるいは用紙が機械的に移動されて
文字を読取ることになる。なお、用紙5は図示し
ていない光源により照明されている。 In a general optical character reading device, as shown in FIG. The analog signal from the sensor 2 is converted into a binary signal by a binary conversion circuit 3 corresponding to the white of the paper and the black of the characters (hereinafter, the binary signal is referred to as a black and white pattern), and the recognition circuit 4 recognizes the characters. This is what we do. At this time, the image sensor 2 is electrically scanned in the vertical direction, and when the image sensor 2 is a two-dimensional sensor, it is electrically scanned in the horizontal direction 8, and the optical system or paper is mechanically moved to form the characters. When the image sensor 2 is a one-dimensional sensor, the optical system or paper is mechanically moved to read the characters. Note that the paper 5 is illuminated by a light source (not shown).
上述したように光学的に文字を読取る場合、1
次元センサにより文字を2次元的にとらえるため
には、水平方向8にイメージセンサ2を用紙5と
相対的に一定速度で移動させる必要がある。更に
用紙5に対するイメージセンサ2の移動速度が既
知でない場合には、文字全域に互つて白黒パター
ンを記憶することが必要となり、この場合記憶容
量を大きくしなければならないので高価となる。 When reading characters optically as described above, 1
In order to capture characters two-dimensionally by the dimensional sensor, it is necessary to move the image sensor 2 in the horizontal direction 8 at a constant speed relative to the paper 5. Furthermore, if the moving speed of the image sensor 2 with respect to the paper 5 is not known, it is necessary to store black and white patterns over the entire area of the character, and in this case, the storage capacity must be increased, which is expensive.
又、2次元センサを用いても用紙に対する移動
速度が変化する場合には、第2図aに示す如く、
センサの視野10内に読取ろうとする文字6の全
体が入る場合にしか適用できなかつた。このた
め、第2図bに示す如くセンサの視野10の横幅
よりも大きな文字6を読取り対象とするときに
は、1次元センサ使用時と同様に用紙に対して一
定速度で移動させるか、又は文字全域に互つて白
黒パターンを記憶させる必要があり、しかもその
ように記憶させる場合には、記憶容量を1次元セ
ンサ使用の場合よりも更に大きくする必要があ
る。 In addition, even if a two-dimensional sensor is used, if the moving speed relative to the paper changes, as shown in Figure 2a,
This method could only be applied when the entire character 6 to be read falls within the field of view 10 of the sensor. Therefore, when a character 6 larger than the horizontal width of the field of view 10 of the sensor is to be read as shown in FIG. It is necessary to store black and white patterns in parallel to each other, and in such a case, the storage capacity needs to be larger than that when a one-dimensional sensor is used.
又、横幅の大きい文字に対して大きなビツト構
成の2次元センサで処理しようとする考え方につ
いては、
(i)2次元センサで大きなサイズのものは高価と
なる
(ii)識別処理に要する時間が多くなる
等の欠点がある。 Furthermore, regarding the idea of using a two-dimensional sensor with a large bit configuration to process large-width characters, (i) large-sized two-dimensional sensors are expensive, and (ii) the identification process takes a lot of time. There are drawbacks such as:
このようなことから、従来はセンサの視野より
も大きい文字を読取ることが困難且つ経済的に不
利であつた。 For this reason, conventionally it has been difficult and economically disadvantageous to read characters larger than the field of view of the sensor.
本発明は前述の如き従来の欠点を改善したもの
であり、その目的は、2次元センサの視野よりも
大きい文字の読取識別を容易に行なわせることに
ある。以下実施例について詳細に説明する。 The present invention has improved the conventional drawbacks as described above, and its purpose is to facilitate the reading and identification of characters larger than the field of view of a two-dimensional sensor. Examples will be described in detail below.
第3図aは本発明の原理説明図であり、読取対
象とする文字6の左端部がセンサの視野11の左
端部に到達したときの白黒パターン、及び文字6
の右端部がセンサの視野12の右端部に到達した
ときの白黒パターンを取出し、これら2画面の白
黒パターンを用いて、文字を認識する。 FIG. 3a is an explanatory diagram of the principle of the present invention, showing the black and white pattern when the left end of the character 6 to be read reaches the left end of the field of view 11 of the sensor, and the character 6.
The black-and-white pattern when the right end of the screen reaches the right end of the field of view 12 of the sensor is extracted, and the characters are recognized using the black-and-white patterns of these two screens.
このため、読取り対象とする文字6の横幅が大
きく、センサの視野11,12以上であつても、
読取可能であり、第3図bに示す左画面、及び第
3図cに示す右画面は、水平方向の移動速度に関
係なく取出すことができる。 Therefore, even if the width of the character 6 to be read is large and the field of view of the sensor is 11, 12 or more,
The left screen shown in FIG. 3b and the right screen shown in FIG. 3c can be read out regardless of the horizontal movement speed.
第4図は本発明の実施例の光学的文字読取方式
の左右画面検出回路のブロツク線図である。同図
に於いて、3は光電変換素子が2次元に配列され
てなる2次元センサで読取つたアナログ信号を2
値化する2値化回路であり、2次元に配列された
光電変換素子の各セルにおいて黒を検出したセル
を黒セルと称すると、その2値化回路3の出力
は、垂直方向の各列の黒セルの存在を検出する列
別黒セル検出回路13及び一時的に白黒パターン
を記憶する一時記憶バツフアメモリ14に加えら
れる。そして、列別黒セル検出回路13では、左
端の列の黒セルを検出した左端黒セル検知信号1
5を出力し、左端の列を除いた左側の数ラインに
互つて黒セルが連続して存在しているとき左側文
字要素検知信号16を出力し、右端の列を除いた
右側の数ラインに互つて黒セルが連続して存在し
ているとき右側文字要素検知信号17を出力し、
右端の列の黒セルを検出した右端黒セル検知信号
18を出力する。なお、ここでいう数ラインと
は、読取対象の文字の最小横幅に相当するライン
数である。 FIG. 4 is a block diagram of a left and right screen detection circuit of an optical character reading system according to an embodiment of the present invention. In the figure, reference numeral 3 indicates an analog signal read by a two-dimensional sensor in which photoelectric conversion elements are arranged two-dimensionally.
It is a binarization circuit that converts into values, and if a cell that detects black in each cell of two-dimensionally arranged photoelectric conversion elements is called a black cell, the output of the binarization circuit 3 is generated in each column in the vertical direction. The black cell detection circuit 13 for each column detects the presence of a black cell, and the temporary storage buffer memory 14 temporarily stores the black and white pattern. Then, in the column-by-column black cell detection circuit 13, the left-most black cell detection signal 1 detects the black cell in the left-most column.
5, and when there are consecutive black cells in several lines on the left side excluding the leftmost column, it outputs the left side character element detection signal 16, and on several lines on the right side excluding the rightmost column. When there are consecutive black cells, a right character element detection signal 17 is output;
A right-most black cell detection signal 18 is output when a black cell in the right-most column is detected. Note that the several lines mentioned here are the number of lines corresponding to the minimum width of the characters to be read.
上記の列別黒セル検出回路13は、具体的には
第5図に示す構成であり、この構成を2値化信号
が行単位でパラレル(横方向nビツト)に入力さ
れる場合について説明する。 The above-mentioned column-by-column black cell detection circuit 13 specifically has the configuration shown in FIG. 5, and this configuration will be explained for the case where the binarized signal is input in parallel (n bits in the horizontal direction) in units of rows. .
このような場合、列別黒セル検出回路13には
垂直方向の各列に対応した2値化信号BW1〜
BWn以外に、横方向の行(1〜m)毎の2値化
信号に同期したラインクロツクCK1、1画面の処
理に同期したフレームクロツクCK2及びフレー
ムクロツクCK2から少し遅れたクリア信号CL1
が入力されるようにし、又、黒セル検知のため、
各列毎に1ビツトのレジスタ100と論理和回路
101とを組合せ構成にし、又ラインクロツク
CK1によつてレジスタ100のデータが更新さ
れるようにしておくものである。又102は出力
レジスタ、103は論理積回路である。 In such a case, the column-by-column black cell detection circuit 13 receives binary signals BW1 to BW1 corresponding to each column in the vertical direction.
In addition to BWn, there is a line clock CK1 synchronized with the binarized signal for each row (1 to m) in the horizontal direction, a frame clock CK2 synchronized with the processing of one screen, and a clear signal CL1 slightly delayed from the frame clock CK2.
is input, and for black cell detection,
A 1-bit register 100 and an OR circuit 101 are combined for each column, and a line clock
The data in the register 100 is updated by CK1. Further, 102 is an output register, and 103 is an AND circuit.
そして、第5図に於ける各信号のタイムチヤー
トは第6図に示す通りとなる。但し、第6図に於
いて、第5図と同一符号は同一信号を示す。 The time chart of each signal in FIG. 5 is as shown in FIG. 6. However, in FIG. 6, the same symbols as in FIG. 5 indicate the same signals.
2値化信号BW1〜BWnに於ける第1行のデー
タが論理和回路101に加わると、ラインクロツ
クCK1によりその第1行のデータがレジスタ1
00にセツトされ、以後第m行のデータまで、論
理和回路101でレジスタ100に記憶している
データとの論理和をとつて、ラインクロツクCK
1毎にレジスタ100にセツトする。従つて、列
に黒セルが存在するときには、レジスタ100の
内容が“1”となる。そして両端の列ではフレー
ムクロツクCK2によりレジスタ100の内容が
対応する出力レジスタ102に対して直接にセツ
トされるので、左端黒セル検知信号15及び右端
黒セル検知信号18が対応する出力レジスタ10
2にセツトされる。又両端を除く両側の数ライン
のレジスタ100の内容が片側それぞれで論理積
回路103に加わり、この論理積回路103の出
力がフレームクロツクCK2により対応する出力
レジスタ102にセツトされるので、左側文字要
素検知信号16、右側文字要素検知信号17が対
応する出力レジスタ102にセツトされる。又、
このように、フレームクロツクCK2によつて出力
レジスタ102に画面のデータがセツトされた
後、レジスタ100はクリア信号CL1によつて
クリアされる。 When the first row of data in the binary signals BW1 to BWn is applied to the OR circuit 101, the first row of data is transferred to the register 1 by the line clock CK1.
00, and thereafter, the logical sum circuit 101 calculates the logical sum with the data stored in the register 100 up to the mth row data, and outputs the line clock CK.
1 is set in register 100. Therefore, when a black cell exists in a column, the contents of register 100 become "1". In the columns at both ends, the content of the register 100 is directly set to the corresponding output register 102 by the frame clock CK2, so the left end black cell detection signal 15 and the right end black cell detection signal 18 are set to the corresponding output register 102.
It is set to 2. Also, the contents of the registers 100 on several lines on both sides excluding both ends are added to the AND circuit 103 on each side, and the output of this AND circuit 103 is set to the corresponding output register 102 by the frame clock CK2, so that the characters on the left side are The element detection signal 16 and the right character element detection signal 17 are set in the corresponding output registers 102. or,
In this way, after the screen data is set in the output register 102 by the frame clock CK2, the register 100 is cleared by the clear signal CL1.
又上記の如く、一時記憶バツフアメモリ14に
記憶された白黒パターンの2値化信号は左画面検
知信号21が“1”の期間、左画面バツフアメモ
リ23に書込まれ、又右画面検知信号22が
“1”の期間、右画面バツフアメモリ24に書込
まれ、左端を基準とした左画面と右端を基準とし
た右画面とがそれぞれバツフアメモリ23,24
に格納される。なお、左画面検知信号21は、左
端黒セル検知信号15をインバータ15aにより
反転した信号と左側文字要素検知信号16とが論
理積回路19に加えられて、この論理積回路19
から出力されるものであり、又右画面検知信号2
2は、右側文字要素検知信号17と右端黒セル検
知信号18をインバータ18aにより反転した信
号とが論理積回路20に加えられ、この論理積回
路20から出力されるものである。 Further, as described above, the binary signal of the black and white pattern stored in the temporary storage buffer memory 14 is written to the left screen buffer memory 23 while the left screen detection signal 21 is "1", and the right screen detection signal 22 is "1". 1", the left screen is written to the right screen buffer memory 24, and the left screen with the left end as a reference and the right screen with the right end as a reference are buffer memories 23 and 24, respectively.
is stored in The left screen detection signal 21 is generated by adding a signal obtained by inverting the left end black cell detection signal 15 by an inverter 15a and a left character element detection signal 16 to an AND circuit 19.
It is output from the right screen detection signal 2.
2, the right side character element detection signal 17 and a signal obtained by inverting the right end black cell detection signal 18 by the inverter 18a are applied to an AND circuit 20, and outputted from the AND circuit 20.
上述に於いて、センサ上の白黒パターンと、垂
直方向の列の黒セルの分布との関係は、センサを
水平方向に移動させることにより、例えば第7図
aから順次、第7図b,第7図c,第7図dのよ
うに変化されるものである。 In the above, the relationship between the black and white pattern on the sensor and the distribution of black cells in the vertical columns can be changed from, for example, FIG. 7a to FIG. 7b to FIG. It can be changed as shown in Fig. 7c and Fig. 7d.
但し、第7図a〜dに於いて、x1〜x4はセ
ンサの視野10と文字6との関係による白黒パタ
ーンを示し、y1〜y4は垂直方向の列に黒セル
が存在しない部分25と、その黒セルが存在する
部分26との関係による黒セルの分布y1〜y4
を示す。 However, in FIGS. 7a to 7d, x1 to x4 indicate a black and white pattern based on the relationship between the field of view 10 of the sensor and the character 6, and y1 to y4 indicate a portion 25 in which no black cell exists in the vertical column. Distribution of black cells y1 to y4 in relation to the portion 26 where the black cells exist
shows.
そして、第7図aに於ける白黒パターンx1は
左端黒セル検知信号(LBF)15が“0”、左側
文字要素検知信号(LCF)16が“1”の場合
であり、走査速度が遅いと何回でも同一の位置関
係の画面が連続して得られる。このためある文字
に対して最初に上記のLBFが“0”、LCFが
“1”の条件を満たした画面だけを、左画面とし
て取出すには次のような処理を行なう。 The black and white pattern x1 in FIG. 7a is when the left black cell detection signal (LBF) 15 is "0" and the left side character element detection signal (LCF) 16 is "1", and the scanning speed is slow. Screens with the same positional relationship can be obtained continuously any number of times. Therefore, in order to extract only the screen that satisfies the above-mentioned conditions of LBF being "0" and LCF being "1" for a certain character as the left screen, the following processing is performed.
上記の条件を満たす場合に、左画面フラグ
(LF)を“1”とし、他の場合は“0”とする。
又、今行なわれる左画面フラグ直前の左画面フラ
グをBLFとすると、このBLFの補数BLFとLFと
がBLF・LF=1の時のみ、その時の白黒パター
ンを左画面として取出すことができる。 When the above conditions are met, the left screen flag (LF) is set to "1"; otherwise, it is set to "0".
Further, if the left screen flag immediately before the left screen flag to be executed is BLF, only when the complements BLF and LF of this BLF are BLF ·LF=1, the black and white pattern at that time can be extracted as the left screen.
又、第7図cに於ける白黒パターンx3は右側
文字要素検知信号(RCF)17が“1”、右端黒
セル検知信号(RBF)18が“0”の場合であ
り、この条件を満たす場合に、右画面フラグ
(RF)を“1”とし、他の場合は“0”とする。
又今行なわれる右画面フラグ直前の右画面フラグ
をBRFとすると、このBRFの補数BRFとRFとが
BRF・RF=1の時のみ、その時の白黒パターン
を右画面として取出すことができる。 Furthermore, the black and white pattern x3 in FIG. 7c is when the right side character element detection signal (RCF) 17 is "1" and the right edge black cell detection signal (RBF) 18 is "0", and when these conditions are satisfied In this case, the right screen flag (RF) is set to "1", and in other cases, it is set to "0".
Also, if the right screen flag immediately before the right screen flag that is executed now is BRF, the complements of this BRF, BRF and RF, are
Only when BRF・RF=1, the black and white pattern at that time can be extracted as the right screen.
このようなことから、第7図aに於ける白黒パ
ターンx1のデータが左画面バツフアメモリ23
に格納され、第7図cに於ける白黒パターンx3
のデータが右画面バツフアメモリ24に格納され
る。 For this reason, the data of the black and white pattern x1 in FIG. 7a is stored in the left screen buffer memory 23.
The black and white pattern x3 in Figure 7c is stored in
data is stored in the right screen buffer memory 24.
本発明は以上のように左画面バツフアメモリ2
3及び右画面バツフアメモリ24に格納された白
黒パターンデーを用いて識別処理を行なうもので
あり、この識別処理方式としては、左右画面から
それぞれ画面特徴を抽出し、それらの画面特徴を
合成して文字を識別する方式、又は左右画面に於
ける白黒パターンデータの重ね合せを行ない、こ
の重ね合せによる合成画面を用いて文字を識別す
る方式を採用するものである。 As described above, the present invention provides the left screen buffer memory 2.
Identification processing is performed using the black and white pattern data stored in the left and right screen buffer memory 24. This identification processing method involves extracting screen features from the left and right screens respectively, and combining these screen features to create characters. This method employs a method of identifying characters, or a method of superimposing black and white pattern data on the left and right screens and using a composite screen resulting from this superposition to identify characters.
第8図は左右画面特徴を抽出して文字を識別す
る識別処理方式の原理説明図であり、第4図の左
右画面検出回路で得られた左画面30及び右画面
31に於ける白黒パターンデータの水平方向の各
ラインの黒セルの論理和をとり、黒セルが存在す
るラインが規定数以上連続する領域を垂直文字エ
リア33とし、その他を空白エリア32,34と
する。そして、左あるいは右画面に於ける垂直文
字エリア33内の白黒パターンデータを用いて、
左あるいは右画面の特徴を抽出するものである。 FIG. 8 is an explanatory diagram of the principle of an identification processing method for identifying characters by extracting left and right screen features, and black and white pattern data on the left screen 30 and right screen 31 obtained by the left and right screen detection circuit of FIG. The logical sum of the black cells of each line in the horizontal direction is taken, and the area where a specified number or more of consecutive lines with black cells exist is defined as a vertical character area 33, and the other areas are defined as blank areas 32 and 34. Then, using the black and white pattern data in the vertical character area 33 on the left or right screen,
This extracts the features of the left or right screen.
例えば1画面が、水平方向にnビツト、垂直方
向にmビツトのn×mビツトの白黒パターンで構
成されるとし、その画面に於ける垂直方向の1
より2までが垂直文字エリア33であるとき、
まず、左端2列の白黒パターンにより、垂直方向
にみた列特徴を抽出し、続いて右に1列ずらした
2列の白黒パターンの列特徴を抽出し、同様にし
右端の列を用いた列特徴まで(n−1)個の列特
徴を抽出するものであり、このような抽出を左右
画面について行なうものである。 For example, suppose one screen is composed of a black and white pattern of n×m bits (n bits in the horizontal direction and m bits in the vertical direction).
When the area up to 2 is the vertical character area 33,
First, the column features viewed vertically are extracted using the black and white patterns in the two leftmost columns, then the column features of the two black and white patterns shifted one column to the right are extracted, and in the same way, the column features using the rightmost column are extracted. This method extracts up to (n-1) column features, and such extraction is performed for the left and right screens.
第9図は第8図で説明した識別処理方式による
識別処理部のブロツク線図であり、ラツチ回路3
6との組合せで順序回路が構成された列特徴抽出
部35と、ラツチ回路38との組合せで順序回路
が構成された画面特徴抽出部37と、入力側に左
画面コードメモリ39及び右画面コードメモリ4
0を有する左右画面合成部41とからなる。 FIG. 9 is a block diagram of the identification processing section according to the identification processing method explained in FIG.
6, a column feature extractor 35 constitutes a sequential circuit in combination with a latch circuit 38, a screen feature extractor 37 constitutes a sequential circuit in combination with a latch circuit 38, and a left screen code memory 39 and a right screen code on the input side. memory 4
0, and a left and right screen combining section 41 having
列特徴抽出部35は、左画面バツフアメモリあ
るいは右画面バツフアメモリから2列の白黒パタ
ーンデータ42が2ビツトパラレルで垂直方向の
ビツト数に対応するm回入力され、そのデータ4
2とラツチ回路36の内容とによつてアクセスさ
れ、出力はラツチ回路36にラツチされる。従つ
て、ラツチ回路36の内容は例えば第10図の状
態遷移図に示すように順次変化し、最終段の2ビ
ツト入力に対応する状態が列特徴コード43とし
て画面特徴抽出部37に入力される。第10図に
於いては、初期状態aで2ビツトパラレルが共に
白であると初期状態aのままであるが、2ピツト
パラレル入力が共に黒であると、状態bに遷移
し、次に2ビツトパラレル入力が共に白である状
態cに遷移し、次に2ビツトパラレル入力が共に
黒であると状態dに遷移し、次に2ビツトパラレ
ル入力が共に白であると状態eに遷移し、次に2
ビツトパラレル入力が共に黒であると状態fに遷
移し、その2ビツト入力が最終段であれば、状態
fが列特徴コード43として画面特徴抽出部37
に入力される。 The column feature extraction unit 35 receives two columns of black and white pattern data 42 in 2-bit parallel from the left screen buffer memory or the right screen buffer memory m times corresponding to the number of bits in the vertical direction.
2 and the contents of latch circuit 36, and the output is latched into latch circuit 36. Therefore, the contents of the latch circuit 36 change sequentially, for example, as shown in the state transition diagram of FIG. . In Figure 10, if both 2-bit parallel inputs are white in the initial state a, the initial state a remains, but if both 2-bit parallel inputs are black, the state transitions to state b, and then the 2-bit parallel inputs are black. Transition to state c when both parallel inputs are white, then transition to state d when both 2-bit parallel inputs are black, then transition to state e when both 2-bit parallel inputs are white, and then transition to state e when both 2-bit parallel inputs are white. to 2
If both bit parallel inputs are black, the state transitions to state f, and if the 2-bit input is the final stage, state f is used as the column feature code 43 by the screen feature extractor 37.
is input.
画面特徴抽出部37は、列特徴抽出部53のラ
ツチ回路36から左画面あるいは右画面の列特徴
コード43が(n−1)回入力され、その列特徴
コード43とラツチ回路38の内容とによつてア
クセスされ、出力はラツチ回路38にラツチされ
る。従つて、ラツチ回路38の内容は例えば第1
1図の状態遷移図に示すように順次変化し、最終
段の列特徴コードの入力に対応する状態が画面特
徴コード44として信号45,46により左画面
コードメモリ39及び右画面コードメモリ40の
何れかに入力される。 The screen feature extractor 37 receives the column feature code 43 of the left screen or right screen (n-1) times from the latch circuit 36 of the column feature extractor 53, and uses the column feature code 43 and the contents of the latch circuit 38 as input. The output is latched into the latch circuit 38. Therefore, the contents of the latch circuit 38 are, for example, the first
The state changes sequentially as shown in the state transition diagram in FIG. It is inputted in a different way.
なお、画面特徴抽出部37により、左画面、右
画面いずれの特徴を先に抽出するにしても、左画
面バツフアメモリあるいは右画面バツフアメモリ
から列特徴抽出部35への出力が開始されてか
ら、画面特徴抽出部37で画面特徴が得られるま
でのタイミングは既知であるので、その画面特徴
が得られるタイミングに同期して画面特徴取出し
用の信号45,46を左画面コードメモリ39及
び右画面コードメモリ40に加えることができ
る。即ち、列特徴抽出部35のラツチ回路36に
は、垂直方向の各セルのシフト毎に同期するクロ
ツクが入力され、横方向のシフトに同期してクリ
ア信号が入力される。又画面特徴抽出部37のラ
ツチ回路には横方向のシフトに同期して列特徴抽
出部35のクリア信号の前にクロツクが入力さ
れ、列特徴抽出部35の出力を取り込み右端部処
理が行なわれた後、クリア信号が入力される。従
つて上記の如く信号45,46をメモリ39,4
0に加えることができる。 Note that, regardless of whether the screen feature extraction unit 37 extracts the features of the left screen or the right screen first, the screen features are extracted after the output from the left screen buffer memory or the right screen buffer memory to the column feature extraction unit 35 is started. Since the timing until the screen feature is obtained by the extraction unit 37 is known, the signals 45 and 46 for screen feature extraction are sent to the left screen code memory 39 and the right screen code memory 40 in synchronization with the timing at which the screen feature is obtained. can be added to. That is, the latch circuit 36 of the column feature extraction section 35 receives a clock synchronized with each shift of each cell in the vertical direction, and a clear signal in synchronization with the shift in the horizontal direction. Furthermore, a clock is input to the latch circuit of the screen feature extraction section 37 in synchronization with the horizontal shift and before the clear signal of the column feature extraction section 35, and the output of the column feature extraction section 35 is taken in and the right edge processing is performed. After that, a clear signal is input. Therefore, as mentioned above, the signals 45 and 46 are stored in the memories 39 and 4.
Can be added to 0.
第11図に於いては、初期状態a′で入力a′−1
があると状態b′に遷移し、次に入力b′−1がある
と状態c′に遷移し、この状態c′以降に重なり合う
入力c′−1のみであれ遷移せずに最終段となり、
状態c′が画面特徴コード44として左画面コード
メモリ39或は右画面コードメモリ40に書込み
される。但し、画面特徴は、読取対象とする文字
の一部あるいは全体の形状に対し、コードを与え
たもので、1つの文字に複数のコードが与えられ
る。また異なる文字に一部に同一のコードが与え
られる場合も存在する。このようにして画面特徴
コード44は第11図にA,B,C等で示す状態
遷移で抽出されるものである。 In Figure 11, in the initial state a', the input a'-1
If there is an input b'-1, the state transitions to state b', and if there is an input b'-1, the state transitions to c', and even if there is only an input c'-1 that overlaps after this state c', it does not transition and becomes the final stage,
The state c' is written as a screen characteristic code 44 into the left screen code memory 39 or the right screen code memory 40. However, the screen feature is a code given to a part or the entire shape of a character to be read, and a plurality of codes are given to one character. There are also cases where different characters are given the same code. In this way, the screen feature code 44 is extracted at the state transitions shown as A, B, C, etc. in FIG.
従つて、画面特徴コードを第12図に示す如く
組合せることにより文字を識別できるものであ
り、例えば左画面特徴コードLがAのとき、右画
面特徴コードRがBであれば、「5」と識別でき
ることになり、又その右画面特徴コードRがCで
あれば、「9」と識別できることになる。又左画
面特徴コードLがBあるいはCのとき、右画面特
徴コードRがCであれば、「3」と識別できるこ
とになる。 Therefore, characters can be identified by combining screen feature codes as shown in FIG. 12. For example, when the left screen feature code L is A and the right screen feature code R is B, "5" If the right screen characteristic code R is C, it can be identified as "9". Further, when the left screen characteristic code L is B or C, if the right screen characteristic code R is C, it can be identified as "3".
左右画面合成部41は、第12図で説明したよ
うに左右両画面の画面特徴を組合せて識別を行な
うもので、左画面コードメモリ39に入力された
画面特徴コード44を信号によりアクセスして上
位アドレスとし、右画面コードメモリ40に入力
された画面特徴コード44を信号46によりアク
セスして下位アドレスとして入力し、各アドレス
情報を合成して識別を行ない、その識別結果47
を出力する。 The left and right screen synthesis unit 41 performs identification by combining the screen characteristics of both the left and right screens, as explained in FIG. The screen characteristic code 44 input into the right screen code memory 40 is accessed by the signal 46 and input as the lower address, and each address information is combined and identified, and the identification result 47
Output.
以上の説明では左右画面の画面特徴を抽出する
ために垂直方向の2ラインを用いて列特徴を抽出
し、このようにして得られた列特徴により画面特
徴を抽出する場合を示したが、列特徴を抽出する
ために3ライン以上を用いることもできる。又、
列特徴の代りに、水平方向の複数ラインを用い
て、列特徴を抽出した場合と同様の回路により、
行特徴の抽出を行ない、このようにしてて得られ
た行特徴を用いて画面特徴を抽出することもでき
る。 In the above explanation, in order to extract the screen features of the left and right screens, column features are extracted using two vertical lines, and screen features are extracted using the column features obtained in this way. More than two lines can also be used to extract features. or,
Using the same circuit as when extracting column features using multiple horizontal lines instead of column features,
It is also possible to extract screen features by extracting row features and using the row features thus obtained.
又、識別処理方式として左右画面の白黒パター
ンから画面特徴を抽出した後、画面特徴を合成し
て文字を識別する方式を説明したが、左右画面の
白黒パターンでの合成を先に行なつて1つの合成
画面とし、この合成画面の画面特徴を抽出して文
字を識別する方式を適用してもよいものであり、
この場合の実施例のブロツク線図を第13図に示
す。 In addition, as an identification processing method, a method was explained in which screen features are extracted from the black-and-white patterns of the left and right screens, and then the screen features are combined to identify characters. It is also possible to apply a method to identify the characters by extracting the screen characteristics of the composite screen and identifying the characters.
A block diagram of the embodiment in this case is shown in FIG.
第13図に於いて、50は左画面バツフアメモ
リ、51は右画面バツフアメモリ、52,53は
列番号レジスタ、54は垂直方向の列のビツト構
成の差(以下相違度と称する)を計算する相違度
計算回路、55は相違度の最小値がセツトされる
最小値レジスタ、56は最小値を与える列番号を
記憶する列番号レジスタ、57は相違度の最小値
比較回路である。 In FIG. 13, 50 is a left screen buffer memory, 51 is a right screen buffer memory, 52 and 53 are column number registers, and 54 is a dissimilarity degree for calculating the difference in the bit configuration of columns in the vertical direction (hereinafter referred to as dissimilarity degree). 55 is a minimum value register in which the minimum difference value is set; 56 is a column number register that stores the column number giving the minimum value; and 57 is a minimum difference comparison circuit.
列番号レジスタ52には、左画面バツフアメモ
リ50にセツトされた左画面内の文字パターンの
最右端の列番号がセツトされ、又列番号レジスタ
53には、左画面バツフアメモリ50にセツトさ
れた左画面内全ての列番号が順次セツトされる。 The column number register 52 is set with the rightmost column number of the character pattern on the left screen set in the left screen buffer memory 50, and the column number register 53 is set with the column number of the character pattern on the left screen set in the left screen buffer memory 50. All column numbers are set sequentially.
列番号レジスタ52の内容に従つて左画面バツ
フアメモリ50から右画面内の文字パターンに於
ける最右端の列番号のビツトパターンが読出さ
れ、又列番号レジスタ53の内容に従つて右画面
の各列番号のビツトパターンが読出され、それぞ
れ相違度計算回路54に入力される。この計算回
路54により1回目の相違度計算が行なわれたと
きは、比較回路57を介して最小値レジスタ55
にその相違度がセツトされる。そして計算回路5
4により2回目以降の相違度計算を行なわれたと
きは、比較回路57に於いて、計算回路54で得
られた相違度と最小値レジスタ55にセツトされ
ている相違度との比較が行なわれ、計算回路54
で得られた相違度の方が小さいときには、その相
違度に最小値レジスタ55が更新され、且つ相違
度の小さい方の列番号がレジスタ56にセツトさ
れる。 According to the contents of the column number register 52, the bit pattern of the rightmost column number in the character pattern on the right screen is read out from the left screen buffer memory 50, and according to the contents of the column number register 53, the bit pattern of the rightmost column number is read out from the left screen buffer memory 50. The bit patterns of the numbers are read out and input to the difference calculation circuit 54, respectively. When the calculation circuit 54 performs the first difference calculation, the minimum value register 55
The degree of dissimilarity is set to . and calculation circuit 5
When the second and subsequent dissimilarity calculations are performed in step 4, the comparison circuit 57 compares the dissimilarity obtained by the calculation circuit 54 with the dissimilarity set in the minimum value register 55. , calculation circuit 54
When the degree of difference obtained is smaller, the minimum value register 55 is updated to that degree of difference, and the column number with the smaller degree of difference is set in the register 56.
このようにして右画面の最右端の列番号のビツ
トパターンについての相違度計算及び比較が行な
われることにより、列番号レジスタ56には左画
面の最右端の列番号のビツトパターンとの相違度
が最小となる右画面の列番号がセツトされること
になる。 By calculating and comparing the degree of difference with respect to the bit pattern of the rightmost column number of the right screen in this way, the degree of difference with the bit pattern of the rightmost column number of the left screen is stored in the column number register 56. The minimum column number on the right screen will be set.
バツフアメモリ50,51の内容を合成して文
字識別を行なう場合、左画面バツフアメモリ50
からは列番号1から列番号を順次歩進して白黒パ
ターンを読出す。この処理を列番号が列番号レジ
スタ52の内容に一致するまで行なう。 When character identification is performed by combining the contents of the buffer memories 50 and 51, the left screen buffer memory 50
From then on, the column numbers are sequentially incremented from column number 1 to read out the black and white pattern. This process is repeated until the column number matches the contents of the column number register 52.
左画面の白黒パターンが列番号レジスタ52の
内容の列まで読出された後、右画面の白黒パター
ンからは列番号レジスタ56の内容から順次、列
番号nまでの白黒パターンを読出す。 After the black-and-white pattern on the left screen is read up to the column of the contents of the column number register 52, the black-and-white pattern on the right screen is sequentially read from the contents of the column number register 56 up to the column number n.
第14図に示される例では、左画面(a)において
左端の列から右端の列70までの白黒データが読
出された後、右画面(b)において上記列70のビツ
トパターンとの相違度が最小の列71から右端の
列までの白黒データが読出されて文字の識別が行
なわれる。 In the example shown in FIG. 14, after the black and white data from the leftmost column to the rightmost column 70 is read out on the left screen (a), the degree of difference from the bit pattern in the column 70 is determined on the right screen (b). The black and white data from the smallest column 71 to the rightmost column is read and characters are identified.
又第15図に示される例では、左画面(a)及び右
画面(b)のそれぞれ1画面内に文字が入るので、列
72と列73とを重ね合せればよく、実際には左
画面だけの白黒データのパターンと同一となる。 Furthermore, in the example shown in FIG. 15, since the characters are contained within one screen each of the left screen (a) and the right screen (b), it is only necessary to overlap columns 72 and 73, and in reality the left screen The pattern is the same as that of black and white data.
以上説明したように、本発明は、文字、記号等
の左端部がセンサの視野の左端部に到達した時及
び文字、記号等の右端部がセンサの視野の右端部
に到達した時の白黒パターンを左画面バツフアメ
モリ及び右画面バツフアメモリに記憶させ、左、
右画面バツフアメモリの記憶内容に基づいて左画
面特徴コード及び右画面特徴コードを抽出し、左
画面特徴コード(実施例に於いては左画面コード
メモリ39に記憶される画面特徴コード)と右画
面特徴コード(実施例に於いては右画面コードメ
モリ40に記憶される画面特徴コード)と組合わ
せにより、文字、記号等を識別するものであるか
ら、センサの視野よりも文字、記号等が大きい場
合に於いても文字、記号等を確実に認識すること
ができる利点がある。また、更に、本発明は、文
字、記号等の左端部及び右端部がセンサの左端部
及び右端部に到達した時の白黒パターンのみを用
いて文字、記号等の認識を行なうものであるか
ら、文字、記号等が記載されている用紙とセンサ
との相対的な移動速度が一定でない場合に於いて
も、少ない記憶容量で文字、記号等を確実に認識
することができる利点がある。従つて、本発明を
ハンドスキヤナを用いた装置に適用すれば、その
効果は非常に大きい。 As explained above, the present invention provides a black and white pattern when the left end of a character, symbol, etc. reaches the left end of the field of view of the sensor, and when the right end of a character, symbol, etc. reaches the right end of the field of view of the sensor. are stored in the left screen buffer memory and right screen buffer memory, and the left,
The left screen feature code and the right screen feature code are extracted based on the contents stored in the right screen buffer memory, and the left screen feature code (in the embodiment, the screen feature code stored in the left screen code memory 39) and the right screen feature are extracted. Since characters, symbols, etc. are identified by a combination with a code (in the embodiment, the screen characteristic code stored in the right screen code memory 40), if the characters, symbols, etc. are larger than the field of view of the sensor. It also has the advantage of being able to reliably recognize characters, symbols, etc. Furthermore, the present invention recognizes characters, symbols, etc. using only the black and white pattern when the left end and right end of the character, symbol, etc. reach the left end and right end of the sensor. Even when the relative movement speed between the paper on which the characters, symbols, etc. are written and the sensor is not constant, there is an advantage that the characters, symbols, etc. can be reliably recognized with a small storage capacity. Therefore, if the present invention is applied to an apparatus using a hand scanner, the effect will be very large.
しかも、本発明で使用するセンサは2次元セン
サであるので、文字、記号等の位相差を正しくと
らえることができるという利点が維持されたもの
となる。 Furthermore, since the sensor used in the present invention is a two-dimensional sensor, the advantage of being able to accurately capture the phase difference of characters, symbols, etc. is maintained.
第1図は一般の光学的文字読取装置の説明図、
第2図a,bは文字とセンサの視野との関係の説
明図、第3図a〜cは本発明の光学的読取方式の
原理説明図、第4図は本発明の実施例の説明図で
あり、左右画面検出回路のブロツク線図、第5図
は列黒セル検出回路のブロツク線図、第6図は列
別黒セル検出回路に加える信号のタイムチヤー
ト、第7図a〜dは白黒パターンと黒セルの分布
との関係の説明図、第8図は左右画面特徴を抽出
して行なう識別処理方式の原理説明図、第9図は
第8図で説明した識別処理方式による識別処理部
のブロツク線図、第10図は第9図の識別処理部
に於ける列特徴の状態遷移図、第11図は第9図
の識別処理部に於ける画特徴の状態遷移図、第1
2図は画面特徴を合成して識別する際の説明図、
第13図は合成画面の画面特徴を抽出して行なう
識別処理方式を適用した場合の実施例のブロツク
線図、第14図及び第15図は合成画面をつくる
場合の具体例の説明図である。
1は光学系、2はイメージセンサ、3は2値化
回路、4は識別回路、5は用紙、6は文字、1
0,11,12はセンサ視野、13は列別黒セル
検出回路、14は一時記憶バツフアメモリ、15
a,18aはインバータ、19,20は論理回
路、23は左画面バツフアメモリ、24は右画面
バツフアメモリ、35は列特徴抽出部、36はラ
ツチ回路、37は画面特徴抽出部、38はラツチ
回路、39は右画面コードメモリ、40は左画面
コードメモリ、41は左右画面合成部、50は左
画面バツフアメモリ、51は右画面バツフアメモ
リ、52,53は列番号レジスタ、54は相違度
計算回路、55は最小値レジスタ、56は列番号
レジスタ、57は最小値比較回路である。
Figure 1 is an explanatory diagram of a general optical character reading device.
Figures 2a and b are illustrations of the relationship between characters and the field of view of the sensor, Figures 3a to c are illustrations of the principle of the optical reading system of the present invention, and Figure 4 is an illustration of an embodiment of the invention. 5 is a block diagram of the column black cell detection circuit, FIG. 6 is a time chart of signals applied to the column black cell detection circuit, and FIGS. 7a to 7d are block diagrams of the left and right screen detection circuits. An explanatory diagram of the relationship between the black and white pattern and the distribution of black cells, Fig. 8 is an explanatory diagram of the principle of the identification processing method performed by extracting the left and right screen features, and Fig. 9 is an illustration of the identification processing using the identification processing method explained in Fig. 8. 10 is a state transition diagram of column features in the identification processing section of FIG. 9. FIG. 11 is a state transition diagram of image features in the identification processing section of FIG.
Figure 2 is an explanatory diagram of the process of combining and identifying screen features.
FIG. 13 is a block diagram of an embodiment in which an identification processing method is applied that extracts screen features of a composite screen, and FIGS. 14 and 15 are explanatory diagrams of specific examples of creating a composite screen. . 1 is an optical system, 2 is an image sensor, 3 is a binarization circuit, 4 is an identification circuit, 5 is paper, 6 is a character, 1
0, 11, 12 are sensor fields of view, 13 is a black cell detection circuit for each column, 14 is a temporary memory buffer memory, 15
a, 18a are inverters, 19, 20 are logic circuits, 23 is a left screen buffer memory, 24 is a right screen buffer memory, 35 is a column feature extractor, 36 is a latch circuit, 37 is a screen feature extractor, 38 is a latch circuit, 39 is a right screen code memory, 40 is a left screen code memory, 41 is a left and right screen combination unit, 50 is a left screen buffer memory, 51 is a right screen buffer memory, 52 and 53 are column number registers, 54 is a difference calculation circuit, and 55 is a minimum A value register 56 is a column number register, and 57 is a minimum value comparison circuit.
Claims (1)
換素子が2次元に配列されているセンサとを任意
の速度で相対的に移動させながら該センサにより
前記文字、記号等を走査し、該センサで読取つた
信号を処理して文字、記号等を読取る光学的文字
読取方式に於いて、 前記センサの出力信号に基づいて前記文字、記
号等の左端部が前記センサの視野の左端部に到達
したことを検出する左端部検出手段と、 前記センサの出力信号に基づいて前記文字、記
号等の右端部が前記センサの視野の右端部に到達
したことを検出する右端部検出手段と、 前記センサの出力信号を二値化して前記センサ
の結像画に結像された像の白黒パターンを作成す
る白黒パターン作成手段と、 前記左端部検出手段で前記文字、記号等の左端
部が前記センサの視野の左端部に到達したことを
検出した時の前記白黒パターン作成手段で作成さ
れた白黒パターンを記憶する左画面バツフアメモ
リと、 前記右端部検出手段で前記文字、記号等の右端
部が前記センサの視野の右端部に到達したことを
検出した時の前記白黒パターン作成手段で作成さ
れた白黒パターンを記憶する右画面バツフアメモ
リと、 前記左画面バツフアメモリの記憶内容に基づい
て左画面特徴コードを抽出する左画面特徴コード
抽出手段と、 前記右画面バツフアメモリの記憶内容に基づい
て右画面特徴コードを抽出する右画面特徴コード
抽出手段とを設け、 前記左画面特徴コード抽出手段及び右画面特徴
コード抽出手段で抽出された左画面特徴コードと
右画面特徴コードとの組合せにより前記文字、記
号等を識別することを特徴とする光学的文字読取
方式。[Scope of Claims] 1. While a sheet of paper on which characters, symbols, etc. are written and a sensor in which photoelectric conversion elements are arranged two-dimensionally are moved relative to each other at an arbitrary speed, the characters, symbols, etc. are recorded by the sensor. In an optical character reading method in which characters, symbols, etc. are read by scanning and processing signals read by the sensor, the left end of the characters, symbols, etc. is located within the field of view of the sensor based on the output signal of the sensor. a left edge detection means for detecting that the right edge of the character, symbol, etc. has reached the right edge of the field of view of the sensor based on the output signal of the sensor; means for creating a black and white pattern of an image formed by the sensor by binarizing the output signal of the sensor; and a left end detecting means for detecting the left end of the character, symbol, etc. a left screen buffer memory for storing a black-and-white pattern created by the black-and-white pattern creation means when it is detected that the part has reached the left end of the field of view of the sensor; a right screen buffer memory that stores the black and white pattern created by the black and white pattern creation means when it is detected that the camera has reached the right end of the field of view of the sensor; A left screen feature code extracting means for extracting a code, and a right screen feature code extracting means for extracting a right screen feature code based on the stored content of the right screen buffer memory, the left screen feature code extracting means and the right screen feature. An optical character reading method characterized in that the characters, symbols, etc. are identified by a combination of a left screen characteristic code and a right screen characteristic code extracted by a code extraction means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11967578A JPS5547574A (en) | 1978-09-28 | 1978-09-28 | Optical character reading device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11967578A JPS5547574A (en) | 1978-09-28 | 1978-09-28 | Optical character reading device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5547574A JPS5547574A (en) | 1980-04-04 |
| JPS6141030B2 true JPS6141030B2 (en) | 1986-09-12 |
Family
ID=14767261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11967578A Granted JPS5547574A (en) | 1978-09-28 | 1978-09-28 | Optical character reading device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5547574A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57139874A (en) * | 1981-02-20 | 1982-08-30 | Toshiyuki Sakai | Picture input device |
| JPS5944797A (en) * | 1982-09-07 | 1984-03-13 | 増田 閃一 | Electrostatic processor for article |
| JPS6055478A (en) * | 1983-09-06 | 1985-03-30 | Tokyo Electric Co Ltd | Bar code reader |
-
1978
- 1978-09-28 JP JP11967578A patent/JPS5547574A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5547574A (en) | 1980-04-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4162482A (en) | Pre-processing and feature extraction system for character recognition | |
| JPS615386A (en) | Pattern recognition equipment | |
| US4797940A (en) | Optical character reader | |
| KR100383858B1 (en) | Character extracting method and device | |
| JPH10198754A (en) | Code reader | |
| EP0144006B1 (en) | An improved method of character recognitionand apparatus therefor | |
| JPS6141030B2 (en) | ||
| JPH0430070B2 (en) | ||
| GB2072912A (en) | Optical character reading system | |
| JPH0132555B2 (en) | ||
| JPH10105647A (en) | Device and method for reading container number | |
| JP3095437B2 (en) | Character line detection cutout device and character reading device | |
| JPS596419B2 (en) | Character extraction method | |
| JP2697085B2 (en) | Image signal processing device | |
| JPS6280779A (en) | Character reader | |
| JP2619915B2 (en) | Information processing method and apparatus | |
| JPH0434793B2 (en) | ||
| JPH0137793B2 (en) | ||
| JPS5936309B2 (en) | Character reading method | |
| JPH0272497A (en) | Optical character reader | |
| JPS596418B2 (en) | Character reading method | |
| JPH0119189B2 (en) | ||
| JPS59188775A (en) | Picture processing device | |
| JPH0469785A (en) | Optical information reader | |
| JPS6093572A (en) | Graphic selective image processor |