JP2013131057A - Two-dimensional code, recording device, device and program for identification - Google Patents

Two-dimensional code, recording device, device and program for identification Download PDF

Info

Publication number
JP2013131057A
JP2013131057A JP2011280325A JP2011280325A JP2013131057A JP 2013131057 A JP2013131057 A JP 2013131057A JP 2011280325 A JP2011280325 A JP 2011280325A JP 2011280325 A JP2011280325 A JP 2011280325A JP 2013131057 A JP2013131057 A JP 2013131057A
Authority
JP
Japan
Prior art keywords
binary
symbol
target
decoding
dimensional code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011280325A
Other languages
Japanese (ja)
Other versions
JP5895511B2 (en
Inventor
Hiroshi Mikuriya
洋 御厨
Taro Mori
太郎 森
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
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 filed Critical Fuji Xerox Co Ltd
Priority to JP2011280325A priority Critical patent/JP5895511B2/en
Publication of JP2013131057A publication Critical patent/JP2013131057A/en
Application granted granted Critical
Publication of JP5895511B2 publication Critical patent/JP5895511B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a two-dimensional code, a recording device, a device and a program for identification that contribute highly-accurate interpretation of information to be interpreted.SOLUTION: A two-dimensional code 30 includes: patterns to be read having an interpretation supporting binary pattern 32 and an interpretation supporting binary pattern 34; and a standard binary pattern 36 that is inserted in a specific position of the pattern to be read to be represented in accordance with the presence of a specific color, and is a standard for identifying the presence of the specific color of pixels included in at least one of the interpretation supporting binary pattern 32 and the interpretation supporting binary pattern 34.

Description

本発明は、二次元コード、記録装置、識別装置及びプログラムに関する。   The present invention relates to a two-dimensional code, a recording device, an identification device, and a program.

特許文献1には、明るさの分布に偏りがある画像を精度良く2値化する技術が開示されている。この技術は画像情報に基づいて得られたヒストグラムから導出された閾値を使用して2値化処理を実現している。   Patent Document 1 discloses a technique for accurately binarizing an image having an uneven brightness distribution. This technique realizes binarization processing using a threshold value derived from a histogram obtained based on image information.

特許文献2にも明るさの分布に偏りがある画像を精度良く2値化する技術が開示されている。この技術は画像データの各部分毎に閾値を設定する閾値設定手段を備えている。   Patent Document 2 also discloses a technique for accurately binarizing an image having an uneven brightness distribution. This technique includes threshold setting means for setting a threshold for each part of image data.

特開平03−237571号公報Japanese Patent Laid-Open No. 03-237571 特開平07−085245号公報Japanese Patent Application Laid-Open No. 07-085245

本発明の課題は、解読対象情報の高精度な解読に寄与する二次元コード、記録装置、識別装置及びプログラムを提供することである。   An object of the present invention is to provide a two-dimensional code, a recording device, an identification device, and a program that contribute to highly accurate decoding of information to be decoded.

上記課題を解決するために、請求項1に記載の二次元コードを、被記録対象領域における特定領域に記録され且つ解読対象情報の解読を支援する支援情報が複数の画素の特定色の有無によって表現された解読支援二値図柄、及び前記被記録対象領域における前記特定領域以外の領域に記録され且つ前記解読対象情報が複数の画素の前記特定色の有無によって表現された解読対象二値図柄を有する読取対象図柄と、前記読取対象図柄の特定位置に挿入され、前記特定色の有無によって表現されると共に前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素の前記特定色の有無を識別するための基準とする基準情報が複数の画素の特定色の有無によって表現された基準二値図柄と、を含んで構成した。   In order to solve the above-described problem, the two-dimensional code according to claim 1 is recorded in a specific area in the recording target area, and support information for supporting the decoding of the decoding target information is determined based on the presence or absence of specific colors of a plurality of pixels. A decoded decoding support binary design, and a decoding target binary design recorded in an area other than the specific area in the recording target area and the decoding target information expressed by the presence or absence of the specific color of a plurality of pixels. The reading target symbol, and the identification of pixels included in at least one of the decoding support binary symbol and the decoding target binary symbol, which is inserted at a specific position of the reading target symbol and expressed by the presence or absence of the specific color Reference information used as a reference for identifying the presence / absence of a color includes a reference binary pattern expressed by the presence / absence of a specific color of a plurality of pixels.

上記課題を解決するために、請求項2に記載の二次元コードを、被記録対象領域における特定領域に記録され且つ解読対象情報の解読を支援する支援情報が複数の画素の特定色の有無によって表現された解読支援二値図柄、及び前記被記録対象領域における前記特定領域以外の領域に記録され且つ前記解読対象情報が複数の画素の前記特定色の有無によって表現された解読対象二値図柄を有する読取対象図柄と、前記読取対象図柄の特定位置に挿入され、各々前記特定色の有無によって表現されると共に前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素の前記特定色の有無を識別するための基準とする基準情報が複数の画素の特定色の有無によって表現された複数の基準二値図柄と、を含んで構成した。   In order to solve the above-mentioned problem, the two-dimensional code according to claim 2 is recorded in a specific area in the recording target area, and support information for supporting the decoding of the decoding target information is determined based on the presence or absence of a specific color of a plurality of pixels. A decoded decoding support binary design, and a decoding target binary design recorded in an area other than the specific area in the recording target area and the decoding target information expressed by the presence or absence of the specific color of a plurality of pixels. A reading target symbol, and a pixel included in at least one of the decoding support binary symbol and the decoding target binary symbol that is inserted at a specific position of the reading target symbol and is represented by the presence or absence of the specific color. The reference information used as a reference for identifying the presence / absence of the specific color includes a plurality of reference binary patterns expressed by the presence / absence of the specific color of the plurality of pixels.

請求項2に記載の二次元コードを、請求項3に記載の発明のように、前記基準二値図柄を、前記解読支援二値図柄及び前記解読対象二値図柄を含めた前記被記録対象領域を分割して得られた分割領域の各々に挿入したものとした。   The recording target area including the two-dimensional code according to claim 2 and the reference binary symbol including the decoding assist binary symbol and the decoding target binary symbol as in the invention according to claim 3 Was inserted into each of the divided regions obtained by dividing the.

請求項2に記載の二次元コードを、請求項4に記載の発明のように、前記基準二値図柄を、前記読取対象図柄を分割して得られた分割領域の各々に複数挿入したものとした。   A plurality of two-dimensional codes according to claim 2 inserted into each of the divided areas obtained by dividing the design to be read, as in the invention according to claim 4, did.

請求項3又は請求項4に記載の二次元コードを、請求項5に記載の発明のように、前記分割領域を、前記読取対象図柄をマトリクス状に分割して得られた領域としたものとした。   The two-dimensional code according to claim 3 or claim 4, wherein, as in the invention according to claim 5, the divided region is a region obtained by dividing the pattern to be read into a matrix. did.

請求項2〜請求項5の何れか1項に記載の二次元コードを、請求項6に記載の発明のように、前記読取対象図柄における基準となる位置と前記基準二値図柄の各々との位置関係を、前記基準二値図柄毎に予め定められた位置関係としたものとした。   The two-dimensional code according to any one of claims 2 to 5 is converted into a reference position in the read target symbol and each of the reference binary symbols as in the invention according to claim 6. The positional relationship was assumed to be a predetermined positional relationship for each reference binary symbol.

請求項2〜請求項6の何れか1項に記載の二次元コードを、請求項7に記載の発明のように、前記複数の基準二値図柄を相互に予め定められた間隔となるように前記読取対象図柄に挿入したものとした。   The two-dimensional code according to any one of claims 2 to 6 is arranged such that the plurality of reference binary symbols have predetermined intervals as in the invention according to claim 7. It was inserted into the reading object design.

請求項1〜請求項7の何れか1項に記載の二次元コードを、請求項8に記載の発明のように、前記特定色を無彩色としたものとした。   In the two-dimensional code according to any one of claims 1 to 7, the specific color is an achromatic color as in the invention according to claim 8.

請求項1〜請求項7の何れか1項に記載の二次元コードを、請求項8に記載の発明のように、前記特定色を有彩色としたものとした。   In the two-dimensional code according to any one of claims 1 to 7, the specific color is a chromatic color as in the invention according to claim 8.

請求項1〜請求項9の何れか1項に記載の二次元コードを、請求項10に記載の発明のように、前記基準二値図柄を、何れかの画素を前記特定色とした彩色の異なる一対の画素としたものとした。   The two-dimensional code according to any one of claims 1 to 9, and the reference binary pattern as in the invention according to claim 10, wherein a color of one of the pixels is the specific color. A different pair of pixels was used.

請求項1〜請求項9の何れか1項に記載の二次元コードを、請求項11に記載の発明のように、前記解読支援二値図柄及び前記解読対象二値図柄の一方を一対の無彩色で形成すると共に他方を一対の有彩色で形成し、前記基準二値図柄を、一対の無彩色で形成され且つ前記解読支援二値図柄及び前記解読対象二値図柄の一方に含まれる画素の有無を識別するための基準とする第1基準図柄、及び一対の有彩色で形成され且つ前記解読支援二値図柄及び前記解読対象二値図柄の他方に含まれる画素の有無を識別するための基準とする第2基準図柄を含んで構成したものとした。   The two-dimensional code according to any one of claims 1 to 9, and the decoding support binary symbol and the decoding target binary symbol as a pair of nulls, as in the invention according to claim 11. And forming the other with a pair of chromatic colors, and forming the reference binary symbol as a pair of achromatic colors and included in one of the decoding support binary symbol and the decoding target binary symbol A first reference symbol as a reference for identifying the presence or absence, and a criterion for identifying the presence or absence of a pixel formed of a pair of chromatic colors and included in the other of the decoding support binary symbol and the decoding target binary symbol The second reference symbol is assumed to be included.

請求項11に記載の二次元コードを、請求項12に記載の発明のように、前記第1基準図柄及び前記第2基準図柄の各々を、何れかの画素を前記特定色とした彩色の異なる一対の画素としたものとした。   The two-dimensional code according to claim 11 is different from the first reference symbol and the second reference symbol in which the specific color is used for each of the first reference symbol and the second reference symbol as in the invention according to claim 12. A pair of pixels was used.

請求項1〜請求項12の何れか1項に記載の二次元コードを、請求項13に記載の発明のように、前記被記録対象領域を四角形状とし、前記解読支援二値図柄を、前記被記録対象領域の四隅のうちの少なくとも三隅に記録され且つ前記被記録対象領域に含まれる画素の位置の特定を支援する位置特定支援情報が複数の画素の特定色の有無によって表現された位置特定支援二値図柄を含んで構成したものとした。   The two-dimensional code according to any one of claims 1 to 12, wherein the recording target area is a quadrangular shape as in the invention according to claim 13, and the decoding support binary symbol is Position identification information that is recorded in at least three of the four corners of the recording target area and that supports the specification of the positions of the pixels included in the recording target area is expressed by the presence or absence of specific colors of a plurality of pixels It was assumed that it included the support binary design.

請求項13に記載の二次元コードを、請求項14に記載の発明のように、前記位置特定支援二値図柄を、前記特定色を有する互いに隣接する複数の画素の集合と前記特定色を有しない互いに隣接する複数の画素の集合とを組み合わせて形成したものとした。   The two-dimensional code according to claim 13, the position specifying support binary symbol as in the invention according to claim 14, the set of a plurality of adjacent pixels having the specific color and the specific color. It was formed by combining a set of a plurality of pixels adjacent to each other.

請求項13又は請求項14に記載の二次元コードを、請求項15に記載の発明のように、前記被記録対象領域の少なくとも一辺に沿って該被記録対象領域の予め定められた位置に挿入され且つ前記位置特定支援二値図柄による前記読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって表現された支援補助二値図柄を更に含むものとした。   The two-dimensional code according to claim 13 or 14 is inserted at a predetermined position of the recording target area along at least one side of the recording target area as in the invention of claim 15. Support assisting binary information represented by presence / absence of the specific color of a plurality of pixels, wherein support assisting information assisting the specific support of the positions of the pixels included in the read target symbol by the position specifying assisting binary design. Further included.

請求項13又は請求項14に記載の二次元コードを、請求項16に記載の発明のように、前記被記録対象領域の少なくとも一辺に沿って該被記録対象領域の予め定められた位置に各々挿入され且つ前記位置特定支援二値図柄による前記読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって各々表現された複数の支援補助二値図柄を更に含むものとした。   The two-dimensional code according to claim 13 or 14, respectively, at a predetermined position of the recording target area along at least one side of the recording target area, as in the invention of claim 16. A plurality of support assists, each of which is represented by the presence / absence of the specific color of a plurality of pixels, wherein support assist information for assisting the specific support of the positions of the pixels included in the symbol to be read by the position specifying support binary symbol A binary pattern was further included.

請求項16に記載の二次元コードを、請求項17に記載の発明のように、前記支援補助二値図柄を、前記被記録対象領域の一辺単位で該被記録対象領域に複数挿入したものとした。   A plurality of the two-dimensional codes according to claim 16 inserted into the recording target area in units of one side of the recording target area, as in the invention according to claim 17, did.

請求項17に記載の二次元コードを、請求項18に記載の発明のように、前記複数の支援補助二値図柄を、前記被記録対象領域の一辺単位で前記位置特定支援二値図柄を含めて相互の間隔が揃うように配置したものとした。   The two-dimensional code according to claim 17, the plurality of support auxiliary binary symbols, as in the invention according to claim 18, including the position specifying support binary symbols in one side unit of the recording target area. And arranged so that the distance between them is uniform.

請求項16〜請求項18の何れか1項に記載の二次元コードを、請求項19に記載の発明のように、前記支援補助二値図柄を、前記被記録対象領域の少なくとも一組の対辺の各辺に沿って前記被記録対象領域に挿入したものとした。   The two-dimensional code according to any one of claims 16 to 18, the support auxiliary binary symbol as in the invention according to claim 19, and at least one pair of opposite sides of the recording target area. It was assumed that it was inserted into the recording target area along each side.

請求項19に記載の二次元コードを、請求項20に記載の発明のように、前記一組の対辺の各辺に沿って前記被記録対象領域に挿入された前記支援補助二値図柄の各々を結ぶ線分上の前記被記録対象領域に挿入され且つ前記支援補助情報に相当する情報が複数の画素の前記特定色の有無によって表現された他の支援補助二値図柄を更に含むものとした。   The two-dimensional code according to claim 19, as in the invention according to claim 20, wherein each of the support auxiliary binary symbols inserted into the recording target area along each side of the set of opposite sides. The information corresponding to the support auxiliary information inserted into the recording target area on the line segment connecting the two lines further includes another support auxiliary binary pattern expressed by the presence or absence of the specific color of a plurality of pixels. .

上記課題を解決するために、請求項21に記載の記録装置を、請求項1〜請求項20の何れか1項に記載の二次元コードを記録媒体に記録する記録手段を含んで構成した。   In order to solve the above problem, the recording apparatus according to claim 21 includes a recording unit that records the two-dimensional code according to any one of claims 1 to 20 on a recording medium.

上記課題を解決するために、請求項22に記載の識別装置を、請求項1〜請求項20の何れか1項に記載の二次元コードにおける前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素を識別対象画素とし、前記二次元コードを読取装置により読み取って得られた読取結果から、前記識別対象画素を示す識別対象画素情報及び前記基準二値図柄を示す基準二値図柄情報を取得する取得手段と、前記取得手段によって取得された前記基準二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別する識別手段と、を含んで構成した。   In order to solve the above-mentioned problem, the identification device according to claim 22 is configured such that the decoding support binary symbol and the decoding target binary symbol in the two-dimensional code according to any one of claims 1 to 20. The pixel included in at least one of the pixels is set as a pixel to be identified, and based on the reading result obtained by reading the two-dimensional code with a reading device, the pixel information to be identified indicating the pixel to be identified and the reference binary indicating the reference binary pattern Acquisition means for acquiring value symbol information; and based on the reference binary symbol information acquired by the acquisition means, the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition means And identification means for identifying the presence or absence.

請求項22に記載の識別装置を、請求項23に記載の発明のように、前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素であって、前記基準二値図柄と予め定められた距離内にある画素を前記識別対象画素としたものとした。   The identification device according to claim 22 is a pixel included in at least one of the decoding support binary symbol and the decoding target binary symbol as in the invention according to claim 23, wherein the reference binary symbol is included. The pixels within a predetermined distance are the identification target pixels.

請求項22又は請求項23に記載の識別装置を、請求項24に記載の発明のように、前記取得手段が、前記解読対象二値図柄に含まれる画素を前記識別対象画素とした場合、前記読取結果から、前記解読支援二値図柄を示す解読支援二値図柄情報を更に取得し、前記識別手段が、前記取得手段によって取得された前記基準二値図柄情報及び前記解読支援二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別するものとした。   In the identification device according to claim 22 or claim 23, as in the invention according to claim 24, when the acquisition unit uses the pixel included in the binary pattern to be decoded as the identification target pixel, From the read result, the decoding support binary symbol information indicating the decoding support binary symbol is further acquired, and the identification unit includes the reference binary symbol information and the decoding support binary symbol information acquired by the acquisition unit. Based on this, the presence / absence of the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition unit is identified.

上記課題を解決するために、請求項25に記載のプログラムを、請求項1〜請求項20の何れか1項に記載の二次元コードにおける前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素を識別対象画素とし、前記二次元コードを読取装置により読み取って得られた読取結果から、前記識別対象画素を示す識別対象画素情報及び前記基準二値図柄を示す基準二値図柄情報を取得する取得手段、並びに、前記取得手段によって取得された前記基準二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別する識別手段としてコンピュータを機能させるためのものとした。   In order to solve the above-described problem, the program according to claim 25 is executed by adding the decoding support binary symbol and the decoding target binary symbol in the two-dimensional code according to any one of claims 1 to 20. A pixel included in at least one is set as a pixel to be identified, and based on a reading result obtained by reading the two-dimensional code with a reading device, identification target pixel information indicating the identification target pixel and a reference binary indicating the reference binary pattern An acquisition unit for acquiring symbol information, and the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition unit based on the reference binary symbol information acquired by the acquisition unit. The computer is made to function as an identification means for identifying presence or absence.

請求項1、請求項2、請求項21、請求項22及び請求項25に係る発明によれば、二次元コードが、読取対象図柄の特定位置に挿入され、特定色の有無によって表現されると共に解読支援二値図柄及び解読対象二値図柄の少なくとも一方に含まれる画素の特定色の有無を識別するための基準とする基準情報が複数の画素の特定色の有無によって表現された基準二値図柄を含む構成を有しない場合に比べ、解読対象情報の高精度な解読に寄与する、という効果が得られる。   According to the inventions according to claim 1, claim 2, claim 21, claim 22 and claim 25, the two-dimensional code is inserted at a specific position of the pattern to be read and expressed by the presence or absence of a specific color. A reference binary design in which reference information for identifying the presence or absence of a specific color of a pixel included in at least one of a decoding support binary design and a decoding target binary design is expressed by the presence or absence of a specific color of a plurality of pixels As compared with the case where the configuration including the number is not included, an effect of contributing to highly accurate decoding of the information to be decoded can be obtained.

請求項3に係る発明によれば、基準二値図柄を、解読支援二値図柄及び解読対象二値図柄を含めた被記録対象領域を分割して得られた分割領域の各々に挿入した構成を有しない場合に比べ、解読支援二値図柄及び解読対象二値図柄の少なくとも一方に含まれる画素の特定色の有無の高精度な識別に寄与する、という効果が得られる。   According to the invention according to claim 3, a configuration in which the reference binary symbol is inserted into each of the divided regions obtained by dividing the recording target region including the decoding support binary symbol and the decoding target binary symbol. Compared with the case where it does not have, the effect that it contributes to the highly accurate discrimination | determination of the presence or absence of the specific color of the pixel contained in at least one of a decoding assistance binary symbol and a decoding object binary symbol is acquired.

請求項4に係る発明によれば、基準二値図柄を、読取対象図柄を分割して得られた分割領域の各々に複数挿入した構成を有しない場合に比べ、解読支援二値図柄及び解読対象二値図柄の少なくとも一方に含まれる画素の特定色の有無の高精度な識別に寄与する、という効果が得られる。   According to the invention of claim 4, compared to the case where there is no configuration in which a plurality of reference binary symbols are inserted in each of the divided areas obtained by dividing the read target symbol, the decoding support binary symbol and the decoding target An effect of contributing to highly accurate identification of the presence or absence of a specific color of pixels included in at least one of the binary symbols is obtained.

請求項5に係る発明によれば、分割領域を、読取対象図柄をマトリクス状に分割して得られた領域とした構成を有しない場合に比べ、画素の特定色の有無を識別する処理にかかる負荷の軽減に寄与する、という効果が得られる。   According to the fifth aspect of the present invention, compared to a case where the divided area does not have a configuration obtained by dividing the pattern to be read in a matrix shape, the process for identifying the presence or absence of a specific color of the pixel is involved. The effect that it contributes to reduction of load is acquired.

請求項6に係る発明によれば、読取対象図柄における基準となる位置と基準二値図柄の各々との位置関係を、基準二値図柄毎に予め定められた位置関係とした構成を有しない場合に比べ、画素の特定色の有無を識別する処理にかかる負荷の軽減に寄与する、という効果が得られる。   According to the sixth aspect of the present invention, the positional relationship between the reference position and each of the reference binary symbols in the read target symbol is not configured to have a predetermined positional relationship for each reference binary symbol. As compared with the above, there is an effect that it contributes to the reduction of the load on the process of identifying the presence / absence of the specific color of the pixel.

請求項7に係る発明によれば、複数の基準二値図柄を相互に予め定められた間隔となるように読取対象図柄に挿入した構成を有しない場合に比べ、画素の特定色の有無を識別する処理にかかる負荷の軽減に寄与する、という効果が得られる。   According to the invention of claim 7, the presence or absence of a specific color of the pixel is identified as compared with the case where there is no configuration in which a plurality of reference binary symbols are inserted into the reading target symbol so as to have a predetermined interval between each other. The effect that it contributes to the reduction of the load concerning the process to perform is acquired.

請求項8に係る発明によれば、特定色を無彩色とした構成を有しない場合に比べ、読取対象図柄に含まれる情報が無彩色の特定色の有無で表現された場合であっても解読対象情報の高精度な解読に寄与する、という効果が得られる。   According to the eighth aspect of the invention, it is possible to decode even if the information included in the pattern to be read is expressed by the presence or absence of the specific color of the achromatic color, compared with the case where the specific color is not configured to be achromatic. The effect of contributing to highly accurate decoding of the target information can be obtained.

請求項9に係る発明によれば、特定色を有彩色とした構成を有しない場合に比べ、読取対象図柄に含まれる情報が有彩色の特定色の有無で表現された場合であっても解読対象情報の高精度な解読に寄与する、という効果が得られる。   According to the ninth aspect of the invention, it is possible to decode even if the information included in the pattern to be read is expressed by the presence or absence of the specific color of the chromatic color, compared to the case where the specific color is not configured to be a chromatic color. The effect of contributing to highly accurate decoding of the target information can be obtained.

請求項10に係る発明によれば、基準二値図柄を、何れかの画素を特定色とした彩色の異なる一対の画素とした構成を有しない場合に比べ、解読対象情報の格納量の増大に寄与する、という効果が得られる。   According to the tenth aspect of the present invention, the storage amount of the decoding target information is increased as compared with the case where the reference binary design is not configured to have a pair of differently colored pixels in which any pixel is a specific color. The effect of contributing is obtained.

請求項11に係る発明によれば、解読支援二値図柄及び解読対象二値図柄の一方を一対の無彩色で形成すると共に他方を一対の有彩色で形成し、基準二値図柄を、一対の無彩色で形成され且つ解読支援二値図柄及び解読対象二値図柄の一方に含まれる画素の有無を識別するための基準とする第1基準図柄、及び一対の有彩色で形成され且つ解読支援二値図柄及び解読対象二値図柄の他方に含まれる画素の有無を識別するための基準とする第2基準図柄を含む構成を有しない場合に比べ、読取対象図柄に含まれる情報が無彩色の特定色の有無で表現された場合であっても読取対象図柄に含まれる情報が有彩色の特定色の有無で表現された場合であっても解読対象情報の高精度な解読に寄与する、という効果が得られる。   According to the invention of claim 11, one of the decoding support binary symbol and the decoding target binary symbol is formed with a pair of achromatic colors and the other is formed with a pair of chromatic colors, and the reference binary symbol is paired with a pair of achromatic colors. A first reference symbol that is formed of an achromatic color and serves as a reference for identifying the presence / absence of a pixel included in one of the decoding support binary symbol and the decoding target binary symbol, and a pair of chromatic colors and a decoding support binary symbol Compared to the case where there is no configuration including the second reference symbol as a reference for identifying the presence or absence of the pixel included in the other of the value symbol and the binary symbol to be decoded, the information included in the symbol to be read is specified as an achromatic color. The effect of contributing to highly accurate decoding of the decoding target information even if the information included in the pattern to be read is expressed by the presence or absence of a specific chromatic color even when expressed in the presence or absence of color Is obtained.

請求項12に係る発明によれば、第1基準図柄及び第2基準図柄の各々を、何れかの画素を前記特定色とした彩色の異なる一対の画素とした構成を有しない場合に比べ、解読対象情報の格納量の増大に寄与する、という効果が得られる。   According to the twelfth aspect of the present invention, each of the first reference symbol and the second reference symbol is deciphered as compared with a case where there is no configuration in which any pixel is a pair of differently colored pixels having the specific color. The effect of contributing to an increase in the storage amount of the target information can be obtained.

請求項13に係る発明によれば、被記録対象領域を四角形状とし、解読支援二値図柄を、被記録対象領域の四隅のうちの少なくとも三隅に記録され且つ被記録対象領域に含まれる画素の位置の特定を支援する位置特定支援情報が複数の画素の特定色の有無によって表現された位置特定支援二値図柄を含む構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the invention of claim 13, the area to be recorded has a quadrangular shape, and the decoding support binary pattern is recorded in at least three corners among the four corners of the area to be recorded and is included in the area to be recorded. Compared to the case where the location support information that supports location specification does not have a configuration including a location support binary design expressed by the presence or absence of a specific color of a plurality of pixels, the position of the pixel included in the read target design is higher. The effect of contributing to accurate identification is obtained.

請求項14に係る発明によれば、位置特定支援二値図柄を、特定色を有する互いに隣接する複数の画素の集合と前記特定色を有しない互いに隣接する複数の画素の集合とを組み合わせて形成した構成を有しない場合に比べ、位置特定支援二値図柄の正確な検出に寄与する、という効果が得られる。   According to the fourteenth aspect of the present invention, the position specifying support binary pattern is formed by combining a set of a plurality of adjacent pixels having a specific color and a set of a plurality of adjacent pixels not having the specific color. Compared to the case where the configuration is not provided, an effect of contributing to accurate detection of the position specifying support binary symbol is obtained.

請求項15に係る発明によれば、被記録対象領域の少なくとも一辺に沿って該被記録対象領域の予め定められた位置に挿入され且つ前記位置特定支援二値図柄による前記読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって表現された支援補助二値図柄を更に含む構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the fifteenth aspect of the present invention, at least one side of the recording target area is inserted at a predetermined position of the recording target area and is included in the reading target pattern by the position specifying support binary pattern. Compared to the case where the support assistance information for assisting the specific support of the position of the pixel does not have a configuration further including the support assistance binary design expressed by the presence or absence of the specific color of a plurality of pixels, the pixels included in the design to be read The effect that it contributes to the high-precision specification of the position of is acquired.

請求項16に係る発明によれば、被記録対象領域の少なくとも一辺に沿って被記録対象領域の予め定められた位置に各々挿入され且つ位置特定支援二値図柄による読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって各々表現された複数の支援補助二値図柄を更に含む構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the sixteenth aspect of the present invention, the pixels included in the read target design by the position specifying support binary design that are respectively inserted at predetermined positions of the recording target region along at least one side of the recording target region. Compared to a case where the support assistance information for assisting the specific support of the position does not have a configuration further including a plurality of support assistance binary symbols each represented by the presence or absence of the specific color of a plurality of pixels, the information is included in the reading target design The effect that it contributes to the highly accurate specification of the position of a pixel is acquired.

請求項17に係る発明によれば、支援補助二値図柄を、前記被記録対象領域の一辺単位で該被記録対象領域に複数挿入した構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the seventeenth aspect of the present invention, the pixels included in the read target symbol are compared with the case where there is no configuration in which a plurality of support auxiliary binary symbols are inserted into the recording target region in units of one side of the recording target region. The effect that it contributes to the high-precision specification of the position of is acquired.

請求項18に係る発明によれば、複数の支援補助二値図柄を、被記録対象領域の一辺単位で位置特定支援二値図柄を含めて相互の間隔が揃うように配置した構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置を特定する処理にかかる負荷が軽減される、という効果が得られる。   According to the invention of claim 18, when there is no configuration in which a plurality of support auxiliary binary symbols are arranged so that their mutual intervals are aligned in a unit of one side of the recording target area including the position specifying support binary symbols As compared with the above, an effect that the load on the process of specifying the position of the pixel included in the pattern to be read is reduced can be obtained.

請求項19に係る発明によれば、支援補助二値図柄を、被記録対象領域の少なくとも一組の対辺の各辺に沿って被記録対象領域に挿入した構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the nineteenth aspect of the present invention, compared with the case where the support auxiliary binary design is not inserted into the recording target area along at least one pair of opposite sides of the recording target area, the reading target The effect that it contributes to the highly accurate specification of the position of the pixel contained in a design is acquired.

請求項20に係る発明によれば、一組の対辺の各辺に沿って被記録対象領域に挿入された支援補助二値図柄の各々を結ぶ線分上の被記録対象領域に挿入され且つ支援補助情報に相当する情報が複数の画素の特定色の有無によって表現された他の支援補助二値図柄を更に含む構成を有しない場合に比べ、読取対象図柄に含まれる画素の位置の高精度な特定に寄与する、という効果が得られる。   According to the twentieth aspect of the present invention, the support is inserted into the recording target area on the line segment connecting each of the auxiliary assistance binary symbols inserted into the recording target area along each side of the pair of opposite sides and is supported. Compared to the case where the information corresponding to the auxiliary information does not have a configuration further including another auxiliary auxiliary binary symbol expressed by the presence or absence of a specific color of a plurality of pixels, the position of the pixel included in the read target symbol is more accurate. The effect of contributing to identification is obtained.

請求項23に係る発明によれば、解読支援二値図柄及び解読対象二値図柄の少なくとも一方に含まれる画素であって、基準二値図柄と予め定められた距離内にある画素を識別対象画素とした構成を有しない場合に比べ、解読支援二値図柄及び解読対象二値図柄の少なくとも一方に含まれる画素の特定色の有無が高精度に識別される、という効果が得られる。   According to the invention of claim 23, pixels that are included in at least one of the decoding support binary symbol and the decoding target binary symbol and that are within a predetermined distance from the reference binary symbol are identified pixels. As compared with the case where the configuration is not provided, there is an effect that the presence / absence of a specific color of a pixel included in at least one of the decoding support binary design and the decoding target binary design is identified with high accuracy.

請求項24に係る発明によれば、取得手段が、解読対象二値図柄に含まれる画素を識別対象画素とした場合、読取結果から、解読支援二値図柄を示す解読支援二値図柄情報を更に取得し、識別手段が、取得手段によって取得された基準二値図柄情報及び解読支援二値図柄情報に基づいて、取得手段によって取得された識別対象画素情報により示される識別対象画素の特定色の有無を識別する構成を有しない場合に比べ、解読対象二値図柄に含まれる画素の特定色の有無が高精度に識別される、という効果が得られる。   According to the invention of claim 24, when the acquisition means uses the pixel included in the decoding target binary design as the identification target pixel, the reading support further displays the decoding support binary design information indicating the decoding support binary design. Whether the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition unit is acquired based on the reference binary symbol information and the decoding support binary symbol information acquired by the acquisition unit As compared with the case where there is no configuration for discriminating, there is an effect that the presence or absence of the specific color of the pixel included in the binary pattern to be decoded is identified with high accuracy.

第1の実施の形態に係る二次元コードを製造する記録装置の構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of the recording device which manufactures the two-dimensional code which concerns on 1st Embodiment. 第1の実施の形態に係る二次元コードの構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of the two-dimensional code which concerns on 1st Embodiment. 第1の実施の形態に係る二次元コードの読み取りに用いるカメラ付き携帯電話機の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the mobile telephone with a camera used for the reading of the two-dimensional code which concerns on 1st Embodiment. 明暗のバランスが崩れた不鮮明な二次元コードの一例を示す図である。It is a figure which shows an example of the unclear two-dimensional code where the balance of light and dark was broken. 図4に示す二次元コードを読み取って二値化された二次元コード画像の一例を示す図である。It is a figure which shows an example of the two-dimensional code image binarized by reading the two-dimensional code shown in FIG. 第1の実施の形態に係る二次元コード解読処理プログラムの処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a process of the two-dimensional code decoding process program which concerns on 1st Embodiment. 明るさの分布に偏りがある二次元コードの一例を示す図である。It is a figure which shows an example of the two-dimensional code with which distribution of brightness has deviation. 基準二値図柄の挿入変形例を示す模式図である。It is a schematic diagram which shows the insertion modification of a reference | standard binary symbol. 分割領域に基準二値図柄及び有彩色基準二値図柄を挿入した形態例を示す模式図である。It is a schematic diagram which shows the example which inserted the reference | standard binary symbol and the chromatic color reference | standard binary symbol in the division area. 従来の二次元コードの一例を示す図である。It is a figure which shows an example of the conventional two-dimensional code. 第2の実施の形態に係る二次元コードの一例を示す図である。It is a figure which shows an example of the two-dimensional code which concerns on 2nd Embodiment. 図10に示す二次元コードを撮影して得られた二次元コード画像の一例を示す図である。It is a figure which shows an example of the two-dimensional code image obtained by image | photographing the two-dimensional code shown in FIG. 図11に示す二次元コードを撮影して得られた二次元コード画像の一例を示す図である。It is a figure which shows an example of the two-dimensional code image obtained by image | photographing the two-dimensional code shown in FIG. 歪みがない場合の二次元コード画像の一例を示す図である。It is a figure which shows an example of the two-dimensional code image when there is no distortion. 歪みがある場合の二次元コード画像の一例を示す図である。It is a figure which shows an example of the two-dimensional code image in case there exists distortion. 図14に示す二次元コード画像を模式的に示した模式図である。It is the schematic diagram which showed typically the two-dimensional code image shown in FIG. 図15に示す二次元コード画像を模式的に示した模式図である。It is the schematic diagram which showed typically the two-dimensional code image shown in FIG. 第2の実施の形態に係る二次元コードの構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of the two-dimensional code which concerns on 2nd Embodiment. 第2の実施の形態に係る二次元コード解読処理プログラムの処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a process of the two-dimensional code decoding process program which concerns on 2nd Embodiment. 第2の実施の形態に係る座標設定処理プログラムの処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a process of the coordinate setting process program which concerns on 2nd Embodiment. 従来の座標設定処理を用いた場合に生じる問題点を示す模式図である。It is a schematic diagram which shows the problem which arises when the conventional coordinate setting process is used. 図21に示す問題点が第2の実施の形態に係る二次元コード解読処理によって解消されることを示す模式図である。It is a schematic diagram which shows that the problem shown in FIG. 21 is eliminated by the two-dimensional code decoding process which concerns on 2nd Embodiment.

以下、図面を参照して、本発明を実施するための実施の形態の一例について詳細に説明する。   Hereinafter, an example of an embodiment for carrying out the present invention will be described in detail with reference to the drawings.

[第1の実施の形態]
図1は、本第1の実施の形態に係る二次元コードを製造する記録装置10の構成の一例を示す構成図である。図1に示すように、記録装置10は、UI(ユーザ・インタフェース)パネル12、給紙部14、記録手段の一例である画像記録部16、及び排出台18を備えている。
[First Embodiment]
FIG. 1 is a configuration diagram illustrating an example of a configuration of a recording apparatus 10 that manufactures a two-dimensional code according to the first embodiment. As shown in FIG. 1, the recording apparatus 10 includes a UI (User Interface) panel 12, a paper feeding unit 14, an image recording unit 16 that is an example of a recording unit, and a discharge table 18.

UIパネル12は、タッチパネル・ディスプレイ12A及びスイッチ12Bを備え、タッチパネル・ディスプレイ12A及びスイッチ12Bを介して、記録媒体の一例である記録用紙への二次元コードの記録等の各種指示がユーザによって行われると共に、タッチパネル・ディスプレイ12Aに必要事項が表示される。給紙部14は、記録用紙を収容すると共に必要に応じて画像記録部16に記録用紙を給紙するものである。   The UI panel 12 includes a touch panel display 12A and a switch 12B, and various instructions such as recording of a two-dimensional code on a recording sheet, which is an example of a recording medium, are performed by the user via the touch panel display 12A and the switch 12B. At the same time, necessary items are displayed on the touch panel display 12A. The paper feeding unit 14 accommodates recording paper and feeds the recording paper to the image recording unit 16 as necessary.

画像記録部16は、例えばゼログラフィ方式で画像を記録する所謂プリンタ機能を備えたものである。なお、記録方式はゼログラフィ方式に限定されるものではなく、インクジェット方式やサーマル方式などの他の記録方式であっても良いことは言うまでもない。画像記録部16は、ユーザによってUIパネル12を介して二次元コードの記録用紙への記録が指示された場合、給紙部14を作動させることによって給紙部14からの給紙を受け、これによって取得した記録用紙に対して、二次元コードを示す二次元コード情報に基づいて二次元コードを記録し、二次元コードが記録された記録用紙を排出台18に排出する。   The image recording unit 16 has a so-called printer function for recording an image by a xerographic method, for example. Needless to say, the recording method is not limited to the xerographic method, and may be another recording method such as an inkjet method or a thermal method. When the user instructs the recording of the two-dimensional code onto the recording paper via the UI panel 12, the image recording unit 16 receives the paper fed from the paper feeding unit 14 by operating the paper feeding unit 14. The two-dimensional code is recorded on the recording sheet obtained by the step (2) based on the two-dimensional code information indicating the two-dimensional code, and the recording sheet on which the two-dimensional code is recorded is discharged to the discharge table.

図2は、図1に示す記録装置10によって記録用紙Pに記録された本実施の形態に係るマトリクス型二次元コード30(以下、「二次元コード30」という。)の構成の一例を示す構成図である。図2に示すように、記録用紙Pに記録された二次元コード30は、マトリクス状に配置された複数の画素の特定色の有無によって二値化情報が表現された四角形状の画像である。なお、ここでは、輪郭が四角形状の画像を例示しているが、これに限らず、楕円形や四角形以外の多角形であっても良い。   FIG. 2 shows an example of the configuration of a matrix type two-dimensional code 30 (hereinafter referred to as “two-dimensional code 30”) according to the present embodiment recorded on the recording paper P by the recording apparatus 10 shown in FIG. FIG. As shown in FIG. 2, the two-dimensional code 30 recorded on the recording paper P is a rectangular image in which binarization information is expressed by the presence or absence of a specific color of a plurality of pixels arranged in a matrix. Note that, here, an image having a quadrangular outline is illustrated, but the present invention is not limited thereto, and may be an ellipse or a polygon other than a quadrangle.

本第1の実施の形態に係る二次元コード30は、読取対象図柄の一例である白黒による二値図柄である。すなわち、例えば黒を特定色とし、この特定色の有無によって種々の情報が表現された二値図柄と言える。二次元コード30は、位置・向き検出シンボル32A〜32Dを有する解読支援二値図柄32、解読対象二値図柄34及び複数の基準二値図柄36を含んで構成されている。すなわち、二次元コード30は、四角形状の被記録対象領域38に解読支援二値図柄32、解読対象二値図柄34及び基準二値図柄36が記録されることによって構成されている。   The two-dimensional code 30 according to the first embodiment is a black and white binary symbol which is an example of a symbol to be read. That is, it can be said that it is a binary design in which, for example, black is a specific color and various information is expressed by the presence or absence of the specific color. The two-dimensional code 30 includes a decoding support binary symbol 32 having position / orientation detection symbols 32A to 32D, a decoding target binary symbol 34, and a plurality of reference binary symbols 36. That is, the two-dimensional code 30 is configured by recording a decoding support binary symbol 32, a decoding target binary symbol 34, and a reference binary symbol 36 in a rectangular recording target region 38.

被記録対象領域38は、二次元コード30の輪郭によって外枠が規定されており、縦長四角形状とされている。また、被記録対象領域38は、複数の四角形状の分割領域(m行n列の分割領域)に分割されている。本第1の実施の形態では、被記録対象領域38が一例として図2に示すように4行3列の分割領域に区分けされている。   The recording target area 38 has an outer frame defined by the outline of the two-dimensional code 30 and has a vertically long rectangular shape. Further, the recording target area 38 is divided into a plurality of quadrangular divided areas (divided areas of m rows and n columns). In the first embodiment, the recording target area 38 is divided into divided areas of 4 rows and 3 columns as shown in FIG.

解読支援二値図柄32は、解読対象二値図柄34が如何なる解読対象情報を含んでいようとも、これに拘らず被記録対象領域38における位置及び特定色の有無の配列が固定された二値図柄であり、位置・向き検出シンボル32A〜32Dの他に、二次元コード30のバージョンを示すバージョン情報が表現された図柄(図示省略)や二次元コード30のフォーマットを示すフォーマット情報が表現された図柄(図示省略)などを含んで構成されている。   The decoding support binary pattern 32 is a binary in which the position in the recording target area 38 and the arrangement of the presence or absence of a specific color are fixed regardless of what decoding target information the decoding target binary pattern 34 contains. In addition to the position / orientation detection symbols 32 </ b> A to 32 </ b> D, a pattern (not shown) in which version information indicating the version of the two-dimensional code 30 is expressed and format information indicating the format of the two-dimensional code 30 are expressed. It includes a design (not shown).

位置・向き検出シンボル32A〜32Dは、被記録対象領域38に含まれる画素の位置及び被記録対象領域38の向きを特定するための図柄である。そのため、位置・向き検出シンボル32A〜32Dは解読対象二値図柄34が如何なる解読対象情報を含んでいようとも、これに拘らず被記録対象領域38における位置及び特定色の有無の配列が固定されている。例えば、本第1の実施の形態に係る位置・向き検出シンボル32A〜32Dの各々は四角形状の二値図柄であり、位置特定支援情報の一例である白黒による2行2列の市松模様とされており、市松模様の白領域及び黒領域の各々は複数の画素の集合とされている。また、位置・向き検出シンボル32A〜32Dは被記録対象領域38の四隅に配置されている。図2に示す例では、位置・向き検出シンボル32Aが1行目1列目の分割領域に、位置・向き検出シンボル32Bが4行目1列目の分割領域に、位置・向き検出シンボル32Cが1行目3列目の分割領域に、位置・向き検出シンボル32Dが4行目3列目の分割領域に各々配置されている。すなわち、図2において、位置・向き検出シンボル32Aは被記録対象領域38の正面視左上隅に、位置・向き検出シンボル32Bは被記録対象領域38の正面視左下隅に、位置・向き検出シンボル32Cは被記録対象領域38の正面視右上隅に、位置・向き検出シンボル32Dは被記録対象領域38の正面視右下隅に各々配置されている。位置・向き検出シンボル32Dの白黒の配列は、位置・向き検出シンボル32A〜32Cの白黒の配列とは異なっている。従って、位置・向き検出シンボル32A〜32Dが読み取られて位置・向き検出シンボル32A〜32Dの相対的な位置関係が特定されることによって二次元コード30の向きが特定され、これによって二次元コード30に含まれる画素の位置が特定される。なお、図2に示す例では、位置・向き検出シンボル32Aに含まれる特定の画素の一例である正面視左上隅の画素の位置を原点として二次元コード30に含まれる画素の各々の位置が二次元座標で特定される。   The position / orientation detection symbols 32 </ b> A to 32 </ b> D are symbols for specifying the positions of pixels included in the recording target area 38 and the orientation of the recording target area 38. For this reason, the position / orientation detection symbols 32A to 32D are fixed in the arrangement of the position and the presence / absence of a specific color in the recording target area 38 regardless of the decoding target binary pattern 34, regardless of the decoding target information. ing. For example, each of the position / orientation detection symbols 32A to 32D according to the first embodiment is a square binary pattern, and is a checkered pattern of 2 rows and 2 columns in black and white, which is an example of position specifying support information. Each of the checkered white area and the black area is a set of a plurality of pixels. The position / orientation detection symbols 32 </ b> A to 32 </ b> D are arranged at the four corners of the recording target area 38. In the example shown in FIG. 2, the position / orientation detection symbol 32A is in the divided area of the first row and the first column, and the position / orientation detection symbol 32B is in the divided area of the fourth row and the first column. Position / orientation detection symbols 32D are arranged in the divided area of the fourth row and the third column in the divided area of the first row and the third column, respectively. That is, in FIG. 2, the position / orientation detection symbol 32A is located in the upper left corner of the recording target area 38, and the position / orientation detection symbol 32B is located in the lower left corner of the recording target area 38 when viewed in front. Are arranged in the upper right corner of the recording target area 38 in the front view, and the position / orientation detection symbol 32D is arranged in the lower right corner of the recording target area 38 in the front view. The black-and-white arrangement of the position / orientation detection symbols 32D is different from the black-and-white arrangement of the position / orientation detection symbols 32A to 32C. Therefore, the orientation of the two-dimensional code 30 is specified by reading the position / orientation detection symbols 32A to 32D and specifying the relative positional relationship between the position / orientation detection symbols 32A to 32D. The position of the pixel included in is specified. In the example illustrated in FIG. 2, the position of each pixel included in the two-dimensional code 30 is two with the position of the pixel in the upper left corner of the front view as an example of a specific pixel included in the position / orientation detection symbol 32 </ b> A being the origin. Identified in dimensional coordinates.

解読対象二値図柄34は、被記録対象領域38における解読支援二値図柄32以外の領域に含まれる複数の画素の各々が1画素単位で解読対象情報に応じて白又は黒で表現された二値図柄である。解読対象情報とは、符号化された情報であって、復号されることによって解読される情報のことである。解読対象二値図柄34は、画素毎に解読対象情報が白又は黒で表現された図柄である。解読対象二値図柄34は、位置・向き検出シンボル32A〜32Dと共に読み取られ、これによって特定された位置・向き検出シンボル32A〜32Dの相対的な位置関係に基づいて解読対象二値図柄34を構成している複数の画素の各々の被記録対象領域38における位置が特定される。具体的には、位置・向き検出シンボル32Aの正面視左上隅の画素の位置を原点とした二次元座標で特定される。   In the decoding target binary design 34, each of a plurality of pixels included in a region other than the decoding support binary design 32 in the recording target region 38 is expressed in white or black according to the decoding target information in units of one pixel. Value design. The decoding target information is encoded information that is decoded by being decoded. The decoding target binary design 34 is a design in which the decoding target information is expressed in white or black for each pixel. The decoding target binary design 34 is read together with the position / orientation detection symbols 32A to 32D, and the decoding target binary design 34 is configured based on the relative positional relationship of the position / orientation detection symbols 32A to 32D specified thereby. The position of each of the plurality of pixels in the recording target area 38 is specified. Specifically, the position / orientation detection symbol 32A is specified by two-dimensional coordinates with the position of the pixel at the upper left corner of the front view as the origin.

基準二値図柄36は、解読対象二値図柄34における複数の特定位置に挿入されている。基準二値図柄36は、特定色の有無(本第1の実施の形態では一例として白黒)を識別する対象とされる画素(以下、「識別対象画素」という。)33が含まれる識別対象図柄(本第1の実施の形態では一例として解読支援二次画像32及び解読対象二値図柄34)の識別対象画素33の特定色の有無を識別するための基準とする二値図柄である。すなわち、特定色の有無を識別する際に用いられる閾値を規定する二値図柄である。基準二値図柄36は、一対の白黒の画素である。基準二値図柄36に含まれる白黒の画素の配列の向きには4種類の向きがある。すなわち、ここで言う4種類の配列の向きとは、左右に黒画素及び白画素、左右に白画素及び黒画素、上下に黒画素及び白画素、及び上下に白画素及び黒画素のことである。   The reference binary symbol 36 is inserted at a plurality of specific positions in the decoding target binary symbol 34. The reference binary symbol 36 includes an identification target symbol including a pixel 33 (hereinafter referred to as “identification target pixel”) that is a target for identifying the presence or absence of a specific color (monochrome in the first embodiment as an example). (In the first embodiment, as an example, the decoding support secondary image 32 and the decoding target binary design 34) are binary symbols used as a reference for identifying the presence or absence of a specific color of the identification target pixel 33. That is, it is a binary design that defines a threshold value used when identifying the presence or absence of a specific color. The reference binary pattern 36 is a pair of black and white pixels. There are four types of orientations of the monochrome pixel array included in the reference binary pattern 36. That is, the four types of orientations referred to here are black and white pixels on the left and right, white and black pixels on the left and right, black and white pixels on the top and bottom, and white and black pixels on the top and bottom. .

基準二値図柄36は、被記録対象領域38のマトリクス状に配置された複数の画素における行方向(横方向)及び列方向(縦方向)の各々について解読対象二値図柄34に配列の向き毎に予め定められた規則に従って(例えば所定間隔毎に)挿入されている。これにより各分割領域には予め定められた位置に複数の基準二値図柄36が配置される。なお、図2に示す例では、この他にも1行目2列目の分割領域及び4行目2列目の分割領域の各々の中央部に基準二値図柄36が挿入されている。また、2行目1列目の分割領域から3行目1列目の分割領域に跨って基準二値図柄36が挿入されている。また、2行目3列目の分割領域から3行目3列目の分割領域に跨って基準二値図柄36が挿入されている。   The reference binary design 36 is arranged in the decoding target binary design 34 for each orientation of the row direction (horizontal direction) and the column direction (vertical direction) in a plurality of pixels arranged in a matrix of the recording target region 38. Are inserted according to a predetermined rule (for example, at predetermined intervals). As a result, a plurality of reference binary symbols 36 are arranged at predetermined positions in each divided region. In addition, in the example shown in FIG. 2, the reference binary symbol 36 is inserted in the center of each of the divided areas of the first row and the second column and the divided areas of the fourth row and the second column. Further, a reference binary symbol 36 is inserted from the divided area of the second row and the first column to the divided area of the third row and the first column. In addition, a reference binary symbol 36 is inserted from the divided area of the second row and the third column to the divided area of the third row and the third column.

図3は、二次元コード30を読み取るための読取装置及び画素の特定色の有無を識別する識別装置として機能するカメラ付き携帯電話機40の構成の一例を示すブロック図である。図3に示すカメラ付き携帯電話機(以下、「携帯電話機」という。)40は、送話及び受話などの一般的な固定式電話機に含まれる通話機能、電子メールを作成・送信・受信するメール機能及び静止画撮影を行う撮影機能を備えた携帯端末装置である。携帯電話機40は、携帯電話機40全体の動作を司るCPU40Aと、CPU40Aによる各種処理プログラムの実行時のワークエリア等として用いられるRAM40Bと、各種処理プログラムや各種パラメータなどが予め記憶されたROM40Cと、各種情報を記憶するために用いられる二次記憶部(ここでは、一例としてフラッシュメモリ)40Dと、通話相手から受話する受話部40Eと、通話相手に送話する送話部40Fと、各種情報を入力するために用いられる番号キー、十字キー、タッチパネル・ディスプレイに含まれるタッチパネルなどを含んで構成された入力部40Gと、タッチパネル・ディスプレイに含まれるディスプレイを有し、各種情報を表示する表示部40Hと、上記撮影機能を実現するために用いられるカメラであって、被写体を撮影し、撮影して得た画像を示す撮影画像情報を生成して出力するカメラ(例えばデジタルカメラ)40Iと、通信回線42を介して公衆電話通信網に接続され、他の携帯電話機その他の外部通信機器と通信されるように接続され、外部通信機器との間の各種情報の授受を司る外部インタフェース(I/F)40Jと、を含んで構成されている。これら各部はシステムバス40Kにより電気的に相互に接続されている。従って、CPU40Aは、RAM40B、ROM40C及び二次記憶部40Dに対するアクセスと、入力部40Gを介した各種入力情報の取得と、表示部40Hに対する各種情報の表示と、カメラ40Iの動作の制御と、カメラ40Iにより撮影して得られた撮影画像情報の取得と、受話部40E及び送話部40Fの動作の制御と、受話部40E及び送話部40Fの動作状態の把握と、外部I/F40Jを介した外部通信装置との間の各種情報の授受と、を各々行う。   FIG. 3 is a block diagram showing an example of the configuration of a camera-equipped mobile phone 40 that functions as a reading device for reading the two-dimensional code 30 and an identification device that identifies the presence or absence of a specific color of a pixel. A mobile phone with camera (hereinafter referred to as “mobile phone”) 40 shown in FIG. 3 includes a call function included in a general fixed telephone such as transmission and reception, and a mail function for creating, transmitting and receiving e-mails. And a portable terminal device having a photographing function for photographing a still image. The mobile phone 40 includes a CPU 40A that controls the overall operation of the mobile phone 40, a RAM 40B that is used as a work area when the CPU 40A executes various processing programs, a ROM 40C that stores various processing programs, various parameters, and the like, A secondary storage unit (in this example, a flash memory) 40D used for storing information, a receiver unit 40E for receiving a call from a call partner, a transmitter unit 40F for transmitting to a call partner, and various information are input. An input unit 40G configured to include a number key, a cross key, and a touch panel included in the touch panel display, and a display unit 40H having a display included in the touch panel display and displaying various types of information. , A camera used to realize the above shooting functions A camera (for example, a digital camera) 40I that shoots a subject and generates and outputs photographed image information indicating an image obtained by photographing is connected to a public telephone communication network via a communication line 42. An external interface (I / F) 40J that is connected to communicate with a mobile phone or other external communication device, and that exchanges various types of information with the external communication device. These units are electrically connected to each other via a system bus 40K. Therefore, the CPU 40A accesses the RAM 40B, ROM 40C, and secondary storage unit 40D, acquires various input information via the input unit 40G, displays various information on the display unit 40H, controls the operation of the camera 40I, and the camera. Acquisition of photographed image information obtained by photographing with 40I, control of operations of the receiving unit 40E and the transmitting unit 40F, grasping operation states of the receiving unit 40E and the transmitting unit 40F, and an external I / F 40J Various information is exchanged with the external communication device.

なお、本第1の実施の形態に係る携帯電話機10のROM40Bには、二次元コード30の輪郭(一例として被記録対象領域38の輪郭)として予め定められた輪郭における予め定められた箇所(例えば予め定められた頂点)から各分割領域の位置を一意に特定する位置特定情報として予め定められた分割領域位置特定情報、及び分割領域における基準二値図柄の位置を一意に特定する位置特定情報として予め定められた基準二値図柄位置特定情報が予め記憶されている。   In the ROM 40B of the mobile phone 10 according to the first embodiment, a predetermined location (for example, a contour that is predetermined as the contour of the two-dimensional code 30 (the contour of the recording target region 38 as an example)) (for example, As position specifying information that is predetermined as position specifying information for uniquely specifying the position of each divided area from a predetermined vertex) and position specifying information for uniquely specifying the position of the reference binary symbol in the divided area Predetermined reference binary symbol position specifying information is stored in advance.

ところで、二次元コード30に含まれる解読対象二値図柄34により示される解読対象情報を解読するためには、先ず、解読支援二値図柄32及び解読対象二値図柄34を二値化する必要がある。すなわち、二次元コード30に含まれる各画素が白であるか黒であるかを閾値を用いて識別する必要がある。   By the way, in order to decode the decoding target information indicated by the decoding target binary symbol 34 included in the two-dimensional code 30, first, it is necessary to binarize the decoding support binary symbol 32 and the decoding target binary symbol 34. is there. That is, it is necessary to identify whether each pixel included in the two-dimensional code 30 is white or black using a threshold value.

しかし、従来は、例えば各画素の白及び黒を識別するための基準となる閾値が1つの固定値とされていたので、一例として図4に示すように明暗のバランスが崩れた不鮮明(例えば低コントラスト)な二次元コードを携帯電話機40のカメラ40Iで撮影することにより読み取って得られた撮影画像情報により示される画像に含まれる各画素の二値化が一例として図5に示すように正しく行われないことがあった。また、分割領域の各々に対して事前に定めた閾値を割り当てた場合であっても実際の二次元コード30の読み取り面における明るさが反映された閾値ではないため、やはり二値化が正しく行われない。   However, conventionally, for example, the threshold value used as a reference for identifying white and black of each pixel is set to one fixed value, and as an example, as shown in FIG. As an example, binarization of each pixel included in an image indicated by captured image information obtained by capturing a contrast two-dimensional code with the camera 40I of the mobile phone 40 is performed correctly as shown in FIG. There was something I couldn't do. Even if a predetermined threshold value is assigned to each of the divided areas, it is not a threshold value that reflects the brightness of the actual reading surface of the two-dimensional code 30, and therefore binarization is performed correctly. I will not.

そこで、本第1の実施の形態に係る二次元コード30では、上述したように基準二値図柄36を備えることによって従来に比べて高精度な二値化を実現している。そして、携帯電話機40では、カメラ40Iにより二次元コード30を読み取り、読み取って得られた撮影画像情報に基づいて二次元コード30を二値化して解読対象情報を解読する二次元コード解読処理が実行される。   Therefore, the two-dimensional code 30 according to the first embodiment realizes binarization with higher accuracy than before by providing the reference binary symbol 36 as described above. Then, in the mobile phone 40, a two-dimensional code decoding process is performed in which the two-dimensional code 30 is read by the camera 40I, and the two-dimensional code 30 is binarized and the decoding target information is decoded based on the captured image information obtained by the reading. Is done.

携帯電話機40では、二次元コード解読処理を実現するための各種処理がソフトウェア構成によって実現される。その一例としては、コンピュータを利用してプログラムを実行する形態が挙げられる。しかし、このようなソフトウェア構成による実現に限られるものではなく、ハードウェア構成や、ハードウェア構成とソフトウェア構成との組み合わせによって実現しても良いことは言うまでもない。   In the mobile phone 40, various processes for realizing the two-dimensional code decoding process are realized by a software configuration. As an example, there is a form in which a program is executed using a computer. However, the present invention is not limited to such a software configuration. Needless to say, it may be realized by a hardware configuration or a combination of a hardware configuration and a software configuration.

以下では、本実施の形態に係る携帯電話機40のCPU40Aが二次元コード解読処理プログラムを実行することにより二次元コード解読処理を実現する場合について説明する。この場合、二次元コード解読処理プログラムをROM40Cに予め記憶させておく形態や、記憶内容がコンピュータによって読み取られる記録媒体に記憶された状態で提供される形態、有線または無線による通信手段を介して配信される形態等を適用しても良い。   Below, the case where CPU40A of the mobile telephone 40 which concerns on this Embodiment implement | achieves a two-dimensional code decoding process by executing a two-dimensional code decoding process program is demonstrated. In this case, the two-dimensional code decoding processing program is stored in the ROM 40C in advance, the stored content is stored in a recording medium that can be read by a computer, or distributed via wired or wireless communication means. The form to be applied may be applied.

図6は、本第1の実施の形態に係る二次元コード解読処理プログラムの処理の流れの一例を示すフローチャートである。なお、ここでは、錯綜を回避するために、一例として図7に示すように明るさの分布に偏りがある二次元コード30を被写体として携帯電話機40のカメラ40Iにより静止画撮影を行う場合について説明する。また、ここでは、錯綜を回避するために、カメラ40Iにより静止画撮影を行って得られた画像に歪みがない場合について説明する。   FIG. 6 is a flowchart showing an example of the processing flow of the two-dimensional code decryption processing program according to the first embodiment. Here, in order to avoid complications, as an example, a case where still image shooting is performed by the camera 40I of the mobile phone 40 using the two-dimensional code 30 having an uneven brightness distribution as an object as illustrated in FIG. 7 will be described. To do. Here, a case will be described in which there is no distortion in an image obtained by taking a still image with the camera 40I in order to avoid complications.

図6のステップ100では、撮影開始の指示の受け付け待ちを行う。すなわち、ステップ100では、入力部40Gを介して撮影開始の指示が受け付けられると肯定判定となってステップ102に移行する。ステップ102では、撮影機能を働かせて静止画撮影を開始した後、ステップ104に移行する。ステップ104では、二次元コード30の画像(以下、「二次元コード画像」という。)を示す撮影画像情報を生成して予め定められた記憶領域(例えば二次記憶部40の記憶領域)αに記憶した後、ステップ106に移行し、静止画撮影が終了したか否かを判定し、否定判定となった場合にはステップ104に戻る一方、肯定判定となった場合にはステップ108に移行する。   In step 100 of FIG. 6, the apparatus waits for an instruction to start shooting. That is, in step 100, when an instruction to start photographing is accepted via the input unit 40G, an affirmative determination is made and the process proceeds to step 102. In step 102, the still image shooting is started by using the shooting function, and then the process proceeds to step 104. In step 104, photographed image information indicating an image of the two-dimensional code 30 (hereinafter referred to as “two-dimensional code image”) is generated and stored in a predetermined storage area (for example, a storage area of the secondary storage unit 40) α. After the storage, the process proceeds to step 106, where it is determined whether or not the still image shooting is completed. If the determination is negative, the process returns to step 104, whereas if the determination is affirmative, the process proceeds to step 108. .

ステップ108では、記憶領域αに記憶されている撮影画像情報により示される二次元コード画像の輪郭を示す輪郭情報を撮影画像情報から抽出した後、ステップ110に移行し、ステップ110では、上記ステップ108の処理により取得された輪郭情報により示される輪郭から分割領域位置特定情報に基づいて全ての分割領域の位置を推定することにより特定する。   In step 108, the contour information indicating the contour of the two-dimensional code image indicated by the captured image information stored in the storage area α is extracted from the captured image information, and then the process proceeds to step 110. It specifies by estimating the position of all the division areas based on the division area position specifying information from the outline indicated by the outline information acquired by the process.

次のステップ112では、上記ステップ110の処理により特定された分割領域の各々から基準二値図柄位置特定情報に基づいて分割領域の各々における基準二値図柄の位置を推定することにより特定した後、ステップ114に移行する。   In the next step 112, after specifying by estimating the position of the reference binary symbol in each of the divided regions based on the reference binary symbol position specifying information from each of the divided regions specified by the processing of step 110, Control goes to step 114.

ステップ114では、上記ステップ110の処理により特定された分割領域の位置に基づいて、注目すべき分割領域(注目分割領域)を決定する。すなわち、未だに二値化処理(白黒の識別)が行われていない画素を含む分割領域の1つを注目分割領域として決定する。次のステップ116では、上記ステップ114の処理によって決定された注目分割領域について、記憶領域αに記憶されている撮影画像情報により示される二次元コード画像に含まれる未だに二値化処理が行われていない画素である識別対象画素33を示す識別対象画素情報を撮影画像情報から取得した後、ステップ118に移行する。ステップ118では、上記ステップ114の処理によって決定された注目分割領域について、上記ステップ112の処理により特定された基準二値図柄の位置に基づいて、記憶領域αに記憶されている撮影画像情報により示される二次元コード画像に含まれる基準二値図柄を示す基準二値図柄情報を撮影画像情報から取得する。   In step 114, based on the position of the divided area specified by the processing of step 110, a divided area to be noted (target divided area) is determined. That is, one of the divided areas including pixels that have not been subjected to binarization processing (black and white identification) is determined as a target divided area. In the next step 116, the binarization process is still performed for the target divided area determined by the process in step 114, which is included in the two-dimensional code image indicated by the captured image information stored in the storage area α. After the identification target pixel information indicating the identification target pixel 33 that is not a pixel is acquired from the captured image information, the process proceeds to step 118. In step 118, the attention divided area determined by the process of step 114 is indicated by the captured image information stored in the storage area α based on the position of the reference binary symbol specified by the process of step 112. The reference binary symbol information indicating the reference binary symbol included in the two-dimensional code image is acquired from the captured image information.

次のステップ120では、上記ステップ116の処理により取得された識別対象画素情報を、上記ステップ118の処理により取得された基準二値図柄情報に基づいて二値化処理する。すなわち、基準二値図柄情報から識別対象画像の黒と白との識別に供する閾値を特定し、特定した閾値を用いて、上記ステップ116の処理により取得された識別対象画素情報により示される識別対象画素33が白であるか黒であるかの識別を行う。また、分割領域には複数の基準二値図柄が含まれているので、本ステップ120では、識別対象画素33との距離が最も短い基準二値図柄を示す基準二値図柄情報に基づいて二値化処理を行う。なお、識別対象画素33との距離が相違しない複数の基準二値図柄が存在する場合には予め定められた規則(例えば隣接する識別対象画素33との距離が短い方の基準二値図柄を示す基準二値図柄情報を採用するとの規則、最も大きな画素値を有する基準二値図柄を示す基準二値図柄情報を採用するとの規則、最も小さな画素値を有する基準二値図柄を示す基準二値図柄情報を採用するとの規則、画素値の平均値が最も大きな基準二値図柄を示す基準二値図柄情報を採用するとの規則、画素値の平均値が最も小さな基準二値図柄を示す基準二値図柄情報を採用するとの規則、或いは乱数を用いた抽選により決定する規則など)に従って何れか1つの基準二値図柄を決定しても良い。   In the next step 120, the discrimination target pixel information acquired by the process of step 116 is binarized based on the reference binary symbol information acquired by the process of step 118. That is, a threshold value for identifying black and white of the identification target image is identified from the reference binary symbol information, and the identification target indicated by the identification target pixel information acquired by the processing in step 116 is performed using the identified threshold value. Whether the pixel 33 is white or black is identified. In addition, since a plurality of reference binary symbols are included in the divided area, in this step 120, the binary is based on the reference binary symbol information indicating the reference binary symbol having the shortest distance from the identification target pixel 33. Process. In addition, when there are a plurality of reference binary symbols whose distances from the identification target pixel 33 are not different, a predetermined rule (for example, a reference binary symbol having a shorter distance from the adjacent identification target pixel 33 is shown. Rules for adopting reference binary symbol information, rules for adopting reference binary symbol information indicating a reference binary symbol having the largest pixel value, and reference binary symbols indicating a reference binary symbol having the smallest pixel value The rules for adopting information, the rules for adopting the reference binary design information indicating the reference binary design having the largest average value of the pixel values, and the reference binary design showing the reference binary design having the smallest average value of the pixel values Any one of the reference binary symbols may be determined in accordance with a rule of adopting information or a rule determined by lottery using random numbers.

次のステップ122では、上記ステップ120で二値化処理の対象とされた識別対象画素33の二次元コード30における位置を示す二次元座標及び上記ステップ120での二値化処理の結果を関連付けて予め定められた記憶領域(例えば二次記憶部40の記憶領域)βに記憶する。これにより記憶領域βには二値化された解読対象二値図柄34を示す解読支援二値図柄情報と二値化された解読対象二値図柄34を示す解読対象二値図柄情報が記憶される。   In the next step 122, the two-dimensional coordinates indicating the position in the two-dimensional code 30 of the identification target pixel 33 that is the target of the binarization process in step 120 and the result of the binarization process in step 120 are associated with each other. It is stored in a predetermined storage area (for example, a storage area of the secondary storage unit 40) β. As a result, the decoding support binary symbol information indicating the binarized decoding target binary symbol 34 and the decoding target binary symbol information indicating the binarized decoding target binary symbol 34 are stored in the storage area β. .

次のステップ124では、上記ステップ116〜122の処理によって二値化処理が未だに行われていない識別対象画素33がないか否かを判定し、否定判定となった場合にはステップ116に戻る一方、肯定判定となった場合にはステップ126に移行する。ステップ126では、未だに二値化処理が行われていない識別対象画素33を含む分割領域がないか否かを判定し、否定判定となった場合にはステップ114に戻る一方、肯定判定となった場合にはステップ128に移行する。ステップ128では、記憶領域βに記憶されている解読支援二値図柄情報に基づいて、記憶領域βに記憶されている解読対象二値図柄情報を復号した後、本二次元コード解読処理プログラムを終了する。   In the next step 124, it is determined whether or not there is an identification target pixel 33 for which the binarization processing has not yet been performed by the processing in the above steps 116 to 122, and if negative determination is made, the process returns to step 116. If the determination is affirmative, the routine proceeds to step 126. In step 126, it is determined whether or not there is a divided region including the identification target pixel 33 that has not been subjected to the binarization process. If a negative determination is made, the process returns to step 114, while an affirmative determination is made. If yes, go to Step 128. In step 128, based on the decoding support binary symbol information stored in the storage area β, the decoding target binary symbol information stored in the storage area β is decoded, and then the two-dimensional code decoding processing program is terminated. To do.

なお、本第1の実施の形態では、分割領域に複数の基準二値図柄36を含む場合の形態例を挙げて説明したが、これに限らず、一例として図8に示すように分割領域毎に1つの基準二値図柄36を挿入するようにしても良い。この場合、分割領域に複数の基準二値図柄36を含む場合に比べ、識別対象画素33から最も近い位置に存在する基準二値図柄36を探索する処理にかかる負荷が軽減される。また、分割領域毎に1つの基準二値図柄36を挿入する場合も分割領域における特定の位置(上述した基準二値図柄位置特定情報に相当する情報によって一意に特定される位置)に基準二値図柄36を配置すると良い。これにより、分割領域毎に異なる位置に基準二値図柄36を配置する場合に比べ、基準二値図柄36の位置を特定する処理にかかる負荷が軽減される。   In the first embodiment, the example of the case where the divided region includes a plurality of reference binary symbols 36 has been described. However, the present invention is not limited to this, and as an example, for each divided region as shown in FIG. One reference binary symbol 36 may be inserted into the. In this case, compared to the case where the divided region includes a plurality of reference binary symbols 36, the load on the process of searching for the reference binary symbol 36 present at the position closest to the identification target pixel 33 is reduced. Further, even when one reference binary symbol 36 is inserted for each divided region, the reference binary is specified at a specific position in the divided region (a position uniquely specified by the information corresponding to the above-described reference binary symbol position specifying information). It is good to arrange the pattern 36. This reduces the load on the process of specifying the position of the reference binary symbol 36 as compared to the case where the reference binary symbol 36 is arranged at a different position for each divided region.

また、本第1の実施の形態では、白黒の識別を行う場合の形態例を挙げて説明したが、これに限らず、例えば図9に示すように基準二値図柄(第1基準図柄の一例)36と共に一対の有彩色(ここでは一例として白赤)の有彩色基準二値図柄(第2基準図柄の一例)50を分割領域の各々に挿入しても良い。この場合、例えば解読支援二値図柄32及び解読対象二値図柄34の一方を白黒(一対の無彩色)で表現すると共に他方を白赤(一対の有彩色)で表現し、分割領域毎に、解読支援二値図柄32及び解読対象二値図柄34の一方に含まれる画素の白黒の識別を、基準二値図柄36から取得される閾値を用いて行うと共に、解読支援二値図柄32及び解読対象二値図柄34の他方に含まれる画素の白赤の識別を、有彩色基準二値図柄50から取得される閾値を用いて行う。なお、この場合も基準二値図柄36及び有彩色基準二値図柄50を分割領域における特定の位置(上述した基準二値図柄位置特定情報に相当する情報によって一意に特定される位置)に配置すると良い。この場合、基準二値図柄36及び有彩色基準二値図柄50を分割領域における特定の位置に配置しない場合に比べ、基準二値図柄36及び有彩色基準二値図柄50の位置を特定する処理にかかる負荷が軽減される。   Further, in the first embodiment, the example of the case of performing black and white identification has been described. However, the present invention is not limited to this. For example, as shown in FIG. 9, a reference binary symbol (an example of the first reference symbol) ) And a pair of chromatic color reference binary symbols (an example of a second reference symbol) 50 of a chromatic color (here, white red as an example) may be inserted into each of the divided regions. In this case, for example, one of the decoding support binary design 32 and the decoding target binary design 34 is expressed in black and white (a pair of achromatic colors) and the other is expressed in white red (a pair of chromatic colors). Black and white identification of pixels included in one of the decoding support binary design 32 and the decoding target binary design 34 is performed using a threshold value acquired from the reference binary design 36, and the decoding support binary design 32 and the decoding target Identification of white and red of the pixels included in the other of the binary symbols 34 is performed using a threshold value acquired from the chromatic color reference binary symbol 50. In this case as well, if the reference binary symbol 36 and the chromatic color reference binary symbol 50 are arranged at specific positions in the divided areas (positions uniquely specified by the information corresponding to the reference binary symbol position specifying information described above). good. In this case, compared with the case where the reference binary symbol 36 and the chromatic color reference binary symbol 50 are not arranged at specific positions in the divided areas, the processing for specifying the positions of the reference binary symbol 36 and the chromatic color reference binary symbol 50 is performed. Such a load is reduced.

また、解読支援二値図柄32が一対の有彩色及び一対の無彩色を組み合わせた画像であったり、解読対象二値図柄34が一対の有彩色及び一対の無彩色を組み合わせた画像であったりしても、無彩色(例えば白又は黒)が施される画素に対しては基準二値図柄36を基準にして識別を行えば良く、有彩色(例えば白又は赤)が施される画素に対しては有彩色基準二値図柄50を基準にして識別を行えば良い。   The decoding support binary design 32 may be an image combining a pair of chromatic colors and a pair of achromatic colors, or the decoding target binary design 34 may be an image combining a pair of chromatic colors and a pair of achromatic colors. However, it is only necessary to identify a pixel to which an achromatic color (for example, white or black) is applied with reference to the reference binary pattern 36, and to a pixel to which a chromatic color (for example, white or red) is applied. For example, identification may be performed with reference to the chromatic color reference binary design 50.

また、本第1の実施の形態では、解読支援二値図柄32に含まれる画素及び解読対象二値図柄34に含まれる画素を識別対象画素33として例示したが、解読支援二値図柄32及び解読対象二値図柄34の少なくとも一方に含まれる画素を識別対象画素33とすれば良い。   In the first embodiment, the pixels included in the decoding support binary design 32 and the pixels included in the decoding target binary design 34 are exemplified as the identification target pixel 33. However, the decoding support binary design 32 and the decoding A pixel included in at least one of the target binary symbols 34 may be the identification target pixel 33.

ここで、解読支援二値図柄32に含まれる画素を識別対象画素33とせずに、解読対象二値図柄34に含まれる画素を識別対象画素33としても良い理由を説明する。本第1の実施の形態では、位置・向き検出シンボル32A〜32Dの各々が一例として図2に示すように白領域及び黒領域の市松模様に形成されており、白領域及び黒領域の各々が複数の画素の集合とされている。つまり、解読対象二値図柄34では、解読対象情報が1画素単位で表現されているため、解読対象二値図柄34に含まれる1画素の二値化の失敗は解読対象情報の解読に大きな影響を及ぼす虞があるのに対し、位置・向き検出シンボル32A〜32Dでは、仮に1画素の二値化に失敗したとしても周辺の画素によってその失敗が誤り訂正処理などによって補填される。そのため、位置・向き検出シンボル32A〜32Dは、基準二値図柄36を基準にした二値化処理を行わずとも従来の手法による二値化処理によってその機能を発揮するものと考えられる。言い換えると、位置・向き検出シンボル32A〜32Dは、読取対象とされる白領域及び黒領域の面積が1画素の面積に比べて圧倒的に大きいため、解読対象二値図柄34に含まれる1画素の検出に比べ、精度良く検出されるということである。従って、位置・向き検出シンボル32A〜32Dによって二次元コード30の向き及び二次元コード30に含まれる画素の位置が確実に特定されるという前提の下で、識別対象画素33を解読対象二値図柄34に含まれる画素に限定しても良いということが言える。   Here, the reason why the pixel included in the decoding target binary design 34 may be used as the identification target pixel 33 without using the pixel included in the decoding support binary design 32 as the identification target pixel 33 will be described. In the first embodiment, each of the position / orientation detection symbols 32A to 32D is formed in a checkered pattern of a white area and a black area as shown in FIG. 2 as an example. It is a set of a plurality of pixels. That is, in the decoding target binary symbol 34, the decoding target information is expressed in units of one pixel. Therefore, the failure to binarize one pixel included in the decoding target binary symbol 34 has a great influence on the decoding of the decoding target information. In contrast, in the position / orientation detection symbols 32A to 32D, even if the binarization of one pixel fails, the failure is compensated by error correction processing or the like by surrounding pixels. Therefore, the position / orientation detection symbols 32 </ b> A to 32 </ b> D are considered to perform their functions by the binarization process using the conventional method without performing the binarization process based on the reference binary symbol 36. In other words, the position / orientation detection symbols 32 </ b> A to 32 </ b> D have one pixel included in the binary symbol 34 to be decoded because the areas of the white region and black region to be read are overwhelmingly larger than the area of one pixel. This means that it is detected with higher accuracy than the detection of. Therefore, on the assumption that the position and orientation detection symbols 32 </ b> A to 32 </ b> D reliably specify the direction of the two-dimensional code 30 and the position of the pixel included in the two-dimensional code 30, the identification target pixel 33 is determined as the decoding target binary pattern. It can be said that the number of pixels included in the pixel 34 may be limited.

また、本第1の実施の形態では、基準二値図柄36により白黒を識別するための基準となる閾値を決定する場合の形態例を挙げて説明したが、これに限らず、位置・向き検出シンボル32A〜32Dの少なくとも1つの白黒も参照して閾値を決定しても良い。例えば、位置・向き検出シンボル32Aの白領域の平均濃度と基準二値図柄36の白画素の濃度との平均値、及び位置・向き検出シンボル32Aの黒領域の平均濃度と基準二値図柄36の黒画素の濃度との平均値に基づいて閾値を決定する形態例が挙げられる。また、解読支援二値図柄32のうちの位置・向き検出シンボル32A〜32D以外のもの(例えばフォーマット情報を示す画像や読取タイミングを規定する画像など)及び基準二値図柄36に基づいて閾値を決定しても良い。   In the first embodiment, an example has been described in which a threshold value serving as a reference for identifying black and white is determined by the reference binary symbol 36. However, the present invention is not limited to this. The threshold value may be determined with reference to at least one black and white of the symbols 32A to 32D. For example, the average value of the white area density of the position / orientation detection symbol 32A and the density of the white pixel of the reference binary pattern 36, and the average density of the black area of the position / orientation detection symbol 32A and the reference binary pattern 36 An example in which the threshold value is determined based on the average value with the density of the black pixel is given. Further, the threshold value is determined based on the decoding support binary symbol 32 other than the position / orientation detection symbols 32A to 32D (for example, an image indicating format information or an image defining the reading timing) and the reference binary symbol 36. You may do it.

また、本第1の実施の形態では、二次元コード30に複数の基準二値図柄36が含まれている形態例を挙げて説明したが、基準二値図柄36は単数であっても良い。この場合も基準二値図柄36を有しない場合に比べ、高精度な二値化処理が行われる。   In the first embodiment, the two-dimensional code 30 includes a plurality of reference binary symbols 36. However, the reference binary symbol 36 may be singular. Also in this case, binarization processing with higher accuracy is performed as compared with the case where the reference binary symbol 36 is not provided.

また、本第1の実施の形態では、被記録対象領域38をマトリクス状に分割して得られた複数の分割領域を例示したが、これは二次元コード30を読み取った後の処理を簡便にするための事前処理であって、必ずしもマトリクス状に分割して分割領域を得なれければならないというわけではなく、マトリクス状以外の分割形態で分割しても良い。   In the first embodiment, a plurality of divided areas obtained by dividing the recording target area 38 into a matrix are illustrated, but this facilitates the processing after the two-dimensional code 30 is read. This is a pre-process for this purpose, and it is not always necessary to obtain a divided region by dividing it into a matrix, and it may be divided in a divided form other than a matrix.

また、本第1の実施の形態では、説明の便宜上、分割領域を四角形状とした場合の形態例を挙げて説明したが、例えば最寄りの2つの分割領域の各々に含まれる基準二値図柄36を参照すると考えた場合、基準二値図柄36を参照する分割領域は四角形状の領域で区切られるというよりはボロノイ図のような形状になる。   In the first embodiment, for the sake of convenience of explanation, an example in which the divided area is a quadrangular shape has been described. For example, the reference binary symbol 36 included in each of the two nearest divided areas is used. Is considered to be a Voronoi diagram rather than being divided by a rectangular area.

また、本第1の実施の形態では、解読対象二値図柄34に基準二値図柄36を挿入した例を挙げたが、これに限らず、解読支援二値図柄32に挿入しても良い。また、有彩色基準二値図柄50も解読支援二値図柄32に挿入しても良い。   Moreover, although the example which inserted the reference | standard binary symbol 36 in the decoding object binary symbol 34 was given in this 1st Embodiment, you may insert in the decoding assistance binary symbol 32 not only this. The chromatic color reference binary symbol 50 may also be inserted into the decoding support binary symbol 32.

ここで、色の閾値を計算する方法について説明する。例えば、白か黒か知りたい画素Xがあるとして、その画素の近くにある色固定画素ペアP0,P1を決める。P0,P1を撮影して得た画像から閾値T0,T1を求める。その閾値の平均を、XとP0,XとP1の距離に基づいて重みを付与して計算し、それをXが白か黒かを決める閾値する。   Here, a method of calculating the color threshold will be described. For example, assuming that there is a pixel X that one wants to know whether it is white or black, a color fixed pixel pair P0, P1 near the pixel is determined. Threshold values T0 and T1 are obtained from images obtained by photographing P0 and P1. The average of the threshold values is calculated by assigning weights based on the distance between X and P0, and X and P1, and this is used as a threshold value for determining whether X is white or black.

[第2の実施の形態]
上記第1の実施の形態では、カメラ40Iにより静止画撮影を行って得られた二次元コード画像に歪みがない場合の二値化処理を例に挙げて説明したが、本第2の実施の形態では、二次元コード画像に歪みが生じている場合の二値化処理について説明する。なお、ここでは上記第1の実施の形態で説明した構成と相違しない構成については上記第1の実施の形態と相違しない符号を付してその説明を省略する。また、上記第1の実施の形態で説明した作用と相違しない作用についてもその説明を省略する。
[Second Embodiment]
In the first embodiment, the binarization processing in the case where there is no distortion in the two-dimensional code image obtained by taking a still image with the camera 40I has been described as an example. However, in the second embodiment, In the embodiment, a binarization process when distortion occurs in the two-dimensional code image will be described. Note that here, components that are not different from those described in the first embodiment are given the same reference numerals as those in the first embodiment, and description thereof is omitted. Also, the description of operations that are not different from the operations described in the first embodiment is omitted.

図10は、上記第1の実施の形態で説明した二次元コード30の構成の一例を示す構成図であり、図11は本第2の実施の形態に係る二次元コード60である。図11に示す二次元コード60は、図10に示す二次元コード30に比べ、横方向の大きさが絞られており、外観が縦長の長方形状とされている。   FIG. 10 is a configuration diagram showing an example of the configuration of the two-dimensional code 30 described in the first embodiment, and FIG. 11 shows a two-dimensional code 60 according to the second embodiment. The two-dimensional code 60 shown in FIG. 11 is narrower in the horizontal direction than the two-dimensional code 30 shown in FIG.

図12は、図10に示す二次元コード30を被写体としてカメラ40Iで静止画撮影を行って得られた二次元コード画像の一例を示す図であり、図13は、図11に示す二次元コード60を被写体としてカメラ40Iで静止画撮影を行って得られた二次元コード画像の一例を示す図である。二次元コード60に係る二次元コード画像は、二次元コード30に係る二次元コード画像に比べ、縦に長細い形状とされているため、カメラ40Iにおけるレンズの歪曲収差により歪みが大きく現れてしまう。   12 is a diagram showing an example of a two-dimensional code image obtained by taking a still image with the camera 40I using the two-dimensional code 30 shown in FIG. 10 as a subject. FIG. 13 is a diagram showing the two-dimensional code shown in FIG. It is a figure which shows an example of the two-dimensional code image obtained by taking a still image with the camera 40I using 60 as a subject. Since the two-dimensional code image related to the two-dimensional code 60 has a vertically long and narrow shape compared to the two-dimensional code image related to the two-dimensional code 30, the distortion appears greatly due to the distortion of the lens in the camera 40I. .

二次元コード60に係る二次元コード画像が歪んでいない場合は一例として図14に示すように一辺が直線状に現れるのに対し、二次元コード60に係る二次元コード画像が歪んでいる場合は一例として図15に示すように一辺が直線上に現れない。つまり、一辺が湾曲した状態で現れる。図14に示す二次元コード画像を模式的に極端に示したものが図16であり、図15に示す二次元コード画像を模式的に極端に示したものが図17である。   When the two-dimensional code image related to the two-dimensional code 60 is not distorted, for example, one side appears in a straight line as shown in FIG. 14, whereas the two-dimensional code image related to the two-dimensional code 60 is distorted. As an example, one side does not appear on a straight line as shown in FIG. That is, it appears with one side curved. FIG. 16 schematically shows the two-dimensional code image shown in FIG. 14 in an extreme manner, and FIG. 17 schematically shows the two-dimensional code image shown in FIG. 15 in an extreme manner.

各画素の位置は一例として図16に示すように一辺が直線状に現れることを前提にして二次元座標によって表現される。ところが、図17に示すように二次元コード画像が歪んでしまうと二次元コード画像に含まれる画素の位置は精度良く特定されない。よって、解読対象二値図柄34により示される解読対象情報も精度良く解読されないことになる。   The position of each pixel is expressed by two-dimensional coordinates on the assumption that one side appears in a straight line as shown in FIG. However, if the two-dimensional code image is distorted as shown in FIG. 17, the positions of the pixels included in the two-dimensional code image cannot be specified with high accuracy. Therefore, the decoding target information indicated by the decoding target binary symbol 34 is not accurately decoded.

そこで、本第2の実施の形態に係る二次元コード60では、一例として図18に示すように位置・向き検出シンボル32Aと位置・向き検出シンボル32Bとの間、及び位置・向き検出シンボル32Cと位置・向き検出シンボル32Dとの間の各々に二次元コード60の輪郭に沿って、位置・向き検出シンボル32A〜32Dによる二次元コード60に含まれる各画素の位置の特定の支援を補助する複数の位置検出補助シンボル62(支援補助二値図柄の一例)が挿入されている。なお、図18に示す例では、位置・向き検出シンボル32Aと位置・向き検出シンボル32Bとの間に挿入された複数の位置検出補助シンボル62が位置・向き検出シンボル32A,32Bを含めて相互間の距離が揃うように予め定められた距離をおいて配置されており、位置・向き検出シンボル32Cと位置・向き検出シンボル32Dとの間に挿入された複数の位置検出補助シンボル62が位置・向き検出シンボル32C,32Dを含めて相互間の距離が揃うように予め定められた距離をおいて配置されている。また、位置検出補助シンボル62は、位置・向き検出シンボル32A〜32Dの各々よりも小さな支援補助情報の一例である市松模様とされている。なお、本第2の実施の形態では、2組の一対の画素(2行2列の画素)を合わせて市松模様を形成しているが、市松模様の全体の大きさが位置・向き検出シンボル32A〜32Dの各々よりも小さく且つ基準二値図柄36よりも大きければ良い。また、必ずしも市松模様である必要はない。また、基準二値図柄36よりも大きくても構わない。   Therefore, in the two-dimensional code 60 according to the second embodiment, as shown in FIG. 18, as an example, between the position / orientation detection symbol 32A and the position / orientation detection symbol 32B, and between the position / orientation detection symbol 32C and A plurality of positions for assisting the specific support of the positions of the respective pixels included in the two-dimensional code 60 by the position / orientation detection symbols 32A to 32D along the outline of the two-dimensional code 60 between the position / orientation detection symbols 32D. The position detection auxiliary symbol 62 (an example of a support auxiliary binary symbol) is inserted. In the example shown in FIG. 18, a plurality of position detection auxiliary symbols 62 inserted between the position / orientation detection symbol 32A and the position / orientation detection symbol 32B include the position / orientation detection symbols 32A and 32B. Are arranged at a predetermined distance so that a plurality of position detection auxiliary symbols 62 inserted between the position / orientation detection symbol 32C and the position / orientation detection symbol 32D are positioned / orientated. The detection symbols 32C and 32D are arranged at a predetermined distance so that the distance between them is uniform. Further, the position detection auxiliary symbol 62 has a checkered pattern which is an example of support auxiliary information smaller than each of the position / orientation detection symbols 32A to 32D. In the second embodiment, a checkered pattern is formed by combining two pairs of pixels (pixels in two rows and two columns), but the overall size of the checkered pattern is a position / orientation detection symbol. What is necessary is just to be smaller than each of 32A-32D and larger than the reference | standard binary symbol 36. FIG. The checkerboard pattern is not necessarily required. Moreover, it may be larger than the reference binary symbol 36.

また、本第2の実施の形態では、被記録対象領域38が一例として図18に示すように3行1列の分割領域に区分けされている。なお、図18に示す例では、破線の矩形で囲まれた領域が分割領域にあたる。   In the second embodiment, the recording target area 38 is divided into divided areas of 3 rows and 1 column as shown in FIG. In the example shown in FIG. 18, a region surrounded by a broken-line rectangle corresponds to a divided region.

また、本第2の実施の形態に係る二次元コード60では、位置検出補助シンボル62が向かい合う辺に配置された位置検出補助シンボル62と行方向で正対するように配置されている。図18に示す例では、位置・向き検出シンボル32Aと位置・向き検出シンボル32Bとの間に挿入された複数の位置検出補助シンボル62の各々と複数の位置検出補助シンボル62が位置・向き検出シンボル32Cと位置・向き検出シンボル32Dとの間に挿入された複数の位置検出補助シンボル62の各々とが行方向で正対している(向かい合っている)。また、行方向で正対する位置検出補助シンボル62間の中央には位置検出中央シンボル64が挿入されている。   In the two-dimensional code 60 according to the second embodiment, the position detection auxiliary symbol 62 is arranged so as to face the position detection auxiliary symbol 62 arranged on the opposite side in the row direction. In the example shown in FIG. 18, each of a plurality of position detection auxiliary symbols 62 and a plurality of position detection auxiliary symbols 62 inserted between the position / orientation detection symbol 32A and the position / orientation detection symbol 32B are position / orientation detection symbols. Each of the plurality of position detection auxiliary symbols 62 inserted between 32C and the position / orientation detection symbol 32D is opposed (opposite) in the row direction. A position detection center symbol 64 is inserted in the center between the position detection auxiliary symbols 62 facing directly in the row direction.

具体的には、位置・向き検出シンボル32Aに隣接する位置検出補助シンボル62(以下、区別して説明する場合に「位置検出補助シンボル62A」という。)と位置・向き検出シンボル32Cに隣接する位置検出補助シンボル62(以下、区別して説明する場合に「位置検出補助シンボル62C」という。)とが行方向で正対するように配置されており、位置検出補助シンボル62Aと位置検出補助シンボル62Cとを結ぶ線分(被記録対象領域38の上段の分割領域の底辺に相当する線分)上の中央に位置検出中央シンボル64が挿入されている。また、位置・向き検出シンボル32Bに隣接する位置検出補助シンボル62(以下、区別して説明する場合に「位置検出補助シンボル62B」という。)と位置・向き検出シンボル32Dに隣接する位置検出補助シンボル62(以下、区別して説明する場合に「位置検出補助シンボル62D」という。)とが行方向で正対するように配置されており、位置検出補助シンボル62Bと位置検出補助シンボル62Dとを結ぶ線分(被記録対象領域38の中段の分割領域の底辺に相当する線分)上の中央に位置検出中央シンボル64が挿入されている。なお、本第2の実施の形態では、複数の位置検出補助シンボル62は撮影によって得られる画像の歪みが予想される方向に交差する一組の対辺の各辺に挿入されており、互いに正対する位置関係にある位置検出補助シンボル62間の中央には画像の歪みの影響を受け難い位置であると予想される前提の下で位置検出中央シンボル64が挿入されている。   Specifically, a position detection auxiliary symbol 62 adjacent to the position / orientation detection symbol 32A (hereinafter referred to as “position detection auxiliary symbol 62A” in the case of distinction) and a position detection adjacent to the position / orientation detection symbol 32C. Auxiliary symbols 62 (hereinafter referred to as “position detection auxiliary symbols 62C” in the case of distinction) are arranged to face each other in the row direction, and connect position detection auxiliary symbols 62A and position detection auxiliary symbols 62C. A position detection central symbol 64 is inserted at the center of the line segment (the line segment corresponding to the bottom of the upper divided area of the recording target area 38). Further, a position detection auxiliary symbol 62 adjacent to the position / orientation detection symbol 32B (hereinafter referred to as “position detection auxiliary symbol 62B” in the case of distinction) and a position detection auxiliary symbol 62 adjacent to the position / orientation detection symbol 32D. (Hereinafter referred to as “position detection auxiliary symbol 62D” in the case of distinction) are arranged so as to face each other in the row direction, and a line segment connecting the position detection auxiliary symbol 62B and the position detection auxiliary symbol 62D ( A position detection central symbol 64 is inserted at the center on the line segment corresponding to the bottom of the middle divided area of the recording target area 38. In the second embodiment, the plurality of position detection auxiliary symbols 62 are inserted on each side of a pair of opposite sides that intersect with a direction in which distortion of an image obtained by photographing is expected, and face each other. A position detection central symbol 64 is inserted in the center between the position detection auxiliary symbols 62 in the positional relationship under the assumption that the position is not easily affected by image distortion.

また、本第2の実施の形態に係る二次元コード60では、位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62によって各分割領域の位置を定めている。すなわち、位置検出補助シンボル62は、被記録対象領域38の上段の分割領域と被記録対象領域38の中段の分割領域との境界、及び被記録対象領域38の中段の分割領域と被記録対象領域38の下段の分割領域との境界の各々について各境界を中央で跨ぐように配置されており、位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62の各々に含まれる特定の画素に二次元座標が予め付与されている。これらの二次元座標によって各分割領域の位置が特定される。   In the two-dimensional code 60 according to the second embodiment, the position of each divided region is determined by the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62. That is, the position detection auxiliary symbol 62 includes the boundary between the upper divided area of the recording target area 38 and the middle divided area of the recording target area 38, and the middle divided area and the recording target area of the recording target area 38. Each of the boundaries with the lower divided area 38 is arranged so as to straddle each boundary in the center, and the specific pixels included in each of the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62 are two-dimensionally arranged. Coordinates are assigned in advance. The position of each divided region is specified by these two-dimensional coordinates.

図19は、本第2の実施の形態に係る二次元コード解読処理プログラムの処理の流れの一例を示すフローチャートである。なお、ここでは、錯綜を回避するために、読み取り対象面における明るさの分布に偏りがある二次元コード60を被写体として携帯電話機40のカメラ40Iにより静止画撮影を行って得られた二次元コード画像が一例として図15に示すように歪んでいる場合について説明する。また、ここでは、錯綜を回避するために、識別対象画素33を解読対象二値図柄34に含まれる画素とし、従来の二値化処理手法等により二値化された解読対象二値図柄34を示す解読支援二値図柄情報が記憶領域βに既に記憶されている場合について説明する。また、ここでは、錯綜を回避するために、位置・向き検出シンボル32A〜32Dの各々に含まれる画素であって二次元コード画像の角に位置する特定の画素と位置検出補助シンボル62の各々に含まれる画素であって二次元コード画像の輪郭に位置する特定の画素との各々に対して二次元座標が予め付与されている場合について説明する。また、ここでは、錯綜を回避するために、各分割領域を規定する二次元座標(例えば分割領域の各頂点の二次元座標)が予め定められている場合について説明する。また、ここでは、錯綜を回避するために、基準二値図柄位置特定情報を二次元座標とした場合について説明する。   FIG. 19 is a flowchart showing an example of the processing flow of the two-dimensional code decryption processing program according to the second embodiment. Here, in order to avoid complications, the two-dimensional code obtained by taking a still image with the camera 40I of the mobile phone 40 using the two-dimensional code 60 with uneven brightness distribution on the reading target surface as a subject. A case where the image is distorted as shown in FIG. 15 will be described as an example. Further, here, in order to avoid complication, the identification target pixel 33 is a pixel included in the decoding target binary design 34, and the decoding target binary design 34 binarized by a conventional binarization processing method or the like is used. A case where the decoding support binary symbol information shown is already stored in the storage area β will be described. Further, here, in order to avoid complications, the pixels included in each of the position / orientation detection symbols 32 </ b> A to 32 </ b> D and each of the specific pixel located at the corner of the two-dimensional code image and each of the position detection auxiliary symbols 62 are included. A case where two-dimensional coordinates are given in advance to each of the included pixels and specific pixels located on the contour of the two-dimensional code image will be described. Here, a case will be described in which, in order to avoid complications, two-dimensional coordinates (for example, two-dimensional coordinates of each vertex of the divided area) defining each divided area are predetermined. Here, a case will be described in which the reference binary symbol position specifying information is set to two-dimensional coordinates in order to avoid complications.

また、ここでは、上記第1の実施の形態に係る二次元コード解読処理プログラムの処理とは異なる処理について説明する。なお、本第2の実施の形態に係る二次元コード解読処理プログラムは、上記第1の実施の形態に係る二次元コード解読処理プログラムの処理に比べ、ステップ108の処理に代えてステップ200の処理を適用した点、ステップ110の処理に代えてステップ110Aの処理を適用した点、ステップ112の処理に代えてステップ112Aの処理を適用した点、及びステップ114の処理に代えてステップ114Aの処理を適用した点が異なっている。   Here, processing different from the processing of the two-dimensional code decoding processing program according to the first embodiment will be described. Note that the two-dimensional code decryption processing program according to the second embodiment is different from the processing of the two-dimensional code decryption processing program according to the first embodiment described above in that the processing in step 200 is replaced with the processing in step 108. The point that the process of step 110A is applied instead of the process of step 110, the point that the process of step 112A is applied instead of the process of step 112, and the process of step 114A instead of the process of step 114 are applied. The point of application is different.

図19のステップ200では、座標設定処理プログラムを実行する。図20は、座標設定処理プログラムの処理の流れの一例を示すフローチャートである。図20のステップ200Aでは、記憶領域αに記憶されている撮影画像情報により示される二次元コード画像に含まれる位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62を検出する。次のステップ200Bでは、上記ステップ200Aの処理により検出された位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62のうち、最小単位の四隅を形成する位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62の各々に含まれる特定の画素に予め付与されている二次元座標を取得する。なお、本ステップ200Bでは、既に本ステップ200Bの処理により二次元座標が取得された四隅については本処理の対象外とする。   In step 200 of FIG. 19, a coordinate setting processing program is executed. FIG. 20 is a flowchart illustrating an example of a processing flow of the coordinate setting processing program. In step 200A of FIG. 20, the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62 included in the two-dimensional code image indicated by the captured image information stored in the storage area α are detected. In the next step 200B, among the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62 detected by the processing of step 200A, the position / orientation detection symbols 32A to 32D and the position detection that form the four corners of the minimum unit. The two-dimensional coordinates given in advance to specific pixels included in each of the auxiliary symbols 62 are acquired. Note that in this step 200B, the four corners for which the two-dimensional coordinates have already been acquired by the processing of this step 200B are excluded from the target of this processing.

上記の「最小単位の四隅」としては、図18に示す例では、位置・向き検出シンボル32A,32C、位置検出補助シンボル62A、及び位置検出補助シンボル62Cによる四隅と、位置検出補助シンボル62A、位置検出補助シンボル62B、位置検出補助シンボル62C、及び位置検出補助シンボル62Dによる四隅と、位置・向き検出シンボル32B,32D、位置検出補助シンボル62B,62Dによる四隅と、が挙げられる。   In the example shown in FIG. 18, the “four corners of the minimum unit” are the four corners of the position / orientation detection symbols 32A and 32C, the position detection auxiliary symbol 62A, and the position detection auxiliary symbol 62C, the position detection auxiliary symbol 62A, and the position. There are four corners based on the detection auxiliary symbol 62B, position detection auxiliary symbol 62C, and position detection auxiliary symbol 62D, and four corners based on the position / orientation detection symbols 32B and 32D and position detection auxiliary symbols 62B and 62D.

次のステップ200Cでは、上記ステップ200Bの処理により取得された最小単位の四隅の各々に含まれる特定の画素に付与された二次元座標を参照して、二次元コード画像に含まれる各画素に対して二次元座標を付与する。例えば上記ステップ200Bの処理により取得された最小単位の四隅の二次元座標から、この最小単位の四隅で形成される四角形領域(辺も含む)に含まれる各画素の二次元座標を一意に導出して各画素に付与する形態例が挙げられる。一意に各画素の二次元座標を一意に導出して各画素に付与する具体的手段としては、歪みがない場合の各画素の位置を特定する情報として上記の「最小単位の四隅」で形成される四角形領域に含まれる各画素に事前に付与された二次元座標毎に、最小単位の四隅の各々に含まれる特定の画素に付与された各二次元座標及び最小単位の四隅の二次元座標の各々からの距離として予め定められた各距離(例えば、位置・向き検出シンボル32Aに含まれる特定の画素からの距離として予め定められた距離、位置・向き検出シンボル32Cに含まれる特定の画素からの距離として予め定められた距離、位置検出補助シンボル62Aに含まれる特定の画素からの距離として予め定められた距離、及び位置検出補助シンボル62Cに含まれる特定の画素からの距離として予め定められた距離)が対応付けられたテーブルを用いて、最小単位の四隅で形成される四角形領域に含まれる各画素に二次元座標を付与する手段が挙げられる。この場合、例えば上記ステップ200Bの処理により取得された最小単位の四隅の二次元座標を入力とし、入力された最小単位の四隅の二次元座標に対応付けられている最小単位の四隅の二次元座標の各々からの距離として予め定められた各距離を満足する位置の二次元座標を出力とし、ここで出力された二次元座標を対象画素に付与すれば良い。また、演算式を用いて、上記ステップ200Bの処理により取得された最小単位の四隅の二次元座標から、最小単位の四隅の二次元座標との相対的な位置関係を一意に特定する情報(例えば最小単位の四隅の二次元座標と各画素までの距離)を算出し、この算出結果に基づいて各画素の二次元座標を算出するようにしても良い。   In the next step 200C, with reference to the two-dimensional coordinates given to the specific pixels included in each of the four corners of the minimum unit acquired by the processing in step 200B, each pixel included in the two-dimensional code image is referred to. To give two-dimensional coordinates. For example, from the two-dimensional coordinates of the four corners of the minimum unit acquired by the process of step 200B, the two-dimensional coordinates of each pixel included in the quadrangular region (including the side) formed by the four corners of the minimum unit are uniquely derived. Examples of forms that are applied to each pixel are given. As a specific means for uniquely deriving the two-dimensional coordinates of each pixel and giving it to each pixel, it is formed by the above “minimum unit four corners” as information for specifying the position of each pixel when there is no distortion. For each two-dimensional coordinate given in advance to each pixel included in the square area, each two-dimensional coordinate given to a specific pixel included in each of the four corners of the smallest unit and two-dimensional coordinates of the four corners of the smallest unit Each distance determined in advance as a distance from each (for example, a distance determined in advance as a distance from a specific pixel included in the position / orientation detection symbol 32A, or from a specific pixel included in the position / orientation detection symbol 32C) A predetermined distance as a distance, a predetermined distance as a distance from a specific pixel included in the position detection auxiliary symbol 62A, and a specific pixel included in the position detection auxiliary symbol 62C Using a predetermined distance) is associated table as the distance al, it includes means for applying a two-dimensional coordinate to each pixel included in a square region formed by the minimum unit of the four corners. In this case, for example, the two-dimensional coordinates of the four corners of the minimum unit acquired by the process of step 200B are input, and the two-dimensional coordinates of the four corners of the minimum unit associated with the input two-dimensional coordinates of the four corners of the minimum unit are input. As a distance from each of the two-dimensional coordinates, a two-dimensional coordinate of a position satisfying each predetermined distance is output, and the two-dimensional coordinates output here may be given to the target pixel. Also, information that uniquely identifies the relative positional relationship with the two-dimensional coordinates of the four corners of the minimum unit from the two-dimensional coordinates of the four corners of the minimum unit obtained by the processing of step 200B using an arithmetic expression (for example, The two-dimensional coordinates of the four corners of the minimum unit and the distance to each pixel) may be calculated, and the two-dimensional coordinates of each pixel may be calculated based on the calculation result.

なお、図18に示す例では位置検出補助シンボル62を二次元コード60に複数挿入する例を挙げているが、これに限らず、位置検出補助シンボル62は単数であっても良い。この場合、例えば、位置検出補助シンボル62B〜62Dが除かれたとすると、位置・向き検出シンボル32A,32C,32D及び位置検出補助シンボル62Aの四隅の二次元座標から各画素の二次元座標を一意に導出する形態例が挙げられる。   In the example illustrated in FIG. 18, an example in which a plurality of position detection auxiliary symbols 62 are inserted into the two-dimensional code 60 is described. However, the present invention is not limited to this, and the position detection auxiliary symbol 62 may be singular. In this case, for example, if the position detection auxiliary symbols 62B to 62D are removed, the two-dimensional coordinates of each pixel are uniquely determined from the two-dimensional coordinates of the four corners of the position / orientation detection symbols 32A, 32C, 32D and the position detection auxiliary symbol 62A. Examples of derivation are given.

また、各画素の二次元座標を一意に導出するには、必ずしも最小単位の四隅の二次元座標から導出する必要はなく、例えば、位置・向き検出シンボル32A,32C及び位置検出補助シンボル62Aの三隅の二次元座標から各画素の二次元座標を一意に導出しても良い。具体的には、位置・向き検出シンボル32A,32C及び位置検出補助シンボル62Aの三隅からの二次元座標の導出対象とされた各画素に事前に付与された二次元座標毎に、位置・向き検出シンボル32Aに含まれる特定の画素からの距離として予め定められた距離、位置・向き検出シンボル32Cに含まれる特定の画素からの距離として予め定められた距離、及び位置検出補助シンボル62Aに含まれる特定の画素からの距離として予め定められた距離が対応付けられたテーブル又は演算式を事前に用意しておき、このテーブル又は演算式を用いて、最小単位の四隅で形成される四角形領域に含まれる各画素に二次元座標を付与する。   In order to uniquely derive the two-dimensional coordinates of each pixel, it is not always necessary to derive from the two-dimensional coordinates of the four corners of the minimum unit. For example, the three corners of the position / orientation detection symbols 32A and 32C and the position detection auxiliary symbol 62A The two-dimensional coordinates of each pixel may be uniquely derived from the two-dimensional coordinates. Specifically, position / orientation detection is performed for each two-dimensional coordinate given in advance to each pixel that is a target for derivation of two-dimensional coordinates from the three corners of the position / orientation detection symbols 32A and 32C and the position detection auxiliary symbol 62A. A distance predetermined as a distance from a specific pixel included in the symbol 32A, a distance predetermined as a distance from a specific pixel included in the position / orientation detection symbol 32C, and a specification included in the position detection auxiliary symbol 62A A table or an arithmetic expression in which a predetermined distance is associated in advance as a distance from the pixel is prepared in advance, and the table or the arithmetic expression is included in the rectangular area formed by the four corners of the minimum unit. Two-dimensional coordinates are assigned to each pixel.

次のステップ200Dでは、全ての最小単位の四隅について上記ステップ200Bの処理を実行したか否かを判定し、否定判定となった場合には上記ステップ200Bに戻る一方、肯定判定となった場合には本座標設定処理プログラムを終了する。   In the next step 200D, it is determined whether or not the processing of step 200B has been executed for all the four corners of the minimum unit. If a negative determination is made, the process returns to step 200B, while an affirmative determination is made. Ends the coordinate setting processing program.

図19に戻ってステップ110Aでは、上記ステップ200の処理によって各画素に付与された二次元座標に基づいて、被記録対象領域38に含まれる分割領域を特定する。すなわち、各分割領域を規定する4つの二次元座標が事前に定められているので、この事前に定められている4つの二次元座標を用いて分割領域を推定することにより特定する。本第2の実施の形態では、位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62の各々に含まれる特定の画素に二次元座標が予め付与されているので、これらの二次元座標によって被記録対象領域38に含まれる分割領域が特定される。   Returning to FIG. 19, in step 110 </ b> A, a divided area included in the recording target area 38 is specified based on the two-dimensional coordinates given to each pixel by the process of step 200. That is, since the four two-dimensional coordinates that define each divided area are determined in advance, the four divided two-dimensional coordinates are specified by estimating the divided area. In the second embodiment, two-dimensional coordinates are given in advance to specific pixels included in each of the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62. A divided area included in the recording target area 38 is specified.

次のステップ112Aでは、上記ステップ110Aの処理により特定された分割領域の各々から基準二値図柄位置特定情報に基づいて分割領域の各々における基準二値図柄の位置を推定することにより特定した後、ステップ114Aに移行する。ステップ114Aでは、上記ステップ110Aの処理により特定された分割領域の位置に基づいて、注目分割領域を決定する。   In the next step 112A, after specifying by estimating the position of the reference binary symbol in each of the divided regions based on the reference binary symbol position specifying information from each of the divided regions specified by the processing of step 110A, Control goes to step 114A. In step 114A, the target divided region is determined based on the position of the divided region specified by the processing in step 110A.

このように本第2の実施の形態に係る二次元コード60によれば、二次元コード画像が歪んでいたとしても、その歪みを補正することなく、二次元コード画像に含まれる識別対象画素33の位置が高精度に特定される。よって、解読対象情報の解読も高精度に行われる。すなわち、従来であれば一例として図21に示すように二次元コード画像の四隅の二次元座標(位置・向き検出シンボル32A〜32Dの各々に含まれる特定の画素に付与された二次元座標)に依拠して二次元コード画像に含まれる全ての画素の位置を特定していたため、二次元コード画像の4辺の各々が一直線であることを前提として各画素に二次元座標を付与する場合には二次元コード画像が歪むと識別対象画素33の位置が高精度に特定されなかった。これに対し、本第2の実施の形態に係る二次元コード60では、例えば図22に示すように二次元コード画像の四隅の二次元座標の他にも二次元コード60の輪郭上に位置の特定に寄与する基準となる二次元座標(位置検出補助シンボル62に含まれる特定の画素に付与された二次元座標)を設けたので、二次元コード画像の四隅の二次元座標に依拠する構成(図21に示す構成)に比べ、二次元コード画像に含まれる識別対象画素33の位置が高精度に特定される。   As described above, according to the two-dimensional code 60 according to the second embodiment, even if the two-dimensional code image is distorted, the identification target pixel 33 included in the two-dimensional code image is corrected without correcting the distortion. Is determined with high accuracy. Therefore, decoding target information is also decoded with high accuracy. That is, in the conventional case, as shown in FIG. 21, as an example, the two-dimensional coordinates of the four corners of the two-dimensional code image (two-dimensional coordinates given to specific pixels included in each of the position / orientation detection symbols 32A to 32D). Since the position of all the pixels included in the two-dimensional code image has been relied on, when two-dimensional coordinates are given to each pixel on the assumption that each of the four sides of the two-dimensional code image is a straight line When the two-dimensional code image is distorted, the position of the identification target pixel 33 is not specified with high accuracy. On the other hand, in the two-dimensional code 60 according to the second embodiment, for example, as shown in FIG. 22, in addition to the two-dimensional coordinates at the four corners of the two-dimensional code image, Since two-dimensional coordinates (two-dimensional coordinates given to specific pixels included in the position detection auxiliary symbol 62) serving as a reference that contributes to identification are provided, a configuration that relies on the two-dimensional coordinates at the four corners of the two-dimensional code image ( Compared to the configuration shown in FIG. 21, the position of the identification target pixel 33 included in the two-dimensional code image is specified with high accuracy.

また、本第2の実施の形態では、位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62を用いて各画素の位置を特定する場合の形態例を挙げたが、位置・向き検出シンボル32A〜32D及び位置検出補助シンボル62に加えて位置検出中央シンボル64も用いて各画素の位置を特定しても良い。この場合、各画素の位置がより高精度に特定される。   Further, in the second embodiment, an example in which the position of each pixel is specified using the position / orientation detection symbols 32A to 32D and the position detection auxiliary symbol 62 has been described, but the position / orientation detection symbol 32A. The position of each pixel may be specified using the position detection central symbol 64 in addition to .about.32D and the position detection auxiliary symbol 62. In this case, the position of each pixel is specified with higher accuracy.

また、本第2の実施の形態では、位置検出補助シンボル62及び位置検出中央シンボル64の各々の大きさを位置・向き検出シンボル32A〜32Dの各々の大きさよりも小さくしたが、これに限らず、位置検出補助シンボル62及び位置検出中央シンボル64の少なくとも一方の大きさを位置・向き検出シンボル32A〜32Dの各々の大きさ以上にしても良い。この場合、本第2の実施の形態で説明した構成に比べ、位置検出補助シンボル62及び位置検出中央シンボル64が正確に検出される。また、位置検出補助シンボル62及び位置検出中央シンボル64の少なくとも一方の大きさを位置・向き検出シンボル32A〜32Dの各々の大きさ以上にしなくても、本第2の実施の形態で説明した大きさよりも大きくすれば、本第2の実施の形態で説明した構成に比べ、位置検出補助シンボル62及び位置検出中央シンボル64が正確に検出される。   In the second embodiment, the size of each of the position detection auxiliary symbol 62 and the position detection center symbol 64 is smaller than each of the position / orientation detection symbols 32A to 32D. However, the present invention is not limited to this. The size of at least one of the position detection auxiliary symbol 62 and the position detection center symbol 64 may be larger than the size of each of the position / orientation detection symbols 32A to 32D. In this case, the position detection auxiliary symbol 62 and the position detection center symbol 64 are accurately detected as compared with the configuration described in the second embodiment. Further, the size described in the second embodiment is not necessary even if the size of at least one of the position detection auxiliary symbol 62 and the position detection center symbol 64 is not larger than the size of each of the position / orientation detection symbols 32A to 32D. If it is larger than this, the position detection auxiliary symbol 62 and the position detection center symbol 64 are detected more accurately than in the configuration described in the second embodiment.

また、本第2の実施の形態では、被記録対象領域38の四隅に位置・向き検出シンボル32A〜32Dを配置し、位置・向き検出シンボル32A〜32Dによって各画素の位置を特定する場合の形態例を挙げたが、位置・向き検出シンボル32A〜32Dのうちの少なくとも3つが存在していれば各画素の位置が特定される。   In the second embodiment, the position / orientation detection symbols 32A to 32D are arranged at the four corners of the recording target area 38, and the position of each pixel is specified by the position / orientation detection symbols 32A to 32D. As an example, if at least three of the position / orientation detection symbols 32A to 32D exist, the position of each pixel is specified.

また、本第2の実施の形態では、被記録対象領域38の一組の対辺の各々に沿って複数の位置検出補助シンボル62を挿入する形態例を挙げて説明したが、全ての辺の各々に沿って複数の位置検出補助シンボル62を挿入しても良い。この場合、各画素の位置がより高精度に特定される。   In the second embodiment, an example in which a plurality of position detection auxiliary symbols 62 are inserted along each of a pair of opposite sides of the recording target area 38 has been described. A plurality of position detection auxiliary symbols 62 may be inserted along In this case, the position of each pixel is specified with higher accuracy.

また、本第2の実施の形態では、一組の対辺の各々について位置検出補助シンボル62を2個ずつ設けた例を挙げたが、二次元コード画像の辺において想定される最大の湾曲が無視される程度(各画素の特定に湾曲が影響を及ぼさない程度)の間隔で位置検出補助シンボル62を配置するようにしても良い。例えば、図13に示す二次元コード画像の辺の湾曲よりも大きな湾曲が予想される場合には一辺に3個以上の位置検出補助シンボル62を挿入しておくことにより本第2の実施の形態に係る構成(一辺に2個の位置検出補助シンボル62を挿入した形態)に比べ、画素の位置が高精度に特定される。このように、湾曲した辺を細分することにより得た個々の線分を直線として捉えることで、画素の位置の高精度な特定が実現される。 In the second embodiment, an example in which two position detection auxiliary symbols 62 are provided for each pair of opposite sides has been described. However, the maximum curvature assumed in the sides of the two-dimensional code image is ignored. The position detection auxiliary symbols 62 may be arranged at an interval of such a degree that the curvature does not affect the specification of each pixel. For example, when a curvature larger than the curvature of the side of the two-dimensional code image shown in FIG. 13 is expected, the second embodiment is implemented by inserting three or more position detection auxiliary symbols 62 on one side. Compared to the configuration according to (a configuration in which two position detection auxiliary symbols 62 are inserted on one side), the position of the pixel is specified with high accuracy. In this way, by identifying each line segment obtained by subdividing the curved side as a straight line, the pixel position can be specified with high accuracy.

10 記録装置
16 画像記録部
30,60 二次元コード
32 解読支援二値図柄
32A〜32D 位置・向き検出シンボル
33 識別対象画素
34 解読対象二値図柄
38 被記録対象領域
40A CPU
62 位置検出補助シンボル
64 位置検出中央シンボル
DESCRIPTION OF SYMBOLS 10 Recording device 16 Image recording part 30,60 Two-dimensional code 32 Decoding support binary design 32A-32D Position / orientation detection symbol 33 Identification target pixel 34 Decoding target binary design 38 Recording target region 40A CPU
62 Position detection auxiliary symbol 64 Position detection central symbol

Claims (25)

被記録対象領域における特定領域に記録され且つ解読対象情報の解読を支援する支援情報が複数の画素の特定色の有無によって表現された解読支援二値図柄、及び前記被記録対象領域における前記特定領域以外の領域に記録され且つ前記解読対象情報が複数の画素の前記特定色の有無によって表現された解読対象二値図柄を有する読取対象図柄と、
前記読取対象図柄の特定位置に挿入され、前記特定色の有無によって表現されると共に前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素の前記特定色の有無を識別するための基準とする基準情報が複数の画素の特定色の有無によって表現された基準二値図柄と、
を含む二次元コード。
A decoding support binary design in which support information recorded in a specific area in the recording target area and supporting decoding of the decoding target information is expressed by the presence or absence of a specific color of a plurality of pixels, and the specific area in the recording target area A reading target design having a decoding target binary design recorded in an area other than the above and the decoding target information represented by the presence or absence of the specific color of a plurality of pixels;
Inserted at a specific position of the reading target symbol and expressed by the presence or absence of the specific color, and identifies the presence or absence of the specific color of pixels included in at least one of the decoding support binary symbol and the decoding target binary symbol A reference binary pattern in which the reference information for the reference is expressed by the presence or absence of a specific color of a plurality of pixels,
Two-dimensional code including
被記録対象領域における特定領域に記録され且つ解読対象情報の解読を支援する支援情報が複数の画素の特定色の有無によって表現された解読支援二値図柄、及び前記被記録対象領域における前記特定領域以外の領域に記録され且つ前記解読対象情報が複数の画素の前記特定色の有無によって表現された解読対象二値図柄を有する読取対象図柄と、
前記読取対象図柄の特定位置に挿入され、各々前記特定色の有無によって表現されると共に前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素の前記特定色の有無を識別するための基準とする基準情報が複数の画素の特定色の有無によって表現された複数の基準二値図柄と、
を含む二次元コード。
A decoding support binary design in which support information recorded in a specific area in the recording target area and supporting decoding of the decoding target information is expressed by the presence or absence of a specific color of a plurality of pixels, and the specific area in the recording target area A reading target design having a decoding target binary design recorded in an area other than the above and the decoding target information represented by the presence or absence of the specific color of a plurality of pixels;
Inserted at a specific position of the symbol to be read, each represented by the presence or absence of the specific color, and identifies the presence or absence of the specific color of pixels included in at least one of the decoding support binary symbol and the decoding target binary symbol A plurality of reference binary symbols represented by the presence or absence of a specific color of a plurality of pixels,
Two-dimensional code including
前記基準二値図柄を、前記解読支援二値図柄及び前記解読対象二値図柄を含めた前記被記録対象領域を分割して得られた分割領域の各々に挿入した請求項2に記載の二次元コード。   3. The two-dimensional image according to claim 2, wherein the reference binary symbol is inserted into each of the divided regions obtained by dividing the recording target region including the decoding support binary symbol and the decoding target binary symbol. code. 前記基準二値図柄を、前記読取対象図柄を分割して得られた分割領域の各々に複数挿入した請求項2に記載の二次元コード。   The two-dimensional code according to claim 2, wherein a plurality of the reference binary symbols are inserted into each of the divided areas obtained by dividing the design to be read. 前記分割領域を、前記読取対象図柄をマトリクス状に分割して得られた領域とした請求項3又は請求項4に記載の二次元コード。   The two-dimensional code according to claim 3 or 4, wherein the divided area is an area obtained by dividing the design to be read in a matrix. 前記読取対象図柄における基準となる位置と前記基準二値図柄の各々との位置関係を、前記基準二値図柄毎に予め定められた位置関係とした請求項2〜請求項5の何れか1項に記載の二次元コード。   6. The positional relationship between a reference position in each of the symbols to be read and each of the reference binary symbols is a predetermined positional relationship for each of the reference binary symbols. The two-dimensional code described in 前記複数の基準二値図柄を相互に予め定められた間隔となるように前記読取対象図柄に挿入した請求項2〜請求項6の何れか1項に記載の二次元コード。   The two-dimensional code according to any one of claims 2 to 6, wherein the plurality of reference binary symbols are inserted into the reading target symbol so as to have a predetermined interval. 前記特定色を無彩色とした請求項1〜請求項7の何れか1項に記載の二次元コード。   The two-dimensional code according to claim 1, wherein the specific color is an achromatic color. 前記特定色を有彩色とした請求項1〜請求項7の何れか1項に記載の二次元コード。   The two-dimensional code according to claim 1, wherein the specific color is a chromatic color. 前記基準二値図柄を、何れかの画素を前記特定色とした彩色の異なる一対の画素とした請求項1〜請求項9の何れか1項に記載の二次元コード。   The two-dimensional code according to any one of claims 1 to 9, wherein the reference binary design is a pair of differently colored pixels with any pixel as the specific color. 前記解読支援二値図柄及び前記解読対象二値図柄の一方を一対の無彩色で形成すると共に他方を一対の有彩色で形成し、
前記基準二値図柄を、一対の無彩色で形成され且つ前記解読支援二値図柄及び前記解読対象二値図柄の一方に含まれる画素の有無を識別するための基準とする第1基準図柄、及び一対の有彩色で形成され且つ前記解読支援二値図柄及び前記解読対象二値図柄の他方に含まれる画素の有無を識別するための基準とする第2基準図柄を含んで構成した請求項1〜請求項9の何れか1項に記載の二次元コード。
One of the decoding support binary design and the decoding target binary design is formed with a pair of achromatic colors and the other is formed with a pair of chromatic colors,
A first reference symbol that is used as a reference for identifying the presence or absence of a pixel that is formed of a pair of achromatic colors and is included in one of the decoding support binary symbol and the decoding target binary symbol; and A first reference symbol that is formed of a pair of chromatic colors and includes a second reference symbol that serves as a reference for identifying the presence or absence of a pixel included in the other of the decoding aid binary symbol and the decoding target binary symbol. The two-dimensional code according to claim 9.
前記第1基準図柄及び前記第2基準図柄の各々を、何れかの画素を前記特定色とした彩色の異なる一対の画素とした請求項11に記載の二次元コード。   12. The two-dimensional code according to claim 11, wherein each of the first reference symbol and the second reference symbol is a pair of pixels having different colors with any pixel as the specific color. 前記被記録対象領域を四角形状とし、
前記解読支援二値図柄を、前記被記録対象領域の四隅のうちの少なくとも三隅に記録され且つ前記被記録対象領域に含まれる画素の位置の特定を支援する位置特定支援情報が複数の画素の特定色の有無によって表現された位置特定支援二値図柄を含んで構成した請求項1〜請求項12の何れか1項に記載の二次元コード。
The recording target area is rectangular,
The decoding support binary pattern is recorded in at least three corners of the four areas of the recording target area, and the position specifying support information that supports the specification of the positions of the pixels included in the recording target area is specified for a plurality of pixels. The two-dimensional code according to any one of claims 1 to 12, wherein the two-dimensional code includes a position specifying support binary symbol expressed by the presence or absence of a color.
前記位置特定支援二値図柄を、前記特定色を有する互いに隣接する複数の画素の集合と前記特定色を有しない互いに隣接する複数の画素の集合とを組み合わせて形成した請求項13に記載の二次元コード。   The two-dimensional image according to claim 13, wherein the position specifying support binary pattern is formed by combining a set of a plurality of adjacent pixels having the specific color and a set of a plurality of adjacent pixels not having the specific color. Dimension code. 前記被記録対象領域の少なくとも一辺に沿って該被記録対象領域の予め定められた位置に挿入され且つ前記位置特定支援二値図柄による前記読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって表現された支援補助二値図柄を更に含む請求項13又は請求項14に記載の二次元コード。   Assist in identifying the position of a pixel included in the read target symbol inserted into a predetermined position of the target region to be recorded along at least one side of the target region to be recorded and included in the position target assist binary symbol The two-dimensional code according to claim 13 or 14, wherein the support assistance information to be included further includes a support assistance binary symbol expressed by the presence or absence of the specific color of a plurality of pixels. 前記被記録対象領域の少なくとも一辺に沿って該被記録対象領域の予め定められた位置に各々挿入され且つ前記位置特定支援二値図柄による前記読取対象図柄に含まれる画素の位置の特定の支援を補助する支援補助情報が複数の画素の前記特定色の有無によって各々表現された複数の支援補助二値図柄を更に含む請求項13又は請求項14に記載の二次元コード。   Support for specifying the position of a pixel included in the read target symbol by each of the position specifying support binary symbols and inserted at a predetermined position of the recording target region along at least one side of the recording target region. The two-dimensional code according to claim 13 or 14, further comprising a plurality of support assist binary symbols each of which assist assist information is represented by the presence or absence of the specific color of a plurality of pixels. 前記支援補助二値図柄を、前記被記録対象領域の一辺単位で該被記録対象領域に複数挿入した請求項16に記載の二次元コード。   The two-dimensional code according to claim 16, wherein a plurality of the support auxiliary binary symbols are inserted into the recording target area in units of one side of the recording target area. 前記複数の支援補助二値図柄を、前記被記録対象領域の一辺単位で前記位置特定支援二値図柄を含めて相互の間隔が揃うように配置した請求項17に記載の二次元コード。   18. The two-dimensional code according to claim 17, wherein the plurality of support assistance binary symbols are arranged so that the mutual intervals thereof are aligned in a unit of one side of the recording target area including the position specifying assistance binary symbols. 前記支援補助二値図柄を、前記被記録対象領域の少なくとも一組の対辺の各辺に沿って前記被記録対象領域に挿入した請求項16〜請求項18の何れか1項に記載の二次元コード。   The two-dimensional according to any one of claims 16 to 18, wherein the support auxiliary binary symbol is inserted into the recording target area along each side of at least one pair of opposite sides of the recording target area. code. 前記一組の対辺の各辺に沿って前記被記録対象領域に挿入された前記支援補助二値図柄の各々を結ぶ線分上の前記被記録対象領域に挿入され且つ前記支援補助情報に相当する情報が複数の画素の前記特定色の有無によって表現された他の支援補助二値図柄を更に含む請求項19に記載の二次元コード。   Inserted into the recording target area on a line segment connecting each of the support auxiliary binary symbols inserted into the recording target area along each pair of opposite sides, and corresponds to the support auxiliary information The two-dimensional code according to claim 19, wherein the information further includes another assisting auxiliary binary symbol expressed by the presence or absence of the specific color of a plurality of pixels. 請求項1〜請求項20の何れか1項に記載の二次元コードを記録媒体に記録する記録手段を含む記録装置。   A recording apparatus comprising recording means for recording the two-dimensional code according to any one of claims 1 to 20 on a recording medium. 請求項1〜請求項20の何れか1項に記載の二次元コードにおける前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素を識別対象画素とし、前記二次元コードを読取装置により読み取って得られた読取結果から、前記識別対象画素を示す識別対象画素情報及び前記基準二値図柄を示す基準二値図柄情報を取得する取得手段と、
前記取得手段によって取得された前記基準二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別する識別手段と、
を含む識別装置。
A pixel included in at least one of the decoding support binary symbol and the decoding target binary symbol in the two-dimensional code according to any one of claims 1 to 20 is set as an identification target pixel, and the two-dimensional code is An acquisition means for acquiring identification target pixel information indicating the identification target pixel and reference binary symbol information indicating the reference binary symbol from a reading result obtained by reading by a reading device;
Identification means for identifying the presence or absence of the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition means, based on the reference binary symbol information acquired by the acquisition means;
An identification device including:
前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素であって、前記基準二値図柄と予め定められた距離内にある画素を前記識別対象画素とした請求項22に記載の識別装置。   The pixel included in at least one of the decoding support binary design and the decoding target binary design, and a pixel within a predetermined distance from the reference binary design is used as the identification target pixel. The identification device described. 前記取得手段は、前記解読対象二値図柄に含まれる画素を前記識別対象画素とした場合、前記読取結果から、前記解読支援二値図柄を示す解読支援二値図柄情報を更に取得し、
前記識別手段は、前記取得手段によって取得された前記基準二値図柄情報及び前記解読支援二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別する請求項22又は請求項23に記載の識別装置。
The acquisition means, when the pixel included in the decoding target binary design as the identification target pixel, further acquires decoding support binary design information indicating the decoding support binary design from the reading result,
The identification means is based on the reference binary symbol information and the decoding support binary symbol information acquired by the acquisition means, and the identification target pixel indicated by the identification target pixel information acquired by the acquisition means The identification device according to claim 22 or 23, wherein the presence or absence of a specific color is identified.
コンピュータを、
請求項1〜請求項20の何れか1項に記載の二次元コードにおける前記解読支援二値図柄及び前記解読対象二値図柄の少なくとも一方に含まれる画素を識別対象画素とし、前記二次元コードを読取装置により読み取って得られた読取結果から、前記識別対象画素を示す識別対象画素情報及び前記基準二値図柄を示す基準二値図柄情報を取得する取得手段、
並びに、前記取得手段によって取得された前記基準二値図柄情報に基づいて、前記取得手段によって取得された前記識別対象画素情報により示される識別対象画素の前記特定色の有無を識別する識別手段として機能させるためのプログラム。
Computer
A pixel included in at least one of the decoding support binary symbol and the decoding target binary symbol in the two-dimensional code according to any one of claims 1 to 20 is set as an identification target pixel, and the two-dimensional code is Acquisition means for acquiring identification target pixel information indicating the identification target pixel and reference binary symbol information indicating the reference binary symbol from a reading result obtained by reading by a reading device;
In addition, based on the reference binary symbol information acquired by the acquisition unit, functions as an identification unit that identifies the presence or absence of the specific color of the identification target pixel indicated by the identification target pixel information acquired by the acquisition unit Program to let you.
JP2011280325A 2011-12-21 2011-12-21 Two-dimensional code, recording device, identification device and program Expired - Fee Related JP5895511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011280325A JP5895511B2 (en) 2011-12-21 2011-12-21 Two-dimensional code, recording device, identification device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011280325A JP5895511B2 (en) 2011-12-21 2011-12-21 Two-dimensional code, recording device, identification device and program

Publications (2)

Publication Number Publication Date
JP2013131057A true JP2013131057A (en) 2013-07-04
JP5895511B2 JP5895511B2 (en) 2016-03-30

Family

ID=48908553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011280325A Expired - Fee Related JP5895511B2 (en) 2011-12-21 2011-12-21 Two-dimensional code, recording device, identification device and program

Country Status (1)

Country Link
JP (1) JP5895511B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232873A (en) * 2014-05-14 2015-12-24 共同印刷株式会社 Two-dimensional code, analysis system of two-dimensional code, and production system of two-dimensional code
CN114399010A (en) * 2021-12-29 2022-04-26 中国电信股份有限公司 Two-dimensional code encoding and decoding methods, devices, equipment and medium
CN116070592A (en) * 2023-03-07 2023-05-05 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09179930A (en) * 1995-12-25 1997-07-11 Olympus Optical Co Ltd Information reproduction system, information recording medium, and information recording device
JPH10208001A (en) * 1997-01-28 1998-08-07 Denso Corp Two-dimensional code and two-dimensional reading method
JP2000163506A (en) * 1998-11-27 2000-06-16 Denso Corp Two-dimensional code reading method and record medium
JP2011175314A (en) * 2010-02-23 2011-09-08 Fuji Xerox Co Ltd Two-dimensional bar code reader, program, two-dimensional bar code, and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09179930A (en) * 1995-12-25 1997-07-11 Olympus Optical Co Ltd Information reproduction system, information recording medium, and information recording device
JPH10208001A (en) * 1997-01-28 1998-08-07 Denso Corp Two-dimensional code and two-dimensional reading method
JP2000163506A (en) * 1998-11-27 2000-06-16 Denso Corp Two-dimensional code reading method and record medium
JP2011175314A (en) * 2010-02-23 2011-09-08 Fuji Xerox Co Ltd Two-dimensional bar code reader, program, two-dimensional bar code, and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232873A (en) * 2014-05-14 2015-12-24 共同印刷株式会社 Two-dimensional code, analysis system of two-dimensional code, and production system of two-dimensional code
CN114399010A (en) * 2021-12-29 2022-04-26 中国电信股份有限公司 Two-dimensional code encoding and decoding methods, devices, equipment and medium
CN116070592A (en) * 2023-03-07 2023-05-05 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof
CN116070592B (en) * 2023-03-07 2023-10-31 江西风向标智能科技有限公司 Multi-page paper card based on positioning points and direction page number identification method and system thereof

Also Published As

Publication number Publication date
JP5895511B2 (en) 2016-03-30

Similar Documents

Publication Publication Date Title
US9525868B2 (en) Mobile terminal apparatus which displays captured images
US8792128B2 (en) Apparatus, system, and method of inspecting image, and recording medium storing image inspection control program
US9111161B2 (en) Four dimensional (4D) color barcode for high capacity data encoding and decoding
JP5952178B2 (en) Four-dimensional (4D) color barcode for encoding and decoding large data
CN101923644B (en) Image processing method, image processing apparatus and image forming apparatus
US8570609B2 (en) Image processing device with image dilation processing, image processing system, image processing method and computer readable medium
JP5017431B2 (en) Image processing apparatus and image forming apparatus having the same
US9843694B2 (en) Image reading device and method, reading area display device and method, and program
WO2018010547A1 (en) Image processing method, device, and image forming apparatus
US9037871B2 (en) Image processing apparatus and image processing method
JP2016201668A (en) Image processing apparatus, image processing method, and program
JP5895511B2 (en) Two-dimensional code, recording device, identification device and program
WO2021110031A1 (en) Multi-viewpoint 3d display apparatus, display method and display screen correction method
JP2013131058A (en) Two-dimensional code, recording device, position specification device, and device and program for identification
US9268998B2 (en) Image determining apparatus, image processing system, and recording medium
JP2014192552A (en) Image processing device and image processing program
JP2021002231A (en) Determination device, control method for determination device, determination system, control method for determination system, and program
US11787213B2 (en) Determination device, control method for determination device, determination system, control method for determination system, and program
JP4910635B2 (en) Image processing apparatus and image processing program
JP2007094584A (en) Method for detecting two dimensional code, detecting device, and detecting program
WO2018061232A1 (en) Information processing device, display method, reading method, and computer-readable non-transitory storage medium
JP5056063B2 (en) Image processing apparatus and image processing program
JP6296319B1 (en) Information processing apparatus, display method, reading method, and computer-readable non-transitory storage medium
JP2007257360A (en) Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program
JP2014038200A (en) Display device, banking system device, and liquid crystal screen display method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151013

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151204

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160215

R150 Certificate of patent or registration of utility model

Ref document number: 5895511

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees