JP4470860B2 - Information code reader - Google Patents
Information code reader Download PDFInfo
- Publication number
- JP4470860B2 JP4470860B2 JP2005324831A JP2005324831A JP4470860B2 JP 4470860 B2 JP4470860 B2 JP 4470860B2 JP 2005324831 A JP2005324831 A JP 2005324831A JP 2005324831 A JP2005324831 A JP 2005324831A JP 4470860 B2 JP4470860 B2 JP 4470860B2
- Authority
- JP
- Japan
- Prior art keywords
- information code
- image
- decoding
- code
- resolution
- 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
Description
本発明は、バーコード等の一次元情報コード、QRコード(登録商標)等の二次元情報コードを読み取る情報コード読取装置に関するものである。 The present invention relates to an information code reader for reading a one-dimensional information code such as a barcode and a two-dimensional information code such as a QR code (registered trademark).
情報コード読取装置では、バーコード等の一次元情報コード、QRコード等の二次元情報コードの画像を撮像素子で取得し、デコードを行って情報を読み取っている。近年、イメージセンサ等の撮像素子の画素数を増大させ画像の解像度を高めることで、読み取り精度を向上させてきたが、反面、デコードを行う情報量が増えて、デコード処理時間が長くなるという問題が生じてきた。さらに、画素数の大きな画像をメモリに取り込むため、取り込み時間も飛躍的に長くなっている。 In an information code reading device, an image of a one-dimensional information code such as a bar code or a two-dimensional information code such as a QR code is acquired by an image sensor, and the information is decoded and read. In recent years, the accuracy of reading has been improved by increasing the number of pixels of an image sensor such as an image sensor and increasing the resolution of the image, but on the other hand, the amount of information to be decoded has increased and the decoding processing time has become longer. Has arisen. Furthermore, since an image with a large number of pixels is captured in the memory, the capture time is also greatly increased.
係る課題に対応するため、特許文献1に、二次元コードの画像を高解像度で撮像してメモリに記憶し、この画像を縮小し、縮小した画像から二次元コードを切り出す二次元コード読み取り装置が提案されている。
しかしながら、特許文献1の二次元コード読み取り装置では、高解像度で撮像してメモリに記憶しているため、撮像に時間が掛かるという課題がある。即ち、二次元コードを構成するセルの大きさ様々であり、ファインピッチのセルを用いている二次元コードに対しては、高解像度で撮像しないと読み取りれないことがあるが、通常の大きさのセルより成る二次元コードに対しては、不必要に高い解像度で撮像することになってしまい、撮像・デコードに時間が掛かり、読み取り時間が長くなる。 However, since the two-dimensional code reader of Patent Document 1 captures images with high resolution and stores them in a memory, there is a problem that it takes time to capture images. In other words, the size of the cells that make up a two-dimensional code varies, and a two-dimensional code that uses fine-pitch cells may not be read unless imaged at a high resolution. For a two-dimensional code consisting of the above cells, imaging is performed at an unnecessarily high resolution, which takes time for imaging and decoding, and increases the reading time.
本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、短時間で確実に情報コードの読み取りができる情報コード読取装置を提供することにある。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide an information code reader capable of reading an information code reliably in a short time.
上記目的を達成するため、請求項1の発明は、情報コードを読み取る情報コード読取装置10であって:
実質的に同じ撮像領域において、低い解像度にて情報コードの画像を取得する低解像度画像取得手段(S12)と、低解像度画像取得手段よりも高い解像度にて該情報コードの画像を取得する高解像度画像取得手段(S30)と;
前記低い解像度の画像から情報コードの読み取りが可能か否かを判断する判断手段(S18)と;
前記判断手段により読み取り可能と判断された際に(S18:Yes)、当該低い解像度の情報コードの画像からデコードを行い、不可能と判断された際に(S18:No)、前記高い解像度の情報コードの画像からデコードを行うデコード手段(S30、S32)とを備え、
前記低い解像度の情報コードの画像からデコードを行い、デコードを失敗した場合に(S22:Yes)、デコードを失敗した領域ERを特定し(S24)、
前記低い解像度の画像で既に完了しているデコードを用いると共に、高い解像度の画像から前記デコードを失敗した領域ERのデコードを行い、前記低い解像度の画像から行ったデコードの失敗を補完する(S28)ことを技術的特徴とする。
In order to achieve the above object, the invention of claim 1 is an
A low-resolution image acquisition unit (S12) that acquires an image of an information code at a low resolution in a substantially same imaging region, and a high resolution that acquires an image of the information code at a higher resolution than the low-resolution image acquisition unit Image acquisition means (S30);
Determining means (S18) for determining whether or not the information code can be read from the low resolution image;
When it is determined by the determination means that it can be read (S18: Yes), the information of the low resolution information code is decoded, and when it is determined that it is not possible (S18: No), the high resolution information. Decoding means (S30, S32) for decoding from a code image ;
When decoding is performed from the low-resolution information code image and decoding fails (S22: Yes), the region ER where decoding has failed is identified (S24),
The decoding that has already been completed with the low resolution image is used, and the region ER where the decoding has failed is decoded from the high resolution image to complement the decoding failure performed from the low resolution image (S28). This is a technical feature.
請求項1では、低い解像度にて情報コードの画像を取得し(S12)、該低い解像度の画像から情報コードの読み取りが可能か否かを判断し(S18)、読み取り可能と判断した際に(S18:Yes)、当該低い解像度の情報コードの画像からデコードを行う(S20)。低い解像度の画像でデコードするため、高い解像度の画像を取得しデコードするのに比べて、短時間で情報コードの読み取りができる。一方、低い解像度の情報コードの画像からのデコードが不可能と判断した際に(S18:No)、高い解像度の情報コードの画像からデコードを行う(S32)。このため、確実に情報コードを読み取ることができる。特に、低い解像度の画像で実際にデコードを行い、デコードが失敗した際に、高い解像度の画像でデコードするのと比べて、予め低い解像度の画像でのデコードが可能か否かを判断するため、情報コードの読み取り時間を短縮可能である。さらに、低い解像度の情報コードの画像でデコードを失敗した場合に(S22:Yes)、デコードを失敗した領域ERを特定する(S24)。そして、低い解像度の画像で既に完了しているデコードを用いると共に、高い解像度の画像からのデコードを失敗した領域ERで行い、低い解像度の画像から行ったデコードの失敗を補完する(S28)。このため、例え、低い解像度の情報コードの画像からのデコードに失敗して、高い解像度の情報コードの画像からデコードを行う際にも、低い解像度の画像で既に完了しているデコードを用い、デコードに失敗した最小限の領域ERのみをデコードするため、デコードに時間が掛からず、短時間で情報コードの読み取りができる。 In claim 1, an information code image is acquired at a low resolution (S12), and it is determined whether or not the information code can be read from the low resolution image (S18). S18: Yes), decoding is performed from the low resolution information code image (S20). Since decoding is performed with an image having a low resolution, an information code can be read in a shorter time than when a high resolution image is acquired and decoded. On the other hand, when it is determined that decoding from a low-resolution information code image is impossible (S18: No), decoding is performed from a high-resolution information code image (S32). For this reason, an information code can be read reliably. In particular, in order to determine whether or not decoding with a low resolution image is possible in advance compared to decoding with a high resolution image when decoding actually fails with a low resolution image, The reading time of the information code can be shortened. Furthermore, when decoding fails with an image of a low resolution information code (S22: Yes), the region ER where decoding has failed is identified (S24). Then, the decoding that has already been completed for the low resolution image is used, and the decoding from the high resolution image is performed in the area ER, and the decoding failure performed from the low resolution image is complemented (S28). For this reason, even when decoding from an image with a low resolution information code fails and decoding from an image with a high resolution information code is performed, the decoding that has already been completed with the low resolution image is used. Since only the minimum area ER that failed to be decoded is decoded, it does not take time for decoding, and the information code can be read in a short time.
請求項2では、低い解像度の画像から情報コードの存在している領域E1を検出する(S14)。そして、高い解像度の情報コードの画像からデコードを行う際に、検出された情報コードの存在している領域E2をデコードする(S32)。このため、例え、低い解像度の情報コードの画像からのデコードが不可能で、高い解像度の情報コードの画像からデコードを行う際にも、情報コードの存在している最小限の領域E2のみをデコードするため、デコードに時間が掛からず、短時間で情報コードの読み取りができる。
In
請求項3では、低い解像度の画像から情報コードの読み取りが可能か否かを、低い解像度の画像中で情報コードを構成する明暗Cの最小単位の少なくとも一方が、予め設定された画素数以上かにより判断する(S18)。このため、低い解像度の画像でデコードを試みることなく、情報コードの読み取りが可能か否かを判断できる。これにより、低い解像度の画像で実際にデコードを行い、デコードが失敗した際に、高い解像度の画像でデコードするのと比べて、情報コードの読み取り時間を短縮可能である。 According to the third aspect of the present invention, whether or not the information code can be read from the low resolution image is determined by checking whether at least one of the minimum units of the light and dark C constituting the information code in the low resolution image is equal to or more than a preset number of pixels. (S18). For this reason, it is possible to determine whether or not the information code can be read without trying to decode the image with a low resolution. As a result, it is possible to shorten the information code reading time compared to decoding with a high resolution image when decoding is actually performed with a low resolution image and decoding fails.
請求項5では、低い解像度の画像では情報コードの読み取り不可能と判断された際に(S18:No)、高い解像度にて該情報コードの画像を取得する(S30)。即ち、低い解像度にて情報コードの画像を取得し、該低い解像度の画像から情報コードの読み取りが可能と判断した際に、当該低い解像度の情報コードの画像からデコードを行い、高い解像度の画像を取得しないため、短時間で情報コードの読み取りができる。 According to the fifth aspect, when it is determined that the information code cannot be read in the low resolution image (S18: No), the information code image is acquired at the high resolution (S30). That is, when an information code image is acquired at a low resolution and it is determined that the information code can be read from the low resolution image, the information code image is decoded from the low resolution image, and a high resolution image is obtained. Since it is not acquired, the information code can be read in a short time.
請求項6では、情報コードが一次元コードか二次元コードかを識別し(S29)、一次元コードと識別された際に(S29:Yes)、水平方向のみに高い解像度にて該情報コードの画像を取得し(S31)、二次元コードと識別された際にのみ(S29:No)、水平・垂直方向の高い解像度にて該情報コードの画像を取得する(S30)。即ち、垂直方向への高解像度が必要とされない一次元コードに対しては、水平方向のみに高い解像度にて画像を取得するため、短時間で一次元コードの読み取りができる。 In claim 6, whether the information code is a one-dimensional code or a two-dimensional code is identified (S 29), and when the information code is identified as a one-dimensional code (S 29: Yes), the information code is displayed with high resolution only in the horizontal direction. An image is acquired (S31), and only when it is identified as a two-dimensional code (S29: No), an image of the information code is acquired with high resolution in the horizontal and vertical directions (S30). That is, for a one-dimensional code that does not require high resolution in the vertical direction, an image is acquired with a high resolution only in the horizontal direction, so that the one-dimensional code can be read in a short time.
[第1実施形態]
以下、本発明の情報コード読取装置の第1実施形態について図を参照して説明する。まず、本実施形態に係る情報コード読取装置10の構成概要を図1、図2に基づいて説明する。
図1に示すように、情報コード読取装置10は、主に、縦長のほぼ矩形箱状なすハウジング11と、このハウジング11内に収容される回路部20と、同じくこのハウジング11内に収容されて回路部20に駆動電力を供給する電池49と、により構成されている。
[First embodiment]
Hereinafter, a first embodiment of an information code reader according to the present invention will be described with reference to the drawings. First, a configuration outline of the information
As shown in FIG. 1, the
ハウジング11は、例えば、ABS樹脂等の合成樹脂からなる成形部品で、その一端側に、ハウジング11の裏面方向に前傾するように「首曲がり形状」をなす読取口11aを備えている。この読取口11aは、後述する回路部20の受光センサ23に入射する入射光を導入可能な開口部である。一方、このハウジング11の他端側には、電池49を収容可能な図略の電池ボックスが形成されている。また、ハウジング11の表面側には液晶表示器46を取付可能な開口部も形成されており、情報コード読取装置10の使用者が液晶表示器46に表示する表示内容を視覚的に把握可能に構成している。
The
回路部20は、ハウジング11の内部に収容されているプリント配線板15、16に実装される各種の電子部品18等によって構成されている。即ち、回路部20は、主に、照明光源21、受光センサ23、結像レンズ27等の光学系と、メモリ35、制御回路40、操作スイッチ42、液晶表示器46等のマイクロコンピュータ(以下「マイコン」という)系と、電源スイッチ41、電池49等の電源系と、から構成されている。そして、これらはプリント配線板15、16に実装されたり、あるいはハウジング11内に内装されている。
The
ここで、回路部20の構成について図2を参照して後述する。図2に示すように、回路部20を構成する光学系は、照明光源21、受光センサ23、マーカ光源25、結像レンズ27等から構成されている。照明光源21は、図1には記載されていないが、照明光発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられる拡散レンズ、集光レンズ等とから構成されている。本実施形態では受光センサ23を挟んだ両側に照明光源21が設けられており、ハウジング11の読取口11aを介して読取対象物Rに向けて照明光Lfを照射可能に構成されている。
Here, the configuration of the
なお、本実施形態では、赤色のLEDを用いているが、例えば青色、白色等といった多種多様な発光色を、当該2次元コードQを読み取り得る2次元バーコードリーダ(光学情報読取装置)の照明光Lfの発光色に合わせても良い。これにより、2次元バーコードリーダの照明光の発光状態に近い状態で、照明光源21から照明光Lfを照射できる。
In the present embodiment, a red LED is used, but illumination of a two-dimensional barcode reader (optical information reader) that can read the two-dimensional code Q with various emission colors such as blue and white. You may match with the luminescent color of the light Lf. Thereby, the illumination light Lf can be irradiated from the
受光センサ23は、読取対象物Rや2次元コードQに照射されて反射した反射光Lrを受光可能に構成されるもので、例えば、C−MOSやCCD等の固体撮像素子である受光素子をm行n列の2次元に配列したエリアセンサが相当し、640×480画素を備える。この受光センサ23の受光センサ23aには、ハウジング11の外から読取口11aを介して外観可能に構成されており、受光センサ23は、結像レンズ27を介して入射する入射光をこの受光センサ23aで受光可能にプリント配線板15に実装されている。
The
マーカ光源25は、情報コード読取装置10の使用者に対して適切な読取位置を知らせるためのマーカ光Mfを発光可能なマーカ光源として機能するもので、例えばレーザダイオードとこのレーザダイオードの出射側に設けられる拡散レンズ、集光レンズやマーカ光MfによるセンターマークMXやコーナーマークMLといったパターンを形成可能なスリット盤、結像レンズ、絞り盤から構成されている。
The
結像レンズ27は、外部からハウジング11を介して入射する入射光を集光して受光センサ23の受光センサ23aに像を結像可能な結像光学系として機能しうるもので、例えば鏡筒とこの鏡筒に収容される複数の集光レンズとにより構成されている。なお、図2には示されていないが、図1に示すように、2次元コードQ等に反射して読取口11aに入射した反射光Lrの光路を変更する反射鏡26が読取口11a内に設けられている。
The
次にマイコン系の構成概要を説明する。図2に示すように、マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、操作スイッチ42、LED43、ブザー44、液晶表示器46、通信インタフェース48等から構成されている。このマイコン系は、その名の通り、マイコン(情報処理装置)として機能しうる制御回路40およびメモリ35を中心に構成されるもので、前述した光学系により撮像された2次元コードQの画像信号等をハードウエア的およびソフトウエア的に信号処理し得るものである。また制御回路40は、当該情報コード読取装置10の全体のシステムに関する制御も行っている。液晶表示器46は、上述した640×480画素の受光センサ23で撮像した画像を320×240画素で映し出すビューファインダを構成している。
Next, an outline of the configuration of the microcomputer system will be described. As shown in FIG. 2, the microcomputer system includes an
光学系の受光センサ23から出力される画像信号は、増幅回路31に入力されることで所定原因で増幅した後、A/D変換回路33に入力されるとアナログ信号からデジタル信号に変換される。そして、デジタル化された画像信号、つまり画像データはメモリ35に入力されると所定の入力バッファに蓄積される。なお、同期信号発生回路38は、受光センサ23およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいてメモリ35に格納される画像データの格納アドレスを発生可能に構成されている。
The image signal output from the
メモリ35は、半導体メモリ装置で、例えば読取対象物RAM(DRAM、SRAM等)や読取対象物ROM(EPROM、EEPROM等)がこれに相当する。このメモリ35のうちのRAMには、所定のバッファ領域やこのほか制御回路40が算術演算や論理演算等の各処理に利用する作業領域等も確保可能に構成されている。また、ROMには、所定のプログラムやその他、照明光源21、受光センサ23やマーカ光源25等の各ハードウェアの制御可能なシステムプログラム等が予め格納されている。
The
制御回路40は、情報コード読取装置10全体の制御を可能なマイコンで、CPU、システムバス、入出力インタフェースとからなり、メモリ35と共に情報処理装置を構成し情報処理機能を有する。この制御回路40には、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)と接続可能に構成されており、本実施形態の場合、電源スイッチ41、操作スイッチ42、LED43、ブザー44、液晶表示器46、通信インタフェース48等を接続している。これにより、例えば、電源スイッチ41や操作スイッチ42の監視や管理、またインジケータとして機能するLED43の点灯・消灯、ビープ音やアラーム音を発生可能なブザー44の鳴動のオンオフ、さらには読み取った2次元コードQの評価結果を表示可能な液晶表示器46の画面制御や外部機器とのシリアル通信を可能にする通信インタフェース48の通信制御等を可能にしている。なお、操作スイッチ42には、照明光源21による照明光Lfの照射を指示するトリガースイッチ14が含まれている。
The
電源系は、電源スイッチ41、電池49等に構成されており、制御回路40により管理されている電源スイッチ41のオンオフによって、前述した各装置や各回路に、電池49から供給される駆動電圧の導通や遮断が制御されている。なお、電池49は、所定の直流電圧を発生可能な二次電池で、例えば、リチウムイオン電池等がこれに相当する。
The power supply system is configured by a
引き続き、第1実施形態の情報コード読取装置10による情報コードの読み取り処理について図3(A)、図5、図7を参照して説明する。
図3(A)は第1実施形態の情報コード読取装置10での解像度切り替えの模式図であり、図5(A)は解像度を切り替えて撮像したQRコードの説明図である。
第1実施形態の情報コード読取装置10は、低解像度(320×240)と高解像度(640×480)とを切り替えて撮像できるように構成されている。該情報コード読取装置10は、先ず、低解像度でQRコードを撮像し、当該低解像度でQRコードがデコードできるかを判断し、デコード可能な際は、撮像した低解像度の画像でQRコードのデコードを開始する。一方、低解像度でデコードが不可能と判断した際には、高解像度でQRコードを撮像し、該高解像度の画像からQRコードをデコードする。ここで、低解像度でデコードが不可能と判断した際には、図5(A)左図に示すように当該低解像度の画像でQRコードQの存在している領域E1を特定しておき、高解像度の画像からデコードを行う際に、図5(A)右図に示すように高解像度の画像中の該当領域E2をデコードすることで、デコードを行う範囲を狭め、デコード時間の短縮を図っている。
Next, information code reading processing by the information
FIG. 3A is a schematic diagram of resolution switching in the information
The
図7は、情報コード読取装置10によるQRコードの読み取り処理を示すフローチャートである。
先ず、低解像度(320×240)でQRコードQの画像を取得する(S12)。この低解像度の画像としては、ビューファインダを構成する液晶表示器46用の画像を流用することができる。そして、該低解像度画像で、QRコードの大まかな位置(図5(A)左図の領域E1)、及び、モジュール(セル)サイズを確認する(S14)。ここで、QRコードの大まかな位置の探索には、特開2000−353210号の手法を用いる。一方、モジュールサイズとは、図5(B)中に示すQRコードを構成するモジュール(セル)Cの大きさを意味し、具体的には、情報コード読取装置10がセルCの有る(B)無し(W)を暗(セル有り)明(セル無し)で識別しており、このセルCが当該低解像度(320×240)での何画素に相当するかによりサイズを確認する。次に、QRコードが画像内にデコードするのに十分あるか、即ち、操作者によりQRコードが適切に捉えられ、画像内にQRコードが存在しているかを判断する(S16)。ここで、QRコードが適切に捉えられていない場合には(S16:No)、一旦処理を終了する。
FIG. 7 is a flowchart showing a QR code reading process by the information
First, an image of QR code Q is acquired with a low resolution (320 × 240) (S12). As this low-resolution image, an image for the
QRコードが画像内にデコードするのに十分ある際には(S16:Yes)、上記S14で確認した、モジュールのサイズがデコード可能な大きさか、即ち、低解像度の画像からQRコードがデコードできるか否かを判断する(S18)。ここでは、図5(B)中に示す1個のモジュールCのサイズが、4画素以上かを判断する。ここで、モジュールCのサイズは、モジュール有り(暗B)を基準として判断することも、モジュール無し(明W)を基準として判断することも、両方併用して判断することも可能である。 When the QR code is sufficient to be decoded in the image (S16: Yes), is the module size confirmed in S14 described above, that is, whether the QR code can be decoded from the low resolution image? It is determined whether or not (S18). Here, it is determined whether the size of one module C shown in FIG. 5B is 4 pixels or more. Here, the size of the module C can be determined based on the presence of the module (dark B), the determination based on the absence of the module (bright W), or a combination of both.
モジュールのサイズがデコード可能な4画素以上の場合、即ち、低解像度の画像からQRコードがデコードできる際には(S18:Yes)、当該低解像度の画像からQRコードのデコードを行う(S20)。そして、デコードが成功した際には(S22:No)、デコードを終了し、読み取り結果を出力して(S34)、処理を終了する。 When the module size is 4 pixels or more that can be decoded, that is, when the QR code can be decoded from the low resolution image (S18: Yes), the QR code is decoded from the low resolution image (S20). When the decoding is successful (S22: No), the decoding is terminated, the reading result is output (S34), and the process is terminated.
他方、低解像度でのデコードが失敗した際には(S22:Yes)、図5(C)左図に示すように、失敗した領域ERを特定する(S26)。そして、高解像度(640×480)で画像を取得し(S26)、低解像度画像にてデコードを失敗した領域ERをデコードし(図5(C)右図参照)、これを低解像度終えているデコードに補完することで、デコードを完了させる(S28)。そして、読み取り結果を出力して(S34)、処理を終了する。 On the other hand, when the decoding at the low resolution fails (S22: Yes), as shown in the left diagram of FIG. 5C, the failed area ER is specified (S26). Then, an image is acquired with a high resolution (640 × 480) (S26), and the region ER that has failed to decode in the low resolution image is decoded (see the right figure in FIG. 5C), and the low resolution is finished. By complementing the decoding, the decoding is completed (S28). Then, the reading result is output (S34), and the process is terminated.
一方、上述したS18の低解像度の画像からQRコードがデコードできないと判断した際には(S18:No)、高解像度(640×480)で画像を取得し(S30)、S32で低解像度画像にてQRコードの存在を特定した領域E2をデコードする(図5(A)右図参照)。そして、読み取り結果を出力して(S34)、処理を終了する。 On the other hand, when it is determined that the QR code cannot be decoded from the low-resolution image of S18 described above (S18: No), the image is acquired at a high resolution (640 × 480) (S30), and the low-resolution image is converted at S32. Then, the area E2 that identifies the presence of the QR code is decoded (see the right figure in FIG. 5A). Then, the reading result is output (S34), and the process is terminated.
第1実施形態の情報コード読取装置10では、低解像度でQRコードの位置(領域E1)を特定し、高解像度画像中でその領域E2のみをデコードしたが、図6(A)左側に示すように、低解像度でQRコードの位置を特定し、図6(A)右側に示すように当該QRコードが存在している領域E3(例えば、低解像度と同じ320×240画素分)のみを高解像度(640×480相当)で撮像することも可能である。
In the information
第1実施形態の情報コード読取装置10では、低解像度の画像から情報コードの読み取りが可能か否かを判断し、読み取り可能と判断した際に、当該低解像度の情報コードの画像からデコードを行う。低解像度の画像でデコードするため、高解像度の画像を取得しデコードするのに比べて、短時間で情報コードの読み取りができる。一方、低解像度の情報コードの画像からのデコードが不可能と判断された際に、高解像度の情報コードの画像からデコードを行う。このため、確実に情報コードを読み取ることができる。特に、低解像度の画像で実際にデコードを行い、デコードが失敗した際に、高解像度の画像でデコードするのと比べて、予め低解像度の画像でのデコードが可能か否かを判断するため、情報コードの読み取り時間を短縮可能である。
In the
また、情報コード読取装置10は、低解像度の画像から情報コードの存在している領域E1を検出する。そして、高解像度の情報コードの画像からデコードを行う際に、検出された情報コードの存在している領域E2をデコードする。このため、例え、低解像度の情報コードの画像からのデコードが不可能で、高解像度の情報コードの画像からデコードを行う際にも、情報コードの存在している最小限の領域E2のみをデコードするため、デコードに時間が掛からず、短時間で情報コードの読み取りができる。
Further, the information
更に、第1実施形態の情報コード読取装置10では、低解像度の画像からQRコードの読み取りが可能か否かを、低解像度の画像中でQRコードを構成するモジュールCが、予め設定された画素数(4)以上かにより判断する。このため、低解像度の画像でデコードを試みることなく、QRコードの読み取りが可能か否かを判断できる。
Further, in the information
更にまた、第1実施形態の情報コード読取装置10では、低解像度の情報コードの画像でデコードを失敗した場合に、デコードを失敗した領域ERを特定する。そして、高解像度の画像からのデコードを失敗した領域ERで行い、低解像度の画像から行ったデコードの失敗を補完する。このため、例え、低解像度の情報コードの画像からのデコードに失敗して、高解像度の情報コードの画像からデコードを行う際にも、低解像度の画像で既に完了しているデコードを用い、デコードに失敗した最小限の領域のみをデコードするため、デコードに時間が掛からず、短時間で情報コードの読み取りができる。
Furthermore, in the
なお、上述した第1実施形態では、低解像度の画像と高解像度の画像とを別々のタイミングで取得したが、これを同時に取得することも、また、予め取り込んだ高解像度の画像から低解像度の画像を生成することも可能である。 In the first embodiment described above, the low-resolution image and the high-resolution image are acquired at different timings. However, it is also possible to acquire them simultaneously from the high-resolution image captured in advance. It is also possible to generate an image.
[第2実施形態]
図3(B)及び図6(B)を参照して第2実施形態に係る情報コード読取装置10について説明する。
第2実施形態の情報コード読取装置10は、上述した第1実施形態と同様に低解像度での読み取りが出来ない場合には、高解像度で情報コードを読み取る。但し、第2実施形態では、情報コードがバーコードかQRコードかを識別し、バーコード(一次元コード)と識別された際に、水平方向のみに高い解像度にて該バーコードの画像を取得し、QRコード(二次元コード)と識別された際にのみ、水平・垂直方向の高い解像度にて該QRコードの画像を取得する。即ち、垂直方向への高解像度が必要とされないバーコード(一次元コード)に対しては、水平方向のみに高い解像度にて画像を取得することで、短時間でバーコードの読み取りを可能にしている。
[Second Embodiment]
An information
The
この第2実施形態の情報コード読取装置10によるバーコード、QRコードの読み取り処理を図8に示すフローチャートを参照して説明する。
S12〜S28までの処理は、図7を参照して上述した第1実施形態と同様である。ここで、S18でのモジュールのサイズがデコード可能な大きさか、即ち、低解像度の画像から情報コードがデコードできるか否かを判断で、低解像度でデコードできないと判断した際には(S18:No)、情報コードの形状(正方形か矩形か)に基づきバーコードかQRコードかを判断する(S29)。ここで、バーコードであると判断した際には(S29:Yes)、図6(B)に示すように、水平方向のみに解像度を高めた高解像度(640×240)で画像を取り込む(S31)。なお、ここでは、バーコードに対しては、操作者がバーコードの水平方向と、情報コード読取装置10の水平方向とがほぼ一致するようにして撮像しているものとする。但し、解像度の低い画像で、バーコードの向きが垂直方向であることが判別された場合には、垂直方向に解像度を高くした画像を取り込みようにしても良い。
A barcode and QR code reading process by the
The processes from S12 to S28 are the same as those in the first embodiment described above with reference to FIG. Here, when it is determined whether the size of the module in S18 can be decoded, that is, whether the information code can be decoded from the low-resolution image, it is determined that the information cannot be decoded at the low resolution (S18: No). ) Based on the information code shape (square or rectangular), it is determined whether it is a bar code or a QR code (S29). When it is determined that the barcode is used (S29: Yes), as shown in FIG. 6B, an image is captured at a high resolution (640 × 240) in which the resolution is increased only in the horizontal direction (S31). ). Here, it is assumed that the operator is imaging the barcode in such a manner that the horizontal direction of the barcode and the horizontal direction of the information
他方、QRコードであると判断した際には(S29:No)、図6(C)に示すように、水平、垂直方向への解像度を高めた高解像度(640×480)で画像を取り込む(S30)。以降の処理は第1実施形態と同様であるため、説明を省略する。 On the other hand, when it is determined that the code is a QR code (S29: No), as shown in FIG. 6C, an image is captured at a high resolution (640 × 480) in which the resolution in the horizontal and vertical directions is increased ( S30). Since the subsequent processing is the same as that of the first embodiment, description thereof is omitted.
[参考例]
図4を参照して参考例に係る情報コード読取装置10について説明する。
第1、第2実施形態の情報コード読取装置10は、低解像度と高解像度との2段階の解像度での撮像が可能であった。これに対して、図4に示すように参考例の実施形態では、低解像度(320×240)、中解像度(640×480)、高解像度(1280×960)、高高解像度(2560×19200)の4段階の解像度の切り替えが可能に構成されており、低解像度(320×240)の画像を基に、読み取りに必要とされる解像度を判断し、必要最小限の解像度で撮像し、情報コードを読み取る。
[ Reference example ]
An
The
この参考例の情報コード読取装置10によるQRコードの読み取り処理を図9に示すフローチャートを参照して説明する。
先ず、低解像度(320×240)でQRコードQの画像を取得する(S52)。そして、モジュールCのサイズがデコード可能な大きさか、即ち、低解像度の画像からQRコードがデコードできるか否かを、モジュールC(図5(B)参照)のサイズが4画素以上かにより判断する(S54)。ここで、モジュールCのサイズがデコード可能な4画素以上の場合、即ち、低解像度の画像からQRコードがデコードできる際には(S54:Yes)、当該低解像度(320×240)の画像からQRコードのデコードを行う(S66)。
The QR code reading process by the information
First, an image of QR code Q is acquired with a low resolution (320 × 240) (S52). Then, whether or not the size of the module C can be decoded, that is, whether or not the QR code can be decoded from the low-resolution image, is determined based on whether the size of the module C (see FIG. 5B) is 4 pixels or more. (S54). When the size of the module C is 4 pixels or more that can be decoded, that is, when the QR code can be decoded from the low resolution image (S54: Yes), the QR from the low resolution (320 × 240) image is displayed. The code is decoded (S66).
一方、モジュールCのサイズが4画素未満の場合、即ち、低解像度(320×240)の画像からQRコードがデコードできない場合には(S54:No)、モジュールCのサイズが4画素未満で3画素以上、即ち、3画素で中解像度(640×480)でデコード可能かを判断する(S56)。ここで、中解像度の画像からQRコードがデコードできる際には(S56:Yes)、中解像度(640×480)の画像を取得し(S60)、取得した中解像度の画像からQRコードのデコードを行う(S66)。 On the other hand, when the size of the module C is less than 4 pixels, that is, when the QR code cannot be decoded from the low resolution (320 × 240) image (S54: No), the size of the module C is less than 4 pixels and 3 pixels. That is, it is determined whether decoding is possible with 3 pixels and medium resolution (640 × 480) (S56). Here, when the QR code can be decoded from the medium resolution image (S56: Yes), the medium resolution (640 × 480) image is acquired (S60), and the QR code is decoded from the acquired medium resolution image. Perform (S66).
一方、モジュールCのサイズが3画素未満の場合、即ち、中解像度(640×480)の画像からQRコードがデコードできない場合には(S56:No)、モジュールCのサイズが3画素未満で2画素以上、即ち、2画素で高解像度(1280×960)でデコード可能かを判断する(S58)。ここで、高解像度の画像からQRコードがデコードできる際には(S58:Yes)、高解像度(1280×960)の画像を取得し(S62)、取得した高解像度の画像からQRコードのデコードを行う(S66)。 On the other hand, when the size of the module C is less than 3 pixels, that is, when the QR code cannot be decoded from the medium resolution (640 × 480) image (S56: No), the size of the module C is less than 3 pixels and 2 pixels. That is, it is determined whether or not decoding is possible with two pixels and high resolution (1280 × 960) (S58). Here, when the QR code can be decoded from the high-resolution image (S58: Yes), the high-resolution (1280 × 960) image is acquired (S62), and the QR code is decoded from the acquired high-resolution image. Perform (S66).
一方、モジュールCのサイズが2画素未満の場合、即ち、高解像度(1280×960)の画像でもデコードできない場合には(S58:No)、高高解像度(2560×1920)の画像を取得し(S64)、取得した高高解像度の画像からQRコードのデコードを行う(S66)。 On the other hand, when the size of the module C is less than two pixels, that is, when decoding cannot be performed even with a high resolution (1280 × 960) image (S58: No), a high high resolution (2560 × 1920) image is acquired ( In S64, the QR code is decoded from the acquired high-resolution image (S66).
参考例の情報コード読取装置10では、低解像度の画像を基に読み取りに必要な解像度を決定するため、確実に情報コードを読み取ることができ、また、必要最小限の解像度で情報コードを読み取るため、情報コードの読み取り時間を短縮することが可能である。なお、参考例では、解像度を4段階用意したが、3段階以上であれば、何段であっても適用可能である。
In the
10 情報コード読取装置
20 回路部
23 受光センサ
35 メモリ
40 制御回路
DESCRIPTION OF
Claims (5)
実質的に同じ撮像領域において、低い解像度にて情報コードの画像を取得する低解像度画像取得手段と、低解像度画像取得手段よりも高い解像度にて該情報コードの画像を取得する高解像度画像取得手段と;
前記低い解像度の画像から情報コードの読み取りが可能か否かを判断する判断手段と;
前記判断手段により読み取り可能と判断された際に、当該低い解像度の情報コードの画像からデコードを行い、不可能と判断された際に、前記高い解像度の情報コードの画像からデコードを行うデコード手段とを備え、
前記デコード手段は、
前記低い解像度の情報コードの画像からデコードを行い、デコードを失敗した場合に、デコードを失敗した領域を特定し、
前記低い解像度の画像で既に完了しているデコードを用いると共に、高い解像度の画像から前記デコードを失敗した領域のデコードを行い、前記低い解像度の画像から行ったデコードの失敗を補完することを特徴とする情報コード読取装置。 An information code reading device for reading an information code comprising:
Low resolution image acquisition means for acquiring an image of an information code at a low resolution in a substantially same imaging region, and high resolution image acquisition means for acquiring an image of the information code at a higher resolution than the low resolution image acquisition means When;
Determining means for determining whether or not an information code can be read from the low resolution image;
Decoding means for decoding from the low resolution information code image when it is determined to be readable by the determination means, and decoding from the high resolution information code image when it is determined impossible; equipped with a,
The decoding means includes
When decoding is performed from the image of the information code of the low resolution and decoding fails, an area where decoding has failed is identified,
The decoding which has already been completed with the low resolution image is used, the decoding failure area is decoded from the high resolution image, and the decoding failure made from the low resolution image is complemented. Information code reader.
前記デコード手段が、前記高い解像度の情報コードの画像からデコードを行う際には、前記存在領域検出手段により検出された情報コードの存在している領域をデコードすることを特徴とする請求項1の情報コード読取装置。 A presence region detecting means for detecting a region where an information code is present from the low resolution image;
2. The decoding unit according to claim 1, wherein when the decoding unit performs decoding from an image of the high-resolution information code, the decoding unit decodes a region where the information code detected by the presence region detection unit exists. Information code reader.
一次元コードと識別された際に、前記高解像度画像取得手段が水平方向のみに高い解像度にて該一次元コードの画像を取得し、
二次元コードと識別された際に、前記高解像度画像取得手段が水平・垂直方向の高い解像度にて該二次元コードの画像を取得することを特徴とする請求項4の情報コード読取装置。 An information code identifying means for identifying whether the information code is a one-dimensional code or a two-dimensional code;
When identified as a one-dimensional code, the high-resolution image acquisition means acquires an image of the one-dimensional code at a high resolution only in the horizontal direction,
5. The information code reading apparatus according to claim 4 , wherein when the image is identified as a two-dimensional code, the high-resolution image acquisition means acquires the image of the two-dimensional code at a high resolution in the horizontal and vertical directions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005324831A JP4470860B2 (en) | 2005-11-09 | 2005-11-09 | Information code reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005324831A JP4470860B2 (en) | 2005-11-09 | 2005-11-09 | Information code reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007133566A JP2007133566A (en) | 2007-05-31 |
JP4470860B2 true JP4470860B2 (en) | 2010-06-02 |
Family
ID=38155186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005324831A Expired - Fee Related JP4470860B2 (en) | 2005-11-09 | 2005-11-09 | Information code reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4470860B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5062633B2 (en) * | 2008-09-03 | 2012-10-31 | 株式会社リコー | Image processing apparatus, image processing method, and program |
US8083148B2 (en) * | 2008-12-16 | 2011-12-27 | Hand Held Products, Inc. | Indicia reading terminal including frame processing |
JP2015032213A (en) * | 2013-08-05 | 2015-02-16 | 株式会社東芝 | Information processing apparatus, information processing method, and information processing program |
JP6372396B2 (en) * | 2015-03-04 | 2018-08-15 | 株式会社デンソーウェーブ | Information transmission system |
JP6249025B2 (en) * | 2016-02-16 | 2017-12-20 | カシオ計算機株式会社 | Image processing apparatus and program |
JP6907055B2 (en) * | 2017-07-11 | 2021-07-21 | Phcホールディングス株式会社 | Mobile terminal, imaging method, and imaging program |
KR102659734B1 (en) * | 2019-10-31 | 2024-04-22 | 주식회사 크래비스 | Information Code Pattern Recognition Apparatus |
CN116757231A (en) * | 2023-08-22 | 2023-09-15 | 北京紫光青藤微系统有限公司 | Method and device for generating super-resolution training atlas for bar code image |
-
2005
- 2005-11-09 JP JP2005324831A patent/JP4470860B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007133566A (en) | 2007-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4470860B2 (en) | Information code reader | |
JP2007133851A (en) | Imaging device | |
JP4186915B2 (en) | Optical information reader | |
JP2006244139A (en) | Optical information reading device | |
US8903201B2 (en) | Method and apparatus for enhanced document capture | |
JP4968093B2 (en) | Optical information reader | |
JP4325602B2 (en) | Optical information reader | |
JP4650138B2 (en) | Optical information reader | |
JP5556684B2 (en) | Information code reader | |
JP4466522B2 (en) | Optical information reader | |
JP5888199B2 (en) | Bar code reader | |
JP5104557B2 (en) | Optical information reader | |
JP5786784B2 (en) | Information code reader | |
JP7167553B2 (en) | Two-dimensional code | |
JP5104713B2 (en) | Optical information reader | |
JP2011008574A (en) | Optical information reader | |
JP5522093B2 (en) | Optical information reader | |
JPH06139398A (en) | Two-dimensional scanner | |
JP2010097316A (en) | Optical information reader | |
JP5381928B2 (en) | Optical information reader | |
JP2778884B2 (en) | 2D code scanner | |
JP2007226411A (en) | Code image output device | |
JP5007952B2 (en) | Optical information reader | |
JP4487919B2 (en) | Optical information reader | |
JP2016170599A (en) | Information code reading device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20071205 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090330 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090630 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090825 |
|
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: 20100209 |
|
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: 20100222 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130312 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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: 20130312 Year of fee payment: 3 |
|
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: 20130312 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130312 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140312 Year of fee payment: 4 |
|
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 |