JPS63223889A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPS63223889A
JPS63223889A JP62057762A JP5776287A JPS63223889A JP S63223889 A JPS63223889 A JP S63223889A JP 62057762 A JP62057762 A JP 62057762A JP 5776287 A JP5776287 A JP 5776287A JP S63223889 A JPS63223889 A JP S63223889A
Authority
JP
Japan
Prior art keywords
character
recognition result
recognition
digit
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62057762A
Other languages
Japanese (ja)
Inventor
Mikio Yamaguchi
幹雄 山口
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 JP62057762A priority Critical patent/JPS63223889A/en
Publication of JPS63223889A publication Critical patent/JPS63223889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To correctly read even a price tag which has variance in print quality among characters on a line by selecting recognition results based upon respective threshold values in character units. CONSTITUTION:An image picked up by an image sensor 6 is sent to a binarization circuit with a push-button switch 19 and images which are converted into binary data by using mutually different thresholds are stored in image memories 8-1-8-N. The binarization images based upon the respective threshold levels which are stored in the memories 8-1-8-N are processed in order by a respective-character recognition processing part, whose results are stored in recognition result buffers 17-1-17-N in order. When character recognition results and character information corresponding to the respective thresholds are stored in the buffers 17-1-17-N, a digit matching processing part 18 obtains a group of character recognition results corresponding to the same character and a recognition result selection part 21 selects and outputs a final recognition result in the group.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、光学読取装置、特に値札などの文字の書かれ
た行に手でスキャナを持って当てかうことで、その文字
を読み取る、手持ち式OCR(光学文字読取装置)に関
する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an optical reading device, particularly a hand-held device that reads characters on a price tag or the like by holding the scanner and touching the line where the characters are written. Regarding formula OCR (optical character reader).

〔従来の技術〕[Conventional technology]

スーパーマーケットや百貨店で単品毎の゛売りあげ情報
を収集して在庫管理を行うP OS (PointOf
 5ales)システムが普及している。このPOSシ
ステムに用いることのできるOCRとして、スキャナを
読み取だい用紙に当てかうだけでその視野の中の文字を
読み取ることのできる手持ち式の光学文字読取装置があ
る(例えば、特願昭60−79082号、特願昭61−
255777号)。
POS (Point Of) collects sales information for each item and manages inventory at supermarkets and department stores.
5ales) system is widespread. As an OCR that can be used in this POS system, there is a hand-held optical character reader that can read characters within its field of view simply by placing a scanner on a sheet of paper. No., special application 1986-
No. 255777).

第2図に手持ち式光学文字読取装置の構成を示す。FIG. 2 shows the configuration of a hand-held optical character reading device.

1はスキャナであり、手2で、用紙3に当てがい、押し
ボタンスイッチ19を押すことで用紙3に記載された文
字、記号等を読み取る。用紙3はたとえば、POSシス
テムで情報が記載された値札などである。4は光源、5
はレンズ系、6はイメージセンサ、7はイメージセンサ
の駆動回路である。第2図の光学文字読取装置では、種
々の印字品質の文字(太い文字や細い文字、濃い文字や
薄い文字)に対応するためイメージセンサの出力である
アナログ信号を白/黒の二値に二値化するときの閾値(
以下、単にスレンシュと書く)として2つ用意しである
。14と14′は互いに異なるスレッシュを持つ二値化
回路で、二値化された結果はそれぞれの二値化回路に対
応する画像メモリ8.8′に蓄えられる0画像メモリ8
.8′はイメージセンサ6の視野のほぼ全体の二値化デ
ータを格納する。第3図(a)はイメージセンサ6の二
値化回路14による二値化データの説明を示している。
Reference numeral 1 denotes a scanner, which reads characters, symbols, etc. written on the paper 3 by placing the hand 2 on the paper 3 and pressing a push button switch 19. The paper 3 is, for example, a price tag on which information is written in a POS system. 4 is a light source, 5
6 is a lens system, 6 is an image sensor, and 7 is a drive circuit for the image sensor. The optical character reading device shown in Figure 2 converts the analog signal output from the image sensor into binary values of white and black in order to handle characters of various printing qualities (thick characters, thin characters, dark characters, and light characters). Threshold value when converting to value (
There are two types available. 14 and 14' are binarization circuits with different thresholds, and the binarized results are stored in the image memories 8 and 8' corresponding to the respective binarization circuits.
.. 8' stores binarized data of almost the entire field of view of the image sensor 6. FIG. 3(a) shows an explanation of binarized data by the binarization circuit 14 of the image sensor 6.

横(X)Xll (Y)の大きさがpxq画素のイメー
ジセンサであり、視野のなかの文字を写し込んでいる。
It is an image sensor with horizontal (X) Xll (Y) pixels of pxq pixels, and captures characters within its field of view.

15はどちらのスレッシュによる画像を9〜13の各文
字認識部分で処理するか選択する回路で、スレッシュ切
換判定回路16の指示で画像メモリ8.8′のデータを
一桁切り出し回路9に送る。押しボタンスイッチ19を
押したときは、まず画像メモリ8が選択され、二値化回
路14で二値化された画像が認識される。
Reference numeral 15 denotes a circuit for selecting which threshold image is to be processed in each of the character recognition parts 9 to 13, and sends the data in the image memory 8.8' to the one-digit extraction circuit 9 in response to instructions from the threshold switching determination circuit 16. When the push button switch 19 is pressed, the image memory 8 is first selected, and the image binarized by the binarization circuit 14 is recognized.

文字、記号は文字識別回路13で識別されるが、文字識
別回路13は1文字ずつ識別するものであるので、画像
メモリ8からは1文字分のデータを取り出す必要がある
。−桁切り出し回路9は画面メモリ8から一文字切り出
し回路1)の処理能力であるmXq@素相当分相当分タ
の取り出し一桁メモリ10に格納する。−文字切り出し
回路1)は一桁メモリから文字識別回路13の処理能力
であるmXn画素相当分のデータを取り出し、−文字メ
モリ12に格納するものである。
Characters and symbols are identified by the character identification circuit 13, but since the character identification circuit 13 identifies each character, it is necessary to retrieve data for one character from the image memory 8. - The digit extraction circuit 9 takes out a ta corresponding to mXq@prime equivalent, which is the processing capacity of the single character extraction circuit 1), from the screen memory 8 and stores it in the single digit memory 10. The character extraction circuit 1) takes out data equivalent to mXn pixels, which is the processing capacity of the character identification circuit 13, from the single-digit memory and stores it in the character memory 12.

第3図(alにおいて、まず−桁切り出し回路9はX=
1からX=m、Y=1からy=q迄のデータを画面メモ
リ8から取り出し、−桁メモリ10に転送する(第3図
(bl))。−桁切り出し回路9は一桁メモリ10の内
容を見て文字像を含む範囲(この例ではY−1)からY
=1)+n−1)のn行分を一文字メモリ12に転送す
る(第3図(c、))。−文字メモリ12に文字が入っ
ているときは文字識別回路13により文字が認識される
。次にX=2からX=m+L Y=1からY−9迄のデ
ータ画面メモリ8から取り出し、−桁メモリ10に転送
する(第3図(bり)。そして文字像を含む範囲の画像
を一文字メモリ12に転送する。以下、同様にして画面
メモリ8から取り出す位置を順にずらして一桁メモリ1
0に転送し、文字像を含む画像を一文字メモリ12に転
送し、文字識別回路13で処理を行うことで一行分の認
識を行う。
In FIG. 3 (al), first the negative digit extraction circuit 9 is
The data from 1 to X=m and from Y=1 to y=q are taken out from the screen memory 8 and transferred to the negative digit memory 10 (FIG. 3 (bl)). - The digit extraction circuit 9 looks at the contents of the one-digit memory 10 and selects Y from the range including the character image (Y-1 in this example).
n lines of =1)+n-1) are transferred to the one-character memory 12 (FIG. 3(c)). - When a character is stored in the character memory 12, the character recognition circuit 13 recognizes the character. Next, the data from X=2 to X=m+L Y=1 to Y-9 is taken out from the screen memory 8 and transferred to the negative digit memory 10 (Fig. 3 (b)). It is transferred to the one-character memory 12.Then, in the same way, the position to be taken out from the screen memory 8 is shifted in order, and the one-character memory 1
0, the image including the character image is transferred to the one-character memory 12, and the character recognition circuit 13 processes it to recognize one line.

一桁メモリ10から一文字メモリ12に転送する範囲の
求め方を第4図に示す。先ず一桁メモリ10の各行に対
して横ORを求める。横ORとは横方向の一行に注目し
てその行に黒画素があれば1とし、黒画素がなければO
とする演算である。
FIG. 4 shows how to determine the range to be transferred from the one-digit memory 10 to the one-character memory 12. First, horizontal OR is calculated for each row of the one-digit memory 10. Horizontal OR is to focus on one row in the horizontal direction, and if there is a black pixel in that row, it is set as 1, and if there is no black pixel, it is set as O.
This is an operation where

いま、センサの黒出力を1とし、白出力をOとして表現
すると、横ORの結果とはすなわち一行の各画素の論理
和を取った結果にほかならない。
Now, if the black output of the sensor is expressed as 1 and the white output as O, then the result of horizontal OR is nothing but the result of taking the logical sum of each pixel in one row.

そこでこの演算を横ORと呼んでいる。そして、文字が
ある部分では第4図(b)に示すように、その範囲だけ
横ORの結果は黒となる。−桁メモリから一文字メモリ
に転送する範囲は、たとえばY=13から横ORが黒に
なったとすると、文字の上方の白を含めてY=1)から
n画素とする。
Therefore, this operation is called horizontal OR. Then, as shown in FIG. 4(b), in a part where there is a character, the result of horizontal OR is black for that range. For example, if the horizontal OR becomes black from Y=13, the range to be transferred from the -digit memory to the single character memory is n pixels from Y=1), including the white above the character.

以上の処理によって画像メモリ8の視野の中に含まれる
、文字、記号を読み取ることができる。
By the above processing, characters and symbols included in the field of view of the image memory 8 can be read.

読み取った結果はスレッシュ切換回路16に送られ、読
取結果が良ければ(リジェクトが含まれるなどの問題点
がなければ)そのまま、出力されるが、読取結果にリジ
ェクト(文字として認識出来なかったことを示す)が含
まれるときは、スレッシュ切換回路16はその読取結果
を出力せずに、スレッシュ選択回路15にスレッシュ切
換信号を出し、スレッシュ選択回路15は二値化回路1
4′で二値化した画像を画像メモリ8′から一部切り出
し回路9に送ることで、二値化回路14′で二値化され
た画像を認識させる。
The read result is sent to the threshold switching circuit 16, and if the read result is good (if there are no problems such as rejects), it is output as is. ), the threshold switching circuit 16 outputs a threshold switching signal to the threshold selection circuit 15 without outputting the read result, and the threshold selection circuit 15 outputs a threshold switching signal to the threshold selection circuit 15.
By sending the binarized image in step 4' from the image memory 8' to a partial cutout circuit 9, the binarized image is recognized in the binarization circuit 14'.

以上のように読取結果に応じて異なるスレッシュによる
二値化画像を適応的に選択することにより、幅広い印字
品質の値札を読み取ることができる。
As described above, by adaptively selecting binarized images with different thresholds depending on the reading results, price tags with a wide range of print quality can be read.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来技術による光学文字読取装置では、スレッシュの切
換は行単位であるため、行の中の一部の文字については
第1のスレッシュの認識結果を採用し、別の文字に付い
ては第2のスレッシュの認識結果を採用するということ
ができない、そのため、値札の印字品質によっては正し
い認識結果が得られないことがある。
In conventional optical character reading devices, thresholds are switched line by line, so the recognition results of the first threshold are used for some characters in a line, and the recognition results of the second threshold are used for other characters. It is not possible to adopt the recognition result of the threshold. Therefore, depending on the printing quality of the price tag, the correct recognition result may not be obtained.

第5図に例を示す。値札には「¥123456Jと書か
れており、¥、l、2.4.5.6の文字は第1のスレ
ッシュで読めるような印字品質で書かれており、3の文
字は第2のスレッシュでなければ読めないような印字品
質で書かれているとする。第1のスレッシュによる認識
結果を(a)に、第2のスレッシュによる認識結果を(
b)に示す。(a)では30文字は?で示されるように
リジェクト(読取不能)となっている。■)では3の文
字は正しく認識されているが、¥はリジェクトになり、
lは7に誤読されている0行の各文字別に観察すれば、
第1のスレッシュか第2のスレッシュで正しく認識され
ているが、従来技術の光学文字読取装置ではスレッシュ
の切換は行単位なので正しい認識結果は得られない。
An example is shown in FIG. The price tag says "¥123456J", and the characters ¥, l, and 2.4.5.6 are written with print quality that can be read on the first thread, and the character 3 is written on the second thread. Assume that the print quality is such that it cannot be read otherwise.The recognition result using the first threshold is shown in (a), and the recognition result using the second threshold is shown in (a).
Shown in b). (a) So what are the 30 characters? It is rejected (unreadable) as shown in . In ■), the character 3 is recognized correctly, but ¥ is rejected.
If we look at each character in line 0, where l is mispronounced as 7, we get
Correct recognition is achieved using either the first threshold or the second threshold, but in conventional optical character reading devices, the thresholds are switched on a line-by-line basis, so correct recognition results cannot be obtained.

本発明は行単位でのスレッシュの切(負に付随する問題
点を解決するために発明されたもので、文字単位で各ス
レッシュによる認識結果を選択することにより、行の中
の文字間で印字品質にばらつきのある値札でも正しく読
み取ることのできる光学文字読取装置を実現することを
目的としている。
This invention was invented to solve the problems associated with cutting (negative) thresholds on a line-by-line basis, and by selecting the recognition result of each threshold on a character-by-character basis, printing can be performed between characters in a line. The objective is to realize an optical character reading device that can correctly read price tags with varying quality.

(発明の構成〕 文字単位でスレッシュの切換を実現するためには、各ス
レッシュの認識結果を文字単位で行の先頭から順に突き
合わせて認識結果を選択すれば良いように思えるかも知
れないが、単純に突き合わせるだけでは文字の抜けがあ
った場合は正しく対応を取ることができない。そこで、
本発明においては、視野内の位置情報を用いて各スレン
シュ認識結果を文字ごとに対応させてから認識結果を選
択する構成になっている。
(Structure of the Invention) In order to switch the thresholds on a character-by-character basis, it may seem like it would be sufficient to select the recognition result by comparing the recognition results of each thresh on a character-by-character basis from the beginning of the line. If there is a missing character, it is not possible to take correct action just by matching the characters.
In the present invention, the recognition results are selected after the recognition results are associated with each character using positional information within the field of view.

第1図に本発明の構成例を示す。FIG. 1 shows an example of the configuration of the present invention.

符号1.2.3.4.5.6.7、ISは第2図で同符
号を付けた部分と同じ機能を持つ。14−1から14−
Nは相異なるスレンシュを持つN個(NはN≧2なる整
数)の二値化回路であり、8−1から8−Nまではそれ
ぞれ14−1から14−N回路の出力を記憶する画像メ
モリである。15はスレッシュ選択回路であり、スレッ
シュ切換回路16′の指示に従って、画像メモリ8−1
〜8−Hのどれかの内容を各文字認識部分20に送る。
1.2.3.4.5.6.7, IS has the same function as the part with the same symbol in FIG. 14-1 to 14-
N is an N number of binarization circuits (N is an integer such that N≧2) having different thresholds, and 8-1 to 8-N are images that store the outputs of circuits 14-1 to 14-N, respectively. It's memory. 15 is a threshold selection circuit, which selects the image memory 8-1 according to instructions from the threshold switching circuit 16'.
- 8-H is sent to each character recognition section 20.

各文字認識部分20は視野の大きさの二値化画像に含ま
れる各文字の認識を行い、文字の認識結果とその文字の
視野内の位置情報をスレッシュ切換回路16′におくる
。スレッシュ切換回路16′は二値化回路14−1から
14−Nにそれぞれ対応する認識結果バッファ17−1
から17−Nを選択して文字認識結果と文字位置情報を
送る。
Each character recognition section 20 recognizes each character included in the binarized image of the visual field size, and sends the character recognition result and the position information of the character within the visual field to the threshold switching circuit 16'. The threshold switching circuit 16' is a recognition result buffer 17-1 corresponding to each of the binarization circuits 14-1 to 14-N.
17-N is selected and the character recognition result and character position information are sent.

認識結果バッファ17−1から17−Nは文字認識結果
と文字位置情報を記憶する。18は桁合わせ処理部であ
り、認識結果バッファ17−1から17−Nに蓄えられ
ている文字位置情報を基にして、同一の文字に対応する
認識結果を取り出して一組にし、認識結果選択部21に
送る。認識結果選択部21は各スレッシュに対応して得
られた文字確認認識結果から優先順位に従って最終的な
認識結果を選択し、出力する。
Recognition result buffers 17-1 to 17-N store character recognition results and character position information. 18 is a digit alignment processing unit, which extracts recognition results corresponding to the same character and combines them into a set based on the character position information stored in the recognition result buffers 17-1 to 17-N, and selects recognition results. Send to Department 21. The recognition result selection unit 21 selects and outputs the final recognition result according to the priority order from the character confirmation recognition results obtained corresponding to each threshold.

認識結果バッファに至るまでの二値化回路や画像メモリ
などの数・構成は第1図の他にも、可能であり、実施例
で説明する。
The number and configuration of the binarization circuit, image memory, etc. up to the recognition result buffer can be other than those shown in FIG. 1, and will be explained in the examples.

(作用〕 押しボタンスイッチ19を押すことでイメージセンサ6
の捉えた画像は二値化回路(14−1か・ら14−N)
に送られ、相異なるスレッシュにより二値化された画像
が画像メモリ8−1から8−Nに蓄えられる。各文字認
識部分20は視野の中の各文字を認識して文字認識結果
と文字位置情報を出力するが、スレッシュ切換回路16
′とスレッシュ選択回路15によって、画像メモリ8−
1から8−Nに蓄えられている各スレッシュによる二値
化画像は各文字認識部分20で順に処理され、その結果
は認識結果バッファ17−1から17−Nに順に蓄えら
れる。認識結果バッファ17−1から17−Nに各スレ
ッシュに対応する文字認識結果と文字位置情報が蓄えら
れたら、桁合わせ処理部18において、文字位置情報を
基にして文字認識結果を突き合わせることにより、同一
文字に対する文字認識結果の組を得る0桁合わせ処理部
18で得られた文字認識結果の組の中からvQ識結果選
択部21により最終的な認識結果が選ばれて出力される
(Operation) By pressing the push button switch 19, the image sensor 6
The image captured by the binarization circuit (14-1 to 14-N)
The images that have been binarized using different thresholds are stored in image memories 8-1 to 8-N. Each character recognition section 20 recognizes each character in the field of view and outputs character recognition results and character position information, but the threshold switching circuit 16
' and the threshold selection circuit 15, the image memory 8-
The binarized images of each threshold stored in numbers 1 to 8-N are sequentially processed in each character recognition section 20, and the results are sequentially stored in recognition result buffers 17-1 to 17-N. Once the character recognition results and character position information corresponding to each thread are stored in the recognition result buffers 17-1 to 17-N, the digit alignment processing unit 18 compares the character recognition results based on the character position information. , the final recognition result is selected and outputted by the vQ recognition result selection unit 21 from among the set of character recognition results obtained by the zero digit alignment processing unit 18 which obtains a set of character recognition results for the same character.

〔実施例〕〔Example〕

第1図において、各文字認識部分20はIMiした存在
しないが、各スレッシュに対応してN個の各文字認識手
段を設け、i(1≦i≦N)番目の各文字認識手段をi
番目の画像メモリとi番目の認識結果バッファの間に設
ければ、スレッシュ選択回路15とスレッシュ切換回路
16′を省く構成を取ることができる。
In FIG. 1, although each character recognition part 20 does not exist in IMi, N character recognition means are provided corresponding to each thread, and each i (1≦i≦N) character recognition means is
If it is provided between the th image memory and the i-th recognition result buffer, a configuration can be obtained in which the threshold selection circuit 15 and the threshold switching circuit 16' are omitted.

第1回の構成においては、イメージセンサの捉えた同じ
画像に対する異なる二値化結果が同時に画像メモリに蓄
えられることにより、桁合わせ処理部18において文字
位置情報を用いての各スレッシュの文字認識結果を突き
合わせることが可能となっている。各文字認識部分が視
野の中の全文字を認識する時間が極めて短ければ、逐次
的に異なるスレッシュの二値化画像を得て各文字認識部
分が認識を行う構成でも、桁合わせ処理が可能である。
In the first configuration, different binarization results for the same image captured by the image sensor are simultaneously stored in the image memory, so that the digit alignment processing unit 18 generates character recognition results for each thread using character position information. It is now possible to match the If the time required for each character recognition part to recognize all characters in the field of view is extremely short, digit alignment processing can be performed even with a configuration in which each character recognition part sequentially obtains binarized images of different thresholds and performs recognition. be.

なぜなら、スキャナ1を用紙3に対して相対的に移動さ
せる場合でも、極めて短い時間内なら、視野の中の文字
の位置は殆ど変化しないためである。さらに、逐次的に
異なるスレッシュの二値化画像を得る為には、二値化回
路全体を複数用意する必要はなく、スレッシュを二値化
回路の外から変更することによって一つの二値化回路で
異なるスレッシュの二値化画像を得ることもできる。
This is because even when the scanner 1 is moved relative to the paper 3, the position of the characters within the field of view hardly changes within an extremely short period of time. Furthermore, in order to obtain binarized images with different thresholds sequentially, it is not necessary to prepare multiple entire binarization circuits, but by changing the threshold from outside the binarization circuit, one binarization circuit can be used. It is also possible to obtain binarized images with different thresholds.

視野に複数打入るときは、文字位置情報として文字のX
座標とY座標を用いる必要があるが、視野に一行しか入
らない場合は文字のX座標だけを文字位置情報として用
いることができる。
When multiple characters enter the field of view, the character X is used as character position information.
Although it is necessary to use the coordinate and Y coordinate, if only one line is included in the field of view, only the X coordinate of the character can be used as character position information.

第6図のマイクロプロセッサを用いた本発明の実施例で
、二値化回路14はマイクロプロセッサからのスレッシ
ュ切換信号により、スレッシュを切り換えることができ
る0画像メモリ8は一個だけであり、本実施例では、各
文字認識部分20が相異なるスレッシュの二値化画像を
逐次認識する構成になっている。9から13は各文字認
識部分20の実施例であり、第2図の同符号の部分と同
じ構成である。ただし、−桁切り出し回路9は画面メモ
リ8から一部メモリに画像を切り出したときの座標の文
字のX座標aとして、マイクロプロセッサにおくる0本
実施例においては、認識結果バッファはマイクロプロセ
ッサに接続されたRAM26に設けられた記憶領域で、
桁合わせ処理部18と認識結果選択部21の機能はマイ
クロプロセッサに接続されたROM25に記憶されたソ
フトウェアによって実現されている。
In the embodiment of the present invention using the microprocessor shown in FIG. 6, the binarization circuit 14 has only one 0 image memory 8 whose threshold can be switched by the threshold switching signal from the microprocessor. Here, each character recognition section 20 is configured to sequentially recognize binarized images of different thresholds. Numerals 9 to 13 are examples of each character recognition portion 20, and have the same configuration as the portions with the same reference numerals in FIG. However, the - digit extraction circuit 9 sends the image to the microprocessor as the X coordinate a of the character at the coordinate when the image is extracted from the screen memory 8 to a partial memory. In this embodiment, the recognition result buffer is connected to the microprocessor. In the storage area provided in the RAM 26,
The functions of the digit alignment processing section 18 and the recognition result selection section 21 are realized by software stored in a ROM 25 connected to a microprocessor.

3種類のスレッシュを用いるときのマイクロプロセッサ
の実行すべき処理のフローチャートを第7図から第9図
に示す。
Flowcharts of the processing to be executed by the microprocessor when three types of thresholds are used are shown in FIGS. 7 to 9.

一部切り出し回路Sから送られる文字のX座標aと文字
識別回路から送られる文字認識結果は、マイクロプロセ
ッサ24が受けとった後、RAM26に格納させる0時
間をずらしてスレッシュを変えて3回にわたってとりこ
まれた画像データに対して、各々得られたX座標aと識
別結果は一旦RAM26に格納された後、1桁ずつマイ
クロプロセッサ24に読み出され、ROM25に格納さ
れている同一桁であると認められる文字のX座標aの範
囲を満たしているかどうかが検査され、同一桁であると
認められる認識結果が1つないし複数選ばれる。同一桁
であると認められる認識結果が1つの場合はその認識結
果をその桁の文字の認識結果として出力し、複数の場合
はスレッシュに対してあらかじめ定めである優先順位に
従って、最終的な認識結果を選択して出力する。
After the microprocessor 24 receives the X-coordinate a of the character sent from the partial extraction circuit S and the character recognition result sent from the character recognition circuit, they are stored in the RAM 26 three times by shifting the zero time and changing the threshold. For each image data obtained, the obtained X coordinate a and identification result are once stored in the RAM 26, and then read out one digit at a time by the microprocessor 24, which recognizes that the digits are the same as those stored in the ROM 25. It is checked whether the range of the X coordinate a of the character is satisfied or not, and one or more recognition results that are recognized as having the same digit are selected. If there is only one recognition result that is recognized as the same digit, that recognition result is output as the recognition result of the character of that digit, and if there are multiple recognition results, the final recognition result is output according to the predetermined priority order for the threshold. Select and output.

マイクロプロセッサを用いた場合の桁合わせ処理につい
て、第8図においてより詳細に示す。いま第1スレツシ
ユの認識結果が■文字有り、i番目(i=1.2.・・
・・・・I)の文字とそのX座標をそれぞれcJll、
xjllと表し、第2スレツシユの認識結果がJ文字有
り、j番目(j=1.2.・・・・・・J)の文字とそ
のX座標をそれぞれC冑、X冑と表し、第3スレツシユ
の認識結果かに文字有り、k番目、(k=1.2.・・
・・・・K)の文字とそのX座標をそれぞれck′s;
 x、;i7と表すとし、また、桁合わせ後の第1スレ
ンシエ、第2スレツシユ、第3スレツシユの認識結果の
文字を171% yp: y731(ffi=1.2.
・・・・・・L)と表す。
The digit alignment process using a microprocessor is shown in more detail in FIG. Now, the recognition result of the first thread is ■Character present, i-th (i=1.2...
・・・・I) characters and their X coordinates are respectively cJll,
xjll, the recognition result of the second thread is that there is a J character, the jth character (j = 1.2...J) and its X coordinate are respectively represented as C and X, and the third There is a character in the thread recognition result, kth, (k=1.2...
...K) character and its X coordinate as ck's;
x, ;i7, and the characters of the recognition results of the first thread, second thread, and third thread after digit alignment are 171% yp: y731 (ffi=1.2.
......L).

第8図のフローチャートにおいて、■、■で初期化を行
っている。■は各画面の認識結果の最後を予め特別の大
きな値Mによって示しておく処理である0Mは認識処理
の結果得られうるX座標の最大値に、後述するWの値を
加えたものより大きな値にしておく、■は注目している
、i番目の文字の座標x j I E j番目の文字の
座標X、+z4 k番目の文字の座標x 、+3t7)
最小値x、、7を求める処理である。■ではXei*が
■の処理で用いたMと同じになっていれば、すべての認
識結果の桁合わせ処理が終わったと判断している。■に
おいて用いているWは同じ桁であると判断できるX座標
の幅を示している。いま、x:”Sx□7+Wが成り立
てば、x r ”l!l<現在処理を進めている桁に入
る場合の処理、すなわち■、■の処理を行う、■は1番
目の文字C1)を桁合わせ後の認識結果y、+1)とし
て登録する処理である。■はc 、++の処理が終わっ
たのでiの値を増やす処理である。
In the flowchart of FIG. 8, initialization is performed in steps 1 and 2. ■ is a process that indicates the end of the recognition result of each screen in advance with a special large value M. 0M is larger than the maximum value of the X coordinate that can be obtained as a result of the recognition process plus the value of W, which will be described later. (■ is the value we are looking at, the coordinates of the i-th character x j I E the coordinates of the j-th character X, +z4 the coordinates of the k-th character x, +3t7)
This is the process of finding the minimum value x, , 7. In case (2), if Xei* is the same as M used in the process (2), it is determined that the digit alignment process for all recognition results has been completed. W used in (2) indicates the width of the X coordinate that can be determined to be the same digit. Now, if x:”Sx□7+W holds, then x r”l! The processing when l<enters the digit currently being processed, that is, the processing of ■, ■ is performed.■ is the processing of registering the first character C1) as the recognition result y, +1) after digit alignment. (2) is a process of increasing the value of i since the processes of c and ++ have been completed.

一方x 、+ 1が現在処理を進めている桁に入らない
場合は■の処理を行う。■の処理は該当する桁に認識結
果が得られていないという記号#をy、(1に登録する
処理である。■〜■と同様にして、第2画面目の認識結
果に対する処理■〜@、第3画面目の認識結果に対する
処理■〜[相]を行う、■は桁合わせ後の認識結果の文
字数2を1増やす処理である。[相]は最終的に得られ
た文字数(i!、−1)を変数りとして登録しておく処
理である。
On the other hand, if x, +1 does not fit into the digit currently being processed, process (■) is performed. The process of ■ is the process of registering the symbol # that indicates that no recognition result has been obtained in the corresponding digit as y, (1. In the same way as ■ ~ ■, the process for the recognition result on the second screen ■ ~ @ , Perform processing ■ to [phase] for the recognition result on the third screen. ■ is a process that increases the number of characters 2 in the recognition result after digit alignment by 1. [phase] is the final number of characters obtained (i! , -1) are registered as variables.

なお、第7図では「全スレッシュの認識結果の桁合わせ
」すべて終わった後に「全スレッシュの認識結果からの
最終的な認識結果を選択する」フローチャートを示して
いるが、1桁ごとに桁合わせと選択処理を行う処理も可
能である。
In addition, although Figure 7 shows a flowchart of "selecting the final recognition result from the recognition results of all threads" after "digit matching of recognition results of all threads" is completed, digit matching is performed for each digit. It is also possible to perform selection processing.

第9図は桁合わせの第1スレツシユ、第2スレツシユ、
第3スレツシユの認識結果の文字yノ1ミy;1. y
I”(ffi=1.2.・・・・・・L)の中から優先
順位に従って最終的な認識結果r、を選択する処理のフ
ローチャートである。優先順位はyrよりもy;″を、
yIまりもy;lを優先するようになっている。すなわ
ち、y;+!7.<リジェクトでも文字欠けでもなけれ
ば(y ;1力(文字として認識されていれば)71)
%、、とし、y : l b<リジェクトが文字欠けで
かつy、1)%<リジェクトでも文字欠けでもなければ
yIをr、とし1.;1)とy : R′h<リジェク
トか文字欠けでかつy ; 3b<文字欠けでもリジェ
クトi” モfl Lt レバ)’ : ”をr、(!
:L1. ;1琶y;1′トy、+21のいずれもがリ
ジェクトか文字欠けのときはりジェツトを「、にする。
Figure 9 shows the first and second threads for digit alignment.
Character y no 1 mi y of the recognition result of the third thread; 1. y
This is a flowchart of the process of selecting the final recognition result r from among I'' (ffi=1.2...L) according to the priority order.
Priority is given to yI Marimo y;l. That is, y;+! 7. <If it is not rejected or missing characters (y; 1 force (if recognized as a character) 71)
%, , y: l b<reject is missing characters and y, 1) If %<rejects are neither missing characters, set yI to r1. ;1) and y: R′h<reject or missing characters and y; 3b<reject even if there are missing characters i”Mofl Lt lever)': ” to r, (!
:L1. ;1琶y;1' If both toy and +21 are rejected or missing characters, set the jet to ``.

第9図の■■■においては、y ; I b<文字欠け
(第8図の桁合わせ処理において#の記号を設定したと
き)でもリジェクト(?記号で示される)でもないとき
は、7t’J”r、にする、yシカ(文字欠けかりジェ
ツトのときは■に進む、■■■においてはy : Z 
S<文字欠けでもリジェクトでもないときはy;zを「
、にしている、yI力(文字欠けかりジェツトのときは
■に進む、■■■においてはyPゝが文字欠けでもリジ
ェクトでもないときはyPをr2にしているs ye”
が文字欠けかりジェツトのときは[相]に進む。[相]
に進むのは結局y 、+J!: y a”七y、+3の
いずれもがリジェクトか文字欠けのときであり、このと
きはりジェツトをrlにしている。
In ■■■ of Fig. 9, if y; I b< character missing (when the # symbol is set in the digit alignment process of Fig. 8) or reject (indicated by the ? symbol), then 7t'J"r, change to y deer (if the letter is missing, go to ■, in ■■■, y: Z
S<If the character is not missing or rejected, change y;z to “
, yI force (if it is a jet with a missing character, proceed to
If is a missing character jet, proceed to [phase]. [phase]
After all, proceed to y, +J! : y a''7y, +3 are both rejected or missing characters, and in this case, the jet is set to rl.

第6図の実施例においては、各スレッシュに対応して1
回ずつ得られた認識結果の中から最終的な認識結果を得
られているが、一つのスレッシュに対して複数回認識を
行い、その認識結果の多数決を取った多数決の中から最
終的な認識結果を得る実施例も可能である。
In the embodiment of FIG. 6, one
The final recognition result is obtained from the recognition results obtained each time, but the final recognition result is obtained from the majority vote of the recognition results obtained by performing recognition multiple times for one threshold. Embodiments of results are also possible.

(発明の効果) 本発明によって文字単位で各スレッシュによる認識結果
を選択することができる光学文字読取装置が実現できる
。文字単位で異なるスレッシュによる認識結果を選択で
きるので、種六の印字品質の文字が混在した値札でも支
障無く読み取ることができ、光学文字読取装置の性能向
上に寄与することが大きい。
(Effects of the Invention) According to the present invention, it is possible to realize an optical character reading device that can select recognition results based on each threshold on a character-by-character basis. Since recognition results based on different thresholds can be selected for each character, even price tags containing a mixture of characters of grade 6 print quality can be read without any problem, greatly contributing to improving the performance of optical character reading devices.

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

第1図は、本発明の構成例のブロック図、第2図は、従
来技術による光学文字読取装置のブロック図、第3図の
(a)図から(C)図は、−文字切り出し処理までの説
明図、第4図の(a)図から(C)図は、−文字切り出
し方法の説明図、第5図は文字ごとに印字品質にばらつ
きのある行の読取例の説明図、第6図は、本発明の実施
例のブロック図、第7図から第9図は、マイクロプロセ
ッサの処理のフローチャートである。 1・・・・・・スキャナ、2・・・・・・手、3・・・
・・・用紙、4・・・・・・照明光源、5・・・・・・
レンズ系、6・・・・・・イメージセンサ、7・・・・
・・駆動回路、 8.8’、8−1.8−2.8−N・・・・・・画像メ
モリ、 S・・・・・・−桁切り出し回路、10・・・・・・−
桁メモリ、1)・・・・・・−文字切り出し回路、12
・・・・・・−文字メモリ、13・・・・・・文字識別
回路、14.14’、14−1.14−2.14−N・
・・・・・二値化回路、 15・・・・・・スレッシュ選択回路、16・・・・・
・スレッシュ切換判定回路、16′・・・・・・スレッ
シュ切換回路、17−1.17−2.17−N・・・・
・・認識結果バッファ 18・・・・・・桁合わせ処理部、 19・・・・・・押しボタンスイッチ、20・・・・・
・各文字認識部分、 21・・・・・・認識結果選択部、 24・・・・・・マイクロプロセッサ、25・・・・・
・ROM。 26・・・・・・RAM。
Fig. 1 is a block diagram of a configuration example of the present invention, Fig. 2 is a block diagram of an optical character reading device according to the prior art, and Figs. Figures (a) to (C) in Figure 4 are illustrations of - character extraction method; Figure 5 is an illustration of an example of reading a line with variations in print quality for each character; The figure is a block diagram of an embodiment of the present invention, and FIGS. 7 to 9 are flowcharts of microprocessor processing. 1...Scanner, 2...Hand, 3...
...Paper, 4...Illumination light source, 5...
Lens system, 6... Image sensor, 7...
...Drive circuit, 8.8', 8-1.8-2.8-N... Image memory, S...- Digit extraction circuit, 10...-
Digit memory, 1)...Character extraction circuit, 12
......Character memory, 13...Character identification circuit, 14.14', 14-1.14-2.14-N.
... Binarization circuit, 15 ... Threshold selection circuit, 16 ...
・Threshold switching judgment circuit, 16'...Threshold switching circuit, 17-1.17-2.17-N...
... Recognition result buffer 18 ... Digit alignment processing section, 19 ... Push button switch, 20 ...
・Each character recognition part, 21...Recognition result selection part, 24...Microprocessor, 25...
・ROM. 26...RAM.

Claims (2)

【特許請求の範囲】[Claims] (1)文字・記号等を光学的に読み取る光学文字読取装
置において、 光電変換素子を面状に配列して成り、一行または複数行
分の文字・記号等を視野に納めるイメージセンサと、 このイメージセンサから出力されるアナログ信号を文字
領域と背景領域とに対応する二値化信号に相異なる複数
の閾値で二値化する二値化回路と、二値化信号から視野
の中の各文字・記号等の位置を検出する文字位置検出手
段と、 二値化信号から視野の中の各文字・記号等を認識する識
別処理手段と、 各閾値に対応して得られた文字位置と認識結果を記憶す
る認識結果バッファと、 各閾値による二値化信号に対応してえられた文字・記号
等の認識結果をその文字位置を基に1文字または1記号
ごとに桁合わせを行う桁合わせ処理部と、 前記桁合わせ処理部により並べられた各桁ごとの各閾値
の認識結果の中からあらかじめ定められた閾値の優先順
位にしたがって各桁ごとに一つの最終的な認識結果を選
択する認識結果選択部とを有することを特徴とする光学
文字読取装置。
(1) In an optical character reading device that optically reads characters, symbols, etc., there is an image sensor that is made up of photoelectric conversion elements arranged in a planar shape and that can capture one or more lines of characters, symbols, etc. in its field of view, and this image sensor. A binarization circuit that binarizes the analog signal output from the sensor into binarized signals corresponding to a character area and a background area using a plurality of different threshold values; A character position detection means for detecting the position of a symbol, etc., an identification processing means for recognizing each character, symbol, etc. in the visual field from a binary signal, and a character position and recognition result obtained corresponding to each threshold value. A recognition result buffer for storing, and a digit alignment processing unit that performs digit alignment for each character or symbol based on the character position of the recognition results of characters, symbols, etc. obtained in response to the binarized signal based on each threshold value. and recognition result selection for selecting one final recognition result for each digit according to a predetermined threshold priority order from among the recognition results of each threshold value for each digit arranged by the digit alignment processing unit. An optical character reading device comprising:
(2)特許請求の範囲第1項記載の光学文字読取装置に
おいて、 イメージセンサの視野が一行分の大きさであり、文字位
置検出手段が文字の横方向の位置(X座標)を検出する
手段であり、 桁合わせ処理部がX座標を基にして認識結果の桁合わせ
を行なうことを特徴とする光学文字読取装置。
(2) In the optical character reading device according to claim 1, the field of view of the image sensor is the size of one line, and the character position detection means is means for detecting the horizontal position (X coordinate) of the character. An optical character reading device characterized in that a digit alignment processing section performs digit alignment of recognition results based on the X coordinate.
JP62057762A 1987-03-12 1987-03-12 Optical character reader Pending JPS63223889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62057762A JPS63223889A (en) 1987-03-12 1987-03-12 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62057762A JPS63223889A (en) 1987-03-12 1987-03-12 Optical character reader

Publications (1)

Publication Number Publication Date
JPS63223889A true JPS63223889A (en) 1988-09-19

Family

ID=13064889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62057762A Pending JPS63223889A (en) 1987-03-12 1987-03-12 Optical character reader

Country Status (1)

Country Link
JP (1) JPS63223889A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54133034A (en) * 1978-04-07 1979-10-16 Mitsubishi Electric Corp Optical character read-in system
JPS58219682A (en) * 1982-06-14 1983-12-21 Fujitsu Ltd Read system of character picture information
JPS6043556A (en) * 1983-08-17 1985-03-08 株式会社クボタ Falling ridge roofing method
JPS61237181A (en) * 1985-04-12 1986-10-22 Sumitomo Electric Ind Ltd Optical reader

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54133034A (en) * 1978-04-07 1979-10-16 Mitsubishi Electric Corp Optical character read-in system
JPS58219682A (en) * 1982-06-14 1983-12-21 Fujitsu Ltd Read system of character picture information
JPS6043556A (en) * 1983-08-17 1985-03-08 株式会社クボタ Falling ridge roofing method
JPS61237181A (en) * 1985-04-12 1986-10-22 Sumitomo Electric Ind Ltd Optical reader

Similar Documents

Publication Publication Date Title
JP2553608B2 (en) Optical character reader
JPS62200488A (en) Optical character reader
US5054104A (en) Optical character reader
JPS63223889A (en) Optical character reader
US5059775A (en) Slip and method of and apparatus for automatic reading of the slip
JP2722434B2 (en) Optical character reader
JP2881762B2 (en) Optical character reading device
JPH01155490A (en) Optical character reader
JP2514660B2 (en) Optical character reader
JPH0221384A (en) Optical character reader
JP3245449B2 (en) Form reader
JPH0469785A (en) Optical information reader
JP2567852B2 (en) Optical character reader
JPH06111060A (en) Optical character reader
JPS60225983A (en) Reader of character
JPS63211480A (en) Optical character reader
JPS63211479A (en) Optical character reader
JPH0469787A (en) Optical information reader
JPH01199287A (en) Optical character reader
JPH0731716B2 (en) Optical character reader
TW320710B (en)
JPS6319090A (en) Optical character reader
JPS63111591A (en) Optical character reader
JPS63146188A (en) Optical character reader
JPS6324382A (en) Optical character reader