JPH06290294A - Bar code reading circuit - Google Patents

Bar code reading circuit

Info

Publication number
JPH06290294A
JPH06290294A JP5079596A JP7959693A JPH06290294A JP H06290294 A JPH06290294 A JP H06290294A JP 5079596 A JP5079596 A JP 5079596A JP 7959693 A JP7959693 A JP 7959693A JP H06290294 A JPH06290294 A JP H06290294A
Authority
JP
Japan
Prior art keywords
pattern
read
bar code
reading
bar
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.)
Granted
Application number
JP5079596A
Other languages
Japanese (ja)
Other versions
JP2781120B2 (en
Inventor
Iwao Okita
岩夫 沖田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5079596A priority Critical patent/JP2781120B2/en
Publication of JPH06290294A publication Critical patent/JPH06290294A/en
Application granted granted Critical
Publication of JP2781120B2 publication Critical patent/JP2781120B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide the satisfactory bar code reading circuit which can deal with the kind of a line image sensor, the change of read picture element density or a change in the thickness of bars caused by the change of an optical system with a same circuit by setting a threshold value for deciding the thickness of respective bars with different thickness from the outside. CONSTITUTION:A line image sensor 3 to read a bar code 1 is connected to a voltage comparator 6, the voltage comparator 6 is connected to a serial-in/ parallel-out shift register 21, and image data are converted to parallel data here. Logic gates 22, 23, 24 and 25 detect the front edge and rear edge of a read pattern which reads the bars. A pattern width setting register 28 sets a value between the numbers of picture elements corresponding to the thickness of respective bars. A programmable counter 26 is provided to count the value set here, and the thickness of bars is visually recognized by comparing the width shown by this value with the width of the read pattern.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、通帳等に印刷され、太
さの異なる複数のバーからなるバーコードを読取る読取
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reading circuit for reading a bar code which is printed on a passbook or the like and is composed of a plurality of bars having different thicknesses.

【0002】[0002]

【従来の技術】従来、バーコードは各種商品等に広く使
用されている。この内、通帳に使用されるバーコード
は、2種類の太さのバーの組合せによりコードを意味す
るようになっている。
2. Description of the Related Art Conventionally, bar codes have been widely used in various products. Among them, the bar code used for the passbook means a code by a combination of two kinds of bar having different thicknesses.

【0003】図4は従来の通帳のバーコードを読取る読
取回路を示す回路図であり、この図にしたがって従来の
読取回路を説明する。図4において、読取り対象である
バーコード1に対してレンズ2を介して読取りラインイ
メージセンサ(CCDセンサ)3が対峙される。センサ
3にはクロックジェネレータ4および増幅器5が接続さ
れ、増幅器5には電圧比較器6が接続されている。電圧
比較器6は、増幅器5により増幅されたセンサ3の出力
電圧を基準電圧Vref と比較して二値化データを出力す
る。電圧比較器6は、シリアルイン−パラレルアウトシ
フトレジスタ7に接続されている。このシリアルイン−
パラレルアウトシフトレジスタ7は、論理ゲート8、
9、10、11を介して別のシリアルイン−パラレルア
ウトシフトレジスタ12に接続されている。
FIG. 4 is a circuit diagram showing a conventional reading circuit for reading a bar code of a passbook, and the conventional reading circuit will be described with reference to this figure. In FIG. 4, a reading line image sensor (CCD sensor) 3 is opposed to a barcode 1 to be read via a lens 2. A clock generator 4 and an amplifier 5 are connected to the sensor 3, and a voltage comparator 6 is connected to the amplifier 5. The voltage comparator 6 compares the output voltage of the sensor 3 amplified by the amplifier 5 with the reference voltage Vref and outputs binarized data. The voltage comparator 6 is connected to the serial-in / parallel-out shift register 7. This serial in
The parallel out shift register 7 includes a logic gate 8,
It is connected to another serial-in / parallel-out shift register 12 via 9, 10, 11.

【0004】次に動作を説明する。まずレンズ2を介し
てバーコード1の像がセンサ3の各画素上に結像し、各
画素の像の明るさに応じた電圧が、クロックジェネレー
タ4で発生したスキャンクロックにより順次読み出さ
れ、増幅器5で増幅された後、電圧比較器6で基準電圧
Vref と比較される。これにより読取りデータは、セン
サ3の画素数個の二値データ列に変換される。
Next, the operation will be described. First, the image of the barcode 1 is formed on each pixel of the sensor 3 via the lens 2, and the voltage corresponding to the brightness of the image of each pixel is sequentially read by the scan clock generated by the clock generator 4, After being amplified by the amplifier 5, it is compared with the reference voltage Vref by the voltage comparator 6. As a result, the read data is converted into a binary data string having several pixels of the sensor 3.

【0005】二値化により、黒を“1”、白を“0”に
対応させれば、二値データ列中の“1”から“0”への
変化点の数は、バーの本数となる。
By binarizing black to correspond to "1" and white to "0", the number of transition points from "1" to "0" in the binary data string is equal to the number of bars. Become.

【0006】レンズ2の倍率を、物体1mmに対しセン
サN画素となるように選択し、細バーの幅をW1mm、
太バーの幅をW2mmとすると、細バーはW1×N個、
太バーはW2×N個の“1”の連続データとなる。
The magnification of the lens 2 is selected so that there are N pixels of the sensor for 1 mm of the object, and the width of the thin bar is W1 mm,
If the width of the thick bar is W2mm, the number of thin bars is W1 × N,
The thick bar is W2 × N continuous data of “1”.

【0007】電圧比較器6から出力された二値データ列
は、シリアルイン−パラレルアウトシフトレジスタ7に
入力される。シフトレジスタ7のクロックレートをスキ
ャンクロックと等しくすることにより、センサの1画素
がシフトレジスタ7の1ビットに対応する。
The binary data string output from the voltage comparator 6 is input to the serial-in / parallel-out shift register 7. By making the clock rate of the shift register 7 equal to the scan clock, one pixel of the sensor corresponds to one bit of the shift register 7.

【0008】シフトレジスタ7の出力Q1は、インバー
タ9に入力され、出力Q2はインバータ9の出力ととも
にナンドゲート10に入力される。ナンドゲート10の
出力はオアゲート11に入力される。またシフトレジス
タ7の出力Q3〜Qnは、アンドゲート8に入力され
る。アンドゲート8の出力は、シリアルイン−パラレル
アウトシフトレジスタ12に入力され、オアゲート11
の出力はシフトレジスタ12のクロックに入力される。
これらの回路構成により、シフトレジスタ7の出力Q1
が“0”で出力Q2が“1”の時、出力Q3〜Qnが全
て“1”であれば、太バーであると判定され、それ以外
の場合は、細バーと判定される。なおここで、n=(W
1+W2)×N/2+1(小数点以下切上げ)とする。
The output Q1 of the shift register 7 is input to the inverter 9, and the output Q2 is input to the NAND gate 10 together with the output of the inverter 9. The output of the NAND gate 10 is input to the OR gate 11. The outputs Q3 to Qn of the shift register 7 are input to the AND gate 8. The output of the AND gate 8 is input to the serial-in / parallel-out shift register 12, and the OR gate 11
Is output to the clock of the shift register 12.
With these circuit configurations, the output Q1 of the shift register 7
Is "0" and the output Q2 is "1", if all the outputs Q3 to Qn are "1", it is determined to be a thick bar, and otherwise, it is determined to be a thin bar. Here, n = (W
1 + W2) × N / 2 + 1 (rounded up after the decimal point).

【0009】出力Q1が“0”、Q2が“1”の時、シ
フトレジスタ12のクロックがイネーブルとなり、出力
Q3〜Qnのアンド信号をシフトレジスタ12に入力す
ることにより、太バーが“1”、細バーが“0”の二値
の数値データ列に変換される。
When the output Q1 is "0" and Q2 is "1", the clock of the shift register 12 is enabled, and the AND signals of the outputs Q3 to Qn are input to the shift register 12, so that the thick bar is "1". , The thin bar is converted into a binary numeric data string of "0".

【0010】[0010]

【発明が解決しようとする課題】従来のバーコード読取
回路においては、ラインイメージセンサの種類や光学系
が変わって、物体1mm当たりのセンサ画素数が変わっ
たり、バーの太さが異なる場合には、回路の変更が必要
となる。そうなると、回路ブロックの共通ゲートアレイ
が使用できなくなることから、回路のコストアップにな
るという問題があった。
In the conventional bar code reading circuit, when the type of the line image sensor or the optical system is changed and the number of sensor pixels per 1 mm of the object is changed or the bar thickness is different, , The circuit needs to be changed. In that case, the common gate array of the circuit block cannot be used, which causes a problem of increasing the cost of the circuit.

【0011】本発明は、上記問題点に鑑みてなされたも
ので、その目的は、太さの異なるバーのそれぞれの太さ
を判定するための閾値を外部から設定可能にすることに
より、イメージセンサの種類や光学系の変更による読取
画素密度の変化、あるいはバーの太さの変化に同一の回
路で対応できる優れたバーコード読取回路を提供するこ
とである。
The present invention has been made in view of the above problems, and an object thereof is to make it possible to externally set a threshold value for determining the thickness of each bar having a different thickness, thereby making it possible to provide an image sensor. It is an object of the present invention to provide an excellent bar code reading circuit capable of coping with a change in the read pixel density or a change in the bar thickness due to the change of the type and the optical system in the same circuit.

【0012】[0012]

【課題を解決するための手段】上記課題を解決するため
に本発明は、太さの異なる複数のバーからなるバーコー
ドパターンをラインイメージセンサで読取り、読取った
イメージデータを二値化してイメージセンサの読取画素
に対応するビットデータに変換し、そのビットをカウン
トすることによりバーコードパターンを検出するバーコ
ード読取回路において、前記二値化イメージデータをパ
ラレルデータに変換する変換回路と、前記パラレルデー
タに基づいて読取りパターンの前縁および後縁を検出す
る読取りパターン検出回路と、各バーの幅にそれぞれ対
応する画素数の間の値を閾値として外部から設定可能な
パターン幅設定手段と、前記パターン幅設定手段で設定
された値をビットでカウントするカウント手段と、前記
読取りパターン検出回路で検出された前縁および後縁で
規定される読取りパターンにおける画素数に対応するビ
ット数を、前記パターン幅設定手段で設定された画素数
に対応し前記カウント手段でカウントされたビット数と
比較することにより、読取りパターンがどの太さのバー
かを判定する判定手段とを設けたものである。
In order to solve the above-mentioned problems, the present invention reads a bar code pattern composed of a plurality of bars having different thicknesses with a line image sensor and binarizes the read image data to obtain an image sensor. In a bar code reading circuit for detecting the bar code pattern by converting the bit data corresponding to the read pixel and counting the bit, and a conversion circuit for converting the binarized image data into parallel data; A reading pattern detection circuit for detecting the leading edge and the trailing edge of the reading pattern based on the above, pattern width setting means externally set with a value between the number of pixels corresponding to the width of each bar as a threshold, and the pattern. Counting means for counting the value set by the width setting means in bits, and the reading pattern detection The number of bits corresponding to the number of pixels in the read pattern defined by the leading edge and the trailing edge detected by the circuit is the number of bits corresponding to the number of pixels set by the pattern width setting means and counted by the counting means. The comparison means is provided with a determining means for determining which bar the read pattern has.

【0013】[0013]

【作用】上記構成を有する本発明では、イメージセンサ
で読取られたイメージデータを変換回路でパラレルデー
タに変換し、読取りパターン検出回路で読取りパターン
の前縁および後縁が検出される。ここで検出される前縁
および後縁により読取りパターンが規定される。パター
ン幅設定手段は、バーコードの各バーにそれぞれ対応す
る画素数間の値を閾値として設定する。この閾値は外部
から設定可能である。ここで設定された値はカウント手
段によりカウントされ、このカウント値と、前記読取り
パターンのビット数とが判定手段により比較される。判
定手段はこの比較により、読取りパターンがどの太さの
バーかを判定する。
In the present invention having the above-mentioned structure, the image data read by the image sensor is converted into parallel data by the conversion circuit, and the leading edge and the trailing edge of the reading pattern are detected by the reading pattern detecting circuit. The leading and trailing edges detected here define the reading pattern. The pattern width setting means sets a value between the numbers of pixels corresponding to each bar of the barcode as a threshold value. This threshold can be set from the outside. The value set here is counted by the counting means, and the count value is compared with the number of bits of the read pattern by the judging means. Based on this comparison, the determination means determines which bar the read pattern has.

【0014】読取画素密度およびバーの太さが変化した
場合、前記パターン幅設定手段により、各バーの太さを
判定するための閾値を外部から変えることによって、回
路を変更しなくても対応できる。
When the read pixel density and the bar thickness change, the pattern width setting means externally changes the threshold value for determining the bar thickness, so that it can be dealt with without changing the circuit. .

【0015】[0015]

【実施例】以下本発明に係る実施例を図面にしたがって
説明する。なお各図面に共通する要素には同一の符号を
付す。
Embodiments of the present invention will be described below with reference to the drawings. Note that elements common to the drawings are given the same reference numerals.

【0016】図1は本発明に係る実施例を示す回路図で
ある。図1において、従来例と同様に、太バーと細バー
とからなるバーコード1に対してレンズ2を介して読取
りラインイメージセンサ(CCDセンサ)3が対峙され
る。センサ3にはクロックジェネレータ4および増幅器
5が接続され、増幅器5には電圧比較器6が接続されて
いる。電圧比較器6は、センサ3の出力電圧を基準電圧
Vref と比較して二値化データを出力する。電圧比較器
6は、シリアルイン−パラレルアウトシフトレジスタ2
1に接続されている。またクロックジェネレータ4もシ
リアルイン−パラレルアウトシフトレジスタ21に接続
されている。
FIG. 1 is a circuit diagram showing an embodiment according to the present invention. In FIG. 1, similarly to the conventional example, a reading line image sensor (CCD sensor) 3 is opposed to a bar code 1 including a thick bar and a thin bar via a lens 2. A clock generator 4 and an amplifier 5 are connected to the sensor 3, and a voltage comparator 6 is connected to the amplifier 5. The voltage comparator 6 compares the output voltage of the sensor 3 with the reference voltage Vref and outputs binarized data. The voltage comparator 6 includes a serial-in / parallel-out shift register 2
Connected to 1. The clock generator 4 is also connected to the serial-in / parallel-out shift register 21.

【0017】シリアルイン−パラレルアウトシフトレジ
スタ21の出力Q1はノアゲート22の一方の入力端子
およびアンドゲート23に接続され、出力Q2はノアゲ
ート22の他方の入力端子およびノアゲート24の一方
の入力端子に接続されている。出力Q3はノアゲート2
4の他方の入力端子およびナンドゲート25の一方の入
力端子に接続されている。またノアゲート22の出力は
ナンドゲート25の他方の入力端子に接続され、ノアゲ
ート24の出力はアンドゲート23の他方の入力端子に
接続されている。そしてアンドゲート23の出力はプロ
グラマブルカウンタ26に接続され、ナンドゲート25
の出力はオアゲート27の一方の入力端子に接続されて
いる。
The output Q1 of the serial-in / parallel-out shift register 21 is connected to one input terminal of the NOR gate 22 and the AND gate 23, and the output Q2 is connected to the other input terminal of the NOR gate 22 and one input terminal of the NOR gate 24. Has been done. Output Q3 is NOR gate 2
4 and the one input terminal of the NAND gate 25. The output of the NOR gate 22 is connected to the other input terminal of the NAND gate 25, and the output of the NOR gate 24 is connected to the other input terminal of the AND gate 23. The output of the AND gate 23 is connected to the programmable counter 26, and the NAND gate 25
Is connected to one input terminal of the OR gate 27.

【0018】パターン幅設定レジスタ28には、読取り
を行うバーコードの太バーの幅に対応するイメージセン
サの画素数と、細バーの幅に対応する画素数との中間値
(閾値)を示すデータがセットされている。このデータ
はプログラマブルカウンタ27にローディングされる。
プログラマブルカウンタ27は、ローディングされたデ
ータに基づいてカウントし、出力信号をシリアルイン−
パラレルアウトシフトレジスタ29に出力する。またオ
アゲート27の出力はシリアルイン−パラレルアウトシ
フトレジスタ29に接続されている。
The pattern width setting register 28 is data indicating an intermediate value (threshold value) between the number of pixels of the image sensor corresponding to the width of the thick bar of the barcode to be read and the number of pixels corresponding to the width of the thin bar. Is set. This data is loaded into the programmable counter 27.
The programmable counter 27 counts based on the loaded data and serially outputs the output signal.
Output to the parallel out shift register 29. The output of the OR gate 27 is connected to the serial-in / parallel-out shift register 29.

【0019】次に本実施例の動作を図2に示すタイムチ
ャートにしたがって説明する。図2は実施例の動作を示
すタイムチャートである。
Next, the operation of this embodiment will be described with reference to the time chart shown in FIG. FIG. 2 is a time chart showing the operation of the embodiment.

【0020】まずレンズ2を介してバーコード1の像が
センサ3の各画素上に結像し、各画素の像の明るさに応
じた電圧が、クロックジェネレータ4で発生したスキャ
ンクロックにより順次読み出され、増幅器5で増幅され
た後、電圧比較器6で基準電圧Vref と比較される。こ
れにより読取りデータは、センサ3の画素数個の二値デ
ータ列に変換される。
First, the image of the bar code 1 is formed on each pixel of the sensor 3 through the lens 2, and the voltage corresponding to the brightness of the image of each pixel is sequentially read by the scan clock generated by the clock generator 4. After being outputted and amplified by the amplifier 5, it is compared with the reference voltage Vref by the voltage comparator 6. As a result, the read data is converted into a binary data string having several pixels of the sensor 3.

【0021】二値化により、黒を“1”、白を“0”に
対応させれば、二値データ列中の“1”から“0”への
変化点の数は、バーの本数となる。
By binarizing black to "1" and white to "0", the number of transition points from "1" to "0" in the binary data string is equal to the number of bars. Become.

【0022】レンズ2の倍率を、物体1mmに対しセン
サN画素となるように選択し、細バーの幅をW1mm、
太バーの幅をW2mmとすると、細バーはW1×N個、
太バーはW2×N個の“1”の連続データとなる。
The magnification of the lens 2 is selected so that the sensor has N pixels for 1 mm of the object, and the width of the thin bar is W1 mm.
If the width of the thick bar is W2mm, the number of thin bars is W1 × N,
The thick bar is W2 × N continuous data of “1”.

【0023】電圧比較器6から出力された二値データ列
は、シリアルイン−パラレルアウトシフトレジスタ21
に入力される。シフトレジスタ21のクロックレートを
スキャンクロックと等しくすることにより、センサの1
画素がシフトレジスタ21の1ビットに対応する。シフ
トレジスタ21の各出力Q1、Q2、Q3は、図2に示
すように1ビットずつずれて出力される。
The binary data string output from the voltage comparator 6 is a serial-in / parallel-out shift register 21.
Entered in. By setting the clock rate of the shift register 21 to be equal to the scan clock,
A pixel corresponds to 1 bit of the shift register 21. The outputs Q1, Q2, Q3 of the shift register 21 are shifted by one bit as shown in FIG.

【0024】シフトレジスタ21の出力Q1が“1”、
Q2が“0”、Q3が“0”の時、ノアゲート24およ
びアンドゲート23により、プログラマブルカウンタ2
6のローディング信号が“1”となり、パターン幅設定
レジスタ28にセットされているデータをローディング
し、スキャンクロックおよびシフトレジスタ21のクロ
ックに同期してカウントダウンを開始する。図2にはカ
ウント値をnとして示してある。カウント値が0になる
と、プログラマブルカウンタ26はボロー信号をシフト
レジスタ29に出力する。このボロー信号は次にデータ
がローディングされるまで保持される。
The output Q1 of the shift register 21 is "1",
When Q2 is "0" and Q3 is "0", the programmable counter 2 is operated by the NOR gate 24 and the AND gate 23.
The loading signal of 6 becomes "1", the data set in the pattern width setting register 28 is loaded, and the countdown is started in synchronization with the scan clock and the clock of the shift register 21. In FIG. 2, the count value is shown as n. When the count value becomes 0, the programmable counter 26 outputs a borrow signal to the shift register 29. This borrow signal is held until the next data is loaded.

【0025】シフトレジスタ21の出力Q1が“0”、
Q2が“0”、Q3が“1”の時、ノアゲート22およ
びナンドゲート25によりオアゲート27の一方の入力
が“1”となり、シフトレジスタ29にクロック信号が
入力される。このクロック信号により、シフトレジスタ
29がイネーブルとなり、データ入力端子のデータがシ
フトレジスタ29に取り込まれる。
The output Q1 of the shift register 21 is "0",
When Q2 is "0" and Q3 is "1", one input of the OR gate 27 becomes "1" by the NOR gate 22 and the NAND gate 25, and the clock signal is input to the shift register 29. This clock signal enables the shift register 29, and the data at the data input terminal is taken into the shift register 29.

【0026】この時、データ列“001”と“100”
とに挟まれた“1”から“1”までのデータの数が、パ
ターン幅設定レジスタ28にセットされた数値(n)以
上であれば、即ち、ボロー信号が出力されている間にシ
フトレジスタ29のクロックがイネーブルになれば、シ
フトレジスタ29の入力されるデータは“1”となり、
セットされた数値(n)以下であれば、即ち、ボロー信
号が出力される前にシフトレジスタ29のクロックがイ
ネーブルになれば、シフトレジスタ29の入力されるデ
ータは“0”となり、図2に示すように、太バーが
“1”、細バーが“0”の二値の数値データ列に変換で
きる。
At this time, the data strings "001" and "100"
If the number of data from "1" to "1" sandwiched between and is greater than or equal to the numerical value (n) set in the pattern width setting register 28, that is, while the borrow signal is being output, the shift register When the clock of 29 is enabled, the data input to the shift register 29 becomes "1",
If the value is equal to or less than the set numerical value (n), that is, if the clock of the shift register 29 is enabled before the borrow signal is output, the data input to the shift register 29 becomes "0", as shown in FIG. As shown, it can be converted into a binary numerical data string in which the thick bar is "1" and the thin bar is "0".

【0027】なお本実施例では、図2にa点で示すよう
な孤立した“0”は、ノイズと見なし、“1”と読み替
えてパターン幅の判定を実行するようにしている。
In the present embodiment, the isolated "0" as shown by point a in FIG. 2 is regarded as noise, and is read as "1" to determine the pattern width.

【0028】上記実施例では、バーの太さが2種類の場
合で説明したが、3種類の場合でも本発明を実施でき
る。この場合は、パターン幅設定レジスタ、プログラマ
ブルカウンタおよびシリアルイン−パラレルアウトシフ
トレジスタをそれぞれ増設し、2つのパターン幅設定レ
ジスタにより異なる2つの閾値(n1、n2、但しn1
<n2)を設定して、図3に示すように、両方をカウン
ト中にイネーブルになれば最も狭い幅、n2のみカウン
ト中にイネーブルになれば中間の幅、そして両方のカウ
ントが終了後にイネーブルになれば最も広い幅と判定す
る。なお図3は本発明の他の実施例を示すタイムチャー
トである。
In the above-described embodiment, the case where the bar has two thicknesses has been described, but the present invention can be implemented even when the bar has three thicknesses. In this case, a pattern width setting register, a programmable counter, and a serial-in-parallel-out shift register are added respectively, and two thresholds (n1, n2, but n1) that differ depending on the two pattern width setting registers are used.
<N2) is set, as shown in FIG. 3, the narrowest width is enabled if both are enabled during counting, the middle width is enabled if only n2 is enabled during counting, and then enabled after both counts are completed. If so, the width is determined to be the widest. 3 is a time chart showing another embodiment of the present invention.

【0029】さらに本発明は、黒バーと黒バーの間の白
バーの幅を変えたバーコードを読み取る場合にも有効で
ある。
Further, the present invention is also effective when reading a bar code in which the width of the white bar between the black bars is changed.

【0030】[0030]

【発明の効果】以上詳細に説明したように本発明によれ
ば、パターン幅判定の閾値をパターン幅設定レジスタに
より、外部から設定できるようにしたので、イメージセ
ンサの種類、レンズの倍率、バーの太さに応じて閾値を
可変にでき、回路を変更することなく各種の用途に対応
可能となる。したがって共通ゲートアレイ化によるコス
トダウンが期待できる。
As described above in detail, according to the present invention, the threshold value for determining the pattern width can be set from the outside by the pattern width setting register. Therefore, the type of the image sensor, the lens magnification, and the bar The threshold value can be changed according to the thickness, and various applications can be supported without changing the circuit. Therefore, cost reduction can be expected by using a common gate array.

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

【図1】本発明に係る実施例のバーコード読取回路を示
す回路図である。
FIG. 1 is a circuit diagram showing a bar code reading circuit according to an embodiment of the present invention.

【図2】実施例の動作を示すタイムチャートである。FIG. 2 is a time chart showing the operation of the embodiment.

【図3】本発明の他の実施例を示すタイムチャートであ
る。
FIG. 3 is a time chart showing another embodiment of the present invention.

【図4】従来のバーコード読取回路を示す回路図であ
る。
FIG. 4 is a circuit diagram showing a conventional barcode reading circuit.

【符号の説明】[Explanation of symbols]

1 バーコード 3 ラインイメージセンサ 6 電圧比較器 21 シリアルイン−パラレルアウトシフトレジスタ 22 ノアゲート 23 アンドゲート 24 ノアゲート 25 ナンドゲート 26 プログラマブルカウンタ 28 パターン幅設定レジスタ 29 シリアルイン−パラレルアウトシフトレジスタ 1 Bar Code 3 Line Image Sensor 6 Voltage Comparator 21 Serial In-Parallel Out Shift Register 22 NOR Gate 23 AND Gate 24 NOR Gate 25 NAND Gate 26 Programmable Counter 28 Pattern Width Setting Register 29 Serial In-Parallel Out Shift Register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 太さの異なる複数のバーからなるバーコ
ードパターンをラインイメージセンサで読取り、読取っ
たイメージデータを二値化してイメージセンサの読取画
素に対応するビットデータに変換し、そのビットをカウ
ントすることによりバーコードパターンを検出するバー
コード読取回路において、 前記二値化イメージデータをパラレルデータに変換する
変換回路と、 前記パラレルデータに基づいて読取りパターンの前縁お
よび後縁を検出する読取りパターン検出回路と、 各バーの幅にそれぞれ対応する画素数の間の値を閾値と
して外部から設定可能なパターン幅設定手段と、 前記パターン幅設定手段で設定された値をビットでカウ
ントするカウント手段と、 前記読取りパターン検出回路で検出された前縁および後
縁で規定される読取りパターンにおける画素数に対応す
るビット数を、前記パターン幅設定手段で設定された画
素数に対応し前記カウント手段でカウントされたビット
数と比較することにより、読取りパターンがどの太さの
バーかを判定する判定手段とを設けたことを特徴とする
バーコード読取回路。
1. A bar code pattern consisting of a plurality of bars having different thicknesses is read by a line image sensor, the read image data is binarized and converted into bit data corresponding to the read pixels of the image sensor, and the bits are converted. In a bar code reading circuit for detecting a bar code pattern by counting, a conversion circuit for converting the binarized image data into parallel data, and reading for detecting a leading edge and a trailing edge of a reading pattern based on the parallel data. A pattern detection circuit, a pattern width setting means that can be externally set using a value between the number of pixels corresponding to the width of each bar as a threshold value, and a counting means that counts the value set by the pattern width setting means in bits. And a reading defined by the leading edge and the trailing edge detected by the reading pattern detection circuit. By comparing the number of bits corresponding to the number of pixels in the read pattern with the number of bits corresponding to the number of pixels set by the pattern width setting means and counted by the counting means, it is possible to determine which bar the reading pattern has. A bar code reading circuit provided with a judging means for judging.
JP5079596A 1993-04-06 1993-04-06 Barcode reading circuit Expired - Fee Related JP2781120B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5079596A JP2781120B2 (en) 1993-04-06 1993-04-06 Barcode reading circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5079596A JP2781120B2 (en) 1993-04-06 1993-04-06 Barcode reading circuit

Publications (2)

Publication Number Publication Date
JPH06290294A true JPH06290294A (en) 1994-10-18
JP2781120B2 JP2781120B2 (en) 1998-07-30

Family

ID=13694387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5079596A Expired - Fee Related JP2781120B2 (en) 1993-04-06 1993-04-06 Barcode reading circuit

Country Status (1)

Country Link
JP (1) JP2781120B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08287179A (en) * 1995-04-13 1996-11-01 Keyence Corp Optical information reader
US8746567B2 (en) 2011-02-04 2014-06-10 Casio Computer Co., Ltd. Barcode reader and computer program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61139886A (en) * 1984-12-11 1986-06-27 Canon Inc Information retrieving device
JPS62197877A (en) * 1986-02-26 1987-09-01 Hitachi Ltd Bar code reading system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61139886A (en) * 1984-12-11 1986-06-27 Canon Inc Information retrieving device
JPS62197877A (en) * 1986-02-26 1987-09-01 Hitachi Ltd Bar code reading system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08287179A (en) * 1995-04-13 1996-11-01 Keyence Corp Optical information reader
US8746567B2 (en) 2011-02-04 2014-06-10 Casio Computer Co., Ltd. Barcode reader and computer program product

Also Published As

Publication number Publication date
JP2781120B2 (en) 1998-07-30

Similar Documents

Publication Publication Date Title
JP2616921B2 (en) Label identification device
US4746789A (en) Reading device for bar codes
EP0042953A2 (en) Bar code candidate select circuit
JPH01319884A (en) Code reader
US4623935A (en) Picture extracting apparatus
JP2781120B2 (en) Barcode reading circuit
US6027243A (en) Parity check circuit
JPS61277248A (en) Method and device for discriminating picture quality of picture reader
JP3033277B2 (en) Frequency distribution calculator
US5253080A (en) Picture signal binarization apparatus avoiding a need for memory devices or shift registers for storing binary picture signals before output
JPS6226636B2 (en)
JPS58101545A (en) Serial transmission system
JPS58184686A (en) Medium detection system
SU913419A1 (en) Device for selecting object images
KR0121064Y1 (en) Fas searching and error detecting circuit of video phone
SU1316018A2 (en) Device for counting quantity of object images
JPH0352711B2 (en)
JP3225824B2 (en) N parallel continuous count discrimination circuit
JPS5925416A (en) Waiting circuit
JPS61173582A (en) Change point detecting circuit
JPH0668255A (en) Counter for histogram-counting
JPS60108978A (en) Upc type bar code symbol demodulating system
JPS5614767A (en) Picture reader
JPS63308472A (en) Picture signal binarization device
JPS63308471A (en) Picture signal binarization device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980414

LAPS Cancellation because of no payment of annual fees