JP2009123088A - Data code reader and its method - Google Patents
Data code reader and its method Download PDFInfo
- Publication number
- JP2009123088A JP2009123088A JP2007298298A JP2007298298A JP2009123088A JP 2009123088 A JP2009123088 A JP 2009123088A JP 2007298298 A JP2007298298 A JP 2007298298A JP 2007298298 A JP2007298298 A JP 2007298298A JP 2009123088 A JP2009123088 A JP 2009123088A
- Authority
- JP
- Japan
- Prior art keywords
- data
- decoding
- decoded
- code
- 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
Links
Images
Abstract
Description
本発明は、例えば2次元の撮像装置の前方で移動される商品等の物体に添付され、かつ複数のデータブロックから成る少なくともデータコードを読み取るデータコード読取装置及びその方法に関する。 The present invention relates to a data code reading apparatus and method for reading at least a data code consisting of a plurality of data blocks attached to an object such as a commodity moved in front of a two-dimensional imaging apparatus, for example.
2次元のバーコードやQRコード、記号等のデータコードの読取や認識等を行うデータコード認識装置がある。このデータコード認識装置は、例えば撮像装置によって2次元のバーコードやQRコード、記号等のデータコードを撮像し、この撮像装置から出力される多値の濃淡レベルを有する画像信号を画像処理する。この画像処理では、多値の濃淡レベルを有する画像信号を2値化する前処理を行い、この2値化された2値化画像データに基づいてバーコードのデコードやパターン認識等の各種処理を行う。 There are data code recognition devices that read and recognize data codes such as two-dimensional bar codes, QR codes, and symbols. This data code recognition device images a data code such as a two-dimensional barcode, QR code, symbol, etc., for example, by an imaging device, and performs image processing on an image signal having a multi-value gray level output from the imaging device. In this image processing, preprocessing for binarizing an image signal having a multilevel gray level is performed, and various processes such as barcode decoding and pattern recognition are performed based on the binarized binary image data. Do.
このようなデータコード認識装置では、2次元のバーコードやQRコード、記号等のデータコードを撮像装置により撮像する際、これらデータコードを精度高く認識するために照明が行われる。この照明を行う技術としては、例えば特許文献1がある。この特許文献1は、LED等の複数の照明光源から出力される光のうち拡散板の通過孔を通して直接光により基板マークを照明するとともに、拡散板から斜めに入射する拡散光により基板マークを照明することを開示し、又基板マークの反射特性に合わせて複数の照明光源を選択的に点灯することを開示する。
しかしながら、2次元のバーコードやQRコード、記号等のデータコードを照明した状態で撮像装置によって撮像する場合、QRコードを印字してある印字面が鏡面反射の特性を有すると、LED等の複数の照明光源から出力され、QRコードの印字面で反射して撮像装置に入射する光のうち反射光量の大きい部分が生じる。これにより、撮像装置の撮像によって取得される画像データには、例えば図9に示すように複数のLED等の照明光源に対応してQRコード1中に反射光量が大きくなる部分、いわゆる白とび部分2が複数生じることがある。このため、QRコード1の正常な画像データを取得することができず、QRコード1のデコードができない。又、QRコード1を照明したとしても例えば図10に示すように照明ムラが生じ、QRコード1の隅部の濃淡レベルが他の部分と比較して低く暗い画像部分3が生じることがある。この場合でも、QRコード1の正常な画像データを取得することができず、QRコード1のデコードができない。
However, when an image pickup apparatus captures an image with a data code such as a two-dimensional bar code, QR code, or symbol illuminated, if the print surface on which the QR code is printed has specular reflection characteristics, a plurality of LEDs, etc. The portion of the light that is output from the illumination light source, reflected by the QR code printing surface, and incident on the imaging device is large. Thus, for example, as shown in FIG. 9, the image data acquired by the imaging device includes a portion in which the amount of reflected light increases in the
本発明の目的は、データコードの画像データ中に白とび部分や暗い画像が生じたとしても正常にデータコードを読み取ることができるデータコード読取装置及びその方法を提供することにある。 An object of the present invention is to provide a data code reading apparatus and method that can normally read a data code even if an overexposed portion or a dark image occurs in image data of the data code.
本発明の主要な局面に係るデータコード読取装置は、移動する物体に添付され、かつ複数のデータブロックから成る少なくともデータコードを含む領域を少なくとも2回繰り返して撮像する撮像装置と、撮像装置の撮像により取得される少なくとも2つの画像データのそれぞれに対して複数のデータブロック毎にデコードを行うデコード部と、少なくとも2つの画像データの複数のデータブロック毎にそれぞれデコード部によるデコード結果の可・不可を判定するデコード判定部と、デコード判定部によりデコード可と判定した各データブロックのデコードデータを組み合わせて最終のデコード結果を取得するデコード組合せ部とを具備する。 A data code reading device according to a main aspect of the present invention includes an imaging device that is attached to a moving object and that images at least a region including at least a data code composed of a plurality of data blocks, and images the imaging device. A decoding unit that performs decoding for each of a plurality of data blocks with respect to each of at least two image data acquired by the above, and whether or not the decoding result by the decoding unit for each of a plurality of data blocks of at least two image data is enabled / disabled A decoding determining unit for determining, and a decoding combining unit for acquiring the final decoding result by combining the decoding data of each data block determined to be decodable by the decoding determining unit.
本発明の主要な他の局面に係るデータコード読取方法は、移動する物体に添付され、かつ複数のデータブロックから成る少なくともデータコードを含む領域を少なくとも2回繰り返して撮像し、この撮像により取得される少なくとも2つの画像データのそれぞれに対して複数のデータブロック毎にデコードを行い、少なくとも2つの画像データの複数のデータブロック毎にそれぞれデコード結果の可・不可を判定し、このデコード結果の判定によりデコード可と判定した各データブロックのデコードデータを組み合わせて最終のデコード結果を取得する。 According to another aspect of the present invention, there is provided a data code reading method, wherein a region attached to a moving object and including at least a data code composed of a plurality of data blocks is imaged at least twice and acquired by this imaging. Each of the at least two image data is decoded for each of a plurality of data blocks, and each of the plurality of data blocks of the at least two image data is determined as to whether or not the decoding result is possible. The decoding result of each data block determined to be decodable is combined to obtain the final decoding result.
本発明によれば、データコードの画像データ中に白とび部分や暗い画像が生じたとしても正常にデータコードを読み取ることができるデータコード読取装置及びその方法を提供できる。 According to the present invention, it is possible to provide a data code reading apparatus and method that can normally read a data code even if an overexposed portion or a dark image is generated in the image data of the data code.
以下、本発明の一実施の形態について図面を参照して説明する。
図1はデータコード読取装置の構成図を示す。このデータコード読取装置は、例えば電子キャッシュレジスタに用いられる。このデータコード読取装置は、制御部本体としてCPU(Central Processing Unit)10を搭載している。このCPU10には、ROM(Read Only Memory)11と、RAM(Random Access Memory)12と、通信インタフェース(通信I/F)13と、撮像装置14とが接続されると共に、CPU10からの指令を受ける2値化処理部15と、デコード部16と、デコード判定部17と、デコード組合せ部18と、点灯部19とを有する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 shows a configuration diagram of a data code reader. This data code reader is used for an electronic cash register, for example. This data code reader is equipped with a CPU (Central Processing Unit) 10 as a control unit main body. The
ROM12には、例えば電子キャッシュレジスタの業務を実行させるための業務プログラムやデータコード読取プログラムが予め格納されている。データコード読取プログラムは、撮像装置14によりデータコードとして例えば商品20に貼られたラベル上に印字されたQRコード1を含む領域を少なくとも2回繰り返して撮像させて少なくとも2つの多階調の画像データを取得させ、これら多階調の画像データのそれぞれに対してデコート゜部16により複数のデータブロック毎にデコードを行わさせ、これらデータブロック毎にそれぞれデコード結果の可・不可をデコード判定部17により判定させ、このデコード結果の判定によりデコード可と判定した各データブロックのデコードデータをデコード組合せ部18により組み合わせて最終のデコード結果を取得させる。
In the
RAM12は、各種データを一時記憶するためのエリアが形成され、例えば撮像装置14の撮像により取得された多階調の画像データを当該エリアに一時記憶したり、デコード部16によりデコードされたQRコード1に含む情報等を同エリアに一時記憶する。
通信I/F13には、図示しない伝送路を通して外部機器が接続されている。この通信I/F13は、伝送路を通して外部機器の間でデータ通信を行う。
撮像装置14は、商品20に貼られたラベル上のQRコード1を含む領域を撮像し、その多階調の画像信号を出力するもので、例えばCCD等により成るイメージセンサが用いられる。この撮像装置14は、所定周期毎に繰り返して撮像動作を行っている状態に、例えばオペレータの操作によって商品20が当該撮像装置14の撮像範囲内に1回横切って移動すると、この撮像装置14によるQRコード1に対する撮像動作は、少なくとも2回行われる。なお、撮像装置14の撮像範囲内に商品20が1回横切って移動中に行われる撮像動作の回数は、オペレータの操作によって移動する商品20の移動速度と撮像装置14による撮像動作の繰り返し周期とに基づいて決定され、例えば2回以上行われる場合もある。
The
An external device is connected to the communication I /
The
2値化処理部15は、撮像装置14から出力された多階調の画像信号に対してそれぞれしきい値を用いて2値化し、その2値化画像データを取得する。
デコード部16は、2値化処理部16により取得された2値化画像データからQRコード1中の複数のデータブロック毎にそれぞれデコードを行う。すなわち、QRコード1は、例えば図2の模式図に示すように複数のデータブロック、例えば各データブロックb1〜b7を有する。これにより、デコード部16は、QRコード1中の各データブロックb1〜b7毎にそれぞれデコードを行う。なお、QRコード1は、チェックを行うためのチェックサムを符号化した誤り訂正ブロックも有する。
The
The
デコード判定部17は、デコード部16によるQRコード1中の各データブロックb1〜b7毎の各デコード結果の可・不可を判定する。このうちデコード結果が可であれば、QRコード1中の各データブロックb1〜b7毎の各デコードが正常に行われたことを示す。デコード結果が不可であれば、QRコード1中の各データブロックb1〜b7毎の各デコードが正常に行われず、デコードデータが欠落していることを示す。
The
デコード組合せ部18は、デコード判定部17によりデコード可と判定した各データブロックb1〜b7の各デコードデータを組み合わせて最終のデコード結果を取得する。すなわち、QRコード1を含む多階調の画像データは、撮像装置14の撮像範囲内に商品20が1回横切って移動したときに少なくとも2枚取得される。そして、QRコード1中の各データブロックb1〜b7毎のデコードは、撮像装置14の撮像範囲内に商品20が1回横切って移動したときに取得される少なくとも2枚の多階調の画像データ毎に行われる。従って、デコード組合せ部18は、少なくとも2枚の多階調の画像データ毎に行われる各データブロックb1〜b7毎の各デコードの結果のうちデコード可と判定した各データブロックb1〜b7の各デコードデータを組み合わせて最終のデコード結果を取得する。
The decode combination unit 18 combines the decode data of the data blocks b 1 to b 7 determined to be decodable by the
具体的にデコード組合せ部18は、撮像装置14による1回目の撮像により取得された多諧調の画像データに対する各データブロックb1〜b7毎のデコードの結果、少なくとも1つのデータブロック、例えばデータブロックb2にデコード不可の判定結果であれば、当該デコード不可のデータブロックb2に欠落しているデコードデータを、撮像装置14による2回目以降の撮像により取得された多諧調の各画像データに対するデコード結果のうちデコード不可と判定されたデータブロックb2と同一でかつデコード可と判定されたデータブロックb2のデコードデータに書き換える。
Specifically, the decoding combination unit 18 obtains at least one data block, for example, a data block, as a result of decoding for each of the data blocks b 1 to b 7 for the multi-tone image data acquired by the first imaging by the
この場合、デコード組合せ部18は、撮像装置14による1回目の撮像により取得された多諧調の画像データに対する各データブロックb1〜b7毎のデコードの結果、少なくとも1つのデータブロックb2にデコード不可の判定結果であれば、当該デコード不可のデータブロックb2を含む各データブロックb1〜b7のデコードデータを例えばRAM12に保存する。そして、デコード組合せ部18は、撮像装置14による2回目の撮像以降に、RAM12に保存した各データブロックb1〜b7のデコードデータのうちデコード不可のデコードデータをデコード可と判定されたデータブロックb2のデコードデータに書き換える。
In this case, the decoding combination unit 18 decodes each data block b 1 to b 7 to at least one data block b 2 as a result of decoding the multi-tone image data acquired by the first imaging by the
デコード組合せ部18は、撮像装置14による1回目の撮像により取得された多諧調の画像データに対してデコード部16により各データブロックb1〜b7毎にデコードを行った結果、全てのデータブロックb1〜b7がデコード可の判定結果であれば、当該各データブロックb1〜b7のデコードデータを最終のデコード結果とする。
The decoding combination unit 18 performs decoding on each of the data blocks b 1 to b 7 by the
点灯部19は、複数の光源、例えばLED21−1〜21−nを点灯する。これらLED21−1〜21−nは、例えばオペレータの操作によって撮像装置14の撮像範囲内に移動させる商品20を照明する。
The
次に、上記の如く構成された装置によるデータコードの読み取り動作について図3に示すデータコード読取フローチャートに従って説明する。
撮像装置14は、所定周期毎に撮像動作を行い、その多階調の画像信号を出力する。CPU10は、ステップ#1において、所定周期毎に撮像装置14から出力される多階調の画像信号を入力し、この多階調の画像信号を2値化処理部15に送る。この2値化処理部15は、撮像装置14の撮像により取得された多階調の画像信号に対してそれぞれしきい値を用いて2値化し、その2値化画像データを取得する。なお、撮像装置14の撮像動作時、点灯部19は、例えばLED21−1〜21−nを点灯する。
Next, a data code reading operation by the apparatus configured as described above will be described with reference to a data code reading flowchart shown in FIG.
The
次に、CPU10は、ステップ#2において、2値化処理部15により取得された2値化画像データに基づいてQRコード1を検出する。この検出の結果、QRコード1が検出されなければ、CPU10は、ステップ#1に戻る。
Next, in
一方、撮像装置14が所定周期毎に繰り返して撮像動作を行っている状態に例えばオペレータの操作によって商品20が当該撮像装置14の撮像範囲内に1回横切って移動されると、撮像装置14は、商品20に貼られたラベル上のQRコード1を含む領域を撮像し、その多階調の画像信号を出力する。このとき、商品20が撮像装置14の撮像範囲内に1回横切って移動中に行われるQRコード1に対する撮像装置14の撮像動作回数は、オペレータの操作によって移動する商品20の移動速度と撮像装置14による撮像動作の繰り返し周期とに基づいて決定され、例えば2回撮像動作が行われる。このときも点灯部19は、例えばLED21−1〜21−nを点灯する。これにより、オペレータの操作によって移動される商品20及びこの商品29に貼られているラベル上のQRコード1は、LED21−1〜21−nから出力される照明光により照明される。
On the other hand, when the
しかるに、1回目の撮像動作時に、CPU10は、ステップ#1において、撮像装置14から出力される多階調の画像信号を入力し、この多階調の画像信号を2値化処理部15に送る。この2値化処理部15は、撮像装置14の撮像により取得された多階調の画像信号に対してそれぞれしきい値を用いて2値化し、その2値化画像データD1を取得する。図4は1回目の撮像動作により取得された2値化画像データD1の摸式図を示す。この2値化画像データD1は、QRコード1の像を示すと共に、実際には撮像されないがQRコード1と複数のLED21−1〜21−n例えば各LED21−1〜21−6との位置関係を分かり易く示すために各LED21−1〜21−6も示してある。
However, at the time of the first imaging operation, the
次に、CPU10は、ステップ#2において、2値化処理部15により取得された2値化画像データD1に基づいてQRコード1を検出する。次に、CPU10は、ステップ#4に移り、QRコード1中の各誤り訂正ブロック毎に記述されている各チェックを用いて誤りの検出、訂正の処理を行う。
Then,
次に、デコード部16は、ステップ#5において、2値化処理部16により取得された2値化画像データD1からQRコード1中の例えば図2に示す複数のデータブロックb1〜b7毎にそれぞれデコードを行う。図5は各データブロックb1〜b7毎のデコード結果を示す。このデコード結果は、例えば各データブロックb1、b3、b5〜b7についてデコード可(OK)であるが、各データブロックb2、b4についてデコード不可(NG)である。
Next, the
次に、デコード判定部17は、ステップ#6において、デコード部16による図5に示すようなQRコード1中の各データブロックb1〜b7毎の各デコード結果の可・不可を判定する。すなわち、デコード判定部17は、デコード結果が可であれば、QRコード1中の各データブロックb1、b3、b5〜b7毎の各デコードが正常に行われたと判定し、かつデコード結果が不可であれば、QRコード1中の各データブロックb2、b4毎の各デコードが正常に行われず、デコードデータが欠落していると判定する。しかるに、デコード判定部17は、全てのデータブロックb1〜b7の判定結果がデコード可でないので、この旨をCPU10に送る。このCPU10は、全てのデータブロックb1〜b7の判定結果がデコード可でない旨を受けると、ステップ#7に移り、図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果を例えばRAM12に保存する。
次に、CPU10は、ステップ#8において、RAM12に前回のデコード結果の保存があるか否かを判断する。この判断の結果、RAM12に前回のデコード結果の保存が無いので、CPU10は、再び、ステップ#1に戻る。
Next, in
Next, in
次に、2回目の撮像動作時に、CPU10は、ステップ#1において、撮像装置14から出力された多階調の画像信号を2値化処理部15に送る。この2値化処理部15は、上記同様に、多階調の画像信号に対してそれぞれしきい値を用いて2値化し、例えば図6に示すような2値化画像データD2を取得する。この2値化画像データD2上でのQRコード1の位置は、2値化画像データD1上のQRコード1の位置よりも左側に移動している。次に、CPU10は、ステップ#2において、2値化画像データD2に基づいてQRコード1を検出し、ステップ#4において、QRコード1中の各誤り訂正ブロック毎に記述されている各チェックを用いて誤りの検出、訂正の処理を行う。
Next, during the second imaging operation, the
次に、デコード部16は、ステップ#5において、2値化画像データD2からQRコード1中の各データブロックb1〜b7毎にそれぞれデコードを行う。図7は各データブロックb1〜b7毎のデコード結果を示し、例えば各データブロックb1、b2、b4〜b7についてデコード可(OK)であるが、各データブロックb3についてデコード不可(NG)である。
Next, in
次に、デコード判定部17は、ステップ#6において、図7に示すようなQRコード1中の各データブロックb1〜b7毎の各デコード結果の可・不可を判定し、QRコード1中の各データブロックb1、b2、b4〜b7毎の各デコードが正常に行われたと判定し、かつQRコード1中の各データブロックb3のデコードが正常に行われず、デコードデータが欠落していると判定する。しかるに、デコード判定部17は、全てのデータブロックb1〜b7の判定結果がデコード可でないので、この旨をCPU10に送る。これにより、CPU10は、ステップ#7において、図7に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果を例えばRAM12に保存する。
Next, the
なお、1回目の撮像動作時に取得された図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果と2回目の撮像動作時に取得された図7に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果とが相違するのは、例えばオペレータの操作によって商品20が撮像装置14の撮像範囲内に1回横切って移動されることにより図4及び図6に示すようにQRコード1と各LED21−1〜21−6との位置関係が変化し、この位置関係の変化によってQRコード1に対する照明位置及びその照明光量が変化することによる。これによって、例えば上記図9に示すようにQRコード1中に反射光量が大きくなる部分、いわゆる白とび部分2が複数生じたり、又、例えば上記図10に示すように照明ムラが生じ、QRコード1の隅部の濃淡レベルが他の部分と比較して低く暗い画像部分3が生じることがある。
Note that each decoding result for each of the data blocks b 1 to b 7 in the
次に、CPU10は、ステップ#8において、RAM12に前回のデコード結果の保存があるか否かを判断し、この判断の結果、RAM12に前回のデコード結果である図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果の保存があるので、デコード組合せ部18に対してデコード結果を組み合せる指令を発する。
Next, in
このデコード組合せ部18は、ステップ#9において、RAM12に保存されている1回目の撮像動作時の図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果と、図7に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果とを読み出す。
次に、デコード組合せ部18は、例えば図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果のうちデコード不可となって欠落している各データブロックb2、b4のデコードデータを図7に示すQRコード1中の各データブロックb2、b4の各デコード結果から読み取る。
次に、デコード組合せ部18は、それぞれ読み取った図7に示すQRコード1中の各データブロックb2、b4の各デコードデータを図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果のうちデコード不可となって欠落している各データブロックb2、b4に書き換える。この結果、デコード組合せ部18は、図8に示すようなQRコード1中の各データブロックb1〜b7に対する最終のデコード結果を取得する。この最終のデコード結果は、QRコード1中の全てのデータブロックb1〜b7のデコード結果がデコード可になっている。
In
Next, for example, the decoding combination unit 18 makes each data block b 2 , b that is missing and becomes undecoded among the decoding results for each data block b 1 to b 7 in the
Next, the decode combination unit 18 reads the decoded data of the data blocks b 2 and b 4 in the
なお、デコード組合せ部18は、例えば図7に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果のうちデコード不可となって欠落しているデータブロックb3のデコードデータを図5に示すQRコード1中の各データブロックb3のデコード結果から読み取り、この読み取った図5に示すQRコード1中のデータブロックb3のデコードデータを図7に示すQRコード1中のデータブロックb3に書き換えてもよい。
For example, the decoding combination unit 18 decodes the decoded data of the data block b 3 which is missing and becomes undecoded among the decoding results for each of the data blocks b 1 to b 7 in the
次に、デコード判定部17は、再び、ステップ#6において、図8に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果の可・不可を判定し、QRコード1中の全てのデータブロックb1、b3、b5〜b7毎の各デコードが正常に行われたと判定する。
しかるに、CPU10は、ステップ#10において、図8に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果を例えば通信I/F13を通して例えばPOSシステム等の外部機器に送る。そして、CPU10は、ステップ#11において、RAM12に保存されている図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果と、図7に示すQRコード1中の各データブロックb2、b4の各デコード結果とをクリアすると共に、図8に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果もクリアする。
Next, in
However, in
なお、1回目の撮像動作時に、デコード判定部17は、ステップ#6において、図5に示すようなQRコード1中の各データブロックb1〜b7毎の各デコード結果の可・不可を判定するが、この判定の結果、全てのデータブロックb1〜b7がデコード可の判定結果であれば、デコード組合せ部18は、当該判定結果の各データブロックb1〜b7のデコードデータを最終のデコード結果とする。
At the time of the first imaging operation, the
このように上記一実施の形態によれば、例えば1回目の撮像動作時の例えば図5に示すQRコード1中の各データブロックb1〜b7毎の各デコード結果のうちデコード不可となって欠落している各データブロックb2、b4のデコードデータを、例えば2回目の撮像動作時の図7に示すQRコード1中の各データブロックb2、b4の各デコード結果から読み取り、この読み取った各データブロックb2、b4の各デコードデータを図5に示すQRコード1中の各デコード結果のうちデコード不可となって欠落している各データブロックb2、b4に書き換える。これにより、図8に示すような全てのデータブロックb1〜b7のデコード結果がデコード可である最終のデコード結果を取得できる。
As described above, according to the above-described embodiment, for example, decoding is impossible among the decoding results for each of the data blocks b 1 to b 7 in the
従って、例えばオペレータの操作によって商品20が撮像装置14の撮像範囲内に1回横切って移動されることにより図4及び図6に示すようにQRコード1と各LED21−1〜21−6との位置関係の変化によってQRコード1に対する照明位置及びその照明光量が変化し、例えば上記図9に示すようにQRコード1中に反射光量が大きくなる部分、いわゆる白とび部分2が複数生じたり、又、例えば上記図10に示すように照明ムラが生じ、QRコード1の隅部の濃淡レベルが他の部分と比較して低く暗い画像部分3が生じたとしても、デコード不可となって欠落しているデータブロックのデコードデータをデコード可のデコードデータに書き換えることができる。この結果、例えばオペレータの操作によって商品20が撮像装置14の撮像範囲内に1回横切って移動するだけでも、全てのデータブロックb1〜b7のデコード結果がデコード可である最終のデコード結果を取得できる。これにより、QRコード1のデコードの成功率を向上できる。
Therefore, for example, when the
上記一実施の形態では、例えば2回の撮像動作によってそれぞれ取得されたQRコード1中の各データブロックb1〜b7毎の各デコード結果からデコード可のデコード結果を組み合わせて全てのデータブロックb1〜b7のデコード結果がデコード可である最終のデコード結果を取得しているが、これに限らず、商品20が撮像装置14の撮像範囲内に1回横切って移動するときに例えば3回以上の撮像動作が行われれば、これら3回以上の撮像動作によってそれぞれ取得されたQRコード1中の各データブロックb1〜b7毎の各デコード結果からデコード可のデコード結果を組み合わせて全てのデータブロックb1〜b7のデコード結果がデコード可である最終のデコード結果を取得してよい。
In the above embodiment, for example, all the data blocks b are obtained by combining the decode results that can be decoded from the decode results for each of the data blocks b 1 to b 7 in the
なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。
例えば、上記一実施の形態では、データコードとしてQRコード1の読み取りに適用した場合について説明したが、これに限らず、2次元のバーコードや記号等のデータコードを読み取る場合にも適用可能である。
Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.
For example, in the above-described embodiment, the case where the data code is applied to the reading of the
1:QRコード、10:CPU、11:ROM、12:RAM、13:通信インタフェース(通信I/F)、14:撮像装置、15:2値化処理部、16:デコード部、17:デコード判定部、18:デコード組合せ部、19:点灯部、20:商品、21−1〜21−n:LED。 1: QR code, 10: CPU, 11: ROM, 12: RAM, 13: communication interface (communication I / F), 14: imaging device, 15: binarization processing unit, 16: decoding unit, 17: decoding determination Part, 18: decoding combination part, 19: lighting part, 20: product, 21-1 to 21-n: LED.
Claims (9)
前記撮像装置による繰り返しの撮像により取得される少なくとも2つの画像データのそれぞれに対して前記複数のデータブロック毎にデコードを行うデコード部と、
前記少なくとも2つの画像データの前記複数のデータブロック毎にそれぞれ前記デコード部によるデコード結果の可・不可を判定するデコード判定部と、
前記デコード判定部により前記デコード可と判定した前記各データブロックのデコードデータを組み合わせて最終のデコード結果を取得するデコード組合せ部と、
を具備することを特徴とするデータコード読取装置。 An imaging device that repeatedly attaches an image to an object that is attached to a moving object and includes at least a data code including a plurality of data blocks;
A decoding unit that decodes each of the plurality of data blocks with respect to each of at least two image data acquired by repeated imaging by the imaging device;
A decoding determination unit that determines whether the decoding result by the decoding unit is possible or not for each of the plurality of data blocks of the at least two image data;
A decoding combination unit that obtains a final decoding result by combining the decoding data of each of the data blocks determined to be decodable by the decoding determination unit;
A data code reading apparatus comprising:
前記デコード判定部は、前記デコード部による前記デコード結果の可・不可を判定し、
前記デコード組合せ部は、前記デコード判定部により前記デコード可と判定した前記各データブロックのデコードデータを組み合わせて最終のデコード結果を取得する、
ことを特徴とする請求項1記載のデータコード読取装置。 The decoding unit performs decoding for each of the plurality of data blocks with respect to each of the at least two image data acquired when the object moves once across the imaging range of the imaging device,
The decoding determination unit determines whether the decoding result by the decoding unit is acceptable;
The decoding combination unit obtains a final decoding result by combining the decoding data of the data blocks determined to be decodable by the decoding determination unit,
The data code reader according to claim 1.
前記繰り返しの撮像により取得される少なくとも2つの画像データのそれぞれに対して前記複数のデータブロック毎にデコードを行い、
前記少なくとも2つの画像データの前記複数のデータブロック毎にそれぞれ前記デコード結果の可・不可を判定し、
前記デコード結果の判定により前記デコード可と判定した前記各データブロックのデコードデータを組み合わせて最終のデコード結果を取得する、
ことを特徴とするデータコード読取方法。 Repetitively image a region attached to a moving object and including at least a data code composed of a plurality of data blocks,
Perform decoding for each of the plurality of data blocks for each of at least two image data acquired by repeated imaging,
Determining whether the decoding result is possible or not for each of the plurality of data blocks of the at least two image data;
The final decoding result is obtained by combining the decoding data of each data block determined to be decodable by the determination of the decoding result,
A data code reading method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007298298A JP4815423B2 (en) | 2007-11-16 | 2007-11-16 | Data code reading apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007298298A JP4815423B2 (en) | 2007-11-16 | 2007-11-16 | Data code reading apparatus and method |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011183983A Division JP5232904B2 (en) | 2011-08-25 | 2011-08-25 | Data code reading apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009123088A true JP2009123088A (en) | 2009-06-04 |
JP4815423B2 JP4815423B2 (en) | 2011-11-16 |
Family
ID=40815149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007298298A Expired - Fee Related JP4815423B2 (en) | 2007-11-16 | 2007-11-16 | Data code reading apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4815423B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101986709A (en) * | 2010-11-08 | 2011-03-16 | 福州瑞芯微电子有限公司 | Video decoding method for high-efficiency fetching of matching block and circuit |
JP2011233099A (en) * | 2010-04-30 | 2011-11-17 | Optoelectronics Co Ltd | Optical information reader and optical information reading method |
CN113296719A (en) * | 2020-02-21 | 2021-08-24 | 东芝泰格有限公司 | Label issuing device, label issuing system, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10187864A (en) * | 1996-12-20 | 1998-07-21 | Matsushita Electric Ind Co Ltd | Optical information reader and image sensor |
JPH11120284A (en) * | 1997-10-15 | 1999-04-30 | Denso Corp | Optical information reader and recording medium |
JP2000148922A (en) * | 1998-09-03 | 2000-05-30 | Denso Corp | Two-dimensional code, method for reading two- dimensional code, method for generating two-dimensional code and recording medium |
JP2007041691A (en) * | 2005-08-01 | 2007-02-15 | Fuji Xerox Co Ltd | Code pattern image generating device and method, code pattern image reading device and method, and code pattern image medium |
JP2007087005A (en) * | 2005-09-21 | 2007-04-05 | Denso Wave Inc | Optical information reader |
-
2007
- 2007-11-16 JP JP2007298298A patent/JP4815423B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10187864A (en) * | 1996-12-20 | 1998-07-21 | Matsushita Electric Ind Co Ltd | Optical information reader and image sensor |
JPH11120284A (en) * | 1997-10-15 | 1999-04-30 | Denso Corp | Optical information reader and recording medium |
JP2000148922A (en) * | 1998-09-03 | 2000-05-30 | Denso Corp | Two-dimensional code, method for reading two- dimensional code, method for generating two-dimensional code and recording medium |
JP2007041691A (en) * | 2005-08-01 | 2007-02-15 | Fuji Xerox Co Ltd | Code pattern image generating device and method, code pattern image reading device and method, and code pattern image medium |
JP2007087005A (en) * | 2005-09-21 | 2007-04-05 | Denso Wave Inc | Optical information reader |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011233099A (en) * | 2010-04-30 | 2011-11-17 | Optoelectronics Co Ltd | Optical information reader and optical information reading method |
CN101986709A (en) * | 2010-11-08 | 2011-03-16 | 福州瑞芯微电子有限公司 | Video decoding method for high-efficiency fetching of matching block and circuit |
CN101986709B (en) * | 2010-11-08 | 2013-04-10 | 福州瑞芯微电子有限公司 | Video decoding method for high-efficiency fetching of matching block and circuit |
CN113296719A (en) * | 2020-02-21 | 2021-08-24 | 东芝泰格有限公司 | Label issuing device, label issuing system, and storage medium |
CN113296719B (en) * | 2020-02-21 | 2024-05-14 | 东芝泰格有限公司 | Label issuing device, label issuing system, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP4815423B2 (en) | 2011-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4058529B2 (en) | Optical information reader | |
AU2018334449B2 (en) | Methods and system for reading barcodes captured on multiple images | |
JP4815423B2 (en) | Data code reading apparatus and method | |
JP5673257B2 (en) | Code reading apparatus, code reading method and code reading program | |
US20060177093A1 (en) | Sheet identifying device and method | |
JP5232904B2 (en) | Data code reading apparatus and method | |
US10460142B2 (en) | Barcode identification method for improving decoding reliability by correcting image distortion | |
US9607234B2 (en) | Method and apparatus for processing images, and storage medium storing the program | |
JP4749382B2 (en) | Two-dimensional code reading apparatus and method | |
JP5264956B2 (en) | Two-dimensional code reading apparatus and method | |
JP5427828B2 (en) | Two-dimensional code reading apparatus and method | |
JP4728297B2 (en) | Two-dimensional code reading apparatus and method | |
JP4622992B2 (en) | Optical information reader | |
WO2014191028A1 (en) | Bar code reading device and detection method | |
JP4100273B2 (en) | Two-dimensional code reading method and two-dimensional code reading apparatus | |
JP2008305058A (en) | Code reading device and method | |
JP4905767B2 (en) | Two-dimensional code detection system and two-dimensional code detection program | |
JP4729363B2 (en) | Photo side detection device, ID card creation device, photo side detection method, and ID card creation method | |
JP2006134160A (en) | Optical information reading device | |
JP3891072B2 (en) | Bar code reading method and bar code reading apparatus | |
JP2005165949A (en) | Bar code reading method and bar code reading device | |
JP5660465B2 (en) | Optical information reader | |
JP2010026736A (en) | Code detecting apparatus and code detecting method | |
JP2003273507A (en) | Board mounting method for electronic component | |
JP2006023912A (en) | Information code reader and information code reading method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101019 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101102 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110315 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110513 |
|
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: 20110809 |
|
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: 20110829 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4815423 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140902 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |