JP2004094876A - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP2004094876A
JP2004094876A JP2002258851A JP2002258851A JP2004094876A JP 2004094876 A JP2004094876 A JP 2004094876A JP 2002258851 A JP2002258851 A JP 2002258851A JP 2002258851 A JP2002258851 A JP 2002258851A JP 2004094876 A JP2004094876 A JP 2004094876A
Authority
JP
Japan
Prior art keywords
image
distance measuring
angle
optical information
imaging
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
JP2002258851A
Other languages
Japanese (ja)
Other versions
JP4063021B2 (en
Inventor
Yoshio Asai
浅井 喜郎
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2002258851A priority Critical patent/JP4063021B2/en
Publication of JP2004094876A publication Critical patent/JP2004094876A/en
Application granted granted Critical
Publication of JP4063021B2 publication Critical patent/JP4063021B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To successfully read a code image even when a surface to be imaged which is provided with the code image is inclined to a proper imaging surface. <P>SOLUTION: A CCD line sensor 6 converts an image of a bar code label, which is formed on the CCD line sensor 6, to an electric signal according to light and darkness of the image and stores the electric signal as imaging data. The picked-up image data are given to a CPU 18 of a control circuit 14 through an amplification circuit 15 and a binarizing circuit 16. The CPU 18 constitutes a first distance measuring instrument 21 together with a pointer light source 12a and constitutes a second distance measuring instrument together with a pointer light source 12b. An angle detector 23 for detecting an angle of a label surface P to the proper imaging surface is constituted of these distance measuring instruments 22. The CPU 18 functions as not only a correction means for correcting the imaging data on the basis of the detected angle and a decoding means for performing decoding on the basis of the corrected imaging data. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、一次元コードや二次元コードを読み取る光学的情報読取装置に関する。
【0002】
【従来の技術】
図9には従来の光学的情報読取装置例えばバーコードハンディターミナル(以下BHTと称する)を概略的に示しており、撮像手段たるCCDラインセンサ101及びレンズ102などを備えていると共に、図示しないがCCDラインセンサ101により撮像した撮像データを2値化する2値化回路や2値化データをデコードするデコード手段などを備えている。このBHTでは、ラベルの適正撮像面はCCDセンサ101及びレンズ102の光軸103に対して直行する平面状態(一点鎖線で示す仮想線T参照)であり、この適正撮像面Tにラベル面が一致すると最も誤差の無い撮像データが得られる。
【0003】
【発明が解決しようとする課題】
ところが、ラベルが図9に実線Jで示すように傾斜状態となることがある。この場合、BHTでは、バーコードを所定モジュール数のキャラクタ単位でデコードしており、ラベルが適正撮像面Tに対して多少の傾きがあっても読取りは可能であった。しかし、それにも限度があり、さらに傾きが大きくなるとモジュール間隔の不均等度合いが大きくなって、読取りができないといった不具合があった。
【0004】
本発明は上記事情に鑑みてなされたものであり、その目的は、コード画像が設けられた被撮像面が適正撮像面に対して傾斜している場合でもコード画像を良好に読み取ることができる光学的読取装置に関する。
【0005】
【課題を解決するための手段】
請求項1の発明においては、角度検出手段により、コード画像が設けられた被撮像面と適正撮像面との角度を検出し、補正手段により、前記検出された角度に基づいて撮像データを補正する。そして、デコード手段は、この補正された撮像データに基づいてデコードを行う。従って、被撮像面が適正撮像面に対して傾斜していても、コード画像を良好に読み取ることができる。
【0006】
この場合、撮像手段によるコード画像撮像タイミングと角度検出手段による角度検出タイミングとは時間的に重ならないようにしても良く(請求項2の発明)、このようにすると、コード画像撮像と角度検出制御とを一つのマイコンなどの制御手段で行う場合に制御が比較的楽となる。
【0007】
また、コード画像としては一次元コードでも二次元コードでも良く、一次元コードであるときには角度検出手段は一つ以上であれば良く(請求項3の発明)、二次元コードであるときには角度検出手段は二つ以上であれば良い(請求項4の発明)。
【0008】
また、角度検出手段を、コード画像が設けられた被撮像面の複数の位置と読取口との各間の距離を測定する距離測定手段を備え、この距離測定手段により測定された複数の距離の相違に基づいて前記被撮像面と適正撮像面との角度を検出するようにしても良い(請求項5の発明)。このようにすると、角度検出精度が高くなる。
【0009】
この距離測定手段は、ポインタ光源を備え、被撮像面におけるこのポインタ光の位置に基づいて距離を測定する構成としても良い(請求項6の発明)。このようにすると、距離測定精度が高く、ひいては角度検出精度が高くなる。
【0010】
この場合、ポインタ光源を、撮像手段によるコード画像撮像期間以外の期間に点灯させることにより(請求項7の発明)、正確に距離を測ることができる。つまり、コード画像を撮像するについては、コード画像に照明光を当てるが、この撮像時に、距離測定を行うべくポインタ光源が点灯されると、その照明光がポインタ光源のポインタ光の位置を不鮮明にしてしまうおそれがある。しかるに上記構成によると、ポインタ光が不鮮明になることがなく、距離を正確に測ることができるようになる。
【0011】
そして、距離測定手段は撮像手段によるコード画像撮像の直前に撮像したポインタ光の位置から距離を測定するようにしても良く(同請求項7の発明)、このようにすると、最新の距離測定値ひいては最新の角度検出結果を用いて撮像データの補正およびデコードを行うことができる。
【0012】
また、コード画像が一次元コードであるときには、ポインタ光源は2個以上設けると良く(請求項8の発明)、コード画像が二次元コードのときには、ポインタ光源は3個以上設けると良い(請求項9の発明)。さらに、適正撮像面は撮像手段の光軸に直交する平面であると良い(請求項10の発明)。
【0013】
【発明の実施の形態】
以下、本発明をBHTに適用した第1の実施例につき図1ないし図6を参照して説明する。図2に示すBHT1は、手持ち可能なケース2を主体とするものであり、そのケース2には、多数のスイッチ3、液晶表示器4などが設けられている。また、ケース2内にはプリント配線基板5が配設されており、このプリント配線基板5の一方の面に前記キースイッチ3群及び液晶表示器4などが取り付けられ、他方の面に撮像手段としてのCCDイメージセンサからなるCCDラインセンサ6及び結像レンズ7などが取り付けられている。
【0014】
ケース2の前面開口部は読取口8とされ、この読取口8の近くに位置するようにしてケース2内に配設されたプリント配線基板9には、その中央に形成された孔9aの周囲に位置して照明手段たる照明用LED10及びこの照明用LED10に対向して照明用レンズ11が設けられている。さらにこのプリント配線基板9には、距離測定用のポインタ光源12a、12bが左右1対設けられている。そして、読取口8と結像レンズ7との間には、反射ミラー13が設けられている。
【0015】
図1はBHT1の電気的なブロック構成を光学的な概略構成と合わせて示すもので、上記のキースイッチ3群、液晶表示器4、CCDラインセンサ6、照明用LED10、ポインタ光源12a、12bの他に、制御回路14、増幅回路15、2値化回路16、転送手段としての通信I/F回路17などを備えている。上記制御回路14はCPU18、ROM19、RAM20などを備えたコンピュータシステムとして構成されている。そして、制御回路14は、キースイッチ3群からの入力信号及びROM19に予め記憶されたプログラムに従って動作し、液晶表示器4、CCDラインセンサ6、増幅回路15、2値化回路16、通信I/F回路17などを制御する。
【0016】
上記CCDラインセンサ6は受光素子であるCCDを直線的に配列して構成されている。照明用LED10の照明光は、バーコードラベルで反射されて読取口8から入射され、さらに、反射ミラー13で曲げられて結像レンズ7によってCCDラインセンサ6に結像される。そしてCCDラインセンサ6は、結像されたバーコードラベルの画像を、その明暗に応じた電気信号に変換して撮像データ(光学的情報)として蓄積する。このCCDラインセンサ6の撮像データは、走査線信号として増幅回路15に出力され、増幅回路15はCCDラインセンサ6から走査線信号を増幅して変換手段としての2値化回路16に与えられる。
【0017】
2値化回路16は、アナログの走査線信号を明暗パターンのデジタル信号に変換し、このデジタル信号は、後述するように、角度検出結果に基づいて、補正されて、記憶手段としてのRAM20に記憶される。そして、デコード手段としてのCPU18は、RAM20に記憶された補正デジタル信号(バーコード)をROM19に記憶されたデコードアルゴリズムに基づいてデコードし、そのデコードデータをRAM20に記憶させると共に、液晶表示器4などで読取完了を表示(報知)し、そして、そのデコードデータを通信I/F回路17から上位機器へ転送する。
【0018】
さて、前記CPU18は、前記ポインタ光源12aとで、距離測定手段たる第1の距離測定装置21を構成し、ポインタ光源12bとで距離測定手段たる第2の距離測定装置22を構成している。
【0019】
距離測定装置21、22による距離測定方法について距離測定装置21を代表して述べる。図3において、
読取口8からバーコードラベル面Pまでの距離をL1(mm)とし、
読取口8から結像レンズ7までの距離をL2(mm)とし、
結像レンズ7からCCDラインセンサ6までの距離をL3(mm)とし、
光軸の中心からポインタ光源12aまでの距離をa1(mm)とし、
光軸の中心からポインタ光源12aがラベル面Pに照らす距離をA1(mm)とし、
光軸の中心からポインタ光源のCCDラインセンサ6での結像距離をb(mm)とし、
ポインタ光源12aと光軸との角度をθ(rad)としたとき、
L1は
L1={(L3・tanθ−b)・L2+a1・L3}/(b−L3・tanθ)・・・(1)
ここで上記L2、L3、a1、θは既知の値である。また、bはCPU18により判別できる値である。すなわち、bは「画素のピッチ」×「光軸の中心からポインタ光源12aのCCDラインセンサ6での結像までの画素数」で表され、上記画素のピッチは既知の値であり、また上記画素数はCCDラインセンサ6からの電気信号をCPU18で計測でき、もってbはCPU18により判定できる。これにより、CPU18はL1を求めることができる。
【0020】
同様にして、図4に示すL1´も距離測定装置22により測定することができる。そして、上記距離測定装置21、22とCPU18とにより角度検出手段たる角度検出装置23が構成されている。この角度検出装置23によるバーコードラベル面Pと適正撮像面(線Tで示す)との角度βの検出方法について述べる。前記角度βは
β=tan−1{(L1−L1´)/A}
Aは前記距離測定装置21におけるA1と、距離測定装置22におけるA1´とを合計した数値である。
【0021】
さらに、CPU18は補正手段としても機能する。すなわち、図5に示した傾斜状態のバーコードの黒パターンの部分Kの測定値X2を、上記検出した角度βに基づいて補正し、真の長さLb(モジュール数)を求めるものである。
【0022】
Lb=X2・(L1+L1´)/{(L1+L1´)・cosβ−2(X1+X2)・sinβ}・・・(2)
ここで、上記X1、X2はCCDラインセンサ6により測定され、そして角度βは既知であるから、長さLbを求めることができる。つまり、撮像データであるバーコードの明暗パターンサイズ(X1やX2)を補正して真の明暗パターンサイズ(LbやLa)を求めることができる。
【0023】
ここで、CPU18は、図6に示す時間的順序で上述の制御を行なう。すなわち、CPU18は、キースイッチ3群からのバーコード読取りのためのスイッチ入力信号があると、まず、ステップS1で示すようにバーコードラベル面Pと、適正撮像面Tとの角度βを検出する。この角度検出は、前述したようにポインタ光源12a、12bを点灯させて行い、照明用LED10は点灯させない。
【0024】
この後、ステップS2で示すようにバーコードを撮像して撮像データを取得する。このとき、前記ポインタ光源12a、12bは消灯しておく。次いで、ステップS3に示すように撮像データを、角度検出結果に基づいて補正する。そして、ステップS4に移行して、前述したように補正撮像データをデコードし、その後、ステップS5に示すようにデコードしたデータを上位機器へ転送し、さらに、ステップS6に移行して、液晶表示器4に読み取り完了を表示させる。
【0025】
このように本実施例によれば、角度検出装置23により、バーコードラベル面Pと適正撮像面Tとの角度βを検出し、CPU18により、前記検出された角度に基づいて撮像データを補正する。そして、CPU18は、この補正された撮像データに基づいてデコードを行う。従って、バーコードラベル面Pが適正撮像面Tに対して傾斜していても、コード画像を良好に読み取ることができる。
【0026】
また、本実施例によれば、CCDラインセンサ6によるコード画像撮像タイミングと角度検出装置23による角度検出タイミングとは時間的に重ならないようにしているから、コード画像撮像と角度検出制御とを一つのマイコンなどの制御手段(CPU18)で行う場合に制御が比較的楽となる。
【0027】
さらに本実施例によれば、角度検出装置23を、バーコードラベル面Pの複数の位置と、予め定められた基準位置である読取口8との各間の距離を測定する距離測定装置21、22を備え、この距離測定装置21、22により測定された複数の距離L1、L1´の相違に基づいてバーコードラベル面Pと適正撮像面Tとの角度βを検出するようにしているから、角度検出精度が高くなる。
【0028】
この場合、距離測定装置21、22は、ポインタ光源12a、12bを備え、それぞれ、バーコードラベル面Pにおけるこのポインタ光の位置に基づいて距離を測定する構成としているから、距離測定精度が高く、ひいては角度検出精度が高くなる。
【0029】
さらに、本実施例によれば、ポインタ光源12a、12bを、コード画像撮像期間以外の期間に点灯させるようにしたから、正確に距離を測ることができる。
【0030】
そして、距離測定装置21、22はコード画像撮像の直前に撮像したポインタ光の位置から距離を測定するようにしたから、最新の距離測定値ひいては最新の角度検出結果を用いて撮像データの補正およびデコードを行うことができる。
【0031】
なお、上記実施例において、一次元コードを例示し、角度検出手段も角度検出装置23を一つ設けたが、角度検出手段は二つでもよい。すなわち、本発明の第2の実施例として示す図7に示すように、第1の距離測定装置31の一部を構成するポインタ光源31a、第2の距離測定装置32の一部を構成するポインタ光源32a、第3の距離測定装置33の一部を構成するポインタ光源33aを、例えば均等配設し、第1の距離測定装置31と第2の距離測定装置32とで、角度検出手段たる第1の角度検出装置34を構成し、第2の距離測定装置32と第3の距離測定装置33とで、角度検出手段たる第2の角度検出装置35を構成している。
【0032】
これによれば、例えば缶などの円形物品に付設された円弧状のバーコードラベル面の左半分の面の中心C1における接線部分と適正撮像面との角度β1と、右側の半分の面の中心C2における接線部分と適正撮像面との角度β2とを検出でき、もって、円弧状のバーコードラベルのコード画像の撮像データも左右半分づつ補正でき、円弧状バーコードラベルも正確に読み取ることができる。
【0033】
図8は本発明の第3の実施例を示しており、この実施例においては、コード画像として二次元コードを読取り対象とした光学的情報読取装置であり、概略的に示している。この場合、撮像手段としてCCDイメージセンサからなるCCDエリアセンサ41を設け、3つのポインタ光源42a、43a、44aを設けている。第1のポインタ光源42aは第1の距離測定装置42の一部を構成し、第2のポインタ光源43aは第2の距離測定装置43の一部を構成し、第3のポインタ光源44aは第3の距離測定装置44の一部を構成している。そして、第1の距離測定装置42と第2の距離測定装置43とで角度検出手段たる第1の角度検出装置45を構成し、第2の距離測定装置43と第3の距離測定装置44とで別の角度検出手段たる第2の角度検出装置46を構成している。これにより、二次元コード二次元的な角度を検出できる。なお、角度検出手段は3つ以上でも良い。
【0034】
なお、距離測定手段としては、超音波型の距離測定装置でも良い。撮像手段としてはCCDイメージセンサに代えてCMOSイメージセンサでも良い。また、本発明の光学的情報読取装置はBHTに限られず、据付型のものにも適用できる。
【図面の簡単な説明】
【図1】BHTのブロック図
【図2】BHTの縦断側面図
【図3】距離測定装置による距離測定方法を説明するための原理図
【図4】角度検出方法を説明するための原理図
【図5】撮像データの補正を説明するための原理図
【図6】バーコード読取り制御のフローチャート
【図7】本発明の第2の実施例を示す図4相当図
【図8】本発明の第3の実施例を示す概略斜視図
【図9】従来例を示す概略構成図
【符号の説明】
6はCCDラインセンサ(撮像手段)、8は読取口、12a、12bはポインタ光源、14は制御回路、18はCPU(補正手段、デコード手段)、21は第1の距離測定装置(距離測定手段)、22は第2の距離測定装置(距離測定手段)、23は角度検出装置(角度検出手段)、31a、32a、33aはポインタ光源、31は第1の距離測定装置(距離測定手段)、32は第2の距離測定装置(距離測定手段)、33は第3の距離測定装置(距離測定手段)、34は第1の角度検出装置(角度検出装置)、35は第2の角度検出装置(角度検出手段)、41はCCDエリアセンサ(撮像手段)、42a、43a、44aはポインタ光源、42は第1の距離測定装置(距離測定手段)、43は第2の距離測定装置(距離測定手段)、44は第3の距離測定装置(距離測定手段)、45は第1の角度検出装置(角度検出手段)、46は第2の角度検出装置(角度検出手段)を示す。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an optical information reading device that reads one-dimensional codes and two-dimensional codes.
[0002]
[Prior art]
FIG. 9 schematically shows a conventional optical information reading apparatus, for example, a bar code handy terminal (hereinafter referred to as BHT), which includes a CCD line sensor 101 and a lens 102 as image pickup means and is not shown. A binarization circuit for binarizing image data captured by the CCD line sensor 101, a decoding unit for decoding the binarized data, and the like are provided. In this BHT, the proper imaging surface of the label is in a plane state perpendicular to the optical axis 103 of the CCD sensor 101 and the lens 102 (see a phantom line T indicated by a dashed line). Then, imaging data with the least error is obtained.
[0003]
[Problems to be solved by the invention]
However, the label may be inclined as shown by a solid line J in FIG. In this case, in the BHT, the barcode is decoded in units of characters of a predetermined number of modules, and reading is possible even if the label is slightly inclined with respect to the appropriate imaging surface T. However, there is a limit to this, and if the inclination is further increased, the degree of unevenness of the module interval becomes large, and there is a problem that reading cannot be performed.
[0004]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an optical system capable of reading a code image satisfactorily even when the imaging surface provided with the code image is inclined with respect to a proper imaging surface. The present invention relates to a dynamic reading device.
[0005]
[Means for Solving the Problems]
According to the first aspect of the present invention, the angle detection unit detects the angle between the image-captured surface on which the code image is provided and the appropriate image-capturing surface, and the correction unit corrects the image data based on the detected angle. . Then, the decoding means performs decoding based on the corrected image data. Therefore, even if the imaging surface is inclined with respect to the proper imaging surface, the code image can be read well.
[0006]
In this case, the code image pickup timing by the image pickup means and the angle detection timing by the angle detection means may not overlap in time (the invention of claim 2). In this case, the code image pickup and the angle detection control When the control is performed by a single microcomputer or the like, the control becomes relatively easy.
[0007]
The code image may be a one-dimensional code or a two-dimensional code. When the code image is a one-dimensional code, the angle detection means may be one or more (the invention of claim 3). May be two or more (the invention of claim 4).
[0008]
Further, the angle detecting means includes distance measuring means for measuring a distance between each of a plurality of positions on the imaging surface provided with the code image and the reading port, and a plurality of distances measured by the distance measuring means. The angle between the imaging surface and the proper imaging surface may be detected based on the difference (the invention of claim 5). This increases the angle detection accuracy.
[0009]
The distance measuring means may include a pointer light source and measure the distance based on the position of the pointer light on the imaging surface (the invention of claim 6). By doing so, the distance measurement accuracy is high, and thus the angle detection accuracy is high.
[0010]
In this case, the distance can be accurately measured by turning on the pointer light source during a period other than the code image imaging period by the imaging unit (the invention of claim 7). In other words, when capturing a code image, illumination light is applied to the code image. However, when the pointer light source is turned on to perform distance measurement at the time of this imaging, the illumination light blurs the position of the pointer light of the pointer light source. There is a risk that it will. However, according to the above configuration, the distance can be accurately measured without the pointer light becoming unclear.
[0011]
The distance measuring means may measure the distance from the position of the pointer light imaged immediately before the imaging of the code image by the imaging means (the invention of claim 7). As a result, it is possible to correct and decode the imaging data using the latest angle detection result.
[0012]
When the code image is a one-dimensional code, two or more pointer light sources may be provided (the invention of claim 8), and when the code image is a two-dimensional code, three or more pointer light sources may be provided (claim). 9 invention). Further, it is preferable that the appropriate imaging surface is a plane orthogonal to the optical axis of the imaging means (the tenth aspect of the present invention).
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a first embodiment in which the present invention is applied to a BHT will be described with reference to FIGS. The BHT 1 shown in FIG. 2 mainly includes a hand-held case 2, and the case 2 is provided with a number of switches 3, a liquid crystal display 4, and the like. A printed wiring board 5 is provided in the case 2. The key switch 3 group and the liquid crystal display 4 are mounted on one surface of the printed wiring board 5, and the other surface is used as an image pickup means. A CCD line sensor 6 composed of a CCD image sensor and an imaging lens 7 are mounted.
[0014]
The front opening of the case 2 is a reading opening 8, and a printed wiring board 9 disposed in the case 2 so as to be located near the reading opening 8 has a hole 9 a formed in the center thereof. , An illumination LED 10 serving as illumination means and an illumination lens 11 are provided to face the illumination LED 10. Further, the printed wiring board 9 is provided with a pair of left and right pointer light sources 12a and 12b for distance measurement. A reflection mirror 13 is provided between the reading port 8 and the imaging lens 7.
[0015]
FIG. 1 shows the electrical block configuration of the BHT 1 together with an optical schematic configuration. The key switch 3 group, the liquid crystal display 4, the CCD line sensor 6, the illumination LED 10, and the pointer light sources 12a and 12b are shown. In addition, a control circuit 14, an amplification circuit 15, a binarization circuit 16, a communication I / F circuit 17 as a transfer unit, and the like are provided. The control circuit 14 is configured as a computer system including a CPU 18, a ROM 19, a RAM 20, and the like. The control circuit 14 operates according to an input signal from the key switch group 3 and a program stored in the ROM 19 in advance, and the liquid crystal display 4, the CCD line sensor 6, the amplifying circuit 15, the binarizing circuit 16, the communication I / O It controls the F circuit 17 and the like.
[0016]
The CCD line sensor 6 is configured by linearly arranging CCDs as light receiving elements. The illumination light of the illumination LED 10 is reflected by the bar code label, enters the reading port 8, is further bent by the reflection mirror 13, and is imaged on the CCD line sensor 6 by the imaging lens 7. Then, the CCD line sensor 6 converts the formed image of the barcode label into an electric signal corresponding to the brightness and stores the converted image as optical data. The image data of the CCD line sensor 6 is output to the amplifier circuit 15 as a scanning line signal, and the amplifier circuit 15 amplifies the scanning line signal from the CCD line sensor 6 and supplies it to a binarization circuit 16 as a conversion unit.
[0017]
The binarizing circuit 16 converts the analog scanning line signal into a digital signal of a light and dark pattern, and the digital signal is corrected based on the angle detection result and stored in the RAM 20 as storage means, as described later. Is done. The CPU 18 as a decoding means decodes the corrected digital signal (bar code) stored in the RAM 20 based on the decoding algorithm stored in the ROM 19, stores the decoded data in the RAM 20, and displays the decoded data on the liquid crystal display 4 and the like. To display (notify) the completion of reading, and then transfer the decoded data from the communication I / F circuit 17 to the host device.
[0018]
The CPU 18 and the pointer light source 12a constitute a first distance measuring device 21 as a distance measuring device, and the pointer light source 12b constitutes a second distance measuring device 22 as a distance measuring device.
[0019]
A distance measuring method using the distance measuring devices 21 and 22 will be described with the distance measuring device 21 as a representative. In FIG.
The distance from the reading port 8 to the barcode label surface P is L1 (mm),
The distance from the reading port 8 to the imaging lens 7 is L2 (mm),
The distance from the imaging lens 7 to the CCD line sensor 6 is L3 (mm),
The distance from the center of the optical axis to the pointer light source 12a is a1 (mm),
Let A1 (mm) be the distance that the pointer light source 12a illuminates the label surface P from the center of the optical axis,
The imaging distance of the pointer light source at the CCD line sensor 6 from the center of the optical axis is b (mm),
When the angle between the pointer light source 12a and the optical axis is θ (rad),
L1 is L1 = {(L3 · tan θ−b) · L2 + a1 · L3} / (b−L3 · tan θ) (1)
Here, L2, L3, a1, and θ are known values. B is a value that can be determined by the CPU 18. That is, b is represented by “pixel pitch” × “the number of pixels from the center of the optical axis to the image formation of the pointer light source 12a by the CCD line sensor 6”, and the pixel pitch is a known value. The number of pixels can be measured by the CPU 18 based on the electric signal from the CCD line sensor 6, and b can be determined by the CPU 18. Thus, the CPU 18 can obtain L1.
[0020]
Similarly, L1 ′ shown in FIG. 4 can be measured by the distance measuring device 22. The distance measuring devices 21 and 22 and the CPU 18 constitute an angle detecting device 23 as angle detecting means. A method of detecting the angle β between the barcode label surface P and the appropriate imaging surface (indicated by line T) by the angle detection device 23 will be described. The angle β is β = tan −1 {(L1-L1 ′) / A}.
A is a numerical value obtained by summing A1 in the distance measuring device 21 and A1 'in the distance measuring device 22.
[0021]
Further, the CPU 18 also functions as a correction unit. That is, the measured value X2 of the black pattern portion K of the bar code in the inclined state shown in FIG. 5 is corrected based on the detected angle β to obtain the true length Lb (the number of modules).
[0022]
Lb = X2 · (L1 + L1 ′) / {(L1 + L1 ′) · cosβ-2 (X1 + X2) · sinβ} (2)
Here, X1 and X2 are measured by the CCD line sensor 6, and since the angle β is known, the length Lb can be obtained. In other words, the true light and dark pattern size (Lb and La) can be obtained by correcting the light and dark pattern size (X1 and X2) of the barcode that is the imaging data.
[0023]
Here, the CPU 18 performs the above-described control in the time sequence shown in FIG. That is, when there is a switch input signal for reading a bar code from the key switch group 3, the CPU 18 first detects an angle β between the bar code label surface P and the appropriate imaging surface T as shown in step S1. . This angle detection is performed by turning on the pointer light sources 12a and 12b as described above, and does not turn on the illumination LED 10.
[0024]
Thereafter, as shown in step S2, the barcode is imaged to obtain imaged data. At this time, the pointer light sources 12a and 12b are turned off. Next, as shown in step S3, the imaging data is corrected based on the angle detection result. Then, the process shifts to step S4 to decode the corrected imaging data as described above, and then transfers the decoded data to the host device as shown in step S5. 4 displays the completion of reading.
[0025]
As described above, according to the present embodiment, the angle detector 23 detects the angle β between the barcode label surface P and the appropriate imaging surface T, and the CPU 18 corrects the imaging data based on the detected angle. . Then, the CPU 18 performs decoding based on the corrected imaging data. Therefore, even if the barcode label surface P is inclined with respect to the proper imaging surface T, the code image can be read well.
[0026]
Further, according to the present embodiment, the timing of capturing the code image by the CCD line sensor 6 and the timing of detecting the angle by the angle detection device 23 do not overlap with each other in time. The control is relatively easy when performed by a control means (CPU 18) such as one microcomputer.
[0027]
Furthermore, according to the present embodiment, the angle detecting device 23 is provided with a distance measuring device 21 that measures the distance between each of the plurality of positions on the barcode label surface P and the reading opening 8 that is a predetermined reference position. Since the angle β between the barcode label surface P and the appropriate imaging surface T is detected based on the difference between the plurality of distances L1 and L1 ′ measured by the distance measurement devices 21 and 22, The angle detection accuracy increases.
[0028]
In this case, since the distance measuring devices 21 and 22 are provided with the pointer light sources 12a and 12b and configured to measure the distance based on the position of the pointer light on the barcode label surface P, the distance measuring accuracy is high. As a result, the angle detection accuracy is increased.
[0029]
Furthermore, according to the present embodiment, since the pointer light sources 12a and 12b are turned on during periods other than the code image capturing period, the distance can be measured accurately.
[0030]
Then, since the distance measuring devices 21 and 22 measure the distance from the position of the pointer light imaged immediately before the code image is imaged, correction of the imaged data and correction of the imaged data using the latest distance measurement value and thus the latest angle detection result are performed. Decoding can be performed.
[0031]
In the above embodiment, a one-dimensional code is illustrated, and one angle detecting device is provided as the angle detecting device. However, two angle detecting devices may be provided. That is, as shown in FIG. 7 shown as a second embodiment of the present invention, a pointer light source 31a constituting a part of the first distance measuring device 31 and a pointer light source constituting a part of the second distance measuring device 32 The light source 32a and the pointer light source 33a constituting a part of the third distance measuring device 33 are arranged, for example, equally, and the first distance measuring device 31 and the second distance measuring device 32 serve as an angle detecting means. One angle detecting device 34 is constituted, and the second distance measuring device 32 and the third distance measuring device 33 constitute a second angle detecting device 35 as angle detecting means.
[0032]
According to this, for example, the angle β1 between the tangent portion at the center C1 of the left half surface of the arc-shaped barcode label surface attached to a circular article such as a can and the appropriate imaging surface, and the center of the right half surface The angle β2 between the tangent portion at C2 and the appropriate imaging surface can be detected, so that the imaging data of the code image of the arc-shaped barcode label can be corrected by the left and right halves, and the arc-shaped barcode label can be accurately read. .
[0033]
FIG. 8 shows a third embodiment of the present invention. In this embodiment, an optical information reading apparatus for reading a two-dimensional code as a code image is schematically shown. In this case, a CCD area sensor 41 composed of a CCD image sensor is provided as an imaging means, and three pointer light sources 42a, 43a, and 44a are provided. The first pointer light source 42a forms a part of the first distance measuring device 42, the second pointer light source 43a forms a part of the second distance measuring device 43, and the third pointer light source 44a 3 constitutes a part of the distance measuring device 44. The first distance measuring device 42 and the second distance measuring device 43 constitute a first angle detecting device 45 as an angle detecting means, and the second distance measuring device 43 and the third distance measuring device 44 Constitute the second angle detecting device 46 as another angle detecting means. Thereby, a two-dimensional angle of the two-dimensional code can be detected. Note that three or more angle detection means may be used.
[0034]
The distance measuring means may be an ultrasonic distance measuring device. As an imaging means, a CMOS image sensor may be used instead of the CCD image sensor. Further, the optical information reading device of the present invention is not limited to the BHT, but can be applied to a stationary type.
[Brief description of the drawings]
FIG. 1 is a block diagram of a BHT. FIG. 2 is a longitudinal side view of the BHT. FIG. 3 is a principle diagram for explaining a distance measuring method by a distance measuring device. FIG. 4 is a principle diagram for explaining an angle detecting method. FIG. 5 is a principle diagram for explaining correction of imaging data. FIG. 6 is a flowchart of bar code reading control. FIG. 7 is a diagram corresponding to FIG. 4 showing a second embodiment of the present invention. FIG. 9 is a schematic perspective view showing a third embodiment. FIG. 9 is a schematic configuration diagram showing a conventional example.
6 is a CCD line sensor (imaging means), 8 is a reading port, 12a and 12b are pointer light sources, 14 is a control circuit, 18 is a CPU (correction means and decoding means), 21 is a first distance measuring device (distance measuring means) ), 22 is a second distance measuring device (distance measuring device), 23 is an angle detecting device (angle detecting device), 31a, 32a, 33a are pointer light sources, 31 is a first distance measuring device (distance measuring device), 32 is a second distance measuring device (distance measuring device), 33 is a third distance measuring device (distance measuring device), 34 is a first angle detecting device (angle detecting device), and 35 is a second angle detecting device. (Angle detecting means), 41 is a CCD area sensor (imaging means), 42a, 43a, 44a are pointer light sources, 42 is a first distance measuring device (distance measuring means), 43 is a second distance measuring device (distance measuring device) Means), 44 Third distance measuring device (distance measuring means) 45 first angle detection device (angle detector), 46 denotes second angle detecting device (angle detection means).

Claims (10)

コード画像を撮像して撮像データを出力する撮像手段と、
コード画像が設けられた被撮像面と適正撮像面との角度を検出する角度検出手段と、
検出された角度に基づいて前記撮像データを補正する補正手段と、
この補正された撮像データに基づいてデコードを行うデコード手段と
を備えたことを特徴とする光学的情報読取装置。
Imaging means for imaging a code image and outputting imaging data;
Angle detection means for detecting the angle between the image-captured surface provided with the code image and the appropriate image-capturing surface,
Correction means for correcting the imaging data based on the detected angle,
An optical information reading apparatus comprising: decoding means for decoding based on the corrected image data.
撮像手段によるコード画像撮像タイミングと角度検出手段による角度検出タイミングとは時間的に重ならないようにしたことを特徴とする請求項1記載の光学的情報読取装置。2. The optical information reading apparatus according to claim 1, wherein the code image pickup timing by the image pickup means and the angle detection timing by the angle detection means do not overlap in time. コード画像は一次元コードであり、角度検出手段は一つ以上設けられていることを特徴とする請求項1または2記載の光学的情報読取装置。3. The optical information reading apparatus according to claim 1, wherein the code image is a one-dimensional code, and at least one angle detecting unit is provided. コード画像は二次元コードであり、角度検出手段は二つ以上設けられていることを特徴とする請求項1または2記載の光学的情報読取装置。3. The optical information reading apparatus according to claim 1, wherein the code image is a two-dimensional code, and two or more angle detecting means are provided. 角度検出手段は、コード画像が設けられた被撮像面の複数の位置と予め定められた基準位置との各間の距離を測定する距離測定手段を備え、この距離測定手段により測定された複数の距離の相違に基づいて前記被撮像面と適正撮像面との角度を検出するようになっていることを特徴とする請求項1記載の光学的情報読取装置。The angle detecting means includes distance measuring means for measuring a distance between each of a plurality of positions on the imaging surface provided with the code image and a predetermined reference position, and a plurality of distances measured by the distance measuring means. 2. The optical information reading device according to claim 1, wherein an angle between the imaging surface and the proper imaging surface is detected based on a difference in distance. 距離測定手段は、ポインタ光源を備え、被撮像面におけるこのポインタ光の位置に基づいて距離を測定することを特徴とする請求項5記載の光学的情報読取装置。6. The optical information reading apparatus according to claim 5, wherein the distance measuring means includes a pointer light source, and measures the distance based on a position of the pointer light on the imaging surface. ポインタ光源は、撮像手段によるコード画像撮像期間以外の期間に点灯し、距離測定手段は撮像手段によるコード画像撮像の直前に撮像したポインタ光の位置から距離を測定することを特徴とする請求項6記載の光学的情報読取装置。7. The pointer light source is turned on during a period other than the code image capturing period by the image capturing unit, and the distance measuring unit measures the distance from the position of the pointer light captured immediately before the code image capturing by the image capturing unit. The optical information reading device according to claim 1. コード画像は一次元コードであり、ポインタ光源は2個以上設けられていることを特徴とする請求項6記載の光学的情報読取装置。7. The optical information reading device according to claim 6, wherein the code image is a one-dimensional code, and two or more pointer light sources are provided. コード画像は二次元コードであり、ポインタ光源は3個以上設けられていることを特徴とする請求項6記載の光学的情報読取装置。7. The optical information reading apparatus according to claim 6, wherein the code image is a two-dimensional code, and three or more pointer light sources are provided. 適正撮像面は撮像手段の光軸に直交する平面であることを特徴とする請求項1ないし9のいずれかに記載の光学的情報読取装置。10. The optical information reading apparatus according to claim 1, wherein the appropriate imaging surface is a plane orthogonal to an optical axis of the imaging unit.
JP2002258851A 2002-09-04 2002-09-04 Optical information reader Expired - Fee Related JP4063021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002258851A JP4063021B2 (en) 2002-09-04 2002-09-04 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002258851A JP4063021B2 (en) 2002-09-04 2002-09-04 Optical information reader

Publications (2)

Publication Number Publication Date
JP2004094876A true JP2004094876A (en) 2004-03-25
JP4063021B2 JP4063021B2 (en) 2008-03-19

Family

ID=32063366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002258851A Expired - Fee Related JP4063021B2 (en) 2002-09-04 2002-09-04 Optical information reader

Country Status (1)

Country Link
JP (1) JP4063021B2 (en)

Also Published As

Publication number Publication date
JP4063021B2 (en) 2008-03-19

Similar Documents

Publication Publication Date Title
US6128420A (en) Data symbol reading system
US20050167498A1 (en) Method and apparatus for optically picking up an image of an information code
US7222790B2 (en) Apparatus for optically reading information
JP2007207085A (en) Optical information reader
KR20050025894A (en) Optical information reading apparatus and related information reading method
JP4470860B2 (en) Information code reader
JP2007287009A (en) Information code reader
JP4968093B2 (en) Optical information reader
US10909432B2 (en) Two-dimensional code composed of a plurality of types of cells
JP2004094876A (en) Optical information reader
JP4175358B2 (en) Optical information reader
JP5556684B2 (en) Information code reader
JP5293853B1 (en) Bar code reader
JP2000337853A (en) Detecting device for record position of information code, and optical information reading device
JP5522093B2 (en) Optical information reader
JP4378491B2 (en) Code image output device
JP2890935B2 (en) Portable optical information reader
JP2012009058A (en) Data code scanning device and method thereof
JP2009123088A (en) Data code reader and its method
JP2007317059A (en) Optical information reader
JP3918713B2 (en) Optical information reader
JP2012118779A (en) Code analysis system
JP2012194853A (en) Optical information reader
JP5496764B2 (en) Scanner device
JP2001188878A (en) Photometry system for code reader

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041001

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070423

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: 20071211

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071224

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees