JP2722434B2 - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JP2722434B2
JP2722434B2 JP62011083A JP1108387A JP2722434B2 JP 2722434 B2 JP2722434 B2 JP 2722434B2 JP 62011083 A JP62011083 A JP 62011083A JP 1108387 A JP1108387 A JP 1108387A JP 2722434 B2 JP2722434 B2 JP 2722434B2
Authority
JP
Japan
Prior art keywords
character
digit
identification
memory
identification result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62011083A
Other languages
Japanese (ja)
Other versions
JPS63177284A (en
Inventor
幹雄 山口
広幸 宗像
一夫 藤脇
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 JP62011083A priority Critical patent/JP2722434B2/en
Publication of JPS63177284A publication Critical patent/JPS63177284A/en
Application granted granted Critical
Publication of JP2722434B2 publication Critical patent/JP2722434B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、光学読取装置、特に値札などの文字の書か
れた行に手でスキャナを持って当てがうことで、その文
字を読み取る、手持ち式OCR(光学文字読取装置)に関
する。 〔従来の技術〕 スーパーマーケットや百貨店で単品毎の売りあげ情報
を収集して在庫管理を行うPOS(Point Of Sales)シス
テムが普及している。このPOSシステムに用いることの
できるOCRとして、スキャナを読み取りたい用紙に当て
がうだけでその視野の中の文字を読み取ることのできる
手持ち式の光学読取装置がある(例えば、特願昭60−79
082号)。第2図に手持ち式光学文字読取装置の代表的
な構成を示す。 1はスキャナであり、手2で、用紙3に当てがい、押
しボタンスイッチ19を押すことで用紙3に記載された文
字、記号等を読み取る。用紙3はたとえば、POSシステ
ムで情報が記載された値札などである。4は光源、5は
レンズ系、6はイメージセンサである。7は駆動並びに
二値化回路であり、イメージセンサ6の出力信号である
アナログ信号を二値化した信号に変換し、文字読取装置
本体A内の画面メモリ8に送る。画面メモリ8はイメー
ジセンサ6の視野のほぼ全体の二値化データを格納す
る。第3図(a)にイメージセンサ6の二値化データの
説明を示している。横(X)×縦(Y)の大きさがp×
q画素のイメージセンサであり、視野のなかの文字を写
し込んでいる。 文字、記号は文字識別回路13で識別されるが、文字識
別回路13は1文字ずつ識別するものであるので、画面メ
モリ8からは1文字分のデータを取り出す必要がある。
一桁切り出し回路9は画面メモリ8から一文字切り出し
回路11の処理能力であるm×q画素相当分のデータを取
り出し一桁メモリ10に格納する。一文字切り出し回路11
は一桁メモリから文字識別回路13の処理能力であるm×
n画素相当分のデータを取り出し、一文字メモリ12に格
納するものである。 第3図(a)において、まず一桁切り出し回路9はX
=1からX=m、Y=1からY=q迄のデータを画面メ
モリ8から取り出し、一桁メモリ10に転送する(第3図
(b1))。一桁切り出し回路9は一桁メモリ10の内容を
見て文字像を含む範囲(この例ではY=11からY=11+
n−1)のn行分を一文字メモリ12に転送する(第3図
(c1))。一文字メモリ12に文字が入っているときは文
字識別回路13により文字が認識される。次にX=2から
X=m+1、Y=1からY=q迄のデータを画面メモリ
8から取り出し、一桁メモリ10に転送する(第3図
(b2))。そして文字像を含む範囲の画像を一文字メモ
リ12に転送する。以下、同様にして画面メモリ8に取り
出す位置を順にずらして一桁メモリ10に転送して、文字
像を含む画像を一文字メモリ12に転送し、文字識別回路
13で処理を行うことで一行分の認識を行う。 一桁メモリ10から一文字メモリ12に転送する範囲の求
め方を第4図に示す。先ず一桁メモリ10の各行に対して
横ORを求める。 横ORとは横方向の一行に注目してその行に黒画素があ
れば1とし、黒画素がなければ0とする演算である。い
まセンサの黒出力を1とし、白出力を0として表現する
と、横ORの結果とはすなわち一行の各画素の論理和を取
った結果にほかならない。そこでこの演算を横ORと呼ん
でいる。そして文字がある部分では第4図(b)に示す
ように、その範囲だけ横ORの結果は黒となる。一桁メモ
リから一文字メモリに転送する範囲は、たとえばY=13
から横ORが黒になったとすると、文字の上方の白を含め
てY=11からn画素とする。 以上の処理によって、センサ6の視野の中に含まれ
る、文字、記号を読み取ることができる。読み取られた
結果は、ホスト計算機B(POSレジスタなど)に送られ
て利用される。 〔発明が解決しようとする問題点〕 従来技術による光学文字読取装置では、識別結果に読
取り不良や読取り誤りが含まれることがしばしばあり、
信頼性よく識別結果を利用することができない。読取り
不良や読取り誤りを低減させるためには、同じ読取対象
に対して複数の識別結果を得て、それらの多数決をとる
方法がある。 しかしながら、従来技術による光学文字読取装置に、
単純に多数決処理をつけ加えるだけでは、読取り不良や
読取り誤りを十分に低減させることはできないことがわ
かった。 第5図、第6図を用いて、従来技術による光学文字読
取装置に、単純に多数決処理部をつけ加えた場合の問題
点を示す。 第5図は、同じ読取対象に対して、3つの識別結果を
得て、それらの多数決をとる場合の構成図である。スイ
ッチ19を押すことにより、イメージセンサ6でとらえら
れた用紙3に記載された文字の像が画面メモリ8に送ら
れ、一桁切り出し回路9、一桁メモリ10、一文字切り出
し回路11、一文字メモリ12、文字識別回路13の各部分を
経て、識別結果が得られるが、この処理は3回繰り返し
て行われる。そして、識別結果バッファ#114には第1
回目の識別結果が、識別結果バッファ部#215には、第
2回目の識別結果が、識別結果バッファ#316には、第
3回目の識別結果が入る。各バッファ#1〜314〜16す
べてに識別結果が設定されたら、多数決処理部17によっ
て多数決がとられ、その結果がホスト計算機Bに送られ
る。 第6図に多数決例を示す。第6図(a)は、用紙に記
載された文字行である。(b1)、(b2)、(b3)は、そ
れぞれ第1回、第2回、第3回目の識別結果を示す。
「?」はリジェクトを表す記号であり、その文字が読取
れなかったことを(読取不良)示している。(b4)は
(b1)、(b2)、(b3)の多数決結であり、(a)と同
じ文字行すなわち正解が得られている。(c1)、
(c2)、(c3)は別の識別結果例で、それぞれ第1回、
第2回、第3回目の識別結果を示している。(c1)は正
解が得られえているが、(c2)は「1」がぬけており、
(c3)は「2」がぬけている。(c4)は(c1)、
(c2)、(c3)の多数決結果であり、(b4)と違って正
解が得られていない。すなわち、第5図に示す多数決処
理構成では、文字のぬけがあった場合、正解が得られに
くいことを示している。 本発明は、以上の点に鑑みて、創案されたもので、文
字が欠けた場合でも、正解を求めうる多数決処理方法を
実現することにより、光学文字読取装置の読取性能を高
めることを目的としている。 〔問題点を解決するための手段〕 第1図に示すように、本発明の光学文字読取装置は、
同じ読取対象に対して3つの識別結果を得て、それらの
多数決をとる場合を示す。スイッチ19を押すことによ
り、イメージセンサ6でとらえられた用紙3に記載され
た文字の像が文字読取装置本体A内の画面メモリ8に送
られ、一桁切り出し回路9′、一桁メモリ10、一文字切
り出し回路11、一文字メモリ12、文字識別回路13の各部
分を経て、識別結果が得られるが、一桁切り出し回路
9′によって検出した文字のx座標が識別結果とともに
識別結果バッファ#114′にセットされる。この処理
は、1行分に対し3回行なわれ、それぞれ文字のx座標
と識別結果が識別結果バッファ#1〜#314′〜16′に
格納される。各バッファ#1〜#314′〜16′すべて
に、文字のx座標aと識別結果が格納された後に各バッ
ファ#1〜#314′〜16′に格納された各文字のx座標
aが桁合せ処理部18に送られる。桁合せ処理部18は、前
述の3回の識別処理によって得られたそれぞれの識別結
果に対応する文字位置(座標)を基に、同一桁にある一
つ又は複数の識別結果を選び出す処理を行う。選び出さ
れた各桁ごとの識別結果は、多数決処理部17において多
数決をとるとにより確定され、その確定された識別結果
がホスト計算機Bに送られる。 〔作用〕 第7図に、本実施例による多数決例を示す。(a)図
は文字列の一列であり、この文字列に対する3回の識別
処理を行なった(b)図の3つの識別結果(b1)、
(b2)、(b3)に識別結果が得られず、文字抜けとなっ
た桁が存在しても、桁合せ処理によって、(b4)に示す
ように同一桁に対する識別結果のみによる多数決処理を
行なうことができるため、(c)図に示す従来例のよう
に桁合せ処理を行なわなかった多数決結果(c4)に比し
て、正しい多数決結果(b4)を得ることができる。 〔実施例〕 本発明の第1実施例を第1図に示す。1はスイッチで
あり、これを手2で用紙3に置いた後、スイッチ19を押
すことにより、用紙3に記載された文字を読取るもので
ある。4は光源であり、5はレンズ系、6はイメージセ
ンサであり、7は制御二値化回路である。8は文字読取
装置本体A内に設けられた画面メモリであり、画面メモ
リ8に格納された二値化信号から、一桁切り出し回路
9′により、一桁を構成する文字列を切り出し、各文字
のx座標aを検出する。一桁切り出し回路9′により切
り出した一桁の二値化信号を一桁メモリ10に格納し、一
文字切り出し回路11、一文字メモリ12、文字識別結果回
路13を経て得られた識別結果を一桁切り出し回路9′に
より得られた文字のx座標aとともに識別結果バッファ
#114′に格納する。 一桁に対する識別結果を終えた後、再びイメージセン
サ6に用紙3に記載された文字の画像をとりこみ、識別
結果を行ない、識別結果バッファ#215′に文字のx座
標aと識別結果を格納する。また識別結果バッファ#31
6′に対しても同様に行う。格納された文字のx座標a
を基に桁合せ処理部18で識別結果の桁合せ処理を行な
い、桁合せされた識別結果を多数決処理部17において多
数決をとり、1つの桁に対する1つの識別結果を決定す
る。その結果はホスト計算機Bへ送られる。 第8図は第2実施例であり、第9図は第2実施例にお
けるマイクロプロセッサ24の動作を示す概略フローチャ
ートである。一桁切り出し回路9から送られる文字のx
座標aと文字識別回路から送られる識別結果は、マイク
ロプロセッサ24が受けとった後、RAM26に格納される。
時間をずらして3回にわたってとりこまれた画像データ
に対して、各々得られた文字のx座標aと識別結果は一
旦RAM26に格納された後、1桁ずつマイクロプロセッサ2
4に読み出され、ROM25に格納されている、同一桁である
と認められる文字のx座標aの範囲を満たしているかど
うかが検査され、同一桁であると認められる識別結果が
1つないし複数選ばれる。同一桁であると認められる識
別結果が1つの場合は、その識別結果をその桁の文字の
識別結果として出力し、複数の場合は多数決をとり、最
も多い識別結果のみを出力する。 マイクロプロセッサを用いた場合の桁合わせ処理につ
いて、第13図においてより詳細に示す。いま第1画面目
の識別結果が1文字有り、i番目(i=1,2,……I)の
文字とそのx座標をそれぞれ▲c(1) i▼、▲x(1) i▼と
表し、第2画面目の識別結果がJ文字有り、j番目(j
=1,2,……J)の文字とそのx座標をそれぞれ▲c(2) j
▼、▲x(2) j▼と表し、第3画面目の識別結果がK文字
有り、k番目(k=1,2,……K)の文字とそのx座標を
それぞれ▲c(3) k▼、▲x(3) k▼と表すとし、また、桁
合わせ後の第1画面目、第2画面目、第3画面目の識別
結果の文字を▲y(1) l▼、▲y(2) l▼、▲y(3) l▼(l
=1,2,……L)と表す。 第13図のフローチャートにおいては、、で初期化
を行っている。は各画面の識別結果の最後を予め特別
の大きな値Mによって示しておく処理である。Mは識別
処理の結果得られうるx座標の最大値に、後述するWの
値を加えたものより大きな値にしておく。は、注目し
ている、i番目の文字の座標▲x(1) i▼、j番目の文字
の座標▲x(2) j▼、k番目の文字の座標▲x(3) k▼の最
小値xminを求める処理である。ではxminがの処理で
用いたMと同じになっていれば、すべての識別結果の桁
合わせ処理が終わったと判断している。において用い
ているWは同じ桁であると判断できるx座標の幅を示し
ている。いま、▲x(1) i▼≦xmin+Wが成り立てば、▲
(1) i▼は現在処理を進めている桁に入る場合の処理、
すなわち、の処理を行う。はi番目の文字の▲c
(1) i▼を桁合わせ後の識別結果▲y(1) l▼として登録す
る処理である。は▲c(1) i▼の処理が終わったのでi
の値を増やす処理である。 一方▲x(1) i▼が現在処理を進めている桁に入らない
場合はの処理を行う。の処理は該当する桁に識別結
果が得られていないという記号#を▲y(1) l▼に登録す
る処理である(#は第7図(b)における文字と文字の
間の空白と同じ意味である)。〜と同様にして、第
2画面目の識別結果に対する処理〜、第3画面目の
識別結果に対する処理〜を行う。は桁合わせ後の
識別結果の文字数lを1増やす処理である。は最終的
に得られた文字数(l−1)を変数Lとして登録してお
く処理である。 なお、第9図では「3画面の識別結果の桁合わせ」す
べて終わった後に「3画面の識別結果の多数決をとる」
フローチャートを示しているが、1桁ごとに桁合わせと
多数決を行う処理も可能である。 第10図は、複数行を一度に読取る場合の処理例であ
る。複数行がイメージセンサの視野にはいった場合は、
上側に位置する1行から3回の識別処理を行ない、桁合
せした識別結果の多数決処理を行なう。上側の1行に対
する多数決処理が終了した後、順に2行目、3行目の処
理を行なう。 第11図はイメージセンサからの1つの出力に対し、3
つの二値化回路により二値化を行なった実施例である。 二値化信号は、それぞれの二値化回路に対応して、3
種類得られ、画面メモリ8′、8″、8蓄えられる。
一桁切り出し回路9′〜文字識別回路13までの処理は、
画面メモリ8′、8″、8それぞれに対して、1回ず
つ行われ、画面メモリ8′、8″、8それぞれに対し
て得られる識別結果が、識別結果バッファ#1〜#31
4′〜16′に蓄えられる。 第12図は、スイッチにより画像とりこみを行なわず、
一桁切り出し回路9′により、用紙上に文字列が存在す
ることを検出することにより、識別処理を開始する実施
例である。 〔効果〕 本発明によって、文字欠けに対しても正しく多数決を
行うことのできる光学文字読取装置が実現できる。多数
決処理により、読取性能を高めることができるので、読
み誤りのときに必要な再読取のための操作や時間を減ら
すことができ、操作者の負担を著しく軽減することがで
きる。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an optical reading device, in particular, reading a character by holding a scanner with a hand on a line on which a character such as a price tag is written, The present invention relates to a hand-held OCR (optical character reader). [Prior Art] A POS (Point Of Sales) system that collects sales information for each item in a supermarket or a department store and manages inventory has become widespread. As an OCR that can be used in this POS system, there is a hand-held optical reading device that can read characters in the field of view simply by applying a scanner to paper to be read (for example, Japanese Patent Application No. 60-79).
082). FIG. 2 shows a typical configuration of a hand-held optical character reader. Reference numeral 1 denotes a scanner which is applied to the paper 3 by hand 2 and reads letters, symbols, etc. written on the paper 3 by pressing a push button switch 19. The sheet 3 is, for example, a price tag on which information is described in a POS system. 4 is a light source, 5 is a lens system, and 6 is an image sensor. A driving and binarizing circuit 7 converts an analog signal which is an output signal of the image sensor 6 into a binarized signal, and sends it to a screen memory 8 in the main body A of the character reading apparatus. The screen memory 8 stores binarized data of almost the entire field of view of the image sensor 6. FIG. 3A illustrates the binarized data of the image sensor 6. The horizontal (X) x vertical (Y) size is p x
It is an image sensor of q pixels, and captures characters in the field of view. Characters and symbols are identified by the character identification circuit 13. Since the character identification circuit 13 identifies one character at a time, it is necessary to extract data for one character from the screen memory 8.
The one-digit extraction circuit 9 extracts data corresponding to m × q pixels, which is the processing capability of the one-character extraction circuit 11, from the screen memory 8 and stores it in the one-digit memory 10. One character extraction circuit 11
Is the processing capacity of the character identification circuit 13 from the single digit memory, mx
Data corresponding to n pixels is extracted and stored in the one-character memory 12. In FIG. 3 (a), first, the single digit cutout circuit 9
= 1 to X = m and data from Y = 1 to Y = q are taken out of the screen memory 8 and transferred to the single digit memory 10 (FIG. 3 (b 1 )). The single digit cutout circuit 9 looks at the contents of the single digit memory 10 and includes a range including a character image (in this example, Y = 11 to Y = 11 +
The n lines of n-1) is transferred to the character memory 12 (FIG. 3 (c 1)). When a character is stored in the one-character memory 12, the character is recognized by the character identification circuit 13. Next, data from X = 2 to X = m + 1 and data from Y = 1 to Y = q are taken out from the screen memory 8 and transferred to the single digit memory 10 (FIG. 3 (b 2 )). Then, the image in the range including the character image is transferred to the one-character memory 12. Hereinafter, similarly, the positions to be taken out to the screen memory 8 are sequentially shifted and transferred to the one-digit memory 10, the image including the character image is transferred to the one-character memory 12, and the character identification circuit
Recognition for one line is performed by performing the processing in 13. FIG. 4 shows how to determine the range to be transferred from the one-digit memory 10 to the one-character memory 12. First, a horizontal OR is obtained for each row of the one-digit memory 10. The horizontal OR is an operation that pays attention to one row in the horizontal direction, sets 1 if there is a black pixel in that row, and sets 0 if there is no black pixel. If the black output of the sensor is expressed as 1 and the white output is expressed as 0, the result of the horizontal OR is nothing but the result of ORing the pixels of one row. Therefore, this operation is called horizontal OR. Then, as shown in FIG. 4 (b), the result of the horizontal OR is black in the portion where the character exists, as shown in FIG. The range of transfer from single digit memory to single character memory is, for example, Y = 13
If the horizontal OR becomes black, then from n = 11 to n pixels including white above the character. Through the above processing, characters and symbols included in the field of view of the sensor 6 can be read. The read result is sent to the host computer B (such as a POS register) for use. [Problems to be Solved by the Invention] In the conventional optical character reader, the identification result often includes a reading error or a reading error,
The identification result cannot be used reliably. In order to reduce reading errors and reading errors, there is a method in which a plurality of identification results are obtained for the same reading target and a majority decision is made. However, in the conventional optical character reading device,
It has been found that simply adding a majority decision process cannot sufficiently reduce read defects and read errors. FIGS. 5 and 6 show a problem in the case where a majority decision processing unit is simply added to the conventional optical character reading apparatus. FIG. 5 is a configuration diagram in a case where three identification results are obtained for the same reading target and a majority decision is taken. By pressing the switch 19, the image of the character written on the paper 3 captured by the image sensor 6 is sent to the screen memory 8, and the single digit cutout circuit 9, single digit memory 10, single character cutout circuit 11, single character memory 12 An identification result is obtained through each part of the character identification circuit 13. This process is repeated three times. Then, the identification result buffer # 114 has the first
The second identification result is stored in the identification result buffer unit # 215, and the third identification result is stored in the identification result buffer # 316. When the identification result is set in all of the buffers # 1 to 314 to 16, the majority decision processing section 17 takes a majority decision and sends the result to the host computer B. FIG. 6 shows a majority decision example. FIG. 6A shows a character line described on a sheet. (B 1 ), (b 2 ), and (b 3 ) show the first, second, and third identification results, respectively.
“?” Is a symbol indicating reject, and indicates that the character could not be read (read failure). (B 4 ) is a majority decision of (b 1 ), (b 2 ), and (b 3 ), and the same character line as that of (a), that is, the correct answer is obtained. (C 1 ),
(C 2 ) and (c 3 ) are other examples of the identification results.
The second and third identification results are shown. (C 1 ) is correct, but (c 2 ) is missing “1”,
In (c 3 ), “2” is omitted. (C 4 ) is (c 1 ),
These are the majority decision results of (c 2 ) and (c 3 ), and no correct answer was obtained unlike (b 4 ). That is, in the majority decision processing configuration shown in FIG. 5, it is difficult to obtain a correct answer when characters are missing. SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and aims to improve the reading performance of an optical character reading device by realizing a majority processing method capable of finding a correct answer even when characters are missing. I have. [Means for Solving the Problems] As shown in FIG.
A case is shown in which three identification results are obtained for the same reading target and a majority decision is made on them. By pressing the switch 19, the image of the character written on the paper 3 captured by the image sensor 6 is sent to the screen memory 8 in the main body A of the character reading device, and the single digit cutout circuit 9 ', the single digit memory 10, An identification result is obtained through each part of the one-character extraction circuit 11, the one-character memory 12, and the character identification circuit 13. The x-coordinate of the character detected by the one-digit extraction circuit 9 'is stored in the identification result buffer # 114' together with the identification result. Set. This process is performed three times for one line, and the x coordinate of the character and the identification result are stored in identification result buffers # 1 to # 314 'to 16', respectively. After the x-coordinate a of the character and the identification result are stored in all the buffers # 1 to # 314 'to 16', the x-coordinate a of each character stored in each of the buffers # 1 to # 314 'to 16' is converted to a digit. It is sent to the matching processing unit 18. The digit alignment processing unit 18 performs a process of selecting one or a plurality of identification results at the same digit based on the character positions (coordinates) corresponding to the respective identification results obtained by the above-described three identification processes. . The selected identification result for each digit is determined by taking a majority vote in the majority decision processing unit 17, and the determined identification result is sent to the host computer B. [Operation] FIG. 7 shows a majority decision example according to the present embodiment. (A) is a row of a character string, and three times identification processing is performed on this character string. (B) Three identification results (b 1 ) in the figure,
Even if a digit is missing in (b 2 ) and (b 3 ) and a character is missing, a majority decision based on only the identification result for the same digit as shown in (b 4 ) is performed by the digit matching process. Since the processing can be performed, a correct majority decision result (b 4 ) can be obtained as compared with a majority decision result (c 4 ) in which digit alignment processing is not performed as in the conventional example shown in FIG. Embodiment FIG. 1 shows a first embodiment of the present invention. Reference numeral 1 denotes a switch for reading characters written on the paper 3 by placing the switch on the paper 3 with the hand 2 and pressing the switch 19. 4 is a light source, 5 is a lens system, 6 is an image sensor, and 7 is a control binarization circuit. Reference numeral 8 denotes a screen memory provided in the main body A of the character reading device. A one-digit cut-out circuit 9 'cuts out a character string forming one digit from the binarized signal stored in the screen memory 8, and outputs each character. Is detected. The one-digit binary signal extracted by the one-digit extraction circuit 9 'is stored in the one-digit memory 10, and the identification result obtained through the one-character extraction circuit 11, the one-character memory 12, and the character identification result circuit 13 is extracted by one digit. It is stored in the identification result buffer # 114 'together with the x coordinate a of the character obtained by the circuit 9'. After finishing the identification result for one digit, the image of the character written on the paper 3 is taken in the image sensor 6 again, the identification result is performed, and the x coordinate a of the character and the identification result are stored in the identification result buffer # 215 '. . Identification result buffer # 31
Repeat for 6 '. X coordinate a of the stored character
The digitizing processing unit 18 performs digit matching processing of the identification result based on the result, and the majority of the digitized identification result is determined by the majority decision processing unit 17 to determine one identification result for one digit. The result is sent to the host computer B. FIG. 8 shows the second embodiment, and FIG. 9 is a schematic flowchart showing the operation of the microprocessor 24 in the second embodiment. X of the character sent from the single digit cutout circuit 9
The coordinates a and the identification result sent from the character identification circuit are received by the microprocessor 24 and then stored in the RAM 26.
The x-coordinate a and the identification result of each obtained character are temporarily stored in the RAM 26 with respect to the image data captured three times at staggered times, and then the microprocessor 2
4 and is stored in the ROM 25 to check whether or not the range of the x-coordinate a of the character recognized as having the same digit is satisfied. If one or more identification results are recognized as having the same digit, To be elected. If there is only one discrimination result recognized as having the same digit, the discrimination result is output as the discrimination result of the character at that digit, and if there are a plurality of discrimination results, a majority decision is taken and only the most discrimination result is output. The digit alignment process using a microprocessor is shown in more detail in FIG. Now, the identification result on the first screen has one character, and the i-th (i = 1, 2,... I) character and its x coordinate are denoted by ▲ c (1) i ▼ and ▲ x (1) i ▼, respectively. And the identification result on the second screen has a J character,
= 1,2, ... J) and its x-coordinate are ▲ c (2) j
▼, ▲ x (2) j ▼, the identification result on the third screen has K characters, and the k-th (k = 1, 2,... K) character and its x coordinate are ▲ c (3) k ▼, ▲ x (3) k ▼, and the characters of the identification result of the first screen, second screen, and third screen after digit alignment are ▲ y (1) l ▼, ▲ y (2) l ▼, ▲ y (3) l ▼ (l
= 1,2,... L). In the flowchart of FIG. 13, the initialization is performed in. Is a process in which the end of the identification result of each screen is previously indicated by a special large value M. M is set to a value larger than the sum of the maximum value of the x coordinate that can be obtained as a result of the identification processing and the value of W described later. Is the minimum of the coordinates xx (1) i ▼ of the i-th character, the coordinates xx (2) j ▼ of the j- th character, and the coordinates xx (3) k ▼ of the k-th character This is processing for obtaining the value x min . If x min is the same as M used in the processing, it is determined that the digit matching processing for all the identification results has been completed. W indicates the width of the x-coordinate that can be determined to be the same digit. Now, if ▲ x (1) i ▼ ≦ x min + W holds, ▲
x (1) i ▼ is a process for entering the digit currently being processed,
That is, the process of (1) is performed. Is the ▲ c of the i-th character
(1) In this process, i ▼ is registered as the identification result ▲ y (1) l ▼ after digit alignment. Is ▲ c (1) i
Is a process of increasing the value of. On the other hand, when ▲ x (1) i ▼ does not fall in the digit currently being processed, the processing is performed. Is a process for registering a symbol # indicating that no identification result is obtained in the corresponding digit in ▲ y (1) l ▼ (# is the same as the space between characters in FIG. 7B) Meaning). In the same manner as above, processing for the identification result of the second screen and processing for the identification result of the third screen are performed. Is a process for increasing the number l of characters of the identification result after digit alignment by one. Is a process of registering the number of characters (l-1) finally obtained as a variable L. In FIG. 9, after the "digit adjustment of three-screen identification result" is completed, "take majority decision of three-screen identification result"
Although a flowchart is shown, a process of performing digit alignment and majority decision for each digit is also possible. FIG. 10 is an example of processing when reading a plurality of lines at a time. If multiple lines enter the field of view of the image sensor,
The discrimination processing is performed three times from the one line located on the upper side, and the majority decision processing of the discriminated identification result is performed. After the majority decision processing for the upper one row is completed, the processing of the second and third rows is performed in order. FIG. 11 shows three outputs for one output from the image sensor.
This is an embodiment in which binarization is performed by two binarization circuits. The binarized signal corresponds to each of the binarized circuits,
Types are obtained and stored in the screen memories 8 ', 8 ", and 8.
The processing from the single digit cutout circuit 9 'to the character identification circuit 13 is as follows.
It is performed once for each of the screen memories 8 ', 8 ", 8 and the identification results obtained for each of the screen memories 8', 8", 8 are stored in the identification result buffers # 1 to # 31.
Stored in 4 'to 16'. Fig. 12 shows that the switch does not capture the image,
This is an embodiment in which a single digit cutout circuit 9 'detects the presence of a character string on a sheet to start the identification process. [Effect] According to the present invention, it is possible to realize an optical character reading device capable of correctly performing a majority decision even for missing characters. Since the reading performance can be improved by the majority decision processing, the operation and time required for rereading in the case of a reading error can be reduced, and the burden on the operator can be significantly reduced.

【図面の簡単な説明】 第1図は、本発明による光学文字読取装置の構成図、第
2図は、従来技術による光学文字読取装置、第3図の
(a)〜(c)図は、一文字切り出し処理までの説明
図、第4図の(a)〜(c)図は、一文字切り出しの方
法の説明図、第5図は、従来技術による光学文字読取装
置に多数決処理部を付け加えた構成図、第6図の(a)
〜(c)図は、従来技術の多数決例、第7図の(a)〜
(c)図は、本発明による多数決例、第8図は、マイク
ロプロセッサを用いて本発明を実施する場合の構成図、
第9図は、概略フローチャート、第10図は、複数の行を
一度に読み取る場合の本発明による多数決例、第11図、
第12図は、本発明による光学文字読取装置の別の実施
例、第13図は、桁合わせ処理フローチャートである。 1……スイッチ、2……手、3……用紙、4……照明光
源、5……レンズ、6……イメージセンサ7、7′、
7″、7……駆動並びに二値化回路、8、8′、
8″、8……画面メモリ、9、9′……一桁切り出し
回路、10……一桁メモリ、11……一文字切り出し回路、
12……一文字メモリ、13……文字識別回路、14、14′…
…識別結果バッファ#1、15、15′……識別結果バッフ
ァ#2、16、16′……識別結果バッファ#3、17……多
数決処理部、18……桁合わせ処理部、19……押しボタン
スイッチ、24……マイクロプロセッサ、25……ROM、26
……RAM。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an optical character reading apparatus according to the present invention, FIG. 2 is an optical character reading apparatus according to the prior art, and FIGS. 4 (a) to 4 (c) are illustrations of a method for extracting one character, and FIG. 5 is a configuration in which a majority decision processing unit is added to an optical character reading apparatus according to the prior art. FIG. 6 (a)
FIGS. 7A to 7C are majority examples of the prior art, and FIGS.
(C) is a majority decision example according to the present invention, FIG. 8 is a configuration diagram when the present invention is implemented using a microprocessor,
FIG. 9 is a schematic flowchart, FIG. 10 is a majority decision example according to the present invention when a plurality of rows are read at one time, FIG.
FIG. 12 is another embodiment of the optical character reading apparatus according to the present invention, and FIG. 13 is a digit alignment processing flowchart. 1 ... Switch 2 ... Hand 3 ... Paper 4 ... Illumination light source 5 ... Lens 6 ... Image sensors 7, 7 '
7 ″, 7... Drive and binarization circuit, 8, 8 ′,
8 ", 8 ... screen memory, 9, 9 '... one digit cutout circuit, 10 ... one digit memory, 11 ... one character cutout circuit,
12: One character memory, 13: Character identification circuit, 14, 14 '...
... Identification result buffers # 1, 15, 15 '... Identification result buffers # 2, 16, 16' ... Identification result buffers # 3, 17 ... Majority decision processing unit, 18 ... Digit alignment processing unit, 19 ... Press Button switch, 24 ... Microprocessor, 25 ... ROM, 26
……RAM.

フロントページの続き (72)発明者 藤脇 一夫 大阪市此花区島屋1丁目1番3号 住友 電気工業株式会社大阪製作所内 (56)参考文献 特開 昭56−31176(JP,A) 特公 昭60−43556(JP,B2)Continuation of front page    (72) Inventor Kazuo Fujiwaki               1-3-3 Shimaya, Konohana-ku, Osaka City Sumitomo               Inside Electric Manufacturing Co., Ltd. Osaka Works                (56) References JP-A-56-31176 (JP, A)                 Tokiko Sho 60-43556 (JP, B2)

Claims (1)

(57)【特許請求の範囲】 1.文字、記号等を光学的に読取る手持ち式の光学文字
読取装置において、光電交換素子を面状に配列して成
り、1行又は複数行分の文字、記号等を視野内に納める
イメージセンサと、このイメージセンサから出力される
アナログ信号を文字領域と背景領域とに対応する二値化
信号に変換する二値化回路と、二値化回路から出力され
る二値化信号を記憶するメモリと、二値化信号における
背景領域と文字領域の境界を調べることによりメモリに
記憶した二値化信号から各文字、記号等の存在する位置
を検出する文字位置検出手段と、メモリに記憶した二値
化信号から前記文字、記号等を識別処理する識別処理手
段と、1行又は複数行分の文字、記号等に対し、複数回
の文字位置検出と識別処理を行なって得た複数の識別結
果から、それぞれの識別結果に対応する文字位置を基
に、同一桁の位置にある識別結果を1つないし複数選ぶ
ことを行なう桁合わせ処理手段と、前記桁合わせ処理手
段により選び出された各桁ごとの識別結果が1つの場合
は、その識別結果をその桁の文字の識別結果として出力
し、複数の場合は多数決をとり最も多い識別結果のみを
出力する多数決処理手段を有することを特徴とする光学
文字読取装置。
(57) [Claims] In a hand-held optical character reading device that optically reads characters, symbols, and the like, an image sensor configured by arranging photoelectric exchange elements in a plane and storing one or more lines of characters, symbols, and the like in a field of view, A binarization circuit that converts an analog signal output from the image sensor into a binarization signal corresponding to a character area and a background area, and a memory that stores the binarization signal output from the binarization circuit, Character position detecting means for detecting the position of each character, symbol, etc. from the binarized signal stored in the memory by examining the boundary between the background region and the character region in the binarized signal; From the signal, the identification processing means for identifying the characters, symbols, and the like, and a plurality of identification results obtained by performing character position detection and identification processing a plurality of times for one line or a plurality of lines of characters, symbols, and the like, Identification of each Digit matching processing means for selecting one or more identification results at the same digit position based on the character position corresponding to the result, and identifying results for each digit selected by the digit matching processing means. An optical character reading apparatus comprising: majority processing means for, in one case, outputting the identification result as the identification result of the character at that digit;
JP62011083A 1987-01-19 1987-01-19 Optical character reader Expired - Lifetime JP2722434B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62011083A JP2722434B2 (en) 1987-01-19 1987-01-19 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62011083A JP2722434B2 (en) 1987-01-19 1987-01-19 Optical character reader

Publications (2)

Publication Number Publication Date
JPS63177284A JPS63177284A (en) 1988-07-21
JP2722434B2 true JP2722434B2 (en) 1998-03-04

Family

ID=11768081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62011083A Expired - Lifetime JP2722434B2 (en) 1987-01-19 1987-01-19 Optical character reader

Country Status (1)

Country Link
JP (1) JP2722434B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02135586A (en) * 1988-11-16 1990-05-24 Nec Corp Optical character reader
US9418304B2 (en) * 2011-06-29 2016-08-16 Qualcomm Incorporated System and method for recognizing text information in object

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5631176A (en) * 1979-08-24 1981-03-28 Toshiba Corp Character reader
JPS6043556A (en) * 1983-08-17 1985-03-08 株式会社クボタ Falling ridge roofing method

Also Published As

Publication number Publication date
JPS63177284A (en) 1988-07-21

Similar Documents

Publication Publication Date Title
JP2553608B2 (en) Optical character reader
WO2020008628A1 (en) Image processing system, image processing method, and program
US4797940A (en) Optical character reader
EP0144006B1 (en) An improved method of character recognitionand apparatus therefor
JP2722434B2 (en) Optical character reader
US5059775A (en) Slip and method of and apparatus for automatic reading of the slip
JPS5841542B2 (en) optical character reader
JPH0221384A (en) Optical character reader
JPH01155490A (en) Optical character reader
JP2573665B2 (en) Optical character reader
JP2514660B2 (en) Optical character reader
JPH0731716B2 (en) Optical character reader
JPH0469785A (en) Optical information reader
JP2567852B2 (en) Optical character reader
JPH0760451B2 (en) Optical character reader
JPS63223889A (en) Optical character reader
JPH01155489A (en) Optical character reader
JPS6319090A (en) Optical character reader
JPH0469787A (en) Optical information reader
JP2925300B2 (en) Optical character reader
JPH01199287A (en) Optical character reader
JPH0679349B2 (en) Optical reader
JPS6278686A (en) Optical character reader
JPS63120387A (en) Optical character reader
JPH01123378A (en) Optical character reader