Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5428935B2 - Two-dimensional barcode reader, program, two-dimensional barcode and medium - Google Patents
[go: Go Back, main page]

JP5428935B2 - Two-dimensional barcode reader, program, two-dimensional barcode and medium - Google Patents

Two-dimensional barcode reader, program, two-dimensional barcode and medium Download PDF

Info

Publication number
JP5428935B2
JP5428935B2 JP2010036836A JP2010036836A JP5428935B2 JP 5428935 B2 JP5428935 B2 JP 5428935B2 JP 2010036836 A JP2010036836 A JP 2010036836A JP 2010036836 A JP2010036836 A JP 2010036836A JP 5428935 B2 JP5428935 B2 JP 5428935B2
Authority
JP
Japan
Prior art keywords
pattern
detection
image
code
dimensional barcode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010036836A
Other languages
Japanese (ja)
Other versions
JP2011175314A (en
Inventor
伸一 矢田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2010036836A priority Critical patent/JP5428935B2/en
Publication of JP2011175314A publication Critical patent/JP2011175314A/en
Application granted granted Critical
Publication of JP5428935B2 publication Critical patent/JP5428935B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、二次元バーコード読取装置、プログラム、二次元バーコード及び媒体に関する。   The present invention relates to a two-dimensional barcode reader, a program, a two-dimensional barcode, and a medium.

歪み、伸縮等が発生するなどして画像が劣化している二次元バーコードを、復号可能かどうかを評価するための技術が提案されている(例えば、特許文献1,2)。   Techniques have been proposed for evaluating whether a two-dimensional barcode whose image has deteriorated due to distortion, expansion and contraction, etc. can be decoded (for example, Patent Documents 1 and 2).

特開平9−128469号公報JP-A-9-128469 特許第2946945号明細書Japanese Patent No. 2946945

本発明は、二次元バーコードの復号精度の向上を図ることを目的とする。   An object of the present invention is to improve the decoding accuracy of a two-dimensional barcode.

本発明に係る二次元バーコード読取装置は、二次元バーコードを含む画像を取得する取得手段と、前記取得手段により取得された画像から予め決められた領域内にある補助パターンであって、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか1つを含む補助パターンを検出する補助パターン検出手段と、前記領域内に設定される補助パターンを基準パターンとして記憶する基準パターン記憶手段と、前記補助パターン検出手段により検出された補助パターンと前記基準パターンとを比較することにより二次元バーコードの画像の変動量を検出する変動量検出手段と、前記変動量検出手段により検出された変動量に従って前記取得手段により取得された画像に含まれる二次元バーコードの画像を補整する補整手段と、を有することを特徴とする。 The two-dimensional barcode reader according to the present invention includes an acquisition unit that acquires an image including a two-dimensional barcode, and an auxiliary pattern that is in a predetermined region from the image acquired by the acquisition unit, distortion detection pattern formed by arranging a plurality of patches of a predetermined position and shape a distortion detection pattern for detecting the distortion of the image, a telescopic detection pattern for detecting the expansion and contraction of the code image previously determined An expansion / contraction detection pattern formed by arranging a plurality of patches of a predetermined position and shape, or a density fluctuation detection pattern for detecting density fluctuation of a code image, so that the density gradually decreases from one to the other. an auxiliary pattern detecting means for detecting the auxiliary pattern including at least one of the formed density variation detection pattern, the region The reference pattern storage means for storing the auxiliary pattern to be set as a reference pattern, and the auxiliary pattern detected by the auxiliary pattern detection means and the reference pattern are compared to detect the fluctuation amount of the image of the two-dimensional barcode. It is characterized by comprising fluctuation amount detection means and correction means for correcting the image of the two-dimensional barcode included in the image acquired by the acquisition means in accordance with the fluctuation amount detected by the fluctuation amount detection means.

また、前記補助パターン検出手段は、矩形形状であるコード画像に対して水平方向及び垂直方向の双方に設けられている補助パターンを検出することを特徴とする。   Further, the auxiliary pattern detecting means detects auxiliary patterns provided in both the horizontal direction and the vertical direction with respect to a rectangular code image.

本発明に係るプログラムは、コンピュータを、二次元バーコードを含む画像を取得する取得手段、前記取得手段により取得された画像から予め決められた領域内にある補助パターンであって、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか1つを含む補助パターンを検出する補助パターン検出手段、前記補助パターン検出手段により検出された補助パターンと、前記領域内に設定される補助パターンの基準パターンとを比較することにより二次元バーコードの画像の変動量を検出する変動量検出手段、前記変動量検出手段により検出された変動量に従って前記取得手段により取得された画像に含まれる二次元バーコードの画像を補整する補整手段、として機能させる。 The program according to the present invention includes an acquisition unit that acquires an image including a two-dimensional barcode, an auxiliary pattern in a predetermined region from the image acquired by the acquisition unit, and a distortion of the code image position determined in advance in a telescopic detection pattern for detecting multiple arrayed strain detection pattern formed by the patch of a predetermined position and shape a distortion detection pattern, the expansion and contraction of the code image to detect And an expansion / contraction detection pattern formed by arranging a plurality of patches of a shape or a density fluctuation detection pattern for detecting a density fluctuation of a code image, wherein the density gradually decreases from one to the other. auxiliary pattern detecting means for detecting an auxiliary pattern that includes at least one of the density variation detection pattern, the auxiliary pattern A fluctuation amount detecting means for detecting a fluctuation amount of the image of the two-dimensional barcode by comparing the auxiliary pattern detected by the detection means and a reference pattern of the auxiliary pattern set in the region, the fluctuation amount detection According to the fluctuation amount detected by the means, it functions as a correction means for correcting the image of the two-dimensional barcode included in the image acquired by the acquisition means.

本発明に係る二次元バーコードは、付近の予め決められた領域内に、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか2つを組み合わせて配置されたことを特徴とする。 The two-dimensional barcode according to the present invention is a distortion detection pattern for detecting distortion of a code image and is formed by arranging a plurality of patches having a predetermined position and shape in a predetermined area in the vicinity . Distortion detection pattern , expansion / contraction detection pattern for detecting expansion / contraction of the code image, which is formed by arranging a plurality of patches having predetermined positions and shapes, or density for detecting variation in the density of the code image It is characterized in that it is arranged in combination with at least any two density fluctuation detection patterns formed so that the density gradually decreases as one goes from one to the other .

また、前記領域は、クワイエットゾーン内であって前記各パターンを形成するモジュールがコード画像の領域と隣接しない位置に設けられることを特徴とする。   Further, the area is provided in a quiet zone, and a module for forming each pattern is provided at a position not adjacent to a code image area.

また、前記領域は、矩形形状であるコード画像に対して水平方向及び垂直方向の双方に設けられることを特徴とする。   Further, the area is provided in both a horizontal direction and a vertical direction with respect to a rectangular code image.

本発明に係る媒体は、上記いずれかの発明の二次元バーコードが付加されたことを特徴とする。   A medium according to the present invention is characterized in that the two-dimensional barcode of any one of the above inventions is added.

請求項1,3記載の発明によれば、復号精度を向上させるべく二次元バーコードの補整を行うことができる。   According to the first and third aspects of the invention, the two-dimensional barcode can be corrected to improve the decoding accuracy.

請求項2,6記載の発明によれば、二次元方向の歪み、伸縮又は濃度変動などを検出することができる。   According to the second and sixth aspects of the invention, it is possible to detect two-dimensional distortion, expansion / contraction, concentration fluctuation, and the like.

請求項4,7記載の発明によれば、二次元バーコードの復号精度の向上を図ることができる。   According to the fourth and seventh aspects of the invention, the decoding accuracy of the two-dimensional barcode can be improved.

請求項5記載の発明によれば、検出パターンを二次元バーコードの側近に配置することができる。   According to the fifth aspect of the present invention, the detection pattern can be arranged near the two-dimensional barcode.

本発明に係る二次元バーコード読取装置の一実施の形態を示したブロック構成図である。It is the block block diagram which showed one Embodiment of the two-dimensional barcode reader which concerns on this invention. 本実施の形態における二次元バーコード読取装置を形成するコンピュータのハードウェア構成図である。It is a hardware block diagram of the computer which forms the two-dimensional barcode reader in this Embodiment. 本実施の形態において取り扱う補助パターンの配置領域の一例を示した図である。It is the figure which showed an example of the arrangement | positioning area | region of the auxiliary pattern handled in this Embodiment. 本実施の形態における配置領域に対する補助パターンの配置例を示した図である。It is the figure which showed the example of arrangement | positioning of the auxiliary pattern with respect to the arrangement | positioning area | region in this Embodiment. 本実施の形態におけるQRコードの復号処理を示したフローチャートである。It is the flowchart which showed the decoding process of QR code in this Embodiment. 本実施の形態において用いる歪み検出パターンの一例を示した図である。It is the figure which showed an example of the distortion detection pattern used in this Embodiment. 本実施の形態において検出された、歪みを有する補助パターンと基準パターンとを上下に並べて示した図である。It is the figure which showed the auxiliary pattern and the reference | standard pattern which have the distortion detected in this Embodiment up and down. 本実施の形態において検出された伸縮を有する補助パターンを基準パターンの上下に並べて示した図である。It is the figure which arranged and showed the auxiliary pattern which has the expansion-contraction detected in this Embodiment up and down the reference | standard pattern. 本実施の形態において検出された濃度変動を有する補助パターンを基準パターンの上下に並べて示した図である。It is the figure which showed the auxiliary pattern which has the density fluctuation | variation detected in this Embodiment along with the upper and lower sides of the reference pattern. 本実施の形態において検出された濃度変動を有する補助パターンを、他の基準パターンの上下に並べて示した図である。It is the figure which showed the auxiliary pattern which has the density fluctuation | variation detected in this Embodiment along with the other reference pattern. 本実施の形態において、補助パターンの配置領域に配置する補助パターンの配置の例を示した図である。In this Embodiment, it is the figure which showed the example of arrangement | positioning of the auxiliary pattern arrange | positioned in the arrangement area | region of an auxiliary pattern.

以下、図面に基づいて、本発明の好適な実施の形態について説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

図1は、本発明に係る二次元バーコード読取装置の一実施の形態を示したブロック構成図である。また、図2は、本実施の形態における二次元バーコード読取装置20を形成するコンピュータのハードウェア構成図である。   FIG. 1 is a block diagram showing an embodiment of a two-dimensional bar code reader according to the present invention. FIG. 2 is a hardware configuration diagram of a computer forming the two-dimensional barcode reader 20 according to the present embodiment.

図2において、コンピュータは、従前から存在する汎用的なハードウェア構成で実現できる。すなわち、二次元バーコード読取装置20を形成するコンピュータは、図2に示したようにCPU1、ROM2、RAM3、ハードディスクドライブ(HDD)4を接続したHDDコントローラ5、入力手段として設けられたマウス6とキーボード7、及び表示装置として設けられたディスプレイ8をそれぞれ接続する入出力コントローラ9、通信手段として設けられたネットワークコントローラ10を内部バス11に接続して構成される。   In FIG. 2, the computer can be realized by a general-purpose hardware configuration that has existed before. That is, the computer forming the two-dimensional barcode reader 20 includes a CPU 1, a ROM 2, a RAM 3, an HDD controller 5 connected to a hard disk drive (HDD) 4, and a mouse 6 provided as input means as shown in FIG. An input / output controller 9 for connecting a keyboard 7 and a display 8 provided as a display device, respectively, and a network controller 10 provided as a communication means are connected to an internal bus 11.

図1に戻り、本実施の形態における二次元バーコード読取装置20は、画像取得部21、QRコード検出部22、補助パターン検出部23、画像補整部24、復号部25及び基準パターン記憶部26を有している。なお、本実施の形態では、二次元バーコードとしてQRコードを取り扱う場合を例にして説明する。画像取得部21は、QRコードを含む画像を取得する。QRコード検出部22は、取得された画像からQRコードの画像を検出し、抽出する。補助パターン検出部23は、QRコードの画像の中から補助パターンを検出する。補助パターンについては、後述する。基準パターン記憶部26には、検出された補助パターンの変動量を検出するための基準となる補助パターン、すなわちQRコードと共に画像に埋め込まれた歪みや伸縮等の何ら影響を受けていない(変動されていない)補助パターン(以下、「基準パターン」)に関する情報が記憶されている。基準パターンに関する情報には、基準パターンの画像、配置、形状、大きさなどが含まれる。画像補整部24は、変動量検出手段及び補整手段として設けられ、検出された補助パターンを基準パターンと比較することによりQRコードの画像の変動量を検出し、その検出した変動量に従って前記取得手段により取得された画像に含まれるQRコードの画像を補整する。復号部25は、補整されたQRコードを復号することによってコード化されていたデータを取り出す。   Returning to FIG. 1, the two-dimensional barcode reader 20 in the present embodiment includes an image acquisition unit 21, a QR code detection unit 22, an auxiliary pattern detection unit 23, an image correction unit 24, a decoding unit 25, and a reference pattern storage unit 26. have. In this embodiment, a case where a QR code is handled as a two-dimensional barcode will be described as an example. The image acquisition unit 21 acquires an image including a QR code. The QR code detection unit 22 detects and extracts a QR code image from the acquired image. The auxiliary pattern detection unit 23 detects an auxiliary pattern from the QR code image. The auxiliary pattern will be described later. The reference pattern storage unit 26 is not affected (changed) by an auxiliary pattern serving as a reference for detecting the variation amount of the detected auxiliary pattern, that is, distortion or expansion / contraction embedded in the image together with the QR code. Information on auxiliary patterns (hereinafter referred to as “reference patterns”) is stored. The information related to the reference pattern includes the image, arrangement, shape, size, and the like of the reference pattern. The image correction unit 24 is provided as a fluctuation amount detection unit and a correction unit, detects a fluctuation amount of the QR code image by comparing the detected auxiliary pattern with a reference pattern, and the acquisition unit according to the detected fluctuation amount The image of the QR code included in the image acquired by the above is corrected. The decoding unit 25 extracts the encoded data by decoding the corrected QR code.

二次元バーコード読取装置20における各構成要素21〜25は、二次元バーコード読取装置20を形成するコンピュータと、コンピュータに搭載されたCPU1で動作するプログラムとの協調動作により実現される。また、基準パターン記憶部26は、二次元バーコード読取装置20におけるHDD4にて実現される。あるいは、記憶手段を有する外部のコンピュータ上に設け、二次元バーコード読取装置20は、そのコンピュータから直接若しくはネットワーク経由で必要な情報を取得するように構成してもよい。   The components 21 to 25 in the two-dimensional barcode reader 20 are realized by a cooperative operation of a computer that forms the two-dimensional barcode reader 20 and a program that operates on the CPU 1 mounted on the computer. The reference pattern storage unit 26 is realized by the HDD 4 in the two-dimensional barcode reader 20. Alternatively, the two-dimensional barcode reader 20 may be provided on an external computer having a storage unit so as to acquire necessary information directly from the computer or via a network.

また、本実施の形態で用いるプログラムは、通信手段により提供することはもちろん、CD−ROMやDVD−ROM等のコンピュータ読み取り可能な記録媒体に格納して提供することも可能である。通信手段や記録媒体から提供されたプログラムはコンピュータにインストールされ、コンピュータのCPUがインストールプログラムを順次実行することで各種処理が実現される。   Further, the program used in this embodiment can be provided not only by communication means but also by storing it in a computer-readable recording medium such as a CD-ROM or DVD-ROM. The program provided from the communication means or the recording medium is installed in the computer, and various processes are realized by the CPU of the computer sequentially executing the installation program.

図3は、本実施の形態において取り扱う補助パターンの配置領域の一例を示した図である。また、図3には、QRコードの要部拡大図も含まれている。図3には、補助パターンが適用されるQRコードと、補助パターンの配置領域34とが示されている。通常、QRコードが付加される媒体上の他の情報と区別できるように、QRコードの周囲には、一般にクワイエットゾーン31と呼ばれる何も表示されない領域が設けられる。クワイエットゾーン31は、最低4モジュールの幅を有し、余白を形成する。1モジュールは、QRコードの描画基準サイズである。本実施の形態では、このクワイエットゾーン31を有効利用して、この部分に少なくとも1モジュール幅の補助パターンの配置領域34を設けるようにした。補助パターンの配置領域34は、クワイエットゾーン31の内側のQRコード画像と接しないように、かつクワイエットゾーン31の外側の他の画像と接しないように設ける必要がある。よって、4モジュール幅のクワイエットゾーン31の場合は、2モジュール幅で補助パターンの配置領域34を設けてもよい。図3に示したように、本実施の形態では、QRコードの画像部分32から2モジュール分離れた位置であり、かつクワイエットゾーン31の外縁33から1モジュール分離れた位置のモジュールの位置を補助パターンの配置領域34としている。   FIG. 3 is a diagram showing an example of an auxiliary pattern arrangement region handled in the present embodiment. FIG. 3 also includes an enlarged view of the main part of the QR code. FIG. 3 shows a QR code to which an auxiliary pattern is applied and an auxiliary pattern arrangement area 34. Usually, an area where nothing is displayed, which is generally called a quiet zone 31, is provided around the QR code so that it can be distinguished from other information on the medium to which the QR code is added. The quiet zone 31 has a width of at least 4 modules and forms a margin. One module is a QR code drawing reference size. In this embodiment, the quiet zone 31 is effectively used, and an auxiliary pattern arrangement region 34 having a width of at least one module is provided in this portion. The auxiliary pattern arrangement region 34 needs to be provided so as not to contact the QR code image inside the quiet zone 31 and so as not to contact other images outside the quiet zone 31. Therefore, in the case of the quiet zone 31 having a width of 4 modules, the auxiliary pattern arrangement area 34 may be provided with a width of 2 modules. As shown in FIG. 3, in the present embodiment, the module is located at a position two modules away from the QR code image portion 32 and one module away from the outer edge 33 of the quiet zone 31. A pattern arrangement area 34 is provided.

図4は、補助パターンの配置例を示した図である。図3では、補助パターンの配置領域34を、QRコード全周を取り囲むように最大限の領域を示したが、実際には、図4に例示したように、QRコード全周とは限らず、縦の辺又は横の辺、すなわち垂直方向又は水平方向の少なくとも一方に部分的に設けるようにしてもよい。図4の最上段は補助パターンをQRコードの一辺に配置する場合の例、2段目はQRコードの二辺に配置する場合の例、3段目はQRコードの三辺に配置する場合の例である。そして最下段には、全周に配置する例と、辺の一部分に配置した領域を連結させることで一つの角部分に配置する例と、一辺とその辺を挟む辺の一部分に配置する例と、が示されている。なお、図4に示した例に限らず、例えば辺の中央部分のみなど、種々のパターンで補助パターンの配置領域34を設定してもよい。   FIG. 4 is a diagram illustrating an arrangement example of auxiliary patterns. In FIG. 3, the auxiliary pattern arrangement area 34 is shown as a maximum area so as to surround the entire QR code. However, as illustrated in FIG. It may be partially provided on at least one of the vertical side or the horizontal side, that is, the vertical direction or the horizontal direction. 4 shows an example in which the auxiliary pattern is arranged on one side of the QR code, the second stage shows an example in which the auxiliary pattern is arranged on two sides of the QR code, and the third stage shows a case in which the auxiliary pattern is arranged on three sides of the QR code. It is an example. And in the lowest level, an example arranged at the entire circumference, an example arranged at one corner by connecting regions arranged at a part of the side, an example arranged at one part of the side sandwiching the side and the side ,It is shown. The auxiliary pattern arrangement region 34 may be set with various patterns, for example, not only the example shown in FIG.

次に、本実施の形態におけるQRコードの復号処理について図5に示したフローチャートを用いて説明する。   Next, QR code decoding processing according to the present embodiment will be described with reference to the flowchart shown in FIG.

画像取得部21は、QRコードを含む画像を取得する(ステップ110)。これは、図示しないスキャナにより紙文書等の媒体の読取画像でもよいし、予めスキャンされて形成された画像データをHDD4から読み出したり、あるいはネットワーク経由で取得してもよい。続いて、QRコード検出部22は、画像取得部21により取得された画像の中からQRコードを検出し、QRコードの画像を抽出する(ステップ120)。QRコード等の二次元バーコードには、予め決められた位置に位置検出パターンがコード画像内に埋め込まれているので、これを画像の中から検出することによってQRコードの位置を特定する。QRコードの検出は、既存の技術を利用してよい。QRコードの位置が特定されると、補助パターン検出部23は、補助パターンの配置領域内から補助パターンを検出する。本実施の形態の場合は、QRコードの画像の周囲に存在するクワイエットゾーンに含まれる補助パターンの配置領域内としているように、補助パターンの設定位置は予め決められている。本実施の形態では、QRコード内にある基準点と補助パターンとの位置関係が予め決められているものとしている。従って、補助パターン検出部23は、QRコードから、その基準点を特定し、その基準点からの位置関係に基づいて補助パターンの位置を特定する。基準点は、例えば、QRコードの位置検出パターンの中心座標としてもよいし、他の規則に従って決めてもよい。あるいは、QRコードから得られる基準点から補助パターン内にある基準点を特定し、その補助パターンにおける基準点からの位置関係によって補助パターンを検出するようにしてもよい。本実施の形態では、前述したように、クワイエットゾーン内に、図4に例示したように配置の補助パターンが検出される(ステップ130)。   The image acquisition unit 21 acquires an image including a QR code (step 110). This may be a read image of a medium such as a paper document by a scanner (not shown), or image data scanned and formed in advance may be read from the HDD 4 or acquired via a network. Subsequently, the QR code detection unit 22 detects a QR code from the images acquired by the image acquisition unit 21 and extracts an image of the QR code (step 120). In a two-dimensional bar code such as a QR code, since a position detection pattern is embedded in a code image at a predetermined position, the position of the QR code is specified by detecting this from the image. An existing technique may be used to detect the QR code. When the position of the QR code is specified, the auxiliary pattern detection unit 23 detects the auxiliary pattern from the auxiliary pattern arrangement region. In the case of the present embodiment, the setting position of the auxiliary pattern is determined in advance so as to be within the arrangement area of the auxiliary pattern included in the quiet zone existing around the QR code image. In this embodiment, it is assumed that the positional relationship between the reference point in the QR code and the auxiliary pattern is determined in advance. Therefore, the auxiliary pattern detection unit 23 specifies the reference point from the QR code, and specifies the position of the auxiliary pattern based on the positional relationship from the reference point. The reference point may be, for example, the center coordinates of the QR code position detection pattern, or may be determined according to other rules. Alternatively, a reference point in the auxiliary pattern may be specified from the reference point obtained from the QR code, and the auxiliary pattern may be detected based on the positional relationship from the reference point in the auxiliary pattern. In the present embodiment, as described above, the auxiliary pattern of the arrangement as shown in FIG. 4 is detected in the quiet zone (step 130).

取得された画像から補助パターンが検出されると、画像補整部24は、基準パターン記憶部26から基準パターンを読み出し、その基準パターンと、検出された補助パターンとを比較することによって、検出された補助パターンの変動量を検出する(ステップ140)。基準パターンと検出された補助パターンとのずれ(変動)は、読取精度の低い機器を用いた画像読取り、ハンディスキャナによる画像読取り、スキャナの原稿ガラスの状態、読取面が平らにできない冊子等の見開き原稿の読取り等により発生しうる。そして、変動量は、矩形形状であるQRコードの歪み、横の伸縮、濃度変動等によって表される。この変動量の検出方法については、追って詳述する。   When the auxiliary pattern is detected from the acquired image, the image correction unit 24 reads the reference pattern from the reference pattern storage unit 26 and compares the detected reference pattern with the detected auxiliary pattern. A variation amount of the auxiliary pattern is detected (step 140). The deviation (fluctuation) between the reference pattern and the detected auxiliary pattern is the spread of images such as image reading using a device with low reading accuracy, image reading with a handy scanner, the state of the original glass of the scanner, and a booklet whose reading surface cannot be flattened. It can be generated by reading a document. The variation amount is represented by a rectangular QR code distortion, lateral expansion / contraction, density variation, and the like. A method for detecting this variation will be described in detail later.

画像補整部24は、変動量を検出すると、その変動量により歪み補整(アフィン変換等)、膨張収縮、また多値スキャン時には濃度補整を行ってQRコード画像を補整する(ステップ150)。ここでは、QRコードを復号できればよいのでQRコードのみを補整するが、取得した画像全体を補整してもよい。   When detecting the fluctuation amount, the image correction unit 24 corrects the QR code image by performing distortion correction (affine transformation or the like), expansion / contraction, and density correction at the time of multi-value scanning based on the fluctuation amount (step 150). Here, only the QR code is corrected because it is only necessary to be able to decode the QR code, but the entire acquired image may be corrected.

そして、復号部25は、補整された画像からQRコードを復号する(ステップ160)。復号方法はQRコードの仕様に基づく。QRコードは既に検出されているので、その結果を用いる。画像補整の結果、QRコードの座標が変更になっている場合には、その座標情報も補整する。   Then, the decoding unit 25 decodes the QR code from the corrected image (step 160). The decoding method is based on the QR code specification. Since the QR code has already been detected, the result is used. If the coordinates of the QR code are changed as a result of the image correction, the coordinate information is also corrected.

以下、本実施の形態における補助パターン及び変動量の検出について説明する。   Hereinafter, detection of the auxiliary pattern and the variation amount in the present embodiment will be described.

本実施の形態では、補助パターンの機能として歪み測定、縦横伸縮測定及び濃度変動測定、という3つの機能を提供する。   In the present embodiment, three functions of distortion measurement, vertical / horizontal expansion / contraction measurement, and density fluctuation measurement are provided as functions of the auxiliary pattern.

図6は、本実施の形態において用いる歪み検出パターンの一例を示した図である。歪み検出パターンは、QRコード画像の歪みを検出するために用いる補助パターンである。本実施の形態の場合、クワイエットゾーン内に1モジュール幅で補助パターンを配置するので、補助パターンの所定の配置領域内に1×1モジュールの黒パッチを、QRコードのタイミングパターンに合わせて1モジュールの等間隔に並べることで歪み検出パターンを形成する。なお、図6では、黒パッチを横方向に並べているが、縦方向の配置領域には縦方向に並べることは言うまでもない。   FIG. 6 is a diagram showing an example of a distortion detection pattern used in the present embodiment. The distortion detection pattern is an auxiliary pattern used to detect distortion of the QR code image. In the case of the present embodiment, since the auxiliary pattern is arranged with a width of one module in the quiet zone, a black patch of 1 × 1 module is arranged in a predetermined arrangement area of the auxiliary pattern, and one module according to the timing pattern of the QR code. Are arranged at equal intervals to form a distortion detection pattern. In FIG. 6, the black patches are arranged in the horizontal direction, but it goes without saying that they are arranged in the vertical direction in the arrangement area in the vertical direction.

図7は、検出された補助パターン(図においては「検出パターン」と称する)と基準パターンとを上下に並べて示した図である。QRコードのクワイエットゾーンには、基準パターンが描画されることになるが、前述した理由により検出パターンには歪みが発生しうる。図7に例示したように、歪みが発生している場合、検出パターンを構成する黒パッチは、整然と並んで検出されない。そこで、本実施の形態では、検出パターンの各黒パッチの中心座標を求め、この中心座標の並びと、基準パターンに含まれる黒パッチの中心座標の並び(通常は、直線)とを比較することによって変動量を検出する。この場合の変動量は、周知の統計処理等を利用して分散等により表される変動量を算出してもよい。なお、図7に示したような横並びの黒パッチによる基準パターンは、横方向の歪みのみを検出するので、縦方向の歪みを検出するには、縦に並んだ黒パッチによる基準パターンを補助パターンの配置領域34に配置すればよい。また、本実施の形態では、黒パッチの中心座標を用いて変動量を検出するようにしたが、例えば黒パッチの左上の角のように他の基準点を用いるようにしてもよい。   FIG. 7 is a diagram in which the detected auxiliary pattern (referred to as “detection pattern” in the figure) and the reference pattern are arranged one above the other. Although the reference pattern is drawn in the quiet zone of the QR code, the detection pattern may be distorted for the reason described above. As illustrated in FIG. 7, when distortion occurs, the black patches constituting the detection pattern are not detected side by side. Therefore, in the present embodiment, the center coordinates of each black patch of the detection pattern are obtained, and the alignment of the center coordinates is compared with the alignment (usually a straight line) of the center coordinates of the black patches included in the reference pattern. The variation is detected by. In this case, the fluctuation amount may be calculated by a variance or the like using a well-known statistical process. Note that the reference pattern using the black patches arranged side by side as shown in FIG. 7 detects only the distortion in the horizontal direction. Therefore, in order to detect the distortion in the vertical direction, the reference pattern using the black patches arranged in the vertical direction is used as the auxiliary pattern. It may be arranged in the arrangement area 34. In the present embodiment, the variation amount is detected using the center coordinates of the black patch. However, for example, another reference point such as the upper left corner of the black patch may be used.

なお、図6に示した黒パッチは、1×nモジュール(nは正整数)で形成してもよいし、必ずしも一定の間隔で配置しなくてもよい。また、色も黒に限定する必要はない。ただ、歪み検出パターンにおける黒パッチの位置、形状(大きさ)が事前に求められ基準パターン記憶部26に登録されていればよい。   Note that the black patches shown in FIG. 6 may be formed by 1 × n modules (n is a positive integer) or may not necessarily be arranged at regular intervals. Also, the color need not be limited to black. However, the position and shape (size) of the black patch in the distortion detection pattern may be obtained in advance and registered in the reference pattern storage unit 26.

次に、縦横伸縮測定のための補助パターンについて説明するが、この補助パターンは、コード画像の伸縮を検出するための補助パターンであるが、この伸縮検出パターンは、図6に示したのと同じパターンで形成してよい。つまり、伸縮検出パターンと歪み検出パターンとは兼用してもよい。なお、兼用したときの補助パターンは、「歪み伸縮検出パターン」と称することにする。図8は、基準パターンと、その上下に検出パターンを並べて示した図である。検出パターン(収縮)は、例えば読取画像がかすんでしまうようなスキャナを使用することで形成されうるが、基準パターンと比較して幅の小さいパターンで検出される。一方、検出パターン(膨張)は、例えば読取画像が黒ずんでしまうようなスキャナを使用することで形成されうるが、基準パターンと比較して幅の広いパターンで検出される。この場合の変動量は、辺の長さの比率等により表される変動量を算出してもよい。なお、図8に示したような横並びの黒パッチによる基準パターンは、横方向の伸縮のみを検出するので、縦方向の伸縮を検出するには、縦に並んだ黒パッチによる基準パターンを補助パターンの配置領域34に配置すればよい。黒パッチは、1×nモジュール(nは正整数)で形成してもよいし、必ずしも一定の間隔で配置しなくてもよい。また、色も黒に限定する必要はない。伸縮検出パターンにおける黒パッチの位置、形状(大きさ)が事前に求められ基準パターン記憶部26に登録されていればよい。   Next, an auxiliary pattern for measuring the vertical / horizontal expansion / contraction will be described. This auxiliary pattern is an auxiliary pattern for detecting the expansion / contraction of the code image. This expansion / contraction detection pattern is the same as that shown in FIG. You may form with a pattern. That is, the expansion / contraction detection pattern and the distortion detection pattern may be used together. The auxiliary pattern when used in combination is referred to as a “distortion expansion / contraction detection pattern”. FIG. 8 is a diagram showing a reference pattern and detection patterns arranged above and below the reference pattern. The detection pattern (shrinkage) can be formed by using, for example, a scanner that causes the read image to be hazy, but is detected as a pattern having a smaller width than the reference pattern. On the other hand, the detection pattern (expansion) can be formed by using, for example, a scanner that darkens the read image, but is detected as a wider pattern than the reference pattern. In this case, the fluctuation amount may be calculated as a fluctuation amount represented by a ratio of side lengths or the like. In addition, since the reference pattern based on the black patches arranged side by side as shown in FIG. 8 detects only the expansion and contraction in the horizontal direction, in order to detect the expansion and contraction in the vertical direction, the reference pattern based on the black patches arranged in the vertical direction is used as the auxiliary pattern. It may be arranged in the arrangement area 34. The black patches may be formed by 1 × n modules (n is a positive integer) or may not necessarily be arranged at a constant interval. Also, the color need not be limited to black. The position and shape (size) of the black patch in the expansion / contraction detection pattern may be obtained in advance and registered in the reference pattern storage unit 26.

図9及び図10は、それぞれ本実施の形態において用いる濃度変動検出パターンの一例を示した図である。なお、図9,10には、濃度変動検出パターン42,44の両端に配置した歪み伸縮検出パターン41,43も合わせて図示している。濃度変動検出パターンは、コード画像の濃度の変動を検出するために用いる補助パターンである。本実施の形態の場合、2種類の濃度変動検出パターンを提供する。   FIG. 9 and FIG. 10 are diagrams showing examples of density fluctuation detection patterns used in the present embodiment. 9 and 10 also show distortion expansion / contraction detection patterns 41 and 43 arranged at both ends of the density fluctuation detection patterns 42 and 44, respectively. The density fluctuation detection pattern is an auxiliary pattern used for detecting the density fluctuation of the code image. In the case of this embodiment, two types of density fluctuation detection patterns are provided.

このうち、濃度変動検出パターン42は、図9に示したようにグラデーションタイプのパッチであり、1×nモジュールの黒パッチを採用し、この黒パッチ内の画素値を、一方から他方に行くに連れ(図9では右から左)、濃度が徐々に薄くなるように、つまり画素値が徐々に小さくなるように濃度に勾配を付ける。グラデーションタイプの濃度変動検出パターンの場合、検出パターンを例えば2値化すると、濃度の濃い検出パターンは、基準パターンと比較して黒部分が長くなり、濃度の薄い検出パターンは、基準パターンと比較して黒部分が短くなる。この長さを変動量として検出してもよい。なお、パッチの色は、黒に限定する必要はない。   Among these, the density variation detection pattern 42 is a gradation type patch as shown in FIG. 9, and a black patch of 1 × n module is adopted, and pixel values in this black patch are changed from one to the other. The gradient is added so that the density gradually decreases, that is, the pixel value gradually decreases. In the case of a gradation type density fluctuation detection pattern, if the detection pattern is binarized, for example, the darker detection pattern has a longer black portion than the reference pattern, and the lighter detection pattern has a lower density than the reference pattern. The black part becomes shorter. You may detect this length as a fluctuation amount. Note that the color of the patch need not be limited to black.

もう1つの濃度変動検出パターン44は、図10に示したように1×1モジュールを1モジュールの等間隔に並べ、つまり黒パッチを分離した状態で並べ、そして一方から他方に行くに連れ(図10では右から左)、黒パッチの濃度が徐々に連続的に薄くなるように、つまり黒パッチの画素値が徐々に小さくなるように濃度に勾配を付ける。   As shown in FIG. 10, the other density fluctuation detection pattern 44 has 1 × 1 modules arranged at equal intervals of one module, that is, arranged in a state where black patches are separated, and from one to the other (see FIG. 10 from right to left), the density is graded so that the density of the black patch gradually decreases continuously, that is, the pixel value of the black patch gradually decreases.

分離タイプの濃度変動検出パターンの場合、検出パターンを例えば2値化すると、濃度の濃い検出パターンは、黒パッチの検出数が基準パターンと比較して多くなり、濃度の薄い検出パターンは基準パターンと比較して少なくなる。この黒パッチの検出数を変動量として検出してもよい。黒パッチは、1×nモジュール(nは正整数)で形成してもよいし、必ずしも一定の間隔で配置しなくてもよい。また、色も黒に限定する必要はない。   In the case of the separation type density fluctuation detection pattern, for example, when the detection pattern is binarized, the detection pattern with a high density has a larger number of detections of black patches than the reference pattern, and the detection pattern with a low density is a reference pattern. Compared to less. The number of detected black patches may be detected as a fluctuation amount. The black patches may be formed by 1 × n modules (n is a positive integer) or may not necessarily be arranged at a constant interval. Also, the color need not be limited to black.

なお、図9に示したような横方向に長い濃度変動検出パターン及び図10に示したような横並びの黒パッチによる基準パターンは、横方向の濃度変動のみを検出するので、縦方向の濃度変動を検出するには、横方向に長い濃度変動検出パターン又は縦に並んだ黒パッチによる基準パターンを補助パターンの配置領域34に配置すればよい。濃度変動検出パターンにおける黒パッチの位置及び画素値が事前に求められ基準パターン記憶部26に登録されていればよい。   It should be noted that the horizontal long density fluctuation detection pattern as shown in FIG. 9 and the reference pattern with the horizontal black patches as shown in FIG. 10 detect only the horizontal density fluctuation, so that the vertical density fluctuation is detected. In order to detect this, a density variation detection pattern that is long in the horizontal direction or a reference pattern that is formed by vertically arranged black patches may be arranged in the auxiliary pattern arrangement region 34. The position and pixel value of the black patch in the density variation detection pattern may be obtained in advance and registered in the reference pattern storage unit 26.

なお、歪み検出パターンと伸縮検出パターンとを兼用してもよいことについては前述したが、濃度が濃い場合などの条件のもとでは、濃度変動検出パターンを他の検出パターンと兼用することは可能である。   As described above, the strain detection pattern and the expansion / contraction detection pattern may be used together. However, the density variation detection pattern can be used as another detection pattern under conditions such as when the density is high. It is.

図11は、補助パターンの配置領域に配置する補助パターンの配置の例を示した図である。図11では、点線で歪み伸縮検出パターン用の配置領域を、実線で濃度変動検出パターン用の配置領域を、それぞれ示している。図11(a)は、QRコードの位置検出パターンがある角部に濃度変動検出パターンを、濃度変動検出パターンの間に歪み伸縮検出パターンを配置する場合の例である。一方、図11(b)は、その逆のパターンである。図11(c)は、歪み伸縮検出パターンと濃度変動検出パターンとをそれぞれ縦と横に配置した例である。連続した配置領域を用意したいときに好適である。図11(d)は、歪み伸縮検出パターンのみを配置した例である。濃度変動が極めて少ない二値プリントスキャンが前提になっている場合には好適である。短いQRコードの場合にも有効である。この逆に濃度変動検出パターンのみを配置してもよい。二次元バーコード読取装置20は、このように少なくとも1つの補助パターンが配置されたQRコードを読み取る。図11(e)は、縦と横の各一辺のみに濃度変動検出パターンを配置した例である。図11(f)は、変動量を検出する上で機能を最小限にまとめた例であって、縦と横の辺に部分的に濃度変動検出パターンを、横の辺に部分的に歪み伸縮検出パターンを配置した例である。   FIG. 11 is a diagram illustrating an example of the arrangement of auxiliary patterns arranged in the auxiliary pattern arrangement area. In FIG. 11, the arrangement area for the distortion expansion / contraction detection pattern is indicated by a dotted line, and the arrangement area for the density fluctuation detection pattern is indicated by a solid line. FIG. 11A shows an example in which a density fluctuation detection pattern is arranged at a corner where a QR code position detection pattern is located, and a distortion expansion / contraction detection pattern is arranged between the density fluctuation detection patterns. On the other hand, FIG. 11B shows the reverse pattern. FIG. 11C is an example in which a distortion expansion / contraction detection pattern and a density fluctuation detection pattern are arranged vertically and horizontally, respectively. This is suitable when it is desired to prepare a continuous arrangement region. FIG. 11D shows an example in which only a distortion expansion / contraction detection pattern is arranged. This is suitable when a binary print scan with very little density fluctuation is assumed. This is also effective for short QR codes. Conversely, only the density fluctuation detection pattern may be arranged. The two-dimensional barcode reader 20 reads the QR code on which at least one auxiliary pattern is arranged in this way. FIG. 11E shows an example in which density variation detection patterns are arranged on only one side in the vertical and horizontal directions. FIG. 11F shows an example in which the functions are minimized in detecting the amount of variation. The density variation detection pattern is partially applied to the vertical and horizontal sides, and the distortion is expanded and contracted partially to the horizontal sides. This is an example in which detection patterns are arranged.

本実施の形態では、以上のように補助パターンを配置するQRコード付近の予め決められた領域として、クワイエットゾーンを例にして説明した。ただ、補助パターンは、このクワイエットゾーンに限定する必要はない。例えば、QRコードが設けられた文書画像内であれば、どこに配置してもかまわない。もちろん、QRコードが受ける歪み等に近い変動を認識するためにはQRコードの付近に配置することが好適である。   In the present embodiment, a quiet zone has been described as an example of the predetermined area near the QR code in which the auxiliary pattern is arranged as described above. However, the auxiliary pattern need not be limited to this quiet zone. For example, it may be placed anywhere within a document image provided with a QR code. Of course, in order to recognize a variation close to the distortion or the like that the QR code receives, it is preferable that the QR code is arranged in the vicinity of the QR code.

また、補助パターンの配置を検出するために、本実施の形態では、QRコード内に基準点を設定した。この基準点もQRコード内に限定する必要はなく、QRコードが設けられた文書画像内であれば、どこに配置してもかまわない。もちろん、補助パターンが配置されるQRコードの付近やQRコード内であることが好適である。   Further, in this embodiment, a reference point is set in the QR code in order to detect the arrangement of the auxiliary pattern. The reference point need not be limited to the QR code, and may be arranged anywhere within the document image provided with the QR code. Of course, it is preferable that it is in the vicinity of the QR code where the auxiliary pattern is arranged or in the QR code.

QRコードには、以上説明したように歪み検出パターン、伸縮検出パターン又は濃度変動検出パターンの少なくともいずれか2つを組み合わせて配置した。本実施の形態では、各補助パターンについてパッチの配置例をいくつか示したが、このパッチの配置パターンは、QRコードのバージョン(型番)、QRコードを使用する既知の条件、例えば、QRコードを付加する画像、QRコードを印刷するプリンタ、あるいはQRコードを読み取るスキャナ等の各特性に適合させて設定すればよい。   As described above, the QR code is arranged by combining at least any two of the strain detection pattern, the expansion / contraction detection pattern, and the density variation detection pattern. In this embodiment, several patch arrangement examples are shown for each auxiliary pattern. However, this patch arrangement pattern includes a QR code version (model number), a known condition using the QR code, for example, a QR code. What is necessary is just to set according to each characteristic, such as an image to add, a printer which prints QR code, or a scanner which reads QR code.

また、本実施の形態では、二次元バーコードとしてQRコードを例にして説明したが、これに限定しない。   In the present embodiment, the QR code is described as an example of the two-dimensional barcode, but the present invention is not limited to this.

1 CPU、2 ROM、3 RAM、4 ハードディスクドライブ(HDD)、5 HDDコントローラ、6 マウス、7 キーボード、8 ディスプレイ、9 入出力コントローラ、10 ネットワークコントローラ、11 内部バス、20 二次元バーコード読取装置、21 画像取得部、22 QRコード検出部、23 補助パターン検出部、24 画像補整部、25 復号部、26 基準パターン記憶部。   1 CPU, 2 ROM, 3 RAM, 4 Hard disk drive (HDD), 5 HDD controller, 6 Mouse, 7 Keyboard, 8 Display, 9 Input / output controller, 10 Network controller, 11 Internal bus, 20 Two-dimensional barcode reader, 21 image acquisition unit, 22 QR code detection unit, 23 auxiliary pattern detection unit, 24 image correction unit, 25 decoding unit, 26 reference pattern storage unit.

Claims (7)

二次元バーコードを含む画像を取得する取得手段と、
前記取得手段により取得された画像から予め決められた領域内にある補助パターンであって、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか1つを含む補助パターンを検出する補助パターン検出手段と、
前記領域内に設定される補助パターンを基準パターンとして記憶する基準パターン記憶手段と、
前記補助パターン検出手段により検出された補助パターンと前記基準パターンとを比較することにより二次元バーコードの画像の変動量を検出する変動量検出手段と、
前記変動量検出手段により検出された変動量に従って前記取得手段により取得された画像に含まれる二次元バーコードの画像を補整する補整手段と、
を有することを特徴とする二次元バーコード読取装置。
An acquisition means for acquiring an image including a two-dimensional barcode;
An auxiliary pattern in a predetermined region from the image acquired by the acquisition means, which is a distortion detection pattern for detecting distortion of the code image, and a plurality of patches having predetermined positions and shapes are arranged. Detects variations in the density of a stretch detection pattern or code image that is formed by arranging a plurality of patches having predetermined positions and shapes, and is a stretch detection pattern for detecting the formed strain detection pattern and the stretch of the code image. An auxiliary pattern detection means for detecting an auxiliary pattern including at least one of density fluctuation detection patterns formed so that the density gradually decreases from one to the other .
Reference pattern storage means for storing auxiliary patterns set in the region as reference patterns;
A fluctuation amount detecting means for detecting a fluctuation amount of an image of a two-dimensional barcode by comparing the auxiliary pattern detected by the auxiliary pattern detection means and the reference pattern;
Correction means for correcting the image of the two-dimensional barcode included in the image acquired by the acquisition means according to the fluctuation amount detected by the fluctuation amount detection means;
A two-dimensional bar code reader.
前記補助パターン検出手段は、矩形形状であるコード画像に対して水平方向及び垂直方向の双方に設けられている補助パターンを検出することを特徴とする請求項1に記載の二次元バーコード読取装置。   2. The two-dimensional barcode reader according to claim 1, wherein the auxiliary pattern detecting unit detects auxiliary patterns provided in both a horizontal direction and a vertical direction with respect to a rectangular code image. . コンピュータを、
二次元バーコードを含む画像を取得する取得手段、
前記取得手段により取得された画像から予め決められた領域内にある補助パターンであって、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか1つを含む補助パターンを検出する補助パターン検出手段、
前記補助パターン検出手段により検出された補助パターンと、前記領域内に設定される補助パターンの基準パターンとを比較することにより二次元バーコードの画像の変動量を検出する変動量検出手段、
前記変動量検出手段により検出された変動量に従って前記取得手段により取得された画像に含まれる二次元バーコードの画像を補整する補整手段、
として機能させるためのプログラム。
Computer
An acquisition means for acquiring an image including a two-dimensional barcode;
An auxiliary pattern in a predetermined region from the image acquired by the acquisition means, which is a distortion detection pattern for detecting distortion of the code image, and a plurality of patches having predetermined positions and shapes are arranged. Detects fluctuations in the density of an expansion / contraction detection pattern or code image formed by arranging a plurality of patches having predetermined positions and shapes, which are detection patterns for detecting the expansion and contraction of the formed distortion detection code and code image. An auxiliary pattern detection means for detecting an auxiliary pattern including at least one of density fluctuation detection patterns formed so that the density gradually decreases from one to the other .
A fluctuation amount detection means for detecting a fluctuation amount of the image of the two-dimensional barcode by comparing the auxiliary pattern detected by the auxiliary pattern detection means with a reference pattern of the auxiliary pattern set in the region;
Correction means for correcting the image of the two-dimensional barcode included in the image acquired by the acquisition means according to the fluctuation amount detected by the fluctuation amount detection means;
Program to function as.
付近の予め決められた領域内に、コード画像の歪みを検出するための歪み検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された歪み検出パターン、コード画像の伸縮を検出するための伸縮検出パターンであって予め決められた位置及び形状のパッチを複数並べて形成された伸縮検出パターン又はコード画像の濃度の変動を検出するための濃度変動検出パターンであって一方から他方に行くに連れ濃度が徐々に薄くなるように形成された濃度変動検出パターンの少なくともいずれか2つを組み合わせて配置されたことを特徴とする二次元バーコード。 A distortion detection pattern for detecting distortion of a code image in a predetermined area in the vicinity, which is formed by arranging a plurality of patches having predetermined positions and shapes, and detecting expansion and contraction of the code image from one to the other a density variation detection pattern for detecting the variation in the concentration of the telescopic detection pattern at a pre-determined position and shape of the telescopic detection pattern or code image patches are formed by a plurality arranged for A two-dimensional barcode characterized by being arranged in combination with at least any two of density variation detection patterns formed so that the density gradually decreases with time . 前記領域は、クワイエットゾーン内であって前記各パターンを形成するモジュールがコード画像の領域と隣接しない位置に設けられることを特徴とする請求項4に記載の二次元バーコード。   5. The two-dimensional barcode according to claim 4, wherein the area is provided in a quiet zone at a position where a module for forming each pattern is not adjacent to an area of a code image. 前記領域は、矩形形状であるコード画像に対して水平方向及び垂直方向の双方に設けられることを特徴とする請求項4に記載の二次元バーコード。   The two-dimensional barcode according to claim 4, wherein the region is provided in both a horizontal direction and a vertical direction with respect to a rectangular code image. 請求項4乃至6のいずれか1項に記載の二次元バーコードが付加されたことを特徴とする媒体。   A medium to which the two-dimensional barcode according to any one of claims 4 to 6 is added.
JP2010036836A 2010-02-23 2010-02-23 Two-dimensional barcode reader, program, two-dimensional barcode and medium Expired - Fee Related JP5428935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010036836A JP5428935B2 (en) 2010-02-23 2010-02-23 Two-dimensional barcode reader, program, two-dimensional barcode and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010036836A JP5428935B2 (en) 2010-02-23 2010-02-23 Two-dimensional barcode reader, program, two-dimensional barcode and medium

Publications (2)

Publication Number Publication Date
JP2011175314A JP2011175314A (en) 2011-09-08
JP5428935B2 true JP5428935B2 (en) 2014-02-26

Family

ID=44688128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010036836A Expired - Fee Related JP5428935B2 (en) 2010-02-23 2010-02-23 Two-dimensional barcode reader, program, two-dimensional barcode and medium

Country Status (1)

Country Link
JP (1) JP5428935B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5895511B2 (en) * 2011-12-21 2016-03-30 富士ゼロックス株式会社 Two-dimensional code, recording device, identification device and program
JP6523588B1 (en) * 2017-12-25 2019-06-05 A・Tコミュニケーションズ株式会社 Duplication detection device, duplicate detection method, and program
WO2020157838A1 (en) * 2019-01-29 2020-08-06 A・Tコミュニケーションズ株式会社 Replica detection device, replica detection method, and program
JP7023524B2 (en) * 2019-04-25 2022-02-22 A・Tコミュニケーションズ株式会社 Duplication detection device, duplication detection method, and program
CN112651475B (en) * 2021-01-06 2022-09-23 北京字节跳动网络技术有限公司 Two-dimensional code display method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3017119U (en) * 1994-12-30 1995-10-24 アポシステム株式会社 Coded items
JP2005250865A (en) * 2004-03-04 2005-09-15 Fujinon Corp Color code, reader for color code and document presentation apparatus
JP2009540468A (en) * 2006-06-14 2009-11-19 ベリテック,インコーポレイティド Multidimensional symbology and related methods

Also Published As

Publication number Publication date
JP2011175314A (en) 2011-09-08

Similar Documents

Publication Publication Date Title
US7648072B2 (en) Two-dimensional code detection system and two-dimensional code detection program
US7478746B2 (en) Two-dimensional color barcode and method of generating and decoding the same
US8254683B2 (en) Code image processing method
US8331670B2 (en) Method of detection document alteration by comparing characters using shape features of characters
US9367782B2 (en) High capacity 2D color barcode and method for decoding the same
JP2010170539A5 (en)
JP5428935B2 (en) Two-dimensional barcode reader, program, two-dimensional barcode and medium
JP2009182957A (en) Printing and authentication of security documents on substrates
US9235743B2 (en) Image generating method, information processing method, and information processing device
JP6665595B2 (en) Character recognition device, method and program
JP2008084014A (en) Image area detection method, program, and apparatus
JP2009070061A (en) Two-dimensional code reading device, two-dimensional code reading method, two-dimensional code reading program, and recording medium
JP4658848B2 (en) Character string recognition method and character string recognition apparatus
JP6249240B2 (en) Image processing device
JP4208520B2 (en) Image processing apparatus, image processing method, program, and storage medium
CN113536822A (en) Two-dimensional code correction method and device and computer readable storage medium
JP5967000B2 (en) Information code reading system, information code reading device, information code
JP4910635B2 (en) Image processing apparatus and image processing program
JP4978460B2 (en) Bar code recognition apparatus and program
JP4832996B2 (en) Information detection device
US8432555B2 (en) Image processing apparatus, image processing method, computer-readable medium and computer data signal
JP2013061839A (en) Image processor, image processing method, image forming device and image processing program
JP6203069B2 (en) Image processing apparatus and image forming apparatus
US9007634B2 (en) Information processing device, information processing method, and computer program product
JP2008206037A (en) Image processing apparatus and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131011

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131016

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131118

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees