JP3835003B2 - Data code reader and program recording medium thereof - Google Patents

Data code reader and program recording medium thereof Download PDF

Info

Publication number
JP3835003B2
JP3835003B2 JP18325798A JP18325798A JP3835003B2 JP 3835003 B2 JP3835003 B2 JP 3835003B2 JP 18325798 A JP18325798 A JP 18325798A JP 18325798 A JP18325798 A JP 18325798A JP 3835003 B2 JP3835003 B2 JP 3835003B2
Authority
JP
Japan
Prior art keywords
data
data code
barcode
reading
trigger key
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
Application number
JP18325798A
Other languages
Japanese (ja)
Other versions
JP2000011086A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP18325798A priority Critical patent/JP3835003B2/en
Publication of JP2000011086A publication Critical patent/JP2000011086A/en
Application granted granted Critical
Publication of JP3835003B2 publication Critical patent/JP3835003B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
この発明は、バーコード等のようにデータをコード化したデータコードを読み取るデータコード読取装置およびそのプログラム記録媒体に関する。
【0002】
【従来の技術】
従来、バーコード上を走査ミラーを介してレーザ照射すると共に、その反射光を受光してバーコード情報を読み取るハンディタイプのレーザスキャナにおいては40cm程度から数m先のバーコードを読み取ることができるが、レーザビームは予め固定的に決められている走査角度(走査幅)で照射されるため、バーコードとの距離が大きくなればなるほど照射範囲が広ろがるようになる。
したがって、例えば、棚札などを走査してバーコードを読み取る場合に、隣りの棚札までにもレーザ照射されることがあり、また、複数個の商品をまとめて収納する集合箱には、各商品のバーコード札が貼付されているが、このような場合には2以上のバーコードがレーザ照射されることがある。
【0003】
【発明が解決しようとする課題】
このように複数のバーコードをレーザ照射した場合に、それらを同時に読み取ってデコードすることもできるが、通常は認識不能となるケースが多く、また、オペレータが意図しないバーコードまでも読み取られてデコードされることは商品在庫管理等を行う上で大きな支障となってしまう。
この発明の課題は、複数のデータコードが同時に読み取られた場合でも、オペレータが意図するデータコードのみを処理できるようにすることである。
【0004】
【課題を解決するための手段】
請求項1記載の発明は、ユーザ操作に応じて、隣接配置された複数のデータコードのうちどの位置にあるデータコードをデコード対象とするのかを指示すると共に、データコードを読み取る読取手段に読取動作を開始させる指示手段と、前記読取手段によって複数のデータコードが同時に読み取られたか否かを判別する判別手段と、この判別手段により複数のデータコードが読み取られたことが判別された際に、前記読取手段で読み取られたデータコード情報から、前記指示手段により指示された位置にあるデータコード以外のデータコード情報を削除する削除手段と、前記削除手段により削除されずに残ったデータコード情報をデコードするデコード手段と、を具備したことを特徴とする。
【0006】
【発明の実施の形態】
以下、図1〜図9を参照してこの発明の一実施形態を説明する。
図1はレーザスキャナ付きハンディターミナルの外観を概略的に示した図であり、また、図2はレーザスキャナの構成を概略的に示した図である。装置本体1の先頭部にはレーザスキャナの開口であるレーザ照射部2が設けられ、また装置本体1の上面には液晶表示画面2およびキーボード4が設けられている。レーザスキャナは、図2に示すように構成されている。すなわち、レーザ発信器aから照射されたレーザビームは反射ミラーbで反射されると共に走査ミラー(バイブレーションミラー)cの一定振れ角内で放射されてバーコード上をレーザ照射する。この場合、バーコード上をレーザ照射する走査方向は、バイブレーションミラーによって左から右方向あるいは右から左方向のように左右交互に反転する。また、レーザ照射部2と読み取り対象(バーコード)との距離が大きくなればなるほど、レーザ照射範囲が左右方向に広がるため複数のバーコードが左右方向に隣接している場合には、複数のバーコードにレーザ照射されることがある。このようにしてバーコード上に照射されたレーザビームの反射光は、受光部eに送られて光電変換されたのち、バーコード情報として入力処理される。一方、キーボード4にはテンキーや各種のファンクションキーの他に、この実施形態特有の右トリガーキーRT、左トリガキーLTが設けられている。右トリガーキーRT、左トリガキーLTはそれぞれレーザ照射の開始を指示するトリガキーであるが、左右方向に隣接する2つのバーコードが同時に読み取られる可能性が高い場合に、右トリガーキーRTは右側のバーコードを有効とし、左トリガキーLTは左側のバーコードを有効とすることを指示するキーとしても機能する。
【0007】
図3はレーザスキャナ付きハンディターミナルの全体構成を示したブロック図である。
CPU11はRAM12内にロードされている各種プログラムにしたがってこのレーザスキャナ付きハンディターミナルの全体動作を制御する中央演算処理装置である。記憶装置13はオペレーティングシステムや各種アプリケーションプログラム、データファイル、文字フォントデータ等が予め格納されている記憶媒体14やその駆動系を有している。この記憶媒体14は固定的に設けたもの、もしくは着脱自在に装着可能なものであり、フロッピーディスク、ハードディスク、光ディスク、RAMカード等の磁気的・光学的記憶媒体、半導体メモリによって構成されている。また、記憶媒体14内のプログラムやデータは、必要に応じてCPU11の制御により、RAM12にロードされる。更に、CPU11は通信回線等を介して他の機器側から送信されて来たプログラム、データを受信して記憶媒体14に格納したり、他の機器側に設けられている記憶媒体に格納されているプログラム、データを通信回線等を介して使用することもできる。
【0008】
そして、CPU11にはその入出力周辺デバイスである入力装置15、表示装置16、レーザユニット17、レーザコントローラ18がバスラインを介して接続されており、入出力プログラムにしたがってCPU11はそれらの動作を制御する。入力装置5はキーボード4を備え、操作キーに対応するキーコードはCPU11に取り込まれる。表示装置16は液晶表示画面3を備え、バーコード情報をデコードしたデコード結果や入力装置15から入力されたデータを表示出力する。レーザユニット17は図2で示したレーザ発信器a、ミラーb、バイブレーションミラーc、受光部eの他、バイブレーションミラーの走査タイミングを検出する検出部等を有し、レーザコントローラ18からのレーザ照射ON/OFF信号LSRに応答してレーザ照射が開始されると共に、レーザ照射の反射光に基づいて白黒イメージデータを生成してバーコードイメージ信号IMGとして出力し、レーザコントローラ18に与える。このとき、バイブレーションミラーの走査方向が左から右方向か右から左方向かをバイブレーションミラーの特定位置を検出することによって1スキャン毎に反転するレーザ走査タイミング信号TMGを出力し、レーザコントローラ18に与える。レーザコントローラ18は右トリガーキーRT、左トリガキーLTの操作に伴ってレーザ照射ON/OFF信号LSRを出力したり、レーザユニット17からのレーザ照射タイミング信号TMGにしたがって走査方向を判別すると共に1スキャン完了を判別し、また、バーコードイメージ信号IMGが変化する毎にバー幅を時間データとして計測し、この時間列のデータをバーコード情報としてCPU11に与える。
【0009】
次に、レーザスキャナ付きハンディターミナルの動作を図4に示すフローチャートにしたがって説明する。ここで、このフローチャートに記述されている各機能を実現するためのプログラムは、CPU11が読み取り可能なプログラムコードの形態で記憶媒体14に記憶されており、その内容がRAM12内にロードされている。
いま、電源ON後、右トリガキーRTまたは左トリガキーLTの操作に伴ってレーザコントローラ18からはレーザ照射ON/OFF信号LSRが出力され、これに応答してレーザユニット17はスキャニング動作を開始する。ここで、在庫棚や陳列棚位置にある棚札をスキャニングする場合、棚札とレーザスキャナとの距離にもよるが、左右に隣接する2つのバーコードが1スキャンで同時に読み取られる可能性が高いような場合には、意図するバーコードのみを有効とするために、右トリガーキーRTまたは左トリガキーLTのいずれかを操作する。ここで、図5に示すように左側に位置するバーコードが目的とするバーコードである場合には、左トリガキーLTを押下し、また図6に示すように右側に位置するバーコードが目的とするバーコードであれば右トリガーキーRTを押下する。このように左トリガキーLT、右トリガーキーRTのいずれか一方が押下されると、レーザユニット17はレーザ照射ON/OFF信号LSRに応答してスキャニング動作を開始し、レーザ走査タイミング信号TMGをレーザコントローラ18に与える。すると、レーザコントローラ18はこのバーコードイメージ信号IMGが変化する毎にバー幅の時間をカウントし、1スキャン分のカウント値をバーコード情報として生成し、1スキャン完了通知と共にCPU11に与える。
【0010】
図4はレーザコントローラ18から1スキャン完了毎に転送されて来るバーコード情報をデコードする際の動作を示したフローチャートである。ここで、図7はバーコードを左から右方向へスキャンした場合にレーザコントローラ18から転送されて来るバーコード情報のデータ構造を示したもので、その先頭は走査方向を示した識別子であり、左から右方向へのスキャン(右スキャン)の場合には識別子「0」となり、右から左方向へのスキャン(左スキャン)の場合には識別子「1」となる。以降、制御バーやデータバーを示すバー幅時間データt1、t2、t3、……t17となる。なお、最初のバー幅時間データt1は白細バーに相当する時間データであるものとする。また、図8は左右に隣接する2つのバーコードを1スキャンで同時に読み取った場合のバーコード情報のデータ構造を示し、この場合においてもその先頭は走査方向を示した識別子となり、以降、制御バーやデータバーを示すバー幅時間データt1、t2、t3、……t132、t133、t134、t135となる。
【0011】
先ず、CPU11は図7、図8に示すようなデータ構造のバーコード情報を受け取ると、その先頭部分と末尾部分において、隣接する2つの黒バーを抽出し、それらの時間データを比較する(ステップS1)。この場合、上述したように最初のバーはライトマージンやレフトマージンに相当する白バーであるので、それに続くバーは黒バーで、その時間データt2、t4は黒バー幅をカウントした値となり、また最終のバーから1つ前および3つ前のバーも黒バーで、その時間データtn−1、tn−3は黒バー幅をカウントした値となる。このようにバーコード情報の先頭部分と末尾部分において、隣接する2つの黒バー幅のカウント値を比較した結果、その最小値を黒細バーとして決定する(ステップS2)。ここで、バーコードの種類にもよるが、黒細バー幅と白細バー幅とは同等か近似した値となるため、次のステップS3では黒細バー幅から白細バー幅の適正値を求める。そして、白細バー幅から白太バーの適正幅を求める(ステップS4)。この場合においても白細バー幅と白太バー幅とはバーコードの種類に応じて所定の関係にあるため、それを考慮して白太バー幅の適正値を求める。
なお、上述のようにバーコード情報を解析し、黒細バー幅、白細バー幅を求めたのち、この白細バー幅から白太バー幅を求めるようにしたのは、バーコードの種類や印刷ムラ等によって白太バー幅が一律ではないので、1スキャン毎に適正白太バー幅を算出するようにしている。
【0012】
このようにして適正白太バー幅を求めたら、1スキャン分のバーコード情報の中の先頭、末尾を除く部分に適正白太バー幅を越える空白が存在するかの判別を行う(ステップS5)。この場合、2つのバーコードがレーザ照射され、意図しないバーコードの少なくとも一部までも読み取ってしまうと、1つ目のバーコードと2つ目のバーコードとの間には、白太バー幅を越える空白が存在するようになるため、ステップS5では1スキャンで2以上のバーコードを同時に読み取ったか否かの判別を行う。ここで、図7に示すようなバーコード情報であれば、1つ分のバーコードを読み取った場合であるから、その先頭、末尾を除く部分には白太バー幅を越える空白は存在しないため、ステップS11に進み、このバーコード情報をデコードし、それが適正バーコードであればそのデコード結果を表示出力する(ステップS12)。
【0013】
一方、図8に示すように1スキャンの中で2つのバーコードを読み取ってしまったことがステップS5で検出されると、ステップS6に進み、右トリガキーRT、左トリガキーLTのいずれが押下されているかを調べ、左トリガキーLTが押下されているときには、バーコード情報の先頭に組み込まれている走査方向を示す識別子を参照し、左スキャンか右スキャンかを判別する(ステップS7)。いま、左トリガキーLTが押下されていて右から左方向への左スキャンの場合には、適正白太バー幅を越える空白の前側のデータを削除する(ステップS8)。図9(A)はこの場合におけるデータの削除部分を示したもので、図8で示したバーコード情報において、左トリガキー押下で左スキャンの場合には前半部分のデータが削除される。また、左トリガキーLTが押下されて左から右方向への右スキャンの場合には、ステップS10に進み、適正白バー幅を越える空白の後側のデータを削除する。図9(B)はこの場合におけるデータの削除部分を示したもので、図8で示したバーコード情報において、左トリガキー押下で右スキャンの場合には後半部分のデータが削除される。他方、右トリガキーRTが押下されていることがステップS6で検出されると、ステップS9に進み、バーコード情報内の識別子を参照して走査方向を判別し、その結果、右から左方向への左スキャンの場合には適正白太バー幅を越える空白の後側のデータを削除し(ステップS10)、左スキャンの場合にはステップS8に進み、適正白太バー幅を越える空白の前側のデータを削除する。図9(C)、(D)は図8のバーコード情報からデータが削除される部分を示している。このようにして右トリガキーRT、左トリガキーLTの押下と左/右スキャンに応じてバーコード情報の一部が削除されるため、残りのバーコード情報のみが有効データとなってデコードされ(ステップS11)、それが適正バーコードであれば、そのデコード結果が表示出力される(ステップS12)。
【0014】
以上のようにこのレーザスキャナ付きハンディターミナルにおいては、バーコードをレーザ照射によって読み取るレーザスキャナから読み取り対象までの距離やバーコードの接近状態等を考慮し、左右方向にある2つのバーコードが1スキャンで同時に読み取られる可能性が高いような場合には、右トリガキーRT、左トリガキーLTのいずれかを押下してスキャニング動作の開始を指示する他に左側バーコード、右側バーコードのいずれを読み取り対象とするかを指示しておく。この状態においてスキャニング動作が行われ、それによって得られた1スキャン分のバーコード情報を解析し、その結果、1スキャンの中に2つのバーコードが含まれていることが判別された場合には右トリガキーRT、左トリガキーLTのいずれが押下されているかに応じてその一方のバーコードのみを有効データとしてデコード処理することができる。つまり、右トリガキーRTの押下で左側バーコードが無視されて右側バーコードのみが有効となり、逆に左トリガキーLTの押下で右側バーコードが無視されて左側バーコードのみが有効となるため、意図する目的バーコードのみを選択的に処理することが可能となる。また、レーザスキャナはバーコード上をバイブレーション方式の走査ミラーによって走査方向が左右交互に反転するレーザ走査型のバーコードリーダであり、走査方向が左スキャンか右スキャンか右トリガキーRT、左トリガキーLTのいずれが押下されたかに応じて有効データを決定することができるので、走査方向が左右交互に反転するものであっても目的とするバーコードのみを処理することが可能となる。更に1スキャン分のバーコード情報を解析し、その結果、1スキャン中に2つのバーコードが含まれているか否かを判別する際に、白太バー幅を越える空白が含まれているか否かに基づいて判別するようにしたから、その判別を確実に行うことができ、有効データの決定も確実なものとなる。この場合、バーコード情報の各バー幅を解析することによって白太バー幅を決定するようにしたから、バーコードの種類や印刷ムラ等に影響されず、白太バー幅を越える空白サイズを特定することが可能となる。
【0015】
なお、上述した一実施形態においては、右トリガキーRT、左トリガキーLTを設けて左右いずれかのバーコードのみを有効としたが、3種以上のトリガキーを設けてもよい。また、バーコードを読み取るバーコードスキャナに適用したが、カルラコード等の2次元コードを読み取るCCDスキャナであってもよい。
【0016】
【発明の効果】
この発明によれば、ユーザ操作に応じて、隣接配置された複数のデータコードのうちどの位置にあるデータコードをデコード対象とするのかを指示して読取動作を開始させるので、複数のデータコードが同時に読み取られた場合でも、ユーザがデコード対象として指示したデータコードのみをデコードすることができ、ユーザが意図するデータコードのデコード結果をユーザに即座に知らせることができる。
【図面の簡単な説明】
【図1】レーザスキャナ付きハンディターミナルの外観を概略的に示した図。
【図2】レーザスキャナの構成を概略的に示した図。
【図3】レーザスキャナ付きハンディターミナルの全体構成を示したブロック図。
【図4】1スキャン完了毎に読み取られたバーコード情報をデコードする際の動作を示したフローチャート。
【図5】2つのバーコードが左右に近接している場合に、左トリガキーLTの押下で左側のバーコードが有効となることを示した図。
【図6】2つのバーコードが左右に近接している場合に、右トリガキーRTの押下で右側のバーコードが有効となることを示した図。
【図7】1つのバーコードを左から右方向へスキャンすることによって得られたバーコード情報のデータ構造を示した図。
【図8】2つのバーコードを左から右方向へスキャンすることによって得られたバーコード情報のデータ構造を示した図。
【図9】(A)は左スキャンで左トリガキーLTが押下されているときに削除されるデータ、(B)は左スキャンで右トリガキーRTが押下されているときに削除されるデータ、(C)は右スキャンで左トリガキーLTが押下されているときに削除されるデータ、(D)は右スキャンで右トリガキーRTが押下されているときに削除されるデータを示した図。
【符号の説明】
11 CPU
12 RAM
13 記憶装置
14 記憶媒体
17 レーザユニット
18 レーザコントローラ
RT 右トリガキー
LT 左トリガキー
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data code reader for reading a data code obtained by encoding data such as a bar code and the like, and a program recording medium thereof.
[0002]
[Prior art]
Conventionally, in a hand-held type laser scanner that reads a bar code information by irradiating a laser beam on a bar code through a scanning mirror and receiving the reflected light, a bar code about 40 cm to several meters ahead can be read. Since the laser beam is irradiated at a scanning angle (scanning width) fixedly determined in advance, the irradiation range becomes wider as the distance from the barcode increases.
Therefore, for example, when scanning a shelf label or the like to read a barcode, the adjacent shelf label may be irradiated with a laser beam. A bar code tag of a product is affixed. In such a case, two or more bar codes may be irradiated with a laser.
[0003]
[Problems to be solved by the invention]
In this way, when multiple barcodes are irradiated with laser, they can be read and decoded at the same time, but usually there are many cases where recognition is impossible, and even barcodes not intended by the operator are read and decoded. This is a big hindrance in managing product inventory.
An object of the present invention is to be able to process only a data code intended by an operator even when a plurality of data codes are read simultaneously.
[0004]
[Means for Solving the Problems]
According to the first aspect of the present invention, in response to a user operation, the position of a data code among a plurality of adjacently arranged data codes is instructed to be decoded, and reading operation is performed on a reading unit that reads the data code When it is determined that a plurality of data codes have been read by the determination means, a determination means for determining whether or not a plurality of data codes have been read simultaneously by the reading means, Deletion means for deleting data code information other than the data code at the position indicated by the instruction means from the data code information read by the reading means, and decoding of the data code information remaining without being deleted by the deletion means And a decoding means.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a diagram schematically showing the appearance of a handy terminal with a laser scanner, and FIG. 2 is a diagram schematically showing the configuration of the laser scanner. A laser irradiation unit 2 that is an opening of a laser scanner is provided at the head of the apparatus main body 1, and a liquid crystal display screen 2 and a keyboard 4 are provided on the upper surface of the apparatus main body 1. The laser scanner is configured as shown in FIG. That is, the laser beam emitted from the laser transmitter a is reflected by the reflection mirror b and is emitted within a constant deflection angle of the scanning mirror (vibration mirror) c to irradiate the barcode on the barcode. In this case, the scanning direction in which the laser beam is irradiated on the barcode is reversed alternately left and right by the vibration mirror, such as from left to right or from right to left. Further, as the distance between the laser irradiation unit 2 and the object to be read (barcode) increases, the laser irradiation range extends in the left-right direction. The cord may be laser irradiated. The reflected light of the laser beam irradiated onto the barcode in this way is sent to the light receiving portion e and subjected to photoelectric conversion, and then input processing as barcode information. On the other hand, in addition to the numeric keypad and various function keys, the keyboard 4 is provided with a right trigger key RT and a left trigger key LT unique to this embodiment. The right trigger key RT and the left trigger key LT are trigger keys for instructing the start of laser irradiation, respectively, but when there is a high possibility that two bar codes adjacent in the left-right direction will be read simultaneously, the right trigger key RT The code is valid and the left trigger key LT also functions as a key for instructing to validate the left bar code.
[0007]
FIG. 3 is a block diagram showing the overall configuration of a handy terminal with a laser scanner.
The CPU 11 is a central processing unit that controls the overall operation of the handy terminal with a laser scanner in accordance with various programs loaded in the RAM 12. The storage device 13 includes a storage medium 14 in which an operating system, various application programs, data files, character font data, and the like are stored in advance, and a drive system thereof. The storage medium 14 is fixedly provided or detachably mountable, and is constituted by a magnetic or optical storage medium such as a floppy disk, hard disk, optical disk, or RAM card, and a semiconductor memory. Further, programs and data in the storage medium 14 are loaded into the RAM 12 as required by the control of the CPU 11. Furthermore, the CPU 11 receives a program and data transmitted from another device via a communication line or the like and stores them in the storage medium 14 or stored in a storage medium provided on the other device. Existing programs and data can be used via a communication line or the like.
[0008]
An input device 15, a display device 16, a laser unit 17, and a laser controller 18 as input / output peripheral devices are connected to the CPU 11 via a bus line, and the CPU 11 controls their operations according to the input / output program. To do. The input device 5 includes a keyboard 4, and key codes corresponding to operation keys are taken into the CPU 11. The display device 16 includes a liquid crystal display screen 3 and displays and outputs a decoding result obtained by decoding the barcode information and data input from the input device 15. The laser unit 17 has a detection unit for detecting the scanning timing of the vibration mirror in addition to the laser transmitter a, the mirror b, the vibration mirror c, and the light receiving unit e shown in FIG. In response to the / OFF signal LSR, laser irradiation is started, black and white image data is generated based on the reflected light of the laser irradiation, and is output as a barcode image signal IMG, which is given to the laser controller 18. At this time, a laser scanning timing signal TMG that is reversed for each scan is detected by detecting a specific position of the vibration mirror depending on whether the scanning direction of the vibration mirror is left to right or right to left, and is supplied to the laser controller 18. . The laser controller 18 outputs a laser irradiation ON / OFF signal LSR in accordance with the operation of the right trigger key RT and the left trigger key LT, determines the scanning direction according to the laser irradiation timing signal TMG from the laser unit 17, and completes one scan. Each time the barcode image signal IMG changes, the bar width is measured as time data, and the data of this time sequence is given to the CPU 11 as barcode information.
[0009]
Next, the operation of the handy terminal with a laser scanner will be described with reference to the flowchart shown in FIG. Here, a program for realizing each function described in this flowchart is stored in the storage medium 14 in the form of a program code readable by the CPU 11, and the contents thereof are loaded into the RAM 12.
Now, after the power is turned on, a laser irradiation ON / OFF signal LSR is output from the laser controller 18 in accordance with the operation of the right trigger key RT or the left trigger key LT, and in response to this, the laser unit 17 starts a scanning operation. Here, when scanning a shelf label at an inventory shelf or display shelf position, depending on the distance between the shelf label and the laser scanner, there is a high possibility that two bar codes adjacent to the left and right will be read simultaneously in one scan. In such a case, either the right trigger key RT or the left trigger key LT is operated in order to validate only the intended barcode. Here, if the barcode located on the left side is the target barcode as shown in FIG. 5, the left trigger key LT is pressed, and the barcode located on the right side as shown in FIG. If the barcode is to be pressed, the right trigger key RT is pressed. When one of the left trigger key LT and the right trigger key RT is pressed in this way, the laser unit 17 starts a scanning operation in response to the laser irradiation ON / OFF signal LSR, and sends the laser scanning timing signal TMG to the laser controller. Give to 18. Then, the laser controller 18 counts the time of the bar width every time the barcode image signal IMG changes, generates a count value for one scan as barcode information, and gives it to the CPU 11 together with a notice of completion of one scan.
[0010]
FIG. 4 is a flowchart showing the operation when decoding the barcode information transferred from the laser controller 18 every time one scan is completed. Here, FIG. 7 shows the data structure of the bar code information transferred from the laser controller 18 when the bar code is scanned from the left to the right, the head of which is an identifier indicating the scanning direction, In the case of scanning from left to right (right scan), the identifier is “0”. In the case of scanning from right to left (left scan), the identifier is “1”. Thereafter, bar width time data t1, t2, t3,..., T17 indicating control bars and data bars are obtained. It is assumed that the first bar width time data t1 is time data corresponding to a white thin bar. FIG. 8 shows the data structure of bar code information when two bar codes adjacent to the left and right are read simultaneously in one scan. In this case as well, the head is an identifier indicating the scanning direction. And bar width time data t1, t2, t3,..., T132, t133, t134, and t135 indicating data bars.
[0011]
First, when the CPU 11 receives the barcode information having the data structure as shown in FIGS. 7 and 8, the CPU 11 extracts two adjacent black bars at the head portion and the tail portion, and compares the time data (step). S1). In this case, as described above, since the first bar is a white bar corresponding to the right margin and the left margin, the subsequent bar is a black bar, and the time data t2 and t4 are values obtained by counting the black bar width, The bars one and three bars before the last bar are also black bars, and the time data tn-1 and tn-3 are values obtained by counting the black bar widths. In this way, as a result of comparing the count values of two adjacent black bar widths at the head portion and the tail portion of the bar code information, the minimum value is determined as a black thin bar (step S2). Here, although depending on the type of bar code, the black thin bar width and the white thin bar width are the same or approximate values, so in the next step S3, the appropriate value of the black thin bar width to the white thin bar width is determined. Ask. Then, the appropriate width of the white thick bar is obtained from the white thin bar width (step S4). Even in this case, the white thin bar width and the white thick bar width have a predetermined relationship according to the type of the barcode, and accordingly, an appropriate value of the white thick bar width is obtained in consideration thereof.
In addition, after analyzing the barcode information as described above and obtaining the black thin bar width and the white thin bar width, the white thick bar width is obtained from the white thin bar width. Since the white bar width is not uniform due to printing unevenness or the like, the appropriate white bar width is calculated for each scan.
[0012]
When the appropriate white bar width is obtained in this way, it is determined whether or not there is a blank exceeding the appropriate white bar width in the portion of the bar code information for one scan excluding the head and tail (step S5). . In this case, if two barcodes are irradiated with laser and even at least a part of an unintended barcode is read, the white bar width between the first barcode and the second barcode In step S5, it is determined whether or not two or more barcodes have been read simultaneously in one scan. Here, since the barcode information as shown in FIG. 7 is a case where one barcode is read, there is no blank exceeding the white bar width in the portion other than the head and tail. In step S11, the barcode information is decoded. If the barcode information is an appropriate barcode, the decoding result is displayed and output (step S12).
[0013]
On the other hand, if it is detected in step S5 that two barcodes have been read in one scan as shown in FIG. 8, the process proceeds to step S6, and either the right trigger key RT or the left trigger key LT is pressed. When the left trigger key LT is pressed, the identifier indicating the scanning direction incorporated at the head of the barcode information is referred to and it is determined whether the scanning is left scanning or right scanning (step S7). If the left trigger key LT is pressed and left scanning from the right to the left is performed, the blank front data exceeding the appropriate white bar width is deleted (step S8). FIG. 9A shows the data deletion portion in this case. In the barcode information shown in FIG. 8, the first half of the data is deleted when the left trigger key is pressed and left scanning is performed. If the left trigger key LT is pressed and right scanning is performed from left to right, the process proceeds to step S10, and the data behind the blank exceeding the appropriate white bar width is deleted. FIG. 9B shows the deleted portion of the data in this case. In the barcode information shown in FIG. 8, in the case of the right scan when the left trigger key is pressed, the latter half of the data is deleted. On the other hand, if it is detected in step S6 that the right trigger key RT is pressed, the process proceeds to step S9, where the scanning direction is discriminated with reference to the identifier in the bar code information, and as a result, from right to left. In the case of the left scan, the data behind the blank exceeding the appropriate white bar width is deleted (step S10). In the case of the left scan, the process proceeds to step S8, and the front data of the blank exceeding the appropriate white bar width. Is deleted. FIGS. 9C and 9D show portions where data is deleted from the barcode information of FIG. In this way, a part of the barcode information is deleted in response to the pressing of the right trigger key RT and the left trigger key LT and the left / right scan, so that only the remaining barcode information is decoded as valid data (step S11). If it is a proper barcode, the decoding result is displayed and output (step S12).
[0014]
As described above, in this handy terminal with a laser scanner, taking into account the distance from the laser scanner that reads the barcode by laser irradiation to the object to be read, the proximity state of the barcode, etc., two barcodes in the left and right direction are scanned one scan. In the case where there is a high possibility of being read at the same time, in addition to instructing the start of the scanning operation by pressing either the right trigger key RT or the left trigger key LT, either the left bar code or the right bar code is set as the reading target. Tell them what to do. In this state, the scanning operation is performed, and the barcode information for one scan obtained thereby is analyzed. As a result, when it is determined that two barcodes are included in one scan, Depending on which one of the right trigger key RT and the left trigger key LT is pressed, only one of the barcodes can be decoded as valid data. That is, when the right trigger key RT is pressed, the left barcode is ignored and only the right barcode is valid, and conversely, when the left trigger key LT is pressed, the right barcode is ignored and only the left barcode is valid. Only the target barcode can be selectively processed. The laser scanner is a laser scanning bar code reader whose scanning direction is alternately reversed left and right by a vibration type scanning mirror on the bar code. The scanning direction is left scan or right scan, right trigger key RT and left trigger key LT. Since valid data can be determined according to which one is pressed, it is possible to process only the target barcode even if the scanning direction is reversed alternately left and right. Further, the barcode information for one scan is analyzed, and as a result, when determining whether or not two barcodes are included in one scan, whether or not a blank exceeding a white bar width is included. Therefore, the determination can be made reliably, and the valid data can be determined reliably. In this case, since the white bar width is determined by analyzing the bar width of the bar code information, the blank size exceeding the white bar width is specified without being affected by the type of bar code or printing unevenness. It becomes possible to do.
[0015]
In the above-described embodiment, the right trigger key RT and the left trigger key LT are provided to enable only the left or right barcode, but three or more types of trigger keys may be provided. Further, the present invention is applied to a barcode scanner that reads a barcode, but may be a CCD scanner that reads a two-dimensional code such as a Carla code.
[0016]
【The invention's effect】
According to the present invention, in response to a user operation, a position in which a data code among a plurality of adjacently arranged data codes is to be decoded is instructed to start a reading operation. Even when read simultaneously, it is possible to decode only the data code designated as a decoding target by the user, and to immediately notify the user of the decoding result of the data code intended by the user.
[Brief description of the drawings]
FIG. 1 is a diagram schematically showing the appearance of a handy terminal with a laser scanner.
FIG. 2 is a diagram schematically showing the configuration of a laser scanner.
FIG. 3 is a block diagram showing the overall configuration of a handy terminal with a laser scanner.
FIG. 4 is a flowchart showing an operation when decoding barcode information read every scan completion.
FIG. 5 is a diagram showing that the left barcode becomes valid when the left trigger key LT is pressed when two barcodes are close to the left and right.
FIG. 6 is a diagram showing that the right barcode becomes valid when the right trigger key RT is pressed when two barcodes are close to the left and right.
FIG. 7 is a diagram showing a data structure of barcode information obtained by scanning one barcode from left to right.
FIG. 8 is a diagram showing a data structure of barcode information obtained by scanning two barcodes from left to right.
9A is data deleted when the left trigger key LT is pressed in the left scan, FIG. 9B is data deleted when the right trigger key RT is pressed in the left scan, and FIG. ) Is data to be deleted when the left trigger key LT is pressed in the right scan, and (D) is a diagram illustrating data to be deleted when the right trigger key RT is pressed in the right scan.
[Explanation of symbols]
11 CPU
12 RAM
13 Storage Device 14 Storage Medium 17 Laser Unit 18 Laser Controller RT Right Trigger Key LT Left Trigger Key

Claims (3)

ユーザ操作に応じて、隣接配置された複数のデータコードのうちどの位置にあるデータコードをデコード対象とするのかを指示すると共に、データコードを読み取る読取手段に読取動作を開始させる指示手段と、
前記読取手段によって複数のデータコードが同時に読み取られたか否かを判別する判別手段と、
この判別手段により複数のデータコードが読み取られたことが判別された際に、前記読取手段で読み取られたデータコード情報から、前記指示手段により指示された位置にあるデータコード以外のデータコード情報を削除する削除手段と、
前記削除手段により削除されずに残ったデータコード情報をデコードするデコード手段と、
を具備したことを特徴とするデータコード読取装置。
In response to a user operation, an instruction means for instructing which data code in a plurality of adjacently arranged data codes is to be decoded, and for causing a reading means for reading the data code to start a reading operation;
Determining means for determining whether or not a plurality of data codes are simultaneously read by the reading means;
When it is determined by the determining means that a plurality of data codes have been read, data code information other than the data code at the position indicated by the indicating means is obtained from the data code information read by the reading means. Delete means to delete,
Decoding means for decoding data code information remaining without being deleted by the deleting means;
A data code reading apparatus comprising:
前記指示手段は隣接配置された2つのデータコードのうち左側に位置するデータコードをデコード対象とすることを指示する左トリガキーと、隣接配置された2つのデータコードのうち右側に位置するデータコードをデコード対象とすることを指示する右トリガキーを有する構成としたことを特徴とする請求項記載のデータコード読取装置。The instructing means includes a left trigger key for instructing to decode a data code located on the left side of two adjacently arranged data codes, and a data code located on the right side of the two adjacently arranged data codes. data code reader according to claim 1, characterized in that a configuration having the right trigger key to indicate that the decoding target. コンピュータに対して、
ユーザ操作に応じて、隣接配置された複数のデータコードのうちどの位置にあるデータコードをデコード対象とするのかを指示すると共に、データコードを読み取る読取手段に読取動作を開始させる機能と、
前記読取手段によって複数のデータコードが同時に読み取られたか否かを判別する機能と、
複数のデータコードが読み取られたことが判別された際に、前記読取手段で読み取られたデータコード情報から、前記指示された位置にあるデータコード以外のデータコード情報を削除する機能と、
前記削除により削除されずに残ったデータコード情報をデコードする機能と、
を実現させるためのプログラムを記録した記録媒体。
Against the computer,
In response to a user operation, instructing which data code in a plurality of adjacently arranged data codes is to be decoded, and causing a reading unit that reads the data code to start a reading operation;
A function of determining whether a plurality of data codes are simultaneously read by the reading unit;
A function of deleting data code information other than the data code at the indicated position from the data code information read by the reading means when it is determined that a plurality of data codes have been read;
A function of decoding data code information remaining without being deleted by the deletion;
A recording medium on which a program for realizing the above is recorded.
JP18325798A 1998-06-16 1998-06-16 Data code reader and program recording medium thereof Expired - Fee Related JP3835003B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18325798A JP3835003B2 (en) 1998-06-16 1998-06-16 Data code reader and program recording medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18325798A JP3835003B2 (en) 1998-06-16 1998-06-16 Data code reader and program recording medium thereof

