JPH07168907A - Bar code decoder - Google Patents

Bar code decoder

Info

Publication number
JPH07168907A
JPH07168907A JP5314951A JP31495193A JPH07168907A JP H07168907 A JPH07168907 A JP H07168907A JP 5314951 A JP5314951 A JP 5314951A JP 31495193 A JP31495193 A JP 31495193A JP H07168907 A JPH07168907 A JP H07168907A
Authority
JP
Japan
Prior art keywords
data
counting
bits
storing
decoding
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.)
Pending
Application number
JP5314951A
Other languages
Japanese (ja)
Inventor
Yasushi Sudo
靖 須藤
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.)
Tohoku Ricoh Co Ltd
Ricoh Co Ltd
Original Assignee
Tohoku Ricoh Co Ltd
Ricoh 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 Tohoku Ricoh Co Ltd, Ricoh Co Ltd filed Critical Tohoku Ricoh Co Ltd
Priority to JP5314951A priority Critical patent/JPH07168907A/en
Publication of JPH07168907A publication Critical patent/JPH07168907A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a wide dynamic range with the addition of less hardware or processing by detecting the count value of a data counting means in a data control means and deciding data stored in a data storage means by means of a data conversion means based on the result. CONSTITUTION:When the number of bits of the count value in the data counting means 2 is larger than the number of data processing bits of a decoding processing means 7 when analog data from the data storage means 6 is counted by a reference clock in the data counting means 2, the data control means 5 compares the number of the bits which can be processed in the decoding means 7 with the number of the counting bits of the data counting means 2. The data conversion means 3 rounds down the lower bits of counting data of the data counting means 2 since influence on a decoding processing is small in the lower bits of data, and data is outputted to the decoding processing means 7 of a poststage. Data stored in the data storage means 6 is decided according to the output of the data control means 5 by the data conversion means 3 in such a way.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、バーコードラベルの読
み取りを行うためのバーコードデコード装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code decoding device for reading bar code labels.

【0002】[0002]

【従来の技術】ペンスキャナのように人間が手動で走査
を行うスキャナにおいては、扱う人や状況によって走査
速度が異なるために、基準クロックを用いてデータの計
数を行うデコード装置では、スキャナを低速で走査した
場合に計数手段またはデータ格納手段で計数値データの
オーバーフローが起きることが考えられる。
2. Description of the Related Art In a scanner, such as a pen scanner, in which a person manually scans, the scanning speed varies depending on the person handling the situation and the situation. It is conceivable that overflow of the count value data will occur in the counting means or the data storage means when the scanning is performed with.

【0003】また、低速スキャンに合わせ基準クロック
を低速にすると、高速のスキャンを行った場合に充分な
計数値が得られず、デコード処理における精度が落ちて
しまうことが考えられる。走査速度の異なるスキャナか
らのデータを1つのデコード装置でデコード処理を行う
場合も、同様な問題が考えられる。
Further, if the reference clock is slowed down in accordance with the low speed scan, it is possible that a sufficient count value cannot be obtained when the high speed scan is performed and the accuracy in the decoding process is deteriorated. The same problem can be considered when data from scanners having different scanning speeds is decoded by one decoding device.

【0004】なお、バーコードデコーダ装置において、
バー・スペース幅を計数するカウンタと処理回路のビッ
ト幅を同一ビット幅とした技術や、計数手段において、
データの計数時の基準クロックを可変することによって
アナログデータの計数を行う技術が、特開平2−76086
号公報,特開平4−216184号公報,特開平5−35902号
公報等に開示されている。
In the bar code decoder device,
In the technique of setting the bit width of the counter and the processing circuit to have the same bit width, or the counting means,
A technique for counting analog data by varying a reference clock when counting data is disclosed in Japanese Patent Laid-Open No. 2-76086.
Japanese Patent Application Laid-Open No. 4-216184, Japanese Patent Application Laid-Open No. 5-35902, and the like.

【0005】[0005]

【発明が解決しようとする課題】ところで、読み取り可
能幅(ダイナミックレンジ)を広げることで、より広い走
査速度に対応可能となるが、バー・スペース幅を計数す
る計数手段とデータ記憶(格納)手段のメモリビット幅が
同一ビット幅である従来のデコーダでは、読取データの
ダイナミックレンジを広げようとした場合に、計数手段
だけでなくデータ記憶手段のビット幅も広くしなければ
ならないために、メモリ等のデータ記憶手段のハードウ
ェア量が増加するという問題があった。
By expanding the readable width (dynamic range), a wider scanning speed can be accommodated. However, the counting means and the data storing (storing) means for counting the width of the bar space. In the conventional decoder in which the memory bit width of is the same bit width, when trying to widen the dynamic range of read data, the bit width of not only the counting means but also the data storage means must be widened. However, there is a problem that the amount of hardware of the data storage means increases.

【0006】本発明の目的は、少ないハードウェアまた
は処理の追加によって広いダイナミックレンジを得るこ
とができるバーコードデコード装置を提供することにあ
る。
It is an object of the present invention to provide a bar code decoding device which can obtain a wide dynamic range by adding a small amount of hardware or processing.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
に、本発明のバーコードデコード装置は、データ読取手
段と、マージン検出手段と、データを記憶するデータ格
納手段と、このデータ格納手段のメモリバス幅より広い
ビット幅を有し、前記データ読取手段からのアナログデ
ータを基準クロックによって計数するデータ計数手段
と、このデータ計数手段の計数値を検知し、データ変換
を行う制御量の出力を行うデータ制御手段と、デコード
処理を行うデコード処理手段と、前記データ計数手段か
らのデータ出力を変換すると共に、前記データ制御手段
の出力により、前記データ格納手段で記憶するデータを
決定するデータ変換手段とを備えたことを特徴とする。
In order to achieve the above object, a bar code decoding device according to the present invention comprises a data reading means, a margin detecting means, a data storing means for storing data, and a data storing means of the data storing means. A data counting means having a bit width wider than the memory bus width and counting analog data from the data reading means by a reference clock; and a control amount output for detecting the count value of the data counting means and performing data conversion. Data control means for performing, decoding processing means for performing decoding processing, and data conversion means for converting the data output from the data counting means and determining the data to be stored in the data storage means by the output of the data control means. It is characterized by having and.

【0008】また、データ読取手段と、マージン検出手
段と、データを記憶するデータ格納手段と、このデータ
格納手段のメモリバス幅より広いビット幅を有するデー
タ計数手段と、デコード処理を行うデータ制御手段と、
前記データ計数手段からのデータ出力を変換すると共
に、前記データ格納手段に記憶するデータの数ビットを
桁数データとして残りのビットにデータを記憶し、前記
データ格納手段からデータを読み出す際に再度データ変
換をするデータ変換手段とを備えたことを特徴とする。
Further, the data reading means, the margin detecting means, the data storing means for storing the data, the data counting means having a bit width wider than the memory bus width of the data storing means, and the data control means for performing the decoding process. When,
The data output from the data counting means is converted, and data is stored in the remaining bits by using several bits of the data stored in the data storage means as digit number data, and data is read again when the data is read from the data storage means. And a data conversion means for converting.

【0009】[0009]

【作用】前記構成のバーコードデコード装置によれば、
デコード処理を行う場合、データ計数手段の計数値をデ
ータ制御手段で検知し、その結果を基にデータ変換手段
によりデータ格納手段に記憶するデータを決定する。
According to the barcode decoding device having the above structure,
When performing the decoding process, the count value of the data counting means is detected by the data control means, and based on the result, the data conversion means determines the data to be stored in the data storage means.

【0010】また、データ変換手段によってデータ計数
手段からのデータ出力を変換すると共に、データ格納手
段に記憶するデータの数ビットを桁数データとして残り
のビットにデータを記憶し、データ格納手段からデータ
を読み出す際に再度データ変換をする。
Further, the data output from the data counting means is converted by the data converting means, and several bits of the data stored in the data storing means are used as digit number data to store the data in the remaining bits. Data is converted again when is read.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1は本発明のバーコードデコード装置の
第1実施例の構成を示すブロック図、図2はタイミング
チャート、図3は動作フローチャートであり、図1に示
すバーコードデコード装置において、1はデータ読取手
段、2はデータ計数手段、3はデータ変換手段、4はマ
ージン検出手段、5はデータ制御手段、6はデータ格納
手段、7はデコード処理手段である。
FIG. 1 is a block diagram showing the configuration of a first embodiment of the bar code decoding apparatus of the present invention, FIG. 2 is a timing chart, and FIG. 3 is an operation flowchart. In the bar code decoding apparatus shown in FIG. Is data reading means, 2 is data counting means, 3 is data converting means, 4 is margin detecting means, 5 is data controlling means, 6 is data storing means, and 7 is decoding processing means.

【0013】このような構成において、データ格納手段
6からのアナログデータをデータ計数手段2で基準クロ
ックによって計数を行い、計数値を得る場合、デコード
処理手段7のデータ処理ビット数よりデータ計数手段2
での計数値のビット数が大きいとき(図2において、デ
コード処理手段7およびデータ格納手段6のビット数を
4としたとき、データ計数手段2での計数値が図の3番
目の計数値のように5ビット以上となるとき)、データ
制御手段5において、デコード処理手段7で処理可能な
ビット数とデータ計数手段2の計数ビット数を比較し、
その結果より、データ変換手段3によりデータの下位ビ
ットはデコード処理に対する影響が小さいことから、デ
ータ計数手段2の計数データの下位ビットを切り捨て、
後段のデコード処理手段7へ出力する。この動作によっ
て後段のデコード処理手段7を変更することなく、バー
コードデコード装置自体のデータ処理可能なビット幅を
広げることが可能となる。
In such a configuration, when the analog data from the data storage means 6 is counted by the data counting means 2 by the reference clock and the count value is obtained, the data counting means 2 is calculated from the number of data processing bits of the decoding processing means 7.
2 has a large number of bits (when the number of bits of the decoding processing means 7 and the data storage means 6 is set to 4 in FIG. 2, the count value of the data counting means 2 is the third count value of FIG. When the number of bits is 5 bits or more), the data control means 5 compares the number of bits processable by the decoding processing means 7 with the number of counting bits of the data counting means 2,
As a result, since the lower bits of the data by the data converting means 3 have less influence on the decoding process, the lower bits of the count data of the data counting means 2 are discarded.
It outputs to the decoding processing means 7 in the subsequent stage. By this operation, it is possible to widen the data processable bit width of the barcode decoding device itself without changing the decoding processing means 7 in the subsequent stage.

【0014】すなわち、データ読取手段1によって読み
取られたアナログデータに対してマージン検出手段4に
おいてマージンを検出する。そしてデータ計数手段2で
の計数値を基にデータ制御手段5は、計数データのビッ
ト幅を検知し、データ変換手段3での変換量を導出す
る。データ変換手段3では、データ制御手段5からの情
報を受け取り、それに従ってデコード処理手段7へのデ
ータの出力を行う。
That is, the margin of the analog data read by the data reading means 1 is detected by the margin detecting means 4. Then, based on the count value of the data counting means 2, the data control means 5 detects the bit width of the count data and derives the conversion amount of the data converting means 3. The data conversion means 3 receives the information from the data control means 5 and outputs the data to the decoding processing means 7 in accordance with the information.

【0015】以下に、第1実施例の動作を図3のフロー
チャートを参照して説明する。
The operation of the first embodiment will be described below with reference to the flowchart of FIG.

【0016】データ読取手段1によって読み取られたア
ナログ信号より、マージン検出手段4によってマージン
の検出を行い(S1,S2)、マージン検出後(S2のYES)、
基準クロックを利用するYビット幅のデータ計数手段2
によってデータの計数を行う(S3)。マージン検出後の
1つ目の計数データの計数値のビット数をCビット、デ
コード処理手段7およびデータ格納手段6のビット幅を
Xビットとした場合、データ制御手段5では、データ変
換手段3に対し、C≦X−3の場合は0、C>X−3の
場合はC−X+3の値を制御データとして出力する(S
4,S5)。
From the analog signal read by the data reading means 1, the margin detection means 4 detects the margin (S1, S2), and after the margin detection (YES in S2),
Data counting means 2 of Y-bit width using a reference clock
The data is counted by (S3). When the number of bits of the count value of the first count data after the margin detection is C bits and the bit width of the decoding processing means 7 and the data storage means 6 is X bits, the data control means 5 causes the data conversion means 3 to operate. On the other hand, when C ≦ X-3, 0 is output, and when C> X-3, the value C−X + 3 is output as control data (S
4, S5).

【0017】データ制御手段5からデータを受け取った
データ変換手段3では、下位ビットのデータがデコーダ
の処理結果に与える影響が少ないため、計数値をそのデ
ータ数だけ右シフト、つまり下位ビットを切り捨てたデ
ータに変換して(S6,S7)、データ格納手段6へ出力を
行う(S8)。この動作によってデコード処理手段7に入
力されるデータは、データ計数手段2の計数値に係わら
ず常にXビット以下となり、データ格納手段6およびデ
コード処理手段7の変更なくデコードが可能となる(S
9)。
In the data conversion means 3 which has received the data from the data control means 5, since the data of the lower bits has little influence on the processing result of the decoder, the count value is right-shifted by the number of data, that is, the lower bits are truncated. The data is converted (S6, S7) and output to the data storage means 6 (S8). By this operation, the data input to the decoding processing means 7 is always X bits or less regardless of the count value of the data counting means 2, and decoding can be performed without changing the data storage means 6 and the decoding processing means 7 (S
9).

【0018】データ制御手段5によって一旦データ制御
量を決定した後に、データ計数手段2でさらに制御量を
変更しなければならない場合(S4のNO)、つまり、計数
値データのビット幅をRとしたときに、R>C+3とな
る場合は、マージン検出後の計数値データに対して8倍
以上のデータとなることから、マージンであると判断し
て取り込み処理を終了する(S10,S11)。この場合、Y
≧Xとする。
When the data control means 5 has once determined the data control amount and the data counting means 2 must further change the control amount (NO in S4), that is, the bit width of the count value data is set to R. At this time, if R> C + 3, the count value data after margin detection is eight times or more of the data, so that it is judged that it is a margin and the import processing is ended (S10, S11). In this case, Y
Let ≧ X.

【0019】図4は本発明のバーコードデコード装置の
第2実施例の構成を示すブロック図であり、この第2実
施例が前記第1実施例と異なるところは、データ格納手
段6を挟んで2つのデータ変換手段3a,3bを分けて設
けた点である。
FIG. 4 is a block diagram showing the configuration of the second embodiment of the bar code decoding apparatus of the present invention. The difference between the second embodiment and the first embodiment is that the data storage means 6 is interposed. The point is that the two data conversion means 3a and 3b are provided separately.

【0020】このような構成において、データ計数手段
2でのカウンタのビット数を12ビット、データ格納手段
6のデータ幅を8ビットとした場合に、データ計数手段
2でビットが1となる最上位ビットが5ビット目以上の
ときは(図5参照)、最上位ビットから5ビットのデータ
と、残りの下位ビット数の3ビットデータをデータ格納
手段6へ格納する。データ計数手段2でビットが1とな
る最上位ビットが5ビット目以下のときは(図6参照)、
最下位ビットから5ビットのデータと3ビットの0デー
タをデータ格納手段6へ格納する。
In such a configuration, when the number of bits of the counter in the data counting means 2 is 12 bits and the data width of the data storing means 6 is 8 bits, the highest rank where the data counting means 2 has 1 bit. When the bit is the fifth bit or more (see FIG. 5), the data of 5 bits from the most significant bit and the remaining 3 bits of the lower bit number are stored in the data storage means 6. When the most significant bit whose bit is 1 in the data counting means 2 is the fifth bit or less (see FIG. 6),
Data of 5 bits from the least significant bit and 0 data of 3 bits are stored in the data storage means 6.

【0021】データを読み出す場合は、この逆の変換を
行うことにより、有効桁5桁のデータが得られる。この
ような変換をデータ格納前および読み出し前に行うこと
によって、データ格納手段6のビット幅を変えることな
くデコード処理が可能となり、読み取りデータ範囲を広
げることができる。実際にデコード処理を行う場合は、
有効桁数が多くとも精度が上がるわけではなく、ある程
度の桁数が得られればデコードは可能となる。
When data is read, the reverse conversion is performed to obtain data with 5 significant digits. By performing such conversion before the data storage and before the data read, the decoding process can be performed without changing the bit width of the data storage means 6, and the read data range can be expanded. When actually performing the decoding process,
The accuracy does not increase even if the number of significant digits is large, and decoding is possible if a certain number of digits is obtained.

【0022】[0022]

【発明の効果】以上説明したように、本発明のバーコー
ドデコード装置は、請求項1記載の発明によれば、デコ
ード処理を行う場合、データ計数手段の計数値をデータ
制御手段で検知し、その結果を基にデータ変換手段によ
りデータ格納手段で記憶するデータを決定するので、デ
コード処理機能の変更およびデータ格納手段のメモリ量
を増加させることなく、データ読み取りのダイナミック
レンジを広げることができる。
As described above, according to the invention of claim 1, the bar code decoding device of the present invention detects the count value of the data counting means by the data control means when performing the decoding process, Since the data conversion unit determines the data to be stored in the data storage unit based on the result, the dynamic range of data reading can be expanded without changing the decoding function and increasing the memory amount of the data storage unit.

【0023】請求項2記載の発明によれば、データ変換
手段によってデータ計数手段からのデータ出力を変換す
ると共に、データ格納手段に記憶するデータの数ビット
を桁数データとして残りのビットにデータを記憶し、デ
ータ格納手段からデータを読み出す際に再度データ変換
をするので、少ないメモリ量でデータ計数手段での計数
値を記憶し、メモリ量を増加させることなく、データ読
み取りのダイナミックレンジを広げることができる。
According to the second aspect of the present invention, the data converting means converts the data output from the data counting means, and at the same time, several bits of the data stored in the data storing means are used as the digit number data and the remaining bits are filled with the data. Since the data is stored and the data is converted again when the data is read from the data storage unit, the count value in the data counting unit is stored with a small memory amount, and the dynamic range of data reading can be expanded without increasing the memory amount. You can

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

【図1】本発明のバーコードデコード装置の第1実施例
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of a bar code decoding device of the present invention.

【図2】第1実施例のタイミングチャートである。FIG. 2 is a timing chart of the first embodiment.

【図3】第1実施例の動作フローチャートである。FIG. 3 is an operation flowchart of the first embodiment.

【図4】本発明のバーコードデコード装置の第2実施例
の構成を示すブロック図である。
FIG. 4 is a block diagram showing the configuration of a second embodiment of the barcode decoding device of the present invention.

【図5】計数データ,記憶データ,処理データの関係の
一例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a relationship among count data, stored data, and processed data.

【図6】計数データ,記憶データ,処理データの関係の
他の例を示す説明図である。
FIG. 6 is an explanatory diagram showing another example of the relationship between count data, stored data, and processed data.

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

1…データ読取手段、 2…データ計数手段、 3…デ
ータ変換手段、 4…マージン検出手段、 5…データ
制御手段、 6…データ格納手段、 7…デコード処理
手段。
1 ... Data reading means, 2 ... Data counting means, 3 ... Data converting means, 4 ... Margin detecting means, 5 ... Data controlling means, 6 ... Data storing means, 7 ... Decoding processing means.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データ読取手段と、マージン検出手段
と、データを記憶するデータ格納手段と、このデータ格
納手段のメモリバス幅より広いビット幅を有し、前記デ
ータ読取手段からのアナログデータを基準クロックによ
って計数するデータ計数手段と、このデータ計数手段の
計数値を検知し、データ変換を行う制御量の出力を行う
データ制御手段と、デコード処理を行うデコード処理手
段と、前記データ計数手段からのデータ出力を変換する
と共に、前記データ制御手段の出力により、前記データ
格納手段で記憶するデータを決定するデータ変換手段と
を備えたことを特徴とするバーコードデコード装置。
1. A data reading means, a margin detecting means, a data storing means for storing data, and a bit width wider than a memory bus width of the data storing means, wherein analog data from the data reading means is used as a reference. A data counting means for counting by a clock, a data control means for detecting a count value of the data counting means and outputting a control amount for data conversion, a decoding processing means for performing a decoding process, and a data counting means from the data counting means. A bar code decoding device, comprising: a data conversion means for converting a data output and determining the data to be stored in the data storage means by the output of the data control means.
【請求項2】 データ読取手段と、マージン検出手段
と、データを記憶するデータ格納手段と、このデータ格
納手段のメモリバス幅より広いビット幅を有するデータ
計数手段と、デコード処理を行うデータ制御手段と、前
記データ計数手段からのデータ出力を変換すると共に、
前記データ格納手段に記憶するデータの数ビットを桁数
データとして残りのビットにデータを記憶し、前記デー
タ格納手段からデータを読み出す際に再度データ変換を
するデータ変換手段とを備えたことを特徴とするバーコ
ードデコード装置。
2. A data reading means, a margin detecting means, a data storing means for storing data, a data counting means having a bit width wider than a memory bus width of the data storing means, and a data control means for performing a decoding process. And converting the data output from the data counting means,
Data conversion means for storing data in the remaining bits by using several bits of data stored in the data storage means as digit number data and performing data conversion again when reading data from the data storage means And barcode decoding device.
JP5314951A 1993-12-15 1993-12-15 Bar code decoder Pending JPH07168907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5314951A JPH07168907A (en) 1993-12-15 1993-12-15 Bar code decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5314951A JPH07168907A (en) 1993-12-15 1993-12-15 Bar code decoder

Publications (1)

Publication Number Publication Date
JPH07168907A true JPH07168907A (en) 1995-07-04

Family

ID=18059630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5314951A Pending JPH07168907A (en) 1993-12-15 1993-12-15 Bar code decoder

Country Status (1)

Country Link
JP (1) JPH07168907A (en)

Similar Documents

Publication Publication Date Title
EP0498678B1 (en) High speed scan bar code reader which can read more than one type of bar code
US4010445A (en) Word recognition apparatus
US5126544A (en) Bar code reader
US4110795A (en) Method of graphic data redundancy reduction in an optical facsimile system
US4607385A (en) Character recognition apparatus
US5337168A (en) Image data processing apparatus for locating pixel having maximum coincidence count in input image data
US4584703A (en) Character recognition system and its use in an optical document reader
JPH07101437B2 (en) Code reader
JPH05145770A (en) Encoding/decoding device
JPH07168907A (en) Bar code decoder
US5270524A (en) Automatic discriminating and decoding apparatus
JPH0149072B2 (en)
JPH04270569A (en) Data compression system for picture processor
JP3433276B2 (en) Image signal compression method and apparatus, image signal decompression method and apparatus, image signal compression / decompression method and apparatus, and printer
JP2742140B2 (en) Optical reader
JP2731610B2 (en) Barcode decoder and barcode decoding method
JPH01116777A (en) Final display deciding circuit
JP2861435B2 (en) Pipeline type arithmetic unit
JP2677806B2 (en) Code reader
JPS5856872B2 (en) Expanded character pattern encoder
JP2556160B2 (en) Compression code decompression device
JPH06325196A (en) Bar code reader
JP2998532B2 (en) Address generation circuit for two-dimensional encoding table
JPS63157564A (en) Coding and decoding device in hierarchical picture
JPH0668255A (en) Counter for histogram-counting