JP4161907B2 - Information code reading system and method for determining illumination time of information reading device - Google Patents
Information code reading system and method for determining illumination time of information reading device Download PDFInfo
- Publication number
- JP4161907B2 JP4161907B2 JP2004004092A JP2004004092A JP4161907B2 JP 4161907 B2 JP4161907 B2 JP 4161907B2 JP 2004004092 A JP2004004092 A JP 2004004092A JP 2004004092 A JP2004004092 A JP 2004004092A JP 4161907 B2 JP4161907 B2 JP 4161907B2
- Authority
- JP
- Japan
- Prior art keywords
- reading
- time
- illumination
- information
- camera device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
- Image Input (AREA)
Description
本発明は、固定配置された状態で撮像を行うカメラ装置と、このカメラ装置の撮像対象を照明する照明装置と、前記カメラ装置によって読取られた情報コードのデコードを行う情報読取り装置とで構成される情報コード読取りシステム、及び、前記情報読取り装置が照明装置に照明を行なわせる時間を決定するための方法に関する。 The present invention includes a camera device that captures an image in a fixed arrangement, an illumination device that illuminates an imaging target of the camera device, and an information reading device that decodes an information code read by the camera device. And an information code reading system and a method for determining a time at which the information reading device causes the lighting device to perform illumination.
特許文献1には、所定のパターンで情報が記録されたテストパターンに光源からの光を射出させ、反射光を受光した受光部より出力される読取り信号によって得られる配向パターンと予め設定された理想配向パターンとを比較し、双方のずれが一定値以下に収まる場合の光源の発光時間を、最良の発光時間として初期設定するバーコードリーダの光源調整方法が開示されている。
しかしながら、一般に、バーコードや2次元コードのように光学的に読み取りが行われる情報コードについて読み取りを行う環境条件は、一般に変動し易い状態にある。例えば、生産ライン上で搬送される製品に付された情報コードを読取る場合を想定すると、周囲の照度が外光によって変化したり、生産工程における製品の個体差(製造のばらつきや、情報コードの付与状態のばらつきも含む)も変動要因として存在する。従って、理想配向パターンを固定的に設定している場合は、それが実際の読取り環境に合致したものであるという保証はない。 However, in general, environmental conditions for reading information codes that are optically read, such as barcodes and two-dimensional codes, are generally easily changed. For example, assuming that an information code attached to a product conveyed on a production line is read, the ambient illuminance changes due to external light, or individual differences between products in the production process (manufacturing variation, information code (Including the variation of the application state) also exists as a variation factor. Therefore, when the ideal orientation pattern is fixedly set, there is no guarantee that it matches the actual reading environment.
また、特許文献1においては、読取りに基づく配向パターンと理想配向パターンとにおける、各部位の光強度差が一定値以内に収まった段階で最良の発光時間であるとして初期設定を行っている。しかし、上述したような環境条件の変動を考慮すると、光強度差が一定値以内に収まることが、必ずしも情報コードの理想的な読取り条件を示すとは限らないはずである。
In
更に、情報コードを読取るためのシステムは、各ユーザのアプリケーションに対応可能な柔軟性を持たせるように、夫々個別の装置であるカメラ装置と、照明装置と、情報コードのデコードを行う読取装置と組み合わせて構成するケースが少なくない。斯様なシステム構成を採用した場合、カメラ装置が情報コードを読取るためのシャッタ時間の変更は容易ではなく、例えば、ジャンパスイッチの設定を変更するなどの面倒な操作が必要となる。従って、斯様なシステム構成において照明装置における最適な照明時間を設定する場合には、カメラ装置に設定されているシャッタ時間を前提とせざるを得ないが、特許文献1に開示されている技術ではその前提条件が異なるため、そのまま適用することはできない。
Further, the system for reading the information code has a camera device, an illumination device, and a reading device that decodes the information code, each of which is a separate device so as to have flexibility to cope with each user's application. There are many cases that are configured in combination. When such a system configuration is adopted, it is not easy to change the shutter time for the camera device to read the information code, and for example, a troublesome operation such as changing a jumper switch setting is required. Therefore, when setting the optimal illumination time in the illumination device in such a system configuration, the shutter time set in the camera device must be premised, but with the technique disclosed in
本発明は上記事情に鑑みてなされたものであり、その目的は、カメラ装置と、照明装置と、情報読取装置とを組み合わせて構成されるシステムにおいて、照明時間の設定を最適に行うことにある。 The present invention has been made in view of the above circumstances, and an object thereof is to optimally set an illumination time in a system configured by combining a camera device, an illumination device, and an information reading device. .
請求項1記載の情報コード読取りシステムによれば、情報読取り装置は、固定配置された状態で撮像を行うカメラ装置との間で送受信される制御信号に基づいてシャッタ時間を検出すると、そのシャッタ時間を上限として複数段階の照明時間を決定する。そして、各照明時間で照明装置に照明を行なわせた場合に読取られた情報コードを夫々デコードし、各デコード結果について評価した読み取り状態が最も良好であった照明時間を、以降の読取り処理において優先的に設定する。
According to the information code reading system of
従って、カメラ装置に設定されているシャッタ時間の範囲内で、読み取り状態が最も良好であった照明時間により以降の読取り処理が試行されるので、システム構成並びに実際の環境条件に適した照明条件を設定することができる。そして、従来技術のように、反射光の光強度が所定の状態となる発光時間を設定するのではなく、デコード結果に基づいて評価した読み取り状態が最良となる照明時間を設定するので、その時点における読取り環境条件により合致した最適な照明時間を設定することが可能となる。
そして、情報読取り装置は、カメラ装置に対して撮像開始信号を送信した時点から、そのカメラ装置が出力した画像データ出力開始信号を受信するまでの時間をシャッタ時間として検出する。即ち、カメラ装置は、撮像開始信号が与えられるとシャッタを開いて情報コードパターンの撮像を行い、シャッタを閉じて撮像が終了すると、画像データを情報読取り装置側に送信するためにデータ出力の開始を示す信号を送信する。従って、情報読取り装置側から見ると、これら2つの信号の出入力間隔がシャッタ時間に相当することになるので、シャッタ時間を簡単且つ正確に検出することができる。
Therefore, since the subsequent reading process is attempted with the illumination time in which the reading state is the best within the range of the shutter time set in the camera device, the illumination conditions suitable for the system configuration and the actual environmental conditions are set. Can be set. And, unlike the prior art, instead of setting the light emission time when the light intensity of the reflected light is in a predetermined state, it sets the illumination time when the reading state evaluated based on the decoding result is the best. It is possible to set an optimal illumination time that matches the reading environment conditions in the.
Then, the information reading device detects, as the shutter time, the time from when the imaging start signal is transmitted to the camera device until the image data output start signal output by the camera device is received. That is, when the imaging start signal is given, the camera device opens the shutter to capture the information code pattern, and when the shutter is closed and the imaging is completed, the camera device starts data output to transmit image data to the information reading device side. A signal indicating is transmitted. Accordingly, when viewed from the information reader side, the input / output interval of these two signals corresponds to the shutter time, so that the shutter time can be detected easily and accurately.
請求項2記載の情報コード読取りシステムによれば、情報読取り装置は、情報コードのデコード時に発生する誤り訂正処理の回数が、より少ないものを読み取り状態が良好であると評価する。即ち、読取り状態が良好であれば誤り訂正処理回数は少なくなるはずであるから、斯様に構成すれば、読み取り状態の評価を適切に行なうことができる。 According to the information code reading system of the second aspect, the information reading apparatus evaluates that the number of times of error correction processing generated when decoding the information code is smaller, that the reading state is good. In other words, if the reading state is good, the number of error correction processes should be reduced. Therefore, with this configuration, the reading state can be evaluated appropriately.
請求項3記載の情報コード読取りシステムによれば、情報読取り装置は、複数選択した照明時間候補の内、何れかの照明時間を設定して行った読取りが失敗した場合は、優先順位がその次に高い照明時間を設定して読取りを再試行する。即ち、上述したように、情報コードの読取り環境条件は変動し易いため、ある時点で読取り状態が最良になるとみなされた照明時間が、それ以降も常に最良の読取り状態を提供するとの保証はない。従って、斯様に構成すれば、例え読み取りが失敗した場合でも、その次以降の読み取りが正常に行われる可能性がある。
According to the information code reading system of
請求項4記載の情報コード読取りシステムによれば、情報読取り装置は、優先的に設定した照明時間以外に読取り成功頻度が高いものが出現すると、その成功頻度が高い照明時間を優先的に設定するように切換える。即ち、請求項4において述べたように情報コードの読取り環境条件は変動し易いため、最良の読取り条件を与える照明時間は、その時々によって変化する場合もあるので、斯様に構成すれば、最良の照明時間をより柔軟に設定して読み取りが正しく行なわれる可能性を向上させることができる。 According to the information code reading system of claim 4 , when an information reading device having a high reading success frequency other than the preferentially set lighting time appears, the information reading device preferentially sets the lighting time having a high success frequency. Switch as follows. That is, since the reading environment condition of the information code is likely to fluctuate as described in claim 4, the illumination time for providing the best reading condition may vary from time to time. The illumination time can be set more flexibly to improve the possibility of correct reading.
請求項5記載の情報コード読取りシステムによれば、情報読取り装置は、選択した複数の照明時間候補の何れによっても読取りが失敗すると、複数段階の照明時間の内、選択外の照明時間を設定して読取りを試行する。即ち、読取り環境条件の変動によっては、以前に読取り状態が必ずしも良くなかった照明時間が、現在は良好な読取り状態を与える条件になっていることも想定される。従って、斯様に構成すれば、読み取りが正しく行なわれる可能性を更に向上させることができる。 According to the information code reading system of the fifth aspect , the information reading device sets an unselected illumination time out of a plurality of stages of illumination time when reading fails due to any of the plurality of selected illumination time candidates. And try reading. In other words, depending on fluctuations in the reading environment conditions, it is assumed that the illumination time in which the reading state was not necessarily good before is now a condition that gives a good reading state. Therefore, if configured in this way, the possibility of correct reading can be further improved.
(第1実施例)
以下、本発明を、情報コードの一種であるQRコード(2次元コード)等を読取るための情報コード読取りシステムに適用した場合の第1実施例について、図1乃至図6を参照して説明する。図4は、情報コード読取りシステムの構成を示すものである。情報コード読取りシステムは、CCDカメラ(カメラ装置)1,LED照明装置2,デコーダ(情報読取装置)3を中心として構成されている。CCDカメラ1は、デコーダ3によってQRコードの読取りタイミングが制御されるようになっており、CCDカメラ1が読取ったQRコードの画像データは、デコーダ3に送信される。
(First embodiment)
Hereinafter, a first embodiment in which the present invention is applied to an information code reading system for reading a QR code (two-dimensional code), which is a kind of information code, will be described with reference to FIGS. . FIG. 4 shows the configuration of the information code reading system. The information code reading system is mainly composed of a CCD camera (camera device) 1, an
LED照明装置2は、例えばリング状のフレームに複数個のLED(図示せず)が配置されて構成されるもので、図5に示すように、CCDカメラ1の撮像中心に対する同軸上に配置された状態でその撮像対象を照明する。このLED照明装置2も、デコーダ3によって点消灯制御が行われるようになっている。尚、図5は、生産ライン上を搬送される回路基板4にレーザ光などを用いてダイレクトマーキングされているQRコード5を、CCDカメラ1によって読取る場合を示しており、CCDカメラ5及びLED照明装置2は、ライン情報に固定された状態で、その下方を通過する回路基板4にマーキングされたQRコード5を読取る。
The
デコーダ3は、CCDカメラ1より送信されるQRコードの画像データをデコードするものであり、上位制御装置としてのパーソナルコンピュータ6(或いはシーケンサ)などにより制御指令が与えられる。また、デコーダ3がデコードした結果得られた情報は、パソコン6側に送信される。更に、デコーダ3には、NTSCモニタテレビ7やマウス8などが接続されており、モニタテレビ7にCCDカメラ1が撮像した画像データを表示したり、デコードした結果得られる情報を表示させたり、モニタテレビ7に表示されるメニュー画面をマウス8で操作することが可能に構成されている。
The
図6は、デコーダ3の電気的構成を概略的に示している。マイクロコンピュータを主体として構成され全体の制御やデコード処理等を行う制御回路9には、画像信号入力インターフェイス(I/F)10を介してCCDカメラ1より送信される画像データが入力される。また、制御回路9は、カメラ制御インターフェイス11を介してCCDカメラ1との間で制御信号の入出力を行う。
FIG. 6 schematically shows the electrical configuration of the
また、制御回路9は、照明制御インターフェイス12を介してLED照明装置2の点消灯制御を行い、マウスインターフェイス(例えば、PS/2(登録商標)など)13を介してマウス8の操作信号を受け付ける。更に、制御回路9は、モニタインターフェイス(NTSC)14を介してモニタテレビ7に画像信号を出力し、通信インターフェイス(例えば、RS−232Cなど)15を介してパソコン6との間で通信を行う。
Further, the
また、デコーダ3は、増幅回路17、A/D変換回路18、メモリ19、特定比検出回路20、同期信号発生回路21、アドレス発生回路22などを備えており、これらも制御回路9により制御されるようになっている。これらにより、CCDカメラ1による撮像信号が、増幅回路17にて増幅され、A/D変換回路18にてデジタル信号に変換されて画像データとしてメモリ19に記憶される。またこのとき、特定比検出回路20にて画像データ中の特定パターンが検出されるようになっている。前記受光センサ3及び特定比検出回路20、アドレス発生回路22には、同期信号発生回路21から同期信号が与えられるようになっている。
The
次に、本実施例の作用について図1乃至図3をも参照して説明する。図1は、デコーダ3の制御回路7が電源投入時に行う照明時間調整処理の内容を示すフローチャートである。なお、この調整処理を行なう場合には、CCDカメラ1に読取らせるテストサンプルとしてのQRコード5を用意しておくようにする。
制御回路7は、先ず、図3(a)に示すように、CCDカメラ1に対して撮像開始信号としてのVD信号を出力すると(ステップS1)、内部のタイマによる計時を開始させる(ステップS2)。すると、CCDカメラ1は、シャッタを開いてQRコード5の画像データを撮像し、その撮像が終了すると、デコーダ3に対して画像データを送信するため、データ出力の開始を示すVI信号を送信する(図3(b)参照)。
Next, the operation of the present embodiment will be described with reference to FIGS. FIG. 1 is a flowchart showing the contents of the illumination time adjustment process performed by the
First, as shown in FIG. 3A, the
そこで、制御回路7は、VI信号が入力されるまで待機し(ステップS3)、入力されると(「YES」)、その時点でのタイマのカウント値TSを読取る(ステップS4)。即ち、VD信号を出力した時点からVI信号が入力されるまでの時間は、CCDカメラ1に設定されているシャッタの開放時間に相当する。尚、ここまでの処理は、CCDカメラ1のシャッタ時間を検出することが目的であるから、LED照明装置2を点灯させる必要はない。
Therefore, the
次に、制御回路7は、カウント値TSを例えば1/16することで、照明時間の最小単位TUを演算すると(ステップS5)、カウンタnの値を「1」に初期設定する(ステップS6)。そして、LED照明装置2を点灯させる照明時間TLnを、n・TUとして設定すると(ステップS7)、CCDカメラ1にVD信号を出力すると共に、LED照明装置2を照明時間TLnだけ点灯させてQRコード5の読み取りを行う(ステップS8)。
Next, when the
続いて、制御回路7は、CCDカメラ1からのVI信号を受信した後に送信される画像データを取り込み、画像データのデコード処理を行なう(ステップS9)。そして、デコード処理中において、QRコード5に組み込まれているリードソロモン符号により1ビットの誤り訂正が発生した回数をメモリ19に書き込んで記憶させる(ステップS10)。そして、カウンタnの値が「16」に達していなければ(ステップS11,「NO」)、カウンタnをインクリメントして(ステップS12)ステップS7に戻る。
Subsequently, the
以上のようにして、ステップS7〜S12の処理を「n=16」となるまで繰り返す。即ち、図3(c)に示すように、上記ループを繰り返す毎に照明時間TLnは、最小単位TUずつ次第に長くなって行く。この照明時間TLnが変化することにより、QRコード5の読取り状態が変動する。そして、「n=16」になると(ステップS11,「YES」)、制御回路7は、16回行った読取りの内、誤り訂正回数が少なかった上位4つの照明時間を選択して(ステップS13)処理を終了する。
ここで選択した4つの照明時間は、以降に通常の読取り処理を行なう場合に使用される。そして、誤り訂正回数が最も少なかったものから優先順位(1〜4)を付しておき、以降の読取で最初に使用する照明時間には優先順位「1」のものを設定する。
As described above, the processes in steps S7 to S12 are repeated until “n = 16”. That is, as shown in FIG. 3C, each time the loop is repeated, the illumination time TLn gradually increases by the minimum unit TU. As the illumination time TLn changes, the reading state of the QR code 5 changes. When “n = 16” is reached (step S11, “YES”), the
The four illumination times selected here are used when a normal reading process is performed thereafter. Then, priorities (1 to 4) are assigned from the one with the smallest number of error corrections, and the first illumination time used in the subsequent reading is set to the priority “1”.
図2は、デコーダ3の制御回路7が、通常動作状態においてQRコード5の読み取りを行う場合の処理内容を示すフローチャートである。制御回路7は、ホストであるパソコン6より読み取り開始の制御信号が与えられるまで待機しており(ステップS21)、制御信号が与えられると(「YES」)、設定された優先順位が最高である照明時間(優先順位1)でQRコード5の読み取りを行う(ステップS22)。
FIG. 2 is a flowchart showing the processing contents when the
そして、読取ったデータをデコード処理した結果、読み取りが成功すれば(ステップS23,「YES」)処理を終了する。一方、読み取りが失敗した場合(「NO」)、制御回路7は、次順位の照明時間(優先順位2)によって読取り処理を行ない(ステップS24)、ステップS23に戻る。即ち、読み取りが成功するまで、
優先順位:1→2→3→4→1→2→・・・
を繰り返して読取り処理を実行する。
As a result of decoding the read data, if the reading is successful (step S23, “YES”), the processing is terminated. On the other hand, when the reading has failed (“NO”), the
Priority: 1 → 2 → 3 → 4 → 1 → 2 → ・ ・ ・
To repeat the reading process.
以上のように本実施例によれば、情報コード読取りシステムのデコーダ3は、生産ライン上に固定配置された状態でQRコード5の撮像を行うCCDカメラ1との間で送受信される制御信号に基づいて、CCDカメラ1に設定されているシャッタ時間TS検出し、そのシャッタ時間を上限として16段階の照明時間TLnを決定する。そして、各照明時間TLnでLED照明装置2に照明を行なわせた場合に読取られたQRコード5を夫々デコードし、各デコード結果について評価した読み取り状態が最も良好であった照明時間TLnを、以降の読取り処理において優先的に設定するようにした。
As described above, according to the present embodiment, the
従って、CCDカメラ1に設定されているシャッタ時間の範囲内で、読み取り状態が最も良好であった照明時間TLnで以降の読取り処理が試行されるので、システム構成並びに実際の環境条件に適した照明条件を設定することができる。そして、従来技術のように、反射光の光強度が所定の状態となる発光時間を設定するのではなく、デコード結果に基づいて評価した読み取り状態が最良となる照明時間TLnを設定するので、その時点における読取り環境条件により合致した最適な照明時間を設定することが可能となる。
Therefore, since the subsequent reading process is attempted within the illumination time TLn in which the reading state is the best within the range of the shutter time set in the
特に、回路基板4にレーザ光などを用いてQRコード5をダイレクトマーキングするような場合、マーキングの状態(浅い、深い等)が回路基板4のロット毎に異なることも想定されるが、そのような場合にも柔軟に対応して良好な読取り状態を設定することが可能である。
また、デコーダ3は、QRコード5のデコード時に発生する誤り訂正処理回数がより少ないものを読み取り状態が良好であると評価するので、評価を適切に行なうことができる。更に、デコーダ3は、CCDカメラ1に対してVD信号を送信した時点から、VI信号を受信するまでの時間をシャッタ時間TSとして検出するので、シャッタ時間を簡単且つ正確に検出することができる。
In particular, when the QR code 5 is directly marked on the circuit board 4 using a laser beam or the like, it is assumed that the marking state (shallow, deep, etc.) differs for each lot of the circuit board 4. In this case, it is possible to set a good reading state flexibly.
Further, since the
加えて、デコーダ3は、複数選択した照明時間候補の内、何れかの照明時間TLnを設定して行った読取りが失敗した場合は、優先順位がその次に高い照明時間を設定して読取りを再試行するようにした。即ち、QRコード5の読取り環境条件は変動し易いため、ある時点で読取り状態が最良になるとみなされた照明時間TLnが、それ以降も常に最良の読取り状態を提供するとの保証はない。例えば、照明時間が長ければ長いほど読み取り状態が良好になるとも限らず、照明が強すぎる場合はQRコード5の明暗パターン差が小さくなり過ぎて、正常に読取れなくなることも想定される。従って、照明時間を替えて読み取りを再試行すれば、ある時点における読み取りが失敗したとしても、その次以降の読み取りが正常に行われる可能性がある。
In addition, when the reading performed by setting any lighting time TLn among the plurality of selected lighting time candidates fails, the
(第2実施例)
図7は本発明の第2実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。図7は、第1実施例における図2相当図である。第2実施例では、ステップS23において「NO」と判断すると、制御回路7は、読み取りが成功した照明時間についての使用頻度数をインクリメントしてメモリ19に記憶させる(ステップS25)。そして、その時点で使用頻度数が最高となっている照明時間を、最高順位に設定すると(ステップS26)処理を終了する。従って、QRコード5の読み取りが行われる毎にステップS22において選択される照明時間は、ステップS26で最高順位に設定されたものとなる。
(Second embodiment)
FIG. 7 shows a second embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. FIG. 7 is a view corresponding to FIG. 2 in the first embodiment. In the second embodiment, if “NO” is determined in step S23, the
以上のように第2実施例によれば、デコーダ3は、優先的に設定した照明時間以外に読取り成功頻度が高いものが出現すると、その成功頻度が高い照明時間を優先的に設定するように切換えるようにした。即ち、QRコード5の読取り環境条件は変動し易いため、最良の読取り条件を与える照明時間はその時々によって変化する場合もあるので、最良の照明時間をより柔軟に設定して読み取りが正しく行なわれる可能性を向上させることができる。
As described above, according to the second embodiment, the
(第3実施例)
図8は本発明の第3実施例を示すものであり、以下、第1実施例と異なる部分についてのみ説明する。図2相当図である図8において、デコーダ3の制御回路7は、ステップS23において「NO」と判断すると、選択した照明時間候補の内ステップS24で最低順位(例えば「4」)を使用して読み取りを試行したか否かを判断する(ステップS27)。そして、「NO」と判断すればステップS24に移行する。
(Third embodiment)
FIG. 8 shows a third embodiment of the present invention, and only the parts different from the first embodiment will be described below. In FIG. 8 corresponding to FIG. 2, when the
一方、ステップS24で最低順位「4」を既に選択しておりステップS27で「YES」と判断すると、図1の処理において設定した16段階の照明時間の内、当初にステップS13で選択した上位4つ以外の照明時間の内、順位が最高のもの(ここでは「5」)を選択して読み取りを行なう(ステップS28)。それから、ステップS23に移行して、その読み取りの正否を判断する。
また、その場合も読み取りを失敗してステップS27,S28へと至った場合、ステップS28では、ステップS13で選択外となった照明時間の内、次順位の「6」を選択して読み取りを行なうようにする。以降、同様に処理を行なう。
On the other hand, if the lowest rank “4” has already been selected in step S24 and “YES” is determined in step S27, the top four initially selected in step S13 among the 16 levels of illumination time set in the process of FIG. Among the other illumination times, the one with the highest ranking (here, “5”) is selected and read (step S28). Then, the process proceeds to step S23 to determine whether the reading is correct.
Also in this case, if reading fails and the process reaches step S27, S28, in step S28, reading is performed by selecting “6” in the next order among the illumination times not selected in step S13. Like that. Thereafter, the same processing is performed.
以上のように第3実施例によれば、デコーダ3は、ステップS13において当初に選択した複数の照明時間候補の何れによっても読取りが失敗すると、ステップS13で選択外となった照明時間を設定して読取りを試行する。即ち、読取り環境条件の変動によっては、以前に読取り状態が必ずしも良くなかった照明時間が、現在は良好な読取り状態を与える条件になっていることも想定される。従って、斯様に構成すれば、読み取りが正しく行なわれる可能性を更に向上させることができる。
As described above, according to the third embodiment, when reading fails due to any of the plurality of illumination time candidates originally selected in step S13, the
本発明は上記し且つ図面に記載した実施例にのみ限定されるものではなく、以下のような変形又は拡張が可能である。
第1実施例において、優先順位を付して選択する照明時間の候補は4つに限ることなく、3以下でも5以上であっても良い。また、順位が最高のものを1つだけ候補として選択しても良い。
The present invention is not limited to the embodiments described above and shown in the drawings, and the following modifications or expansions are possible.
In the first embodiment, the number of illumination time candidates to be selected with priorities is not limited to four, and may be three or less or five or more. Further, only one with the highest ranking may be selected as a candidate.
照明時間の最小単位を決定する場合は、シャッタ時間を1/16するものに限らず、適宜必要な割合で決定すれば良い。
また、照明時間を変化させる段階は、必ずしもシャッタ時間を等分したものを最小単位として、その倍数で設定しなくても良い。シャッタ時間を上限とすれば、その範囲内でどのような時間差を設定しても良い。
When determining the minimum unit of the illumination time, it is not limited to 1/16 of the shutter time, and may be determined at a necessary ratio as appropriate.
Further, the stage of changing the illumination time does not necessarily have to be set as a multiple of the minimum unit of the shutter time equally divided. As long as the shutter time is the upper limit, any time difference may be set within the range.
第1実施例を、以下のように実施しても良い。例えば、生産ライン上を4つのタイプが異なる情報コードが流れる可能性がある場合には、夫々について読取り状態が最適となる照明時間を1つずつ選択しておく。第1実施例は、読み取りが成功するまで4種類の照明時間を自動的に切り替えて繰り返し実行するので、4つのタイプが異なる情報コードを混在している状態で読取りを行う場合でも、ユーザは、それらの違いを意識することなく夫々を最適な状態で読取ることができる。 The first embodiment may be implemented as follows. For example, when there is a possibility that four types of information codes may flow on the production line, the illumination time that optimizes the reading state is selected one by one. In the first embodiment, four types of illumination times are automatically switched and repeatedly executed until reading is successful. Therefore, even when reading is performed in a state where four types of information codes are mixed, Each can be read in an optimal state without being aware of the difference.
第2実施例と第3実施例とを組み合わせて実施しても良い。
読取り状態の評価は、誤り訂正回数の多少に基づくものに限らない。例えば、同一の照明時間による読み取りを複数回ずつ繰り返すようにして、読み取りの成功回数が多いものが良好である、と評価しても良い。
読み取り対象とするものは回路基板4にマーキングされているものに限らず、その他金属性の筐体や、梱包用の段ボール箱にマーキングされている情報コードでも良い。また、ダイレクトマーキングされているものに限ることなく、予めプリントされた情報コードのシールが貼付されているものであっても良い。
You may implement combining 2nd Example and 3rd Example.
The evaluation of the reading state is not limited to a method based on the number of error corrections. For example, it may be evaluated that reading with the same illumination time is repeated a plurality of times, and a reading with a large number of successful readings is good.
The information to be read is not limited to the one marked on the circuit board 4, but may be an information code marked on another metallic casing or packaging cardboard box. Moreover, it is not restricted to what is direct-marked, You may attach the sticker of the information code printed beforehand.
また、読み取り対象とする情報コードは、QRコード5に限ることなく、その他、マイクロQRコード(登録商標)、DataMatrix(登録商標)、PDF417(登録商標)などの2次元コード、UPC−A/E(登録商標),EAN−13/8(登録商標),CODE39(登録商標),CODABAR(登録商標),Interleaved 2 of 5(登録商標),CODE128(登録商標)等の1次元コードでも良い。
The information code to be read is not limited to the QR code 5, but other two-dimensional codes such as micro QR code (registered trademark), DataMatrix (registered trademark), PDF417 (registered trademark), UPC-A / E (Registered trademark), EAN-13 / 8 (registered trademark), CODE39 (registered trademark), CODABAR (registered trademark),
カメラ装置は、CCDカメラ1に限ることなく、その他、例えばCMOSイメージセンサを用いて構成されるものでも良い。
また、照明装置は、光源の種類を問わない。
The camera device is not limited to the
Moreover, the kind of light source does not ask | require an illuminating device.
図面中、1はCCDカメラ(カメラ装置)2はLED照明装置、3はデコーダ(情報読取装置)、5はQRコード(情報コード)、9は制御回路を示す。 In the drawings, 1 is a CCD camera (camera device) 2 is an LED illumination device, 3 is a decoder (information reading device), 5 is a QR code (information code), and 9 is a control circuit.
Claims (10)
このカメラ装置の撮像対象を照明する照明装置と、
前記カメラ装置並びに前記照明装置を制御すると共に、当該カメラ装置によって読取られた情報コードの画像データに基づいて情報のデコードを行う情報読取り装置とで構成される情報コード読取りシステムにおいて、
前記情報読取り装置は、前記カメラ装置との間で送受信される制御信号に基づいて当該カメラ装置に設定されているシャッタ時間を検出すると、前記シャッタ時間を上限として複数段階の照明時間を決定し、各照明時間で前記照明装置に照明を行なわせた場合に前記カメラ装置によって読取られた情報コードを夫々デコードし、各デコード結果について評価した読み取り状態が最も良好であった照明時間を、以降の読取り処理において優先的に設定するように構成されていると共に、前記カメラ装置に対して撮像開始信号を送信した時点から、当該カメラ装置が出力した画像データ出力開始信号を受信するまでの時間を、前記シャッタ時間として検出することを特徴とする情報コード読取りシステム。 A camera device that captures images in a fixed arrangement;
An illumination device for illuminating an imaging target of the camera device;
In an information code reading system configured with an information reading device that controls the camera device and the illumination device and decodes information based on image data of an information code read by the camera device,
The information reading device, when detecting a shutter time set in the camera device based on a control signal transmitted to and received from the camera device, determines a plurality of stages of illumination time with the shutter time as an upper limit, When the illumination device is illuminated at each illumination time, the information code read by the camera device is decoded, and the illumination time with the best reading state evaluated for each decoding result is read from then on. It is configured to preferentially set in the processing, and the time from when the imaging start signal is transmitted to the camera device until the reception of the image data output start signal output by the camera device is An information code reading system, wherein the information code is detected as a shutter time .
前記情報読取り装置は、デコード時に発生する誤り訂正処理の回数がより少ないものを読み取り状態が良好であると評価することを特徴とする請求項1記載の情報コード読取りシステム。 When the information code has an error correction function,
2. The information code reading system according to claim 1, wherein the information reading device evaluates a reading state having a smaller number of error correction processes that occur during decoding as a good reading state.
前記カメラ装置に対して撮像開始信号を送信した時点から、当該カメラ装置が出力した画像データ出力開始信号を受信するまでの時間を、当該カメラ装置に設定されているシャッタ時間として検出し、The time from when the imaging start signal is transmitted to the camera device until the reception of the image data output start signal output by the camera device is detected as the shutter time set for the camera device,
前記シャッタ時間を上限として複数段階の照明時間を決定し、A plurality of stages of illumination time is determined with the shutter time as an upper limit,
各照明時間で前記照明装置に照明を行なわせた場合に前記カメラ装置によって読取られた情報コードを夫々デコードし、When the illumination device is illuminated at each illumination time, the information code read by the camera device is decoded respectively.
各デコード結果について評価した読み取り状態が最も良好であった照明時間を、以降の読取り処理において優先的に設定することを特徴とする情報読取り装置の照明時間決定方法。An illumination time determination method for an information reading apparatus, wherein the illumination time in which the reading state evaluated for each decoding result is the best is preferentially set in a subsequent reading process.
デコード時に発生する誤り訂正処理の回数がより少ないものを読み取り状態が良好であると評価することを特徴とする請求項6記載の情報読取り装置の照明時間決定方法。 When the information code has an error correction function,
7. The method of determining an illumination time for an information reading apparatus according to claim 6, wherein a reading state having a smaller number of error correction processes during decoding is evaluated as having a good reading state .
それらの内何れかの照明時間を設定して行った読取りが失敗した場合は、優先順位がその次に高い照明時間を設定して読取りを再試行することを特徴とする請求項6又は7記載の情報読取り装置の照明時間決定方法。 Select multiple lighting time candidates to be set in the subsequent reading process,
8. If reading performed by setting any one of the illumination times fails, the reading is retried by setting the lighting time having the next highest priority. Method for determining the illumination time of the information reading apparatus.
前記シャッタ時間を上限とする複数段階の照明時間の内、前記選択外の照明時間を設定して読取りを試行することを特徴とする請求項8又は9記載の情報読取り装置の照明時間決定方法。 As a result of performing the subsequent reading process , if reading fails due to any of the selected lighting time candidates,
10. The illumination time determination method for an information reading apparatus according to claim 8, wherein reading is attempted by setting an illumination time outside the selection among a plurality of stages of illumination times with an upper limit of the shutter time .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004004092A JP4161907B2 (en) | 2004-01-09 | 2004-01-09 | Information code reading system and method for determining illumination time of information reading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004004092A JP4161907B2 (en) | 2004-01-09 | 2004-01-09 | Information code reading system and method for determining illumination time of information reading device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005196633A JP2005196633A (en) | 2005-07-21 |
JP4161907B2 true JP4161907B2 (en) | 2008-10-08 |
Family
ID=34818804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004004092A Expired - Fee Related JP4161907B2 (en) | 2004-01-09 | 2004-01-09 | Information code reading system and method for determining illumination time of information reading device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4161907B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5786784B2 (en) * | 2012-03-28 | 2015-09-30 | 株式会社デンソーウェーブ | Information code reader |
-
2004
- 2004-01-09 JP JP2004004092A patent/JP4161907B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005196633A (en) | 2005-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4058529B2 (en) | Optical information reader | |
EP2284766B1 (en) | Indicia reading terminal having multiple exposure periods | |
EP2182467B1 (en) | Method and apparatus for optically reading out information stored in a barcode | |
JP6893092B2 (en) | Optical information reader | |
JP4389812B2 (en) | Optical information reader | |
US20120111943A1 (en) | Using a user's application to configure user scanner | |
US20040004128A1 (en) | Optical reader system comprising digital conversion circuit | |
JPH117485A (en) | Method and device for reading code | |
JP2004206687A (en) | Optical code reading method and device | |
JP2008059194A (en) | Apparatus, system, method and program for setting optical code reader | |
JP2005202930A (en) | Optical information reading device | |
US20120168508A1 (en) | Indicia reading terminal having configurable operating characteristics | |
JP6434118B2 (en) | Optical information reading apparatus, optical information reading method and program | |
JP4325602B2 (en) | Optical information reader | |
US20110259963A1 (en) | Indicia reader with a speaker for audible error feedback | |
JP4161907B2 (en) | Information code reading system and method for determining illumination time of information reading device | |
JP2019071018A (en) | Optical information reader and optical information reading method | |
US9104935B1 (en) | Mark reader configured to prioritize images | |
KR100437220B1 (en) | Information processing system and peripheral apparatus | |
US11120238B2 (en) | Decoding color barcodes | |
JP5221590B2 (en) | Symbol code reader and its control program | |
KR100414559B1 (en) | Bar Code Reader | |
EP3425893A1 (en) | Methods for changing a configuration of a device for reading machine-readable code | |
JP2005234970A (en) | Information code reader | |
JP2006023912A (en) | Information code reader and information code reading method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060119 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080310 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080318 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080408 |
|
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: 20080701 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080714 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4161907 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 4 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 4 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130801 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130801 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |