JPS63120387A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPS63120387A
JPS63120387A JP61265613A JP26561386A JPS63120387A JP S63120387 A JPS63120387 A JP S63120387A JP 61265613 A JP61265613 A JP 61265613A JP 26561386 A JP26561386 A JP 26561386A JP S63120387 A JPS63120387 A JP S63120387A
Authority
JP
Japan
Prior art keywords
character
read
circuit
image sensor
memory
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
JP61265613A
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 JP61265613A priority Critical patent/JPS63120387A/en
Publication of JPS63120387A publication Critical patent/JPS63120387A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To use a handy type reader by deciding whether each character of a character line of a identifying object exists within a prescribed range of a visual field of an image sensor or not, and outputting a result of read only in case when a deciding condition is satisfied. CONSTITUTION:A character of one digit portion of a screen memory 8 is segmented to a memory 10 by a segmenting circuit 9, and X coordinate information of its segmenting position is sent to a position deciding part 16. Also, at the time of segmenting one character each from the memory 10 by a segmenting circuit 11, Y-coordinate information of the segmenting position is sent to a deciding part 16. The deciding part 16 decides whether the positions of segmented characters are contained within a prescribed range in the X direction and the Y direction, respectively, or not, and in case when all the characters of the character line are contained in a visual field of an image sensor 6, a result of read which is read by a character identifying circuit 13 is outputted from an output control part 14.

Description

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

〈従来の技術〉 スーパーマーケットや百貨店等で、単品毎の売りあげ情
報を収集して在庫管理を行うPOS(Point Of
 5ales)システムが普及している。このPOSシ
ステムに用いることのできるOCRとして、スキャナを
読み取りたい用紙に当てがうだけでその視野の中の文字
を読み取ることのできる手持ち式の光学文字読取装置が
ある(たとえば特願昭6O−79082)。第4図に手
持ち式光学文字読取装置の代表的な構成を示す。
<Conventional technology> At supermarkets, department stores, etc., POS (Point of Use) collects sales information for each item and manages inventory.
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 the paper to be read (for example, Japanese Patent Application No. 6O-79082 ). FIG. 4 shows a typical configuration of a hand-held optical character reading device.

第4図に示す光学文字読取装置では、手2でスキャナ1
を持ちスキャナ1の画像取入口を読取対筆が記載された
用紙3上に当てがい、押しボタンスイッチ19を押して
用紙3に記載された文字、記号を読み取る。用紙3はた
とえばPOSシステムでの情報が記載された値札などで
ある。このようなスキャナ1には用紙3に光を照射する
光源4と、用紙3の画像を結像するレンズ系5と、レン
ズ系5によって用紙3上の読取対象の文字像が結像され
るイメージセンサ6と、イメージセンサ6の出力信号で
あるアナログ信号をイメージセンサの画素毎に二値化し
て出力するイメージセンサ駆動回路7が収容されていて
、スキャナ1の押ボタンスイッチ19を押すことによっ
てイメージセンサ6の画像の二値化された画像信号がイ
メージセンサ駆動回路7から文字識別装置本体20の画
面メモリ8へ出力される。
In the optical character reading device shown in FIG.
Holding the scanner 1, place the image input port of the scanner 1 on the paper 3 on which the reading handwriting is written, and press the push button switch 19 to read the characters and symbols written on the paper 3. The paper 3 is, for example, a price tag on which information for a POS system is written. Such a scanner 1 includes a light source 4 that irradiates light onto a sheet of paper 3, a lens system 5 that forms an image of the sheet of paper 3, and an image that forms an image of characters to be read on the sheet of paper 3 by the lens system 5. It houses a sensor 6 and an image sensor drive circuit 7 that binarizes and outputs an analog signal, which is an output signal of the image sensor 6, for each pixel of the image sensor. A binarized image signal of the image of the sensor 6 is output from the image sensor drive circuit 7 to the screen memory 8 of the character recognition device main body 20.

画面メモリ8はイメージセンサ6の視野内の全体の二値
化画像データを格納する。
The screen memory 8 stores the entire binarized image data within the field of view of the image sensor 6.

第5図(alに画面メモリ8に格納された横(3)×縦
画の大きさがpxq画素からなるイメージセンサ6の視
野の中に文字像を写し込ましている模様を示している。
FIG. 5 (al) shows how a character image is projected into the field of view of the image sensor 6, which is stored in the screen memory 8 and has a width (3)×vertical size of pxq pixels.

画面メモリ8に格納された文字・記号を文字識別回路1
3が一文字づつ識別するに当って、画面メモリ8から1
文字分のデータを順次取り出す必要がある。−指切出し
回路9は第5図(blに示すように画面メモリ8から一
文字切出し回路11の処理能力であるmXqii!j素
相当分のデータをX方向に1画素づつ順次づらせてす、
、b2・・・bS・・・の如く取出し一桁メモIJ 1
0に格納する。−文字切出し回路11は第5図tc)に
示すように一部メモリ10から文字識別回路13の処理
能力であるmXn画素相当分のデータji!clpc2
・・・CS・・・の如く取り出し一文字メモリ10に格
納する。
The character recognition circuit 1 identifies the characters and symbols stored in the screen memory 8.
3 identifies characters one by one, 1 from screen memory 8.
It is necessary to sequentially extract data for characters. - The finger extraction circuit 9 sequentially shifts data corresponding to mXqii!j pixels, which is the processing capacity of the single character extraction circuit 11, from the screen memory 8 pixel by pixel in the X direction, as shown in FIG.
, b2... bS... Take out single digit memo IJ 1
Store at 0. - The character cutting circuit 11 stores data ji! corresponding to mXn pixels, which is the processing capacity of the character identification circuit 13, from a portion of the memory 10 as shown in FIG. clpc2
. . CS . . . are taken out and stored in the single character memory 10.

第5図(blに示すように、−指切出し回路9は第5図
(,1に示すX=1からX=m、Y= 1からY=q迄
のデータを画面メモリ8からblを取り出し、−桁メモ
リ10に転送する。
As shown in FIG. 5 (bl), the - finger extraction circuit 9 extracts data from the screen memory 8 from X=1 to X=m, Y=1 to Y=q shown in FIG. , - transferred to the digit memory 10.

−文字切出し回路11は第5図(C1のC4に示す如く
1桁メモリ10の内容を見て文字像を含む範囲(この例
ではY−11からY=11+ n −1)のn行分を一
文字メモリ12に転送する。
- The character cutting circuit 11 looks at the contents of the one-digit memory 10 as shown in FIG. Transfer to the one-character memory 12.

一文字メモリ12に転送されたデータは文字識別回g8
13で一文字切出し分について識別が行われる。以下同
様に画面メモリ8から取り出す位置を順次ずらしてX、
=2.3,4・・・に対応して一文字メモリ12にC2
,C,、C。
The data transferred to the single character memory 12 is the character identification time g8.
At step 13, identification is performed for each character cut out. In the same way, the position to be taken out from the screen memory 8 is sequentially shifted, and
=2. C2 is stored in the single character memory 12 in response to 3, 4...
,C,,C.

・・・毎に文字識別回路13によって文字識別が行われ
る。
. . . Character identification is performed by the character identification circuit 13 every time.

尚−桁メモリ10から一文字メモリ12にデータを転送
する際の範囲の求め方を第6図に示す。先ず一部メモリ
10の各行に対し第6図(blに示すように横ORを求
める。横ORとは横方向X=1〜mの一行に注目し、そ
の行に黒画素があれば1とし、黒画素がなければ0とす
る1行の各画素の論理和を取る演算である。1桁メモリ
10から1文字メモリ12ヘデータ転送する範囲は第6
図Calに示すように、たと丸ばY;13から横ORが
黒になったとすると、文字の上方の余白を含めてY=1
1からn画素とする。
FIG. 6 shows how to determine the range when transferring data from the -digit memory 10 to the single character memory 12. First, calculate the horizontal OR for each row of the partial memory 10 as shown in FIG. , if there is no black pixel, the logical sum of each pixel in one row is calculated.The range of data transfer from the 1-digit memory 10 to the 1-character memory 12 is the 6th
As shown in Figure Cal, if the horizontal OR becomes black from Tamaruba Y;13, then Y=1 including the upper margin of the character.
1 to n pixels.

以上の処理によってイメージセンサ6の視野pxq内に
含まれる文字・記号が読み取られる。
Through the above processing, characters and symbols included in the field of view pxq of the image sensor 6 are read.

一方、フォーマット一致判定部15は文字m別回路13
の出力からフォーマットチェック(読取桁数、行の先頭
文字の種類の確認等)を行い、所定のフォーマットを満
していればフォーマットに合致しているという信号を出
力制御部14に送り、出力制御部14ば文字識別回路1
3の読取9結果をフォーマット単位で記憶していて、フ
ォーマット単位で出力する。つまり、第4図に示すよう
な手持ち式の光学文字読取装置によって用紙3の読み取
るべき文字行を常に間違いなくイメージセンサ6の視野
の中に丁度入るようにスキャナ1を用紙3に当てかうこ
とはしばしば困難である。イメージセンサ6の視野から
文字行の一部がはみ出して当てがわれだ場合は、文字が
はみ出したことによる桁数不足はフ十−マットチェック
部21でフォーマット一致判定部15と出力制御部14
とによってフオーマツト不一致と判定し、読取不能とし
て擾作者に報知し、スキャナ1の当て直しを指示する。
On the other hand, the format match determination unit 15 uses the circuit 13 for each character m.
A format check is performed from the output of Part 14 character identification circuit 1
The nine reading results of No. 3 are stored in format units and output in format units. In other words, it is impossible to apply the scanner 1 to the paper 3 so that the character line to be read on the paper 3 is always exactly within the field of view of the image sensor 6 using a hand-held optical character reading device as shown in FIG. Often difficult. If a part of a character line protrudes from the field of view of the image sensor 6 and the number of digits is insufficient due to the protruding character, the format check unit 21 checks the format match determination unit 15 and the output control unit 14.
Accordingly, it is determined that the formats do not match, and the author is notified that the image cannot be read, and is instructed to reapply the scanner 1.

〈発明が解決しようとずろ問題点〉 第4図に示すような手持ち式の光学文字読取装置におい
ては、フォーマツl−チェックを行うために、光学文字
読取装置の操作に先立ってあらかじめフォーマットを定
め、フォーマット一致判定部15に登録する必要がある
<Problems that the invention is unlikely to solve> In a hand-held optical character reading device as shown in Fig. 4, in order to perform a format l-check, a format is determined in advance before operation of the optical character reading device. It is necessary to register it in the format matching determination section 15.

また登録できるフォーマットの種類にも限度がある。There are also limits to the types of formats that can be registered.

そのため用途によっては、フォーマットを設定しないで
、即らフリーフォーマットで用いたい場合がある。
Therefore, depending on the purpose, it may be desirable to use a free format without setting a format.

しかし従来の手持ち式光学文字読取装置の場合は、フォ
ーマットチェックによりスキャナを適切に文字行に当て
かったかどうかの判定を行っていたので、フォーマット
チェックなしでは実用にならない。このように従来の手
持ち式光学文字読取装置ではフリーフォーマットでは使
えなかった。
However, in the case of conventional hand-held optical character reading devices, a format check is used to determine whether the scanner has been properly applied to a character line, so it cannot be put to practical use without a format check. In this way, conventional hand-held optical character readers cannot be used in free format.

本発明はかかる従来技術の問題点に鑑みてなされたもの
で、イメージセンサ上に結像された読取対象の文字像が
イメージセンサのX方向及びY方向の視野の端からはみ
だしていることを検出して、ばみだ17ていない場合の
み文字識別の結果を出力する光学文字読取装置を提供す
ることを目的とするものである。
The present invention has been made in view of the problems of the prior art, and detects when a character image to be read formed on an image sensor protrudes from the edge of the field of view in the X and Y directions of the image sensor. Therefore, it is an object of the present invention to provide an optical character reading device that outputs the result of character identification only when there is no misalignment.

く問題点を解決するための手段〉 本発明による光学文字読取装置の構成は、読取対象の文
字像が結像される二次元イメージセンサと、該イメージ
センサの視野内に結像された読取対象像のなかの各文字
を読取る文字識別部を有する手持ち式の光学文字読取装
置において、前記読取対象像のなかの各文字の縦方向(
Y方向)と横方向(X方向)の位置を(y、x)検出す
る位置検出手段と、各文字のY座標とX座標とがそれぞ
れ予め定められた範囲内にあるか否かを検出する位置判
定部と、全ての文字のY座標とX座標とが上記の予め定
められた範囲内にあるときのみ上記文字識別部の読取結
果を出力する出力制御部からなることを特徴とするもの
である。
Means for Solving Problems> The configuration of the optical character reading device according to the present invention includes a two-dimensional image sensor on which a character image to be read is formed, and a two-dimensional image sensor on which a character image to be read is formed; In a hand-held optical character reading device having a character recognition section for reading each character in an image, the vertical direction (
a position detection means for detecting the position (y, x) in the Y direction) and the horizontal direction (X direction), and detecting whether the Y coordinate and the X coordinate of each character are within predetermined ranges. It is characterized by comprising a position determination section and an output control section that outputs the reading result of the character identification section only when the Y and X coordinates of all characters are within the predetermined range. be.

く作   用〉 位置検出手段と位置判定部とによって、文字識別部に読
取られた文字のX座標及びY座標がそれぞれ所定の範囲
内にあるか否かを判定し、所定の範囲外に文字があると
きは、文字識別部の識別結果は出力されず、それぞれ所
定の範囲内にあるときのみ識別結果を出力する。
Function> The position detecting means and the position determination section determine whether the X and Y coordinates of the character read by the character identification section are within a predetermined range, and the character is located outside the predetermined range. In some cases, the identification results of the character identification section are not output, and the identification results are output only when the results are within respective predetermined ranges.

く実 施 例〉 本発明による光学文字読取装置の一実施例を図面に従っ
て説明する。第1図は本発明の一実施例の構成図である
Embodiment An embodiment of an optical character reading device according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention.

第1図中、スキャナ1、用紙3、光源4、レンズ系5、
イメージセンサ6、イメージセンサ駆動回fIs7、画
面メモリ8、−桁切出し回路9、−桁メモリ10、−文
字切出し回路1】、−文字メモリ12、文字識別回路1
3、出力制御部14は第4図に示しt:ものと同様であ
る。
In Figure 1, a scanner 1, paper 3, light source 4, lens system 5,
Image sensor 6, image sensor drive circuit fIs7, screen memory 8, -digit extraction circuit 9, -digit memory 10, -character extraction circuit 1], -character memory 12, character identification circuit 1
3. The output control section 14 is the same as that shown in FIG.

但し本実施例では一桁切出し回路9は画面メモリ8の一
桁分の文字を一桁メモリ10に切り出す際、切り出し位
置であるX座標を切り出し文字のX位置情報として文字
位置チェック部22の位置判定部16へ出力している。
However, in this embodiment, when the single digit cutting circuit 9 cuts out one digit worth of characters from the screen memory 8 into the single digit memory 10, the X coordinate which is the cutting position is used as the X position information of the cut character and the position of the character position check unit 22 is used. It is output to the determination section 16.

また−文字切出し回路11は一桁メモリ10から一文字
づつ切り出す際、切り出し位置であるY座標を切り出し
文字のY座標912報として位置判定部16へ出力して
いる。
Furthermore, when the character cutting circuit 11 cuts out each character from the single-digit memory 10, it outputs the Y coordinate of the cutting position to the position determining section 16 as the Y coordinate 912 of the cut character.

位置判定部16は一桁切出し回路9からの文字切り出し
位置のX座標の情報と一文字切出し回路11からの文字
切ゆ出し位置のY座標の情報をうけ、切り出された文字
の位置がそれぞれX方向及びY方向の所定の範囲に入っ
ているかどうかを判定し、所定の範囲内に入っていない
場合は、それまで判定して所定の範囲内に入っていたも
のを含めて文字識別回路13の識別結果が出力されない
ように、あるいは所定の範囲内に入っている場合は、文
字識別回路13の識別結果が出力されろように出力制御
部14を制御するものである。
The position determination unit 16 receives information on the X coordinate of the character cutting position from the single digit cutting circuit 9 and information on the Y coordinate of the character cutting position from the single character cutting circuit 11, and determines the position of the cut out character in the X direction. If it is not within the predetermined range, the character identification circuit 13 identifies the characters including those that have been determined so far and are within the predetermined range. The output control unit 14 is controlled so that the result is not output, or when the result is within a predetermined range, the recognition result of the character recognition circuit 13 is output.

位置判定部16の一例の構成図を第2図に示す。−桁切
出し回路9によって切り出された文字切り出し位置のX
座標の信号はX方向の所定の範囲を判別する比較回路6
1.62のそれぞれのB端子及びA端子へ入力されろ。
A configuration diagram of an example of the position determining section 16 is shown in FIG. -X of the character cutting position cut out by the digit cutting circuit 9
The coordinate signal is sent to a comparison circuit 6 that determines a predetermined range in the X direction.
1.62 to the respective B and A terminals.

比較器$61にはX sinの値がA端子へ入力されて
いる。まt:比較回路62にはX waxD値がB端子
へ入力されている。各切り出し文字のX座標がX方向の
所定の範囲に存在するか否かを判別する比較回路61.
62では、X min≦X ≦X maw      
  (1)の関係が検討され、もし X +iin > X であれば比較回路61は所定の範囲外の信号1を出力す
る。また、もし X1uX<X であれば比較回路62は所定の範囲外の信号1を出力す
る。
The value of X sin is input to the A terminal of the comparator $61. Also, the comparison circuit 62 has the X waxD value input to the B terminal. A comparison circuit 61 that determines whether the X coordinate of each cutout character exists within a predetermined range in the X direction.
62, X min≦X ≦X maw
The relationship (1) is examined, and if X +iin > X, the comparator circuit 61 outputs a signal 1 outside the predetermined range. Further, if X1uX<X, the comparison circuit 62 outputs a signal 1 outside the predetermined range.

Y方向について:よ、−文字切出し回路11によって切
り出された文字切出し位置のY座標の信号はY方向の所
定の範@Jを判別する比較器@63,64のそれぞれの
B端子及びA端子へ入力されている。比較回路64には
Yaii nの値がA端子へ入力されている。比較回路
64にはY waxの値がB端子へ入力されている。各
切出し文字のY座標がY方向の所定の範囲に存在するか
否かを判別する比較回路63,64では、 YllILn≦Y≦Y +max       f2)
の関係が検討され、もし YlllIn>Y であれば比較回路63は所定の範囲外の信号1を出力す
る。もし、 Y wax < Y であれば比較回路64は所定の範囲外の信号1を出力す
る。
Regarding the Y direction: -The signal of the Y coordinate of the character cutting position cut out by the character cutting circuit 11 is sent to the respective B and A terminals of comparators @63 and 64 that determine a predetermined range @J in the Y direction. It has been entered. The value of Yai n is input to the A terminal of the comparator circuit 64. The value of Y wax is input to the B terminal of the comparison circuit 64. In the comparison circuits 63 and 64 that determine whether or not the Y coordinate of each cutout character exists within a predetermined range in the Y direction, YllILn≦Y≦Y +max f2)
The relationship is examined, and if YlllIn>Y, the comparator circuit 63 outputs a signal 1 outside the predetermined range. If Y wax < Y, the comparison circuit 64 outputs a signal 1 outside the predetermined range.

以上の如く比較器61,62p63,64X win 
S X≦X a!ax        fl)Ymin
5Y≦Y wax        (21が判別され、
この条件が満されていないときハORゲート65の入力
線のいずれかが1となり、ORゲート65の出力は1と
なり、ANDゲート66へ入力される。そのとき文字識
別回路13からの文字を読取ったことを示す文字出力タ
イミングを示す信号がANDゲ−)66の他方の端子へ
入力されていればANDゲート66から範囲外イ:号1
が出力制御部14へ出力され、それまで範囲内に入って
いると判別されたものを含めて出力制御部14は文字識
別回路13の読取結果を出力しない。
As above, comparators 61, 62p 63, 64X win
S X≦X a! ax fl)Ymin
5Y≦Y wax (21 is determined,
When this condition is not met, one of the input lines of the OR gate 65 becomes 1, and the output of the OR gate 65 becomes 1, which is input to the AND gate 66. At that time, if the signal indicating the character output timing indicating that the character has been read from the character identification circuit 13 is input to the other terminal of the AND gate 66, the output from the AND gate 66 will be output from the outside of the range 1.
is output to the output control unit 14, and the output control unit 14 does not output the reading results of the character identification circuit 13, including those that have been determined to be within the range.

逆に(1)式と(2)式の関係が一つの文字行の全ての
文字について満足されたときだけ読取対象の文字行が全
てイメージセンサ6の視野に入っているものとして、出
力制御部14に貯えられている文字識別回路13による
文字行の読取結果が出力される。
Conversely, only when the relationship between equations (1) and (2) is satisfied for all characters in one character line, the output control unit assumes that all the character lines to be read are within the field of view of the image sensor 6. The result of reading a character line by the character identification circuit 13 stored in 14 is output.

ここに文字の位置の範囲を判別するX+min。Here, X+min determines the range of character positions.

X l1laxSY win、、Y auixの値は例
丸ば以下のように定められる。X win、、X +a
aχの値は識別対象の隣接文字幅Wに関係する。
For example, the values of X l1laxSY win, Y auix are determined as follows. X win,,X +a
The value of aχ is related to the width W of adjacent characters to be identified.

(イ)識別されるX方向文字行に空白文字が含まれてい
な′−)場合は、識別された文字とイメージセンサ6の
視野の左右の端が切す出された文字のX座標の位置から
少くとも一文字幅W以上離れていれば、文字行の隣接す
る文字が視野右端外にはみだしていないと判断される。
(b) If the identified character line in the X direction does not include a blank character ('-), the position of the identified character and the X coordinate of the identified character and the left and right edges of the field of view of the image sensor 6 are cut off. If the distance is at least one character width W from the character line, it is determined that the adjacent characters in the character line do not protrude outside the right edge of the visual field.

従って一文字幅をWとすると X l1lin = W              
(3)となる。
Therefore, if the width of one character is W, then X l1lin = W
(3) becomes.

また、切り出された文字のX座標がp+1−m −W以
上離れていなければ、文字行の隣接する文字が視野右端
外にはみ出していないと判断する。従って、 X yaax= p + 1− m  W     f
41となろ。
Further, if the X coordinates of the extracted characters are not separated by p+1-m-W or more, it is determined that adjacent characters in the character line do not protrude outside the right edge of the visual field. Therefore, X yaax= p + 1- m W f
41.

ここに、p:イメージセンサ6のX方向の視野の画素数
、 mニー文字切出しのX方向の画 素数、 Wニー文字幅の画素数、 である。
Here, p: the number of pixels in the field of view in the X direction of the image sensor 6, the number of pixels in the X direction for cutting out the m knee character, and the number of pixels in the width of the W knee character.

また識別されるX方向文字行に空白文字が高々1つ含ま
れているとするとX +ainSX l1laxは以下
の様になる。
Further, assuming that the identified X-direction character line contains at most one blank character, X + ainSX l1lax is as follows.

X win = 2 W           (5)
X wax = p + 1− m −2W     
(6)となる。
X win = 2 W (5)
X wax = p + 1- m -2W
(6) becomes.

(ロ)  Yna団、Y齢Xの値は識別対象のX方向隣
接文字のY方向段差は、文字行はほぼ一直線に並んでい
るので、文字高さをhとするとh/3以上になることは
ないとする。従って Y m1n−h / 3           (7)
Y wax = q + 1− n −h / 3  
 (8)とする。
(b) The value of Yna group, Y age Suppose there is no. Therefore Y m1n-h / 3 (7)
Y wax = q + 1-n-h/3
(8).

ここにq=イメージセンサのY方向視野の画素数、 nニー文字切出しのY方向の画素 数、 hニー文字高さの画素数、 である。Here, q = number of pixels in the field of view in the Y direction of the image sensor, Pixels in the Y direction for n-knee character extraction number, h knee character height pixels, It is.

第3図に読取対象の文字行とイメージセンサの視野の関
係例を示す。
FIG. 3 shows an example of the relationship between the character line to be read and the field of view of the image sensor.

第3図(a)に示されるものは文字行の一部がX方向と
Y方向にそれぞれはみ出している例である。本実施例に
よる光学文字読取装置によれば、文字行中の文字3の切
り出し位置xにおいて(1)式を満足していない。また
文字行中の文字6の切り出し位置Yにおいて(2)式が
満足されておらず、従って読取結果は出力されない。か
かる場合には、光学文字読取装置は読取り不能として警
報音あるいは光点滅等の従来のものと同様な手段で操作
者に再操作を促す。これにより操作者はスキャナ1を再
び操作して確実に読取対象を読取ることができる。
What is shown in FIG. 3(a) is an example in which a part of the character line protrudes in the X direction and the Y direction, respectively. According to the optical character reading device according to this embodiment, the expression (1) is not satisfied at the cutout position x of the character 3 in the character line. Furthermore, equation (2) is not satisfied at the cutting position Y of character 6 in the character line, and therefore no reading result is output. In such a case, the optical character reading device determines that the character cannot be read and prompts the operator to re-operate the character using conventional means such as an audible alarm or flashing light. This allows the operator to operate the scanner 1 again and reliably read the object to be read.

また第3図(blに示されるものはイメージセンサの視
野に文字行の全ての文字が入っている例であって、この
場合には文字行の全ての文字について(1)式及び(2
)式が満足される。従って文字識別回路13によって読
み取られた読取結果は出力制御部14から出力される。
Moreover, what is shown in FIG. 3 (bl) is an example in which all characters in a character line are included in the field of view of the image sensor, and in this case, equation (1) and (2) are used for all characters in the character line.
) is satisfied. Therefore, the reading result read by the character identification circuit 13 is outputted from the output control section 14.

〈発明の効果〉 本発明による光学文字読取装置によれば、識別対象の文
字行の各文字についてイメージセンサの視野の所定の範
囲に存在しているか否かが判定され、判定条件を満した
場合のみ読取結果を出力するため、フリーフォーマット
の手持式の光学文字読取装置が可能となった。
<Effects of the Invention> According to the optical character reading device according to the present invention, it is determined whether or not each character in a character line to be identified exists within a predetermined range of the field of view of the image sensor, and when the determination condition is satisfied. Since only the reading results are output, a free-format handheld optical character reading device has become possible.

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

第1図は本発明による光学文字読取装置の構成図、第2
図は第1図に示す位置判定部の構成図、第3図はイメー
ジセンサの視野と識別対象の文字行との関係例を示す図
、第4図は従来の光学文字読取装置の構成図、第5図は
イメージセンサの視野に結像された読取対宋の文字行と
これらの文字の切り出しについて説明する図、第6図は
一部メモリから一文字切出しする際の切出し幅の決定方
法の説明図である。 図面中、1はスキャナ、3は用紙、4は光源、5はレン
ズ系、6はイメ−ジセンサ、7はイメーレセンサ駆動回
路、8は画面メモリ、9は一部切出し回路、lθ1よ一
部メモリ、11は一文字切出し回路、12は一文字メモ
リ、13は文字識別回路、14は出力制御部、16は位
置判定部、20は文字識別装置本体、22は文字位置チ
ェック部、61,62,63,64は比較器、65はO
Rゲート、66(よANr)ゲートである。
FIG. 1 is a block diagram of an optical character reading device according to the present invention, and FIG.
FIG. 3 is a diagram showing an example of the relationship between the field of view of an image sensor and a character line to be identified; FIG. 4 is a diagram showing a configuration of a conventional optical character reading device; Figure 5 is a diagram explaining the line of read characters of the Song Dynasty that is imaged in the field of view of the image sensor and the extraction of these characters, and Figure 6 is an explanation of how to determine the extraction width when extracting one character from a partial memory. It is a diagram. In the drawing, 1 is a scanner, 3 is paper, 4 is a light source, 5 is a lens system, 6 is an image sensor, 7 is an image sensor drive circuit, 8 is a screen memory, 9 is a partial cutting circuit, lθ1 and a partial memory, 11 is a character cutting circuit, 12 is a character memory, 13 is a character identification circuit, 14 is an output control section, 16 is a position determination section, 20 is a character identification device main body, 22 is a character position check section, 61, 62, 63, 64 is a comparator, 65 is O
R gate, 66 (YANr) gate.

Claims (1)

【特許請求の範囲】[Claims] 読取対象の文字像が結像される二次元イメージセンサと
、該イメージセンサの視野内に結像された読取対象像の
なかの各文字を読取る文字識別部を有する手持ち式の光
学文字読取装置において、前記読取対象像のなかの各文
字の縦方向(Y方向)と横方向(X方向)の位置を(Y
、X)検出する位置検出手段と、各文字のY座標とX座
標とがそれぞれ予め定められた範囲内にあるか否かを検
出する位置判定部と、全ての文字のY座標とX座標とが
上記の予め定められた範囲内にあるときのみ上記文字識
別部の読取結果を出力する出力制御部からなることを特
徴とする光学文字読取装置。
In a hand-held optical character reading device having a two-dimensional image sensor on which a character image to be read is formed, and a character identification unit for reading each character in the image to be read formed within the field of view of the image sensor. , the vertical (Y direction) and horizontal (X direction) positions of each character in the image to be read are determined by (Y
, An optical character reading device comprising an output control section that outputs the reading result of the character identification section only when the character identification section is within the predetermined range.
JP61265613A 1986-11-10 1986-11-10 Optical character reader Pending JPS63120387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61265613A JPS63120387A (en) 1986-11-10 1986-11-10 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61265613A JPS63120387A (en) 1986-11-10 1986-11-10 Optical character reader

Publications (1)

Publication Number Publication Date
JPS63120387A true JPS63120387A (en) 1988-05-24

Family

ID=17419563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61265613A Pending JPS63120387A (en) 1986-11-10 1986-11-10 Optical character reader

Country Status (1)

Country Link
JP (1) JPS63120387A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5672778A (en) * 1979-11-16 1981-06-17 Toshiba Corp Character reader
JPS5841542A (en) * 1981-09-04 1983-03-10 株式会社日立製作所 Handpiece for laser knife

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5672778A (en) * 1979-11-16 1981-06-17 Toshiba Corp Character reader
JPS5841542A (en) * 1981-09-04 1983-03-10 株式会社日立製作所 Handpiece for laser knife

Similar Documents

Publication Publication Date Title
JP3124296B2 (en) How to detect the position and direction of the fiducial mark
US4516265A (en) Optical character reader
JPH07120389B2 (en) Optical character reader
JP7386446B2 (en) information processing system
JPS63120387A (en) Optical character reader
JPS5841542B2 (en) optical character reader
JPS63120386A (en) Optical character reader
JP2722434B2 (en) Optical character reader
JP2877380B2 (en) Optical character reader
JP3006294B2 (en) Optical character reader
JP2573665B2 (en) Optical character reader
JPS6074094A (en) Character recognizing device
JPH0221384A (en) Optical character reader
JP2669434B2 (en) Optical character reader
JP2881762B2 (en) Optical character reading device
JPH01177177A (en) Optical character reader
JP2925275B2 (en) Optical character reader
JP2925300B2 (en) Optical character reader
JPH01199287A (en) Optical character reader
JPS63120388A (en) Optical character reader
JPH087773B2 (en) Optical character reader
JPS6278686A (en) Optical character reader
JP2514660B2 (en) Optical character reader
JPS63146188A (en) Optical character reader
JPH0731716B2 (en) Optical character reader