JPH0578065B2 - - Google Patents
Info
- Publication number
- JPH0578065B2 JPH0578065B2 JP59098955A JP9895584A JPH0578065B2 JP H0578065 B2 JPH0578065 B2 JP H0578065B2 JP 59098955 A JP59098955 A JP 59098955A JP 9895584 A JP9895584 A JP 9895584A JP H0578065 B2 JPH0578065 B2 JP H0578065B2
- Authority
- JP
- Japan
- Prior art keywords
- barcode
- character
- black
- identification
- image sensor
- 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
Links
Landscapes
- Character Input (AREA)
Description
【発明の詳細な説明】
〔1〕 技術分野
本発明は紙面上に記載された文字・符号等を読
取るとともに、バーコード等のコード情報を識別
し得ることを特徴とする光学的読取装置に関する
ものである。[Detailed Description of the Invention] [1] Technical Field The present invention relates to an optical reading device that is capable of reading characters, codes, etc. written on paper and identifying code information such as barcodes. It is.
〔2〕 従来技術とその問題点
デパート、スーパーマーケツト等で単価の異な
る多くの商品に関する販売情報を迅速かつ正確に
得るためには、ポイント オブ セールス
(POS)と呼ばれるシステムが普及している。こ
のシステムでは、商品ごとに品名コード、価格、
製造番号、メーカー等の商品情報を記載した“商
品タグ”がつけられており、これらの中から必要
な項目を自動的に光学的又は磁気的な読取装置で
読取つて、結果をコンピユータへ入力し、データ
処理するのが通例である。しかし現実の商品流通
の過程では、前記のタグに記載の商品情報の表示
形式は不統一であり、例えば食料品、雑貨類はバ
ーコードと数字で表示され、又衣料品類は文字と
数字の組み合せにより表示されている。このよう
な場合、商品情報を読取るためにはそれぞれの表
示様式に適した読取装置を複数設置しておく必要
があり、同一の販売拠点でいくつかの同じ機能の
装置を使いわけしなければならないという問題が
あつた。[2] Prior art and its problems A system called Point of Sales (POS) has become widespread in order to quickly and accurately obtain sales information about many products with different unit prices at department stores, supermarkets, etc. In this system, each product has a product name code, price,
A "product tag" containing product information such as the serial number and manufacturer is attached, and the necessary items from these are automatically read with an optical or magnetic reader and the results are input into a computer. , it is customary to process data. However, in the actual process of product distribution, the display format of product information on the tags described above is inconsistent; for example, food items and miscellaneous goods are displayed using barcodes and numbers, and clothing items are displayed using a combination of letters and numbers. It is displayed by. In such cases, in order to read product information, it is necessary to install multiple reading devices suitable for each display format, and several devices with the same function must be used at the same sales location. There was a problem.
また文字とバーコードに対応するそれぞれ独立
した識別部を有し、両者の識別結果に基づいて最
終的な認識を行うことを特徴とする光学的装置と
して、特開昭57−182284号公報あるいは特開昭57
−182285号公報に開示されたものがある。しかし
バーコードおよび文字をそれぞれ並列で識別し、
両者の識別結果の中、どちらか一方の識別結果を
出力するものであるので、汚れなどのノイズの影
響をうけて誤識別となつたり、両方の識別手段が
それぞれ必要であるため、装置が高価になる欠点
があつた。 In addition, as an optical device characterized by having independent identification sections corresponding to characters and barcodes, and performing final recognition based on the identification results of both, Japanese Patent Laid-Open No. 182284/1984 or Opening 57
-There is one disclosed in Publication No. 182285. However, by identifying barcodes and characters in parallel,
Since it outputs only one of the two identification results, it may be affected by noise such as dirt, resulting in incorrect identification, and the equipment may be expensive as both types of identification means are required. It had some drawbacks.
第1図は従来のバーコードおよび文字を読取る
装置の一例である。Aがバーコードを識別し、B
が文字を識別する。1は2次元のイメージセンサ
であり、2は増幅回路である。3及び5は二値化
回路で4はバーコードの識別部である。6は文字
の識別部である。7はバーコードか文字かを判定
する手段であり、バーコードの識別部4および文
字の識別部6の両方から送られてくると同時に行
われた識別結果をもとにそのどちらかを決めてい
るもので、バーコード識別のAおよび文字識別B
のいづれも並行して同時に動作している。このた
め前述のように、汚れなどのノイズの影響をうけ
やすいことや、2系列の識別部が必要なため、高
価となる。 FIG. 1 is an example of a conventional bar code and character reading device. A identifies the barcode and B
identifies characters. 1 is a two-dimensional image sensor, and 2 is an amplifier circuit. 3 and 5 are binarization circuits, and 4 is a barcode identification section. 6 is a character identification part. 7 is a means for determining whether it is a barcode or a character, which is determined based on the identification results sent from both the barcode identification section 4 and the character identification section 6 and carried out at the same time. barcode identification A and character identification B
Both are running in parallel. For this reason, as described above, it is susceptible to noise such as dirt and requires two series of identification sections, which makes it expensive.
〔3〕 発明の目的
本発明の目的は上記の従来技術の問題点を解決
し、同一のイメージセンサを用いて、文字とバー
コードの両者を、他に何ら部品を交換又は付加す
ることなしに自動的に読取ることのできる改良さ
れた光学的読取装置を提供することである。[3] Purpose of the invention The purpose of the present invention is to solve the problems of the prior art described above, and to print both characters and barcodes using the same image sensor without replacing or adding any other parts. An object of the present invention is to provide an improved optical reading device that can be read automatically.
また本発明の別の目的は、まずバーコードであ
るか文字であるかを判定してから識別することに
より読取り性能の良い装置を提供することにあ
る。さらに他の目的は、バーコードおよび文字を
一つの識別部で識別することにより、安価な読取
装置を提供することにある。 Another object of the present invention is to provide a device with good reading performance by first determining whether it is a bar code or a character and then identifying it. Still another object is to provide an inexpensive reading device by identifying barcodes and characters with one identification section.
〔4〕 発明の開示 本発明の構成を第2図に示す。[4] Disclosure of the invention The configuration of the present invention is shown in FIG.
スキヤナ11を人手12で持ち文字、符号、あ
るいはバーコード情報等の用紙13上の読取対象
を水平方向に走査するものとする。光源14で文
字等の読取対象の記載された用紙13を照射する
と、用紙上に記載された読取対象のパターンがレ
ンズ系15を介してイメージセンサ16上に結像
される。イメージセンサ16は光電変換素子を面
状(二次元)に配列したものが用いられる。用紙
13の背景領域と読取対象となる文字等の領域と
の反射光はそれぞれ異なるから、これらに対応し
た各光電変換素子で得られた信号は、増幅回路1
7を通り、二値化回路18に加えられ、レベル判
定により白・黒の二値化判定が行われる。例え
ば、“0”が背景領域(白)に対応し、“1”が文
字領域(黒)に対応する信号として出力される。
以下、イメージセンサ16の光電変換素子をセル
と称して説明する。 It is assumed that a scanner 11 is held by a human hand 12 and an object to be read on a paper 13, such as characters, codes, or barcode information, is scanned in the horizontal direction. When the light source 14 illuminates the paper 13 on which objects to be read, such as characters, are written, the pattern of the objects to be read written on the paper is imaged onto the image sensor 16 via the lens system 15 . The image sensor 16 is one in which photoelectric conversion elements are arranged in a planar (two-dimensional) manner. Since the reflected light from the background area of the paper 13 and the areas such as characters to be read are different, the signals obtained by the corresponding photoelectric conversion elements are transmitted to the amplifier circuit 1.
7, the signal is added to the binarization circuit 18, and the level is determined to determine whether the signal is converted into white or black. For example, "0" is output as a signal corresponding to the background area (white), and "1" is output as a signal corresponding to the character area (black).
Hereinafter, the photoelectric conversion element of the image sensor 16 will be described as a cell.
文字、又は符号を読取る場合イメージセンサ1
6上の結像が第3図のごとくであつたとすると、
この第3図はイメージセンサの各セルと、二値化
回路18からの二値化信号との対応例を示すこと
になる。今、n×m個のセルで構成されるパター
ンを画面と称すると、二値化回路18は最上行
L1のB1列から順次B2,B3,…Bn列に対応する
信号(“0”/“1”)を出力し、次に次行L2の
B1,B2,…Bn列、その後L3行、最後にLm行の
B1,…Bn列に対応する信号を出力することによ
り1画面の走査を終える。 Image sensor 1 when reading characters or codes
If the image formation on 6 is as shown in Figure 3, then
FIG. 3 shows an example of the correspondence between each cell of the image sensor and the binarized signal from the binarization circuit 18. Now, if a pattern consisting of n×m cells is called a screen, the binarization circuit 18 is
Outputs signals (“0”/“1”) corresponding to columns B2, B3, ...Bn sequentially from column B1 of L1, and then outputs signals (“0”/“1”) corresponding to columns B2, B3, ...
B1, B2, ...Bn columns, then L3 rows, and finally Lm rows
Scanning of one screen is completed by outputting signals corresponding to columns B1, . . . Bn.
次にバーコードの1列を第5図に示し、これを
走査して得られた二値化データの一例を第4図に
示す。判定回路19は文字(記号を含む)である
か、バーコードであるかの判定を行なうものであ
る。バーコードの識別は第4図に示すようにLh
行、Bk列に位置するセル30を使用していると
して説明する。判定回路19の構成を第6図に示
す。 Next, one row of the barcode is shown in FIG. 5, and an example of the binarized data obtained by scanning this barcode is shown in FIG. 4. The determination circuit 19 determines whether it is a character (including symbols) or a bar code. Barcode identification is as shown in Figure 4.
The following explanation assumes that cell 30 located in row Bk is used. The configuration of the determination circuit 19 is shown in FIG.
任意の列、例えばBk列あるいはBkの左右を含
めた3列について、黒の存在する行が縦に何行連
続するかを以下のようにして求める。31はオア
ゲートであり、各行ごとにBk列およびその前後
つまりBk−1,Bk+1列のセルからの二値化信
号の“黒”の論理和を求めるものである。ある行
について論理和が1であれば、その行のBk−1,
Bk,Bk+1の少なくとも1つのセルに“黒”が
存在したことを示している。その行を黒の存在す
る行と称する。32は読出専用記憶装置(以下
ROMと称す)で33はレジスタである。L1行の
Bk−1,Bk,Bk+1列のセルの出力信号の論
理和の結果およびレジスタ33の内容をアドレス
としてROM32に入れ、ROM32の内容を読
出し、レジスタ33へセツトする。ただし、レジ
スタ33の内容はL1行の走査の前にクリアして
おく。次にL2行の論理和とレジスタ33の内容
をアドレスとしてROM32に入力し、内容を読
出して再びレジスタ33へセツトする。これを順
次Lm行まで繰返す。ROM32には“黒”の存
在する状態、つまり“黒”の連続する行数及び
“黒”の存在する位置をコード化して書き込んで
いるので、これを読出してレジスタ33にセツト
すると、レジスタ33から“黒”の連続する行数
及び“黒”の存在する位置を知ることができる。 For an arbitrary column, for example, the Bk column or three columns including the left and right sides of Bk, the number of consecutive black rows is determined as follows. Reference numeral 31 denotes an OR gate, which calculates the logical sum of "black" of the binary signals from the cells in the Bk column and the cells before and after it, that is, in the Bk-1 and Bk+1 columns, for each row. If the logical sum is 1 for a certain row, Bk-1 of that row,
This indicates that "black" existed in at least one cell of Bk and Bk+1. This row is called a row where black exists. 32 is a read-only storage device (hereinafter referred to as
(referred to as ROM) and 33 is a register. Line L1
The result of the logical sum of the output signals of the cells in columns Bk-1, Bk, and Bk+1 and the contents of the register 33 are input into the ROM 32 as addresses, and the contents of the ROM 32 are read and set in the register 33. However, the contents of the register 33 are cleared before scanning the L1 line. Next, the logical sum of the L2 row and the contents of the register 33 are input to the ROM 32 as an address, and the contents are read out and set in the register 33 again. Repeat this sequentially up to the Lm line. The state in which "black" exists, that is, the number of consecutive "black" lines and the position in which "black" exists, are coded and written in the ROM 32, so when this is read and set in the register 33, it is written from the register 33. It is possible to know the number of consecutive lines of "black" and the position where "black" exists.
認識の結果が文字かバーコードかの判定は次の
ようにして行う。L1行の列Bk−1,Bk、及び
Bk+1における論理和をA1,Lm行の列Bk−
1,Bk及びBk+1の論理和の結果をAmとする。 Determination as to whether the recognition result is a character or a barcode is performed as follows. Columns Bk−1, Bk of row L1, and
The logical sum in Bk+1 is A1, column Bk− of row Lm
Let Am be the result of the logical sum of 1, Bk, and Bk+1.
またBk−1,Bk,Bk+1の論理和の“1”
が連続するときの行数をaとする。バーコードの
高さは文字の高さより大きいのでaが文字の大き
さか、それともバーコードの大きさかを調べる。
b,c,dを予め決めた定数とし、bは文字の最
小の大きさに対応、cは文字の最大の大きさに対
応、dはバーコードの最小の高さに対応するもの
としd>c>bとする。文字のときには論理和
“1”の連続する行の上下は論理和が“0”であ
つてイメージセンサの視野内にあり、かつb〓a
〓c、バーコードのときには、adとなる。こ
れで文字とバーコードを判別でき、文字であると
きは信号CHAをバーコードであるときは信号
BARを出力する。 Also, “1” of the logical sum of Bk−1, Bk, and Bk+1
Let a be the number of consecutive lines. Since the height of the barcode is greater than the height of the characters, check whether a is the size of the characters or the size of the barcode.
Let b, c, and d be predetermined constants, where b corresponds to the minimum size of a character, c corresponds to the maximum size of a character, and d corresponds to the minimum height of a barcode. Let c>b. In the case of characters, the upper and lower rows of consecutive logical sums of "1" have a logical sum of "0" and are within the field of view of the image sensor, and b = a
〓c, when it is a barcode, it becomes ad. This allows you to distinguish between characters and barcodes, and when it is a character, the signal CHA is used, and when it is a barcode, the signal is
Output BAR.
Bk−1,Bk,Bk+1の論理和を求めて説明
したが、列の数には関係なく、各行ごとにB1か
らBn列までの論理和を求めて、文字かバーコー
ドかの判定を行なつてもよく、論理和を求めず
Bk列だけの二値化信号としてもよい。判定回路
19は文字かバーコードかを判定し、その判定結
果を識別回路22へ送る。なお判定回路19は文
字の場合、垂直方向の文字エリアも検出する。た
とえば第3図のような図面であれば、Lj行から
Ls行までが文字であると判定し、この文字エリ
ア内で識別するように信号VAを文字切出し回路
20へ送る。識別回路22は判定回路19から送
られる信号をもとにバーコード識別用の読出専用
記憶装置(以下バーコード用ROMと呼ぶ)23
か文字識別用の読出専用記憶装置(以下文字用
ROMと呼ぶ)24のどちらかを選択して、内容
を読出して識別処理を行なうものである。 The explanation was given by calculating the logical sum of Bk-1, Bk, and Bk+1, but regardless of the number of columns, the logical sum of columns B1 to Bn is calculated for each row to determine whether it is a character or a barcode. You can also do this without looking for a logical sum.
It is also possible to use a binary signal of only the Bk column. The determination circuit 19 determines whether it is a character or a barcode, and sends the determination result to the identification circuit 22. In the case of characters, the determination circuit 19 also detects the character area in the vertical direction. For example, in a drawing like Figure 3, start from the Lj line.
It is determined that the area up to the Ls line is a character, and a signal VA is sent to the character cutout circuit 20 to identify it within this character area. The identification circuit 22 uses a read-only storage device (hereinafter referred to as barcode ROM) 23 for barcode identification based on the signal sent from the determination circuit 19.
A read-only storage device for character identification (hereinafter referred to as character identification)
24 (referred to as ROM) is selected, the contents are read out, and identification processing is performed.
次に、文字およびバーコードのそれぞれの識別
方法について、まず文字識別から説明する。 Next, the methods for identifying characters and barcodes will be explained first, starting with character identification.
第3図に示すような画面が得られたとする。 Assume that a screen as shown in FIG. 3 is obtained.
この1画面分の信号は、文字パターンが第3図
の如くイメージセンサ16の視野内に正しく入つ
ている場合にのみ識別し出力する必要がある。そ
こでハンドスキヤナ11を移動させたとき、文字
パターンがイメージセンサ16の所定の位置にあ
るか否かが文字切出し回路20で判断される。こ
の位置判断は、例えば第1列B1が全部“白”で
且つ第2列B2がその少なくとも1行に“黒”が
含まれ、しかも最終列Bnが全部“白”のときに
正しい位置と判断するなど既知の方法による。文
字切出し回路20は判定回路19から文字である
という信号が送られてきたときのみ動作するもの
で、文字という信号が送られないとき、つまりバ
ーコードであるという場合には、位置の検出を行
なわない。 This signal for one screen needs to be identified and output only when the character pattern is correctly within the field of view of the image sensor 16 as shown in FIG. Therefore, when the hand scanner 11 is moved, the character cutting circuit 20 determines whether the character pattern is at a predetermined position on the image sensor 16. This position judgment is determined to be correct when, for example, the first column B1 is all "white", the second column B2 contains "black" in at least one row, and the last column Bn is all "white". By known methods such as The character cutting circuit 20 operates only when a signal indicating that it is a character is sent from the determination circuit 19, and when the signal indicating a character is not sent, that is, when it is a bar code, the position is detected. do not have.
従つて第3図のパターンに対応する正しい位置
で識別回路22により文字を認識する。識別は既
知の技術により得られ、例えば特開昭54−16133
号公報(特願昭52−81181号)の技術によるなら
ば次の通りである。即ち、各行L1〜Lm毎に、各
行で得られる“黒”つまり“1”の連続する長さ
や連続の発生数によつて当該行の特徴を分類す
る。例えば第3図の文字パターンでは、第j行Lj
は横線“−”、第j+2行Lj+2は右端の点“・”
という如く分類することになる。次に上方の行か
ら順に分類した特徴を組合せて識別を行う。例え
ばLj行の“−”と、Lj+1行の“−”との組合せ
では、同じ“−”であり、さらにLj+2行の
“・”を組合せして、“¬”とし、この組合せで文
字の識別範囲を狭め、次にLj+3行の特徴を、以
下LsN行の“−”までを順次特徴を組合せて範囲
を狭めれば最終的に“2”という数字として識別
できる。 Therefore, the character is recognized by the identification circuit 22 at the correct position corresponding to the pattern shown in FIG. Identification is obtained by known techniques, for example Japanese Patent Application Laid-Open No. 16133/1983.
According to the technology disclosed in Japanese Patent Application No. 52-81181, it is as follows. That is, for each line L1 to Lm, the characteristics of the line are classified based on the length of consecutive "black" or "1"s obtained in each row and the number of consecutive occurrences. For example, in the character pattern in Figure 3, the jth line Lj
is the horizontal line "-", and the j+2nd line Lj+2 is the rightmost point "・"
It will be classified as follows. Next, classification is performed by combining the features classified in order from the top row. For example, the combination of "-" on the Lj line and "-" on the Lj+1 line is the same "-", and when combined with the "・" on the Lj+2 line, it becomes "¬", and this combination is used to identify characters. If the range is narrowed, and then the features in the Lj+3 row are sequentially combined with the features up to "-" in the LsN row, the range can be finally identified as the number "2".
各行ごとに抽出する特徴の内容および各行ごと
の特徴を組合せた結果の内容については、文字用
ROM24に格納されている。識別回路22は判
定回路19から文字という信号が送られると、文
字用ROM24から特徴および特徴の組合せの内
容を読出し、文字を識別する。 For the contents of the features extracted for each line and the contents of the result of combining the features of each line,
It is stored in ROM24. When the identification circuit 22 receives a signal indicating a character from the determination circuit 19, it reads out the contents of features and combinations of features from the character ROM 24 and identifies the character.
次にバーコードで記されたコード情報を、ハン
ドスキヤナ11で走査したときの識別動作につい
て第4図を用いて説明する。第4図のパターンを
示す画面のL1行からLm行までの走査は、第3図
の文字パターンの場合と同じく、極めて短時間間
隔(例えば200μsec)で繰返され、イメージセン
サが1文字を通過する間に、多数回の走査が行わ
れることになる。 Next, the identification operation when code information written in a barcode is scanned by the hand scanner 11 will be explained using FIG. 4. The scanning from line L1 to line Lm of the screen showing the pattern in Figure 4 is repeated at extremely short intervals (for example, 200 μsec), as in the case of the character pattern in Figure 3, until the image sensor passes through one character. During this time, multiple scans will be performed.
バーコードを識別する場合、n×m個のセルの
うち、少なくとも1セルだけを使用し、このセル
に出現する“黒”または“白”の走査回数をカウ
ントし、このカウント数から長幅の黒バーか短幅
の黒バーあるいは長幅の白バーか短幅の白バーか
を判断し、識別する。 When identifying a barcode, use at least one cell out of n x m cells, count the number of times "black" or "white" appears in this cell, and use this count to determine the length of the long width. Determine and identify whether it is a black bar, a short black bar, a long white bar, or a short white bar.
21は白/黒バーカウンタであり、判定回路1
9からバーコードと判定したとき送られた信号の
ときのみ動作するもので“白”“黒”の走査回数
をカウントする。 21 is a white/black bar counter, and the judgment circuit 1
It operates only when a signal is sent from 9 when it is determined to be a bar code, and counts the number of "white" and "black" scans.
白/黒バーカウンタ21の構成例を第7図に示
す。 An example of the configuration of the white/black bar counter 21 is shown in FIG.
前述のようにLh行、Bk列に位置するセル30
を使用しているとして説明する。 As mentioned above, cell 30 located in row Lh, column Bk
Explain as if you are using .
第2図の構成例において、二値化回路18にて
所定のセル30が“白”、“黒”であるか、それに
対応する信号“0”“1”を色フラグ(1)13へセ
ツトする。次の画面の走査のとき、セル30の信
号を色フラグ(1)43へセツトする場合に前の色フ
ラグ(1)43の内容を色フラグ(2)44へセツトす
る。これで、色フラグ(2)44の内容は色フラグ(1)
43の状態よりも前の走査の状態を示しているこ
とになる。 In the configuration example shown in FIG. 2, the binarization circuit 18 determines whether a predetermined cell 30 is "white" or "black" and sets the corresponding signal "0" or "1" to the color flag (1) 13. do. When scanning the next screen, when setting the signal of the cell 30 to the color flag (1) 43, the contents of the previous color flag (1) 43 are set to the color flag (2) 44. Now, the content of color flag (2) 44 is color flag (1)
This indicates the scanning state prior to the state of No. 43.
照合回路45では色フラグ(1)43と色フラグ(2)
44との内容を比較し、同じときには“白”か
“黒”が続いているものでカウンタ46の内容を
加算する。色フラグ(1)43と色フラグ(2)44との
内容が異なるときには、“白”及び“黒”が変化
したときであり、すなわちバーの幅の走査を終え
たことを示す。この場合には、照合回路45から
正規化回路48へ信号を送るとともに、カウンタ
46の内容を正規化回路48へ送りカウンタ46
の内容をクリアする。 In the matching circuit 45, color flag (1) 43 and color flag (2)
44, and if they are the same, the contents of the counter 46 are added based on whether "white" or "black" continues. When the contents of color flag (1) 43 and color flag (2) 44 are different, it means that "white" and "black" have changed, that is, it indicates that scanning of the bar width has been completed. In this case, the verification circuit 45 sends a signal to the normalization circuit 48, and also sends the contents of the counter 46 to the normalization circuit 48.
Clear the contents of.
もし用紙13にゴミ等の異物が付着していたり
汚れがある場合には、バーコードと誤まつて加算
されることがある。 If the paper 13 has foreign matter such as dust attached or is dirty, it may be mistakenly added as a barcode.
本発明ではこのような誤まりを防ぐために、判
定回路19でバーコードと判定されて、判定回路
19から信号が照合回路45に送られたときにカ
ウンタ46の内容を加算するものである。このた
め、小さなノイズなどで誤まることがない。 In the present invention, in order to prevent such errors, the contents of the counter 46 are incremented when the determination circuit 19 determines that it is a bar code and the signal is sent from the determination circuit 19 to the verification circuit 45. This prevents errors caused by small noises.
また、ハンドスキヤナ11を手で動かすので、
人が異なつたり、同一人でもその都度、手の移動
速度は異なるため、各バーに対するカウント数が
違つてくる。このようなスキヤナの移動速度の影
響は本発明において、次のようにして解決されて
いる。 Also, since the hand scanner 11 is moved by hand,
The number of counts for each bar will be different because different people or even the same person move their hands at different speeds each time. In the present invention, the influence of the moving speed of the scanner is solved as follows.
すなわち第5図に示すようなバーコード情報に
はスタートマーク、ストツプマークが両端に付い
ており、この幅はあらかじめ定められている。 That is, barcode information as shown in FIG. 5 has a start mark and a stop mark at both ends, and the width thereof is predetermined.
ハンドスキヤナ11を移動させながら読取ると
きには、このスタートマークあるいはエンドマー
クを最初に走査することになるが、まず最初の
“黒”の状態であるときのカウンタ46の内容を
基準数メモリ47に格納し、このカウント数で手
の移動速度の違いを補正する。 When reading while moving the hand scanner 11, this start mark or end mark is scanned first, but first the contents of the counter 46 in the initial "black" state are stored in the reference number memory 47, This count corrects for differences in hand movement speed.
次に正規化回路48はスタートマークあるいは
エンドマークであるときのカウント数である基準
数メモリ47の内容Aにより、各白、黒の状態の
カウント数Bがカウンタ46から送られてくるの
で、B/A×a(こゝにaはあらかじめ定める定
数)である。で正規化し、ハンドスキヤナの移動
速度の影響をなくしている。 Next, the normalization circuit 48 receives the count number B for each white and black state from the counter 46 according to the content A of the reference number memory 47, which is the count number at the start mark or end mark. /A×a (where a is a predetermined constant). is normalized to eliminate the influence of the hand scanner's movement speed.
正規化回路48からの出力は各バー幅に対応す
る値が得られる。 As the output from the normalization circuit 48, values corresponding to each bar width are obtained.
バー区分回路49は正規化回路48から得られ
るバー幅に対応する値と、照合回路45から得ら
れる“白”“黒”に対応する信号から、“白”“黒”
バーの区別と、バー幅の区別とを行ない、識別回
路22へ送る。識別回路22はスタートマークか
らエンドマークあるいは逆にエンドマークからス
タートマークまで情報が得られたとき、“白”
“黒”バーのそれぞれの幅の出現順序により数字、
記号等を識別する。 The bar classification circuit 49 selects "white" and "black" from the value corresponding to the bar width obtained from the normalization circuit 48 and the signal corresponding to "white" and "black" obtained from the matching circuit 45.
The bars are distinguished and the bar widths are distinguished and sent to the identification circuit 22. The identification circuit 22 outputs "white" when information is obtained from the start mark to the end mark or conversely from the end mark to the start mark.
Numbers, depending on the order of appearance of each width of the “black” bar,
Identify symbols, etc.
識別する際にバーコード用ROM23から識別
に該当する内容を読出し、識別する。 At the time of identification, the content corresponding to the identification is read from the barcode ROM 23 and identified.
例えば第5図のバーコード上を、スキヤナ11
を左から右に移動させた場合の動作の説明の一部
を第8図に示す。 For example, scan the barcode in Figure 5 using the scanner 11.
FIG. 8 shows a part of the explanation of the operation when moving from left to right.
51は画面の走査周期のクロツクを示すもの
で、制御及び二値化回路7にて“黒”“白”つま
り、“1”“0”に二値化された信号を52に示し
ている。“黒”の走査回数のカウントを53に
“白”の走査回数のカウント数を54に示し、5
5と56に“黒”と“白”のそれぞれの正規化値
を示している。 Reference numeral 51 indicates a clock for the scanning period of the screen, and reference numeral 52 indicates a signal binarized into "black" and "white", that is, "1" and "0" by the control and binarization circuit 7. The count of the number of scans for “black” is shown at 53, the count number of the number of scans for “white” is shown at 54, and 5
5 and 56 show the normalized values of "black" and "white", respectively.
最初の“黒”と二番目の“黒”は、スタートマ
ークあるいはエンドマークであり、その次の
“白”から1文字が始まり“黒”“白”“黒”と続
き、2個目の“黒”で1文字が終るとあらかじめ
決められている。この場合の出現順序は“白”
1、“黒”4、“白”1、“黒”1と出現し、これ
は数字の“9”と対応しているので、識別結果は
“9”となる、以下同様である。 The first “black” and the second “black” are a start mark or an end mark, and one character starts from the next “white” and continues with “black”, “white”, “black”, and the second “ It is predetermined that one character ends with "black". In this case, the appearance order is “white”
1, "black" 4, "white" 1, and "black" 1 appear, which corresponds to the number "9", so the identification result is "9", and so on.
文字とバーコードの混在などを除去して、より
正確な結果を出力する。 Output more accurate results by removing mixtures of characters and barcodes.
バーコードの識別では1セルを使用した場合に
ついて説明したが、複数セルを使用してもよい。
バーコードの識別において、“白”“黒”の走査回
数を計数する方法で説明したが、“白”“黒”の出
現の走査時間をホールドして計数してもよい。 Although the case where one cell is used for barcode identification has been described, a plurality of cells may be used.
In barcode identification, the method of counting the number of scans of "white" and "black" has been described, but the scanning time of the appearance of "white" and "black" may be held and counted.
また、バーコードの正規化方法として、スター
トマーク、エンドマークで正規化することで説明
したが、特願昭50−99611号のように直前の“白”
“黒”と比較して正規化してもよい。 In addition, as a method of normalizing barcodes, we have explained that normalization is performed using the start mark and end mark, but as in Japanese Patent Application No. 1982-99611, the "white" mark immediately before the barcode is
It may be normalized by comparing it with "black".
以上説明したように、本発明の光学的読取装置
によれば、バーコード表示のタグ及び文字表示の
タグでも同一の装置で読取れるので、バーコード
表示あるいは文字表示の混在するPOSシステム
において、レジでのスピードアツプが可能とな
る。 As explained above, according to the optical reading device of the present invention, both barcode display tags and text display tags can be read by the same device. It is possible to increase the speed at
本発明では文字かバーコードかの区別を行なつ
た後、それぞれの識別を行なつているので、より
正確にタグを読取ることができる。 In the present invention, the tags can be read more accurately because the identification is performed after distinguishing between characters and barcodes.
さらに、本発明では一つ識別手段で文字および
バーコードをそれぞれ識別するので、安価な装置
を実現できる。 Furthermore, in the present invention, since characters and barcodes are each identified by one identification means, an inexpensive device can be realized.
第1図は従来のOCRおよびバーコード読取装
置を示す図、第2図は本発明の構成例を示す図、
第3図は文字又は符号のセンサ上の像を示す図、
第4図はバーコード情報のセンサ上の像を示す
図、第5図はバーコード情報の例、第6図は判定
回路の構成図、第7図は白/黒バーカウンタの構
成例を示す図、第8図はバーコード読取の場合の
説明図である。
1……2次元イメージセンサ、2……増幅回
路、3……二値化回路、4……バーコードの識別
部、5……二値化回路、6……文字の識別部、7
……判定する手段、11……スキヤナ、12……
手、13……用紙、14……光源、15……レン
ズ系、16……イメージセンサ、17……増幅回
路、18……二値化回路、19……判定回路、2
0……文字切出し回路、21……白/黒バーカウ
ンタ、22……識別回路、23……バーコード識
別用読出専用記憶装置、24……文字識別用読出
専用記憶装置、30……セル、31……オアゲー
ト、32……読出専用記憶装置(ROM)、33
……レジスタ、43……色フラグ(1)、44……色
フラグ(2)、45……照合回路、46……カウン
タ、47……基準数メモリ、48……正規化回
路、49……バー区分回路、51……画面走査周
期クロツク、52……二値化信号、53……黒走
査回数カウント、54……白走査回数カウント、
55……黒正規化値、56……白正規化値。
FIG. 1 is a diagram showing a conventional OCR and barcode reading device, FIG. 2 is a diagram showing a configuration example of the present invention,
FIG. 3 is a diagram showing an image of a character or code on a sensor;
Figure 4 is a diagram showing an image of barcode information on a sensor, Figure 5 is an example of barcode information, Figure 6 is a configuration diagram of a determination circuit, and Figure 7 is an example configuration of a white/black bar counter. 8 are explanatory diagrams in the case of barcode reading. DESCRIPTION OF SYMBOLS 1... Two-dimensional image sensor, 2... Amplification circuit, 3... Binarization circuit, 4... Barcode identification section, 5... Binarization circuit, 6... Character identification section, 7
...Means for determining, 11...Sukiyana, 12...
Hand, 13... Paper, 14... Light source, 15... Lens system, 16... Image sensor, 17... Amplification circuit, 18... Binarization circuit, 19... Judgment circuit, 2
0...Character cutting circuit, 21...White/black bar counter, 22...Identification circuit, 23...Read-only storage device for barcode identification, 24...Read-only storage device for character identification, 30...Cell, 31...OR gate, 32...Read-only storage device (ROM), 33
... Register, 43 ... Color flag (1), 44 ... Color flag (2), 45 ... Verification circuit, 46 ... Counter, 47 ... Reference number memory, 48 ... Normalization circuit, 49 ... Bar division circuit, 51...Screen scanning period clock, 52...Binarized signal, 53...Count the number of black scans, 54...Count the number of white scans,
55... Black normalized value, 56... White normalized value.
Claims (1)
るイメージセンサを用いて光学的に文字、記号等
とバーコードとを読取る手持ち式の光学読取装置
において、イメージセンサの視野内に文字、記号
等およびバーコードを結像させる手段と、イメー
ジセンサの各画素の出力信号をデジタル化する手
段と、イメージセンサの任意の列あるいは任意の
隣接する複数列のデジタル信号について行毎に黒
の論理和をとり各行に黒画素が存在するか否かを
上から下まで順次調べて黒が存在する行の連続す
る行数を求める手段と、前記黒が存在する行の連
続する行数をあらかじめ決めた定数と比較して文
字、記号等かバーコードであるかを判定する判定
手段と、文字記号およびバーコードの両方を識別
する1個の識別手段と、文字、記号等の識別に際
して参照する信号の組合せを記憶する第1の識別
用記憶装置と、バーコードードの識別に際して参
照する信号の組合せを記憶する第2の識別用記憶
装置とからなり、前記判定手段が文字、記号等で
あると判定した場合に前記識別手段は前記第1の
識別用記憶装置から信号の組合せの内容を読出し
て参照しながら文字、記号等として識別し、前記
判定手段がバーコードであると判定した場合には
前記識別手段は前記第2の識別用記憶装置から信
号の組合せを読出して参照しながらバーコードと
して識別することを特徴とする光学読取装置。1. In a hand-held optical reader that optically reads characters, symbols, etc. and barcodes using an image sensor consisting of a plurality of photoelectric conversion elements arranged in a planar arrangement, characters, symbols, etc. are detected within the field of view of the image sensor. and a means for forming an image of a barcode; a means for digitizing the output signal of each pixel of the image sensor; and a means for performing a black logical sum for each row of the digital signals of any column or any adjacent columns of the image sensor. means for determining the number of consecutive rows in which black exists by sequentially checking whether or not black pixels exist in each row from top to bottom; and a constant predetermining the number of consecutive rows in which black exists. A combination of a determination means for determining whether it is a character, symbol, etc. or a barcode by comparing it with a character, one identification means for identifying both a character symbol and a barcode, and a signal to be referred to when identifying a character, symbol, etc. and a second identification storage device that stores a combination of signals to be referred to when identifying a barcode code. The identification means reads the content of the signal combination from the first identification storage device and identifies it as a character, symbol, etc. while referring to it, and when the determination means determines that it is a barcode, the identification means An optical reading device characterized in that the combination of signals is read out from the second identification storage device and identified as a barcode while being referenced.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59098955A JPS60241180A (en) | 1984-05-16 | 1984-05-16 | optical reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59098955A JPS60241180A (en) | 1984-05-16 | 1984-05-16 | optical reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60241180A JPS60241180A (en) | 1985-11-30 |
JPH0578065B2 true JPH0578065B2 (en) | 1993-10-28 |
Family
ID=14233509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59098955A Granted JPS60241180A (en) | 1984-05-16 | 1984-05-16 | optical reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60241180A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6385991A (en) * | 1986-09-30 | 1988-04-16 | Tokyo Electric Co Ltd | Bar code reader |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS584486A (en) * | 1981-07-01 | 1983-01-11 | Sumitomo Electric Ind Ltd | optical reader |
-
1984
- 1984-05-16 JP JP59098955A patent/JPS60241180A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS60241180A (en) | 1985-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4748317A (en) | Optical reader | |
US5128527A (en) | Apparatus for reading a bar code | |
US4817185A (en) | Optical character reader | |
US4797940A (en) | Optical character reader | |
JPH0354388B2 (en) | ||
JPH0421915B2 (en) | ||
JPH0578065B2 (en) | ||
US5519199A (en) | Method and apparatus for detecting and storing bar bode data and re-detecting undetected data | |
JPS5841542B2 (en) | optical character reader | |
JPS5981766A (en) | Optical reading device | |
JPS584486A (en) | optical reader | |
JPS6160186A (en) | optical reader | |
JP2953143B2 (en) | Barcode reading device and barcode reading method | |
JP3329969B2 (en) | Barcode reading method and barcode reader | |
JP2573665B2 (en) | Optical character reader | |
JPH07134757A (en) | Display with two-dimensional code and two-dimensional code reader | |
JP2710280B2 (en) | Optical character reader | |
JP2881762B2 (en) | Optical character reading device | |
JPS62236085A (en) | Optical reader | |
JPS6229837B2 (en) | ||
JPH0799531B2 (en) | Optical character reader | |
JPH0731716B2 (en) | Optical character reader | |
JPH0469785A (en) | Optical information reader | |
JPS594064B2 (en) | character reading device | |
JPS641831B2 (en) |