Publications (2)

Publication Number Publication Date
JP2000011086A JP2000011086A (en) 2000-01-14
JP3835003B2 true JP3835003B2 (en) 2006-10-18

Family

ID=16132511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18325798A Expired - Fee Related JP3835003B2 (en) 1998-06-16 1998-06-16 Data code reader and program recording medium thereof

Country Status (1)

Country Link
JP (1) JP3835003B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60134759D1 (en) * 2000-08-18 2008-08-21 Leonard Reiffel NOTE PICTURE DATA PRODUCT
US7361866B2 (en) * 2003-07-22 2008-04-22 Samsung Electronics Co., Ltd. Cooking apparatus using barcode
JP2009009196A (en) * 2007-06-26 2009-01-15 Casio Comput Co Ltd Operation device
JP5056627B2 (en) * 2008-07-03 2012-10-24 株式会社デンソーウェーブ Optical information reader

Also Published As

Publication number Publication date
JP2000011086A (en) 2000-01-14

Similar Documents

Publication Publication Date Title
JP3121616B2 (en) Method and apparatus for pre-forming online barcode evaluation
US4916297A (en) Code reader
EP0300729A2 (en) Bar code, bar code system and bar code reading method
US5627358A (en) System and method for reading two-dimensional barcodes
US5902986A (en) Bar code reader with means for discriminating between a moving indicia and a stationary indicia
JPH07175880A (en) Scanner interface device and method for interface
JP2001250080A (en) System and method for detecting and correcting error of bar code
US6189796B1 (en) System and method of reading bar code with two scanning beams
US3820067A (en) Character reading system controlled by preprinted program control characters on document form
US4109143A (en) Optical reader
JPH05314299A (en) Scanning method of plurality of bar-code labels
JP3835003B2 (en) Data code reader and program recording medium thereof
US6206286B1 (en) Bar code reader
US6488207B1 (en) Bar code reader, scaling device and scaling method
JP3265804B2 (en) Barcode reader
JPH08263585A (en) Bar code reading device
JP3129215B2 (en) 2D code reader
US6820811B1 (en) Dual focal length bar code scanner
US7070108B1 (en) Bar code scanner
JP3560477B2 (en) Barcode reading device and barcode reading method
JP7147811B2 (en) Information processing device, reading device, operation guidance method and program
JP3639968B2 (en) Bar code reader
CA1078061A (en) Multiple code sensing optical reader
JP2001184481A (en) Device and method for reading image
JP5239626B2 (en) Scanner device and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051011

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051110

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060202

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060222

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060717

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130804

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees