JPS6324382A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPS6324382A
JPS6324382A JP61167338A JP16733886A JPS6324382A JP S6324382 A JPS6324382 A JP S6324382A JP 61167338 A JP61167338 A JP 61167338A JP 16733886 A JP16733886 A JP 16733886A JP S6324382 A JPS6324382 A JP S6324382A
Authority
JP
Japan
Prior art keywords
character
horizontal
range
character line
pixels
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.)
Granted
Application number
JP61167338A
Other languages
Japanese (ja)
Other versions
JPH0760451B2 (en
Inventor
Mikio Yamaguchi
幹雄 山口
Koji Sato
浩二 佐藤
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP61167338A priority Critical patent/JPH0760451B2/en
Priority to EP87109873A priority patent/EP0258577B1/en
Priority to DE8787109873T priority patent/DE3783974T2/en
Priority to CA000541675A priority patent/CA1283212C/en
Priority to US07/071,712 priority patent/US4817185A/en
Publication of JPS6324382A publication Critical patent/JPS6324382A/en
Publication of JPH0760451B2 publication Critical patent/JPH0760451B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To exactly detect a character line regardless of the size of a price tag by detecting the character line by using plural lateral OR circuits. CONSTITUTION:Character codes are inputted by pressing the window part in front of a scanner against a blank 23 on which character codes are written. In such constitution, plural lateral OR circuits 1, 1'... are provided in each lateral OR extent. The lateral OR circuit makes the result of operation 1 when there is even one black picture element in lateral direction and makes the result of operation '0' when all picture elements are white. Black position and length detecting sections 2, 2'... are provided in each circuit 1, 1'.... The detecting sections 2, 2'... receive output of the circuits 1, 1'..., and judges whether the length of black output is proper as the height of character. A character position selecting and combing section 3 receives output from detecting sections 2, 2'..., and judges the positions where characters exist. Information of positions where characters exist is sent to a control circuit 29. The circuit 29 starts and stops a recognition processing section 30.

Description

【発明の詳細な説明】 ア)産業上の利用分野 この発明は、光学文字読取装置に関する。[Detailed description of the invention] a) Industrial application field The present invention relates to an optical character reading device.

すなわち、文字を記載した用紙の上を、手持ち式のスキ
ャナで走査し、文字を光学的に読取る装置に関する。
That is, the present invention relates to a device that optically reads characters by scanning a sheet of paper with characters written thereon using a hand-held scanner.

イ)従来技術 スーパーマーケットや百貨店などては、単品ごとの売上
情報を収集して在庫管理を行うpos(Po1nt o
E 531es )  システムが普及シテイル。
B) Conventional technology Supermarkets and department stores use POS (Po1nt o), which collects sales information for each item and manages inventory.
E531es) The system is popular.

POSシステムでは、品物ごとのコード番号や価格を売
上時に値札などから読取るため、光学的文字読取り認識
装置(OCR)が用いられる。
In a POS system, an optical character reading recognition device (OCR) is used to read the code number and price of each item from a price tag at the time of sale.

たとえば、第2図に示すような手持ち式0CR(特願昭
6O−79082)が案出され既に用いられている。
For example, a hand-held OCR (Japanese Patent Application No. 6O-79082) as shown in FIG. 2 has been devised and is already in use.

この手持ち式OCRでは、スキャナ21を手22に持っ
て、用紙23の上に尚でかうだけで、用紙23に記載さ
れた文字、記号などを読取る。
In this hand-held OCR, characters, symbols, etc. written on the paper 23 can be read by simply holding the scanner 21 in the hand 22 and placing it on the paper 23.

読取られるべき対象は、POSシステムでの情報、すな
わち品番、価格などが記載された値札などである。文字
というのは、数字と、記号、アルファベットなどである
。漢字などを読取るわけてはない。対象となるものを単
に用紙23と表現する。用紙と言っているが、ブランク
があって、なんらかの文字、図を新しく書き入れる紙と
いう意味ではない。
The object to be read is information in a POS system, such as a price tag on which product number, price, etc. are written. Characters include numbers, symbols, and the alphabet. It doesn't read kanji or anything like that. The object is simply expressed as paper 23. When I say paper, I don't mean paper that has blanks on which you can write new letters or figures.

スキャナ21の前方には、光源24がある。光源24か
らの光は用紙23に当り反射されてレンズ系25に入る
。これがセンサ26によって光電変換される。
In front of the scanner 21 is a light source 24 . The light from the light source 24 hits the paper 23, is reflected, and enters the lens system 25. This is photoelectrically converted by the sensor 26.

センサ26は二次元の拡がりを持つイメージセンサであ
る。そして、センサ26は、用紙23の情報記載部分、
つまり値札の大きさきほぼ同じ大きさの視野となってい
る。
The sensor 26 is an image sensor with two-dimensional expansion. Then, the sensor 26 detects the information writing part of the paper 23,
In other words, the field of view is approximately the same size as the price tag.

センサ26の受光部は縦横に分割された独立の光電変換
素子よりなっている。
The light receiving section of the sensor 26 is composed of independent photoelectric conversion elements divided vertically and horizontally.

単位の素子それぞれに於て、光の強度が光電流、又は光
抵抗の変化に変換される。この電気信号は光強度に比例
したアナログ量であるが、基準の電圧などと比較するこ
とによりディジタル量に変換される。目的により高次ビ
ットのディジタル量に変換してもよいが、多くの場合、
明暗の2段階に分ける。
In each unit element, the intensity of light is converted into a change in photocurrent or photoresistance. This electrical signal is an analog quantity proportional to the light intensity, but is converted into a digital quantity by comparing it with a reference voltage or the like. Depending on the purpose, it may be converted to a digital quantity of higher order bits, but in many cases,
Divided into two stages: light and dark.

単位の素子により光電変換された部分を画素という。明
暗の2段階に分けられた画素には、0又は1の値が対応
させられる。或は値Oを持つ画素を白画素といい、値1
を持つ画素を黒画素という。
The portion photoelectrically converted by a unit element is called a pixel. A value of 0 or 1 is associated with each pixel divided into two levels, bright and dark. Alternatively, a pixel with a value of O is called a white pixel, and a pixel with a value of 1
A pixel with this is called a black pixel.

画素は画像処理に於ける最小の単位領域である。A pixel is the smallest unit area in image processing.

画素の数は、センサによって決まる。センサの視野が値
札の情報記載部と同じだという事は、全ての文字、記号
の像が、センサ面上のどこかに結像している、という事
である。
The number of pixels is determined by the sensor. The fact that the field of view of the sensor is the same as the information section of the price tag means that the images of all characters and symbols are focused somewhere on the sensor surface.

スキャナ21を用紙上を移動させることなく視野内の値
札の情報を読取ることができる。
Information on price tags within the field of view can be read without moving the scanner 21 over the paper.

制御二値化回路27は、センサ2Gの画素ごさの出力信
号を、ある閾値と比較して二値化する回路である。二値
化された信号は、順次画像メモリ28へ送られる。
The control binarization circuit 27 is a circuit that binarizes the output signal of each pixel of the sensor 2G by comparing it with a certain threshold value. The binarized signals are sequentially sent to the image memory 28.

画像メモリ28は、センサ26の視野のほぼ全体にあた
る画素について、二値化データを格納する。
The image memory 28 stores binarized data for pixels covering almost the entire field of view of the sensor 26.

第3図により、センサ26の二値化データを説明する。The binary data of the sensor 26 will be explained with reference to FIG.

縦P画素、横9画素よりなる、29個の画素をセンサが
持っている。これは、用紙23の情報記載部分全体の視
野の拡がりにほぼ等しい。
The sensor has 29 pixels, consisting of P pixels vertically and 9 pixels horizontally. This is approximately equal to the field of view of the entire information writing portion of the paper 23.

画素は、縦横に規則正しく並んでいる。横に並ぶ一連の
画素列を行という。行方向にBl 、 B2 。
The pixels are regularly arranged vertically and horizontally. A series of horizontal pixel columns is called a row. Bl, B2 in the row direction.

・・・・・・・・、 Bqという符号付けをしている。・・・・・・・・・It is coded as Bq.

また縦に並ぶ一連の画素列を列という。列方向にLl、
 B2 、・・・・・・・・、 I−pと符号付けして
いる。
A series of vertical pixel columns is called a column. Ll in the column direction,
B2 , . . . , I-p.

全ての画素は行、列の番号により、完全に指定する事が
できる。たとえば、m行n列の画素は(m、n)と書く
ことができる。
All pixels can be completely specified by row and column numbers. For example, a pixel in m rows and n columns can be written as (m, n).

また、列については、Bl 、 B2 、・・・・・・
・・、B9を列の表記として採用できる。B1 という
のは、最初の縦方向の画、素列の全体を指す。
Also, regarding the columns, Bl, B2,...
..., B9 can be adopted as the column notation. B1 refers to the entire first vertical pixel or pixel row.

さらに、行を表わすには、Ll、 B2 、・・・・・
・・。
Furthermore, to represent a row, Ll, B2,...
....

Lpを用いる事ができる。Llというのは最上辺の一行
の画素の集合である。
Lp can be used. Ll is a set of pixels in one row on the top side.

画像メモリ28には、画素ごとに0.1の値カ記憶され
る。従って第3図は画像メモリ28の内容だと考えるこ
ともできる。行列(m、n)の値をアドレスさすること
により、各画素のデータ(0,1)を記憶させる事がで
きる。
The image memory 28 stores a value of 0.1 for each pixel. Therefore, FIG. 3 can be considered to be the contents of the image memory 28. Data (0, 1) for each pixel can be stored by addressing the values of the matrix (m, n).

数字1,2.3,4.5及びアルファベットA。Numbers 1, 2.3, 4.5 and alphabet A.

Bが例示されている。これらの文字をなす部分が黒画素
であって、データ値は1である。文字をなさない余白の
部分が白画素であって、データ値は0である。
B is illustrated. The parts forming these characters are black pixels, and the data value is 1. The blank space where no characters are formed is a white pixel, and the data value is 0.

数字「1」は、B1〜Bn及びL1〜I−r+1の間;
こある。つまりm行n列の画素群により数字1が表わさ
れている。
The number "1" is between B1 to Bn and L1 to I-r+1;
There it is. In other words, the number 1 is represented by a pixel group of m rows and n columns.

他の数字も同じ大きさの面積をもつ画素群により記述さ
れる。
Other numbers are also described by groups of pixels having the same area.

第2図に於て、認識処理部30は、文字、記号を1文字
ずつ識別するものである。
In FIG. 2, the recognition processing section 30 identifies characters and symbols one by one.

画像メモリの中で、r−を行の全てを走査し、次にB2
行の全てを走査する、というようなラスク順の走査を採
用しない。
In the image memory, r- is scanned through all rows, then B2
Do not use rask-order scanning that scans all rows.

そうではなくて、−文字分の画素群を一括して画像メモ
リから走査して、−文字分のデータをバッファレジスタ
8に一時収容し、これを認識する。
Instead, a group of pixels corresponding to -characters are collectively scanned from the image memory, data corresponding to -characters is temporarily stored in buffer register 8, and this is recognized.

すなわち、認識処理部30は、画像メモリから一文字分
のデータを取出す。
That is, the recognition processing unit 30 retrieves one character's worth of data from the image memory.

制御回路29は、認識処理部30の処理能力である(n
1xn)Iil素相当分のデータを読出し、バッファレ
ジスタ8へ格納する。バッファレジスタ8はmxn個の
レジスフである。この記憶内容と、予め分っている文字
、記号の画素値の分布とを比較して、その文字、記号が
何であるかを判断する。
The control circuit 29 has a processing capacity of the recognition processing section 30 (n
Data corresponding to 1xn)Iil element is read and stored in the buffer register 8. The buffer register 8 has mxn registers. This stored content is compared with the distribution of pixel values of characters and symbols known in advance to determine what the characters and symbols are.

しかし、(mxn)がひとつの文字、記号を表現てきる
寸法であるとしても、1文字データの取り出し方によっ
ては、文字が(mxn)の境界にかかることもある。
However, even if (mxn) is a dimension that can express one character or symbol, the character may overlap the boundary of (mxn) depending on how one character data is extracted.

そこで(mxn)画素群という大きさを保ったまま、こ
れを右方へひとつずつ、或は2,3個ずつ動かしてゆき
、そのたびごとに識別処理を行なうことにする。
Therefore, while maintaining the size of the (mxn) pixel group, we will move it to the right one by one, or by two or three, and perform identification processing each time.

このような−文字分の画素群(in X n )を、こ
こでは識別窓という事にする。
Such a pixel group (in X n ) corresponding to - characters is herein referred to as an identification window.

識別窓を右方へ1画素分又は複数画素分ずつ右方へずら
してゆき、横方向に並ぶ文字を識別する。
The identification window is shifted to the right by one pixel or a plurality of pixels to identify characters arranged in the horizontal direction.

この後、識別窓を下方へ移動させ、さらに右方へ1画素
分又(す複数画素分ずつ右方へずらしてゆき、横力向;
こ並ぶ文字を識別する。以下同じ動作を繰返す。
After this, the identification window is moved downward, and then shifted to the right by one pixel (or several pixels) in the lateral force direction;
Identify the letters that line up. Repeat the same action below.

より具体的に説明する。This will be explained more specifically.

第3図に於て、51行についてB1〜Bnまでのn個の
データ、B2行についてB1〜Bnまでのn個のデータ
、・・・・、L、m行について81〜Bnまてのn個の
データを、画像メモリ28から読出してバッファレジス
タ8に格納する。つまり、B1〜BnとL1〜Lmとに
よって定義される識別窓のデータがバッファレジスタ8
に入る。
In Figure 3, n pieces of data from B1 to Bn for row 51, n pieces of data from B1 to Bn for row B2, ..., n from 81 to Bn for row m. data is read from the image memory 28 and stored in the buffer register 8. That is, the data of the identification window defined by B1 to Bn and L1 to Lm is stored in the buffer register 8.
to go into.

識別処理回路12ては、予め(m′Xn)画素に於て、
文字、記号の特徴テークが記憶されている。
In the identification processing circuit 12, in advance, (m'Xn) pixels,
Characteristics of characters and symbols are memorized.

これを参照して、入力されたデータの特徴と比較し、一
致、不一致を調へる。入力されたテークが、参照用デー
タのどれかと一致すれば、入力データがその文字又は記
号を表わしている、という事になる。
Referring to this, it compares it with the characteristics of the input data and determines whether there is a match or a mismatch. If the input take matches any of the reference data, it means that the input data represents that character or symbol.

バッファレジスタ8に格納されたデータから、文字、記
号を識別する文字認識の原理は上に述べたごとくである
。これは、例えば特公昭59−6418号などでも採用
され公知の方法である。
The principle of character recognition for identifying characters and symbols from the data stored in the buffer register 8 is as described above. This is a well-known method that has been adopted, for example, in Japanese Patent Publication No. 59-6418.

次に、識別窓を右方へひとつすらす。Next, slide the identification window one step to the right.

すなわち、L1列〜Lm列について、(B1+1)列か
ら(Bn+1)列までの(mxn)画素群のデータを、
画像メモリ28から、バッファレジスタ8へ転送する。
That is, for columns L1 to Lm, data of (mxn) pixel groups from column (B1+1) to column (Bn+1) is
The image is transferred from the image memory 28 to the buffer register 8.

そして、識別処理回路12で、再び予め記憶された文字
、記号と比較する。
Then, the identification processing circuit 12 again compares the characters and symbols with previously stored characters and symbols.

さらに、識別窓を右方へひとつずらす。Furthermore, shift the identification window one position to the right.

すなわち、B1列−Lm列について、(Bt+2)列か
ら(Bn+2)列までの(mxn)画素群のデータを画
像メモリ28から、バッファレジスタ8へ転送する。
That is, for the B1 column to the Lm column, data of (m×n) pixel groups from the (Bt+2) column to the (Bn+2) column are transferred from the image memory 28 to the buffer register 8.

そして、識別処理回路で先述と同様の操作を繰返す。Then, the same operation as described above is repeated in the identification processing circuit.

以下同様にして、識別窓を右方へずらしてゆく。Thereafter, in the same manner, the identification window is shifted to the right.

すなわち、L1〜Lm行jこつき、89列まで繰返すの
である。
That is, the process is repeated for rows L1 to Lm and column 89.

このような走査により、横1行分の文字、記号の認識が
行われる。
Through such scanning, characters and symbols for one horizontal line are recognized.

ここでは、右方へ1画素分ずつ(mxn)の識別窓を動
かす事としたが、2〜3画素ずつとしてもよい。
Here, the identification window is moved to the right by one pixel (mxn), but it may be moved by two or three pixels.

こうして、横1行の文字、記号の認識が終了すると、識
別窓へ下方へずらす。
In this way, when the recognition of characters and symbols in one horizontal line is completed, the characters and symbols are shifted downward to the identification window.

これは、1文字分の高さの程度下方へずらせばよい。This can be done by shifting the height of one character downward.

たとえばm行というのが、文字の高さの約2倍程度の拡
がりを持つとすれば、m/2行、下方へ識別窓をずらす
。すなわち、Lm/ 2〜3Lm/2  のm行につい
て、 BI列〜B2列の(mxn)個のデータを、バッ
ファレジスタ8へ転送し、識別処理回路12て識別を行
なう。
For example, if m lines are approximately twice the height of the characters, the identification window is shifted downward by m/2 lines. That is, for m rows Lm/2 to 3Lm/2, (mxn) data in columns BI to B2 are transferred to the buffer register 8, and identified by the identification processing circuit 12.

次にLm/2〜3 Lm/2のm行について、(B1+
■)列〜(B2+1) 列のデータをバッファレジスタ
8、識別処理回路12で識別する。
Next, for m rows of Lm/2 to 3 Lm/2, (B1+
(2) Column to (B2+1) Column data is identified by the buffer register 8 and identification processing circuit 12.

以下同様の操作を繰返す。Repeat the same operation below.

識別処理の回数について述べる。The number of identification processes will be described.

横方向ζこ識別窓を1画素ずつずらすとすれば、(q−
n+1)回の処理が横1行について必要である。縦方向
についてはPがm/2の倍数であるとして、2P/m回
の処理が縦1回分について必要である。
If we shift the horizontal ζ identification window one pixel at a time, (q-
n+1) times of processing are required for one horizontal row. Assuming that P is a multiple of m/2 in the vertical direction, 2P/m processes are required for one vertical process.

従って、識別処理の回数は 2P(q−n+1) 回である。Therefore, the number of identification processes is 2P(q-n+1) It is times.

以上の処理によって、センサ26の視野の中に含まれる
文字、記号を全て読取る事ができる。
Through the above processing, all characters and symbols included in the field of view of the sensor 26 can be read.

殴)従来技術の問題点 従来の手動文字読取装置には次のような欠点がある。Punishment) Problems with conventional technology Conventional manual character reading devices have the following drawbacks.

スキャナを値札に轟てる動作を考える。Think about the action of shaking the scanner at the price tag.

スキャナを値札に轟てて、文字読取りを行うべき時間は
短い。スキャナを値札に当てていない時間の方が長い。
The amount of time it takes to scan the price tag and read the text is short. I spend more time not touching the price tag with the scanner.

スキャナを机上から値札へ、あるいは値札から机上へ動
かしている時間や、単に、次の読取りまでスキャナを机
上に置いている時間が長いのである。このような時間は
、認識処理を行う必要がない。
There is a lot of time spent moving the scanner from the desk to the price tag, or from the price tag to the desk, or simply leaving the scanner on the desk between readings. There is no need to perform recognition processing during this time.

このような期間には、認識処理を止めてしまうのが望ま
しい。そうすれば消費電力が節約できる。
During such a period, it is desirable to stop the recognition process. This will save power consumption.

さらに値札の文字行がスキャナのセンサの視野内に完全
に入った場合にのみ認識を行うようにすれば、不完全な
認識結果を得る心配もない。
Furthermore, if recognition is performed only when the character line of the price tag is completely within the field of view of the scanner sensor, there is no need to worry about obtaining incomplete recognition results.

このようIこ、連続的に認識動作を行うのではなく、必
要な時のみ、文字認識するようにできれば、電力、信頼
性の点で優れたものになる。
If it were possible to recognize characters only when necessary, instead of performing recognition operations continuously, it would be superior in terms of power and reliability.

さらに、第4図に示すように、複数行にわたって文字が
書かれた値札の上を、スキャナを持って矢印に示すよう
に、縦方向に滑らせて各行を認識する場合がある。
Furthermore, as shown in FIG. 4, each line may be recognized by holding a scanner and sliding it vertically over a price tag with characters written across multiple lines as shown by the arrows.

このような場合、横方向に見て読取るへき文字列が存在
する場合と、存在しない場合がある。これが時間的に交
代する。
In such a case, there may or may not be a blank character string to be read when viewed horizontally. This changes over time.

文字列が存在する部分を文字領域といい、存在しない部
分を空白領域という。
The part where a character string exists is called a character area, and the part where a character string does not exist is called a blank area.

第2図のものは、スキャナを値札に当てかったまましば
らく静止しており、この間に、全視野に含まれる文字、
記号を読取る。
In the case of Figure 2, the scanner remains stationary for a while while touching the price tag, and during this time, the characters included in the entire field of view,
Read the symbol.

第2図の回路構成では、このように、縦方向に並べた文
字列を読取ることは難しいし、たとえできるとしても、
長い時間がかかる。空白領域についても、文字領域に於
けるのと、同じ動作を行なうからである。
With the circuit configuration shown in Figure 2, it is difficult to read character strings arranged vertically like this, and even if it were possible,
It takes a long time. This is because the same operation is performed for blank areas as for character areas.

そこで、スキャナ自体に、文字領域と空白領域とを弁別
できる機能を備える事が望ましい。
Therefore, it is desirable that the scanner itself be equipped with a function that can distinguish between character areas and blank areas.

視野内に、文字の書かれた行の有無を検出する手段につ
いて考えてみる。つまり視野内に文字領域が存在するか
しないのかを検出する手段について考える。
Let us consider a means for detecting the presence or absence of a line of written characters within the visual field. In other words, we will consider a means for detecting whether a character area exists or does not exist within the visual field.

第5図(a)は視野内に文字がある場合の例を示す。FIG. 5(a) shows an example where there are characters within the visual field.

視野の大きさは、行方向(横方向)が320画素、列方
向(縦方向)が60画素である。
The size of the field of view is 320 pixels in the row direction (horizontal direction) and 60 pixels in the column direction (vertical direction).

原稿紙面上で、画像ピッチは行、列方向とも0.19m
mであり、視野の広さは60.8 mm X 11.4
 rrrmである。
On the manuscript paper, the image pitch is 0.19m in both row and column directions.
m, and the field of view is 60.8 mm x 11.4
It is rrrm.

第5図ialに於て、画素の四辺に細線を引くことによ
り、画素を示した。文字は上辺に少しあり、下方に明瞭
なものが並んでいる。
In FIG. 5ial, pixels are indicated by drawing thin lines on the four sides of the pixels. There are a few letters at the top, and some clear letters are lined up at the bottom.

中間部は文字が存在しない。つまり、白画素たけである
。文字は横方向に並んでいる事が分っている。文字は黒
画素の集合である。
There are no characters in the middle. In other words, there are only white pixels. We know that the letters are arranged horizontally. A character is a collection of black pixels.

そこで、横方向(行方向)に黒画素が存在するか、しな
いかを調べることにより、文字の存在、非存在を弁別で
きる。
Therefore, by checking whether there are black pixels in the horizontal direction (line direction), it is possible to discriminate whether a character exists or not.

しかし、文字は、ある程度の長さ行方向に並んでいるの
で、行方向の全領域で黒画素の存在を調べる必要はない
However, since the characters are lined up in the row direction for a certain length, it is not necessary to check the entire area in the row direction for the presence of black pixels.

そこで、行方向の画素の一部をとり、この行方向の画素
W個のうち、少なくともひとつが黒画素である行と、黒
画素が全くない行とを弁別する。
Therefore, a part of the pixels in the row direction is taken, and among the W pixels in the row direction, a row in which at least one is a black pixel and a row in which there is no black pixel are discriminated.

このように、各行に於て、黒画素の存否を検出するため
に取られたW個の画素よりなる試験範囲を「横OR範囲
」と本発明者は呼んでいる。
In this manner, the test range consisting of W pixels taken to detect the presence or absence of black pixels in each row is called the "horizontal OR range" by the present inventor.

「横」と限定づけているのは、横方向の画素行について
黒画素の存否を検出するからである。
The reason why it is limited to "horizontal" is that the presence or absence of black pixels is detected for pixel rows in the horizontal direction.

「OR」というのは、OR演算を行なうからである。横
方向に並ぶW個の画素について、ひとっでも黒画素であ
れば、その出力を「1」とし、白画素ばかりであればそ
の出力をrOJとする。これはOR演算に他ならない。
"OR" is used because it performs an OR operation. If at least one of W pixels arranged in the horizontal direction is black, its output is set to "1", and if all pixels are white, its output is set to rOJ. This is nothing but an OR operation.

以後、横OR範囲内の1行の画素群について、ひとって
も黒画素があるか?又は全く無いかを判定する演算を、
商単に、「横OR演算」ということもある。
After that, for each row of pixels within the horizontal OR range, is there any black pixel? Or, the operation to determine whether there is none at all,
In commercial terms, it is sometimes referred to as a "horizontal OR operation."

ひとつの例として、320画素の行方向画素の内、中心
から前後50画素よりなる100画素を横OR範囲とす
る。すなわちW=100である、原稿紙面上では、横方
向に19mmである。
As an example, among the 320 pixels in the row direction, 100 pixels consisting of 50 pixels before and after the center are set as the horizontal OR range. That is, on the document surface where W=100, it is 19 mm in the horizontal direction.

視野は縦に60画素分の広がりがある。従って、この例
で、横OR範囲は100 X 60画素からなる中央の
矩形領域である。
The field of view extends 60 pixels vertically. Therefore, in this example, the horizontal OR range is a central rectangular area consisting of 100 x 60 pixels.

この領域の前後110画素、110画素分は横OR範囲
に入らない。
The 110 pixels before and after this area and the 110 pixels do not fall within the horizontal OR range.

もしも、文字がセンサ視野に於て、横OR範囲に入らな
ければ、その文字は読取れない事になる。
If a character does not fall within the horizontal OR range in the sensor field of view, the character cannot be read.

スキャナを持って操作する人が、文字列の中心と、スキ
ャナの中心とを合わせるように値札などへスキャナを当
てかうように注意する必要がある。文字列が110画素
分より長ければ、文字がスキャナの窓内に入っていれば
十分だという事になる。
The person holding and operating the scanner must be careful to place the scanner on a price tag, etc., so that the center of the character string and the center of the scanner are aligned. If the character string is longer than 110 pixels, it is sufficient that the characters fit within the scanner window.

文字のある部分では、OR演算の結果が1である行が縦
に連続する。第5図fclに示すように、縦に連続した
OR演算の結果1となる行の長さをlとする。ここでは
上辺に11の長さの黒画素行さ、下辺近くに12の長さ
の黒画素行とがある。これは文字列の存在に対応してい
る。
In a certain part of characters, lines in which the result of the OR operation is 1 are continuous vertically. As shown in FIG. 5 fcl, the length of a line in which the result of vertically consecutive OR operations is 1 is assumed to be l. Here, there is a black pixel row with a length of 11 on the top side, and a black pixel row with a length of 12 near the bottom side. This corresponds to the presence of strings.

黒画素行の集合の高さlは、文字の高さくこ対応してい
る。という事が、容易に分る。
The height l of the set of black pixel rows corresponds to the height of the character. That is easily understood.

Jl 、 f2の長さが、文字の高さとして妥当な値で
あれば、視野内に文字がある、といえる。
If the lengths of Jl and f2 are appropriate values for the height of a character, it can be said that the character is within the visual field.

高さlは、しかし、文字の高さと常に等しいわけてはな
い。スキャナが文字に対して頌いている時、lは大きく
なる。スキャナの行方向さ文字行の配列方向とが平行で
あればlは文字の高さにほぼ等しくなり、最小値を取る
The height l, however, is not always equal to the height of the characters. When the scanner is paying attention to the characters, l becomes large. If the line direction of the scanner is parallel to the direction in which the character lines are arranged, l will be approximately equal to the height of the character and will take the minimum value.

11、22などが文字高さとして妥当な値かどうかを判
断しなければならない。
It is necessary to judge whether 11, 22, etc. are appropriate values for the character height.

文字高さとして妥当な最小値は、第6図f1)に示すよ
うに、文字行が視野内で水平になっている場合である。
A reasonable minimum value for the character height is when the character line is horizontal within the visual field, as shown in Fig. 6 f1).

文字高さとして妥当な最大値は、第6図ib)に示すよ
うに、文字行が、許容しうる最大傾きで視野内にある場
合である。
A reasonable maximum value for the character height is when the character line is within the field of view at the maximum allowable slope, as shown in Figure 6 ib).

文字と視野の行方向が一致する場合、文字高さが2.4
fiであるので、lも約2.4m+nとなる。
If the line direction of the text and field of view match, the text height is 2.4
Since fi, l is also approximately 2.4m+n.

文字と視野の最大傾きは8度であるが、19 tran
の横OR範囲で、2.4期高さの文字行が8度傾いてい
ると、lは約5.9fiとなる。
The maximum inclination of characters and field of view is 8 degrees, but 19 tran
If a character line with a height of 2.4 is tilted by 8 degrees in the horizontal OR range of , l will be approximately 5.9 fi.

そうすると、lとして妥当な高さは2.4澗〜5.9B
という事(どなる。画素数にして、12〜31画素であ
る。
Then, the appropriate height for l is 2.4 cm to 5.9 B.
That's 12 to 31 pixels.

しかし、値札といっても種類がある。どのような値札に
対しても読取りが可能でなければならない。これは横O
R範囲の決定に於て重大な問題を生じる。
However, there are different types of price tags. It must be possible to read any price tag. This is horizontal O
This poses a serious problem in determining the R range.

第7図により値札の例を説明する。An example of a price tag will be explained with reference to FIG.

JISB9551のpos用値札を例にとる。Take JISB9551 POS price tags as an example.

pos 41号とPO3IQ号の値札を例示する。The price tags of POS No. 41 and PO3IQ are illustrated.

第7図1alはPO541号値札を示す。横70mm。FIG. 7 la shows the PO541 price tag. Width 70mm.

縦35随ある。中間高さに長い数字よりなる行がある。There are 35 vertical lines. There is a row of long numbers at mid-height.

下方に右へ偏よった数字の行がある。右へ偏よっており
、中央部にない、という事が問題である。
At the bottom there is a row of numbers that are skewed to the right. The problem is that it is biased to the right and not in the center.

右下方の数字の存在、非存在も検比しなければならない
。このため、横OR範囲は30.4mの拡がりがなくて
はならない。第7図1alに於て、横線を付した部分が
IJOR範囲である。画素数にして160画素である。
The existence or non-existence of the numbers at the bottom right must also be compared. Therefore, the lateral OR range must have an extension of 30.4 m. In FIG. 7 1al, the horizontally lined portion is the IJOR range. The number of pixels is 160.

これは第6図で例示した1981100画素より、60
%広くなっている。
This is 60 pixels from the 1981100 pixels illustrated in Figure 6.
% wider.

これだけ広い横OR範囲であれば、第7図ic)に示す
ように、pos41号の右下の数字も横OR範囲に入り
うるようになる。
With such a wide horizontal OR range, the lower right number of pos 41 can also fall within the horizontal OR range, as shown in Figure 7 ic).

第7図1alはpos10号の値札である。横32鰭、
縦25酎である。スキャナを押し尚てると、第7図1a
lのようになる。値札の・福が32M、横OR範囲の幅
が30.4wである。
Figure 7 1al is the price tag of POS No. 10. 32 fins horizontally,
It is 25 pieces of sake. When the scanner is pushed back, Figure 7 1a
It becomes like l. The fortune on the price tag is 32M, and the width of the horizontal OR range is 30.4W.

注意してスキャナを押しあてれば、第7図(e+のよう
に、横OR範囲が値札からはみ出す、という事はない。
If you press the scanner carefully, the horizontal OR range will not extend beyond the price tag as shown in Figure 7 (e+).

しかし、このようにするのは難しい事である。1.6m
+nの余裕しかないからである。
However, doing so is difficult. 1.6m
This is because there is only a margin of +n.

横OR範囲が値札からはみ出ると、値札の背景が横OR
範囲に入る。背景は白地であるとは限らない。このため
、背景に黒い部分があったりすると、値札の中では白地
である部分であっても、これは黒画素を含む行であると
判定してしまう事になる。これは誤動作の原因となる。
If the horizontal OR range extends beyond the price tag, the background of the price tag will become horizontal OR.
fall within range. The background is not necessarily white. Therefore, if there is a black part in the background, even if the part of the price tag is white, this will be determined to be a line containing black pixels. This causes malfunction.

つまり、横OR範囲が値札からはみ出てはいけない。In other words, the horizontal OR range must not exceed the price tag.

値札が小さい場合、余裕が少ないので、操作者が全稈、
注意しており、技巧;ども長けていないと、このように
すること(ま難しい。
If the price tag is small, there is little margin, so the operator can
It's difficult to do something like this unless you're careful and skilled.

スーパーマーケットのレジにいる従業員に、このような
熟練を期待するのは無理であるし、このように取扱いが
難しいのでは、光学読取装置を使用する利益がない。
It is unreasonable to expect such skill from supermarket cashier employees, and there is no benefit to using optical reading devices if they are difficult to handle.

国)本発明の目的 本発明は、このような従来の手持ち弐光学文字読取装置
の欠点を克服するものである。
OBJECTS OF THE INVENTION The present invention overcomes the drawbacks of conventional hand-held optical character reading devices.

大きい値札であっても、小さい値札であっても、文字の
書いである行を検出てきる実用的に優れた光学文字読取
装置を提供する事が本発明の第1の目的である。
A first object of the present invention is to provide a practically excellent optical character reading device that can detect lines of written characters on both large and small price tags.

文字のある行と、文字のない行とを的確に弁別する事に
より、文字読取りの正確さを向上させる事のできる光学
文字読取装置を提供する事が本発明の第2の目的である
A second object of the present invention is to provide an optical character reading device that can improve the accuracy of character reading by accurately distinguishing between lines with characters and lines without characters.

文字のない行を的確に弁別し、不要な文字認識処理を停
止し、省電力化を図る事のできる光学文字読取装置を提
供する事が本発明の第3の目的である。
A third object of the present invention is to provide an optical character reading device that can accurately discriminate lines without characters, stop unnecessary character recognition processing, and save power.

オ)発明の構成 本発明は、複数の横ORi范囲を採用する。複数の横O
R範囲を使って、従来と同じように文字行を検出する。
E) Structure of the Invention The present invention employs a plurality of lateral ORi ranges. multiple horizontal O's
The R range is used to detect character lines in the same way as before.

横方向に、実効的に拡がった横OR範囲であるから、横
に広い、文字記載部がいずれかに偏った値札であっても
、文字行を検出できる。
Since the horizontal OR range is effectively expanded in the horizontal direction, character lines can be detected even if the price tag is wide horizontally and the character writing area is biased to either side.

また、横方向に独立な複数の横OR範囲があるので、こ
れらの結果を参照して、値札外の背景と、値札内の文字
とを区別する事ができるようになる。
Furthermore, since there are a plurality of horizontal OR ranges that are independent in the horizontal direction, it becomes possible to distinguish between the background outside the price tag and the characters inside the price tag by referring to these results.

第1図によって本発明の詳細な説明する。The present invention will be explained in detail with reference to FIG.

画像メモリ28にイメージセンサ26からの画像を取り
込むまでは、従来の方式と同一である。
The process up to capturing the image from the image sensor 26 into the image memory 28 is the same as the conventional method.

スキャナ21は手に持って操作する。すなわち、文字記
号を記載した用紙23に、スキャナ21前方の開口窓部
を押し当てて、文字記号を入力する。
The scanner 21 is held and operated in the hand. That is, the user presses the opening window in front of the scanner 21 against the paper 23 on which the characters and symbols are written, and inputs the characters and symbols.

光源24は、前方の用紙23を照明するものである。用
紙23からの光はし〕/ズ系25に入り、用紙23の像
をセンサ26の上に結像する。
The light source 24 illuminates the paper 23 in front. The light from the paper 23 enters a beam system 25 and forms an image of the paper 23 on a sensor 26.

イメージセンサ26は縦横に多数のセンサ単位を有する
二次元イメージセンサである。それぞれのセンサ単位は
、光量に応じた電気信号を発生する。センサ単位ごとの
信号は最小の画像情報単位となる。つまり、これが画素
情報という事になる。
The image sensor 26 is a two-dimensional image sensor having a large number of sensor units vertically and horizontally. Each sensor unit generates an electrical signal depending on the amount of light. The signal for each sensor unit is the smallest image information unit. In other words, this is pixel information.

センサ単位ごとの光電変換信号は、制御二値化回路2γ
により、0と1のいずれかに2値化される。
The photoelectric conversion signal for each sensor unit is sent to the control binarization circuit 2γ.
It is binarized into either 0 or 1.

白画素は0に、黒画素は1に対応づけられる。A white pixel is associated with 0, and a black pixel is associated with 1.

そして、画像メモリ28は、イメージセンサの全視野内
に於ける、各画素ごとの明暗値(0,1)を記憶する。
The image memory 28 stores brightness values (0, 1) for each pixel within the entire field of view of the image sensor.

以上の構成は、従来のものと異ならない。The above configuration is no different from the conventional one.

本発明に於ては、単一ではなく複数の横OR範囲を設け
る。これは2つでも3つでも或はそれ以上でもよい。
In the present invention, a plurality of horizontal OR ranges are provided instead of a single one. This may be two, three, or more.

複数の横OR回路1.1’、・・・・・・が横OR範囲
ごとに設けられる。
A plurality of horizontal OR circuits 1.1', . . . are provided for each horizontal OR range.

横OR回路というのは、横OR範囲に含まれる画素につ
いて、横方向の行について、黒画素がひとっでもあれば
、演算結果を1″とし、白画素ばかりてあれば演算結果
を“0″とする装置である。
A horizontal OR circuit means that for pixels included in the horizontal OR range, if there is even one black pixel in a horizontal row, the calculation result is set to 1", and if there are only white pixels, the calculation result is set to "0". This is a device that does this.

黒画素がひとってもある行を文字行という。A line with at least one black pixel is called a character line.

これは、第5図ic)によって既に説明した。11゜!
!2は黒画素をひとっでも含む行、つまり文字行の縦方
向の長さを表わしている。これは文字の高さにほぼ等し
い。
This has already been explained by FIG. 5 ic). 11°!
! 2 represents the vertical length of a line containing at least one black pixel, that is, a character line. This is approximately equal to the height of the letters.

横OR演算結果が1であっても、これが文字によって1
になっているとは限らない。既に述べたように、横、O
R演算が1になる長さl について、文字であるための
妥当な範囲というものがある。
Even if the horizontal OR operation result is 1, this can be changed to 1 depending on the character.
It doesn't necessarily mean that it is. As already mentioned, horizontal, O
For the length l at which the R operation is 1, there is a valid range for it to be a character.

また、黒画素を含む行の位置についても、これが文字に
起因する黒画素であるためには、妥当な範囲というもの
がある。
Furthermore, regarding the position of a line containing a black pixel, there is a valid range in order for this to be a black pixel caused by a character.

これらを判別する必要がある。このため、黒位置・長さ
検出部2.2’、・・・・・・が横OR回路1.1’。
It is necessary to distinguish these. For this reason, the black position/length detection sections 2.2', . . . constitute the horizontal OR circuit 1.1'.

・・・・・ごとに設けられている。It is provided for each...

横OR回路1.V、・・・・・の出力を受け、窯出力の
長さく第5図fc)てはl!x 、 12)が文字高さ
として妥当か否かを判定するのが、黒位置・長さ検出部
2.2’、・・・・・の機能である。このような判定処
理のことを「文字行検出処理」と呼ぶ。
Horizontal OR circuit 1. In response to the output of V,..., the length of the kiln output is increased (Fig. 5 fc) and l! It is the function of the black position/length detection unit 2.2', . . . to determine whether or not x, 12) is appropriate as a character height. Such determination processing is called "character line detection processing."

文字位置選択・結合部3は、黒位置・長さ検出部2.2
’、・・・・・・から、窯出力の長さ11位置の情報及
び文字行検出結果の情報とを受け、選択或は結合により
、文字が存在する位置を判定する。
The character position selection/combining unit 3 includes a black position/length detection unit 2.2.
', . . ., the information on the length 11 positions of the kiln output and the information on the character line detection results are received, and the position where the character exists is determined by selection or combination.

文字が存在する位置についての情報は、制御回路29へ
送られる。
Information about the position where the character is present is sent to the control circuit 29.

制御回路29は、認識処理部30の起動、停止などの処
理を行なう。
The control circuit 29 performs processing such as starting and stopping the recognition processing section 30.

本発明は、複数の横OR範囲、複数の横OR回路を設け
る。ここに特徴がある。
The present invention provides multiple lateral OR ranges and multiple lateral OR circuits. Here are the characteristics.

横OR範囲の例を、第8図によって説明する。An example of the horizontal OR range will be explained with reference to FIG.

第8図ta)は2つの横OR範囲を持つ、イメージセン
サの原稿面上に対応させた視野を示している。
FIG. 8 ta) shows the field of view of the image sensor, which has two lateral OR ranges, and corresponds to the document surface.

横方向が60.8mmで縦方向が11.4 rrrmで
ある。画素の寸法は帆19 mm X 0−19 wn
であるから、320画素画素60画素の横に長い視野で
ある。
The horizontal direction is 60.8 mm and the vertical direction is 11.4 rrrm. Pixel dimensions are sail 19 mm x 0-19 wn
Therefore, it has a horizontally long field of view of 320 pixels and 60 pixels.

この点は第6図のものと同じである。This point is the same as that in FIG.

横方向の視野線60.8vnに対し、幅8.55 mm
の横ORi囲RL、R2を、9.5 wmの間隔を置い
て設ける。横線を付して、横OR範囲を示した。
Width 8.55 mm for lateral viewing line 60.8vn
Horizontal ORi surrounds RL and R2 are provided with an interval of 9.5 wm. A horizontal line is attached to indicate the horizontal OR range.

ひとつの横OR範囲は8.55 mm X 11.4 
rrrmである。
One horizontal OR range is 8.55 mm x 11.4
It is rrrm.

画数に直すと、45 X 60画素である。In terms of the number of strokes, it is 45 x 60 pixels.

ふたつ同等の横OR範囲があるので、実効的な幅は、2
6.6++on、140画素分ある事になる。
Since there are two equivalent horizontal OR ranges, the effective width is 2.
6.6++ on, there are 140 pixels.

ふたつあるという事は、実効的な幅を大きくする、とい
うところに意味があるのではなく、独立に存在する、と
いうことが重要なのである。
The meaning of having two is not that they increase the effective range, but that they exist independently.

第8図ib)は小さい値札であるPO510号の上に、
スキャナを当てた場合の説明図である。
Figure 8 ib) is above the small price tag, PO510.
It is an explanatory diagram when a scanner is applied.

横OR範囲R1,R2ともに値札の中へ容易に入ってし
まう。この場合、R1,R2ともに文字行を検出する事
ができる。値札外の背景の影響も受けない。
Both lateral OR ranges R1 and R2 easily enter the price tag. In this case, character lines can be detected in both R1 and R2. It is also unaffected by background factors outside of the price tag.

第8図+C)、 fd)の場合、R1は値札からはみ出
している。こういう事はありがちなことである。
In the case of Figure 8 +C), fd), R1 protrudes from the price tag. This kind of thing is common.

対は背景の影響を受ける。Pairs are influenced by the background.

しかし、R2は値札の中にとどまり、文字行を検出する
こさができる。R2はR1と独立である。
However, R2 remains inside the price tag and is capable of detecting lines of text. R2 is independent of R1.

いずれか一方がはみ出しても、他方が値札の中にとどま
れば、いずれかにより文字行を検出できるのである。
Even if one of them protrudes, as long as the other remains within the price tag, the character line can be detected using either one.

さらに、大きい値札であるPO540号に対しては、第
8図+e)のような配置となる。中央の長い数字に対し
ては問題がない。右下に偏よった数字桁が問題であった
。この文字(数字)行も右方の横OR範囲R2にかかる
。R2は文字行を検出できる。R1は文字行を検出しな
いが、R2により検出できる。
Furthermore, for PO540, which has a large price tag, the arrangement is as shown in Figure 8+e). There is no problem with long numbers in the middle. The problem was that the number digits were skewed towards the bottom right. This character (number) line also falls within the right horizontal OR range R2. R2 can detect character lines. R1 does not detect character lines, but R2 can.

文字位置選択結合部3に於ける、文字行位置の選択・た
し合わせの処理を第9図fat〜td)によって説明す
る。
The process of selecting and combining character line positions in the character position selection and combination unit 3 will be explained with reference to FIGS. 9 (fat to td).

各部分図に於て左にセンサの原稿面上の視野を示す。そ
の右にR1の横OR演算の結果及びR2の横OR演算の
結果を示す。白と書いたのは、横りk演算の結果が°゛
0″だということで、その行は白画素ばかりだという事
である。黒と書いたのは、横OR演算の結果が“1゛′
だという事である。その行には、少なくともひとつの黒
画素がある、という事である。
In each partial diagram, the field of view of the sensor on the document surface is shown on the left. On the right side, the results of the horizontal OR operation of R1 and the results of the horizontal OR operation of R2 are shown. The reason why I wrote "white" is that the result of the horizontal k operation is °゛0'', which means that there are only white pixels in that row.The reason why I wrote "black" is because the result of the horizontal OR operation is "1".゛′
That is. This means that there is at least one black pixel in that row.

右端には選択・たし合わせ処理の結果を示している。(
al〜fd)は次のようである。
The right end shows the results of selection and combination processing. (
al~fd) are as follows.

(a)  Rt 、 R2ともに文字行を検出しない。(a) Neither Rt nor R2 detects a character line.

結果は文字行無し、という事になる。The result is that there are no lines of text.

ib)  Rt 、 R2いずれか一方だけが文字行を
検出した。この場合は、その検出結果をそのまま文字範
囲として採用する。
ib) Only one of Rt and R2 detected a character line. In this case, the detection result is used as it is as the character range.

ここではR2の結果があるから、それをそのまま採用す
る。
Since we have the result of R2 here, we will use it as is.

[ci  Rx 、 R2ともに文字行を検出したが、
文字範囲に共通部分がない。
[ci Both Rx and R2 detected a character line, but
Character ranges have no intersection.

この場合、列方向に関して上方にある文字範囲を採用し
、下方のものを捨てる。
In this case, the upper range of characters in the column direction is adopted and the lower range is discarded.

ここでR1は、高さhlからh2まで黒画素のある行に
なっていて、R2は高さh3からh4までが黒画素のあ
る行になっている。h2(h3である。
Here, R1 is a row with black pixels from height hl to h2, and R2 is a row with black pixels from height h3 to h4. h2 (h3.

結果はR1のh1〜h2の分だけを採っている。R2の
分を捨てている。
The results are taken only for h1 to h2 of R1. The R2 portion is thrown away.

これは、「ABC・・・・・」の行を読まないという事
ではない。スキャナは上から下へ走査しているから、こ
の状態にある時(ま、」下方にある「123・・・・・
・」の行だけを読取るという事である。
This does not mean that the line "ABC..." is not read. The scanner scans from top to bottom, so when it's in this state (well, ``123'' at the bottom...
This means that only the lines with "・" are read.

スキャナがより下方へ移動した時、「123・・・・・
・」が消え、「ABC・・・・・・」の行が、視野内を
上ってくるので、この時に1−ABC・・・・・・・・
」の行を読取ることになる。
When the scanner moves further downward, "123...
・'' disappears and the line ``ABC......'' moves up within the field of view, so at this time 1-ABC......
” line will be read.

(d)  R1、R2ともに文字行を検出し、その文字
範囲に共通部分がある。
(d) Both R1 and R2 detect a character line, and there is a common part in the character range.

両方の和を視野全体の文字範囲とする。The sum of both is the character range of the entire visual field.

これは、文字が視野に対して傾いている、という事であ
る。傾いているが連続してhlからh4まで存在するの
であるから、両者の和を取ってh1〜h4まてを文字範
囲とするのである。
This means that the letters are tilted relative to the field of view. Although they are tilted, they exist continuously from hl to h4, so the sum of both is taken to define the character range from h1 to h4.

(C1ては、ふたつの文字行がある場合、より上方にあ
る文字範囲を優先的に選択している。
(For C1, when there are two character lines, the upper character range is selected preferentially.

しかし、使用形態によってはより下方にある文字範囲を
優先する構成や、列方向の中央に近い文字範囲を優先さ
せる構成もありうる。
However, depending on the usage pattern, there may be a configuration in which priority is given to a character range further down, or a configuration in which priority is given to a character range near the center in the column direction.

たきえば、文字の書かれた原稿にスキャナを当てかう時
、尚てる位置が多少上下してもよいように上下の幅を大
きくしたスキャナがある。
For example, some scanners have a large vertical width so that when placing the scanner on a document with text written on it, the position can be moved slightly up or down.

第10図ialにそのようなスキャナの略斜視図を示す
。これは、縦方向の開口部寸法が11.4 mではなく
20ranである。
FIG. 10 shows a schematic perspective view of such a scanner. This has a vertical opening dimension of 20ran instead of 11.4m.

操作者は文字行が視野の中心に(第10図(b)イ)な
るように、スキャナを原稿面へ当てかうが、視野が縦方
向に広いので、多少上下にずれても(第10図ib)ア
、つ)読取ることができる。
The operator places the scanner on the document surface so that the character line is in the center of the field of view (Fig. 10 (b) A), but since the field of view is wide in the vertical direction, even if it is slightly shifted vertically (Fig. ib) A) Can be read.

この場合、視野の列方向(縦方向)の中央に近い文字範
囲に、操作者が読取ろうと意図した文字行が存在する。
In this case, a character line that the operator intends to read exists in a character range near the center of the field of view in the column direction (vertical direction).

このようなスキャナを用いる場合、列方向の中央に近い
文字範囲を優先させるようにすればよい。
When using such a scanner, priority may be given to a character range near the center in the column direction.

力) その他の構成例 第1図の例では、複数の横OR範囲R1,R2・・・・
・・・・のひとつずつに、横OR回路1.1′、・・・
・・・と、黒位置・長さ検出部2.2′、・・・・・・
とを設けている。
Other configuration examples In the example shown in Fig. 1, multiple horizontal OR ranges R1, R2...
Horizontal OR circuit 1.1', . . .
. . . and black position/length detection section 2.2', . . .
and.

このようにすれば、同時に、複数の横OR範囲に於ける
横OR演算、黒位置・長さ検出が行えるから、処理に要
する時間が短い、という長所がある。
This has the advantage that the time required for processing is short because horizontal OR calculations and black position/length detection can be performed in a plurality of horizontal OR ranges at the same time.

しかし、反面、回路構成に重複がある。経済性という面
では望ましくないこともある。
However, on the other hand, there is some overlap in circuit configuration. This may not be desirable from an economic point of view.

第11図は本発明の他の構成例を示している。FIG. 11 shows another configuration example of the present invention.

横OR回路1はひとつしかない。これが複数の横OR範
囲についての横OR演算を遂次性なってゆく。
There is only one horizontal OR circuit 1. This makes horizontal OR calculations for a plurality of horizontal OR ranges sequential.

黒位置・長さ検出部2もひとつしかない。There is also only one black position/length detection section 2.

新しく横OR範囲制御回路4、メモリ6を設けている。A new horizontal OR range control circuit 4 and memory 6 are provided.

複数の横OR範囲の設定は、横OR範囲制御回路4の中
に予め行なわれている。
Setting of a plurality of lateral OR ranges is performed in advance in the lateral OR range control circuit 4.

横OR範囲制御回路4は、横OR範囲R1、R2。The lateral OR range control circuit 4 has lateral OR ranges R1 and R2.

・・・・・・について、次々に横OR演算を行なうよう
横OR回路1へ横OR範囲指令を発する。
A horizontal OR range command is issued to the horizontal OR circuit 1 to perform horizontal OR calculations one after another for .

それぞれの横OR演算の結果により、黒位置・長さ検出
部2で文字行の位置が求められる。これがメモリ6に蓄
えられる。
Based on the results of each horizontal OR operation, the position of the character line is determined by the black position/length detection section 2. This is stored in memory 6.

メモリは横OR範囲制御回路4からの横OR範囲指令に
同期してR1、R2、・・・・・・に対応する文字行範
囲を遂次記憶してゆく。
The memory sequentially stores character line ranges corresponding to R1, R2, . . . in synchronization with the horizontal OR range command from the horizontal OR range control circuit 4.

文字範囲選択結合部3は、全ての横OR範囲Rt 、 
R2、・・・・・・に関する文字行範囲をメモリ6から
得て、前述の選択或は和演算の規則に従って視野全体と
しての文字範囲を得る。
The character range selection combination unit 3 selects all horizontal OR ranges Rt,
The character line range for R2, .

文字行範囲選択結合部3以降の処理は第1図の例の場合
と同様である。
The processing after the character line range selection and combination section 3 is the same as in the example shown in FIG.

キ)その他の処理手項例 これまで述べた例では、画像メモリ28に、イメージセ
ンサ26の出力を全て格納してから横OR演算をしてい
る。
G) Other Examples of Processing Procedures In the examples described so far, all the outputs of the image sensor 26 are stored in the image memory 28, and then the horizontal OR operation is performed.

しかし、これに限ることはない。However, it is not limited to this.

イメージセンサ26の駆動及びその出力の二値化を行な
う二値化回路27からの出力信号を横OR回路1.1’
、・・・・・・にまず入力し、画像メモリ28に格納し
ながら、並行して文字行検出を行なう、という事も可能
である。
The output signal from the binarization circuit 27 that drives the image sensor 26 and binarizes its output is passed to the horizontal OR circuit 1.1'.
, . . . and then storing them in the image memory 28, it is also possible to detect character lines in parallel.

このようにすれば、文字行検出処理、画像メモリ入力の
時間が短縮される。
In this way, the time required for character line detection processing and image memory input is shortened.

(り)効 果 (1)大きい値札であっても、小さな値札であっても、
正確に文字行を検出できる。
(ri) Effects (1) Whether the price tag is large or small,
Character lines can be detected accurately.

(2)文字行の有無が検出てきるので、空白領域に対し
ては不要な認識処理を止める事ができる。これにより省
電力化を図る事ができる。
(2) Since the presence or absence of a character line is detected, unnecessary recognition processing can be stopped for blank areas. This makes it possible to save power.

(3)文字行が視野内に完全に入ったか否かを検出する
事により、不完全な認識結果を得る危険を減す事ができ
る。
(3) By detecting whether a character line has completely entered the field of view, the risk of obtaining incomplete recognition results can be reduced.

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

第1図は本発明の光学読取装置の構成図。 第2図は従来例にかかる光学読取装置の構成図。 第3図はイメージセンサによって画素に分割され二値化
された二値化データの説明図。縦横の格子は画素を表わ
す。 第4図は用紙の上から下へ、スキャナを走査する動作の
説明図。 第5図はイメージセンサの二次元的視汗の説明図。f1
+は画素をNI腺で表わしたもので、横が行方向、縦が
列方向である。fblは視野の中央に横OR範囲を設け
たちのを示す図。tc)はfatの例について、横OR
演算を行なった結果を示す図。 第6図はイメージセンサ視野に於ける値札の文字行の傾
きを示す例。fa)はイメージセンサの横方向と値札の
文字行とが平行である例を示す。fblは値札の文字行
がイメージセンサの視野に対して傾いている例を示す。 第7図は従来の光学読取装置の横OR範囲と値札の位置
関係例を説明する図。fa)は大きい値札の例であって
pos 41号を示している。fb)は従来のイメージ
センサ視野に於ける横OR範囲を示す図。fclはpo
s 41号の値札へ従来のイメージセンサ視野を重ねた
例を示す図。fdiは小さい値札の例であってPO51
Q号を示す。(e)はPO5IQ号の値札に従来のイメ
ージセンサ視野を重ねた例を示す図。 第8図は不発明に於て複数の横OR範囲を設けた場合の
、イメージセンサ視野と横Ok籟囲、値札の対応例を示
す説明図。fatは左右にひとつずつ8.55mm  
幅の横OR範囲を9.5 mm隔てて設けた視野の例。 fblは小さい値札であるpO310号の値札にイメー
ジセンサ視野を重ねた説明図。(C)(まPO5I Q
号の値札にイメージセンサ視野が傾いて重ねた時であっ
ても一方の横OR範囲に文字行が重なる例を示す説明図
。fd)はI’05IQ号の値札にイメージセンサ視野
を偏よった位置でかつ傾いて重ねた時であっても一方の
横OR範囲に文字行が重なる例を示す説明図。(elは
大きい値札であるPO541号にイメージセンサ視野を
重ねた時、値札の右下に偏よった文字も一方の横OR範
囲にかかる事を示す説明図。 第9図は文字位置選択結合部の動作規則を説明する図。 第10図は縦に長い視野を持つスキャナ説明図。 (a)はスキャナ略斜視図、(1))は値札の文字に対
しスキャナの開口窓部が傾いた例を示す図。 第11図は本発明の他の構成例図。 1.1′・・・・・・横OR回路 2.2′・・・・・・黒位置・長さ検出部3・・・・・
・文字位置選択結合部 4・・・・・横OR範囲制御回路 6・・・・・・メ モ リ 8・・・・・・バッファレジスタ 12・・・・・・識別処理回路 21・・・・・・スキャナ 22・・・・・手 23・・・・・・用   紙 24・・・・・光   源 25・・・・・・レンズ系 26・・・・・イメージセンサ 27・・・・・・制御二値化回路 28・・・・・・画像メモリ 29・・・・・・制御回路 30・・・・・・認識処理部 発  明  者         山  口  幹  
雄偉  藤  浩  二 特許出願人  住友電気工業株式会社 出願代理人 弁理士 川 1顆 茂 樹、1周面躯第 
      3       図 第   4   図 第   10   図 □60.浄l : 第     6     図 第     7     図 PO341号 ヒー70−一← posto号 一一32−−H 第       8 (a) +b) POS 10号 図                    (c)■
) RI     R2RI    R2結果9図 (C)
FIG. 1 is a configuration diagram of an optical reading device of the present invention. FIG. 2 is a configuration diagram of a conventional optical reading device. FIG. 3 is an explanatory diagram of binarized data divided into pixels and binarized by an image sensor. The vertical and horizontal grids represent pixels. FIG. 4 is an explanatory diagram of the operation of scanning the scanner from the top to the bottom of the paper. FIG. 5 is an explanatory diagram of two-dimensional visual perspiration of an image sensor. f1
+ represents a pixel in NI glands, where the horizontal direction is the row direction and the vertical direction is the column direction. fbl is a diagram showing a horizontal OR range set in the center of the field of view. tc) is the horizontal OR for the fat example.
The figure which shows the result of performing calculation. FIG. 6 is an example showing the inclination of the character lines of a price tag in the field of view of the image sensor. fa) shows an example in which the horizontal direction of the image sensor and the character line of the price tag are parallel. fbl shows an example in which the character line of the price tag is tilted with respect to the field of view of the image sensor. FIG. 7 is a diagram illustrating an example of the positional relationship between the horizontal OR range of a conventional optical reading device and a price tag. fa) is an example of a large price tag and shows POS No. 41. fb) is a diagram showing the horizontal OR range in the field of view of a conventional image sensor. fcl is po
A diagram showing an example in which a conventional image sensor field of view is superimposed on the price tag of S41. fdi is an example of a small price tag and PO51
Indicates No. Q. (e) is a diagram showing an example in which the field of view of a conventional image sensor is superimposed on the price tag of PO5IQ. FIG. 8 is an explanatory diagram showing an example of correspondence between the image sensor field of view, the horizontal OK range, and the price tag when a plurality of horizontal OR ranges are provided in the invention. fat is 8.55mm, one on the left and right
An example of a field of view in which the width of the lateral OR range is separated by 9.5 mm. fbl is an explanatory diagram in which the field of view of the image sensor is superimposed on the price tag of pO310, which is a small price tag. (C) (MaPO5I Q
An explanatory diagram illustrating an example in which a character line overlaps in one horizontal OR range even when the image sensor field of view is stacked on a number price tag with an inclined view. fd) is an explanatory diagram showing an example in which a character line overlaps in one horizontal OR range even when the image sensor field of view is tilted and stacked on the price tag of No. I'05IQ. (el is an explanatory diagram showing that when the image sensor field of view is superimposed on PO541, which is a large price tag, the characters that are biased toward the lower right of the price tag will also fall within one horizontal OR range. Figure 9 is the character position selection combination section Figure 10 is an explanatory diagram of a scanner with a vertically long field of view. (a) is a schematic perspective view of the scanner, and (1)) is an example where the opening window of the scanner is tilted with respect to the characters on the price tag. Diagram showing. FIG. 11 is a diagram showing another configuration example of the present invention. 1.1'... Horizontal OR circuit 2.2'... Black position/length detection section 3...
・Character position selection combination unit 4...Horizontal OR range control circuit 6...Memory 8...Buffer register 12...Identification processing circuit 21... ... Scanner 22 ... Hand 23 ... Paper 24 ... Light source 25 ... Lens system 26 ... Image sensor 27 ... ... Control binarization circuit 28 ... Image memory 29 ... Control circuit 30 ... Recognition processing section Inventor: Miki Yamaguchi
Yuui Hiroshi Fuji Patent applicant Sumitomo Electric Industries Co., Ltd. Application agent Patent attorney Shigeki Kawa, 1 circumferential structure
3 Figure 4 Figure 10 Figure □60. Purification: Figure 6 Figure 7 PO341 Hee 70-1 ← posto No. 11 32--H No. 8 (a) +b) POS No. 10 Figure (c) ■
) RI R2 RI R2 results Figure 9 (C)

Claims (5)

【特許請求の範囲】[Claims] (1)文字、記号などが横方向に並ぶように書かれた用
紙を照射する光源と、横行方向及び縦列方向に延びるよ
う面状に多数の光電変換素子を配列した文字、記号など
の複数分の視野を有するイメージセンサと、用紙からの
反射光を集光しイメージセンサの面上に用紙に記載され
た文字、記号などを結像するレンズ系と、イメージセン
サの視野に於て画素を規定する光電変換素子からの出力
をディジタル化処理によつて黒画素と白画素の二値化信
号に変換する二値化回路と、光源、イメージセンサ、レ
ンズ系、二値化回路を内蔵し手に持つて操作されるスキ
ャナと、二値化されたデータから文字、記号を識別する
識別処理回路とよりなる光学文字読取装置に於て、イメ
ージセンサの視野内に2本の縦列によつて区切られる複
数の横OR範囲R_1、R_2、・・・・・・を設定し
、該横OR範囲R_1、R_2、・・・・・・に於て、
行方向に並ぶ画素の中にひとつ以上の画素がある場合に
出力を1とし、黒画素が全くない場合に出力を0とする
横OR演算を行なうための横OR範囲R_1、R_2、
・・・・・・ごとに、或は全横OR範囲R_1、R_2
、・・・・・・に対して共通に設けられる横OR回路と
、横OR回路の出力を受けて縦方向に連続する横OR演
算の出力が1である列の長さが一定範囲内であれば文字
行があると判定するための横OR範囲R_1、R_2、
・・・・・・・・ごとに、或は全横OR範囲R_1、R
_2、・・・・・・・・に対して共通に設けられる黒位
置・長さ検出部とを有し、全ての横OR範囲R_1、R
_2、・・・・・・・・について文字行の存在、不存在
を検出し、文字行の存在する横OR範囲の文字行検出結
果を和演算し又は選択して、これによりイメージセンサ
視野内における用紙上の文字行の位置を決定し認識処理
を行なう事を特徴とする光学文字読取装置。
(1) A light source that illuminates a sheet of paper on which characters, symbols, etc. are written horizontally, and a light source that illuminates paper on which characters, symbols, etc. are written horizontally, and a plurality of characters, symbols, etc. that have a large number of photoelectric conversion elements arranged in a plane extending in the horizontal and vertical directions. An image sensor with a field of view of It has a built-in binarization circuit that converts the output from the photoelectric conversion element into a binary signal of black pixels and white pixels through digitization processing, a light source, an image sensor, a lens system, and a binarization circuit. In an optical character reading device, which consists of a scanner that is operated by holding it and an identification processing circuit that identifies characters and symbols from binarized data, the field of view of the image sensor is separated by two columns. A plurality of horizontal OR ranges R_1, R_2, ...... are set, and in the horizontal OR ranges R_1, R_2, ......
Horizontal OR ranges R_1, R_2, for performing a horizontal OR operation in which the output is 1 when there is one or more pixels among the pixels arranged in the row direction, and the output is 0 when there is no black pixel.
...... or the entire lateral OR range R_1, R_2
, ......, and the length of the column in which the output of the horizontal OR operation that is continuous in the vertical direction after receiving the output of the horizontal OR circuit is 1 is within a certain range. If so, horizontal OR range R_1, R_2, to determine that there is a character line.
・・・・・・・・・ or total lateral OR range R_1, R
It has a black position/length detecting section that is provided in common for _2,..., and all horizontal OR ranges R_1, R.
_2、・・・・・・Detects the presence or absence of a character line, and performs a sum operation or selects the character line detection results in the horizontal OR range where the character line exists, and thereby An optical character reading device characterized by determining the position of a character line on a sheet of paper and performing recognition processing.
(2)複数の横OR範囲の文字行検出結果が列方向に重
なり合う場合は、それらの文字行を和演算することによ
り視野全体としての文字範囲にする事を特徴とする特許
請求の範囲第(1)項記載の光学文字読取装置。
(2) When the character line detection results of a plurality of horizontal OR ranges overlap in the column direction, these character lines are summed to form a character range for the entire field of view. 1) The optical character reading device described in item 1).
(3)複数の横OR範囲の文字行検出結果が列方向に重
なり合わない場合は列方向に関して上方にある文字行検
出結果を視野全体としての文字範囲にする事を特徴とす
る特許請求の範囲第(1)項記載の光学文字読取装置。
(3) If the character line detection results in a plurality of horizontal OR ranges do not overlap in the column direction, the character line detection result located above in the column direction is set as the character range for the entire visual field. The optical character reading device according to item (1).
(4)複数の横OR範囲の文字行検出結果が列方向に重
なり合わない場合は、列方向に関して下方にある文字行
検出結果を視野全体としての文字範囲にする事を特徴と
する特許請求の範囲第(1)項記載の光学文字読取装置
(4) If the character line detection results in a plurality of horizontal OR ranges do not overlap in the column direction, the character line detection result located lower in the column direction is set as the character range for the entire visual field. The optical character reading device according to scope (1).
(5)複数の横OR範囲の文字行検出結果が列方向に重
なり合わない場合は列方向に関して中央に近い文字行検
出結果を視野全体としての文字範囲にする事を特徴とす
る特許請求の範囲第(1)項記載の光学文字読取装置。
(5) If the character line detection results in a plurality of horizontal OR ranges do not overlap in the column direction, the character line detection result closest to the center in the column direction is set as the character range for the entire visual field. The optical character reading device according to item (1).
JP61167338A 1986-07-11 1986-07-16 Optical character reader Expired - Lifetime JPH0760451B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP61167338A JPH0760451B2 (en) 1986-07-16 1986-07-16 Optical character reader
EP87109873A EP0258577B1 (en) 1986-07-11 1987-07-08 Optical character reader
DE8787109873T DE3783974T2 (en) 1986-07-11 1987-07-08 OPTICAL LETTER READER.
CA000541675A CA1283212C (en) 1986-07-11 1987-07-09 Optical character reader
US07/071,712 US4817185A (en) 1986-07-11 1987-07-09 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61167338A JPH0760451B2 (en) 1986-07-16 1986-07-16 Optical character reader

Publications (2)

Publication Number Publication Date
JPS6324382A true JPS6324382A (en) 1988-02-01
JPH0760451B2 JPH0760451B2 (en) 1995-06-28

Family

ID=15847881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61167338A Expired - Lifetime JPH0760451B2 (en) 1986-07-11 1986-07-16 Optical character reader

Country Status (1)

Country Link
JP (1) JPH0760451B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0245891A (en) * 1988-08-08 1990-02-15 Nippon Avionics Co Ltd Method for recognizing character

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55127675A (en) * 1979-03-23 1980-10-02 Ricoh Co Ltd Manual scanner
JPS5866174A (en) * 1981-10-15 1983-04-20 Ricoh Co Ltd Line extracting method
JPS58211280A (en) * 1982-06-02 1983-12-08 Sumitomo Electric Ind Ltd Character reader
JPS6025482A (en) * 1983-07-22 1985-02-08 Seiko Epson Corp Electronic stopwatch
JPS6189963U (en) * 1984-11-19 1986-06-11

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55127675A (en) * 1979-03-23 1980-10-02 Ricoh Co Ltd Manual scanner
JPS5866174A (en) * 1981-10-15 1983-04-20 Ricoh Co Ltd Line extracting method
JPS58211280A (en) * 1982-06-02 1983-12-08 Sumitomo Electric Ind Ltd Character reader
JPS6025482A (en) * 1983-07-22 1985-02-08 Seiko Epson Corp Electronic stopwatch
JPS6189963U (en) * 1984-11-19 1986-06-11

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0245891A (en) * 1988-08-08 1990-02-15 Nippon Avionics Co Ltd Method for recognizing character

Also Published As

Publication number Publication date
JPH0760451B2 (en) 1995-06-28

Similar Documents

Publication Publication Date Title
KR100271245B1 (en) Bar code reading apparatus
EP0258577B1 (en) Optical character reader
JP4574503B2 (en) Image processing apparatus, image processing method, and program
US4797940A (en) Optical character reader
JP5808211B2 (en) Bar code symbol reading apparatus and bar code symbol reading method
US5054104A (en) Optical character reader
JPS6324382A (en) Optical character reader
JPS6319090A (en) Optical character reader
JPS5841542B2 (en) optical character reader
JP2722434B2 (en) Optical character reader
JP2514660B2 (en) Optical character reader
JPH0469788A (en) Optical information reader
JPS62236085A (en) Optical reader
JP2567852B2 (en) Optical character reader
JPH0731716B2 (en) Optical character reader
JPH0469785A (en) Optical information reader
JPH0799531B2 (en) Optical character reader
JPH0799530B2 (en) Optical character reader
JP2573665B2 (en) Optical character reader
JP2881762B2 (en) Optical character reading device
JPS61237181A (en) Optical reader
JP2925300B2 (en) Optical character reader
JPS63211479A (en) Optical character reader
JPH01155490A (en) Optical character reader
JPS63168790A (en) Optical reader