JPH065548B2 - Bar Code Reader Signal Processing Method - Google Patents

Bar Code Reader Signal Processing Method

Info

Publication number
JPH065548B2
JPH065548B2 JP1161317A JP16131789A JPH065548B2 JP H065548 B2 JPH065548 B2 JP H065548B2 JP 1161317 A JP1161317 A JP 1161317A JP 16131789 A JP16131789 A JP 16131789A JP H065548 B2 JPH065548 B2 JP H065548B2
Authority
JP
Japan
Prior art keywords
value
bar code
signal
amplitude
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1161317A
Other languages
Japanese (ja)
Other versions
JPH0325690A (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.)
SMK Corp
Original Assignee
SMK Corp
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 SMK Corp filed Critical SMK Corp
Priority to JP1161317A priority Critical patent/JPH065548B2/en
Publication of JPH0325690A publication Critical patent/JPH0325690A/en
Publication of JPH065548B2 publication Critical patent/JPH065548B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、バーコードリーダの信号処理方法に関するも
のである。
Description: TECHNICAL FIELD The present invention relates to a signal processing method for a bar code reader.

(従来の技術) 従来のバーコードリーダの信号処理は、第6図に示すよ
うに、光源1よりレンズ2を経てバーコード3を照射
し、該バーコード3からの反射光による光信号を光/電
変換部4でパルス状の電圧信号よりなるアナログ信号に
変換し、該アナログ信号を増幅部5で増幅し、増幅され
たアナログ信号を比較部6に入力し、該比較部6で基準
電圧発生部7からの基準電圧信号と比較して前記バーコ
ード3の白黒バー幅に対応したパルス信号に変換し、得
られたパルス信号をデコーダ8に入力してデコードして
いた。
(Prior Art) In the signal processing of a conventional bar code reader, as shown in FIG. 6, a bar code 3 is irradiated from a light source 1 through a lens 2 and an optical signal generated by reflected light from the bar code 3 is emitted. The electric / electrical conversion unit 4 converts the analog signal to a pulse-shaped voltage signal, the amplification unit 5 amplifies the analog signal, and the amplified analog signal is input to the comparison unit 6 and the comparison unit 6 outputs the reference voltage. The pulse signal corresponding to the black-and-white bar width of the barcode 3 is converted by comparison with the reference voltage signal from the generator 7, and the obtained pulse signal is input to the decoder 8 for decoding.

しかしながら、このようなバーコードリーダによる信号
処理方法では、分解能を向上しようとすると、ドットプ
リンタ等で印字したバーコードラベル、汚れたバーコー
ドラベル、ボイドやスポット等を多く有するバーコード
ラベルでは、読み取りが困難となる問題点があった。
However, in such a signal processing method using a bar code reader, in order to improve the resolution, when reading a bar code label printed by a dot printer, a dirty bar code label, or a bar code label having many voids and spots, There was a problem that became difficult.

即ち、第7図に示すようなドットプリンタにより印刷さ
れたバーコード3では、拡大すると第8図(A)に示す
ようになり、これを矢印方向に読み取ると第8図(B)
に示すようになり、バーコード3を構成しているドット
3aの隙間3bの箇所で誤パルスとなる問題点があっ
た。
That is, the barcode 3 printed by the dot printer as shown in FIG. 7 is enlarged as shown in FIG. 8 (A), and is read in the direction of the arrow as shown in FIG. 8 (B).
As shown in FIG. 3, there is a problem that an erroneous pulse occurs at the gap 3b between the dots 3a forming the barcode 3.

また、第9図(A)に示すようにスポット3cやボイド
3dを有するバーコード3では、スポット3cの箇所の
光/電変換をすると、第9図(B)に示すような波形に
なってパルス幅が標準より細くなり、またボイド3dの
光/電変換をすると、第9図(C)に示すような波形に
なってパルス幅が標準より太くなって、正しい読み取り
が困難となる問題点があった。
Further, in the bar code 3 having the spots 3c and the voids 3d as shown in FIG. 9 (A), when photoelectric conversion is performed at the spot 3c, the waveform becomes as shown in FIG. 9 (B). When the pulse width becomes narrower than the standard, and when the void 3d is converted from light to electricity, the waveform becomes as shown in FIG. 9 (C), and the pulse width becomes thicker than the standard, making it difficult to read correctly. was there.

逆に分解能を低下させると、高密度のバーコード3が読
めなくなる問題点があった。
On the contrary, if the resolution is lowered, there is a problem that the high-density barcode 3 becomes unreadable.

更に、台紙の色調やバーコード3の印刷の濃淡により、
アナログ信号の振幅が第10図(A)に示すように変化
し、その振幅値がスレショルドレベル以下となるため、
得られるパルス信号の数が第10図(B)に示すように
少なくなり、誤読取りの原因となる問題点があった。
Furthermore, depending on the color of the mount and the shade of the barcode 3,
Since the amplitude of the analog signal changes as shown in FIG. 10 (A), and the amplitude value is below the threshold level,
The number of pulse signals obtained is reduced as shown in FIG. 10 (B), which causes a problem of erroneous reading.

また、バーコードリーダのヘッド部の浮き等によるアナ
ログ信号の振幅変化のために、上記と同様の問題点があ
った。
Further, there is a problem similar to the above because the amplitude of the analog signal changes due to the floating of the head portion of the bar code reader.

このような問題点を解決するため、最近、次のようなバ
ーコード読取装置が提案されている(特開昭63−19
6990号)。
In order to solve such a problem, recently, the following bar code reading device has been proposed (JP-A-63-19).
6990).

このバーコード読取装置は、 受光素子の出力波形を微小等間隔でサンプリングし、得
られたサンプリングデータ列をバーコード1単位分だけ
記憶させる手段と、 推定されるノイズレベルに基づいて設定されたノイズ分
離レベルV以上の変動分のみを有効変動分として、サ
ンプリングデータ列から波形山谷のピーク値を順次抽出
し、その位置とともに記載させる手段と、 抽出されたピーク個数が当該バーコード体系で定まる規
定個数と一致することを条件として、各ピーク点間に存
在するサンプルデータをその両端ピーク値の平均値を基
準に2値化してバーコードを再生する手段と、 再生されたバーコードの各バー幅が規定幅と一致するこ
とを条件として、再生バーコードを有効と判定する手段
と、 を具備することを特徴とする構成になっている。
This bar code reader is a means for sampling the output waveform of the light receiving element at minute equal intervals and storing the obtained sampling data string for one unit of bar code, and a noise set based on the estimated noise level. Means for sequentially extracting peak values of waveform peaks and troughs from the sampling data string and describing with their positions, with only fluctuations above the separation level V N as effective fluctuations, and the number of peaks extracted is defined by the bar code system. Means for reproducing the bar code by binarizing the sample data existing between the peak points on the basis of the average value of the peak values at both ends, and the bar width of the reproduced bar code, on condition that the numbers match And a means for determining that the reproduction bar code is valid, provided that To have.

このようなバーコード読取装置によれば、ドットプリン
タ等で印刷されたバーコードでも読み取りを行うことが
できる。
According to such a barcode reading apparatus, it is possible to read even a barcode printed by a dot printer or the like.

(発明が解決しようとする課題) しかしながら、このような従来のバーコード読取装置で
は、読取り対象のバーコードの半分が汚れていた場合、
その部分のバーコード信号の再生を正しく行えない問題
点があった。即ち、この場合得られる読み取り信号は、
第11図に示すように、汚れている部分を読み取った読
み取り信号のレベルが該図の右半部から明らかなように
全体的に低く、汚れていない部分を読み取った読み取り
信号のレベルが該図の左半部から明らかなように全体的
に高い、このような読み取り信号をサンプリングして得
たサンプリングデータ列を、ノイズ分離レベルV以上
の変動分のみを有効変動分として波形山谷のピーク値を
抽出する際に、第11図の右半部では全体的にVより
レベルが低いので、正しくバーコード信号の再生ができ
ない問題点があった。
(Problems to be Solved by the Invention) However, in such a conventional barcode reading apparatus, when half of the barcode to be read is dirty,
There was a problem that the barcode signal at that portion could not be reproduced correctly. That is, the read signal obtained in this case is
As shown in FIG. 11, the level of the read signal obtained by reading the dirty portion is low as a whole from the right half of the figure, and the level of the read signal obtained by reading the unclean portion is shown in FIG. As is apparent from the left half of the figure, the sampling data string obtained by sampling such a read signal as a whole has a peak value of waveform peaks and valleys with only fluctuations above the noise separation level V N as effective fluctuations. In the case of extracting, the level in the right half of FIG. 11 is lower than V N as a whole, so that there is a problem that the bar code signal cannot be reproduced correctly.

また、この従来のバーコード読取装置では、読取りが始
まってからのノイズ分離レベルVを新ノイズ分離レベ
ルV′に変更するが、この新ノイズ分離レベルV
はバーコードの前空白部のレベル変動ΔVを求め、基準
白レベルVから3×ΔVだけ下がった位置に設定する
ので、バーコード配列の後半部に汚れがあった場合に、
前半部で新ノイズ分離レベルV′を定めたのでは、第
11図のように後半部の読み取り信号のレベルが全体的
に下がった信号のでは、いくら新ノイズ分離レベル
′に変更しても、正しくバーコード信号の再生がで
きない問題点があった。
Further, in this conventional bar code reader, the noise separation level V N after the reading is started is changed to the new noise separation level V N ′, but this new noise separation level V N ′.
Calculates the level variation ΔV in the front blank part of the barcode and sets it at a position lower than the reference white level V O by 3 × ΔV. Therefore, if the latter half of the barcode array is stained,
'Than defining the, than the latter half portion signal level of the read signal has dropped overall the like FIG. 11, much new noise isolation level V N' new noise isolation level V N at the first half changed to However, there was a problem that the bar code signal could not be reproduced correctly.

本発明の目的は、バーコードの後半部分に汚れ等があっ
ても、正しくバーコード信号の再生を行うことができる
バーコードリーダの信号処理方法を提供することにあ
る。
An object of the present invention is to provide a signal processing method for a bar code reader that can correctly reproduce a bar code signal even if the latter half of the bar code is dirty.

(課題を解決するための手段) 上記の目的を達成するための本発明の手段を説明する
と、次の通りである。
(Means for Solving the Problem) The means of the present invention for achieving the above object will be described below.

請求項(1)に記載の発明は、バーコードの本数が一定に
定められている場合のバーコードリーダによる信号処理
方法において、前記バーコードからの反射光による光信
号を光/電変換によりアナログ信号に変換し、該アナロ
グ信号をサンプリングしてその波高レベル変化に応じた
多値レベルのデジタル信号に変換した後、メモリにスト
アし、前記メモリにストアされた前記多値レベルのデジ
タル信号の極大値のうちの最大値Vmaxと極小値のうち
の最小値Vminの差Vを得、初めに該Vを1/2に
したV/2を標準振幅Kとし、前記メモリにストアさ
れた前記多値レベルのデジタル信号の包絡線波形の傾き
の符号が反転する変曲点をそれぞれ検出し、隣接する前
記変曲点の間の振幅が前記標準振幅K以上であれば、そ
の変曲点を極値とする前記多値レベルのデジタル信号の
包絡線波形を前記バーコードに対応する波形とみなし、
隣接する前記変曲点の間の振幅が前記標準振幅Kより小
さければ前記バーコードに対応しないノイズとみなして
極値と判断せず、次に前記バーコードに対応する前記デ
ジタル信号の包絡線波形の隣接する極大値と極小値との
間の振幅がそれぞれ一定振幅になるように拡大、縮小す
る波形整形をし、得られた包絡線波形の極大値,極小値
の中点をスレショルドレベルとして2値レベルのパルス
信号に変換し、該パルス信号により前記バーコードの前
後のマージンの判定を行い、前記前後のマージンの間に
存在する前記バーコードの本数を数え、その計数本数を
前記バーコードの種類により規定されているバーコード
の規定本数と比較し、 イ.前記計数本数が前記規定本数より多かった場合には
下記式(1)により再度前記Kの値を変更し、 K(n)=K(n-1)+(V/2)…(1) 但し、nは繰り返し回数を表す。
The invention according to claim (1) is a signal processing method by a bar code reader when the number of bar codes is fixed, and an optical signal by reflected light from the bar code is converted into an analog signal by optical / electrical conversion. The signal is converted into a signal, the analog signal is sampled, converted into a multilevel digital signal according to a change in the crest level thereof, and then stored in a memory, and the maximum of the multilevel digital signal stored in the memory is stored. obtain the maximum value V max and the difference V w of the minimum value V min of the minimum value of the values, the V w / 2 that the V w 1/2 and the standard amplitude K initially store the memory Each inflection point at which the sign of the slope of the envelope waveform of the multilevel digital signal is inverted is detected, and if the amplitude between adjacent inflection points is greater than or equal to the standard amplitude K, the inflection point is detected. Set inflection point as extreme value Regarded as waveform corresponding envelope waveform of the multilevel digital signal on the bar code,
If the amplitude between the adjacent inflection points is smaller than the standard amplitude K, it is regarded as noise that does not correspond to the bar code and is not judged as an extreme value, and then the envelope waveform of the digital signal that corresponds to the bar code. Waveform shaping is performed so that the amplitude between the adjacent maximum and minimum values of each becomes constant, and the midpoint between the maximum and minimum values of the obtained envelope waveform is set as the threshold level. Converted to a pulse signal of a value level, the margin before and after the barcode is determined by the pulse signal, the number of the barcode existing between the margins before and after the barcode is counted, and the counted number is the number of the barcode. Compared with the specified number of barcodes specified by type, a. When the number of counts is larger than the specified number, the value of K is changed again by the following equation (1), and K (n) = K (n-1) + ( Vw / 2n ) ... (1 ) However, n represents the number of repetitions.

ロ.前記計数本数が前記規定本数より少なかった場合は
下記式(2)により再度Kの値を変更し、 K(n)=K(n-1)−(V/2)…(2) 前記イ,ロを繰り返して計数本数が規定本数に一致した
らその時の前記パルス信号をデコードすることを特徴と
する。
B. When the counted number is less than the specified number, the value of K is changed again by the following formula (2), and K (n) = K (n-1)-( Vw / 2n ) ... (2) It is characterized in that the pulse signal at that time is decoded when the number of counts matches the specified number by repeating steps a and b.

請求項(2)記載の発明は、バーコードの本数が一定に定
められていなく、かつ該バーコードの計数が、a+bm
(ただし、a,b:前記バーコードの種類により定まる
定数、m:キャラクタ数)なる関係がある場合のバーコ
ードリーダによる信号処理方法において、前記バーコー
ドからの反射光による光信号を光/電変換によりアナロ
グ信号に変換し、該アナログ信号をサンプリングしてそ
の波高レベル変化に応じた多値レベルのデジタル信号に
変換した後、メモリにストアし、前記メモリにストアさ
れた前記多値レベルのデジタル信号の極大値のうちの最
大値Vmaxと極小値のうちの最小値Vminの差Vを得、
初めに前記Kの値としてV/2を用いて標準振幅Kと
し、前記メモリにストアされた前記多値レベルのデジタ
ル信号の包絡線波形の傾きの符号が反転する変曲点をそ
れぞれ検出し、隣接する前記変曲点の間の振幅が標準振
幅K以上であれば、その変曲点を極値とする前記多値レ
ベルのデジタル信号の包絡線波形を前記バーコードに対
応する波形とみなし、隣接する前記変曲点の間の振幅が
標準振幅Kより小さければ前記バーコードに対応しない
ノイズとみなして極値と判断せず、次に前記バーコード
に対応する前記デジタル信号の包絡線波形の隣接する極
大値と極小値との間の振幅がそれぞれ一定振幅になるよ
うに拡大、縮小する波形整形をし、得られた包絡線波形
の極大値,極小値の中点をスレショルドレベルとして2
値レベルのパルス信号に変換し、該パルス信号により前
記バーコードの前後のマージンの判定を行い、前記前後
のマージンの間に存在する前記バーコードの本数を数
え、その計数本数に最も近くなる前記a+mbのキャラ
クタ数mの値を求めて、そのキャラクタ数の値を用いて
真のバーコード本数を仮定し、該仮定による真のバーコ
ド本数と前記計数本数とを比較して前記Kの値を数回変
更し、その各変更後の前記Kの値による前記バーコード
の計数本数と前記仮定による真のバーコード本数が一致
したら、その時の前記パルス信号をデコードし、数回の
K値の変更によっても一致しない場合は、前記キャラク
タ数mの値を次に近くなる値に変更して再度真のバーコ
ード本数を仮定し直して同様の処理を繰り返すことを特
徴とする。
According to the invention of claim (2), the number of barcodes is not fixed, and the counting of the barcodes is a + bm.
(Where a and b are constants determined by the type of the barcode, m is the number of characters), in the signal processing method by the barcode reader, the optical signal generated by the reflected light from the barcode is converted into an optical signal. After conversion into an analog signal, the analog signal is sampled and converted into a multilevel digital signal according to a change in the crest level, and then stored in a memory, and the multilevel digital stored in the memory. Obtain a difference V w between the maximum value V max of the signal maximum values and the minimum value V min of the minimum values,
First, V w / 2 is used as the value of K to obtain a standard amplitude K, and inflection points at which the signs of the slopes of the envelope waveforms of the digital signals of the multilevel digital signals stored in the memory are inverted are detected. If the amplitude between the adjacent inflection points is equal to or larger than the standard amplitude K, the envelope waveform of the digital signal of the multi-valued level having the inflection point as an extreme value is regarded as the waveform corresponding to the bar code. If the amplitude between the adjacent inflection points is smaller than the standard amplitude K, it is regarded as noise not corresponding to the bar code and is not judged as an extreme value, and then the envelope waveform of the digital signal corresponding to the bar code. Waveform shaping is performed so that the amplitude between the adjacent maximum and minimum values of each becomes constant, and the midpoint between the maximum and minimum values of the obtained envelope waveform is set as the threshold level.
Convert to a pulse signal of a value level, determine the margin before and after the bar code by the pulse signal, count the number of the bar code existing between the margins before and after the bar code, The value of the character number m of a + mb is obtained, the true bar code number is assumed using the value of the character number, and the true bar code number based on the assumption is compared with the counting number to calculate the value of K. If the count number of the bar code according to the K value after each change and the true bar code number according to the assumption match, the pulse signal is decoded and the K value is changed several times. If the numbers do not match, the value of the character number m is changed to a value next closer to it, the true number of barcodes is again assumed, and the same processing is repeated.

(作用) 請求項(1)(2)では、バーコードを読み取ってサンプリン
グしてデジタル信号に変換してメモリにストアした多値
レベルのデジタル信号の極大値のうちの最大値Vmax
極小値のうちの最小値Vminの差Vを得、このV
1/2にしたV/2を標準振幅Kとし、該多値レベル
のデジタル信号の包絡線波形の傾きの符号が反転する変
曲点を検出し、隣接する変曲点間の振幅が該標準振幅K
以上であれば、その変曲点を極値とする該多値レベルの
デジタル信号の包絡線波形をバーコードに対応する波形
とみなし、隣接する変曲点間の振幅が該標準振幅Kより
小さければバーコードに対応しないノズルとみなす方法
をとって、バーコードに対応する波形の抽出を行ってい
るので、バーコードの後半部分に汚れがあっても正しく
バーコードの再生が行える。
(Operation) In claims (1) and (2), the maximum value V max and the minimum value among the maximum values of the multi-level digital signal stored in the memory by reading the bar code, sampling it, converting it into a digital signal, and storing it in the memory. Difference V w of the minimum value V min among these values is obtained, and V w / 2 obtained by halving this V w is set as a standard amplitude K, and the sign of the slope of the envelope waveform of the multilevel digital signal is inverted. The inflection point is detected and the amplitude between adjacent inflection points is the standard amplitude K.
If it is above, the envelope waveform of the digital signal of the multivalued level having the inflection point as the extreme value is regarded as the waveform corresponding to the bar code, and the amplitude between the adjacent inflection points should be smaller than the standard amplitude K. For example, since the waveform corresponding to the barcode is extracted by taking the method of considering the nozzle as not corresponding to the barcode, the barcode can be properly reproduced even if the latter half of the barcode is dirty.

特に、請求項(1)では、計数本数が規定本数に合わなか
った場合には、n回だけ繰り返して標準振幅Kの変更を
行うので、バーコードの本数が一定に定められている場
合の該標準振幅Kをバーコードに応じて自動的に適宜変
更でき、ノイズの除去が容易になる。
In particular, in claim (1), when the number of counts does not match the specified number, the standard amplitude K is repeatedly changed only n times. Therefore, when the number of bar codes is fixed, The standard amplitude K can be automatically changed appropriately according to the bar code, and noise can be easily removed.

また、請求項(2)では、ノイズを除去して得られたバー
コードのパルス信号によりバーコードの前後のマージン
の判定を行い、前後のマージンの間に存在するバーコー
ドの本数を数え、その計数本数に最も近くなる(a+m
b)のキャラクタ数mの値を求めて、そのキャラクタ数
の値を用いて真のバーコード本数を仮定し、該仮定によ
る真のバーコード本数と計数本数とを比較して標準振幅
Kの値を数回変更するので、バーコードの本数が一定に
定められていない場合の該標準振幅Kをバーコードに応
じて自動的に適宜変更でき、ノイズの除去が容易にな
る。
Further, in claim (2), the margin before and after the barcode is determined by the pulse signal of the barcode obtained by removing the noise, and the number of barcodes existing between the margins before and after is counted, Closest to the number of counts (a + m
The value of the character number m in b) is calculated, the true bar code number is assumed using the value of the character number, the true bar code number based on the assumption is compared with the counting number, and the value of the standard amplitude K is obtained. Is changed several times, the standard amplitude K when the number of bar codes is not fixed is automatically changed according to the bar code, and noise can be easily removed.

(実施例) 以下、本発明の実施例を図面を参照して詳細に説明す
る。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の方法を実施する信号処理装置の一実施
例を示したものである。このような装置を用いた本実施
例のバーコードリーダの信号処理方法は、光源1により
レンズ2を経て第2図(A)に示す如きバーコード3を
照射し、該バーコード3からの反射光による光信号を光
/電変換部4で第2図(B)に示す如きアナログ信号S
1に変換し、該アナログ信号S1を増幅部5で増幅し、
増幅されたアナログ信号S1をサンプルホールド回路部
(以下、S/H部という)9でサンプリングし、次いで
アナログ/デジタル変換部(以下、A/D変換部とい
う)10で該アナログ信号S1の波高レベル変化に応じ
た第2図(C)に示す如き多値レベルのデジタル信号D
1に変換して中央処理部(以下、CPUという)11に
入力する。一方、増幅部6からのアナログ信号S1はコ
ンパレータ12を経てパルス信号に変換してCPU11
に入力する。
FIG. 1 shows an embodiment of a signal processing apparatus for carrying out the method of the present invention. In the signal processing method of the bar code reader of this embodiment using such a device, the light source 1 irradiates the bar code 3 as shown in FIG. An optical signal generated by light is converted into an analog signal S as shown in FIG.
1, and the analog signal S1 is amplified by the amplification unit 5,
The amplified analog signal S1 is sampled by a sample hold circuit section (hereinafter referred to as S / H section) 9, and then an analog / digital conversion section (hereinafter referred to as A / D conversion section) 10 has a peak level of the analog signal S1. Multi-level digital signal D as shown in FIG. 2 (C) according to changes
It is converted into 1 and input to a central processing unit (hereinafter referred to as CPU) 11. On the other hand, the analog signal S1 from the amplification unit 6 is converted into a pulse signal through the comparator 12 and converted into a CPU 11
To enter.

CPU11では、メモリ13の有効利用のためコンパレ
ータ12のパルス信号によりバーコード3のバー部から
入力された多値レベルのデジタル信号D1のみを一旦メ
モリ13にストアする。このメモリ13にストアされた
多値レベルのデジタル信号D1の包絡線波形の傾きの符
号が反転する変曲点をそれぞれ検出する。隣接する変曲
点間の振幅が標準振幅K以上であれば、その変曲点を第
3図(A)に示すように、極値P1,P2,P3……と
する各多値レベルのデジタル信号D1の包絡線波形をバ
ーコード3に対応する波形とみなす。隣接する変曲点の
間の振幅が定数Kより小さければ、バーコード3に対応
しないノイズとみなして極値と判断せず無視する。
The CPU 11 temporarily stores in the memory 13 only the multilevel digital signal D1 input from the bar portion of the barcode 3 by the pulse signal of the comparator 12 in order to effectively use the memory 13. An inflection point at which the sign of the slope of the envelope waveform of the multilevel digital signal D1 stored in the memory 13 is inverted is detected. If the amplitude between adjacent inflection points is equal to or greater than the standard amplitude K, the inflection points are set to extreme values P1, P2, P3, ... As shown in FIG. The envelope waveform of the signal D1 is regarded as the waveform corresponding to the barcode 3. If the amplitude between adjacent inflection points is smaller than the constant K, it is regarded as noise that does not correspond to the barcode 3 and is not judged as an extreme value and ignored.

次に、バーコード3に対応するデジタル信号D1の包絡
線波形の極値P1,P2,P3……間の波形を第3図
(B)に示すように拡大、縮小して隣接する極大値,極
小値の間、即ちP1−P2間,P2−P3間,P3−P
4間,P4−P5間,P5−P6間……がそれぞれ一定
振幅Xになるように波形整形し、波形整形されたデジタ
ル信号D2を得る。
Next, the waveform between the extreme values P1, P2, P3, ... Of the envelope waveform of the digital signal D1 corresponding to the bar code 3 is enlarged or reduced as shown in FIG. Between minimum values, that is, between P1-P2, between P2-P3, P3-P
4 and between P4 and P5, between P5 and P6, etc., waveform shaping is performed so as to have a constant amplitude X, and a waveform shaped digital signal D2 is obtained.

例えば、第3図(A)の場合では、極値P1,P2間で
は振幅Xより小さいため等倍率αで拡大し、極値P2,
P3間では振幅Xより大きいため等倍率βで縮小し、極
値P4,P5間では振幅Xより大きいため等倍率γで縮
小し、極値P5,P6間では振幅Xより小さいため等倍
率ηで拡大する。ここで、等倍率α、β……は下記のよ
うにして定める。
For example, in the case of FIG. 3 (A), since the amplitude is smaller than the amplitude X between the extreme values P1 and P2, the extreme value P2 is enlarged by the equal magnification α.
Since it is larger than the amplitude X between P3, it is reduced by an equal magnification β, between the extreme values P4 and P5, it is reduced by an equal magnification γ because it is larger than the amplitude X, and between extreme values P5 and P6, it is smaller than the amplitude X and is equal magnification η. Expanding. Here, the equal magnifications α, β ... Are determined as follows.

α=(極値P1,P2間の振幅)/X β=(極値P2,P3間の振幅)/X …… 整形されたデジタル信号D2の波形の極大値P2,P4
……と極小値P1,P3……との各中点をスレショルド
レベルSLとして、第3図(C)に示すように2値レベ
ルのパルス信号PSに変換する。
α = (amplitude between extreme values P1 and P2) / X β = (amplitude between extreme values P2 and P3) / X ... Maximum values P2 and P4 of the waveform of the shaped digital signal D2
, And the minimum values P1, P3, ... As threshold levels SL, they are converted into binary level pulse signals PS as shown in FIG. 3 (C).

該パルス信号PSを各種バーコードにデコードし、各種
インタフェース仕様によりホストコンピュータに通信処
理する。
The pulse signal PS is decoded into various bar codes, and communication processing is performed with the host computer according to various interface specifications.

次に、標準振幅Kの値の算出の仕方について、第4図を
参照して説明する。
Next, how to calculate the value of the standard amplitude K will be described with reference to FIG.

メモリ13にストアされた多値レベルのデジタル信号D
1の最大値Vmaxと最小値Vminとの差Vを得、初めに
Kの値としてV/2を用いて(ステップST1)前述
したような極値の検出(ステップST2)、波形整形
(ステップST3)、2値化(ステップST4)の信号
処理を行い、パルス信号PSを得る。
Multilevel digital signal D stored in the memory 13
The difference V w between the maximum value V max and the minimum value V min of 1 is obtained, and V w / 2 is first used as the value of K (step ST1). The detection of the extreme value as described above (step ST2), the waveform Signal processing of shaping (step ST3) and binarization (step ST4) is performed to obtain a pulse signal PS.

次に、該パルス信号PSにより、第5図に示すようにバ
ーコード3のマージンM1,M2の判定を行い、これら
前記のマージンM1,M2の間に存在するバーコード3
の本数を数え、その計数本数をバーコード3の種類によ
り規定されているバーコード3の規定本数と比較し(ス
テップST5)、次のような処理を行う。
Next, the margins M1 and M2 of the bar code 3 are determined by the pulse signal PS as shown in FIG. 5, and the bar code 3 existing between these margins M1 and M2 is determined.
, And compares the counted number with the specified number of barcodes 3 specified by the type of barcode 3 (step ST5), and performs the following processing.

(A)バーコード3の本数が一定に定められている場
合。
(A) When the number of barcodes 3 is fixed.

(A−1)計数本数が規定本数より多かった場合は、再
度(繰り返し処理回数n=2)Kの値を下式(1)により
変更し(ステップST5)、 K(n)=K(n−1)+(W/2)…(1) (A−2)計数本数が規定本数より少なかった場合は、
再度(n=2)Kの下式(2)により変更し、(ステップ
ST5)、 K(n)=K(n−1)−(V/2)…(2) これら(A−1)、(A−2)にもとづいて変更したK
の値によりバーコード3の計数本数が規定本数に一致す
るまでKの値の算出を繰り返す。バーコード3の本数が
一致したら、その時のパルス信号PSをデコードする。
(A-1) When the number of counts is more than the specified number, the value of (repetition processing number n = 2) K is changed again by the following equation (1) (step ST5), and K (n) = K (n -1) + (W w / 2 n ) ... (1) (A-2) When the number of counts is less than the specified number,
It is changed again by the following equation (2) of (n = 2) K, (step ST5), K (n) = K (n-1)-( Vw / 2n ) ... (2) These (A-1 ), K changed based on (A-2)
The calculation of the value of K is repeated until the number of counts of the bar code 3 matches the specified number by the value of. When the numbers of the bar codes 3 match, the pulse signal PS at that time is decoded.

なお、繰り返し処理回数nは上限を2〜3回に定めてお
き、その間に計数本数が規定本数に一致しない場合はエ
ラーとする。
It should be noted that the upper limit of the number of times of repeating processing n is set to 2 to 3 times, and if the number of counts does not match the specified number during that time, an error occurs.

(B)バーコード3の本数が一定に定められていない場
合。
(B) When the number of barcodes 3 is not fixed.

この場合は、バーコード3の計数本数は、a+mb(た
だし、a,b:バーコード3の種類により定まる定数、
m:キャラクタ数)なる関係があり、バーコード3の計
数本数がa+mbにてキャラクタ数mを変更した時に最
も近いキャラクタ数mの値を求めて、そのmの値をを用
いて真のバーコード本数を仮定する。これより仮定され
た真のバーコード本数と計数本数とを比較し(ステップ
ST5)、定数a,bに従ってKの値を変更する(ステ
ップST5)。
In this case, the number of counted barcodes 3 is a + mb (where a and b are constants determined by the type of barcode 3,
m: number of characters), the number of characters of the barcode 3 is a + mb, and when the number of characters m is changed, the closest value of the number of characters m is obtained, and the value of m is used to determine the true barcode. The number is assumed. The number of true bar codes assumed from this and the number of counts are compared (step ST5), and the value of K is changed according to the constants a and b (step ST5).

変更後のKの値によりバーコード3の計数本数が真のバ
ーコード本数に一致しない場合は、Kの値の算出を数回
繰り返す。
If the counted number of barcodes 3 does not match the true number of barcodes due to the changed value of K, the calculation of the value of K is repeated several times.

この繰り返し処理回数nはその上限を2〜3回に定めて
おき、その間に一致しない場合には、mを次に近い値に
移して同一の処理を行い、それでも一致しない場合はエ
ラーとする。
The upper limit of the number of times n of this iterative processing is set to 2 to 3 times, and if the values do not match in the meantime, m is moved to the next closest value and the same processing is performed. If the values do not match, an error occurs.

バーコード3の本数が一致したら、その時のパルス信号
PSをデコードする(ステップST6)。
When the numbers of the bar codes 3 match, the pulse signal PS at that time is decoded (step ST6).

デコード後の信号を、バーコードに予め表示されている
チェックビットの波形と比較し、信号波形の正否を判別
する。
The decoded signal is compared with the waveform of the check bit previously displayed on the bar code to determine whether the signal waveform is correct.

なお、このチェックビットによる正否の判別はデコード
前のパルス信号によって行ってもよい。
The check bit may be used to determine whether it is correct or not by using a pulse signal before decoding.

なお本発明では、Kの値はV/2のほか、V/4
等、光/電変換部4、増幅部6の特性等により変更する
ことは可能である。
In the present invention, the value of K is not only V w / 2, but V w / 4.
Etc. can be changed depending on the characteristics of the photoelectric conversion unit 4, the amplification unit 6, and the like.

また、本発明を適用できるバーコードリーダとしては、
ペン型バーコードリーダの他、CCDタッチスキャナ
ー、レーザスキャナー等がある。
Further, as a bar code reader to which the present invention can be applied,
In addition to pen-type bar code readers, there are CCD touch scanners, laser scanners, and the like.

(発明の効果) 以上説明したように本発明に係るバーコードリーダの信
号処理方法によれば、下記のような効果を得ることがで
きる。
(Effects of the Invention) As described above, according to the signal processing method for the bar code reader of the present invention, the following effects can be obtained.

請求項(1)(2)に記載の発明では、バーコードを読み取っ
てサンプリングしてデジタル信号に変換してメモリにス
トアした多値レベルのデジタル信号の極大値のうちの最
大値Vmaxと極小値のうちの最小値Vminの差Vを得、
このVを1/2にしたV/2を標準振幅Kとし、該
多値レベルのデジタル信号の包絡線波形の傾きの符号が
反転する変曲点を検出し、隣接する変曲点間の振幅が該
標準振幅K以上であれば、その変曲点を極値とする該多
値レベルのデジタル信号の包絡線波形をバーコードに対
応する波形とみなし、隣接する変曲点間の振幅が該標準
振幅Kより小さければバーコードに対応しないノズルと
みなす方法をとって、バーコードに対応する波形の抽出
を行っているので、バーコードの後半部分に汚れがあっ
ても正しくバーコードの再生を行うことができる。
According to the inventions of claims (1) and (2), the maximum value V max and the minimum value of the maximum values of the multi-level digital signals stored in the memory by reading the bar code, sampling it, converting it into a digital signal, and storing it in the memory. Obtain the difference V w of the minimum value V min of the values,
The V w / 2 that the V w 1/2 the standard amplitude K, detecting an inflection point where the sign of the slope of the envelope waveform of the multivalued level of the digital signal is inverted, between adjacent inflection points Is greater than the standard amplitude K, the envelope waveform of the digital signal of the multi-valued level having the inflection point as an extreme value is regarded as the waveform corresponding to the bar code, and the amplitude between the adjacent inflection points is determined. Is smaller than the standard amplitude K, the nozzle corresponding to the bar code is regarded as a nozzle and the waveform corresponding to the bar code is extracted. Therefore, even if the latter half of the bar code is contaminated, the bar code Playback can be performed.

特に、請求項(1)に記載の発明では、計数本数が規定本
数に合わなかった場合には、n回だけ繰り返して標準振
幅Kの変更を行うので、バーコードの本数が一定に定め
られている場合の該標準振幅Kをバーコードに応じて自
動的に適宜変更でき、ノイズの除去を容易に行うことが
できる。
Particularly, in the invention described in claim (1), when the number of counts does not match the specified number, the standard amplitude K is changed repeatedly n times, so that the number of bar codes is fixed. When the standard amplitude K is present, the standard amplitude K can be automatically changed according to the bar code, and noise can be easily removed.

また請求項(2)に記載の発明では、ノイズを除去して得
られたバーコードのパルス信号によりバーコードの前後
のマージンの判定を行い、前後のマージンの間に存在す
るバーコードの本数を数え、その計数本数に最も近くな
る(a+mb)のキャラクタ数mの値を求め、そのキャ
ラクタ数の値を用いて真のバーコード本数を仮定し、該
仮定による真のバーコード本数と計数本数とを比較して
標準振幅Kの値を数回変更するので、バーコードの本数
が一定に定められていない場合の該標準振幅Kをバーコ
ードに応じて自動的に適宜変更でき、ノイズの除去を容
易に行うことができる。
In the invention described in claim (2), the margin before and after the barcode is determined by the pulse signal of the barcode obtained by removing the noise, and the number of barcodes existing between the margins before and after is determined. Counting, the value of the character number m of (a + mb) closest to the counted number is obtained, the true bar code number is assumed using the value of the character number, and the true bar code number and the counted number are calculated based on the assumption. Since the value of the standard amplitude K is changed several times by comparing the above, the standard amplitude K can be automatically and appropriately changed according to the bar code when the number of bar codes is not fixed, and noise can be removed. It can be done easily.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の方法を実施する信号処理装置の一実施
例を示すブロック図、第2図(A)(B)(C)はバー
コードの拡大図と該バーコードから得られたアナログ信
号の波形図と該アナログ信号から得られた多値レベルの
デジタル信号の波形図、第3図(A)(B)(C)は多
値レベルのデジタル信号の極値の説明図と、該デジタル
信号を拡大,縮小して波形整形した波形図と、該波形整
形されたデジタル信号から得られたパルス信号の波形
図、第4図は本実施例における信号処理の各ステップを
示すフローチャート図、第5図はバーコードのマージン
の説明図、第6図は従来の信号処理装置のブロック図、
第7図はバーコードの説明図、第8図(A)は第7図に
示すバーコードの拡大図、第8図(B)は第8図(A)
に示すバーコードの矢印部分を読み取った時の波形図、
第9図(A)はスポットとボイドとを有するバーコード
の拡大図、第9図(B)は第9図(A)のスポット箇所
を読み取った時の波形図、第9図(C)は第9図(A)
のボイド箇所を読み取った時の波形図、第10図(A)
(B)は従来の相対反射が小さく、かつレベル変化の大
きいバーコードから得られたアナログ信号と、該アナロ
グ信号から得られるパルス信号の波形図、第11図は後
半部に汚れがあるバーコードを読み取った信号の波形図
である。 1……光源、2……レンズ、3……バーコード、 3a……ドット、Sb……隙間、 3c……スポット、3d……ボイド、 4……光/電変換部、5……増幅部、 6……比較部、7……基準電圧発生部、 8……デコーダ、 9……サンプルホールド回路部(S/H部)、 10……アナログ/デジタル変換部(A/D変換部)、
11……中央処理部(CPU)、 D1……多値レベルのデジタル信号、 D2……波形整形されデジタル信号、 P1、P2,P3……極値、 S1……アナログ信号、 12……コンパレータ、13……メモリ。
FIG. 1 is a block diagram showing an embodiment of a signal processing apparatus for carrying out the method of the present invention, and FIGS. 2 (A), (B) and (C) are enlarged views of a bar code and an analog obtained from the bar code. A signal waveform diagram and a waveform diagram of a multilevel digital signal obtained from the analog signal, FIGS. 3A, 3B, and 3C are explanatory diagrams of the extreme value of the multilevel digital signal, and FIG. A waveform diagram in which a digital signal is enlarged and reduced and waveform-shaped, a waveform diagram of a pulse signal obtained from the waveform-shaped digital signal, and FIG. 4 is a flow chart diagram showing each step of signal processing in the present embodiment, FIG. 5 is an explanatory view of the margin of the bar code, FIG. 6 is a block diagram of a conventional signal processing device,
FIG. 7 is an explanatory view of the bar code, FIG. 8 (A) is an enlarged view of the bar code shown in FIG. 7, and FIG. 8 (B) is FIG. 8 (A).
Waveform diagram when scanning the arrow part of the bar code shown in
FIG. 9 (A) is an enlarged view of a bar code having spots and voids, FIG. 9 (B) is a waveform diagram when the spot portion of FIG. 9 (A) is read, and FIG. 9 (C) is Figure 9 (A)
Waveform diagram when reading the voids in Fig. 10 (A)
FIG. 11B is a waveform diagram of an analog signal obtained from a conventional bar code having a small relative reflection and a large level change, and a pulse signal obtained from the analog signal. FIG. 11 is a bar code having a dirty second half. It is a waveform diagram of the signal read. 1 ... Light source, 2 ... Lens, 3 ... Bar code, 3a ... Dot, Sb ... Gap, 3c ... Spot, 3d ... Void, 4 ... Photoelectric conversion part, 5 ... Amplification part , 6 ... comparison section, 7 ... reference voltage generation section, 8 ... decoder, 9 ... sample hold circuit section (S / H section), 10 ... analog / digital conversion section (A / D conversion section),
11 ... Central processing unit (CPU), D1 ... multi-level digital signal, D2 ... waveform-shaped digital signal, P1, P2, P3 ... extreme value, S1 ... analog signal, 12 ... comparator, 13 ... Memory.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】バーコードの本数が一定に定められている
場合のバーコードリーダによる信号処理方法において、
前記バーコードからの反射光による光信号を光/電変換
によりアナログ信号に変換し、該アナログ信号をサンプ
リングしてその波高レベル変化に応じた多値レベルのデ
ジタル信号に変換した後、メモリにストアし、前記メモ
リにストアされた前記多値レベルのデジタル信号の極大
値のうちの最大値Vmaxと極小値のうちの最小値Vmin
差Vを得、初めに該Vを1/2にしたV/2を標
準振幅Kとし、前記メモリにストアされた前記多値レベ
ルのデジタル信号の包絡線波形の傾きの符号が反転する
変曲点をそれぞれ検出し、隣接する前記変曲点の間の振
幅が前記標準振幅K以上であれば、その変曲点を極値と
する前記多値レベルのデジタル信号の包絡線波形を前記
バーコードに対応する波形とみなし、隣接する前記変曲
点の間の振幅が前記標準振幅Kより小さければ前記バー
コードに対応しないノイズとみなして極値と判断せず、
次に前記バーコードに対応する前記デジタル信号の包絡
線波形の隣接する極大値と極小値との間の振幅がそれぞ
れ一定振幅になるように拡大、縮小する波形整形をし、
得られた包絡線波形の極大値,極小値の中点をスレショ
ルドレベルとして2値レベルのパルス信号に変換し、該
パルス信号により前記バーコードの前後のマージンの判
定を行い、前記前後のマージンの間に存在する前記バー
コードの本数を数え、その計数本数を前記バーコードの
種類により規定されているバーコードの規定本数と比較
し、 イ.前記計数本数が前記規定本数より多かった場合には
下記式(1)により再度前記Kの値を変更し、 K(n)=K(n-1)+(V/2)…(1) 但し、nは繰り返し回数を表す。 ロ.前記計数本数が前記規定本数より少なかった場合は
下記式(2)により再度Kの値を変更し、 K(n)=K(n-1)−(V/2)…(2) 前記イ,ロを繰り返して計数本数が規定本数に一致した
ら、その時の前記パルス信号をデコードすることを特徴
とするバーコードリーダの信号処理方法。
1. A signal processing method using a bar code reader when the number of bar codes is fixed.
The optical signal resulting from the reflected light from the bar code is converted into an analog signal by optical / electrical conversion, the analog signal is sampled, converted into a multilevel digital signal according to the change in the crest level, and then stored in a memory. Then, the difference V w between the maximum value V max of the maximum values and the minimum value V min of the minimum values of the multi-level digital signals stored in the memory is obtained, and first, the V w is 1 / V w / 2 set to 2 is set as the standard amplitude K, and the inflection points at which the signs of the slopes of the envelope waveforms of the multilevel digital signals stored in the memory are inverted are detected, and the adjacent inflections are detected. If the amplitude between the points is equal to or larger than the standard amplitude K, the envelope waveform of the digital signal of the multi-level having the inflection point as an extreme value is regarded as the waveform corresponding to the barcode, and the adjacent variable The amplitude between the inflection points Serial without determining an extreme value is regarded as a standard amplitude K is smaller than not correspond to the barcode noise,
Next, the waveform between the adjacent maximum value and minimum value of the envelope waveform of the digital signal corresponding to the barcode is enlarged or reduced so as to have a constant amplitude.
The midpoint of the maximum value and the minimum value of the obtained envelope waveform is converted into a binary level pulse signal as a threshold level, the margin before and after the bar code is determined by the pulse signal, and the margin before and after the barcode is determined. The number of the above-mentioned bar codes existing between them is counted, and the counted number is compared with the specified number of the bar codes specified by the kind of the bar code. When the number of counts is larger than the specified number, the value of K is changed again by the following equation (1), and K (n) = K (n-1) + ( Vw / 2n ) ... (1 ) However, n represents the number of repetitions. B. When the counted number is less than the specified number, the value of K is changed again by the following formula (2), and K (n) = K (n-1)-( Vw / 2n ) ... (2) A signal processing method of a bar code reader, characterized in that the pulse signal at that time is decoded when the number of counted lines matches the specified number by repeating steps a and b.
【請求項2】バーコードの本数が一定に定められていな
く、かつ該バーコードの計数が、a+bm(ただし、
a,b:前記バーコードの種類により定まる定数、m:
キャラクタ数)なる関係がある場合のバーコードリーダ
による信号処理方法において、前記バーコードからの反
射光による光信号を光/電変換によりアナログ信号に変
換し、該アナログ信号をサンプリングしてその波高レベ
ル変化に応じた多値レベルのデジタル信号に変換した
後、メモリにストアし、前記メモリにストアされた前記
多値レベルのデジタル信号の極大値のうちの最大値V
maxと極小値のうちの最小値Vminの差Vを得、初めに
前記Kの値としてV/2を用いて標準振幅Kとし、前
記メモリにストアされた前記多値レベルのデジタル信号
の包絡線波形の傾きの符号が反転する変曲点をそれぞれ
検出し、隣接する前記変曲点の間の振幅が標準振幅K以
上であれば、その変曲点を極値とする前記多値レベルの
デジタル信号の包絡線波形を前記バーコードに対応する
波形とみなし、隣接する前記変曲点の間の振幅が前記標
準振幅Kより小さければ前記バーコードに対応しないノ
イズとみなして極値と判断せず、次に前記バーコードに
対応する前記デジタル信号の包絡線波形の隣接する極大
値と極小値との間の振幅がそれぞれ一定振幅になるよう
に拡大、縮小する波形整形をし、得られた包絡線波形の
極大値,極小値の中点をスレショルドレベルとして2値
レベルのパルス信号に変換し、該パルス信号により前記
バーコードの前後のマージンの判定を行い、前記前後の
マージンの間に存在する前記バーコードの本数を数え、
その計数本数に最も近くなる前記a+mbのキャラクタ
数mの値を求めて、そのキャラクタ数の値を用いて真の
バーコード本数を仮定し、該仮定による真のバーコード
本数と前記計数本数とを比較して前記Kの値を数回変更
し、その各変更後の前記Kの値による前記バーコードの
計数本数と前記仮定による真のバーコード本数が一致し
たら、その時の前記パルス信号をデコードし、数回のK
値の変更によっても一致しない場合は、前記キャラクタ
数mの値を次に近くなる値に変更して再度真のバーコー
ド本数を仮定し直して同様の処理を繰り返すことを特徴
とするバーコードリーダの信号処理方法。
2. The number of barcodes is not fixed, and the counting of the barcodes is a + bm (however,
a, b: constants determined by the type of barcode, m:
In the signal processing method by the bar code reader when there is a relationship of (character number), the optical signal by the reflected light from the bar code is converted into an analog signal by optical / electrical conversion, the analog signal is sampled, and its peak level is obtained. The maximum value V of the maximum values of the multilevel digital signals stored in the memory after being converted into a multilevel digital signal according to the change
The difference V w between max and the minimum value V min of the minimum values is obtained, and first, V w / 2 is used as the value of K to obtain the standard amplitude K, and the digital signal of the multi-value level stored in the memory is obtained. The inflection points at which the signs of the slopes of the envelope waveforms are inverted are detected, and if the amplitude between the adjacent inflection points is greater than or equal to the standard amplitude K, then the multivalued value having that inflection point as the extreme value The envelope waveform of the digital signal of the level is regarded as a waveform corresponding to the bar code, and if the amplitude between the adjacent inflection points is smaller than the standard amplitude K, it is regarded as noise that does not correspond to the bar code and is regarded as an extreme value. Without making a judgment, next, waveform shaping is performed such that the amplitude between the adjacent maximum value and minimum value of the envelope waveform of the digital signal corresponding to the barcode becomes a constant amplitude, respectively, and the obtained value is obtained. Of the maximum and minimum values of the generated envelope waveform Converting the midpoint into a binary level pulse signal with a threshold level, determining the margin before and after the bar code by the pulse signal, counting the number of the bar code existing between the margins before and after,
The value of the character number m of a + mb that is closest to the counted number is obtained, the true bar code number is assumed using the value of the character number, and the true bar code number and the counted number based on the assumption are calculated. In comparison, the K value is changed several times, and when the count number of the bar code according to the K value after each change and the true bar code number according to the assumption match, the pulse signal at that time is decoded. , K several times
If the values do not match even after the value is changed, the value of the number of characters m is changed to a value that is the next closest, the true number of bar codes is again assumed, and the same process is repeated. Signal processing method.
JP1161317A 1989-06-23 1989-06-23 Bar Code Reader Signal Processing Method Expired - Lifetime JPH065548B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1161317A JPH065548B2 (en) 1989-06-23 1989-06-23 Bar Code Reader Signal Processing Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1161317A JPH065548B2 (en) 1989-06-23 1989-06-23 Bar Code Reader Signal Processing Method

Publications (2)

Publication Number Publication Date
JPH0325690A JPH0325690A (en) 1991-02-04
JPH065548B2 true JPH065548B2 (en) 1994-01-19

Family

ID=15732798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1161317A Expired - Lifetime JPH065548B2 (en) 1989-06-23 1989-06-23 Bar Code Reader Signal Processing Method

Country Status (1)

Country Link
JP (1) JPH065548B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0448392A (en) * 1990-06-18 1992-02-18 Fujitsu Ltd Bar code reader
JP4473335B1 (en) * 2009-03-27 2010-06-02 株式会社オプトエレクトロニクス Optical information reading apparatus and optical information reading method
JP6056444B2 (en) * 2012-12-17 2017-01-11 カシオ計算機株式会社 Bar code reading apparatus, bar code reading method, bar code reading program and printing apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63196990A (en) * 1987-02-10 1988-08-15 Omron Tateisi Electronics Co Bar-code reader

Also Published As

Publication number Publication date
JPH0325690A (en) 1991-02-04

Similar Documents

Publication Publication Date Title
CA2206166C (en) Sub-pixel dataform reader
US6547142B1 (en) Method of scanning indicia using selective sampling
EP0965097B1 (en) Symbology scanning system for efficiently locating coded symbologies
US4764916A (en) Reading circuit for an optical disk apparatus
JPH065548B2 (en) Bar Code Reader Signal Processing Method
CN102971743B (en) Coding/decoding method and decoding processing device
EP0253264A2 (en) Binary coding circuit for OCR
EP0314512A2 (en) Method for recording digital data
JP3095437B2 (en) Character line detection cutout device and character reading device
JPH0131236B2 (en)
JP5424369B1 (en) Bar code reader, bar code reading method and bar code reading program
JP2000311451A (en) Data demodulating method
JP2576370B2 (en) ID mark reading device
JP2894111B2 (en) Comprehensive judgment method of recognition result in optical type character recognition device
JPS63178376A (en) Bar code pattern recognizing device
JP2637595B2 (en) Optical information recording / reproducing method
JPH05307640A (en) Character reader
JPS6043556B2 (en) character reading device
JPH0677269B2 (en) Graphic quantizer
JPS6248874B2 (en)
JPH10143608A (en) Character reading device
JPH10269314A (en) Character recognizing device and character recognition method
JPS60110091A (en) Character recognizing system
JPH01213770A (en) Character detecting/segmenting system
JPH0591327A (en) Video signal binarizing circuit