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 PDF

Info

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
Application number
JP2006081609A
Other languages
Japanese (ja)
Inventor
Kazuaki Abe
一哲 安部
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.)
Universal Entertainment Corp
Original Assignee
Aruze 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 Aruze Corp filed Critical Aruze Corp
Priority to JP2006081609A priority Critical patent/JP2007257360A/en
Publication of JP2007257360A publication Critical patent/JP2007257360A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a two-dimensional code capable of storing a greater amount of data without increasing outer size. <P>SOLUTION: This two-dimensional code has: a symbol showing a position that is a reference when read; and a data cell expressing information by a distribution pattern of the cell. The data cell includes one or more colored unit cells each having a color corresponding to one of a threshold values preset to at least three stages. <P>COPYRIGHT: (C)2008,JPO&INPIT

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).

特開2005−267598号公報JP 2005-267598 A

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 Patent Document 1, the cluster number is stored for each macro module to reduce the positioning area for reading as a whole two-dimensional barcode. The unit module in which the cluster number is stored is small, and since the cluster number is stored in all the macro modules, it cannot be said that the positioning area is reduced as a whole, and the data area is secured. It's hard to say that you can.

また、特許文献1に記載の2次元バーコードでは、深い色(例えば、黒)と浅い色(例えば、白)とを用いることによりデータを2値化してデータコードワードとして記憶させているが、さらに単位当たりの面積により多くのデータを記憶させたいという要望をかなえるものではなかった。 Further, in the two-dimensional barcode described in Patent Document 1, data is binarized by using a deep color (for example, black) and a shallow color (for example, white) and stored as a data code word. Furthermore, the demand for storing more data in the area per unit was not fulfilled.

本発明は、上述した課題に鑑みてなされたものであり、その目的は、外形が大きくなることなく、より多くのデータを記憶させることが可能な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-dimensional code 92 has a rectangular shape, and includes a symbol indicating a reference position for reading and a data cell 102 that expresses information by a cell distribution pattern. A symbol indicating a position serving as a reference for reading is composed of positioning symbols 100A, 100B, and 100C arranged at three corners of the two-dimensional code 92, and a positioning auxiliary symbol 101 arranged at the lower right of FIG. Has been.

位置決めシンボル100(100A、100B、100C)は、詳しくは後述するが、データセル102の位置を検出するために用いられるものであり、位置決め補助シンボル101は、位置検出後のデータセル102に対して歪み等を補正するために用いられるものである。データセル102は、複数の単位セル103から構成されていて、白色又は黒色からなる通常単位セルと、白色又は黒色以外の色からなる色付単位セルとから構成されている。 The positioning symbol 100 (100A, 100B, 100C) is used for detecting the position of the data cell 102, as will be described in detail later. The positioning auxiliary symbol 101 is used for the data cell 102 after the position detection. It is used for correcting distortion and the like. The data cell 102 includes a plurality of unit cells 103, and includes a normal unit cell made of white or black and a colored unit cell made of a color other than white or black.

本実施形態では、色付単位セルが、赤色、青色、黄色のいずれかである場合について説明するが、本発明において色付単位セルは、これらの色に限定されるものではない。
また、本実施形態では、色付単位セルが複数ある場合について説明するが、本発明においては、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 data cell 102 includes a normal unit cell will be described. However, in the present invention, all of the data cells may be composed of colored unit cells.

単位セル103が有する各色は、所定の明度を有するように設定されている。本実施形態では、黒色、赤色、青色、黄色、白色の順に明度が高くなるように設定されている場合について説明するが、本発明においてはこれに限定されるものではない。 Each color of the unit cell 103 is set to have a predetermined brightness. In the present embodiment, a case where the brightness is set to increase in the order of black, red, blue, yellow, and white will be described, but the present invention is not limited to this.

図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 cellular phone 10 includes an operation unit 12, a liquid crystal panel 14, a CCD camera 16, a radio unit 18, an audio circuit 20, a speaker 22, a microphone 24, a transmission / reception antenna 26, a nonvolatile memory 28, a microcomputer 30, and a secondary battery 32. ing.

無線部18は、マイクロコンピュータ30により制御されて、送受信アンテナ26を通じて電波を媒体として基地局に対して送受信する。音声回路20は、無線部18からマイクロコンピュータ30を通じて出力された受信信号をスピーカ22に出力するとともに、マイク24から出力された音声信号を送信信号としてマイクロコンピュータ30を通じて無線部18に出力する。 The radio unit 18 is controlled by the microcomputer 30 and transmits / receives to / from the base station using radio waves as a medium through the transmitting / receiving antenna 26. The audio circuit 20 outputs the reception signal output from the wireless unit 18 through the microcomputer 30 to the speaker 22 and outputs the audio signal output from the microphone 24 to the wireless unit 18 through the microcomputer 30 as a transmission signal.

スピーカ22は、音声回路20から出力された受信信号を受信音声に変換して出力し、マイク24は、操作者から発せられた送信音声を音声信号に変換して音声回路20に出力する。
CCDカメラ26は、2次元コード92等の被写体を撮像可能であり、撮像して得られた画像データは不揮発性メモリ28に記憶される。本実施形態では、撮像手段としてCCDカメラを用いる場合について説明するが、本発明における撮像手段は、特に限定されるものではなく、例えば、CMOSセンサカメラ等を挙げることができる。
The speaker 22 converts the reception signal output from the audio circuit 20 into reception audio and outputs it, and the microphone 24 converts the transmission audio emitted from the operator into an audio signal and outputs it to the audio circuit 20.
The CCD camera 26 can image a subject such as a two-dimensional code 92, and image data obtained by imaging is stored in the nonvolatile memory 28. In the present embodiment, a case where a CCD camera is used as the imaging unit will be described. However, the imaging unit in the present invention is not particularly limited, and examples thereof include a CMOS sensor camera.

液晶パネル14は、例えば、操作部12を介して入力された文字、CCDカメラ16により撮像して得られた画像、送受信アンテナ26を介して受信したメール文面や画像等を表示する。 The liquid crystal panel 14 displays, for example, characters input via the operation unit 12, images obtained by imaging with the CCD camera 16, mail texts and images received via the transmission / reception antenna 26, and the like.

二次電池32は、各回路に電力を供給する。マイクロコンピュータ30は、CPU、ROM及びRAMから構成されたもので、例えば、電話の発着信処理、電子メールの作成送受信処理、インターネット処理等を行う。なお、電子メールの送受信及びインターネットによるデータの送受信は、マイクロコンピュータ30が無線部18及び送受信アンテナ26を介して行う。 The secondary battery 32 supplies power to each circuit. The microcomputer 30 includes a CPU, a ROM, and a RAM, and performs, for example, incoming / outgoing calls processing, e-mail creation / transmission processing, Internet processing, and the like. Note that transmission / reception of electronic mail and transmission / reception of data via the Internet are performed by the microcomputer 30 via the wireless unit 18 and the transmission / reception antenna 26.

不揮発性メモリ28は、例えば、操作部12を介して入力された電子メールデータ、CCDカメラ16が2次元コード92を撮像して得られた画像データ等の各種データや各種プログラムを不揮発的に記憶する。 The nonvolatile memory 28 stores, in a nonvolatile manner, various data and various programs such as e-mail data input via the operation unit 12 and image data obtained by the CCD camera 16 imaging the two-dimensional code 92. To do.

また、不揮発メモリ28には、2次元コード92からデータを取得するための2次元コード読み取り用プログラムが記憶されている。
本実施形態では、2次元コード読み取り用プログラムが不揮発メモリ28に予め記憶されている(プレインストールされている)場合について説明するが、本発明において2次元コード読み取り用プログラムは、例えば、サーバ等からインターネットを介してダウンロードする等、外部から取得することとしてもよい。
The nonvolatile memory 28 stores a two-dimensional code reading program for acquiring data from the two-dimensional code 92.
In the present embodiment, a case where the two-dimensional code reading program is stored in advance (preinstalled) in the nonvolatile memory 28 will be described. However, in the present invention, the two-dimensional code reading program is, for example, from a server or the like. It is good also as acquiring from the outside, such as downloading via the internet.

マイクロコンピュータ30は、2次元コード読み取り用プログラムを不揮発メモリ28から読み出して実行することにより、下記(A)〜(D)のように機能する。 The microcomputer 30 functions as follows (A) to (D) by reading and executing a two-dimensional code reading program from the nonvolatile memory 28.

(A)マイクロコンピュータ30は、CCDカメラ16により撮像される2次元コード92の位置決めシンボル100を検出する。
(B)マイクロコンピュータ30は、検出された位置決めシンボル100に基づいてデータセル102の位置を検出する。
(C)マイクロコンピュータ30は、位置が検出されたデータセル102の各単位セル103に割り当てられているしきい値を検出する。
(D)マイクロコンピュータ30は、検出した各単位セル103のしきい値に基づいて、2次元コードの情報を読み取る。
(A) The microcomputer 30 detects the positioning symbol 100 of the two-dimensional code 92 imaged by the CCD camera 16.
(B) The microcomputer 30 detects the position of the data cell 102 based on the detected positioning symbol 100.
(C) The microcomputer 30 detects a threshold value assigned to each unit cell 103 of the data cell 102 where the position is detected.
(D) The microcomputer 30 reads the information of the two-dimensional code based on the detected threshold value of each unit cell 103.

図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 microcomputer 30 included in the mobile phone 10 drives the CCD camera 16 as an imaging unit based on an instruction input via the operation unit 12, and images the two-dimensional code 92 (step S10).

次に、マイクロコンピュータ30は、ステップS10において得られた画像データに対して2値化処理を行い、各ドットを“0”又は“1”に置き換える(ステップS11)。 Next, the microcomputer 30 performs binarization processing on the image data obtained in step S10, and replaces each dot with “0” or “1” (step S11).

次に、マイクロコンピュータ30は、2次元コード92の周辺外形を囲む包絡線(周囲線)作成を行う(ステップS12)。この処理において、マイクロコンピュータ30は、2値化処理した画像の外周に存在する複数のセルを接続して、2次元コード(画像)を取り囲む包絡線を作成する。具体的には、最も外周に存在する黒セルを見つけて、順次隣接する黒セル間を接続する。 Next, the microcomputer 30 creates an envelope (surrounding line) that surrounds the peripheral outline of the two-dimensional code 92 (step S12). In this process, the microcomputer 30 connects a plurality of cells existing on the outer periphery of the binarized image to create an envelope surrounding the two-dimensional code (image). Specifically, the black cells existing on the outermost periphery are found and the adjacent black cells are sequentially connected.

次に、ステップS13において、マイクロコンピュータ30は、2次元コード92の4頂点を抽出する。この処理において、マイクロコンピュータ30は、包絡線で囲まれた多角形の内角を調査する。2次元コード92の角部の内角は略90度の値を示すことから、このことより4頂点を抽出するのである。 Next, in step S <b> 13, the microcomputer 30 extracts the four vertices of the two-dimensional code 92. In this process, the microcomputer 30 investigates the interior angle of the polygon surrounded by the envelope. Since the inner angle of the corner of the two-dimensional code 92 shows a value of approximately 90 degrees, four vertices are extracted from this.

次に、ステップS14において、マイクロコンピュータ30は、4頂点の位置に基づいて、位置決めシンボル100A、位置決めシンボル100B及び位置決めシンボル100Cを検出する。この処理を実行するとき、マイクロコンピュータ30は、位置決めシンボル100の位置を検出するシンボル位置検出手段として機能する。 Next, in step S14, the microcomputer 30 detects the positioning symbol 100A, the positioning symbol 100B, and the positioning symbol 100C based on the positions of the four vertices. When executing this processing, the microcomputer 30 functions as a symbol position detecting means for detecting the position of the positioning symbol 100.

次に、ステップS15において、マイクロコンピュータ30は、位置決めシンボル100の位置に基づいてデータセル102の位置を検出する。この処理を実行するとき、マイクロコンピュータ30は、位置決めシンボル100の位置に基づいてデータセル102の位置を検出するデータセル位置検出手段として機能する。
なお、ステップS12〜ステップS15の処理は、2値化処理したデータを用いて実行され、ステップS16移行の処理は、ステップS10において得られた(2値化処理される前の)画像データを用いて行われる。
Next, in step S <b> 15, the microcomputer 30 detects the position of the data cell 102 based on the position of the positioning symbol 100. When this processing is executed, the microcomputer 30 functions as a data cell position detecting unit that detects the position of the data cell 102 based on the position of the positioning symbol 100.
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 microcomputer 30 performs gray processing on the data cell 102 whose position has been detected, and replaces it with black and white density gradation (step S16), thereby generating multi-value matrix data (step S17). At this time, with reference to the positioning auxiliary symbol 101, distortion or the like is corrected for the data cell 102 after position detection, and multi-value matrix data is generated.

ここで、多値化マトリックスデータの生成方法について説明する。
図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 microcomputer 30 functions as a detection unit that detects a threshold value assigned to each unit cell of the data cell 102.

次に、マイクロコンピュータ30は、多値化マトリックスデータをデコードし(ステップS18)、データを生成する(ステップS19)。その後、本サブルーチンを終了する。
その結果、携帯電話機10の液晶パネル14には、デコードされたデータが表示されることになる。
Next, the microcomputer 30 decodes the multi-value matrix data (step S18) and generates data (step S19). Thereafter, this subroutine is terminated.
As a result, the decoded data is displayed on the liquid crystal panel 14 of the mobile phone 10.

本実施形態では、位置決めまでの処理(ステップ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 data cell 102 and replaced with black and white density gradation. In the present invention, gray processing is performed. First, the color of each unit cell is color-separated according to a predetermined standard (for example, three primary colors of cyan, magenta, and yellow) to calculate the gray scale of each color component, and the multi-value matrix data is calculated by this gray scale. It may be generated. Hereinafter, the two-dimensional code recognition process in this case will be described.

図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 microcomputer 30 performs a color conversion process on the data cell 102 whose position has been detected, and converts RGB (red, green, blue) original image data (image data of the data cell 102) into CMY (cyan). , Magenta, yellow). By this color conversion processing, the grayscale for each RGB when imaged is replaced with the grayscale for each CMY. In the following, a case where the density gradation of each color of CMY is two gradations will be described, but the density gradation of each color is not limited to this example.

次に、ステップS47において、マイクロコンピュータ30は、CMY別の濃度階調に基づいて多値化マトリックスデータを生成する。ここで、多値化マトリックスデータの生成方法について説明する。 Next, in step S47, the microcomputer 30 generates multi-value matrix data based on density gradations for each CMY. Here, a method for generating multi-value matrix data will be described.

図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 microcomputer 30 refers to the threshold value determination table and digitizes each unit cell to generate multi-value matrix data.

次に、マイクロコンピュータ30は、多値化マトリックスデータをデコードし(ステップS48)、データを生成する(ステップS49)。その後、本サブルーチンを終了する。その結果、携帯電話機10の液晶パネル14には、デコードされたデータが表示されることになる。 Next, the microcomputer 30 decodes the multi-value matrix data (step S48) and generates data (step S49). Thereafter, this subroutine is terminated. As a result, the decoded data is displayed on the liquid crystal panel 14 of the mobile phone 10.

以上、2次元コード92によれば、読み取る際の基準となる位置を示すシンボル(位置決めシンボル100、位置決め補助シンボル101)と、セルの分布パターンにより情報を表現するデータセル102とを備えていて、データセル102は、3以上の複数段階に予め設定されたしきい値のいずれかに対応する色を有する複数の色付単位セルを含んで構成されている。従って、データを2値化する場合に比して多くのデータを、各単位セル103に記憶させることができ、2次元コード全体として外形を大きくすることなく、より多くのデータを記憶させることが可能となる。 As described above, according to the two-dimensional code 92, a symbol (positioning symbol 100, positioning auxiliary symbol 101) indicating a position serving as a reference at the time of reading and a data cell 102 expressing information by a cell distribution pattern are provided. The data cell 102 is configured to include a plurality of colored unit cells having colors corresponding to any of threshold values preset in three or more stages. Accordingly, more data can be stored in each unit cell 103 than when data is binarized, and more data can be stored without increasing the outer shape of the entire two-dimensional code. It becomes possible.

また、2次元コード読み取り用プログラムを用いた携帯電話機10によれば、撮像した2次元コード92の位置決めシンボル100の位置を検出し、検出した位置決めシンボル100の位置に基づいてデータセル102の位置を検出し、データセル102の各単位セル103に割り当てられているしきい値を検出し、検出した各単位セル103のしきい値に基づいて、2次元コード92の情報を読み取る。ここで、しきい値は3以上の複数段階に予め設定されている。従って、例えば、白黒色のみからなる2次元コードに比して大きくなく、且つ、より多くのデータが記憶された色付単位セルを含む2次元コードを読み取ることが可能になる。 Further, according to the mobile phone 10 using the two-dimensional code reading program, the position of the positioning symbol 100 of the captured two-dimensional code 92 is detected, and the position of the data cell 102 is determined based on the detected position of the positioning symbol 100. The threshold value assigned to each unit cell 103 of the data cell 102 is detected, and the information of the two-dimensional code 92 is read based on the detected threshold value of each unit cell 103. 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次元コード92に限定されず、以下のような2次元コードであってもよい。 The two-dimensional code in the present invention is not limited to the two-dimensional code 92 as described above, and may be the following two-dimensional code.

図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-dimensional code 122 has a substantially rectangular shape, and includes a symbol indicating a reference position for reading and a data cell 142 that expresses information by a cell distribution pattern. A symbol indicating a position serving as a reference for reading is composed of positioning symbols 140A, 140B, and 140C arranged at three corners of the two-dimensional code 122, and a positioning auxiliary symbol 141 arranged at the lower right of FIG. Has been.

位置決めシンボル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 data cell 122, and the positioning auxiliary symbol 141 is used to correct distortion and the like for the data cell 142 after position detection. It is used for. The data cell 142 is composed of a plurality of unit cells 143, and the unit cell inside the envelope (surrounding line) 145 surrounding the peripheral outline of the two-dimensional code 122 is a normal unit cell made of white or black. The unit cell outside the envelope 145 is a colored unit cell made of a color other than white or black.

2次元コード122によれば、色付単位セル(包絡線145の外部にある単位セル)部分には、付加的な情報を記憶させ、その他の単位セル(包絡線145の内部にある単位セル)部分には、主要な情報を記憶させる構成とした場合、従来の2次元コード読み取り装置(各単位セルの色を2値化してデータを読み取る2次元コード読み取り装置)を用いても、少なくとも主要な情報を読み取ることが可能とすることができる。 According to the two-dimensional code 122, additional information is stored in the colored unit cell (unit cell outside the envelope 145) portion, and other unit cells (unit cells inside the envelope 145) are stored. When the main information is stored in the portion, at least the main two-dimensional code reader (two-dimensional code reader that reads data by binarizing the color of each unit cell) is used. It may be possible to read information.

以上、本発明の実施形態を説明したが、具体例を例示したに過ぎず、特に本発明を限定するものではなく、各手段等の具体的構成は、適宜設計変更可能である。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。 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.

本発明に係る2次元コードの一例を示す図である。It is a figure which shows an example of the two-dimensional code which concerns on this invention. 本発明に係る2次元コード読み取り装置の1実施形態である携帯電話機の一例を模式的に示す斜視図である。It is a perspective view showing typically an example of a cellular phone which is one embodiment of a two-dimensional code reading device concerning the present invention. 図2に示した携帯電話機の内部構成を示すブロック図である。FIG. 3 is a block diagram showing an internal configuration of the mobile phone shown in FIG. 2. 携帯電話機において行われる2次元コード認識処理を示すフローチャートである。It is a flowchart which shows the two-dimensional code recognition process performed in a mobile telephone. 多値化マトリックスデータの生成方法について説明するための図である。It is a figure for demonstrating the production | generation method of multi-value matrix data. 携帯電話機において行われる他の実施形態に係る2次元コード認識処理を示すフローチャートである。It is a flowchart which shows the two-dimensional code recognition process which concerns on other embodiment performed in a mobile telephone. しきい値決定テーブルを示す図である。It is a figure which shows a threshold value determination table. 本発明に係る他の2次元コードの一例を示す図である。It is a figure which shows an example of the other two-dimensional code which concerns on this invention.

符号の説明Explanation of symbols

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 SYMBOLS 10 Mobile phone 12 Operation part 14 Liquid crystal panel 18 Radio | wireless part 28 Non-volatile memory 30 Microcomputer 32 Secondary battery 92, 122 Two-dimensional code 100 (100A, 100B, 100C), 140 (140A, 140B, 140C) Positioning symbol 101, 141 Positioning auxiliary symbol 102, 142 Data cell 103, 143 Unit cell 145 Envelope

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. .
請求項1に記載の2次元コードを撮像可能な撮像手段と、
前記撮像手段により撮像される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.
請求項1に記載の2次元コードを撮像可能な撮像手段
を備えた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.
JP2006081609A 2006-03-23 2006-03-23 Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program Pending JP2007257360A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
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