JP2826226B2 - Read signal processing method of record slip - Google Patents
Read signal processing method of record slipInfo
- Publication number
- JP2826226B2 JP2826226B2 JP4038804A JP3880492A JP2826226B2 JP 2826226 B2 JP2826226 B2 JP 2826226B2 JP 4038804 A JP4038804 A JP 4038804A JP 3880492 A JP3880492 A JP 3880492A JP 2826226 B2 JP2826226 B2 JP 2826226B2
- Authority
- JP
- Japan
- Prior art keywords
- coordinate
- signal
- value
- section
- difference
- 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 - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims description 10
- 238000000034 method Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000013139 quantization Methods 0.000 description 19
- 230000004069 differentiation Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Description
【0001】[0001]
【産業上の利用分野】この発明は、バーコードのような
記録票のコードの幅等に応じて出力された読取信号のデ
ジタル処理(量子化処理)に伴い発生する量子化誤差の
補正を行うことができる記録票の読取信号処理方法に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention corrects a quantization error generated by digital processing (quantization processing) of a read signal output according to a code width of a record slip such as a bar code. The present invention relates to a method for processing a read signal of a record slip.
【0002】[0002]
【従来の技術】バーコードラベルに記録されたバーコー
ドを読取るバーコードリーダが開発されている。このバ
ーコードリーダは、そのラベル上に記録されたバーコー
ドを光電変換素子によって光学的に読取り、そのバーコ
ードの幅に応じた電気信号を出力するようになってい
る。また、この出力される電気信号は所定の処理手段に
よって信号処理が行なわれ、バーコードの幅やバーコー
ドどうしの間隔が検出されるようになっている。2. Description of the Related Art Bar code readers for reading bar codes recorded on bar code labels have been developed. The barcode reader optically reads a barcode recorded on the label by a photoelectric conversion element and outputs an electric signal corresponding to the width of the barcode. The output electric signal is subjected to signal processing by predetermined processing means, and the width of the bar code and the interval between the bar codes are detected.
【0003】例えば、この一連の信号処理方法の1つと
して図3に示すアナログ的な処理が知られている。 即ち、これは、先ずバーコード100のパターンに対
応して光電変換素子等の読取手段が読取り出力する読取
信号101に対し、微分回路等によって微分処理を行
い、これによって微分処理信号102を形成する。 次に、この微分処理信号102において、極値、即ち
極小値M1 及び極大値M2 を夫々検出し、この極小値M
1 と極大値M2 との間の座標値x1 ,x2 の差を演算し
てバー幅信号103を形成し、これによってバーコード
の太さLが認識されるようになっている。 ところで、このようなアナログ方法による信号処理で
は、バーの太さ(幅)は正確に検出できる反面、例えば
ノイズが生じた場合には除去しにくいことデータを
記憶しようとする場合、時系列でのデータ記憶が難しい
こと等の欠点がある。For example, analog processing shown in FIG. 3 is known as one of a series of signal processing methods. That is, first, a differentiation circuit or the like performs a differentiation process on a read signal 101 read and output by a reading unit such as a photoelectric conversion element corresponding to the pattern of the bar code 100, thereby forming a differentiation processing signal 102. . Next, in the differential processing signal 102, an extreme value, that is, a minimal value M 1 and a maximal value M 2 are respectively detected, and the minimal value M 1 is detected.
The bar width signal 103 is formed by calculating the difference between the coordinate values x 1 and x 2 between 1 and the maximum value M 2 , whereby the thickness L of the bar code is recognized. By the way, in the signal processing by such an analog method, the thickness (width) of a bar can be accurately detected, but it is difficult to remove the noise when noise occurs. There are disadvantages such as difficulty in storing data.
【0004】そこで、デジタル方法による信号処理も開
発されている。即ち、図4において、まずバーコード1
00のパターンに応じて読取られた読取信号101に基
づき(図 参照)、A/D変換手段によって量子化信号
104が形成される。この量子化信号104に基づいて
所定の処理を行い、即ち隣どうしの差を取る差分処理を
行い、その差分値のピーク105,106に相当する座
標(位置)値をバーの境界位置として検出し、バー幅信
号103′を形成する。これによってバーの太さL′が
認識される。Therefore, signal processing by a digital method has been developed. That is, in FIG.
A / D conversion means forms a quantized signal 104 based on the read signal 101 read according to the pattern 00 (see FIG. 3). A predetermined process is performed based on the quantized signal 104, that is, a difference process for obtaining a difference between adjacent pixels is performed, and coordinate (position) values corresponding to the peaks 105 and 106 of the difference value are detected as bar boundary positions. , A bar width signal 103 '. Thereby, the thickness L 'of the bar is recognized.
【0005】[0005]
【発明が解決しようとする課題】ところで、このような
デジタル方法による信号処理では、量子化信号を形成す
る際に、その量子化データのサンプリング間隔が一意的
ではなく、従ってその間隔によっては無視できない大き
な量子化誤差を生じている。そこで、この発明は、上記
した従来の欠点に鑑み、デジタル方式での信号処理にお
いて量子化誤差の発生を極力抑えることができる記録票
の読取信号処理方法を提供することを目的とするもので
ある。In the signal processing by such a digital method, when forming a quantized signal, the sampling interval of the quantized data is not unique, and therefore cannot be ignored depending on the interval. A large quantization error occurs. Accordingly, an object of the present invention is to provide a method of processing a read signal of a recording slip which can minimize the occurrence of quantization errors in digital signal processing in view of the above-mentioned conventional disadvantages. .
【0006】[0006]
【課題を解決するための手段】即ち、この発明は、記録
票に記録されたコードを読取る読取手段から出力された
アナログ信号をA/D変換手段によってデジタル信号へ
量子化させたのち、その量子化されたデジタル信号の差
分処理を行い、前記コード幅に応じた座標間隔で信号を
出力する記録票の読取信号処理方法であって、前記量子
化されたデジタル信号どうしの差分処理を行う際に、最
大差分値を与える主座標区間の直前の前座標区間と直後
の後座標区間における差分値どうしの比の値に応じて補
正を行って、前記各コードの境界部分に対応する境界座
標値を決定するように構成したものである。また、この
発明は、前記座標区間と後座標区間における量子化され
たデジタル信号の差分値をΔy1 ,Δy2 とし、主座標
区間の始点位置座標をx,主座標区間の値をΔxとした
ときに、境界座標値x′が次の補正式x′=x+Δx・
〔Δy2 /(Δy1 +Δy2 )〕によって決定されるも
のである。That is, according to the present invention, an analog signal output from a reading means for reading a code recorded on a record slip is quantized into a digital signal by an A / D conversion means, and then the digital signal is quantized. Performing a difference processing of the digitized digital signal and outputting a signal at a coordinate interval according to the code width. The correction is performed according to the value of the ratio of the difference values between the preceding coordinate section immediately before the main coordinate section that gives the maximum difference value and the immediately succeeding coordinate section, and the boundary coordinate value corresponding to the boundary portion of each code is calculated. It is configured to be determined. Further, in the present invention, the difference values of the quantized digital signals in the coordinate section and the subsequent coordinate section are set to Δy 1 and Δy 2 , the start position coordinate of the main coordinate section is set to x, and the value of the main coordinate section is set to Δx. At this time, the boundary coordinate value x ′ is calculated by the following correction expression x ′ = x + Δx ·
It is determined by [Δy 2 / (Δy 1 + Δy 2 )].
【0007】[0007]
【作用】この発明の記録票の読取信号処理方法は、主座
標区間の直前直後の区間における差分値どうしの比の値
を考慮した補正式(重さ関数)を用いることにより、主
座標区間の始点位置から境界座標値までの幅を決定して
おり、例えば主座標区間の直後の区間における差分値の
方が直前区間における差分値より大きい場合には、その
差分値の大きさの比に応じた量だけ境界座標値を主座標
区間の中央よりも差分値の大きな後方側にずらして量子
化誤差の補正を行う。According to the recording signal reading signal processing method of the present invention, the correction formula (weight function) considering the value of the ratio of the difference values in the section immediately before and immediately after the main coordinate section is used. The width from the start point position to the boundary coordinate value is determined. For example, if the difference value in the section immediately after the main coordinate section is larger than the difference value in the immediately preceding section, the width is determined according to the ratio of the difference values. The quantization error is corrected by shifting the boundary coordinate value to the rear side where the difference value is larger than the center of the main coordinate section by an amount.
【0008】[0008]
【実施例】以下この発明の実施例について添付図面を参
照しながら説明する。図1はこの発明に係る記録票の読
取信号処理方法を示すものであり、この記録票の読取信
号処理方法は、バーコード1のパターンに合せて出力さ
れるアナログの読取信号2を量子化されたデジタル信号
3へ変換したときに生ずる量子化誤差を、予め記憶され
たプログラムに従って、つまり次のような方法で補正
し、バー幅信号4を形成してバーコード1のパターン、
即ちバーコード1の太さ(幅)及びバーコード間隔をで
きるだけ正確に読取るようになっている。Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 shows a method of processing a read signal of a recording form according to the present invention. In the method of processing a read signal of a recording form, an analog read signal 2 output according to a pattern of a bar code 1 is quantized. The quantization error generated when the digital signal 3 is converted into a digital signal 3 is corrected in accordance with a program stored in advance, that is, by the following method to form a bar width signal 4 and a pattern of the bar code 1,
That is, the thickness (width) of the bar code 1 and the bar code interval are read as accurately as possible.
【0009】即ち、この補正方法は、図2において、
まずバーコード1の始端又は終端何れかの境界に相当す
るx座標(境界座標値)が与えられる点、即ち変曲点A
を含む区間S1 (以下これを主座標区間とよぶ)を検出
する。 次に、その区間S1 の直前,直後の区間(以下これを
それぞれ前座標区間S2 ,後座標区間S3 とよぶ)にお
いてそれぞれ各量子化点P1 どうしの差分値を求める。
例えば図2に示す各量子化点をつなぐグラフ3′(以下
これを量子化曲線という)でのy方向の差分値を求める
と、前座標区間S2 については、 Δy1 =y2 −y1 (ただし第1量子化点P1 及び第2
量子化点P2 のy座標を夫々y1 ,y2 とする。) 同様に後座標区間S3 については、 Δy2 =y4 −y3 (ただし第3量子化点P3 及び第4
量子化点P4 のy座標を夫々y3 ,y4 とする。)とな
る。That is, in this correction method, FIG.
First, a point to which an x coordinate (boundary coordinate value) corresponding to the boundary of either the start or end of the barcode 1 is given, that is, the inflection point A
It detects a section including S 1 (hereinafter referred to as a main coordinate interval). Next, in the sections immediately before and after the section S 1 (hereinafter referred to as the preceding coordinate section S 2 and the subsequent coordinate section S 3 ), a difference value between the quantization points P 1 is obtained.
When determining the difference in the y direction in the graph 3 connecting the respective quantization points shown in FIG. 2 '(hereinafter this is called quantization curve), the coordinates before section S 2, for example, [Delta] y 1 = y 2 -y 1 (However, the first quantization point P 1 and the second quantization point P 1
The y-coordinate of the quantization point P 2 is defined as y 1 and y 2 , respectively. ) For post-coordinate section S 3, like, Δy 2 = y 4 -y 3 ( provided that the third quantization point P 3 and the fourth
The y-coordinate of the quantization point P 4 is defined as y 3 and y 4 , respectively. ).
【0010】従って、これらの差分値の比を求め、こ
れに基づいて変曲点を与えるx座標、即ち、境界座標値
x′を決定する。つまり、この境界座標値x′は、量子
化曲線の特徴として前座標区間S2 と後座標区間S3 と
のうち差分値の大きな区間(この実施例では前座標区間
(S2 )側)に偏倚することに着目し、次の補正式 x′=x2 +Δx・〔Δy2 /(Δy1 +Δy2 )〕 (但しΔx=x3 −x2 ) によって得られるようになっている。これにより、量子
化誤差を極力抑えた、即ち変曲点Aにできるだけ近づい
た座標値x′が求められる。Therefore, the ratio of these difference values is obtained, and the x coordinate which gives the inflection point, that is, the boundary coordinate value x 'is determined based on the ratio. In other words, the boundary coordinate value x 'is a large interval (before in this embodiment the coordinates interval (S 2) side) of the rear coordinate interval S 3 Tonouchi difference value between the coordinates before section S 2 as a characteristic of the quantization curve Paying attention to the deviation, it can be obtained by the following correction expression x ′ = x 2 + Δx · [Δy 2 / (Δy 1 + Δy 2 )] (where Δx = x 3 −x 2 ). As a result, a coordinate value x ′ that minimizes the quantization error, that is, approaches the inflection point A as much as possible is obtained.
【0011】従って、この実施例によれば、比較的簡単
な演算により量子化誤差の発生を極力抑えることがで
き、その結果バーコードの太さ(幅)及びバーコード間
隔を極めて正確に検出することができる。なお、この実
施例では、バーコードのパターン認識用として使用した
が、特にこれに限定されるものではなく、例えばカルラ
ーコード等他のパターンの認識に対しても適用すること
ができる。Therefore, according to this embodiment, the occurrence of a quantization error can be suppressed as much as possible by a relatively simple operation, and as a result, the thickness (width) of the barcode and the barcode interval can be detected very accurately. be able to. In this embodiment, the bar code is used for pattern recognition. However, the present invention is not limited to this, and can be applied to the recognition of other patterns such as a color code.
【0012】[0012]
【発明の効果】以上説明してきたように、この発明に係
る記録票の読取信号処理方法によれば、主座標区間の直
前直後の区間における差分値どうしの比の値を考慮し
て、主座標区間の始点位置から境界座標値までの幅を決
定しており、その差分値比の大きさに応じて境界座標値
が主座標区間の中央位置から前後にずれるように量子化
誤差の補正を行うことができるので、デジタル方式であ
っても量子化誤差の発生が極力抑えられ、これにより記
録票のできるだけ正確な読取りを行うことができる。As described above, according to the recording signal reading signal processing method of the present invention, the main coordinate section is taken into account by taking into account the ratio of the difference values in the section immediately before and after the main coordinate section. The width from the start point of the section to the boundary coordinate value is determined, and the quantization error is corrected so that the boundary coordinate value shifts forward and backward from the center position of the main coordinate section according to the magnitude of the difference value ratio. Therefore, the generation of a quantization error can be suppressed as much as possible even in a digital system, so that the record slip can be read as accurately as possible.
【図1】この発明に係る記録票の読取信号処理方法を用
いてバーコードを読取るときの信号処理方法を示す波形
図。FIG. 1 is a waveform chart showing a signal processing method when a barcode is read by using the recording signal reading signal processing method according to the present invention.
【図2】この発明に係る記録票の読取信号処理方法を説
明するために用いる量子化されたデジタル信号の曲線を
示すグラフ。FIG. 2 is a graph showing a curve of a quantized digital signal used for describing a method of processing a read signal of a record slip according to the present invention.
【図3】従来のアナログ方式を用いた信号処理方法を示
す波形図。FIG. 3 is a waveform chart showing a signal processing method using a conventional analog system.
【図4】従来のデジタル方式を用いた信号処理方法を示
す波形図。FIG. 4 is a waveform chart showing a signal processing method using a conventional digital method.
2 アナログ信号 3 (量子化された)デジタル信号 2 analog signal 3 (quantized) digital signal
───────────────────────────────────────────────────── フロントページの続き (72)発明者 加藤 真一 東京都台東区上野1丁目10番12号 日本 電気精器株式会社内 (58)調査した分野(Int.Cl.6,DB名) G06K 7/10────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Shinichi Kato 1-10-12 Ueno, Taito-ku, Tokyo Japan Electric Seiki Co., Ltd. (58) Field surveyed (Int. Cl. 6 , DB name) G06K 7 /Ten
Claims (2)
手段から出力されたアナログ信号をA/D変換手段によ
ってデジタル信号へ量子化させたのち、その量子化され
たデジタル信号の差分処理を行い、前記コード幅に応じ
た座標間隔で信号を出力する記録票の読取信号処理方法
であって、 前記量子化されたデジタル信号どうしの差分処理を行う
際に、最大差分値を与える主座標区間の直前の前座標区
間と直後の後座標区間における差分値どうしの比の値に
応じて補正を行って、前記各コードの境界部分に対応す
る境界座標値を決定するように構成したことを特徴とす
る記録票の読取信号処理方法。An analog signal output from a reading means for reading a code recorded on a record slip is quantized to a digital signal by an A / D conversion means, and a difference process of the quantized digital signal is performed. A method of processing a read signal of a record sheet for outputting a signal at a coordinate interval according to the code width, wherein when performing a difference process between the quantized digital signals, a main coordinate section giving a maximum difference value The correction is performed according to the value of the ratio between the difference values in the immediately preceding coordinate section and the immediately following coordinate section, and the boundary coordinate value corresponding to the boundary portion of each code is determined. Signal processing method of a record slip to be executed.
化されたデジタル信号の差分値をΔy1 ,Δy2 とし、
主座標区間の始点位置座標をx,主座標区間の値をΔx
としたときに、境界座標値x′が次の補正式 x′=x+Δx・〔Δy2 /(Δy1 +Δy2 )〕 によって決定されることを特徴とする請求項1に記載の
記録票の読取信号処理方法。2. The difference value between the quantized digital signal in the coordinate section and the post-coordinate section is defined as Δy 1 , Δy 2 ,
X is the starting point position coordinate of the main coordinate section, and Δx is the value of the main coordinate section
That when you, read boundary coordinate value x 'following correction equation x' of record file according to claim 1, characterized in that it is determined by = x + Δx · [Δy 2 / (Δy 1 + Δy 2) ] Signal processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4038804A JP2826226B2 (en) | 1992-01-29 | 1992-01-29 | Read signal processing method of record slip |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4038804A JP2826226B2 (en) | 1992-01-29 | 1992-01-29 | Read signal processing method of record slip |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05205098A JPH05205098A (en) | 1993-08-13 |
| JP2826226B2 true JP2826226B2 (en) | 1998-11-18 |
Family
ID=12535486
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4038804A Expired - Fee Related JP2826226B2 (en) | 1992-01-29 | 1992-01-29 | Read signal processing method of record slip |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2826226B2 (en) |
-
1992
- 1992-01-29 JP JP4038804A patent/JP2826226B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05205098A (en) | 1993-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6152371A (en) | Method and apparatus for decoding bar code symbols | |
| JP2886545B2 (en) | Margin recognition method and bar code reader | |
| JP2826226B2 (en) | Read signal processing method of record slip | |
| JPH0551947B2 (en) | ||
| JP2853933B2 (en) | Signal processing method for recording form reader | |
| JP4032204B2 (en) | Magnetic pattern recognition device, recognition method, and information recording medium | |
| JPH0233195B2 (en) | DEJITARUJOHONOKIROKUHOHOOYOBIKIROKUTANTAI | |
| JPH0320792B2 (en) | ||
| JP2741786B2 (en) | Barcode data binarization method | |
| JP4012765B2 (en) | Magnetic stripe reader | |
| JPS6266300A (en) | Voice recognition system | |
| JP2576370B2 (en) | ID mark reading device | |
| JPH0462694A (en) | Bar code | |
| JPH0248948B2 (en) | ||
| JP3712825B2 (en) | Image processing method, apparatus, and recording medium | |
| JP2734538B2 (en) | Binary data reproducing method and apparatus, and recording medium | |
| JP2007233598A (en) | Magnetic ink character reader and control method thereof | |
| JPH0410113B2 (en) | ||
| JPS5892066A (en) | Serial signal correcting system | |
| JPS6027074A (en) | Information reader | |
| JP2009223893A (en) | Image recognition apparatus and method, and image reader with image recognition apparatus | |
| JPH0259869A (en) | Pattern deformation system | |
| JP2003346082A (en) | Magnetic ink character recognition device | |
| JPH05182010A (en) | Noise removal method from signal pattern waveform | |
| JPH0421913B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |