JPS5841542B2 - optical character reader - Google Patents

optical character reader

Info

Publication number
JPS5841542B2
JPS5841542B2 JP52014807A JP1480777A JPS5841542B2 JP S5841542 B2 JPS5841542 B2 JP S5841542B2 JP 52014807 A JP52014807 A JP 52014807A JP 1480777 A JP1480777 A JP 1480777A JP S5841542 B2 JPS5841542 B2 JP S5841542B2
Authority
JP
Japan
Prior art keywords
character
scanner
characters
detected
field
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
Application number
JP52014807A
Other languages
Japanese (ja)
Other versions
JPS5399827A (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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP52014807A priority Critical patent/JPS5841542B2/en
Publication of JPS5399827A publication Critical patent/JPS5399827A/en
Publication of JPS5841542B2 publication Critical patent/JPS5841542B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明は読取り文字フィールドの一定位置の文字とそ
れ以外の文字の文字セットが異なるフィールドを読取る
光学式文字読取り装置に′関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an optical character reading device for reading a field in which a character at a fixed position in a reading character field and other characters have different character sets.

近年、百貨店、スーパーマーケット等の小売業界に於て
、勘定場における会計時間の短縮による接客サービスの
向上、誤キーインによるインプットミスの防止、電算機
による会計管理、在庫管理、補充発注業務の自動化等を
計るため、商品の値札に印刷された文字を手で走査する
ことにより光学的に読取り、PO8装置に自動入力する
装置が開発され実用化されている。
In recent years, in the retail industry such as department stores and supermarkets, improvements have been made to improve customer service by shortening checkout time at checkout counters, to prevent input errors caused by incorrect key-ins, and to automate accounting management, inventory management, and replenishment ordering operations using computers. To measure prices, a device has been developed and put into practical use that optically reads the characters printed on product price tags by manually scanning them and automatically inputs them into a PO8 device.

この場合、値札に印刷される文字としては例えば、商品
の類別、品目、取引先、品番、色、サイズ、価格等があ
るが、人間の操作性やコストの点から値札を大きくする
のは適当ではなく、従って、これらの項目を複数桁にわ
たって印刷する必要がある。
In this case, the characters printed on the price tag include, for example, the product type, item, business partner, product number, color, size, price, etc., but it is not appropriate to make the price tag large from the viewpoint of human operability and cost. Therefore, these items need to be printed over multiple digits.

この複数桁にわたる項目を人間が手で走査する場合、誤
操作による同一行の二度読み、読み飛ばし、入力順の間
違い等が起こる可能性が十分ありうるので、この対策と
して、各行の項目を識別するためのファンクション文字
をフィールドの一定位置(たとえば左端)に印刷してお
き、光学式文字読取装置で読んだ結果をPO8装置がチ
ェックし、誤操作の場合は操作者に知らせるという方法
がとられている。
When humans manually scan these multi-digit items, there is a good chance that errors will occur such as reading the same line twice, skipping something, or inputting the wrong order, so as a countermeasure to this, we can identify the items on each line. The system uses a method in which function characters are printed at a certain position in the field (for example, on the left edge), and the PO8 device checks the results of reading with an optical character reader and notifies the operator in the event of an incorrect operation. There is.

この商品値札の場合、見易さや、データ処理の行いやす
さの点から、項目は数字、ファンクション文字は英字あ
るいは特殊記号という様に異なる文字セットを用いフィ
ールド内の位置もファンクション文字は左端という様に
分離されているのが一段的である。
In the case of this product price tag, for ease of viewing and data processing, different character sets are used, such as numbers for items and letters or special symbols for function characters, and function characters are positioned at the left end of the field. It is one stage that is separated into two.

第1図に商品値札の一例を示す。しかして、この値札上
の文字フィールドを読む場合、走査器で正しく文字上を
走査するために左右方向の何れでも操作者の操作しやす
い方向に走査可能であることが要求される。
Figure 1 shows an example of a product price tag. Therefore, when reading the character field on the price tag, in order to correctly scan the characters with a scanner, it is required to be able to scan in either the left or right direction in a direction that is easy for the operator to operate.

この様に一定位置にファンクション文字が印刷しである
文字フィールドを読む手動走査形光学式文字読取り装置
が開発され実用化されているが、従来のものはフィール
ド内の読取り中の文字がファンクション文字であるか、
項目内容を表わす文字であるかの識別を行えなかった。
In this way, manual scanning type optical character reading devices have been developed and put into practical use that read a character field with function characters printed in a fixed position, but in conventional devices, the characters being read in the field are function characters. Is there?
It was not possible to identify whether the characters represented the item contents.

例えば第2図に示す様にフィールドの左端にファンクシ
ョン文字1を配置するとともに右端側に桁数を揃えるた
めの特殊文字2を配置し、このファンクション文字1と
特殊文字2との間に項目内容を表わす数字が配置された
フィールドを読取る場合、走査器の移動方向が左から右
の場合は検出した第1文字がファンクション文字であり
、第2文字以降が項目内容を表わす文字であることを識
別できるが、走査器の移動方向が右から左の場合は検出
した第1文字は上記特殊文字及び項目内容を表わす数字
であることを識別できるが、ファンクション文字はフィ
ールド終了を検知して初めてファンクション文字であっ
たことが判明するだけで、文字の認識を行う時点におい
てはファンクション文字であることを識別することはで
きない。
For example, as shown in Figure 2, function character 1 is placed at the left end of the field, special character 2 is placed at the right end to align the number of digits, and the item content is placed between function character 1 and special character 2. When reading a field containing numbers, if the direction of movement of the scanner is from left to right, it is possible to identify that the first character detected is a function character, and the second and subsequent characters are characters that represent the item contents. However, if the direction of movement of the scanner is from right to left, the first character detected can be identified as the above special character and a number representing the item content, but the function character is only recognized as a function character after the end of the field is detected. It is not possible to identify that the character is a function character at the time the character is recognized.

従って、検出した文字の認識を行う場合、ファンクショ
ン文字はファンクション文字だけが属する文字セットの
識別辞書、項目内容を表イつす文字はそれが属する文字
セットの識別辞書という様に分離した文字セントの識別
辞書だけを限定使用して認識することができず1両方を
合わせた全文字セットの識別辞書を使用する必要があっ
た。
Therefore, when recognizing a detected character, function characters are stored in separate character cents, such as in the identification dictionary of the character set to which only the function characters belong, and for characters representing item contents, in the identification dictionary of the character set to which they belong. It was not possible to recognize characters by using only the identification dictionary, and it was necessary to use an identification dictionary for the entire character set including both.

このため従来の手動走査形文字読取装置においては、−
文字の認識に時間がかかるとともにファンクション文字
を項目・内容を表わす文字にまたはこの逆に誤読すると
いう問題があり、これらの問題は次の様な不具合を引き
起こす。
Therefore, in conventional manual scanning character reading devices, -
There are problems in that it takes time to recognize characters and that function characters are misread as characters representing items/contents or vice versa, and these problems cause the following problems.

すなわち、面走査器を用いた手動走査形光学式文字読取
り装置においては、コストヲ下げるため文字の検出切り
出しと認識とは単一のマイクロコンピュータ等のデータ
処理回路で逐次的に行うのが一般的であるが、この場合
、文字の認識を行っている間に次に読取るべき文字が面
走査器の視野内を通過してしまうと文字を読み飛ばして
しまうことになる。
In other words, in a manual scanning type optical character reading device using a surface scanner, character detection, extraction and recognition are generally performed sequentially by a single data processing circuit such as a microcomputer in order to reduce costs. However, in this case, if the next character to be read passes within the field of view of the surface scanner while the character is being recognized, the character will be skipped.

つまり人間の手操作に許容される走査器の移動速度の上
限はほぼ (文字の印字ピッチ) (1文字の認識時間)T アロ 1.s ラ、 15
C字’)認識時間が長い場合にはこの速度の上限が低く
なってしまう。
In other words, the upper limit of the movement speed of the scanner that is allowable for human manual operation is approximately (Character printing pitch) (One character recognition time) T Allo 1. s la, 15
C') If the recognition time is long, the upper limit of this speed will be low.

あるいは速度の上限が人間の操作性から規定される場合
は、認識時間をある長さ以下に抑えるため、読取り対象
文字の種類を減らす必要がある。
Alternatively, if the upper limit of speed is determined by human operability, it is necessary to reduce the types of characters to be read in order to keep the recognition time below a certain length.

さらに読取り対象文字の種類を減らすことができない場
合は認識時間を短縮するため認識回路を高速化する必要
があり、これはコスト高につながる。
Furthermore, if it is not possible to reduce the types of characters to be read, it is necessary to speed up the recognition circuit in order to shorten the recognition time, which leads to higher costs.

また、ファンクション文字と項目内容を表わす文字の間
の誤読はPO8装置に入力された場合チェックにより誤
入力は避けられるものの再試行が要求されるので、PO
8装置への入力効率が低下する。
In addition, if a misreading between a function character and a character representing item content is entered into the PO8 device, the incorrect input can be avoided by checking, but a retry will be required.
8 The input efficiency to the device decreases.

さらに両者間の誤読を減少させるため読取り精度を極め
て高いものとするか、例えば0CR−Bフォントの場合
、Sと5.Bと8.Dまたは0と0(零)、■と1.T
と7等の類似した文字を使用することを避けなければな
らない。
Furthermore, in order to reduce misreading between the two, the reading accuracy must be extremely high. For example, in the case of 0CR-B font, S and 5. B and 8. D or 0 and 0 (zero), ■ and 1. T
You must avoid using similar characters such as and 7.

以上は面走査の場合であるが、線走査器を用いた手動走
査形光学式文字読取り装置においても文字の検出切り出
しと認識とを逐次的に行うものについては面走査器と同
様な問題があった。
The above is a case of area scanning, but manual scanning type optical character reading devices using line scanners that sequentially perform character detection, extraction, and recognition have the same problems as area scanning devices. Ta.

この発明は上記の点に鑑みてなされたもので、フィール
ドの一定位置にあるファンクション文字とその他の項目
を表わす文字とを各々が属する文字セットの字種のみを
識別対象とすることにより読取対象字種が多く、高精度
の読取り性能を有し高速の手走査による読取りが可能で
かつ安価な光学式文字読取り装置を提供することを目的
とする。
This invention has been made in view of the above-mentioned points, and it is possible to distinguish between function characters and characters representing other items located at a certain position in a field by identifying only the character types of the character set to which each character belongs. It is an object of the present invention to provide an inexpensive optical character reading device that has a large number of characters, has high-precision reading performance, can be read by high-speed manual scanning, and is inexpensive.

以下この発明の一実施例を図面を参照して説明する。An embodiment of the present invention will be described below with reference to the drawings.

ここでは説明の都合上、第2図に示す様にフィールドの
左端がファンクション文字(英字)、右端が桁数を揃え
るための特殊文字(〉・・・)でその間に項目内容を表
わす数字が配置されたフィールドを例にとって説明する
For convenience of explanation, as shown in Figure 2, the left end of the field is a function character (alphabetic letter), the right end is a special character (>...) for aligning the number of digits, and between them are numbers representing the item contents. This will be explained by taking the field as an example.

第3図は手動走査器の構成を示すもので・、走査器本体
11には値札等の被読取り媒体10上に印刷された文字
像を入力する窓12が設けられるとともに内部に光源1
3、光学系14、面走査器15、増幅器16等が設けら
れる。
FIG. 3 shows the configuration of a manual scanner, in which a scanner body 11 is provided with a window 12 for inputting a character image printed on a medium 10 to be read such as a price tag, and a light source 1 is provided inside.
3, an optical system 14, a surface scanner 15, an amplifier 16, etc. are provided.

しかして、光源13により窓12を介して被読取り媒体
10上の文字が照射されることにより、その反射光が窓
12を介し光学系14に入射され、この入射光による文
字像が光学系14により面走査器15上に結像されるも
のである。
When the light source 13 illuminates the characters on the medium 10 to be read through the window 12, the reflected light enters the optical system 14 through the window 12, and the character image formed by this incident light is formed on the optical system 14. The image is formed on the surface scanner 15 by the following.

さらに面走査器15では入射された光信号を電気信号に
変換して出力し、この面走査器15より得られる文字像
に対応した信号が増幅器16に送られて増幅された後、
信号ケー・プル17を介して図示しない量子化回路へ送
られディジタル信号に変換されるものである。
Further, the surface scanner 15 converts the incident optical signal into an electrical signal and outputs it, and the signal corresponding to the character image obtained from the surface scanner 15 is sent to the amplifier 16 and amplified.
The signal is sent to a quantization circuit (not shown) via a signal cable 17 and converted into a digital signal.

第4図aは上記した面走査器15の平面構成を示すもの
で、縦NRビット、横NLビットの各メツシュが光電変
換特性を有し、水平方向または垂直方向に1ビツトずつ
順次出力することが可能な素子である。
FIG. 4a shows the planar configuration of the above-mentioned surface scanner 15, in which each mesh of vertical NR bits and horizontal NL bits has photoelectric conversion characteristics and sequentially outputs one bit at a time in the horizontal or vertical direction. This is an element that is capable of

NLおよびNRは文字が面走査器内に十分入り、かつフ
ィールド内の隣接文字または隣接行内の文字が十分には
入り込まないような適当な値とするかもしくはその様な
マスクをかけて使用する。
NL and NR are used at appropriate values, or with such masks, such that the character will fit sufficiently into the area scanner, but adjacent characters in the field or characters in adjacent lines will not fit sufficiently.

第4図aにおいて、21は面走査器内の黒ブロックの垂
直方向射影、22は水平方向射影である。
In FIG. 4a, 21 is a vertical projection of a black block within the surface scanner, and 22 is a horizontal projection.

これらの射影の作成方法を例えば第4図すに示す様に右
上のメツシュから左下のメツシュへとシリアルに出力す
る面走査器について説明する。
A method of creating these projections will be explained using a surface scanner that outputs serially from the upper right mesh to the lower left mesh as shown in FIG. 4, for example.

第4図すにおいて、23はNLビットのシフトレジスタ
、24.25はそれぞれオア回路、26はフリップフロ
ップ、27はNRビットのシフトレジスタであり、面走
査器15の出力信号15sと長さNLビットのシフトレ
ジスタ23の出力信号23Sの論理和信号24s’Pl
フレーム走査開始時にクリアされたシフトレジスタ23
に1フレームの期間中1メツシユ出力するごとに1ビッ
トシフI−L、て入力すれば、1フレ・−ム走査終了時
には垂直方向射影がシフトレジスタ23に作成される。
In FIG. 4, 23 is an NL-bit shift register, 24 and 25 are respective OR circuits, 26 is a flip-flop, and 27 is an NR-bit shift register. The logical sum signal 24s'Pl of the output signal 23S of the shift register 23
Shift register 23 cleared at the start of frame scanning
By inputting a 1-bit shift IL every time one mesh is output during one frame period, a vertical projection is created in the shift register 23 at the end of one frame scan.

また、上記フリップフロップ26は1行(水平方向のN
Lビットのメツシュ列)の中の黒ブロックを検出するも
ので、1行走査開始時リセットし、1メツシユ出力する
ごとに面走査器15の出力15sとこのフリップフロッ
プ26自身の出力の論理和25Sを入力すれば、1行走
査終了時に黒ブロックが存在した場合セット状態となる
Further, the flip-flop 26 has one row (N in the horizontal direction).
It detects a black block in a mesh string of L bits), and is reset at the start of scanning one row, and every time one mesh is output, the logical sum of 15s of the output of the surface scanner 15 and the output of this flip-flop 26 itself is 25s. If a black block is present at the end of one line scanning, a set state is entered.

このフリップフロップ26の出力をNRビットのシフト
レジスタ27に1行走査終了ごとにシフト入力してやれ
ば1フレーム走査終了時シフトレジスタ27には水平方
向射影が作成される。
If the output of the flip-flop 26 is shifted into the NR bit shift register 27 every time one row of scanning is completed, a horizontal projection is created in the shift register 27 at the end of one frame scanning.

しかして、前記垂直方向射影を用いることにより、面走
査器本体11の移動方向を検知することが可能となる。
Therefore, by using the vertical projection, it is possible to detect the moving direction of the surface scanner main body 11.

すなわち、まず文字フィールドの左側または右側のブラ
ンクを垂直方向が白ブロックのみかまたはノイズとみな
される黒ブロックしか存在しないことにより検知し、そ
の後、垂直方向射影の左右何れの部分が黒となるかを検
知することにより、例えば、第5図aの様に右側が黒と
なれば走査器本体11は左から右へ移動していると判定
でき、第5図すの様に左側が黒となれば走査器本体11
は右から左へ移動していると判定できろう 次に文字が面走査器15の視野内に侵入してくるのを待
ち、第5図aに示す様に垂直方向射影21および水平方
向射影22の内部に文字の幅、文字の高さに相当する黒
ブロックが入り込めば文字であると判定する。
That is, first, a blank on the left or right side of a character field is detected by the presence of only white blocks or only black blocks that are considered noise in the vertical direction, and then it is determined whether the left or right side of the vertical projection is black. By detecting, for example, if the right side is black as shown in Figure 5a, it can be determined that the scanner main body 11 is moving from left to right, and if the left side is black as shown in Figure 5, it can be determined that the scanner main body 11 is moving from left to right. Scanner body 11
It can be determined that the character is moving from right to left.Next, wait until the character enters the field of view of the surface scanner 15, and as shown in FIG. If a black block corresponding to the width and height of the character fits inside the character, it is determined that the character is a character.

この場合、面走査器15による走査パターンは上記した
垂直方向射影および水平方向射影の作成と平行して第6
図に示す様にシフトレジスタに格納制御される。
In this case, the scanning pattern by the surface scanner 15 is created in parallel with the creation of the above-described vertical projection and horizontal projection.
As shown in the figure, storage is controlled in a shift register.

第6図にオイて、31は面走査器15の出力信号が入力
されるシフトレジスタ、32は例えばノイズ消去、線幅
正規化、文字サイズ正規化等を行い認識しやすい形に変
換する前処理回路、33は前処理回路32からの出力信
号を格納するシフトレジスタである。
In FIG. 6, 31 is a shift register into which the output signal of the surface scanner 15 is input, and 32 is a preprocessing process that performs, for example, noise elimination, line width normalization, character size normalization, etc., and converts it into a form that is easy to recognize. The circuit 33 is a shift register that stores the output signal from the preprocessing circuit 32.

上記前処理回路32の出力はアンド回路34の一方の入
力端に供給され、このアンド回路34の他方の入力端に
はインンく一夕35を介して入力切換え信号36が供給
される。
The output of the preprocessing circuit 32 is supplied to one input terminal of an AND circuit 34, and the other input terminal of the AND circuit 34 is supplied with an input switching signal 36 via an input 35.

そしてこのアンド回路34の出力信号はオア回路37を
介してシフトレジスタ33に供給される。
The output signal of this AND circuit 34 is then supplied to the shift register 33 via an OR circuit 37.

このシフトレジスタ33の出力は文字認識回路39に送
られるとともにアンド回路38の一方の入力端に供給さ
れる。
The output of this shift register 33 is sent to a character recognition circuit 39 and also to one input terminal of an AND circuit 38.

そして、このアンド回路38には上記入力切換え信号3
6が供給され、その論理積出力は上記オア回路37を介
してシフトレジスタ33に供給される。
The AND circuit 38 receives the input switching signal 3.
6 is supplied, and the AND output thereof is supplied to the shift register 33 via the OR circuit 37.

この様にして面走査器15からの出力信号15sはシフ
トレジスタ31にシフトインされ、両射形により面走査
器15内に文字が検出されたらシフトレジスタ31のシ
フトクロックを停止することにより、シフトレジスタ3
1に格納することができる。
In this way, the output signal 15s from the surface scanner 15 is shifted into the shift register 31, and when a character is detected in the surface scanner 15 by both injections, the shift clock of the shift register 31 is stopped, and the shift register 31 is shifted into the shift register 31. register 3
1 can be stored.

この検出切り出された走査パターンは前処理回路32に
送られ、ノイズ消去、線幅正規化、文字サイズ正規化等
を行い認識しやすい形に変換されたのち、シフトレジス
タ33に入力され記憶される。
This detected and cut out scanning pattern is sent to the preprocessing circuit 32, where it is converted into an easily recognizable form through noise elimination, line width normalization, character size normalization, etc., and then input into the shift register 33 and stored. .

このシフトレジスタ33の出力は文字認識回路39に送
られ認識されるが、この文字認識回路39に送るとき入
力切換え信号36を1”にしてシフトレジスタ33の出
力をアンド回路38、オア回路31を介してそれ自身の
入力として戻すことにより、シフトレジスタ33内にそ
のパターンを残すことができる。
The output of the shift register 33 is sent to the character recognition circuit 39 and recognized. When sending the output to the character recognition circuit 39, the input switching signal 36 is set to 1" and the output of the shift register 33 is sent to the AND circuit 38 and the OR circuit 31. The pattern can be left in the shift register 33 by passing it back as its own input via the Shift Register 33.

これによりシフトレジスタ33には次の文字の検出切り
出しが行われるまで、前の文字パターンが残ることにな
る。
As a result, the previous character pattern remains in the shift register 33 until the next character is detected and extracted.

このようにして−文字ずつ検出切り出しを行い認識する
が、ある一定時間(この一定時間は走査器の移動速度の
許容範囲の上限および隣接フィールドとの間隔から定め
られる)経過しても文字が検出されないか、またはフィ
ールド紙端のブランクを検知することによりフィールド
の走査を終了を判定する。
In this way, each character is detected and recognized, but even after a certain period of time (this period of time is determined by the upper limit of the allowable range of the scanner's movement speed and the distance from the adjacent field), characters are still detected. The end of field scanning is determined by detecting whether the field is blank or by detecting a blank at the edge of the field.

このとき最後に検出切り出された文字パターンがシフト
レジスタ33内に残っている。
At this time, the character pattern detected and cut out last remains in the shift register 33.

また、文字の認識方法は特徴抽出方式、パターンマツチ
ング方式、ストローブアナリシス方式など様々な方法が
知られているが、認識対象文字が候補カテゴリの何れに
最も近いかを判定することに認識しているため、その属
する文字セットが限定されている場合には、その文字セ
ットだけを候補カテゴリとして認識する方が認識時間や
誤読に対して有利である。
In addition, various methods are known for character recognition, such as feature extraction, pattern matching, and strobe analysis. Therefore, if the character set to which the character belongs is limited, it is advantageous to recognize only that character set as a candidate category in order to reduce recognition time and reduce misreading.

例えばパターンマツチング方式は入カバターンと候補文
字の基準パターンの類似度(一致度)を算出して最も類
似度の高い候補文字を認識結果とする方法である。
For example, the pattern matching method is a method that calculates the degree of similarity (degree of coincidence) between an input cover pattern and a reference pattern of a candidate character, and selects the candidate character with the highest degree of similarity as the recognition result.

第1図は入力された文字パターンをそれが属する文字セ
ットの辞書で認識する方法を説明するためのもので、4
0はアドレスカウンタ、41はファンクション文字セッ
トの基準パターン(辞書)が記憶されている記憶装置(
以下第1の記憶装置41という)42は項目内容を表わ
す文字セットの基準パターン(辞書)が記憶されている
記憶装置(以下第2の記憶装置42という)であり、上
記第1の記憶装置41の出力はアンド回路43の一方の
入力端に供給され、第2の記憶装置42の出力はアンド
回路44の一方の入力端に供給される。
Figure 1 is for explaining how to recognize an input character pattern using the dictionary of the character set to which it belongs.
0 is an address counter, and 41 is a storage device in which the reference pattern (dictionary) of the function character set is stored (
A storage device 42 (hereinafter referred to as a first storage device 41) is a storage device (hereinafter referred to as a second storage device 42) in which a reference pattern (dictionary) of a character set representing item contents is stored. The output of the AND circuit 43 is supplied to one input terminal, and the output of the second storage device 42 is supplied to one input terminal of the AND circuit 44.

そしてアンド回路43の他方の入力端には辞書切換え信
号45が供給され、アンド回路44の他方の入力端には
インバータ46を介して上記辞書切換え信号45が供給
される。
The dictionary switching signal 45 is supplied to the other input terminal of the AND circuit 43, and the dictionary switching signal 45 is supplied to the other input terminal of the AND circuit 44 via an inverter 46.

これらのアンド回路43゜44の出力はオア回路47の
両入力端に供給され、このオア回路47の出力は類似度
計算回路48の一方の入力端に供給される。
The outputs of these AND circuits 43 and 44 are supplied to both input terminals of an OR circuit 47, and the output of this OR circuit 47 is supplied to one input terminal of a similarity calculation circuit 48.

この類似度計算回路48の他方の入力端には読取り対象
文字パターン信号が供給され、その類似度計算出力は最
大類似度を持つ候補文字を選択する類似度比較回路49
を介して書込み/読出し可能な記憶装置50(以下第3
の記憶装置50という)に供給され、アドレスカウンタ
51で指定されたアドレスに順次書込まれる。
A character pattern signal to be read is supplied to the other input terminal of this similarity calculation circuit 48, and the similarity calculation output is a similarity comparison circuit 49 that selects the candidate character having the maximum similarity.
A storage device 50 (hereinafter referred to as the third
(referred to as a storage device 50), and are sequentially written to addresses designated by an address counter 51.

すなわち、ファンクション文字セットの基準パターン(
辞書)を第1の記憶装置41に格納し、項目内容を表わ
す文字セットの基準パターン(辞書)を第2の記憶装置
42に格納しておき、読取り対象文字がファンクション
文字であるときは辞書切換え信号45を1”とし、項目
内容を表わす文字であるときは上記辞書切換え信号45
を”O”とすることにより辞書を選択し、その選択され
た辞書信号と読取り対象文字パターン信号と類似度計算
回路48に入力して類似度を計算する。
That is, the standard pattern of the function character set (
A dictionary) is stored in the first storage device 41, a reference pattern (dictionary) of a character set representing the item content is stored in the second storage device 42, and when the character to be read is a function character, the dictionary is switched. The signal 45 is set to 1'', and when the character represents the item content, the dictionary switching signal 45 is
is set to "O", a dictionary is selected, and the selected dictionary signal and character pattern signal to be read are input to the similarity calculation circuit 48 to calculate the similarity.

そして、その結果を類似度比較回路49に入力して最大
類似度を持つ候補文字を認識結果とし、この認識結果は
書込み及び読出し可能な記憶装置50のアドレスカウン
タ51で指定されたアドレスに順次書込んでゆく。
Then, the result is input to the similarity comparison circuit 49, and the candidate character having the maximum similarity is set as the recognition result, and this recognition result is sequentially written to the address specified by the address counter 51 of the writable and readable storage device 50. It gets crowded.

しかして、上記した読取り開始から読取り終了までの全
体的な制御を第8図のフロチャートに示す。
The overall control from the start of reading to the end of reading described above is shown in the flowchart of FIG.

すなわち、走査方向を検知して、第1文字を検出切り出
して走査方向が第2図において左から右であれば、ファ
ンクション文字セントの辞書により認識し、右から左で
あれば項目を表わす文字セットの辞書により認識する。
In other words, the scanning direction is detected, the first character is detected and cut out, and if the scanning direction is from left to right in Figure 2, it is recognized by the function character cent dictionary, and if it is from right to left, it is a character set representing the item. It is recognized by the dictionary.

そして第2文字以降の検出切り出しを行ったあと、フィ
ールド終端を検知し、終端が検知されると、走査方向が
左から右の場合は読取った順に答を出力することにより
読取り終了する。
After detecting and cutting out the second and subsequent characters, the end of the field is detected, and when the end is detected, if the scanning direction is from left to right, the reading is completed by outputting the answers in the order of reading.

また走査方向が右から左の場合は最後に検出切り出され
記憶装置に格納されている文字パターンをファンクショ
ン文字セットの辞書により認識したのち、ステップAに
て最後に認識された結果を捨て、読取りと逆順に答を出
力して読取りを終了する。
If the scanning direction is from right to left, the last character pattern detected and cut out and stored in the storage device is recognized using the dictionary of the function character set, and then the last recognized result is discarded in step A and read. Outputs the answer in reverse order and finishes reading.

この様にして一連の読取りを終了する。なお、前記実施
例では面走査器を使用した場合について説明したが、面
走査器に限らず線走査器を使用した場合にも適用できる
In this way, the series of reading is completed. In addition, although the case where a surface scanner was used was explained in the said Example, it is applicable not only when the surface scanner is used but also when the line scanner is used.

例えば第9図に示す様に線走査器60の視野をさえ切ら
ない位置にローラ61を取付け、このローラ61の回転
力を歯車62で発電機63の回転子に伝達し、発電機6
3により発生する電圧の正負で走査器本体11の移動方
向を検知できる。
For example, as shown in FIG. 9, a roller 61 is installed in a position that does not obstruct the field of view of the line scanner 60, and the rotational force of this roller 61 is transmitted to the rotor of a generator 63 by a gear 62.
The moving direction of the scanner main body 11 can be detected based on the positive and negative voltages generated by the sensor 3.

また文字の検出は歯車62が一定角度回転するごとに線
走査器の出力信号を記憶装置に格納すると同時に前記実
施例と同様な方法により垂直方向および水平方向射影を
作ることにより行える。
Further, character detection can be carried out by storing the output signal of the line scanner in a storage device every time the gear 62 rotates by a certain angle, and at the same time creating vertical and horizontal projections in the same manner as in the previous embodiment.

上記歯車62が一定角度回転するごとに線走査器の出力
信号を記憶装置に格納する方法としては、例えば歯車6
2の同一円周上に一定ピンチで孔をあけ、この孔の通過
を図示しないランプとソーラセルにより検知し、このタ
イミングで記憶装置に格納する方法がある。
As a method of storing the output signal of the line scanner in a storage device every time the gear 62 rotates by a certain angle, for example,
There is a method in which a hole is drilled with a constant pinch on the same circumference of 2, the passage through the hole is detected by a lamp and a solar cell (not shown), and the data is stored in a storage device at this timing.

また、前記実施例ではフィールド左端の文字のみが他の
文字と異なる文字セットに含まれる例について説明した
が、左端の2文字がファンクション文字である場合は、
検出切り出しされた文字パターンの記憶装置を2文字分
用意することにより同様に実現できる。
Furthermore, in the above embodiment, an example was explained in which only the characters at the left end of the field are included in a character set different from the other characters, but if the two characters at the left end are function characters,
A similar implementation can be achieved by preparing a storage device for two characters of detected and extracted character patterns.

さらに3文字以上の場合も同様である。The same applies to the case of three or more characters.

また、フィールドの両端にある場合は最初の文字をファ
ンクション文字セットの辞書で識別するだけで同様に実
現できる。
Also, if the characters are at both ends of the field, the same can be achieved by simply identifying the first character using the function character set dictionary.

また、記憶しておく文字パターンは特徴抽出方式の場合
は抽出された特徴パターンでも良い。
Further, in the case of a feature extraction method, the character pattern to be stored may be an extracted feature pattern.

以上述べた様にこの発明によれば、走査方向を検知する
機能、検出した文字を次の文字が検出されるまで蓄えて
おく機能、識別対象文字種(候補カテゴリ)を入力文字
に応じて選択する機能、認識した結果を順次記憶する機
能を有するとともに文字を認識する時点でその文字がど
の文字セットに属するかが不明な場合は、それが属する
可能性の最も高い文字セットの辞書で暫定的に認識して
おくと同時にその検出切り出し、さらに前処理されたパ
ターンをフィールド走査終了時まで記憶しておき、間違
った文字セットの辞書で認識した文字については、フィ
ールド走査終了後、記憶しであるパターンを正しい文字
セントの辞書で認識し直すことにより、各文字をその属
する文字セットの辞書だけの参照による認識が可能とな
り、これらの点から、 (1)認識時間が短縮される。
As described above, according to the present invention, there is a function to detect the scanning direction, a function to store the detected character until the next character is detected, and a function to select the type of character to be identified (candidate category) according to the input character. It has a function to sequentially memorize the recognition results, and if it is unknown which character set the character belongs to at the time of recognizing the character, it is temporarily stored in the dictionary of the character set to which it is most likely to belong. At the same time as recognition, the detected cutout and preprocessed patterns are stored until the end of field scanning, and for characters recognized in a dictionary with the wrong character set, the pattern is memorized after field scanning is completed. By re-recognizing each character using a correct character cent dictionary, it becomes possible to recognize each character by referring only to the dictionary of the character set to which it belongs, and from these points, (1) the recognition time is shortened.

(2)走査器の移動速度の上限が高くなる。(2) The upper limit of the movement speed of the scanner is increased.

(3)異なる文字セット間の誤認が防止できる。(3) Misidentification between different character sets can be prevented.

(4)各文字セットの種類を多くできる。(4) Each character set can have many types.

(5)認識回路の低速化、すなわち回路の簡易化、低価
格化が計れる。
(5) It is possible to reduce the speed of the recognition circuit, that is, to simplify the circuit and reduce the cost.

など、種々の効果が得られるものである。Various effects can be obtained.

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

図面はこの発明の一実施例を説明するためのもので、第
1図は商品値札の一例を示す図、第2図はフィールドの
一例を示す図、第3図は面走査器を用いた手動走査形文
字読取り装置の構成を示す断面図、第4図a、bは面走
査器の構成および垂直、水平方向射影の作成方法の説明
図、第5図a。 bは走査器の移動方向の検知方法の説明図、第6図は検
出切り出しおよび前処理、格納を行うための制御ブロッ
ク図、第7図は入力された文字パターンをそれが属する
文字セットの辞書で認識する方法を説明するためのブロ
ック図、第8図は読取り制御を説明するためのフローチ
ャート、第9図は線走査器を用いた手動走査形文字読取
り装置の構成を示す断面図である。 11・・・走査器本体、15・・・面走査器、21・・
・黒ブロックの垂直方向射影、22・・・黒ブロックの
水平方向射影、41・・・ファンクション文字の基準パ
ターンが記憶されている記憶装置(第1の記憶装置)、
42・・・項目内容を表わす基準パターンが記憶されて
いる記憶装置(第2の記憶装置)、48・・・類似度計
算回路、49・・・類似度比較回路、50・・・読取り
結果を格納する記憶装置(第3の記憶装置)。
The drawings are for explaining one embodiment of the present invention. Fig. 1 shows an example of a product price tag, Fig. 2 shows an example of a field, and Fig. 3 shows an example of a product price tag. FIGS. 4a and 4b are cross-sectional views showing the structure of a scanning character reading device; FIG. b is an explanatory diagram of the method for detecting the moving direction of the scanner, Fig. 6 is a control block diagram for performing detection extraction, preprocessing, and storage, and Fig. 7 is an explanatory diagram of the input character pattern in the dictionary of the character set to which it belongs. FIG. 8 is a flow chart for explaining reading control, and FIG. 9 is a sectional view showing the configuration of a manual scanning type character reading device using a line scanner. 11... Scanner body, 15... Surface scanner, 21...
・Vertical projection of the black block, 22... Horizontal projection of the black block, 41... Storage device (first storage device) in which the reference pattern of the function character is stored;
42...Storage device (second storage device) in which a reference pattern representing item content is stored, 48...Similarity calculation circuit, 49...Similarity comparison circuit, 50...Reading result A storage device for storing (third storage device).

Claims (1)

【特許請求の範囲】[Claims] 1 フィールド上を走査しそのフィールド内の文字を検
出する走査器と、この走査器の走査方向を検知する手段
と、前記走査器から得られる文字パターンを1文字ごと
に検出切出しする手段と、この手段で検出切出しされた
文字パターンを次の文字パターンが検出切出しされるま
で少なくとも1文字分記憶する手段と、前記検知した走
査方向により候補カテゴリを選択しその選択した候補カ
テゴリで前記記憶した文字パターンを認識する手段と、
この手段の認識結果を前記走査器によるフィールド走査
が終了するまで記憶しておく手段と、前記走査器による
フィールド走査が終了したとき前記検知した走査方向に
より特定桁の少なくとも1文字に対して候補カテゴリを
切換えて認識し直し、対応する認識結果の記憶内容をそ
の認識し直した認識結果におきかえる手段とを具備した
ことを特徴とする光学式文字読取装置。
1. A scanner that scans a field and detects characters within the field, means for detecting the scanning direction of the scanner, means for detecting and cutting out character patterns obtained from the scanner character by character, and means for storing at least one character of the character pattern detected and cropped by the means until the next character pattern is detected and cropped; and means for selecting a candidate category based on the detected scanning direction and using the stored character pattern in the selected candidate category. a means of recognizing
means for storing the recognition result of the means until the field scanning by the scanner is completed, and a candidate category for at least one character in a specific digit according to the detected scanning direction when the field scanning by the scanner is completed; What is claimed is: 1. An optical character reading device comprising means for switching and re-recognizing the recognition results and replacing the stored contents of the corresponding recognition results with the re-recognized recognition results.
JP52014807A 1977-02-14 1977-02-14 optical character reader Expired JPS5841542B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52014807A JPS5841542B2 (en) 1977-02-14 1977-02-14 optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52014807A JPS5841542B2 (en) 1977-02-14 1977-02-14 optical character reader

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP59113072A Division JPS6037081A (en) 1984-06-04 1984-06-04 Pattern reading device

Publications (2)

Publication Number Publication Date
JPS5399827A JPS5399827A (en) 1978-08-31
JPS5841542B2 true JPS5841542B2 (en) 1983-09-13

Family

ID=11871303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52014807A Expired JPS5841542B2 (en) 1977-02-14 1977-02-14 optical character reader

Country Status (1)

Country Link
JP (1) JPS5841542B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5671168A (en) * 1979-11-16 1981-06-13 Toshiba Corp Character reader
JPS56144664A (en) * 1980-04-12 1981-11-11 Ricoh Co Ltd Manual sub-scan type reader
JPS5781674A (en) * 1980-11-08 1982-05-21 Toshiba Corp Input/output error detection system of slip editing device
US4468809A (en) * 1981-12-23 1984-08-28 Ncr Corporation Multiple font OCR reader
DE3337518A1 (en) * 1982-10-15 1984-04-26 Toyo Kogyo Co. Ltd., Hiroshima INLET SYSTEM FOR ROTARY PISTON ENGINES
JPS5999034A (en) * 1982-11-27 1984-06-07 Mazda Motor Corp Intake apparatus for rotary piston engine
JP2674020B2 (en) * 1987-04-22 1997-11-05 日本電気株式会社 Optical character recognition device
JP2744237B2 (en) * 1987-10-09 1998-04-28 富士通株式会社 Recognition control method

Also Published As

Publication number Publication date
JPS5399827A (en) 1978-08-31

Similar Documents

Publication Publication Date Title
CA1093694A (en) Portable ocr system
US5119433A (en) Method and system for locating the amount field on a document
US5452379A (en) Image capture and storage techniques in association with optical mark reading
JPH0221383A (en) Optical character reader
US4962432A (en) Selective retrieval of data from microfilm images of different forms by reading a memory index form cord (bar code) recorded on each image frame
JPS5841542B2 (en) optical character reader
EP0144006B1 (en) An improved method of character recognitionand apparatus therefor
JPH0421915B2 (en)
JP2722434B2 (en) Optical character reader
JP3329969B2 (en) Barcode reading method and barcode reader
JPS5981766A (en) Optical reading device
JPS5949628B2 (en) optical character reader
JPS61208584A (en) Character reader
JPH06111057A (en) Optical character reader
JPS6037081A (en) Pattern reading device
JPS62295192A (en) Optical character image reader
JP2514663B2 (en) Optical character reader
TW320710B (en)
JP2817025B2 (en) Barcode reader
JP2567852B2 (en) Optical character reader
JPH0469785A (en) Optical information reader
JPH01278393A (en) Form paper for image data reading apparatus
JPH0820669B2 (en) Image information recording / reading method
JP2881762B2 (en) Optical character reading device
JPH04223584A (en) Optical character reader