JP2007257360A - Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program - Google Patents
Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program Download PDFInfo
- Publication number
- JP2007257360A JP2007257360A JP2006081609A JP2006081609A JP2007257360A JP 2007257360 A JP2007257360 A JP 2007257360A JP 2006081609 A JP2006081609 A JP 2006081609A JP 2006081609 A JP2006081609 A JP 2006081609A JP 2007257360 A JP2007257360 A JP 2007257360A
- Authority
- JP
- Japan
- Prior art keywords
- dimensional code
- data
- cell
- data cell
- detected
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、2次元コード、2次元コード読み取り装置、及び、当該2次元コード読み取り装置に用いられる2次元コード読み取り用プログラムに関する。 The present invention relates to a two-dimensional code, a two-dimensional code reading device, and a two-dimensional code reading program used in the two-dimensional code reading device.
従来、バーコード等の1次元コードが利用されていているが、近年、より多くのデータを記憶させることができることから、2次元コードが利用され始めている。 Conventionally, a one-dimensional code such as a bar code has been used, but in recent years, since a larger amount of data can be stored, a two-dimensional code has begun to be used.
2次元コードは、より多くのデータを記憶させたいという要請に答えるものであるが、通常、記憶させるデータ量が多くなるほど、2次元コード全体の大きさ(外形)は、大きくなる。また、2次元コード全体の大きさをそのまま維持しつつ多くのデータを記憶させる場合には、各データ領域(例えば、単位セル)を小さくする必要があり、読み取り装置において読み取り不可能、又は、困難な程度に小さくなってしまうといった問題があった。 The two-dimensional code responds to a request to store more data. Usually, the larger the amount of data to be stored, the larger the size (outer shape) of the entire two-dimensional code. In addition, when a large amount of data is stored while maintaining the size of the entire two-dimensional code as it is, it is necessary to reduce each data area (for example, unit cell), which is impossible or difficult to read by the reading device. There was a problem that it would be too small.
特に、携帯電話機が備えるカメラを用いて2次元コードからデータを取得するという利用方法が近年ではよく用いられているが、2次元コードが大きすぎる場合には、離れて撮像しなければならず、見た目にもよくないといった問題があった。また、各データ領域が小さい場合には、2次元コードを認識することができず、データを取得することができないことがあるといった問題があった。 In particular, a method of acquiring data from a two-dimensional code using a camera provided in a mobile phone is often used in recent years, but if the two-dimensional code is too large, it must be imaged separately, There was a problem that it did not look good. In addition, when each data area is small, there is a problem that a two-dimensional code cannot be recognized and data cannot be obtained.
従来、複数のマクロモジュールから構成された矩形のコードパターンを備える2次元コードであって、マクロモジュールごとに、データコードワードと、当該マクロモジュールの位置を決定するクラスター番号が記憶された2次元コードが存在する(例えば、特許文献1参照)。 Conventionally, a two-dimensional code having a rectangular code pattern composed of a plurality of macro modules, in which a data code word and a cluster number for determining the position of the macro module are stored for each macro module (See, for example, Patent Document 1).
2次元コードは、通常、読み取られる際、その基準となる位置が読み取り装置において認識された上で読み取られるため、位置決め領域を減少させることにより、データ領域を確保することができる。しかしながら、特許文献1に記載の2次元バーコードでは、マクロモジュールごとにクラスター番号を記憶することで、2次元バーコード全体として、読み取りのための位置決め領域を減少させようとしているのであるが、各クラスター番号が記憶されている単元モジュールは、小さく、また、すべてのマクロモジュールにクラスター番号が記憶されているため、結局、位置決め領域を全体として減少させているとはいえず、データ領域を確保することができるとは言い難い。
When the two-dimensional code is read, it is usually read after the position serving as a reference is recognized by the reading device. Therefore, the data area can be secured by reducing the positioning area. However, in the two-dimensional barcode described in
また、特許文献1に記載の2次元バーコードでは、深い色(例えば、黒)と浅い色(例えば、白)とを用いることによりデータを2値化してデータコードワードとして記憶させているが、さらに単位当たりの面積により多くのデータを記憶させたいという要望をかなえるものではなかった。
Further, in the two-dimensional barcode described in
本発明は、上述した課題に鑑みてなされたものであり、その目的は、外形が大きくなることなく、より多くのデータを記憶させることが可能な2次元コード、及び、当該2次元コードを読み取る2次元コード読み取り装置を提供することにある。 The present invention has been made in view of the above-described problems, and an object of the present invention is to read a two-dimensional code capable of storing more data without increasing the outer shape and the two-dimensional code. The object is to provide a two-dimensional code reader.
以上のような目的を達成するために、本発明は、以下のようなものを提供する。
(1) 読み取る際の基準となる位置を示すシンボルと、
セルの分布パターンにより情報を表現するデータセルと
を備えた2次元コードであって、
上記データセルは、3以上の複数段階に予め設定されたしきい値のいずれかに対応する色を有する1又は複数の色付単位セルを含んで構成されていることを特徴とする2次元コード。
In order to achieve the above object, the present invention provides the following.
(1) a symbol indicating a reference position for reading;
A two-dimensional code comprising data cells representing information by a cell distribution pattern,
The two-dimensional code characterized in that the data cell includes one or a plurality of colored unit cells having a color corresponding to one of threshold values preset in three or more stages. .
(1)の発明によれば、読み取る際の基準となる位置を示すシンボルと、セルの分布パターンにより情報を表現するデータセルとを備えていて、上記データセルは、3以上の複数段階に予め設定されたしきい値のいずれかに対応する色を有する1又は複数の色付単位セルを含んで構成されている。従って、データを2値化する場合に比して多くのデータを、各単位セルに記憶させることができ、2次元コード全体として外形を大きくすることなく、より多くのデータを記憶させることが可能となる。
また、色付単位セル部分には、付加的な情報を記憶させ、その他の単位セル(例えば、白黒により表現された単位セル)部分には、主要な情報を記憶させる構成とした場合、従来の2次元コード読み取り装置(各単位セルの色を2値化してデータを読み取る2次元コード読み取り装置)を用いても、少なくとも主要な情報を読み取ることが可能とすることができる。
According to the invention of (1), a symbol indicating a reference position at the time of reading and a data cell expressing information by a cell distribution pattern are provided, and the data cell is previously divided into three or more stages. One or a plurality of colored unit cells having a color corresponding to one of the set threshold values are included. Therefore, more data can be stored in each unit cell than when data is binarized, and more data can be stored without increasing the outer shape of the entire two-dimensional code. It becomes.
In addition, when a configuration in which additional information is stored in the colored unit cell portion and main information is stored in the other unit cell (for example, unit cell expressed in black and white) portions, Even if a two-dimensional code reader (two-dimensional code reader for binarizing the color of each unit cell to read data) is used, at least main information can be read.
さらに、本発明は、以下のようなものを提供する。
(2) 上記(1)に記載の2次元コードを撮像可能な撮像手段と、
上記撮像手段により撮像される2次元コードのシンボル位置を検出するシンボル位置検出手段と、
上記シンボル位置検出手段により検出されたシンボル位置に基づいてデータセルの位置を検出するデータセル位置検出手段と、
上記データセル位置検出手段により位置が検出されたデータセルの各単位セルに割り当てられているしきい値を検出する検出手段と、
上記検出手段が検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る読取手段と
を備えたことを特徴とする2次元コード読み取り装置。
Furthermore, the present invention provides the following.
(2) Imaging means capable of imaging the two-dimensional code described in (1) above;
Symbol position detection means for detecting the symbol position of the two-dimensional code imaged by the imaging means;
Data cell position detecting means for detecting the position of the data cell based on the symbol position detected by the symbol position detecting means;
Detecting means for detecting a threshold value assigned to each unit cell of the data cell whose position is detected by the data cell position detecting means;
A two-dimensional code reading apparatus comprising: reading means for reading information of a two-dimensional code based on a threshold value of each unit cell detected by the detecting means.
(2)の発明によれば、撮像した2次元コードのシンボル位置を検出し、検出したシンボル位置に基づいてデータセルの位置を検出し、当該データセルの各単位セルに割り当てられているしきい値を検出し、検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る。ここで、しきい値は3以上の複数段階に予め設定されている。従って、例えば、白黒色のみからなる2次元コードに比して大きくなく、且つ、より多くのデータが記憶された色付単位セルを含む2次元コードを読み取ることが可能になる。 According to the invention of (2), the symbol position of the captured two-dimensional code is detected, the position of the data cell is detected based on the detected symbol position, and the threshold assigned to each unit cell of the data cell is detected. A value is detected, and information on the two-dimensional code is read based on the detected threshold value of each unit cell. Here, the threshold value is preset in a plurality of stages of 3 or more. Therefore, for example, it is possible to read a two-dimensional code including a colored unit cell that is not larger than a two-dimensional code composed of only monochrome colors and stores more data.
さらに、本発明は、以下のようなものを提供する。
(3) 上記(1)に記載の2次元コードを撮像可能な撮像手段と、
を備えた2次元コード読み取り装置を、
上記撮像手段により撮像される2次元コードのシンボル位置を検出するシンボル位置検出手段、
上記シンボル位置検出手段により検出されたシンボル位置に基づいてデータセルの位置を検出するデータセル位置検出手段、
上記データセル位置検出手段により位置が検出されたデータセルの各単位セルに割り当てられているしきい値を検出する検出手段、及び、
上記検出手段が検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る読取手段として機能させることを特徴とする2次元コード読み取り用プログラム。
Furthermore, the present invention provides the following.
(3) imaging means capable of imaging the two-dimensional code described in (1) above;
A two-dimensional code reader with
Symbol position detection means for detecting a symbol position of a two-dimensional code imaged by the imaging means;
Data cell position detecting means for detecting the position of the data cell based on the symbol position detected by the symbol position detecting means;
Detecting means for detecting a threshold value assigned to each unit cell of the data cell whose position is detected by the data cell position detecting means; and
A two-dimensional code reading program which functions as a reading means for reading information of a two-dimensional code based on a threshold value of each unit cell detected by the detecting means.
(3)の発明によれば、撮像した2次元コードのシンボル位置を検出し、検出したシンボル位置に基づいてデータセルの位置を検出し、当該データセルの各単位セルに割り当てられているしきい値を検出し、検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る。ここで、しきい値は3以上の複数段階に予め設定されている。従って、例えば、白黒色のみからなる2次元コードに比して大きくなく、且つ、より多くのデータが記憶された色付単位セルを含む2次元コードを読み取ることが可能になる。 According to the invention of (3), the symbol position of the captured two-dimensional code is detected, the position of the data cell is detected based on the detected symbol position, and the threshold assigned to each unit cell of the data cell is detected. A value is detected, and information on the two-dimensional code is read based on the detected threshold value of each unit cell. Here, the threshold value is preset in a plurality of stages of 3 or more. Therefore, for example, it is possible to read a two-dimensional code including a colored unit cell that is not larger than a two-dimensional code composed of only monochrome colors and stores more data.
本発明によれば、外形が大きくなることなく、より多くのデータを記憶させることが可能な2次元コード、及び、当該2次元コードを読み取る2次元コード読み取り装置を提供することが可能である。 According to the present invention, it is possible to provide a two-dimensional code that can store more data without increasing the outer shape, and a two-dimensional code reader that reads the two-dimensional code.
図1は、本発明に係る2次元コードの一例を示す図である。
2次元コード92は、矩形をしており、読み取る際の基準となる位置を示すシンボルと、セルの分布パターンにより情報を表現するデータセル102とから構成されている。読み取る際の基準となる位置を示すシンボルは、2次元コード92の3つの角部に配置された位置決めシンボル100A、100B、100Cと、図1右下に配置された、位置決め補助シンボル101とから構成されている。
FIG. 1 is a diagram showing an example of a two-dimensional code according to the present invention.
The two-
位置決めシンボル100(100A、100B、100C)は、詳しくは後述するが、データセル102の位置を検出するために用いられるものであり、位置決め補助シンボル101は、位置検出後のデータセル102に対して歪み等を補正するために用いられるものである。データセル102は、複数の単位セル103から構成されていて、白色又は黒色からなる通常単位セルと、白色又は黒色以外の色からなる色付単位セルとから構成されている。
The positioning symbol 100 (100A, 100B, 100C) is used for detecting the position of the
本実施形態では、色付単位セルが、赤色、青色、黄色のいずれかである場合について説明するが、本発明において色付単位セルは、これらの色に限定されるものではない。
また、本実施形態では、色付単位セルが複数ある場合について説明するが、本発明においては、1つであってもよい。
また、本実施形態では、データセル102には、通常単位セルが含まれる場合について説明するが、本発明においては、データセルの全部が色付単位セルから構成されていてもよい。
In the present embodiment, the case where the colored unit cell is any one of red, blue, and yellow will be described. However, in the present invention, the colored unit cell is not limited to these colors.
Moreover, although this embodiment demonstrates the case where there are two or more colored unit cells, in this invention, one may be sufficient.
Further, in the present embodiment, a case where the
単位セル103が有する各色は、所定の明度を有するように設定されている。本実施形態では、黒色、赤色、青色、黄色、白色の順に明度が高くなるように設定されている場合について説明するが、本発明においてはこれに限定されるものではない。
Each color of the
図2は、本発明に係る2次元コード読み取り装置の1実施形態である携帯電話機の一例を模式的に示す斜視図であり、図3は、図2に示した携帯電話機の内部構成を示すブロック図である。 FIG. 2 is a perspective view schematically showing an example of a mobile phone which is an embodiment of the two-dimensional code reader according to the present invention, and FIG. 3 is a block diagram showing an internal configuration of the mobile phone shown in FIG. FIG.
本実施形態では、本発明に係る2次元コード読み取り装置が携帯電話機である場合について説明するが、本発明においてはこれに限定されず、例えば、2次元コード読み取り専用の装置であってもよい。 In the present embodiment, the case where the two-dimensional code reading device according to the present invention is a mobile phone will be described. However, the present invention is not limited to this, and may be a device dedicated to two-dimensional code reading, for example.
携帯電話機10は、操作部12、液晶パネル14、CCDカメラ16、無線部18、音声回路20、スピーカ22、マイク24、送受信アンテナ26、不揮発性メモリ28、マイクロコンピュータ30及び二次電池32を備えている。
The
無線部18は、マイクロコンピュータ30により制御されて、送受信アンテナ26を通じて電波を媒体として基地局に対して送受信する。音声回路20は、無線部18からマイクロコンピュータ30を通じて出力された受信信号をスピーカ22に出力するとともに、マイク24から出力された音声信号を送信信号としてマイクロコンピュータ30を通じて無線部18に出力する。
The
スピーカ22は、音声回路20から出力された受信信号を受信音声に変換して出力し、マイク24は、操作者から発せられた送信音声を音声信号に変換して音声回路20に出力する。
CCDカメラ26は、2次元コード92等の被写体を撮像可能であり、撮像して得られた画像データは不揮発性メモリ28に記憶される。本実施形態では、撮像手段としてCCDカメラを用いる場合について説明するが、本発明における撮像手段は、特に限定されるものではなく、例えば、CMOSセンサカメラ等を挙げることができる。
The
The
液晶パネル14は、例えば、操作部12を介して入力された文字、CCDカメラ16により撮像して得られた画像、送受信アンテナ26を介して受信したメール文面や画像等を表示する。
The
二次電池32は、各回路に電力を供給する。マイクロコンピュータ30は、CPU、ROM及びRAMから構成されたもので、例えば、電話の発着信処理、電子メールの作成送受信処理、インターネット処理等を行う。なお、電子メールの送受信及びインターネットによるデータの送受信は、マイクロコンピュータ30が無線部18及び送受信アンテナ26を介して行う。
The
不揮発性メモリ28は、例えば、操作部12を介して入力された電子メールデータ、CCDカメラ16が2次元コード92を撮像して得られた画像データ等の各種データや各種プログラムを不揮発的に記憶する。
The
また、不揮発メモリ28には、2次元コード92からデータを取得するための2次元コード読み取り用プログラムが記憶されている。
本実施形態では、2次元コード読み取り用プログラムが不揮発メモリ28に予め記憶されている(プレインストールされている)場合について説明するが、本発明において2次元コード読み取り用プログラムは、例えば、サーバ等からインターネットを介してダウンロードする等、外部から取得することとしてもよい。
The
In the present embodiment, a case where the two-dimensional code reading program is stored in advance (preinstalled) in the
マイクロコンピュータ30は、2次元コード読み取り用プログラムを不揮発メモリ28から読み出して実行することにより、下記(A)〜(D)のように機能する。
The
(A)マイクロコンピュータ30は、CCDカメラ16により撮像される2次元コード92の位置決めシンボル100を検出する。
(B)マイクロコンピュータ30は、検出された位置決めシンボル100に基づいてデータセル102の位置を検出する。
(C)マイクロコンピュータ30は、位置が検出されたデータセル102の各単位セル103に割り当てられているしきい値を検出する。
(D)マイクロコンピュータ30は、検出した各単位セル103のしきい値に基づいて、2次元コードの情報を読み取る。
(A) The
(B) The
(C) The
(D) The
図4は、携帯電話機において行われる2次元コード認識処理を示すフローチャートである。
まず、携帯電話機10が備えるマイクロコンピュータ30は、操作部12を介して入力された指示に基づいて、撮像手段としてのCCDカメラ16を駆動させ、2次元コード92を撮像する(ステップS10)。
FIG. 4 is a flowchart showing a two-dimensional code recognition process performed in the mobile phone.
First, the
次に、マイクロコンピュータ30は、ステップS10において得られた画像データに対して2値化処理を行い、各ドットを“0”又は“1”に置き換える(ステップS11)。
Next, the
次に、マイクロコンピュータ30は、2次元コード92の周辺外形を囲む包絡線(周囲線)作成を行う(ステップS12)。この処理において、マイクロコンピュータ30は、2値化処理した画像の外周に存在する複数のセルを接続して、2次元コード(画像)を取り囲む包絡線を作成する。具体的には、最も外周に存在する黒セルを見つけて、順次隣接する黒セル間を接続する。
Next, the
次に、ステップS13において、マイクロコンピュータ30は、2次元コード92の4頂点を抽出する。この処理において、マイクロコンピュータ30は、包絡線で囲まれた多角形の内角を調査する。2次元コード92の角部の内角は略90度の値を示すことから、このことより4頂点を抽出するのである。
Next, in step S <b> 13, the
次に、ステップS14において、マイクロコンピュータ30は、4頂点の位置に基づいて、位置決めシンボル100A、位置決めシンボル100B及び位置決めシンボル100Cを検出する。この処理を実行するとき、マイクロコンピュータ30は、位置決めシンボル100の位置を検出するシンボル位置検出手段として機能する。
Next, in step S14, the
次に、ステップS15において、マイクロコンピュータ30は、位置決めシンボル100の位置に基づいてデータセル102の位置を検出する。この処理を実行するとき、マイクロコンピュータ30は、位置決めシンボル100の位置に基づいてデータセル102の位置を検出するデータセル位置検出手段として機能する。
なお、ステップS12〜ステップS15の処理は、2値化処理したデータを用いて実行され、ステップS16移行の処理は、ステップS10において得られた(2値化処理される前の)画像データを用いて行われる。
Next, in step S <b> 15, the
Note that the processing in steps S12 to S15 is executed using the binarized data, and the processing in step S16 is performed using the image data obtained in step S10 (before the binarization processing). Done.
次に、マイクロコンピュータ30は、位置を検出したデータセル102に対してグレー処理を行い、白黒の濃度階調に置き換え(ステップS16)、多値化マトリックスデータを生成する(ステップS17)。この際、位置決め補助シンボル101を参照し、位置検出後のデータセル102に対して歪み等を補正して、多値化マトリックスデータを生成する。
Next, the
ここで、多値化マトリックスデータの生成方法について説明する。
図5は、多値化マトリックスデータの生成方法について説明するための図である。
図5においては、左から順に黒色、赤色、青色、黄色、白色の単位セルを示しており、グラフの縦軸は、各単位セルの反射率を示している。
黒色の単位セルは、反射率が最も低く、第1しきい値より低い。従って、この場合、単位セルが示す値は“0”と判断される。
また、赤色の単位セルは、反射率が2番目に低く、第1しきい値よりは高いが、第2しきい値より低い。従って、この場合、単位セルが示す値は“1”と判断される。
また、青色の単位セルは、反射率が3番目に低く、第2しきい値よりは高いが、第3しきい値より低い。従って、この場合、単位セルが示す値は“2”と判断される。
また、黄色の単位セルは、反射率が4番目に低く、第3しきい値よりは高いが、第4しきい値より低い。従って、この場合、単位セルが示す値は“3”と判断される。
また、白色の単位セルは、反射率が一番高く、第4しきい値より高い。従って、この場合、単位セルが示す値は“4”と判断される。
上記の処理を各単位セルについて行い、数値化することにより、多値化マトリックスデータを生成する。ステップS17の処理を実行するとき、マイクロコンピュータ30は、データセル102の各単位セルに割り当てられているしきい値を検出する検出手段として機能する。
Here, a method for generating multi-value matrix data will be described.
FIG. 5 is a diagram for explaining a method of generating multi-value matrix data.
In FIG. 5, black, red, blue, yellow, and white unit cells are shown in order from the left, and the vertical axis of the graph indicates the reflectance of each unit cell.
The black unit cell has the lowest reflectance and is lower than the first threshold value. Therefore, in this case, the value indicated by the unit cell is determined to be “0”.
The red unit cell has the second lowest reflectance, which is higher than the first threshold but lower than the second threshold. Therefore, in this case, the value indicated by the unit cell is determined to be “1”.
The blue unit cell has the third lowest reflectance, which is higher than the second threshold value but lower than the third threshold value. Therefore, in this case, the value indicated by the unit cell is determined to be “2”.
Further, the yellow unit cell has the fourth lowest reflectance, which is higher than the third threshold value but lower than the fourth threshold value. Therefore, in this case, the value indicated by the unit cell is determined to be “3”.
Further, the white unit cell has the highest reflectance and is higher than the fourth threshold value. Therefore, in this case, the value indicated by the unit cell is determined to be “4”.
The above processing is performed for each unit cell and digitized to generate multi-value matrix data. When executing the process of step S <b> 17, the
次に、マイクロコンピュータ30は、多値化マトリックスデータをデコードし(ステップS18)、データを生成する(ステップS19)。その後、本サブルーチンを終了する。
その結果、携帯電話機10の液晶パネル14には、デコードされたデータが表示されることになる。
Next, the
As a result, the decoded data is displayed on the
本実施形態では、位置決めまでの処理(ステップS12〜ステップS15の処理)については、2値化したデータを用い、位置決めをした後に多値化したデータを用いる場合について説明したが、本発明においては、画像撮像後、まず、多値化処理を行い、その後、位置決め等の処理を行うこととしてもよい。 In the present embodiment, the processing up to positioning (the processing from step S12 to step S15) has been described using binarized data and using multi-valued data after positioning, but in the present invention, After image capturing, first, multilevel processing may be performed, and then processing such as positioning may be performed.
上述した実施形態では、データセル102に対してグレー処理を行い、白黒の濃度階調に置き換えた後、多値化マトリックスデータを生成する場合について説明したが、本発明においては、グレー処理を行わず、各単位セルの色を、所定の基準(例えば、シアン、マゼンタ、イエローの3原色)で色分解して各色成分の濃淡階調を算出し、この濃淡階調により多値化マトリックスデータを生成することとしてもよい。以下、この場合についての2次元コード認識処理について説明する。
In the above-described embodiment, a case has been described in which multi-value matrix data is generated after gray processing is performed on the
図6は、携帯電話機において行われる他の実施形態に係る2次元コード認識処理を示すフローチャートである。
ステップS40〜ステップS45の処理については、図4に示したステップS10〜ステップS15と同様であるので、ここでの説明は省略する。
FIG. 6 is a flowchart showing a two-dimensional code recognition process according to another embodiment performed in the mobile phone.
Since the processing from step S40 to step S45 is the same as that from step S10 to step S15 shown in FIG. 4, the description thereof is omitted here.
ステップS46において、マイクロコンピュータ30は、位置を検出したデータセル102に対して色変換処理を行い、RGB(赤、緑、青)の元画像データ(データセル102の画像データ)を、CMY(シアン、マゼンタ、イエロー)の色に変換する。この色変換処理によって、撮像された際のRGB別の濃淡階調は、CMY別の濃淡階調に置き換えられる。以下では、CMYの各色の濃度階調が2階調である場合について説明するが、各色の濃度階調は、この例に限定されるものではない。
In step S46, the
次に、ステップS47において、マイクロコンピュータ30は、CMY別の濃度階調に基づいて多値化マトリックスデータを生成する。ここで、多値化マトリックスデータの生成方法について説明する。
Next, in step S47, the
図7は、しきい値決定テーブルを示す図である。
図7に示すように、CMYの各階調の組合せに対してしきい値が対応付けられている。例えば、Cの階調が“0”、Mの階調が“0”、Yの階調が“0”の組合せには、しきい値“0”が対応付けられている。また、例えば、Cの階調が“0”、Mの階調が“1”、Yの階調が“1”の組合せには、しきい値“3”が対応付けられている。
ステップS46において、マイクロコンピュータ30は、このしきい値決定テーブルを参照し、各単位セルを数値化することにより、多値化マトリックスデータを生成するのである。
FIG. 7 shows a threshold value determination table.
As shown in FIG. 7, threshold values are associated with combinations of CMY gradations. For example, a threshold value “0” is associated with a combination of C gradation “0”, M gradation “0”, and Y gradation “0”. For example, a threshold value “3” is associated with a combination of “0” for C, “1” for M, and “1” for Y.
In step S46, the
次に、マイクロコンピュータ30は、多値化マトリックスデータをデコードし(ステップS48)、データを生成する(ステップS49)。その後、本サブルーチンを終了する。その結果、携帯電話機10の液晶パネル14には、デコードされたデータが表示されることになる。
Next, the
以上、2次元コード92によれば、読み取る際の基準となる位置を示すシンボル(位置決めシンボル100、位置決め補助シンボル101)と、セルの分布パターンにより情報を表現するデータセル102とを備えていて、データセル102は、3以上の複数段階に予め設定されたしきい値のいずれかに対応する色を有する複数の色付単位セルを含んで構成されている。従って、データを2値化する場合に比して多くのデータを、各単位セル103に記憶させることができ、2次元コード全体として外形を大きくすることなく、より多くのデータを記憶させることが可能となる。
As described above, according to the two-
また、2次元コード読み取り用プログラムを用いた携帯電話機10によれば、撮像した2次元コード92の位置決めシンボル100の位置を検出し、検出した位置決めシンボル100の位置に基づいてデータセル102の位置を検出し、データセル102の各単位セル103に割り当てられているしきい値を検出し、検出した各単位セル103のしきい値に基づいて、2次元コード92の情報を読み取る。ここで、しきい値は3以上の複数段階に予め設定されている。従って、例えば、白黒色のみからなる2次元コードに比して大きくなく、且つ、より多くのデータが記憶された色付単位セルを含む2次元コードを読み取ることが可能になる。
Further, according to the
本発明における2次元コードは、上述したような2次元コード92に限定されず、以下のような2次元コードであってもよい。
The two-dimensional code in the present invention is not limited to the two-
図8は、本発明に係る他の2次元コードの一例を示す図である。
2次元コード122は、略矩形をしており、読み取る際の基準となる位置を示すシンボルと、セルの分布パターンにより情報を表現するデータセル142とから構成されている。読み取る際の基準となる位置を示すシンボルは、2次元コード122の3つの角部に配置された位置決めシンボル140A、140B、140Cと、図1右下に配置された、位置決め補助シンボル141とから構成されている。
FIG. 8 is a diagram showing an example of another two-dimensional code according to the present invention.
The two-
位置決めシンボル140(140A、140B、140C)は、データセル122の位置を検出するために用いられるものであり、位置決め補助シンボル141は、位置検出後のデータセル142に対して歪み等を補正するために用いられるものである。データセル142は、複数の単位セル143から構成されていて、2次元コード122の周辺外形を囲む包絡線(周囲線)145の内部にある単位セルは、白色又は黒色からなる通常単位セルであり、包絡線145の外部にある単位セルは、白色又は黒色以外の色からなる色付単位セルである。
The positioning symbol 140 (140A, 140B, 140C) is used to detect the position of the
2次元コード122によれば、色付単位セル(包絡線145の外部にある単位セル)部分には、付加的な情報を記憶させ、その他の単位セル(包絡線145の内部にある単位セル)部分には、主要な情報を記憶させる構成とした場合、従来の2次元コード読み取り装置(各単位セルの色を2値化してデータを読み取る2次元コード読み取り装置)を用いても、少なくとも主要な情報を読み取ることが可能とすることができる。
According to the two-
以上、本発明の実施形態を説明したが、具体例を例示したに過ぎず、特に本発明を限定するものではなく、各手段等の具体的構成は、適宜設計変更可能である。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。 The embodiment of the present invention has been described above, but only specific examples are illustrated, and the present invention is not particularly limited. The specific configuration of each unit and the like can be appropriately changed in design. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.
10 携帯電話機
12 操作部
14 液晶パネル
18 無線部
28 不揮発性メモリ
30 マイクロコンピュータ
32 二次電池
92、122 2次元コード
100(100A、100B、100C)、140(140A、140B、140C) 位置決めシンボル
101、141 位置決め補助シンボル
102、142 データセル
103、143 単位セル
145 包絡線
DESCRIPTION OF
Claims (3)
セルの分布パターンにより情報を表現するデータセルと
を備えた2次元コードであって、
前記データセルは、3以上の複数段階に予め設定されたしきい値のいずれかに対応する色を有する1又は複数の色付単位セルを含んで構成されていることを特徴とする2次元コード。 A symbol indicating a reference position for reading;
A two-dimensional code comprising data cells representing information by a cell distribution pattern,
The two-dimensional code, wherein the data cell includes one or a plurality of colored unit cells having a color corresponding to one of threshold values preset in three or more stages. .
前記撮像手段により撮像される2次元コードのシンボル位置を検出するシンボル位置検出手段と、
前記シンボル位置検出手段により検出されたシンボル位置に基づいてデータセルの位置を検出するデータセル位置検出手段と、
前記データセル位置検出手段により位置が検出されたデータセルの各単位セルに割り当てられているしきい値を検出する検出手段と、
前記検出手段が検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る読取手段と
を備えたことを特徴とする2次元コード読み取り装置。 Imaging means capable of imaging the two-dimensional code according to claim 1;
Symbol position detection means for detecting a symbol position of a two-dimensional code imaged by the imaging means;
Data cell position detecting means for detecting the position of the data cell based on the symbol position detected by the symbol position detecting means;
Detecting means for detecting a threshold value assigned to each unit cell of the data cell whose position is detected by the data cell position detecting means;
A two-dimensional code reading apparatus comprising: reading means for reading information of a two-dimensional code based on a threshold value of each unit cell detected by the detecting means.
を備えた2次元コード読み取り装置を、
前記撮像手段により撮像される2次元コードのシンボル位置を検出するシンボル位置検出手段、
前記シンボル位置検出手段により検出されたシンボル位置に基づいてデータセルの位置を検出するデータセル位置検出手段、
前記データセル位置検出手段により位置が検出されたデータセルの各単位セルに割り当てられているしきい値を検出する検出手段、及び、
前記検出手段が検出した各単位セルのしきい値に基づいて、2次元コードの情報を読み取る読取手段として機能させることを特徴とする2次元コード読み取り用プログラム。 A two-dimensional code reader provided with an imaging means capable of imaging the two-dimensional code according to claim 1,
Symbol position detection means for detecting a symbol position of a two-dimensional code imaged by the imaging means;
Data cell position detecting means for detecting the position of the data cell based on the symbol position detected by the symbol position detecting means;
Detecting means for detecting a threshold value assigned to each unit cell of the data cell whose position is detected by the data cell position detecting means; and
A two-dimensional code reading program which functions as a reading means for reading information of a two-dimensional code based on a threshold value of each unit cell detected by the detecting means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006081609A JP2007257360A (en) | 2006-03-23 | 2006-03-23 | Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006081609A JP2007257360A (en) | 2006-03-23 | 2006-03-23 | Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007257360A true JP2007257360A (en) | 2007-10-04 |
Family
ID=38631533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006081609A Pending JP2007257360A (en) | 2006-03-23 | 2006-03-23 | Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007257360A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855514A (en) * | 2012-08-23 | 2013-01-02 | 晏华艳 | Bidimensional-barcode-based anti-counterfeiting identification method and system |
US9361708B2 (en) | 2012-12-18 | 2016-06-07 | Fujitsu Limited | Image processing device, image processing method |
JP2020002030A (en) * | 2018-06-26 | 2020-01-09 | 株式会社Screenホールディングス | Tablet and tablet printing device |
-
2006
- 2006-03-23 JP JP2006081609A patent/JP2007257360A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855514A (en) * | 2012-08-23 | 2013-01-02 | 晏华艳 | Bidimensional-barcode-based anti-counterfeiting identification method and system |
US9361708B2 (en) | 2012-12-18 | 2016-06-07 | Fujitsu Limited | Image processing device, image processing method |
JP2020002030A (en) * | 2018-06-26 | 2020-01-09 | 株式会社Screenホールディングス | Tablet and tablet printing device |
JP7089416B2 (en) | 2018-06-26 | 2022-06-22 | 株式会社Screenホールディングス | Tablets and tablet printing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101169872B1 (en) | Barcode detection based on morphological operations | |
US20050194445A1 (en) | Method and apparatus for recognizing code | |
US7227990B2 (en) | Color image processing device and color image processing method | |
JP4375322B2 (en) | Image processing apparatus, image processing method, program thereof, and computer-readable recording medium recording the program | |
JP2005509223A (en) | Apparatus and method for code recognition | |
JP4863346B2 (en) | Color image superimposed barcode generation method and apparatus | |
KR20100126417A (en) | Image capture device with integrated barcode scanning | |
JP2010288229A (en) | Image processing method, image processing apparatus, image forming apparatus, program and recording medium | |
US10373030B2 (en) | Image processing apparatus that executes halftone process on target image data including edge pixel | |
JP2007034625A (en) | Information display device | |
US7986838B2 (en) | Image processing apparatus and image processing method | |
JP2007257360A (en) | Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program | |
JP2009296150A (en) | Image processor, image conversion method and computer program | |
US10896344B2 (en) | Information processing apparatus, information processing method, and computer program | |
US9268998B2 (en) | Image determining apparatus, image processing system, and recording medium | |
JP2019008564A (en) | Multiplexed code, multiplexed code reader, multiplexed code reading method, and program | |
JP5337844B2 (en) | Region detection apparatus, region detection method, and program | |
WO2018061189A1 (en) | Information processing device, display method, reading method, and computer-readable non-transitory storage medium | |
JP4410257B2 (en) | Data conversion apparatus, data conversion method, and data conversion system | |
JP4653215B2 (en) | Code recognition method and apparatus, electronic apparatus, program, and storage medium | |
JP6293466B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium | |
JP2013131058A (en) | Two-dimensional code, recording device, position specification device, and device and program for identification | |
JP6296319B1 (en) | Information processing apparatus, display method, reading method, and computer-readable non-transitory storage medium | |
JP2004236157A (en) | Image processing device, image processing method, and image processing program | |
JP2005303584A (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20070831 |