JP6714303B1 - Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device - Google Patents

Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device Download PDF

Info

Publication number
JP6714303B1
JP6714303B1 JP2019204667A JP2019204667A JP6714303B1 JP 6714303 B1 JP6714303 B1 JP 6714303B1 JP 2019204667 A JP2019204667 A JP 2019204667A JP 2019204667 A JP2019204667 A JP 2019204667A JP 6714303 B1 JP6714303 B1 JP 6714303B1
Authority
JP
Japan
Prior art keywords
dimensional code
information
code
arrangement
data
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.)
Active
Application number
JP2019204667A
Other languages
Japanese (ja)
Other versions
JP2021077204A (en
Inventor
健 永濱
健 永濱
Original Assignee
合同会社Ark
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 合同会社Ark filed Critical 合同会社Ark
Priority to JP2019204667A priority Critical patent/JP6714303B1/en
Application granted granted Critical
Publication of JP6714303B1 publication Critical patent/JP6714303B1/en
Priority to PCT/JP2020/039376 priority patent/WO2021095457A1/en
Priority to TW109137582A priority patent/TW202119289A/en
Publication of JP2021077204A publication Critical patent/JP2021077204A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09CCIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
    • G09C5/00Ciphering apparatus or methods not provided for in the preceding groups, e.g. involving the concealment or deformation of graphic data such as designs, written or printed messages

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Storage Device Security (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

【課題】秘匿化する情報の容量制限を抑制することができる二次元コード生成方法、二次元コード評価方法、二次元コードシステム、二次元コード生成装置、二次元コード評価装置、及び二次元コードを提供する。【解決手段】二次元コード生成方法は、取得ステップと、生成ステップと、設定ステップと、入れ替えステップと、二次元コード生成ステップとを備える。生成ステップは、対象情報に基づき、構成コード語を含むデータブロックを生成する。設定ステップは、予め設定された初期配置情報に基づき、構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する。入れ替えステップは、複数の符号データに設定された配置情報を入れ替える。二次元コード生成ステップは、入れ替えステップにより入れ替えられた配置情報に基づき、二次元コードを生成する。【選択図】図1PROBLEM TO BE SOLVED: To provide a two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, two-dimensional code evaluation device, and two-dimensional code capable of suppressing the capacity limitation of information to be concealed. provide. A two-dimensional code generation method includes an acquisition step, a generation step, a setting step, a replacement step, and a two-dimensional code generation step. The generating step generates a data block including the constituent code word based on the target information. The setting step sets, based on preset initial arrangement information, arrangement information for arranging as the initial two-dimensional code for each of the plurality of code data included in the constituent code word. The replacing step replaces the arrangement information set in the plurality of code data. The two-dimensional code generation step generates a two-dimensional code on the basis of the arrangement information replaced by the replacement step. [Selection diagram] Figure 1

Description

本発明は、二次元コード生成方法、二次元コード評価方法、二次元コードシステム、二次元コード生成装置、及び二次元コード評価装置に関する。 The present invention, two-dimensional code generation method, the two-dimensional code evaluation method, the two-dimensional code system, the two-dimensional code generating device, and relates to the two-dimensional code evaluation equipment.

近年、QRコード(登録商標)等の二次元コードにおいて、秘匿情報を隠蔽する方法が注目を集めており、例えば特許文献1に開示された二次元コード生成方法等が提案されている。 In recent years, a method of hiding secret information in a two-dimensional code such as a QR code (registered trademark) has attracted attention, and for example, a two-dimensional code generation method disclosed in Patent Document 1 has been proposed.

特許文献1の開示技術では、第1の情報を含む情報本体と、終端符号と、パディングコード語とを有する第1データコード語と、前記第1データコード語の誤りを検出し訂正しうる誤り訂正コード語と、を含むデータブロックを求めることと、前記データブロックの一部を第2の情報を含む第2データコード語で置換した置換後データブロックを求めることと、前記置換後データブロックに基づいて二次元コードを生成することと、を含み、前記第2データコード語で置換する置換対象の中には、前記第1データコード語の前記情報本体又は前記誤り訂正コード語のどちらかが少なくとも含まれている。 In the disclosed technology of Patent Document 1, an information body containing first information, a first data code word having a termination code, and a padding code word, and an error capable of detecting and correcting an error in the first data code word Determining a data block including a correction code word, and determining a replaced data block in which a part of the data block is replaced with a second data code word including second information; Generating a two-dimensional code on the basis of the information body of the first data code word or the error correction code word in the replacement object to be replaced with the second data code word. At least included.

特開2016−189197号公報JP, 2016-189197, A

ここで、特許文献1の開示技術では、第1データコード語及び誤り訂正コード語の一部を、第2データコード語(隠蔽情報語に相当)に置換することを前提としている。また、第2データコード語の置換は、データブロックの誤り訂正数を超えない範囲で行われる。即ち、第2データコード語数は、データブロックの誤り訂正数以下に制限される。このため、秘匿化する情報の容量制限が課題として挙げられる。 Here, in the disclosed technique of Patent Document 1, it is premised that a part of the first data code word and the error correction code word is replaced with a second data code word (corresponding to a concealment information word). Also, the replacement of the second data code word is performed within a range that does not exceed the number of error corrections of the data block. That is, the number of second data code words is limited to the number of error corrections of the data block or less. Therefore, the problem is the limitation of the amount of information to be kept secret.

そこで本発明は、上述した問題点に鑑みて案出されたものであり、その目的とするところは、秘匿化する情報の容量制限を抑制することができる二次元コード生成方法、二次元コード評価方法、二次元コードシステム、二次元コード生成装置、及び二次元コード評価装置を提供することにある。 Therefore, the present invention has been devised in view of the above-mentioned problems, and an object of the present invention is to provide a two-dimensional code generation method and two-dimensional code evaluation method capable of suppressing the capacity limit of information to be concealed. method, the two-dimensional code system, the two-dimensional code generating device, and to provide a two-dimensional code evaluation equipment.

第1発明に係る二次元コード生成方法は、コード化の対象となる対象情報を取得する取得ステップと、前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成ステップと、予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定ステップと、複数の前記符号データに設定された前記配置情報を入れ替える入れ替えステップと、前記入れ替えステップにより入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成ステップと、を備えることを特徴とする。 A two-dimensional code generation method according to a first aspect of the invention includes an acquisition step of acquiring target information to be coded, a generation step of generating a data block including a constituent code word based on the content of the target information, Based on the set initial arrangement information, a setting step for setting arrangement information for arranging as an initial two-dimensional code for each of the plurality of code data included in the constituent code word, and setting for the plurality of code data And a two-dimensional code generating step of generating a two-dimensional code based on the arrangement information exchanged by the exchanging step.

第2発明に係る二次元コード生成方法は、第1発明において、前記入れ替えステップは、複数の前記データブロックのうち、1以上の前記データブロックにおける誤り訂正数を超える範囲で、前記符号データに設定された前記配置情報を入れ替えることを特徴とする。 A two-dimensional code generation method according to a second invention is the two-dimensional code generation method according to the first invention, wherein the replacing step sets the code data within a range exceeding an error correction number in one or more of the data blocks among the plurality of data blocks. It is characterized in that the arranged arrangement information is replaced.

第3発明に係る二次元コード生成方法は、第2発明において、前記入れ替えステップは、前記配置情報の入れ替えに関する情報を有する配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えることを特徴とする。 The two-dimensional code generation method according to a third aspect is the second aspect, wherein the replacing step refers to arrangement conversion information having information regarding replacement of the arrangement information, and the arrangement information set in a plurality of the code data. It is characterized by replacing.

第4発明に係る二次元コード生成方法は、第2発明において、前記入れ替えステップは、前記初期二次元コード生成時に用いられる形式情報、及び型番情報の少なくとも何れかに基づく配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えることを特徴とする。 A two-dimensional code generation method according to a fourth aspect is the second aspect, wherein the replacing step refers to layout conversion information based on at least one of format information and model number information used when generating the initial two-dimensional code , It is characterized in that the arrangement information set in a plurality of the code data is replaced.

第5発明に係る二次元コード生成方法は、第2発明において、前記取得ステップは、前記対象情報に紐づく特定情報を取得し、前記入れ替えステップは、前記特定情報に基づく配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えることを特徴とする。 A two-dimensional code generation method according to a fifth aspect is the second aspect, wherein the acquisition step acquires specific information associated with the target information, and the replacement step refers to arrangement conversion information based on the specific information. , The arrangement information set in a plurality of the code data is replaced.

第6発明に係る二次元コード生成方法は、第3発明〜第5発明の何れかにおいて、前記配置変換情報は、前記二次元コードから前記符号データを導出するときにおける前記配置情報の認識順序に関する情報を有することを特徴とする。 A two-dimensional code generation method according to a sixth invention is the method according to any one of the third to fifth inventions, wherein the arrangement conversion information relates to a recognition order of the arrangement information when deriving the code data from the two-dimensional code. It is characterized by having information.

第7発明に係る二次元コード生成方法は、第3発明〜第5発明の何れかにおいて、前記配置変換情報は、1つの前記構成コード語に含まれる複数の前記符号データに設定された前記配置情報を入れ替える情報を有することを特徴とする。 The two-dimensional code generation method according to a seventh invention is the method according to any one of the third invention to the fifth invention, wherein the arrangement conversion information is the arrangement set in a plurality of the code data included in one constituent code word. It is characterized by having information for exchanging information.

第8発明に係る二次元コード生成方法は、第3発明〜第5発明の何れかにおいて、前記配置変換情報は、複数の前記構成コード語のうち、第1構成コード語に含まれる前記符号データに設定された第1配置情報を、第2構成コード語に含まれる前記符号データに設定された第2配置情報に入れ替える情報を有することを特徴とする。 A two-dimensional code generation method according to an eighth aspect is the third aspect of the invention, wherein the arrangement conversion information is the code data included in a first constituent code word among a plurality of constituent code words. It is characterized in that it has information for replacing the first arrangement information set in (1) with the second arrangement information set in the code data included in the second constituent code word.

第9発明に係る二次元コード生成方法は、第3発明〜第5発明の何れかにおいて、前記設定ステップのあと、複数の前記符号データのそれぞれに設定された前記配置情報に基づき、前記初期二次元コードを生成する初期二次元コード生成ステップを更に備えることを特徴とする。 The two-dimensional code generation method according to a ninth invention is the method according to any one of the third invention to the fifth invention, wherein, after the setting step, the initial code is set based on the arrangement information set for each of the plurality of code data. It is characterized by further comprising an initial two-dimensional code generation step of generating a dimensional code.

第10発明に係る二次元コード生成方法は、第9発明において、前記配置変換情報は、前記初期二次元コードにおいて特定の位置に配置された前記符号データを、他の位置に変更する情報を有することを特徴とする。 A two-dimensional code generation method according to a tenth invention is the ninth invention, wherein the arrangement conversion information has information for changing the code data arranged at a specific position in the initial two-dimensional code to another position. It is characterized by

第11発明に係る二次元コード生成方法は、第9発明において、前記配置変換情報は、前記初期二次元コードにおいて、行毎又は列毎に配置された前記符号データを、他の行又は列に変更する情報を有することを特徴とする。 A two-dimensional code generation method according to an eleventh invention is the ninth invention, wherein the arrangement conversion information is the initial two-dimensional code, wherein the code data arranged in each row or column is arranged in another row or column. It is characterized by having information to be changed.

第12発明に係る二次元コード生成方法は、第9発明において、前記配置変換情報は、前記初期二次元コードにおける前記符号データの配置された位置を、行又は列に沿って転回する情報を有することを特徴とする。 A two-dimensional code generation method according to a twelfth invention is the ninth invention, wherein the arrangement conversion information has information for arranging the arrangement position of the code data in the initial two-dimensional code along a row or a column. It is characterized by

第13発明に係る二次元コード生成方法は、第3発明〜第12発明の何れかにおいて、前記二次元コード生成ステップは、予め設定されたマスク情報に基づき、複数の前記符号データのうち少なくとも一部を反転させるマスク処理ステップを有することを特徴とする。 The two-dimensional code generation method according to a thirteenth invention is the method according to any one of the third to twelfth inventions, wherein the two-dimensional code generation step is based on preset mask information and is at least one of the plurality of code data. It is characterized in that it has a mask processing step for reversing the parts.

第14発明に係る二次元コード生成方法は、第3発明〜第13発明の何れかにおいて、前記入れ替えステップは、前記データブロックに含まれる誤り訂正コード語に基づき、入れ替えを行う前記配置情報を特定することを特徴とする。 The two-dimensional code generation method according to a fourteenth invention is the method according to any one of the third to thirteenth inventions, wherein the replacing step specifies the arrangement information to be replaced based on an error correction codeword included in the data block. It is characterized by doing.

第15発明に係る二次元コード生成方法は、第3発明〜第14発明の何れかにおいて、前記二次元コードの形式は、QRコードの形式であることを特徴とする。 A two-dimensional code generation method according to a fifteenth invention is characterized in that, in any one of the third to fourteenth inventions, the format of the two-dimensional code is a QR code format.

第16発明に係る二次元コード評価方法は、第3発明〜第15発明の何れかにおける二次元コード生成方法によって生成された前記二次元コードを評価する二次元コード評価方法であって、前記二次元コードを読取る読取りステップと、前記配置変換情報を参照し、前記二次元コードに対する前記対象情報を導出する導出ステップとを備えることを特徴とする。 A two-dimensional code evaluation method according to a sixteenth invention is a two-dimensional code evaluation method for evaluating the two-dimensional code generated by the two-dimensional code generation method according to any one of the third to fifteenth inventions. It is characterized by including a reading step of reading a dimension code and a deriving step of deriving the target information for the two-dimensional code by referring to the arrangement conversion information.

第1発明に係る二次元コードシステムは、コード化の対象となる対象情報を取得する取得手段と、前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成手段と、予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定手段と、複数の前記符号データに設定された前記配置情報を入れ替える入れ替え手段と、前記入れ替え手段により入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成手段と、を備えることを特徴とする。 Two-dimensional code system according to the first 7 invention, an acquisition unit configured to acquire target information to be coded, based on the contents of the object information, generating means for generating a data block including a structure code word, previously Setting means for setting arrangement information for arranging as an initial two-dimensional code for each of the plurality of code data included in the constituent code word based on the set initial arrangement information, and setting for the plurality of code data And a two-dimensional code generation means for generating a two-dimensional code based on the arrangement information exchanged by the exchange means.

第1発明に係る二次元コードシステムは、第1発明において、前記二次元コードを読取る読取り手段と、前記二次元コードに対する前記対象情報を導出する導出手段とをさらに備えることを特徴とする。 Two-dimensional code system according to a first eighth invention, in the first 7 invention is characterized and reading means for reading the two-dimensional code, further comprising a derivation means for deriving the target information for the two-dimensional code ..

19発明に係る二次元コード生成装置は、コード化の対象となる対象情報を取得する取得部と、前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成部と、予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定部と、複数の前記符号データに設定された前記配置情報を入れ替える入れ替え部と、前記入れ替え部により入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成部と、を備えることを特徴とする。 A two-dimensional code generation device according to a nineteenth aspect of the present invention includes an acquisition unit that acquires target information to be coded, a generation unit that generates a data block including a constituent code word based on the content of the target information, Based on the set initial arrangement information, a setting unit that sets arrangement information for arranging as an initial two-dimensional code for each of the plurality of code data included in the constituent code word, and sets the plurality of code data And a two-dimensional code generation unit that generates a two-dimensional code based on the arrangement information exchanged by the exchange unit.

第2発明に係る二次元コード評価装置は、第19発明における二次元コード生成装置によって生成された前記二次元コードを評価する二次元コード評価装置であって、前記二次元コードを読取る読取り部と、前記二次元コードに対する前記対象情報を導出する導出部とを備えることを特徴とする。 Two-dimensional code evaluation apparatus according to the second 0 invention is a two-dimensional code evaluation apparatus for evaluating the two-dimensional code generated by the two-dimensional code generating apparatus in the nineteenth invention, the reading unit reading the two-dimensional code And a derivation unit that derives the target information for the two-dimensional code.

第1発明〜第15発明によれば、二次元コード生成ステップは、入れ替えステップにより入れ替えられた配置情報に基づき、二次元コードを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the first invention to the fifteenth invention, the two-dimensional code generating step generates a two-dimensional code based on the arrangement information replaced by the replacing step. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the placement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

特に、第2発明によれば、入れ替えステップは、複数のデータブロックのうち、1以上のデータブロックにおける誤り訂正数を超える範囲で、符号データに設定された配置情報を入れ替える。このため、従来の二次元コード読取り装置を用いて、生成された二次元コードの導出をさらに難しくすることができる。これにより、対象情報の秘匿性を高めることが可能となる。 In particular, according to the second aspect of the invention, the replacing step replaces the arrangement information set in the code data within a range exceeding the number of error corrections in one or more data blocks among the plurality of data blocks. Therefore, it is possible to make it more difficult to derive the generated two-dimensional code by using the conventional two-dimensional code reading device. This makes it possible to increase the confidentiality of the target information.

特に、第3発明によれば、入れ替えステップは、配置情報の入れ替えに関する情報を有する配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、配置変換情報を有する特定の端末のみに、二次元コードの導出を制限することができる。これにより、対象情報の秘匿性を更に高めることが可能となる。 Particularly, according to the third aspect of the invention, the replacing step replaces the arrangement information set in the plurality of code data by referring to the arrangement conversion information having the information about the arrangement information replacement. Therefore, it is possible to restrict the derivation of the two-dimensional code only to a specific terminal having the arrangement conversion information. This makes it possible to further increase the confidentiality of the target information.

特に、第4発明によれば、入れ替えステップは、形式情報、及び型番情報の少なくとも何れかに基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、従来の二次元コード生成時に用いられる形式情報又は型番情報を利用して、二次元コードの導出を制限することができる。これにより、対象情報の秘匿性を更に高めることが可能となる。 Particularly, according to the fourth aspect of the invention, the replacing step replaces the arrangement information set in the plurality of code data by referring to the arrangement conversion information based on at least one of the format information and the model number information. Therefore, it is possible to restrict the derivation of the two-dimensional code by using the format information or model number information used when the conventional two-dimensional code is generated. This makes it possible to further increase the confidentiality of the target information.

特に、第5発明によれば、入れ替えステップは、特定情報に基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、秘匿化する対象情報の内容によって、対象情報に紐づく特定情報の内容を変えることができ、秘匿化の重要度等に応じて二次元コードの導出を制限することができる。これにより、対象情報における秘匿性の度合いを容易に変更することが可能となる。 Particularly, according to the fifth aspect of the invention, the replacing step replaces the arrangement information set in the plurality of code data with reference to the arrangement conversion information based on the specific information. Therefore, the content of the specific information associated with the target information can be changed depending on the content of the target information to be concealed, and the derivation of the two-dimensional code can be restricted according to the importance of the concealment or the like. This makes it possible to easily change the degree of confidentiality of the target information.

特に、第9発明によれば、初期二次元コード生成ステップは、設定ステップのあと、複数の符号データのそれぞれに設定された配置情報に基づき、初期配置情報に対応する初期二次元コードを生成する。このため、例えば他の端末等によって既に初期二次元コードが生成された場合においても、秘匿性の高い二次元コードを生成することができる。これにより、二次元コードを生成できるデータの条件を拡大させることが可能となる。 Particularly, according to the ninth aspect, the initial two-dimensional code generating step generates the initial two-dimensional code corresponding to the initial arrangement information based on the arrangement information set for each of the plurality of code data after the setting step. .. Therefore, for example, even when the initial two-dimensional code is already generated by another terminal or the like, it is possible to generate a highly confidential two-dimensional code. As a result, it becomes possible to expand the conditions for data that can generate a two-dimensional code.

特に、第12発明によれば、配置変換情報は、初期二次元コードにおける符号データの配置された位置を、行又は列に沿って転回する情報を有する。このため、配置情報を入れ替える際、初期二次元コードの形式に関わらず1つの配置変換情報を用いることができる。これにより、様々な初期二次元コードの形式に対して、秘匿性を高めた二次元コードCを生成することが容易となる。また、初期二次元コードの形式毎に配置情報を設定する必要がなく、最小限の情報により、秘匿性を高めることが可能となる。 Particularly, according to the twelfth aspect, the arrangement conversion information has information for turning the position where the code data is arranged in the initial two-dimensional code along the row or the column. Therefore, when replacing the arrangement information, one arrangement conversion information can be used regardless of the format of the initial two-dimensional code. As a result, it becomes easy to generate the two-dimensional code C with enhanced confidentiality for various initial two-dimensional code formats. Further, it is not necessary to set the placement information for each format of the initial two-dimensional code, and it is possible to enhance the confidentiality with the minimum information.

特に、第16発明によれば、導出ステップは、配置変換情報を参照し、二次元コードに対する対象情報を導出する。このため、配置変換情報を用いた二次元コードの導出を実現することが可能となる。 Particularly, according to the sixteenth invention, the deriving step derives the target information for the two-dimensional code by referring to the arrangement conversion information. Therefore, it is possible to realize the derivation of the two-dimensional code using the arrangement conversion information.

第1発明及び第1発明によれば、二次元コード生成手段は、入れ替え手段により入れ替えられた配置情報に基づき、二次元コードを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the first 7 invention and the first eighth invention, the two-dimensional code generating means on the basis of the interchanged arrangement information by interchanging means, for generating a two-dimensional code. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the placement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

特に、第1発明によれば、導出手段は、二次元コードに対する対象情報を導出する。このため、二次元コードの導出を実現することが可能となる。 In particular, according to the first 8 invention, deriving means derives the target information for the two-dimensional code. Therefore, it is possible to realize the derivation of the two-dimensional code.

19発明によれば、二次元コード生成部は、入れ替え部により入れ替えられた配置情報に基づき、二次元コードを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the nineteenth aspect , the two-dimensional code generation unit generates the two-dimensional code based on the arrangement information replaced by the replacement unit. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the placement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

特に、第2発明によれば、導出部は、二次元コードに対する対象情報を導出する。このため、二次元コードの導出を実現することが可能となる。 In particular, according to the second 0 invention, deriving unit derives the target information for the two-dimensional code. Therefore, it is possible to realize the derivation of the two-dimensional code.

図1は、第1実施形態における二次元コードの一例を示す模式図である。FIG. 1 is a schematic diagram showing an example of a two-dimensional code according to the first embodiment. 図2は、第1実施形態における二次元コードシステム100の一例を示す模式図である。FIG. 2 is a schematic diagram showing an example of the two-dimensional code system 100 according to the first embodiment. 図3は、第1実施形態における二次元コード生成方法、及び二次元コード評価方法の一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of the two-dimensional code generation method and the two-dimensional code evaluation method according to the first embodiment. 図4(a)は、第1実施形態における二次元コード生成装置の構成の一例を示す模式図であり、図4(b)は、第1実施形態における二次元コード生成装置の機能の一例を示す模式図である。FIG. 4A is a schematic diagram showing an example of the configuration of the two-dimensional code generation device in the first embodiment, and FIG. 4B is an example of the function of the two-dimensional code generation device in the first embodiment. It is a schematic diagram which shows. 図5(a)は、配置情報の一例を示す模式図であり、図5(b)は、入れ替えたあとの配置情報の一例を示す模式図である。FIG. 5A is a schematic diagram showing an example of the placement information, and FIG. 5B is a schematic diagram showing an example of the placement information after the replacement. 図6(a)は、入れ替え前後における配置情報の一例を示す模式図であり、図6(b)は、配置変換情報の一例を示す模式図である。FIG. 6A is a schematic diagram showing an example of arrangement information before and after replacement, and FIG. 6B is a schematic diagram showing an example of arrangement conversion information. 図7(a)は、第1実施形態における二次元コード評価装置の構成の一例を示す模式図であり、図7(b)は、第1実施形態における二次元コード評価装置の機能の一例を示す模式図である。FIG. 7A is a schematic diagram showing an example of the configuration of the two-dimensional code evaluation apparatus according to the first embodiment, and FIG. 7B is an example of the function of the two-dimensional code evaluation apparatus according to the first embodiment. It is a schematic diagram which shows. 図8(a)及び図8(b)は、第1実施形態における二次元コードシステムの動作の一例を示すフローチャートである。FIG. 8A and FIG. 8B are flowcharts showing an example of the operation of the two-dimensional code system in the first embodiment. 図9は、第1実施形態における二次元コードシステムの動作の変形例を示すフローチャートである。FIG. 9 is a flowchart showing a modified example of the operation of the two-dimensional code system according to the first embodiment. 図10(a)〜図10(c)は、第2実施形態における二次元コード生成方法の一例を示す模式図である。10A to 10C are schematic diagrams showing an example of a two-dimensional code generation method in the second embodiment. 図11(a)は、第2実施形態における配置変換情報の一例を示す模式図であり、図11(b)は、第2実施形態における配置変換情報の第1変形例を示す模式図である。FIG. 11A is a schematic diagram showing an example of the layout conversion information in the second embodiment, and FIG. 11B is a schematic diagram showing a first modification of the layout conversion information in the second embodiment. .. 図12は、第2実施形態における配置変換情報の第2変形例を示す模式図である。FIG. 12 is a schematic diagram showing a second modified example of the layout conversion information in the second embodiment. 図13は、第2実施形態における二次元コードシステムの動作の一例を示すフローチャートである。FIG. 13 is a flowchart showing an example of the operation of the two-dimensional code system in the second embodiment.

以下、本発明を適用した実施形態における二次元コード生成方法、二次元コード評価方法、二次元コードシステム、二次元コード生成装置、二次元コード評価装置、及び二次元コードの一例について、図面を参照しながら説明する。 Hereinafter, with reference to the drawings, an example of a two-dimensional code generation method, a two-dimensional code evaluation method, a two-dimensional code system, a two-dimensional code generation device, a two-dimensional code evaluation device, and a two-dimensional code in an embodiment to which the present invention is applied While explaining.

(第1実施形態)
図1〜図3を参照し、第1実施形態における二次元コードC、二次元コードシステム100、二次元コード生成装置1、二次元コード評価装置2、二次元コード生成方法、及び二次元コード評価方法の一例について説明する。図1は、本実施形態における二次元コードの一例を示す模式図である。図2は、本実施形態における二次元コードシステム100の一例を示す模式図である。図3は、本実施形態における二次元コード生成方法、及び二次元コード評価方法の一例を示す模式図である。
(First embodiment)
With reference to FIGS. 1 to 3, the two-dimensional code C, the two-dimensional code system 100, the two-dimensional code generation device 1, the two-dimensional code evaluation device 2, the two-dimensional code generation method, and the two-dimensional code evaluation according to the first embodiment. An example of the method will be described. FIG. 1 is a schematic diagram showing an example of a two-dimensional code in this embodiment. FIG. 2 is a schematic diagram showing an example of the two-dimensional code system 100 according to this embodiment. FIG. 3 is a schematic diagram showing an example of a two-dimensional code generation method and a two-dimensional code evaluation method according to this embodiment.

<二次元コードC>
本実施形態における二次元コードCは、QRコード(登録商標)の形式を示すほか、例えばデータマトリックススコード、マキシコード、ベリコード、又はCPコード等のマトリックス式の二次元コードの形式や、スタック式の二次元コードの形式のような、公知の二次元コードの形式を示してもよい。なお、「形式」とは、情報ビットを表す明暗モジュールなどの配置に関する外形的準拠規約のことを示すほか、与えられた準拠規約の中で情報容量などに応じて設定される型番などのコードの外形的規模のことを示す。
<Two-dimensional code C>
The two-dimensional code C in this embodiment indicates the format of a QR code (registered trademark), and also the format of a matrix type two-dimensional code such as a data matrix code, a maxi code, a Veri code, or a CP code, or a stack type. A well-known two-dimensional code format, such as the two-dimensional code format of FIG. Note that the "format" refers to the external compliance rules regarding the arrangement of the light and dark modules that represent the information bits, as well as the code such as the model number that is set according to the information capacity in the given compliance rules. Indicates the external scale.

二次元コードCの生成方法及び評価方法の一部は、例えばJIS X 0510:2018「情報技術−自動認識及びデータ取得技術−QRコード バーコードシンボル体系仕様」や、ISO/IEC 18004:2015「情報技術−自動識別及びデータ収集技術−QRコードバーコード記号仕様」等の準拠規約に準じてもよい。以下、二次元コードの形式に関する公知の規格を、対象規格とする。 Part of the method for generating and evaluating the two-dimensional code C is, for example, JIS X 0510:2018 “Information technology-Automatic recognition and data acquisition technology-QR code barcode symbol system specification” and ISO/IEC 18004:2015 “Information. Technology-automatic identification and data collection technology-QR code bar code symbol specifications" and the like. Hereinafter, a publicly known standard concerning the format of the two-dimensional code will be the target standard.

二次元コードCは、例えば図1に示すように、型番「2」のQRコードシンボルに基づいて生成されるほか、コード化される対象情報の内容や、二次元コードCの用途に応じて任意の型番や、任意の二次元コードの形式に基づいて生成されてもよい。 The two-dimensional code C is generated based on a QR code symbol of model number “2”, as shown in FIG. 1, for example, and is arbitrary according to the content of the target information to be encoded and the use of the two-dimensional code C. It may be generated on the basis of the model number or the format of an arbitrary two-dimensional code.

二次元コードCは、例えば機能パターンと、符号化領域とを有する。機能パターンは、二次元コードCにおける位置の検索や特性の識別(外形的なデータを取得する処理)に必要なパターンを示し、例えば二次元コードCのモジュール内での符号化を補助するために用いられる。符号化領域は、必要となる情報が書き込まれる領域を示す。 The two-dimensional code C has, for example, a functional pattern and a coding area. The function pattern indicates a pattern required for position search and characteristic identification (processing for obtaining external data) in the two-dimensional code C, and for example, to assist the encoding of the two-dimensional code C in the module. Used. The coding area indicates an area in which necessary information is written.

機能パターンは、例えば位置検出パターンFP、分離パターンSP、タイミングパターンTP、位置合わせパターンAP、及びクワイエットゾーンQZを有する。 The functional pattern has, for example, a position detection pattern FP, a separation pattern SP, a timing pattern TP, an alignment pattern AP, and a quiet zone QZ.

位置検出パターンFPは、二次元コードCの少なくとも3つの隅に配置されるパターンを示す。例えば読取り時において、3つの位置検出パターンFPを識別することで、二次元コードCの方向や位置を正しく認識することができる。 The position detection pattern FP indicates a pattern arranged in at least three corners of the two-dimensional code C. For example, when reading, by identifying the three position detection patterns FP, the direction and position of the two-dimensional code C can be correctly recognized.

分離パターンSPは、位置検出パターンFPの周りに配置される1モジュール幅の明モジュールである。分離パターンSPを配置することで、位置検出パターンFPを機能パターン等から区別させることができる。 The separation pattern SP is a 1-module-wide bright module arranged around the position detection pattern FP. By disposing the separation pattern SP, the position detection pattern FP can be distinguished from the functional pattern and the like.

タイミングパターンTPは、暗モジュールと明モジュールとを1モジュールMずつ直線状に交互に配置されたパターンである。タイミングパターンTPによって、二次元コードCにおけるモジュールMの数を認識可能となるため、例えばQRコードの型番を識別することができる。なお、モジュールMは、二次元コードCを構成する単位セルである。例えば、1ビットが1モジュールに相当する。 The timing pattern TP is a pattern in which a dark module and a bright module are alternately arranged in a straight line for each module M. Since the number of modules M in the two-dimensional code C can be recognized by the timing pattern TP, for example, the model number of the QR code can be identified. The module M is a unit cell forming the two-dimensional code C. For example, 1 bit corresponds to 1 module.

位置合わせパターンAPは、QRコードの型番によって決められた位置に配置されるパターンである。位置合わせパターンAPは、例えば二次元コードCにおける位置の検索を補助する。 The alignment pattern AP is a pattern arranged at a position determined by the model number of the QR code. The alignment pattern AP assists the search for the position in the two-dimensional code C, for example.

クワイエットゾーンQZは、QRコードの周囲に設けられる最低4モジュール幅の明モジュール領域である。 The quiet zone QZ is a bright module area of at least 4 module width provided around the QR code.

符号化領域は、例えばデータコード語配置領域DPと、誤り訂正コード語配置領域EPと、形式情報配置領域FIとを有する。例えば符号化領域は、型番情報配置領域VIを有してもよい。なお、型番情報配置領域VIは、例えば型番の大きなQRコードを用いる場合に有し、例えば図1に示す型番「2」のQRコードは、型番情報配置領域VIを有しない。 The coding area has, for example, a data code word placement area DP, an error correction code word placement area EP, and a format information placement area FI. For example, the coding area may have a model number information arrangement area VI. The model number information arrangement area VI is provided when a QR code having a large model number is used, for example, and the QR code of the model number "2" shown in FIG. 1 does not have the model number information arrangement area VI.

データコード語配置領域DP、及び誤り訂正コード語配置菱位にEPには、実際のデータ(対象情報)に基づき生成された構成コード語が配置される。構成コード語は、データコード語と、誤り訂正コード語(以下、訂正コードとする)とを含む。 In the data code word placement area DP and the error correction code word placement diamond, EP, a constituent code word generated based on actual data (target information) is placed. The constituent code word includes a data code word and an error correction code word (hereinafter referred to as a correction code).

データコード語配置領域DPには、対象情報の内容に基づき生成されたデータコード語が配置される。誤り訂正コード語配置領域EPには、データを導出できなかった場合に用いられる訂正コード語が配置される。データが導出できない場合として、例えば構成コード語に対応する部分に汚損などによる不明瞭部や欠落部が発生した場合が挙げられる。 In the data code word placement area DP, a data code word generated based on the content of the target information is placed. In the error correction code word placement area EP, a correction code word used when data cannot be derived is placed. As a case where the data cannot be derived, for example, there is a case where an ambiguous portion or a missing portion occurs due to stain or the like in the portion corresponding to the constituent code word.

なお、本実施形態における二次元コードCでは、例えばデータコード語配置領域DPに訂正コード語が配置され、誤り訂正コード語配置領域EPにデータコード語が配置されてもよい。即ち、データコード語配置領域DP及び誤り訂正コード語配置領域EPは、対象規格等の従来技術により定められた領域を示す。 In the two-dimensional code C in the present embodiment, for example, the correction code word may be arranged in the data code word arrangement area DP and the data code word may be arranged in the error correction code word arrangement area EP. That is, the data code word arrangement area DP and the error correction code word arrangement area EP indicate areas defined by the conventional technology such as the target standard.

例えば上述した対象規格では、データコード語配置領域DP及び誤り訂正コード語配置領域EPにおいて、データコード語及びデータコード語の配置順序(初期配置情報)が設定されている(例えば対象規格等の規則によって構成コード語を含むRSブロックに基づき、位置D1、位置D2、・・・、位置D28の順にデータコード語を配置し、位置E1、位置E2、・・・、位置E16の順に訂正コード語を配置する等)。このため、対象規格に準ずる処理を行うことで、従来の二次元コード(初期二次元コード)を生成することができる。これにより、対象規格に基づく汎用の読取り装置等を用いて、初期二次元コードからデータの導出(デコード)が行われる。 For example, in the above-described target standard, the data code words and the data code word layout order (initial layout information) are set in the data code word layout area DP and the error correction code word layout area EP (for example, rules such as the target standard). , The data code words are arranged in the order of position D1, position D2,..., Position D28, and the correction code words are arranged in order of position E1, position E2,. Place it, etc.). Therefore, a conventional two-dimensional code (initial two-dimensional code) can be generated by performing a process conforming to the target standard. As a result, data is derived (decoded) from the initial two-dimensional code by using a general-purpose reader based on the target standard.

これに対し、本実施形態における二次元コードCでは、例えば構成コード語を、対象規格等において設定されたデータコード語配置領域DP、及び誤り訂正コード語配置領域EPとは異なる配置順序や配置領域に配置することができる。この場合、対象規格に基づく汎用の読取り装置等を用いて、データの導出(デコード)を防止することができる。このため、本実施形態における二次元コードCは、符号化領域全体に対して非可読処理を施した状態(対象情報を秘匿化した状態)で示すことができる。これにより、従来に比べて秘匿化する対象情報の容量制限を抑制することが可能となる。 On the other hand, in the two-dimensional code C in the present embodiment, for example, the constituent code words are arranged in a different order or arrangement area from the data code word arrangement area DP and the error correction code word arrangement area EP set in the target standard or the like. Can be placed at. In this case, it is possible to prevent the derivation (decoding) of data by using a general-purpose reading device based on the target standard. Therefore, the two-dimensional code C in the present embodiment can be shown in a state where the non-readable processing is performed on the entire coding area (a state in which the target information is hidden). As a result, it becomes possible to suppress the capacity limitation of the target information to be concealed as compared with the related art.

形式情報配置領域FIには、符号化領域を復号化するときに必要な形式情報が配置される。形式情報配置領域FIには、二次元コードCに適用する誤り訂正レベルに関する情報が配置され、例えば使用した標準マスクパターンに関する情報が配置されてもよい。即ち、形式情報は、例えば誤り訂正レベルに関する情報と、標準マスクパターン(例えば対象規格におけるマスクパターン)に関する情報とを有する。 In the format information arrangement area FI, format information necessary for decoding the coding area is arranged. In the format information placement area FI, information about the error correction level applied to the two-dimensional code C may be placed, for example, information about the standard mask pattern used may be placed. That is, the format information has, for example, information about an error correction level and information about a standard mask pattern (for example, a mask pattern in the target standard).

型番情報配置領域VIには、例えば7型以上のQRコードに付与される型番情報が配置される。型番情報配置領域VIは、例えばタイミングパターンTPの上側で、右上位置検出パターンFPに隣接する分離パターンSPのすぐ左、及びタイミングパターンTPの左側で、左下位置検出パターンFPに隣接する分離パターンSPのすぐ上の領域を示す。 In the model number information arrangement area VI, for example, the model number information given to the QR code of 7 type or more is arranged. The model number information arrangement area VI is, for example, on the upper side of the timing pattern TP, immediately to the left of the separation pattern SP adjacent to the upper right position detection pattern FP, and on the left side of the timing pattern TP, to the separation pattern SP adjacent to the lower left position detection pattern FP. Shows the area immediately above.

<二次元コードシステム100、二次元コード生成方法、二次元コード評価方法>
二次元コードシステム100は、二次元コードCを生成するために用いられ、例えば二次元コードCを評価するために用いられてもよい。二次元コードシステム100は、例えば図2に示すように、二次元コード生成装置1を備える。二次元コードシステム100は、例えば二次元コード評価装置2を備えてもよいほか、例えばサーバ3を備えてもよい。二次元コード生成装置1、二次元コード評価装置2、及びサーバ3は、例えば必要に応じて通信網4を介して接続される。
<Two-dimensional code system 100, two-dimensional code generation method, two-dimensional code evaluation method>
The two-dimensional code system 100 is used to generate the two-dimensional code C, and may be used to evaluate the two-dimensional code C, for example. The two-dimensional code system 100 includes a two-dimensional code generation device 1 as shown in FIG. 2, for example. The two-dimensional code system 100 may include, for example, the two-dimensional code evaluation device 2, or may include, for example, the server 3. The two-dimensional code generation device 1, the two-dimensional code evaluation device 2, and the server 3 are connected, for example, via a communication network 4 as necessary.

二次元コードシステム100では、例えば図3に示す二次元コード生成方法(エンコード処理)、及び二次元コード評価方法(デコード処理)を実施することができる。 In the two-dimensional code system 100, for example, the two-dimensional code generation method (encoding process) and the two-dimensional code evaluation method (decoding process) shown in FIG. 3 can be implemented.

二次元コード生成方法では、例えば二次元コード生成装置1が文字列(コード化の対象となる対象情報)を取得する。二次元コード生成装置1は、対象情報に基づくRSブロック(リードソロモンブロック:以下、データブロックとして説明する)を1以上生成し、各データブロックに含まれる複数の符号データに対し、例えば対象規格に基づく配置情報を設定する。二次元コード生成装置1は、各符号データに設定された配置情報を入れ替えたあと、二次元コードCを生成する。これにより二次元コードCが生成される。二次元コード生成装置1により生成された二次元コードCは、例えば紙媒体等に印刷されることで、出力することができる。 In the two-dimensional code generation method, for example, the two-dimensional code generation device 1 acquires a character string (target information to be coded). The two-dimensional code generation device 1 generates one or more RS blocks (Reed-Solomon blocks: hereinafter described as data blocks) based on target information, and sets a plurality of code data included in each data block to, for example, a target standard. Set the base placement information. The two-dimensional code generation device 1 generates the two-dimensional code C after replacing the arrangement information set in each code data. As a result, the two-dimensional code C is generated. The two-dimensional code C generated by the two-dimensional code generation device 1 can be output by being printed on, for example, a paper medium.

二次元コード評価方法では、例えば二次元コード評価装置2が、二次元コードCを読取り、対象情報を導出する。これにより、二次元コード評価装置2を保有するユーザ等が、対象情報を認識することができる。なお、二次元コード評価装置2とは異なる端末9(例えば汎用の読取り装置)では、二次元コードCを読取る(外形的なデータを取得する処理)ことは可能であるが、読取った二次元コードCから対象情報を導出することができない。即ち、二次元コードCは、端末9を用いた対象情報の導出を、防止することができる。このため、例えば特定のユーザのみに対し、対象情報を報知することができる。 In the two-dimensional code evaluation method, for example, the two-dimensional code evaluation device 2 reads the two-dimensional code C and derives the target information. As a result, a user or the like having the two-dimensional code evaluation device 2 can recognize the target information. Note that the terminal 9 (for example, a general-purpose reading device) different from the two-dimensional code evaluation device 2 can read the two-dimensional code C (the process of acquiring external data), but the read two-dimensional code The target information cannot be derived from C. That is, the two-dimensional code C can prevent derivation of the target information using the terminal 9. Therefore, for example, the target information can be notified only to a specific user.

<二次元コード生成装置1>
次に、図4を参照して、本実施形態における二次元コード生成装置1の一例を説明する。図4(a)は、本実施形態における二次元コード生成装置1の構成の一例を示す模式図であり、図4(b)は、本実施形態における二次元コード生成装置1の機能の一例を示す模式図である。
<Two-dimensional code generator 1>
Next, an example of the two-dimensional code generation device 1 according to the present embodiment will be described with reference to FIG. FIG. 4A is a schematic diagram showing an example of the configuration of the two-dimensional code generation device 1 in this embodiment, and FIG. 4B is an example of the function of the two-dimensional code generation device 1 in this embodiment. It is a schematic diagram which shows.

二次元コード生成装置1として、例えばラップトップ(ノート)PC、デスクトップPC、スマートフォン、タブレット端末等の電子機器が用いられる。二次元コード生成装置1は、例えば図4(a)に示すように、筐体10と、CPU(Central Processing Unit)101と、ROM(Read Only Memory)102と、RAM(Random Access Memory)103と、保存部104と、I/F105〜107と、入力機構108と、出力機構109とを備える。各構成101〜107は、内部バス110により接続される。 As the two-dimensional code generation device 1, for example, an electronic device such as a laptop (notebook) PC, a desktop PC, a smartphone, or a tablet terminal is used. The two-dimensional code generation device 1 includes a housing 10, a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 102, and a RAM (Random Access Memory) 103, as shown in FIG. 4A, for example. The storage unit 104, the I/Fs 105 to 107, the input mechanism 108, and the output mechanism 109 are provided. The components 101 to 107 are connected by the internal bus 110.

CPU101は、二次元コード生成装置1全体を制御する。ROM102は、CPU101の動作コードを格納する。RAM103は、CPU101の動作時に使用される作業領域である。保存部104は、対象規格に関する情報等の各種情報が記憶される。保存部104として、例えばHDD(Hard Disk Drive)のほか、SSD(Solid State Drive)等のデータ保存装置が用いられる。 The CPU 101 controls the entire two-dimensional code generation device 1. The ROM 102 stores the operation code of the CPU 101. The RAM 103 is a work area used when the CPU 101 operates. The storage unit 104 stores various kinds of information such as information on target standards. As the storage unit 104, for example, a data storage device such as an SSD (Solid State Drive) in addition to an HDD (Hard Disk Drive) is used.

I/F105は、通信網4を介して、必要に応じて二次元コード評価装置2や、サーバ3等との各種情報の送受信を行うためのインターフェースである。I/F106は、入力機構108との情報の送受信を行うためのインターフェースである。I/F107は、出力機構109との各種情報の送受信を行うためのインターフェースである。 The I/F 105 is an interface for transmitting and receiving various kinds of information with the two-dimensional code evaluation device 2, the server 3, and the like via the communication network 4 as necessary. The I/F 106 is an interface for transmitting and receiving information to and from the input mechanism 108. The I/F 107 is an interface for transmitting/receiving various information to/from the output mechanism 109.

入力機構108として、例えばキーボードが用いられ、二次元コード生成装置1の使用者等は、入力機構108を介して、二次元コードCに含めたい情報(対象情報)や、二次元コード生成装置1の制御コマンド等を入力する。 For example, a keyboard is used as the input mechanism 108, and a user or the like of the two-dimensional code generation device 1 can input information (target information) to be included in the two-dimensional code C or the two-dimensional code generation device 1 via the input mechanism 108. Enter the control command of.

出力機構109は、保存部104に保存された各種情報、又は二次元コードC等を出力する。出力機構109として、ディスプレイが用いられ、例えばタッチパネル式の場合、入力機構108と一体に設けられる。出力機構109として、例えばプリンター等のような公知の印刷装置が用いられ、紙媒体に二次元コードCを印刷できるようにしてもよい。 The output mechanism 109 outputs various information stored in the storage unit 104, the two-dimensional code C, or the like. A display is used as the output mechanism 109. For example, in the case of a touch panel type, it is provided integrally with the input mechanism 108. A publicly known printing device such as a printer may be used as the output mechanism 109 so that the two-dimensional code C can be printed on a paper medium.

二次元コード生成装置1は、例えば図4(b)に示すように、取得部11と、生成部12と、設定部13と、入れ替え部14と、二次元コード生成部15とを備え、例えば記憶部16と、出力部17とを備えてもよい。なお、図4(b)に示した各機能は、CPU101が、RAM103を作業領域として、保存部104等に記憶されたプログラムを実行することにより実現され、例えば二次元コード生成装置1が二次元コード生成方法を実行するためのプログラムをインストールすることで、各機能を備えてもよい。また、各機能の一部は、上述した対象規格や公知技術に準ずる方法により、二次元コードCを生成(エンコード)してもよい。 The two-dimensional code generation device 1 includes an acquisition unit 11, a generation unit 12, a setting unit 13, a replacement unit 14, and a two-dimensional code generation unit 15, as shown in FIG. 4B, for example. The storage unit 16 and the output unit 17 may be provided. Each function shown in FIG. 4B is realized by the CPU 101 executing a program stored in the storage unit 104 or the like using the RAM 103 as a work area. For example, the two-dimensional code generation device 1 performs two-dimensional processing. Each function may be provided by installing a program for executing the code generation method. In addition, a part of each function may generate (encode) the two-dimensional code C by a method according to the above-mentioned target standard or a known technique.

<<取得部11>>
取得部11は、対象情報を取得する。取得部11は、例えば入力機構108から入力された対象情報を取得するほか、例えば通信網4を介して二次元コード評価装置2や他の端末9等から、対象情報を取得してもよい。
<<Acquisition unit 11>>
The acquisition unit 11 acquires target information. The acquisition unit 11 may acquire the target information input from the input mechanism 108, or may acquire the target information from the two-dimensional code evaluation device 2 or another terminal 9 via the communication network 4, for example.

取得部11は、例えば対象情報に紐づく特定情報を取得する。取得部11は、例えば対象情報と同時に取得するほか、例えば対象情報とは異なるタイミングでもよく、端末情報とは異なる経路(例えば対象情報は端末9から取得し、特定情報は入力機構108を介して取得)から取得してもよい。特定情報は、例えばパスワードや、対象情報に対する秘匿レベル等の秘匿に関する情報を含むほか、例えば二次元コードCを利用したサービスのユーザIDや、ユーザ端末に関する情報を含む。 The acquisition unit 11 acquires, for example, specific information associated with the target information. The acquisition unit 11 acquires the target information at the same time as the target information, and may acquire the target information at a different timing (for example, the target information is acquired from the terminal 9 and the specific information is acquired via the input mechanism 108). It may be acquired from (acquisition). The specific information includes, for example, a password, confidential information such as a confidential level of the target information, and also includes, for example, a user ID of a service using the two-dimensional code C and information on a user terminal.

<<生成部12>>
生成部12は、対象情報に基づき、構成コード語を含むデータブロックを1以上生成する。構成コードは、データコード語と、訂正コード語とを含み、例えばデータブロックは、図5(a)に示すブロック1、ブロック2のように生成される。
<<<Generator 12>>
The generation unit 12 generates one or more data blocks including the constituent code word based on the target information. The constituent code includes a data code word and a correction code word, and for example, a data block is generated like block 1 and block 2 shown in FIG.

データコード語及び訂正コード語は、複数の符号データを含む。符号データは、例えば0又は1の2値で示される。なお、図5(a)等に示すデータブロックは一例であり、例えば対象規格に準ずる方法により、データコード語及び訂正コード語に含まれる符号データの数、並びにデータブロックの数を設定することができる。 The data code word and the correction code word include a plurality of code data. The code data is represented by a binary value such as 0 or 1. Note that the data blocks shown in FIG. 5A and the like are examples, and the number of code data contained in the data code word and the correction code word and the number of data blocks can be set by, for example, a method conforming to the target standard. it can.

データコード語は、例えば情報本体と、終端符号と、パディングコード語とを含み、それぞれ符号データによって表される。情報本体は、コード化の対象となる対象情報に基づき生成される。終端符号は、情報本体の終端を示す符号である。パディングコード語は、情報本体のコード語の総数が二次元コードCの容量に満たない場合、空のコード語部分を補充する目的で用いられる仮のコード語(埋め草コード語)である。 The data code word includes, for example, an information body, a terminal code, and a padding code word, and each is represented by code data. The information body is generated based on the target information to be encoded. The terminal code is a code indicating the end of the information body. The padding code word is a temporary code word (filling code word) used for the purpose of filling an empty code word portion when the total number of code words in the information body is less than the capacity of the two-dimensional code C.

訂正コード語は、例えばRS(リード・ソロモン)符号を含み、符号データによって表される。RS符号は、データブロックを単位として、誤り訂正するために用いられる符号である。 The correction code word includes, for example, an RS (Reed Solomon) code and is represented by code data. The RS code is a code used for error correction in units of data blocks.

<<設定部13>>
設定部13は、予め設定された初期配置情報に基づき、複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する。初期配置情報は、例えば対象規格における各符号データの配置順序に関する情報を示す。配置情報は、例えば図1に示したデータコード語配置領域DP、及び誤り訂正コード語配置領域EPに示した配置順序に従って、各符号データに設定される。
<<Setting section 13>>
The setting unit 13 sets the arrangement information for arranging as the initial two-dimensional code for each of the plurality of code data based on the preset initial arrangement information. The initial arrangement information indicates, for example, information regarding the arrangement order of each code data in the target standard. The arrangement information is set in each code data according to the arrangement order shown in the data code word arrangement area DP and the error correction code word arrangement area EP shown in FIG. 1, for example.

例えば、ブロック1のデータコード語に含まれる符号データには、位置D1に対応する配置情報a、b、c、d、eが設定され、ブロック2のデータコード語に含まれる符号データには、位置D2に対応する配置情報f、g、h、i、jが設定される。また、例えばブロック1の訂正コード語に含まれる符号データには、位置E1に対応する配置情報A、B、C、Dが設定され、ブロック2の訂正コード語に含まれる符号データには、位置E2に対応する配置情報E、F、G、Hが設定される。 For example, the arrangement information a, b, c, d, e corresponding to the position D1 is set in the code data included in the data code word of block 1, and the code data included in the data code word of block 2 is set to Arrangement information f, g, h, i, j corresponding to the position D2 is set. Further, for example, the arrangement information A, B, C, and D corresponding to the position E1 is set in the code data included in the correction code word of the block 1, and the position information is included in the code data included in the correction code word of the block 2. Arrangement information E, F, G, H corresponding to E2 is set.

<<入れ替え部14>>
入れ替え部14は、複数の符号データに設定された配置情報を入れ替える。入れ替え部14は、例えば構成コード語に含まれる各符号データに設定された配置情報を、複数の構成コードに亘って入れ替えるほか、1つの構成コード語内で入れ替えてもよい。
<<Replacement part 14>>
The replacement unit 14 replaces the arrangement information set in the plurality of code data. The transposing unit 14 transposes, for example, the arrangement information set in each code data included in a constituent code word over a plurality of constituent codes, or may replace it within one constituent code word.

入れ替え部14は、例えば複数のデータコード語に含まれる各符号データに設定された配置情報を入れ替えるほか、例えば複数の訂正コード語に含まれる各符号データに設定された配置情報を入れ替えてもよい。入れ替え部14は、例えば複数のデータブロックに含まれる符号データに設定された配置情報を入れ替えてもよく、例えばデータコード語に含まれる符号データに設定された配置情報と、訂正コード語に含まれる符号データに設定された配置情報とを入れ替えてもよい。即ち、入れ替え部14は、XOR演算によるもの等のような符号データの値を反転させる処理とは異なり、配置情報を対象とした入れ替え処理を行う。 The replacing unit 14 replaces the arrangement information set in each code data included in a plurality of data code words, for example, and may replace the arrangement information set in each code data included in a plurality of correction code words, for example. .. The replacement unit 14 may replace the placement information set in the code data included in the plurality of data blocks, for example, the placement information set in the code data included in the data code word and the correction information included in the correction code word. The arrangement information set in the code data may be replaced. That is, the replacement unit 14 performs the replacement process for the arrangement information, unlike the process of inverting the value of the code data such as that by the XOR operation.

例えば図5(b)に示すように、入れ替え部14は、複数の符号データに設定された配置情報のうち、少なくとも一部の配置情報を入れ替えてもよく、図5(b)では入れ替えた配置情報を、下線付き斜体で示す。 For example, as shown in FIG. 5B, the replacement unit 14 may replace at least a part of the layout information among the layout information set in the plurality of code data. In FIG. Information is shown in italics and underlined.

例えば入れ替え部14は、複数のデータブロックのうち、1以上のデータブロックにおける誤り訂正数を超える範囲で、符号データに設定された配置情報を入れ替えてもよい。この場合、従来の二次元コード読取り装置(例えば端末9)を用いて、生成された二次元コードの導出をさらに難しくすることができる。 For example, the replacement unit 14 may replace the arrangement information set in the code data within a range in which the number of error corrections in one or more data blocks among the plurality of data blocks is exceeded. In this case, it is possible to make it more difficult to derive the generated two-dimensional code by using the conventional two-dimensional code reading device (for example, the terminal 9).

例えば入れ替え部14は、配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替えてもよい。配置変換情報は、配置情報の入れ替えに関する情報を有し、上述した対象規格に示された内容(初期配置情報)とは異なる配置の設定に関する情報を有する。 For example, the replacement unit 14 may replace the layout information set in the plurality of code data with reference to the layout conversion information. The layout conversion information has information about replacement of layout information, and has information about setting of layout different from the content (initial layout information) shown in the target standard described above.

配置変換情報は、例えば形式情報に基づき設定される。入れ替え部14は、例えば複数の形式情報と、各形式情報に対する配置情報の入れ替えに関する情報(例えば入れ替えのルールや、入れ替える対象を特定する情報)とを紐づけた形式情報用テーブルを参照し、配置変換情報を設定してもよい。この場合、入れ替え部14は、生成部12により生成されたデータブロック等の形式に対応する形式情報に基づき、形式情報に対する配置変換情報を設定する。なお、形式情報用テーブルは、例えば保存部104に予め保存され、必要に応じて取出される。 The layout conversion information is set based on the format information, for example. The replacement unit 14 refers to a format information table that associates, for example, a plurality of format information and information related to replacement of the placement information with respect to each format information (for example, a replacement rule or information that identifies a replacement target) The conversion information may be set. In this case, the replacement unit 14 sets the layout conversion information for the format information based on the format information corresponding to the format of the data block or the like generated by the generation unit 12. The format information table is stored in advance in, for example, the storage unit 104, and is retrieved as needed.

なお、配置変換情報は、例えば形式情報に含まれる複数のデータのうち、少なくとも一部に基づき設定されてもよい。例えば形式情報に含まれる複数のデータのうち、任意のnビットに相当する情報を、配置変換情報に紐づけてもよく、この場合、形式情報を15ビット×2とすると、(15n2通りの変換パターンを定義できる。これにより、例えば複数の二次元コード生成装置1を用いた場合、各二次元コード生成装置1が互いに異なる形式情報のnビットに相当する情報に基づき配置変換情報を選択することで、同一の形式情報に対してそれぞれ異なる配置変換情報を参照した二次元コードCの生成を実現することができる。 The layout conversion information may be set based on at least a part of a plurality of data included in the format information, for example. For example, information corresponding to arbitrary n bits of a plurality of data included in the format information may be associated with the arrangement conversion information. In this case, if the format information is 15 bits×2, ( 15 C n ). Two conversion patterns can be defined. Thereby, for example, when a plurality of two-dimensional code generation devices 1 are used, each two-dimensional code generation device 1 selects the arrangement conversion information based on the information corresponding to n bits of the different format information, so that the same format is obtained. It is possible to realize the generation of the two-dimensional code C with reference to different layout conversion information for each information.

配置変換情報は、例えば型番情報に基づき設定される。入れ替え部14は、例えば複数の型番情報と、各型番情報に対する配置情報の入れ替えに関する情報とを紐づけた型番情報用テーブルを参照し、配置変換情報を設定してもよい。この場合、入れ替え部14は、生成部12により生成されたデータブロック等の形式に対応する型番情報に基づき、型番情報に対する配置変換情報を設定する。なお、型番情報用テーブルは、例えば保存部104に予め保存され、必要に応じて取出される。 The layout conversion information is set based on the model number information, for example. The replacement unit 14 may set the layout conversion information by referring to, for example, a model number information table that associates a plurality of model number information with information about replacement of layout information for each model number information. In this case, the replacement unit 14 sets the layout conversion information for the model number information based on the model number information corresponding to the format of the data block generated by the generation unit 12. The model number information table is stored in advance in the storage unit 104, for example, and is retrieved as needed.

なお、配置変換情報は、例えば型番情報に含まれる複数のデータのうち、少なくとも一部に基づき設定されてもよい。例えば型番情報に含まれる複数のデータのうち、任意のnビットに相当する情報を、配置変換情報に紐づけてもよい。これにより、例えば複数の二次元コード生成装置1を用いた場合、各二次元コード生成装置1が互いに異なる型番情報のnビットに相当する情報に基づき配置変換情報を選択することで、同一の型番情報に対してそれぞれ異なる配置変換情報を参照した二次元コードCの生成を実現することができる。 The layout conversion information may be set based on at least a part of the plurality of data included in the model number information, for example. For example, information corresponding to arbitrary n bits of the plurality of data included in the model number information may be associated with the layout conversion information. Thereby, for example, when a plurality of two-dimensional code generation devices 1 are used, each two-dimensional code generation device 1 selects layout conversion information based on information corresponding to n bits of model number information different from each other, whereby the same model number is selected. It is possible to realize the generation of the two-dimensional code C with reference to different layout conversion information for each information.

なお、例えば配置変換情報は、形式情報及び型番情報に基づき設定されてもよい。この場合、上述した形式情報用テーブル、及び型番情報用テーブルを参照するほか、例えば各テーブルを組み合わせたテーブルを参照してもよい。 In addition, for example, the layout conversion information may be set based on the format information and the model number information. In this case, in addition to referring to the format information table and model number information table described above, for example, a table obtained by combining the tables may be referred to.

配置変換情報は、例えば特定情報に基づき設定されてもよい。入れ替え部14は、例えば複数の特定情報と、各特定情報に対する配置情報の入れ替えに関する情報とを紐づけた特定情報用テーブルを参照し、配置変換情報を設定してもよい。なお、特定情報用テーブルは、例えば保存部104に予め保存され、必要に応じて取出される。 The arrangement conversion information may be set based on the specific information, for example. The replacement unit 14 may set the layout conversion information by referring to, for example, a specific information table in which a plurality of pieces of specific information are associated with information about the replacement of the layout information for each piece of specific information. The specific information table is stored in advance in the storage unit 104, for example, and is retrieved as needed.

上記のほか、例えば特定情報は、配置情報の入れ替えに関する情報を含んでもよい。この場合、入れ替え部14は、特定情報から配置情報の入れ替えに関する情報を抽出し、配置変換情報として設定する。また、特定情報は、配置変換情報を含んでもよい。 In addition to the above, for example, the specific information may include information regarding replacement of the placement information. In this case, the replacement unit 14 extracts the information on the replacement of the placement information from the specific information and sets it as the placement conversion information. Further, the specific information may include layout conversion information.

配置変換情報は、例えば予め設定されてもよい。この場合、配置変換情報は、例えば保存部104に保存され、必要に応じて取出される。特に、配置変換情報として、配置情報を入れ替えるルールが用いられる場合、二次元コードの形式に関わらず1つの配置変換情報を用いることができる。このため、保存部104等に保存するデータ容量を最小限に抑えることができる。なお、配置情報を入れ替えるルールとして、例えば1つのデータブロック内における複数の配置情報を転回し、それぞれ紐づく符号データを入れ替えるルールが用いられる。 The arrangement conversion information may be set in advance, for example. In this case, the layout conversion information is stored in, for example, the storage unit 104, and is retrieved as needed. In particular, when the rule for replacing the arrangement information is used as the arrangement conversion information, one arrangement conversion information can be used regardless of the format of the two-dimensional code. Therefore, the amount of data stored in the storage unit 104 or the like can be minimized. As a rule for replacing the arrangement information, for example, a rule for inverting a plurality of pieces of arrangement information in one data block and replacing the associated code data is used.

配置変換情報は、例えば1つの構成コード語に含まれる複数の符号データに設定された配置情報を入れ替える情報を有する。配置変換情報は、例えば1つのデータコード語のうち、少なくとも一部に含まれる複数の符号データに設定された配置情報を入れ替える情報を有する。また、配置変換情報は、例えば1つの構成コードに含まれるデータコード語及び訂正コード語のうち、少なくとも一部に含まれる複数の符号データに設定された配置情報を入れ替える情報を有してもよい。 The arrangement conversion information has information for replacing arrangement information set in a plurality of code data included in one constituent code word, for example. The arrangement conversion information has information for replacing arrangement information set in a plurality of code data included in at least a part of one data code word, for example. Further, the arrangement conversion information may include information for replacing arrangement information set in a plurality of code data included in at least a part of the data code word and the correction code word included in one constituent code, for example. ..

配置変換情報を参照することで、例えば二次元コードCから対象情報を導出する際、配置変換情報を参照することで、容易に対象情報を導出することが可能となる。また、配置変換情報を特定の端末(例えば二次元コード評価装置2)のみに記憶させることで、他の端末9を用いた対象情報の導出が困難となり、対象情報の秘匿性を向上させることが可能となる。 For example, when deriving the target information from the two-dimensional code C by referring to the arrangement conversion information, it is possible to easily derive the target information by referring to the arrangement conversion information. Further, by storing the layout conversion information only in a specific terminal (for example, the two-dimensional code evaluation device 2), it becomes difficult to derive the target information using the other terminal 9, and the confidentiality of the target information can be improved. It will be possible.

配置変換情報は、例えば複数の構成コード語のうち、1つの構成コード語(第1構成コード語)に含まれる符号データに設定された配置情報(第1配置情報)を、他の構成コード語(第2構成コード語)に含まれる符号データに設定された配置情報(第2配置情報)に入れ替える情報を有する。この場合、生成される二次元コードCの秘匿性を向上させることができる。なお、入れ替えの対象となる各配置情報が、データコード語及び訂正コード語の何れかに含まれるかは、任意である。 The arrangement conversion information is, for example, the arrangement information (first arrangement information) set in the code data included in one constituent code word (first constituent code word) among the plurality of constituent code words, and the other constituent code words. It has information to replace the placement information (second placement information) set in the code data included in the (second configuration code word). In this case, the confidentiality of the generated two-dimensional code C can be improved. It should be noted that it is arbitrary which of the data code word and the correction code word includes each piece of arrangement information to be replaced.

配置情報は、例えば複数のデータコード語のうち、1つのデータコード語(第1データコード語)に含まれる全ての符号データに設定された配置情報を、他のデータコード語(第2データコード語)に含まれる符号データに設定された配置情報に入れ替える情報を有する。このとき、第1データコード語に含まれる符号データの数は、第2データコード語に含まれる符号データの数以下である。 As the arrangement information, for example, among the plurality of data code words, the arrangement information set in all code data included in one data code word (first data code word) is used as another data code word (second data code word). Information to replace the arrangement information set in the code data included in the word). At this time, the number of code data included in the first data code word is less than or equal to the number of code data included in the second data code word.

この場合、例えば図6(a)に示すように、入れ替え部14は、第1データコード語に含まれる符号データに設定された配置情報a、b、c、d、eを、第2データコード語に含まれる符号データに設定された配置情報f、g、h、i、jに入れ替える。このとき、例えば第2データコード語に含まれる符号データに設定される配置情報は、配置情報a、b、c、d、eのほか、例えば他のデータコード語に含まれる符号データに設定された配置情報に入れ替えてもよい。なお、上述した複数の「データコード語」の代わりに、複数の「訂正コード語」を用いた場合も同様のため、説明を省略する。 In this case, for example, as shown in FIG. 6A, the replacement unit 14 replaces the arrangement information a, b, c, d, e set in the code data included in the first data code word with the second data code. The arrangement information f, g, h, i, j set in the code data included in the word is replaced. At this time, for example, the arrangement information set in the code data included in the second data code word is set in the code data included in another data code word in addition to the arrangement information a, b, c, d, and e. It may be replaced with the arranged information. The same applies to the case where a plurality of "correction code words" are used instead of the above-mentioned plurality of "data code words", and a description thereof will be omitted.

例えば、第1データコード語に含まれる全ての符号データに設定された配置情報を、1つの訂正コード語に含まれる符号データに設定された配置情報に入れ替えてもよい。このとき、第1データコード語に含まれる符号データの数は、1つの訂正コード語に含まれる符号データの数以下である。また、例えば1つの訂正コード語に含まれる全ての符号データに設定された配置情報を、第1データコード語に含まれる符号データに設定された配置情報に入れ替えてもよい。このとき、1つの訂正コード語に含まれる符号データの数は、第1データコード語に含まれる符号データの数以下である。 For example, the arrangement information set in all the code data included in the first data code word may be replaced with the arrangement information set in the code data included in one correction code word. At this time, the number of pieces of code data included in the first data code word is equal to or less than the number of pieces of code data included in one correction code word. Further, for example, the arrangement information set in all the code data included in one correction code word may be replaced with the arrangement information set in the code data included in the first data code word. At this time, the number of pieces of code data included in one correction code word is equal to or less than the number of pieces of code data included in the first data code word.

配置変換情報は、例えば二次元コードCから符号データを導出するときにおける配置情報の認識順序に関する情報を有する。即ち、配置変換情報は、従来とは異なる配置情報の認識順序に関する情報を有する。このため、入れ替え部14は、配置変換情報の有する配置情報の認識順序に従って、各符号データに設定された配置情報を入れ替える。 The arrangement conversion information has information regarding the recognition order of the arrangement information when deriving the code data from the two-dimensional code C, for example. That is, the layout conversion information has information regarding a recognition order of layout information that is different from the conventional one. Therefore, the replacement unit 14 replaces the placement information set in each code data according to the recognition order of the placement information included in the placement conversion information.

この場合、例えば図6(b)に示すように、従来の配置情報の認識順序が、「1番目に認識する符号データ:配置情報「a(1行1列)」、2番目に認識する符号データ:配置情報「b(1行2列)」・・・」である場合、配置変換情報の有する配置情報の認識順序が、「1番目に認識する符号データ:配置情報「h(2行1列)」、2番目に認識する符号データ:配置情報「g(3行3列)」・・・」のように、従来とは異なる認識順序を示す。このため、入れ替え部14は、配置変換情報を参照し、例えば符号データに設定された配置情報「a」を、配置情報「h」に入れ替える。これにより、秘匿化の高い二次元コードCを生成することができる。 In this case, for example, as shown in FIG. 6B, the conventional recognition order of the arrangement information is “code data to be recognized first: arrangement information “a (1 row and 1 column)” and a code to be recognized second. When the data is the arrangement information “b (1 row 2 column)”..., the recognition order of the arrangement information included in the arrangement conversion information is “code data to be recognized first: arrangement information “h (2 rows 1 Column)”, the second recognized code data: arrangement information “g (3 rows and 3 columns)”,... Therefore, the replacement unit 14 refers to the layout conversion information and replaces the layout information “a” set in the code data with the layout information “h”, for example. As a result, it is possible to generate a highly confidential two-dimensional code C.

なお、例えば入れ替え部14は、配置変換情報を参照せずに、配置情報を入れ替えてもよい。この場合、入れ替え部14は、例えばランダムに配置情報を入れ替え、入れ替えた履歴に関する情報(履歴情報)を保存部104等に保存する。これにより、例えば二次元コードCから対象情報を導出する際、履歴情報に基づき容易に対象情報を導出することが可能となる。また、履歴情報を特定の端末(例えば二次元コード評価装置2)のみに記憶させることで、他の端末9を用いた対象情報の導出が困難となり、対象情報の秘匿性を向上させることが可能となる。 Note that, for example, the replacement unit 14 may replace the placement information without referring to the placement conversion information. In this case, the replacement unit 14 randomly replaces the placement information and stores the information (history information) related to the replaced history in the storage unit 104 or the like. Thereby, when deriving the target information from the two-dimensional code C, for example, the target information can be easily derived based on the history information. Further, by storing the history information only in a specific terminal (for example, the two-dimensional code evaluation device 2), it becomes difficult to derive the target information using the other terminal 9, and the confidentiality of the target information can be improved. Becomes

<<二次元コード生成部15>>
二次元コード生成部15は、入れ替え部14により入れ替えられた配置情報に基づき、二次元コードCを生成する。二次元コード生成部15は、例えば対象規格に準ずる生成方法により、二次元コードCを生成する。このとき、入れ替え部14によって配置情報が入れ替えられているため、複数のデータブロックに含まれる少なくとも一部の符号データは、従来とは異なる位置に配置される。
<<two-dimensional code generation unit 15>>
The two-dimensional code generation unit 15 generates the two-dimensional code C based on the arrangement information replaced by the replacement unit 14. The two-dimensional code generation unit 15 generates the two-dimensional code C by a generation method that conforms to the target standard, for example. At this time, since the placement information has been swapped by the swapping unit 14, at least some of the code data included in the plurality of data blocks are placed at positions different from those in the related art.

<<記憶部16>>
記憶部16は、保存部104に保存された対象規格に関する情報、初期配置情報、配置変換情報等の各種データを必要に応じて取出す。記憶部16は、各構成11〜15、17により取得又は生成された各種データを、必要に応じて保存部104に保存する。
<<<storage section 16>>
The storage unit 16 retrieves various types of data such as the information about the target standard, the initial placement information, the placement conversion information, and the like stored in the storage unit 104 as necessary. The storage unit 16 stores the various data acquired or generated by the configurations 11 to 15 and 17 in the storage unit 104 as necessary.

<<出力部17>>
出力部17は、生成された二次元コードCを出力する。例えば出力機構109として印刷装置が用いられる場合、出力部17は、出力機構109に二次元コードCを印刷するためのデータを出力する。例えば出力機構109としてディスプレイが用いられる場合、出力部17は、出力機構109に二次元コードCを表示するためのデータを出力する。出力部17は、例えば通信網4を介して、二次元コード評価装置2等の他の端末に二次元コードCのデータを出力してもよい。
<<Output unit 17>>
The output unit 17 outputs the generated two-dimensional code C. For example, when a printing device is used as the output mechanism 109, the output unit 17 outputs data for printing the two-dimensional code C to the output mechanism 109. For example, when a display is used as the output mechanism 109, the output unit 17 outputs the data for displaying the two-dimensional code C to the output mechanism 109. The output unit 17 may output the data of the two-dimensional code C to another terminal such as the two-dimensional code evaluation device 2 via the communication network 4, for example.

<二次元コード評価装置2>
次に、図7を参照して、本実施形態における二次元コード評価装置2の一例を説明する。図7(a)は、本実施形態における二次元コード評価装置2の構成の一例を示す模式図であり、図7(b)は、本実施形態における二次元コード評価装置2の機能の一例を示す模式図である。
<Two-dimensional code evaluation device 2>
Next, with reference to FIG. 7, an example of the two-dimensional code evaluation apparatus 2 in the present embodiment will be described. FIG. 7A is a schematic diagram showing an example of the configuration of the two-dimensional code evaluation apparatus 2 in this embodiment, and FIG. 7B is an example of the function of the two-dimensional code evaluation apparatus 2 in this embodiment. It is a schematic diagram which shows.

二次元コード評価装置2として、例えば二次元コード生成装置1と同様に、ラップトップ(ノート)PC、デスクトップPC、スマートフォン、タブレット端末、二次元コード読取り専用端末(二次元コードリーダ)等の電子機器が用いられる。二次元コード評価装置2は、例えば図7(a)に示すように、筐体20と、CPU201と、ROM202と、RAM203と、保存部204と、I/F205〜207と、入力機構208と、出力機構209とを備える。各構成201〜207は、内部バス210により接続される。 As the two-dimensional code evaluation device 2, for example, similar to the two-dimensional code generation device 1, electronic devices such as a laptop (notebook) PC, a desktop PC, a smartphone, a tablet terminal, and a two-dimensional code read-only terminal (two-dimensional code reader). Is used. For example, as shown in FIG. 7A, the two-dimensional code evaluation device 2 includes a housing 20, a CPU 201, a ROM 202, a RAM 203, a storage unit 204, I/Fs 205 to 207, an input mechanism 208, and And an output mechanism 209. The components 201 to 207 are connected by the internal bus 210.

CPU201は、二次元コード評価装置2全体を制御する。ROM202は、CPU201の動作コードを格納する。RAM203は、CPU201の動作時に使用される作業領域である。保存部204は、対象規格に関する情報等の各種情報が記憶される。保存部204として、例えばHDDのほか、SSD等のデータ保存装置が用いられる。 The CPU 201 controls the entire two-dimensional code evaluation device 2. The ROM 202 stores the operation code of the CPU 201. The RAM 203 is a work area used when the CPU 201 operates. The storage unit 204 stores various kinds of information such as information regarding the target standard. As the storage unit 204, a data storage device such as an SSD is used in addition to the HDD, for example.

I/F205は、通信網4を介して、必要に応じて二次元コード生成装置1や、サーバ3等との各種情報の送受信を行うためのインターフェースである。I/F206は、入力機構208との情報の送受信を行うためのインターフェースである。I/F207は、出力機構209との各種情報の送受信を行うためのインターフェースである。 The I/F 205 is an interface for transmitting and receiving various kinds of information with the two-dimensional code generation device 1, the server 3, and the like via the communication network 4 as necessary. The I/F 206 is an interface for transmitting/receiving information to/from the input mechanism 208. The I/F 207 is an interface for transmitting and receiving various information to and from the output mechanism 209.

入力機構208として、例えばカメラ等のような公知の撮像装置が用いられ、二次元コード評価装置2の使用者等は、入力機構208を介して二次元コードCを読取り、二次元コードCに含まれる対象情報を確認する。 A known image pickup device such as a camera is used as the input mechanism 208, and a user of the two-dimensional code evaluation apparatus 2 reads the two-dimensional code C via the input mechanism 208 and includes it in the two-dimensional code C. Check the target information to be displayed.

出力機構209は、保存部204に保存された各種情報、又は二次元コードCから導出された対象情報を出力する。出力機構209として、ディスプレイが用いられ、例えばタッチパネル式の場合、入力機構208の文字入力部や画面選択部等と一体に設けられる。 The output mechanism 209 outputs various information stored in the storage unit 204 or target information derived from the two-dimensional code C. A display is used as the output mechanism 209, and in the case of a touch panel type, for example, it is provided integrally with the character input unit and the screen selection unit of the input mechanism 208.

二次元コード生成装置1は、例えば図7(b)に示すように、読取り部21と、導出部22とを備え、例えば記憶部23と、出力部24とを備えてもよい。なお、図7(b)に示した各機能は、CPU201が、RAM203を作業領域として、保存部204等に記憶されたプログラムを実行することにより実現され、例えば二次元コード評価装置2が二次元コード評価方法を実行するためのプログラムをインストールすることで、各機能を備えてもよい。また、各機能の一部は、上述した対象規格や公知技術に準ずる方法により、二次元コードCを評価してもよい。 The two-dimensional code generation device 1 includes a reading unit 21 and a deriving unit 22, for example, as illustrated in FIG. 7B, and may include, for example, a storage unit 23 and an output unit 24. Note that each function shown in FIG. 7B is realized by the CPU 201 executing a program stored in the storage unit 204 or the like using the RAM 203 as a work area. For example, the two-dimensional code evaluation apparatus 2 is two-dimensional. Each function may be provided by installing a program for executing the code evaluation method. Further, a part of each function may evaluate the two-dimensional code C by a method according to the above-mentioned target standard or a known technique.

<<読取り部21>>
読取り部21は、二次元コードCを読取る。読取り部21は、例えば入力機構208を介して二次元コードCを撮像することで、二次元コードCを読取る。読取り部21は、例えば通信網4を介して、二次元コード生成装置1等から二次元コードCのデータを取得してもよい。
<<reading section 21>>
The reading unit 21 reads the two-dimensional code C. The reading unit 21 reads the two-dimensional code C by capturing an image of the two-dimensional code C via the input mechanism 208, for example. The reading unit 21 may acquire the data of the two-dimensional code C from the two-dimensional code generation device 1 or the like via the communication network 4, for example.

<<導出部22>>
導出部22は、二次元コードCに対する対象情報を導出する。導出部22は、例えば配置変換情報を参照し、二次元コードCに基づく複数のデータブロック(例えば図5(b))及び配置情報から、配置情報を入れ替える前の複数のデータブロック(例えば図5(a))及び配置情報を抽出する。その後、導出部22は、例えば対象規格等に準ずる導出方法により、複数のデータブロックから対象情報を導出する。なお、導出部22は、例えば配置変換情報を参照し、二次元コードCを初期二次元コードに変換した上で、対象情報を導出してもよい。
<<deriving unit 22>>
The deriving unit 22 derives target information for the two-dimensional code C. The derivation unit 22 refers to, for example, the arrangement conversion information, and extracts a plurality of data blocks based on the two-dimensional code C (for example, FIG. 5B) and a plurality of data blocks before the arrangement information is replaced from the arrangement information (for example, FIG. 5B). (A)) and the arrangement information are extracted. After that, the deriving unit 22 derives the target information from the plurality of data blocks by a deriving method that conforms to the target standard, for example. The derivation unit 22 may derive the target information after converting the two-dimensional code C into the initial two-dimensional code by referring to the arrangement conversion information, for example.

導出部22は、例えば二次元コードCの形式情報配置領域FIに配置された形式情報、型番情報配置領域VIに配置された型番情報の少なくとも何れかに基づき、二次元コードCの生成時に参照された配置変換情報を特定してもよい。この場合、例えば上述した形式情報用テーブル、型番情報用テーブル、及び各テーブルを組み合わせたテーブル、並びに配置情報を入れ替えるルールの少なくとも何れかを保存部204に予め保存させておくことで、二次元コードCに対して適切な配置変換情報を取出して参照することができる。これにより、二次元コードCを評価できる端末の制限を予め設定することができ、秘匿性の向上を図ることが可能となる。 The deriving unit 22 is referred to when the two-dimensional code C is generated based on, for example, at least one of the format information arranged in the format information arrangement area FI of the two-dimensional code C and the model number information arranged in the model number information arrangement area VI. The layout conversion information may be specified. In this case, for example, by storing at least one of the format information table, the model number information table, the table combining each table, and the rule for exchanging the layout information in the storage unit 204 in advance, the two-dimensional code Appropriate layout conversion information for C can be extracted and referenced. As a result, it is possible to preset the limit of terminals that can evaluate the two-dimensional code C, and improve the confidentiality.

上記のほか、例えば導出部22は、通信網4を介して、配置変換情報、又は履歴情報を取得してもよい。この場合、二次元コード評価装置2は、予め配置変換情報を予め保存させる必要がないため、二次元コード評価装置2における記憶容量の増加を抑制することができる。 In addition to the above, for example, the derivation unit 22 may acquire the layout conversion information or the history information via the communication network 4. In this case, since the two-dimensional code evaluation device 2 does not need to store the layout conversion information in advance, it is possible to suppress an increase in the storage capacity of the two-dimensional code evaluation device 2.

上記のほか、例えば導出部22は、通信網4を介して、特定情報を取得してもよい。この場合、例えば上述した特定情報用テーブルを保存部204に予め保存させておくことで、二次元コードCに対して適切な配置変換情報を取出して参照することができる。これにより、二次元コードCを評価できる端末の制限を予め設定することができ、秘匿性の向上を図ることが可能となる。また、特定情報に配置情報の入れ替えに関する情報が含まれる場合、二次元コード評価装置2は、予め配置変換情報を予め保存させる必要がないため、二次元コード評価装置2における記憶容量の増加を抑制することができる。 In addition to the above, for example, the derivation unit 22 may acquire the specific information via the communication network 4. In this case, for example, by storing the above-described specific information table in the storage unit 204 in advance, it is possible to extract and refer to appropriate layout conversion information for the two-dimensional code C. As a result, it is possible to preset the limit of terminals that can evaluate the two-dimensional code C, and improve the confidentiality. Further, when the specific information includes the information about the replacement of the arrangement information, the two-dimensional code evaluation apparatus 2 does not need to store the arrangement conversion information in advance, and thus the increase in the storage capacity of the two-dimensional code evaluation apparatus 2 is suppressed. can do.

<<記憶部23>>
記憶部23は、保存部204に保存された対象規格に関する情報、初期配置情報、配置変換情報等の各種データを必要に応じて取出す。記憶部23は、各構成21、22、24により取得又は生成された各種データを、必要に応じて保存部204に保存する。
<<<storage unit 23>>
The storage unit 23 retrieves various types of data such as information regarding the target standard, initial placement information, placement conversion information, and the like stored in the storage unit 204 as necessary. The storage unit 23 stores the various data acquired or generated by the components 21, 22, and 24 in the storage unit 204 as necessary.

<<出力部24>>
出力部24は、導出された対象情報を出力する。出力部24は、例えば対象情報に基づく他の情報を出力してもよく、他の情報の内容に関しては、予め任意に設定することができる。出力部24は、例えば通信網4を介して、二次元コード生成装置1等の他の端末に、対象情報又は対象情報を導出した旨を通知する情報等を出力してもよい。
<<Output unit 24>>
The output unit 24 outputs the derived target information. The output unit 24 may output other information based on the target information, for example, and the content of the other information can be arbitrarily set in advance. The output unit 24 may output the target information or information notifying that the target information is derived to other terminals such as the two-dimensional code generation device 1 via the communication network 4, for example.

なお、二次元コード評価装置2は、例えば二次元コード生成装置1の備える各機能11〜15の少なくとも何れかを備えてもよく、二次元コード生成装置1は、二次元コード評価装置2の備える各機能21、22の少なくとも何れかを備えてもよい。 The two-dimensional code evaluation device 2 may include, for example, at least one of the functions 11 to 15 included in the two-dimensional code generation device 1, and the two-dimensional code generation device 1 includes the two-dimensional code evaluation device 2. At least one of the functions 21 and 22 may be provided.

<サーバ3>
サーバ3は、例えば通信網4を介して、二次元コード生成装置1、二次元コード評価装置2等と接続される。サーバ3は、過去の各種データ等が記憶され、必要に応じて二次元コード生成装置1等から各種データが送信される。サーバ3は、例えば二次元コード生成装置1等の備える機能のうち、少なくとも一部の機能を備えてもよく、例えば二次元コード生成装置1等の代わりに少なくとも一部の処理を行ってもよい。サーバ3は、例えば二次元コード生成装置1等の保存部104、204に記憶された各種データのうち少なくとも一部が記憶され、例えば保存部104、204の代わりに用いられてもよい。この場合、二次元コード生成装置1には、最低限の情報のみを保存させておくことができ、セキュリティの向上を図ることができる。
<Server 3>
The server 3 is connected to the two-dimensional code generation device 1, the two-dimensional code evaluation device 2 and the like via the communication network 4, for example. The server 3 stores various past data and the like, and various data is transmitted from the two-dimensional code generation device 1 and the like as necessary. The server 3 may have at least a part of the functions of the two-dimensional code generation device 1 or the like, for example, and may perform at least a part of the processing instead of the two-dimensional code generation device 1 or the like. .. The server 3 stores at least a part of various data stored in the storage units 104 and 204 of the two-dimensional code generation device 1 or the like, and may be used instead of the storage units 104 and 204, for example. In this case, only the minimum information can be stored in the two-dimensional code generation device 1, and security can be improved.

<通信網4>
通信網4は、例えば二次元コード生成装置1、二次元コード評価装置2等が通信回路を介して接続されるインターネット網等である。通信網4は、いわゆる光ファイバ通信網で構成されてもよい。また、通信網4は、有線通信網のほか、無線通信網等の公知の通信網で実現してもよい。
<Communication network 4>
The communication network 4 is, for example, an internet network or the like to which the two-dimensional code generation device 1, the two-dimensional code evaluation device 2, etc. are connected via a communication circuit. The communication network 4 may be configured by a so-called optical fiber communication network. Further, the communication network 4 may be realized by a known communication network such as a wireless communication network in addition to the wired communication network.

(第1実施形態:二次元コードシステム100の動作)
次に、図8を参照して、本実施形態における二次元コードシステム100の動作の一例を説明する。図8(a)は、本実施形態における二次元コードシステム100の動作のうち、二次元コードCを生成する動作の一例を示すフローチャートであり、図8(b)は、本実施形態における二次元コードシステム100の動作のうち、二次元コードCを評価する動作の一例を示すフローチャートである。
(First embodiment: operation of the two-dimensional code system 100)
Next, an example of the operation of the two-dimensional code system 100 according to this embodiment will be described with reference to FIG. FIG. 8A is a flowchart showing an example of the operation of generating the two-dimensional code C among the operations of the two-dimensional code system 100 in the present embodiment, and FIG. 8B is the two-dimensional operation in the present embodiment. 4 is a flowchart showing an example of an operation of evaluating the two-dimensional code C among the operations of the code system 100.

二次元コードシステム100は、取得手段S110と、生成手段S120と、設定手段S130と、入れ替え手段S140と、二次元コード生成手段S150とを備え、例えば読取り手段S210と、導出手段S220とを備えてもよい。 The two-dimensional code system 100 includes an acquisition unit S110, a generation unit S120, a setting unit S130, a replacement unit S140, and a two-dimensional code generation unit S150, and includes, for example, a reading unit S210 and a derivation unit S220. Good.

<取得手段S110>
取得手段S110では、例えば取得部11は、コード化の対象となる対象情報を取得する。取得部11は、例えば複数の情報を、対象情報として取得してもよい。取得部11は、例えば対象情報に紐づく特定情報を取得してもよい。
<Acquisition means S110>
In the acquisition means S110, for example, the acquisition unit 11 acquires target information to be encoded. The acquisition unit 11 may acquire, for example, a plurality of pieces of information as target information. The acquisition unit 11 may acquire specific information associated with the target information, for example.

<生成手段S120>
生成手段S120では、例えば生成部12は、対象情報に基づき、データブロックを1以上生成する。生成部12は、例えば対象規格に準ずる方法により、対象情報に基づく複数のデータブロックを生成する。
<Generation means S120>
In the generation unit S120, for example, the generation unit 12 generates one or more data blocks based on the target information. The generation unit 12 generates a plurality of data blocks based on the target information by, for example, a method conforming to the target standard.

<設定手段S130>
設定手段S130では、例えば設定部13は、初期配置情報に基づき、構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する。なお、設定手段S130は、例えば生成手段S120と同時に行われてもよい。
<Setting means S130>
In the setting means S130, for example, the setting unit 13 sets the arrangement information for arranging as the initial two-dimensional code for each of the plurality of code data included in the constituent code word based on the initial arrangement information. The setting unit S130 may be performed at the same time as the generating unit S120, for example.

<入れ替え手段S140>
入れ替え手段S140では、例えば入れ替え部14は、複数の符号データに設定された配置情報を入れ替える。なお、入れ替え手段S140前後における配置情報の総数は等しく、各符号データの示す各値(例えば0又は1)の総数も等しい。このため、配置情報の入れ替えを行うことで、外形的なデータを取得する処理については従来技術を用いることができるとともに、二次元コードCに含められる対象情報に基づくデータ容量を、従来の初期二次元コードに設定できる対象情報に基づくデータ容量と等しくすることができる。
<Replacement means S140>
In the replacement unit S140, for example, the replacement unit 14 replaces the arrangement information set in the plurality of code data. The total number of pieces of arrangement information before and after the exchange unit S140 is equal, and the total number of each value (for example, 0 or 1) indicated by each code data is also equal. Therefore, by replacing the arrangement information, the conventional technique can be used for the process of acquiring the outer shape data, and the data capacity based on the target information included in the two-dimensional code C is set to the conventional initial value. It can be made equal to the data capacity based on the target information that can be set in the dimension code.

入れ替え部14は、例えば複数のデータブロックのうち、1以上のデータブロックにおける誤り訂正数を超える範囲で、符号データに設定された配置情報を入れ替えてもよい。誤り訂正数として、例えば対象規格等において厳密に定義されているものが用いられる。 The replacement unit 14 may replace the arrangement information set in the coded data, for example, within a range in which the number of error corrections in one or more data blocks among the plurality of data blocks is exceeded. As the number of error corrections, those strictly defined in the target standard are used.

入れ替え部14は、例えば形式情報、及び型番情報の少なくとも何れかに基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替えてもよい。この場合、入れ替え部14は、例えば記憶部16を介して、保存部104に保存された形式情報用テーブル、型番情報用テーブル、及び各テーブルを組み合わせたテーブルの少なくとも何れかを取得し、各情報に適した配置変換情報を設定し、参照する。 The replacement unit 14 may replace the layout information set in the plurality of code data by referring to the layout conversion information based on at least one of the format information and the model number information, for example. In this case, the replacement unit 14 acquires, for example, at least one of the format information table, the model number information table, and the table obtained by combining the tables, which is stored in the storage unit 104, via the storage unit 16, and each information is acquired. Set and refer to the layout conversion information suitable for.

入れ替え部14は、例えば特定情報に基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替えてもよい。この場合、入れ替え部14は、例えば記憶部16を介して、保存部104に保存された特定情報用テーブルを取得し、各情報に適した配置変換情報を設定し、参照する。 The replacement unit 14 may replace the layout information set in the plurality of code data with reference to the layout conversion information based on the specific information, for example. In this case, the replacement unit 14 acquires the specific information table stored in the storage unit 104 via, for example, the storage unit 16, sets the layout conversion information suitable for each information, and refers to the layout conversion information.

入れ替え部14は、例えば予め設定された配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替えてもよい。この場合、入れ替え部14は、例えば記憶部16を介して、保存部104に保存された配置変換情報を取得し、配置変換情報を参照する。 The replacement unit 14 may replace the layout information set in the plurality of code data with reference to, for example, preset layout conversion information. In this case, the replacement unit 14 acquires the layout conversion information stored in the storage unit 104, for example, via the storage unit 16, and refers to the layout conversion information.

入れ替え部14は、例えばランダムに配置情報を入れ替えてもよい。この場合、入れ替え部14は、例えば記憶部16を介して、履歴情報を保存部104に保存する。 The replacement unit 14 may replace the placement information at random, for example. In this case, the replacement unit 14 stores the history information in the storage unit 104 via the storage unit 16, for example.

入れ替え部14は、例えばデータブロックに含まれる誤り訂正コードに基づき、入れ替えを行う配置情報を特定してもよい。入れ替え部14は、例えば誤り訂正コードに含まれる符号データの数に応じて、入れ替える配置情報の数を特定する。入れ替え部14は、例えば配置変換情報を参照した上で、誤り訂正コードに基づき、入れ替えを行う配置情報を特定してもよい。これにより、誤り訂正コード語毎に含まれる符号データの数が異なる場合においても、配置変換情報等の条件に適した配置情報の入れ替えが可能となる。 The replacement unit 14 may specify the arrangement information to be replaced, based on the error correction code included in the data block, for example. The replacement unit 14 specifies the number of pieces of arrangement information to be replaced, for example, according to the number of pieces of code data included in the error correction code. The replacement unit 14 may identify the layout information to be replaced based on the error correction code after referring to the layout conversion information, for example. As a result, even when the number of pieces of code data included in each error correction code word is different, it is possible to replace the placement information suitable for the conditions such as the placement conversion information.

<二次元コード生成手段S150>
二次元コード生成手段S150では、例えば二次元コード生成部15は、入れ替え手段S140により入れ替えられた配置情報に基づき、二次元コードCを生成する。二次元コード生成部15は、例えば対象規格に準ずる方法により、二次元コードCを生成する。なお、二次元コード生成手段S150では、例えば生成手段S120においてデータブロックを生成したときと同様の対象規格に準ずる型番、及び形式の少なくとも何れかに基づき、二次元コードCを生成する。
<Two-dimensional code generation means S150>
In the two-dimensional code generation means S150, for example, the two-dimensional code generation unit 15 generates the two-dimensional code C based on the arrangement information exchanged by the exchange means S140. The two-dimensional code generator 15 generates the two-dimensional code C by, for example, a method conforming to the target standard. The two-dimensional code generation means S150 generates the two-dimensional code C based on at least one of a model number and a format conforming to the same target standard as when the data block is generated by the generation means S120.

<<マスク処理手段S151>>
二次元コード生成手段S150は、例えば図9に示すように、マスク処理手段S151を有してもよい。マスク処理手段S151は、例えば予め設定されたマスク情報に基づき、複数の符号データのうち少なくとも1部を反転(値を0から1、又は1から0に変更)させる。これにより、二次元コードCを生成する際、符号データによる明暗モジュールの分布を、均一化することができる。また、これにより、対象規格に規定される標準のマスク処理とは異なる処理とすることができ、より秘匿性を高めることが可能となる。マスク情報として、例えば対象規格における標準マスクパターンに関する情報が用いられる。
<<Mask processing means S151>>
The two-dimensional code generation means S150 may have a mask processing means S151 as shown in FIG. 9, for example. The mask processing means S151 inverts at least a part of the plurality of code data (changes the value from 0 to 1 or from 1 to 0) based on, for example, preset mask information. Thereby, when the two-dimensional code C is generated, the distribution of the bright and dark modules by the code data can be made uniform. In addition, this makes it possible to perform processing different from the standard mask processing defined in the target standard, and it becomes possible to further enhance confidentiality. As the mask information, for example, information about the standard mask pattern in the target standard is used.

その後、例えば出力部17は、出力機構109に二次元コードCを印刷するためのデータを出力する。これにより、出力機構109を用いて紙媒体等に二次元コードCを印刷できる。なお、例えば出力部17は、入れ替え手段S140において参照した配置変換情報、又は履歴情報を、通信網4を介して二次元コード評価装置2等に出力してもよい。 Then, for example, the output unit 17 outputs the data for printing the two-dimensional code C to the output mechanism 109. Thus, the output mechanism 109 can be used to print the two-dimensional code C on a paper medium or the like. Note that, for example, the output unit 17 may output the layout conversion information or history information referred to in the replacement unit S140 to the two-dimensional code evaluation device 2 or the like via the communication network 4.

<読取り手段S210>
読取り手段S210では、例えば読取り部21は、二次元コードCを読取る。読取り部21は、例えば入力機構208を介して、紙媒体等に印刷された二次元コードCを撮像し、二次元コードCを読取る。
<Reading means S210>
In the reading means S210, for example, the reading unit 21 reads the two-dimensional code C. The reading unit 21 captures an image of the two-dimensional code C printed on a paper medium or the like via the input mechanism 208 and reads the two-dimensional code C.

<導出手段S220>
導出手段S220では、例えば導出部22は、二次元コードCに対する対象情報を導出する。導出部22は、例えば配置変換情報、又は履歴情報を参照し、二次元コードCに対する対象情報を導出する。
<Derivation means S220>
In the derivation means S220, for example, the derivation unit 22 derives target information for the two-dimensional code C. The deriving unit 22 derives the target information for the two-dimensional code C with reference to, for example, the layout conversion information or the history information.

導出部22は、例えば上述した形式情報用テーブル等を参照し、二次元コードCの生成時に参照された配置変換情報を特定してもよい。導出部22は、例えば二次元コード生成装置1から送信された特定情報や、配置変換情報等を取得してもよい。 The deriving unit 22 may identify the arrangement conversion information referred to when the two-dimensional code C is generated, for example, by referring to the format information table described above. The derivation unit 22 may acquire, for example, the specific information transmitted from the two-dimensional code generation device 1, the arrangement conversion information, or the like.

その後、例えば出力部24は、導出された対象情報を出力機構209等に出力する。 Then, for example, the output unit 24 outputs the derived target information to the output mechanism 209 or the like.

これにより、本実施形態における二次元コードシステム100の動作が終了する。 As a result, the operation of the two-dimensional code system 100 according to this embodiment ends.

なお、二次元コードシステム100では、例えば上述した設定手段S130を行わなくてもよい。この場合、入れ替え手段S140では、対象規格とは異なる配置情報の設定順序を有する配置変換情報を参照し、複数の符号データに配置情報を設定してもよい。 In addition, in the two-dimensional code system 100, for example, the above-described setting unit S130 may not be performed. In this case, the exchanging means S140 may refer to arrangement conversion information having a setting order of arrangement information different from the target standard and set the arrangement information in a plurality of code data.

なお、上述した取得手段S110、生成手段S120、設定手段S130、入れ替え手段S140、二次元コード生成手段S150、及びマスク処理手段S151は、本実施形態における二次元コード生成方法の取得ステップS11、生成ステップS12、設定ステップS13、入れ替えステップS14、二次元コード生成ステップS15、及びマスク処理ステップに相当し、読取り手段S210、及び導出手段S220は、本実施形態における二次元コード評価方法の読取りステップS21、及び導出ステップS22に相当する。 The acquisition unit S110, the generation unit S120, the setting unit S130, the replacement unit S140, the two-dimensional code generation unit S150, and the mask processing unit S151 described above are the acquisition step S11 and the generation step of the two-dimensional code generation method according to this embodiment. Corresponding to S12, setting step S13, replacement step S14, two-dimensional code generation step S15, and mask processing step, the reading means S210 and the deriving means S220 are the reading step S21 of the two-dimensional code evaluation method in this embodiment, and This corresponds to the derivation step S22.

本実施形態における二次元コードシステム100によれば、二次元コード生成手段S150は、入れ替え手段S140により入れ替えられた配置情報に基づき、二次元コードCを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the two-dimensional code system 100 in the present embodiment, the two-dimensional code generation means S150 generates the two-dimensional code C based on the arrangement information exchanged by the exchange means S140. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the arrangement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

また、本実施形態における二次元コードシステム100によれば、導出手段S220は、二次元コードCに対する対象情報を導出する。このため、二次元コードCの導出を実現することが可能となる。 Further, according to the two-dimensional code system 100 in the present embodiment, the derivation means S220 derives the target information for the two-dimensional code C. Therefore, the derivation of the two-dimensional code C can be realized.

本実施形態における二次元コード生成装置1によれば、二次元コード生成部15は、入れ替え部14により入れ替えられた配置情報に基づき、二次元コードCを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the two-dimensional code generation device 1 in this embodiment, the two-dimensional code generation unit 15 generates the two-dimensional code C based on the arrangement information exchanged by the exchange unit 14. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the arrangement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

また、本実施形態における二次元コード評価装置2によれば、導出部22は、二次元コードCに対する対象情報を導出する。このため、二次元コードCの導出を実現することが可能となる。 Further, according to the two-dimensional code evaluation device 2 in this embodiment, the derivation unit 22 derives target information for the two-dimensional code C. Therefore, the derivation of the two-dimensional code C can be realized.

本実施形態における二次元コード生成方法によれば、二次元コード生成ステップS15は、入れ替えステップS14により入れ替えられた配置情報に基づき、二次元コードCを生成する。このため、従来の二次元コードの形式に設定できる対象情報に基づくデータ容量を維持した状態で、配置情報の入れ替えに伴う非可読処理を行うことができる。これにより、秘匿化する情報の容量制限を抑制することが可能となる。 According to the two-dimensional code generation method of the present embodiment, the two-dimensional code generation step S15 generates the two-dimensional code C based on the arrangement information exchanged in the exchange step S14. Therefore, it is possible to perform the non-readable processing accompanying the replacement of the arrangement information while maintaining the data capacity based on the target information that can be set in the conventional two-dimensional code format. As a result, it is possible to suppress the capacity limit of the information to be concealed.

また、本実施形態における二次元コード生成方法によれば、入れ替えステップS14は、複数のデータブロックのうち、1以上のデータブロックにおける誤り訂正数を超える範囲で、符号データに設定された配置情報を入れ替える。このため、従来の二次元コード読取り装置を用いて、生成された二次元コードCの導出をさらに難しくすることができる。これにより、対象情報の秘匿性を高めることが可能となる。 Further, according to the two-dimensional code generation method of the present exemplary embodiment, the replacement step S14 includes the arrangement information set in the code data in a range exceeding the number of error corrections in one or more data blocks among the plurality of data blocks. Replace. Therefore, it is possible to make it more difficult to derive the generated two-dimensional code C by using the conventional two-dimensional code reading device. This makes it possible to increase the confidentiality of the target information.

また、本実施形態における二次元コード生成方法によれば、入れ替えステップS14は、配置情報の入れ替えに関する情報を有する配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、配置変換情報を有する特定の端末(例えば二次元コード評価装置2)のみに、二次元コードCの導出を制限することができる。これにより、対象情報の秘匿性を更に高めることが可能となる。 Further, according to the two-dimensional code generation method of the present embodiment, the replacing step S14 replaces the arrangement information set in the plurality of code data by referring to the arrangement conversion information having the information about the arrangement information replacement. Therefore, it is possible to restrict the derivation of the two-dimensional code C only to a specific terminal (for example, the two-dimensional code evaluation device 2) having the arrangement conversion information. This makes it possible to further increase the confidentiality of the target information.

また、本実施形態における二次元コード生成方法によれば、入れ替えステップS14は、形式情報、及び型番情報の少なくとも何れかに基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、従来の二次元コード生成時に用いられる形式情報又は型番情報を利用して、二次元コードCの導出を制限することができる。これにより、対象情報の秘匿性を更に高めることが可能となる。 Further, according to the two-dimensional code generation method in the present embodiment, the replacement step S14 refers to the layout conversion information based on at least one of the format information and the model number information, and sets the layout information set in the plurality of code data. Replace. Therefore, the derivation of the two-dimensional code C can be restricted by using the format information or model number information used in the conventional two-dimensional code generation. This makes it possible to further increase the confidentiality of the target information.

また、本実施形態における二次元コード生成方法によれば、入れ替えステップS14は、特定情報に基づく配置変換情報を参照し、複数の符号データに設定された配置情報を入れ替える。このため、秘匿化する対象情報の内容によって、対象情報に紐づく特定情報の内容を変えることができ、秘匿化の重要度等に応じて二次元コードCの導出を制限することができる。これにより、対象情報における秘匿性の度合いを容易に変更することが可能となる。 Further, according to the two-dimensional code generation method in the present embodiment, the replacement step S14 replaces the layout information set in the plurality of code data with reference to the layout conversion information based on the specific information. Therefore, the content of the specific information associated with the target information can be changed depending on the content of the target information to be concealed, and the derivation of the two-dimensional code C can be restricted according to the importance of the concealment or the like. This makes it possible to easily change the degree of confidentiality of the target information.

また、本実施形態における二次元コード評価方法によれば、導出ステップS22は、配置変換情報を参照し、二次元コードCに対する対象情報を導出する。このため、配置変換情報を用いた二次元コードCの導出を実現することが可能となる。 Further, according to the two-dimensional code evaluation method in the present embodiment, the deriving step S22 refers to the arrangement conversion information and derives the target information for the two-dimensional code C. Therefore, it becomes possible to realize the derivation of the two-dimensional code C using the arrangement conversion information.

本実施形態における二次元コードCによれば、秘匿化する情報の容量制限を抑制することができる二次元コードCを実現することが可能となる。 According to the two-dimensional code C in the present embodiment, it is possible to realize the two-dimensional code C that can suppress the capacity limit of the information to be concealed.

(第2実施形態)
次に、第2実施形態における二次元コードC、二次元コードシステム100、二次元コード生成装置1、二次元コード評価装置2、二次元コード生成方法、及び二次元コード評価方法の一例について説明する。
(Second embodiment)
Next, an example of the two-dimensional code C, the two-dimensional code system 100, the two-dimensional code generation device 1, the two-dimensional code evaluation device 2, the two-dimensional code generation method, and the two-dimensional code evaluation method in the second embodiment will be described. ..

第2実施形態と、第1実施形態との違いは、初期二次元コード生成手段S160(初期二次元コード生成ステップS16)をさらに備える点である。なお、第1実施形態と同様の構成や内容については、説明を省略する。 The difference between the second embodiment and the first embodiment is that an initial two-dimensional code generation means S160 (initial two-dimensional code generation step S16) is further provided. Note that description of the same configuration and contents as those of the first embodiment will be omitted.

本実施形態では、例えば図10に示すように、複数の符号データのそれぞれに対して配置情報を設定(図10(a))したあと、初期二次元コードを生成する(図10(b))。その後、各符号データに対する配置情報を入れ替え、二次元コードCを生成する(図10(c))。このとき、例えば図10(c)に示す矢印のように、二次元コードCに決められた配置情報は入れ替えられずに、配置情報に設定された符号データが入れ替えられる。 In the present embodiment, for example, as shown in FIG. 10, after setting arrangement information for each of a plurality of code data (FIG. 10A), an initial two-dimensional code is generated (FIG. 10B). .. Then, the arrangement information for each code data is exchanged to generate the two-dimensional code C (FIG. 10(c)). At this time, for example, as shown by the arrow in FIG. 10C, the arrangement information set in the two-dimensional code C is not replaced, but the code data set in the arrangement information is replaced.

この場合においても、上述した実施形態と同様に、対象規格に基づく汎用の読取り装置等を用いて、データの導出(デコード)を防止することができる。このため、本実施形態における二次元コードCは、符号化領域全体に対して非可読処理を施した状態で示すことができる。特に、本実施形態における二次元コード生成方法では、例えば他の端末等によって既に初期二次元コードが生成された場合においても、秘匿性の高い二次元コードCを生成することができる。 Also in this case, similarly to the above-described embodiment, it is possible to prevent the derivation (decoding) of data by using a general-purpose reading device or the like based on the target standard. Therefore, the two-dimensional code C in the present embodiment can be shown in a state in which the non-readable processing is applied to the entire coding area. In particular, the two-dimensional code generation method according to the present embodiment can generate a highly confidential two-dimensional code C even when the initial two-dimensional code has already been generated by another terminal or the like.

本実施形態に用いられる配置変換情報は、例えば初期二次元コードにおいて特定の位置に配置された符号データを、他の位置に変更する情報を有する。例えば図11(a)に示す配置変換情報は、配置情報「a」に設定された符号データを配置情報「B」に入れ替え、配置情報「B」に設定された符号データを配置情報「f」に入れ替える情報を示す。これにより、図11(a)に示す矢印のように、各符号データの配置される位置が変更される。 The arrangement conversion information used in this embodiment has information for changing the code data arranged at a specific position in the initial two-dimensional code to another position, for example. For example, in the arrangement conversion information illustrated in FIG. 11A, the code data set in the arrangement information “a” is replaced with the arrangement information “B”, and the code data set in the arrangement information “B” is arranged information “f”. Indicates the information to be replaced with. As a result, the position where each code data is arranged is changed as shown by the arrow in FIG.

また、本実施形態に用いられる配置変換情報は、例えば初期二次元コードにおいて、行毎又は列毎に配置された符号データを、他の行又は列に入れ替える情報を有する。例えば図11(b)に示す配置変換情報は、「x列」の配置情報に設定された符号データを「x+1」列の配置情報に入れ替え、「N列」の配置情報に設定された符号データを「1列」に入れ替える情報を示す。これにより、図11(b)に示す矢印のように、各符号データの配置される位置が変更される。 Further, the arrangement conversion information used in this embodiment has information for replacing the code data arranged in each row or each column in the initial two-dimensional code with another row or column. For example, in the arrangement conversion information shown in FIG. 11B, the code data set in the arrangement information of the “x column” is replaced with the arrangement information of the “x+1” column, and the code data set in the arrangement information of the “N column” is used. Shows the information to replace the "1" with "1". As a result, the position where each code data is arranged is changed as indicated by the arrow in FIG.

また、本実施形態に用いられる配置変換情報は、例えば初期二次元コードにおける符号データの配置された位置を、行又は列に沿って転回する情報を有する。例えば図12では、配置変換情報を参照し、初期2次元コードから10回の転回(R1〜R10)によって符号データに設定された配置情報を入れ替え、二次元コードCの配列に変換される例を示す。図12では、各転回(R1〜R10)において対象とした行又は列を破線枠で示し、転回した度合いを矢印で示し、文字a〜yは配置情報を示す。また、図12では、転回前後における符号データの動きを明確にするため、各符号データに数字(1)〜(25)が付与されている。 Further, the arrangement conversion information used in the present embodiment has information for turning the position where the code data is arranged in the initial two-dimensional code along the row or the column. For example, in FIG. 12, an example in which the arrangement conversion information is referred to and the arrangement information set in the code data is replaced by the initial rotation (R1 to R10) 10 times from the initial two-dimensional code to be converted into the array of the two-dimensional code C Show. In FIG. 12, the target row or column in each turn (R1 to R10) is indicated by a broken line frame, the degree of turn is indicated by an arrow, and the letters a to y indicate arrangement information. Further, in FIG. 12, in order to clarify the movement of the code data before and after the turning, numbers (1) to (25) are given to each code data.

図12に示す配置変換情報は、転回の対象とする行又は列(例えば「row 1, 3, 5」又は「column 1, 3, 5」等)、及び転回する度合い(例えば「shift 3」等)を示す。すなわち、配置変換情報として、配置情報の入れ替えのルールが用いられる。このため、配置情報を入れ替える際、初期二次元コードの形式に関わらず、1つの配置変換情報を用いることができる。また、配置変換情報として用いられる情報(入れ替えのルール)は、配置変換情報を設定するためのテーブルに比べて、データ容量を大幅に削減することができる。これにより、二次元コード生成装置1等における記憶容量の負荷を低減することができる。なお、図12では転回の回数を10回で示しているが、転回の回数は任意である。 The layout conversion information illustrated in FIG. 12 includes rows or columns to be turned (eg, “row 1, 3, 5” or “column 1, 3, 5”, etc.) and a degree of turning (eg, “shift 3”, etc.). ) Is shown. That is, a rule for replacing the arrangement information is used as the arrangement conversion information. Therefore, when replacing the arrangement information, one arrangement conversion information can be used regardless of the format of the initial two-dimensional code. Further, the information used as the layout conversion information (replacement rule) can significantly reduce the data capacity as compared with the table for setting the layout conversion information. As a result, the load on the storage capacity of the two-dimensional code generation device 1 or the like can be reduced. In FIG. 12, the number of turns is shown as 10, but the number of turns is arbitrary.

(第2実施形態:二次元コードシステム100の動作)
次に、図13を参照して、本実施形態における二次元コードシステム100の動作の一例を説明する。図13は、本実施形態における二次元コードシステム100の動作のうち、二次元コードCを生成する動作の一例を示すフローチャートである。なお、本実施形態における二次元コードシステム100の動作のうち、二次元コードCを評価する動作については、上述した実施形態と同様のため説明を省略する。
(Second embodiment: operation of the two-dimensional code system 100)
Next, an example of the operation of the two-dimensional code system 100 according to this embodiment will be described with reference to FIG. FIG. 13 is a flowchart showing an example of the operation of generating the two-dimensional code C among the operations of the two-dimensional code system 100 according to this embodiment. Note that, among the operations of the two-dimensional code system 100 according to this embodiment, the operation of evaluating the two-dimensional code C is the same as that of the above-described embodiment, and thus the description thereof is omitted.

<初期二次元コード生成手段S160>
本実施形態における二次元コードシステム100は、初期二次元コード生成手段S160を更に備える。初期二次元コード生成手段S160では、設定手段S130のあと、例えば二次元コード生成部15は、複数の符号データのそれぞれに設定された配置情報に基づき、初期二次元コードを生成する。二次元コード生成部15は、例えば対象規格に準ずる方法により、初期二次元コードを生成する。
<Initial two-dimensional code generation means S160>
The two-dimensional code system 100 according to this embodiment further includes an initial two-dimensional code generation means S160. In the initial two-dimensional code generation unit S160, after the setting unit S130, for example, the two-dimensional code generation unit 15 generates the initial two-dimensional code based on the arrangement information set for each of the plurality of code data. The two-dimensional code generation unit 15 generates an initial two-dimensional code, for example, by a method according to the target standard.

その後、上述した実施形態と同様に、入れ替え手段S140等を実施し、本実施形態における二次元コードシステム100の動作が終了する。 After that, as in the above-described embodiment, the replacement unit S140 and the like are performed, and the operation of the two-dimensional code system 100 in this embodiment ends.

なお、二次元コード生成手段S150では、例えば初期二次元コードと同様の型番、及び形式の少なくとも何れかに基づき、二次元コードCを生成する。また、二次元コード生成手段S150では、上述したマスク処理手段S151を有してもよい。この場合、上述した実施形態と同様に、二次元コードCを生成する際、符号データによる明暗モジュールの分布を、均一化することができる。また、対象規格に規定される標準のマスク処理とは異なる処理とすることができ、より秘匿性を高めることが可能となる。 The two-dimensional code generation means S150 generates the two-dimensional code C based on at least one of the model number and the format similar to the initial two-dimensional code, for example. Further, the two-dimensional code generation means S150 may include the mask processing means S151 described above. In this case, similarly to the above-described embodiment, when the two-dimensional code C is generated, the distribution of the light and dark modules by the code data can be made uniform. Further, it is possible to perform processing different from the standard mask processing defined in the target standard, and it is possible to further improve the confidentiality.

なお、例えば他の端末9によって生成された初期二次元コードを二次元コード生成装置1が取得し、入れ替え手段S140以降の処理を行ってもよい。この場合、二次元コード生成装置1は、例えば上述した読取り部21を備えることで、初期二次元コードを読取ることができ、例えば公知技術を用いて初期二次元コードからデータブロックを導出したあと、入れ替え手段S140等の処理を行ってもよい。 Note that, for example, the two-dimensional code generation device 1 may acquire the initial two-dimensional code generated by another terminal 9 and perform the processing of the replacement unit S140 and thereafter. In this case, the two-dimensional code generation device 1 can read the initial two-dimensional code by including the above-mentioned reading unit 21, for example, after deriving a data block from the initial two-dimensional code using a known technique, You may perform processing, such as the exchange means S140.

なお、上述した初期二次元コード生成手段S160は、本実施形態における二次元コード生成方法の初期二次元コード生成ステップS16に相当する。初期二次元コード生成手段S160では、例えば上述したマスク処理手段S151と同様のマスク処理を行ってもよい。 The initial two-dimensional code generation means S160 described above corresponds to the initial two-dimensional code generation step S16 of the two-dimensional code generation method in this embodiment. In the initial two-dimensional code generation means S160, for example, the same mask processing as the mask processing means S151 described above may be performed.

本実施形態における二次元コード生成方法によれば、初期二次元コード生成ステップS16は、設定ステップS13のあと、複数の符号データのそれぞれに設定された配置情報に基づき、初期配置情報に対応する初期二次元コードを生成する。このため、例えば他の端末9等によって既に初期二次元コードが生成された場合においても、秘匿性の高い二次元コードを生成することができる。これにより、二次元コードを生成できるデータの条件を拡大させることが可能となる。 According to the two-dimensional code generation method of the present embodiment, the initial two-dimensional code generation step S16 includes, after the setting step S13, the initial two-dimensional code generation step S16 corresponding to the initial arrangement information based on the arrangement information set for each of the plurality of code data. Generate a two-dimensional code. Therefore, for example, even when the initial two-dimensional code has already been generated by another terminal 9 or the like, it is possible to generate a highly confidential two-dimensional code. As a result, it becomes possible to expand the conditions for data that can generate a two-dimensional code.

また、本実施形態における二次元コード生成方法によれば、配置変換情報は、初期二次元コードにおける符号データの配置された位置を、行又は列に沿って転回する情報を有する。このため、配置情報を入れ替える際、初期二次元コードの形式に関わらず1つの配置変換情報を用いることができる。これにより、様々な初期二次元コードの形式に対して、秘匿性を高めた二次元コードCを生成することが容易となる。また、初期二次元コードの形式毎に配置情報を設定する必要がなく、最小限の情報により、秘匿性を高めることが可能となる。 Further, according to the two-dimensional code generation method of the present embodiment, the arrangement conversion information has information for turning the position where the code data is arranged in the initial two-dimensional code along the row or the column. Therefore, when replacing the arrangement information, one arrangement conversion information can be used regardless of the format of the initial two-dimensional code. As a result, it becomes easy to generate the two-dimensional code C with enhanced confidentiality for various initial two-dimensional code formats. Further, it is not necessary to set the placement information for each format of the initial two-dimensional code, and it is possible to enhance the confidentiality with the minimum information.

なお、本実施形態における二次元コードシステム100、二次元コード生成装置1においても、上述した実施形態と同様の効果を得ることができる。 In addition, also in the two-dimensional code system 100 and the two-dimensional code generation device 1 according to the present embodiment, the same effect as that of the above-described embodiment can be obtained.

本発明の実施形態を説明したが、これらの実施形態は例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although the embodiments of the present invention have been described, the embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and modifications thereof are included in the scope and the gist of the invention, and are also included in the invention described in the claims and an equivalent range thereof.

1 :二次元コード生成装置
2 :二次元コード評価装置
3 :サーバ
4 :通信網
9 :端末
10 :筐体
11 :取得部
12 :生成部
13 :設定部
14 :入れ替え部
15 :二次元コード生成部
16 :記憶部
17 :出力部
20 :筐体
21 :読取り部
22 :導出部
23 :記憶部
24 :出力部
100 :二次元コードシステム
101 :CPU
102 :ROM
103 :RAM
104 :保存部
105 :I/F
106 :I/F
107 :I/F
108 :入力機構
109 :出力機構
110 :内部バス
201 :CPU
202 :ROM
203 :RAM
204 :保存部
205 :I/F
206 :I/F
207 :I/F
208 :入力機構
209 :出力機構
210 :内部バス
S110 :取得手段
S120 :生成手段
S130 :設定手段
S140 :入れ替え手段
S150 :二次元コード生成手段
S151 :マスク処理手段
S160 :初期二次元コード生成手段
S210 :読取り手段
S220 :導出手段
C :二次元コード
AP :位置合わせパターン
DP :データコード語配置領域
EP :誤り訂正コード語配置領域
FI :形式情報配置領域
FP :位置検出パターン
SP :分離パターン
TP :タイミングパターン
M :モジュール
QZ :クワイエットゾーン
1: two-dimensional code generation device 2: two-dimensional code evaluation device 3: server 4: communication network 9: terminal 10: housing 11: acquisition unit 12: generation unit 13: setting unit 14: replacement unit 15: two-dimensional code generation Unit 16: storage unit 17: output unit 20: housing 21: reading unit 22: derivation unit 23: storage unit 24: output unit 100: two-dimensional code system 101: CPU
102: ROM
103: RAM
104: Storage unit 105: I/F
106: I/F
107: I/F
108: Input mechanism 109: Output mechanism 110: Internal bus 201: CPU
202: ROM
203: RAM
204: Storage unit 205: I/F
206: I/F
207: I/F
208: Input mechanism 209: Output mechanism 210: Internal bus S110: Acquisition means S120: Generation means S130: Setting means S140: Replacement means S150: Two-dimensional code generation means S151: Mask processing means S160: Initial two-dimensional code generation means S210: Reading means S220: Derivation means C: Two-dimensional code AP: Alignment pattern DP: Data code word arrangement area EP: Error correction code word arrangement area FI: Format information arrangement area FP: Position detection pattern SP: Separation pattern TP: Timing pattern M: Module QZ: Quiet zone

Claims (20)

コード化の対象となる対象情報を取得する取得ステップと、
前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成ステップと、
予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定ステップと、
複数の前記符号データに設定された前記配置情報を入れ替える入れ替えステップと、
前記入れ替えステップにより入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成ステップと、
を備えることを特徴とする二次元コード生成方法。
An acquisition step of acquiring the target information to be coded,
A generation step of generating a data block including a constituent code word based on the content of the target information;
Based on preset initial placement information, for each of the plurality of code data included in the constituent code word, a setting step of setting placement information for placement as an initial two-dimensional code,
An exchanging step of exchanging the arrangement information set in a plurality of the code data,
A two-dimensional code generating step of generating a two-dimensional code based on the arrangement information replaced by the replacing step;
A two-dimensional code generation method comprising:
前記入れ替えステップは、複数の前記データブロックのうち、1以上の前記データブロックにおける誤り訂正数を超える範囲で、前記符号データに設定された前記配置情報を入れ替えること
を特徴とする請求項1記載の二次元コード生成方法。
The replacement step replaces the arrangement information set in the code data within a range exceeding the number of error corrections in one or more of the data blocks among the plurality of data blocks. Two-dimensional code generation method.
前記入れ替えステップは、前記配置情報の入れ替えに関する情報を有する配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えること
を特徴とする請求項2記載の二次元コード生成方法。
The two-dimensional code generation method according to claim 2, wherein the replacing step replaces the arrangement information set in a plurality of the code data with reference to arrangement conversion information having information regarding replacement of the arrangement information. ..
前記入れ替えステップは、前記初期二次元コード生成時に用いられる形式情報、及び型番情報の少なくとも何れかに基づく配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えること
を特徴とする請求項2記載の二次元コード生成方法。
The replacing step replaces the layout information set in a plurality of the code data by referring to layout conversion information based on at least one of format information and model number information used when the initial two-dimensional code is generated. The two-dimensional code generation method according to claim 2.
前記取得ステップは、前記対象情報に紐づく特定情報を取得し、
前記入れ替えステップは、前記特定情報に基づく配置変換情報を参照し、複数の前記符号データに設定された前記配置情報を入れ替えること
を特徴とする請求項2記載の二次元コード生成方法。
The acquisition step acquires specific information associated with the target information,
The two-dimensional code generation method according to claim 2, wherein the replacing step replaces the arrangement information set in a plurality of the code data with reference to the arrangement conversion information based on the specific information.
前記配置変換情報は、前記二次元コードから前記符号データを導出するときにおける前記配置情報の認識順序に関する情報を有すること
を特徴とする請求項3〜5の何れか1項記載の二次元コード生成方法。
The two-dimensional code generation according to any one of claims 3 to 5, wherein the arrangement conversion information has information regarding a recognition order of the arrangement information when the code data is derived from the two-dimensional code. Method.
前記配置変換情報は、1つの前記構成コード語に含まれる複数の前記符号データに設定された前記配置情報を入れ替える情報を有すること
を特徴とする請求項3〜5の何れか1項記載の二次元コード生成方法。
The arrangement conversion information includes information for replacing the arrangement information set in a plurality of the code data included in one constituent code word, The arrangement conversion information according to any one of claims 3 to 5, wherein Dimension code generation method.
前記配置変換情報は、複数の前記構成コード語のうち、第1構成コード語に含まれる前記符号データに設定された第1配置情報を、第2構成コード語に含まれる前記符号データに設定された第2配置情報に入れ替える情報を有すること
を特徴とする請求項3〜5の何れか1項記載の二次元コード生成方法。
In the arrangement conversion information, the first arrangement information set in the code data included in the first constituent code word among the plurality of constituent code words is set in the code data included in the second constituent code word. The two-dimensional code generation method according to any one of claims 3 to 5, further comprising information to be replaced with the second placement information.
前記設定ステップのあと、複数の前記符号データのそれぞれに設定された前記配置情報に基づき、前記初期二次元コードを生成する初期二次元コード生成ステップを更に備えること
を特徴とする請求項3〜5の何れか1項記載の二次元コード生成方法。
After the setting step, an initial two-dimensional code generation step of generating the initial two-dimensional code based on the arrangement information set for each of the plurality of code data is further included. The two-dimensional code generation method according to any one of 1.
前記配置変換情報は、前記初期二次元コードにおいて特定の位置に配置された前記符号データを、他の位置に変更する情報を有すること
を特徴とする請求項9記載の二次元コード生成方法。
10. The two-dimensional code generation method according to claim 9, wherein the arrangement conversion information has information for changing the code data arranged at a specific position in the initial two-dimensional code to another position.
前記配置変換情報は、前記初期二次元コードにおいて、行毎又は列毎に配置された前記符号データを、他の行又は列に変更する情報を有すること
を特徴とする請求項9記載の二次元コード生成方法。
10. The two-dimensional arrangement according to claim 9, wherein the arrangement conversion information has information for changing the code data arranged in each row or column in the initial two-dimensional code to another row or column. Code generation method.
前記配置変換情報は、前記初期二次元コードにおける前記符号データの配置された位置を、行又は列に沿って転回する情報を有すること
を特徴とする請求項9記載の二次元コード生成方法。
10. The two-dimensional code generation method according to claim 9, wherein the arrangement conversion information has information for reversing a position where the code data is arranged in the initial two-dimensional code along a row or a column.
前記二次元コード生成ステップは、予め設定されたマスク情報に基づき、複数の前記符号データのうち少なくとも一部を反転させるマスク処理ステップを有すること
を特徴とする請求項3〜12の何れか1項記載の二次元コード生成方法。
13. The two-dimensional code generation step includes a mask processing step of inverting at least a part of the plurality of code data based on preset mask information. The described two-dimensional code generation method.
前記入れ替えステップは、前記データブロックに含まれる誤り訂正コード語に基づき、入れ替えを行う前記配置情報を特定すること
を特徴とする請求項3〜13の何れか1項記載の二次元コード生成方法。
The two-dimensional code generation method according to any one of claims 3 to 13, wherein the replacing step specifies the arrangement information to be replaced based on an error correction codeword included in the data block.
前記二次元コードの形式は、QRコードの形式であること
を特徴とする請求項3〜14の何れか1項記載の二次元コード生成方法。
The two-dimensional code generation method according to any one of claims 3 to 14, wherein the two-dimensional code format is a QR code format.
請求項3〜15の何れか1項記載の二次元コード生成方法によって生成された前記二次元コードを評価する二次元コード評価方法であって、
前記二次元コードを読取る読取りステップと、
前記配置変換情報を参照し、前記二次元コードに対する前記対象情報を導出する導出ステップと
を備えることを特徴とする二次元コード評価方法。
A two-dimensional code evaluation method for evaluating the two-dimensional code generated by the two-dimensional code generation method according to claim 3.
A reading step of reading the two-dimensional code,
A deriving step of deriving the target information for the two-dimensional code with reference to the arrangement conversion information.
コード化の対象となる対象情報を取得する取得手段と、
前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成手段と、
予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定手段と、
複数の前記符号データに設定された前記配置情報を入れ替える入れ替え手段と、
前記入れ替え手段により入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成手段と、
を備えることを特徴とする二次元コードシステム。
Acquisition means for acquiring the target information to be encoded,
Generating means for generating a data block including a constituent code word based on the content of the target information;
Based on preset initial placement information, setting means for setting placement information for placing as an initial two-dimensional code for each of a plurality of code data included in the constituent code word,
A replacing means for replacing the arrangement information set in a plurality of the code data,
A two-dimensional code generation means for generating a two-dimensional code based on the arrangement information exchanged by the exchange means,
A two-dimensional code system comprising:
前記二次元コードを読取る読取り手段と、
前記二次元コードに対する前記対象情報を導出する導出手段と
をさらに備えること
を特徴とする請求項1記載の二次元コードシステム。
Reading means for reading the two-dimensional code,
The derivation|leading-out means which derives|leads-out the said object information with respect to the said two-dimensional code is provided further, The two-dimensional code system of Claim 17 characterized by these.
コード化の対象となる対象情報を取得する取得部と、
前記対象情報の内容に基づき、構成コード語を含むデータブロックを生成する生成部と、
予め設定された初期配置情報に基づき、前記構成コード語に含まれる複数の符号データのそれぞれに対し、初期二次元コードとして配置するための配置情報を設定する設定部と、
複数の前記符号データに設定された前記配置情報を入れ替える入れ替え部と、
前記入れ替え部により入れ替えられた前記配置情報に基づき、二次元コードを生成する二次元コード生成部と、
を備えることを特徴とする二次元コード生成装置。
An acquisition unit that acquires target information that is the target of encoding,
A generation unit that generates a data block including a constituent code word based on the content of the target information;
Based on preset initial placement information, for each of the plurality of code data included in the constituent code word, a setting unit for setting placement information for placement as an initial two-dimensional code,
A replacement unit that replaces the arrangement information set in the plurality of code data,
A two-dimensional code generation unit that generates a two-dimensional code based on the arrangement information exchanged by the exchange unit,
A two-dimensional code generation device comprising:
請求項19記載の二次元コード生成装置によって生成された前記二次元コードを評価する二次元コード評価装置であって、
前記二次元コードを読取る読取り部と、
前記二次元コードに対する前記対象情報を導出する導出部と
を備えることを特徴とする二次元コード評価装置。
A two-dimensional code evaluation device for evaluating the two-dimensional code generated by the two-dimensional code generation device according to claim 19 .
A reading unit for reading the two-dimensional code,
And a deriving unit that derives the target information for the two-dimensional code.
JP2019204667A 2019-11-12 2019-11-12 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device Active JP6714303B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019204667A JP6714303B1 (en) 2019-11-12 2019-11-12 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device
PCT/JP2020/039376 WO2021095457A1 (en) 2019-11-12 2020-10-20 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, two-dimensional code evaluation device, and two-dimensional code
TW109137582A TW202119289A (en) 2019-11-12 2020-10-29 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, two-dimensional code evaluation device, and two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019204667A JP6714303B1 (en) 2019-11-12 2019-11-12 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device

Publications (2)

Publication Number Publication Date
JP6714303B1 true JP6714303B1 (en) 2020-06-24
JP2021077204A JP2021077204A (en) 2021-05-20

Family

ID=71104033

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019204667A Active JP6714303B1 (en) 2019-11-12 2019-11-12 Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device

Country Status (3)

Country Link
JP (1) JP6714303B1 (en)
TW (1) TW202119289A (en)
WO (1) WO2021095457A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4122629B2 (en) * 1998-09-03 2008-07-23 株式会社デンソー 2D code generation method
JP2006020144A (en) * 2004-07-02 2006-01-19 Ricoh Co Ltd Document processing system
JP4859549B2 (en) * 2005-06-13 2012-01-25 豊 木内 Information management method using management symbol and information management server
JP5310502B2 (en) * 2009-11-23 2013-10-09 株式会社デンソーウェーブ Two-dimensional code, two-dimensional code reader, and two-dimensional code generator
WO2015001637A1 (en) * 2013-07-03 2015-01-08 A・Tコミュニケーションズ株式会社 Authentication server, authentication system, authentication method, and program
EP3065088B1 (en) * 2013-10-30 2021-03-24 NISHIZAKI, Tsutao 2d-code generation method, 2d-code generation device, 2d-code reading method, 2d-code reading device, 2d code, and program
KR20160057038A (en) * 2014-11-12 2016-05-23 삼성에스디에스 주식회사 Apparatus and method for encryption and decryption of qr code

Also Published As

Publication number Publication date
JP2021077204A (en) 2021-05-20
WO2021095457A1 (en) 2021-05-20
TW202119289A (en) 2021-05-16

Similar Documents

Publication Publication Date Title
JP4122629B2 (en) 2D code generation method
CN100517378C (en) Method for encoding and decoding two-dimensional code
US8437013B2 (en) Glyph-looking alphabet for vipp / specialty imaging fonts
US5862270A (en) Clock free two-dimensional barcode and method for printing and reading the same
JP2007501976A (en) Background data channel on paper or other carrier
EP2482231B1 (en) Method for encoding and decoding data on a matrix code symbol
CN109313713B (en) Two-dimensional code, and generation method, generation device, program, reading method, reading device, and management system for two-dimensional code
JP2007241328A (en) Program, information storage medium, two-dimensional code generation system, image generation system and printed matter
CN113887689A (en) Method and system for printing forensic-encoded 2D barcodes
JP2022535764A (en) certified text document
Wakahara et al. Image processing of dotted picture in the QR code of cellular phone
JP6714303B1 (en) Two-dimensional code generation method, two-dimensional code evaluation method, two-dimensional code system, two-dimensional code generation device, and two-dimensional code evaluation device
RU2656734C2 (en) Method of digital information in the form of ultra-compressed nano bar code encoding and decoding (options)
JP5310502B2 (en) Two-dimensional code, two-dimensional code reader, and two-dimensional code generator
JP6099258B2 (en) Optical code and method for generating the optical code
CN112418374B (en) Information code generation method
CN113557529B (en) Mixed two-dimensional bar code reader
JP2007304890A (en) Reading method of two-dimensional code, and electronic document generation device
JP5592234B2 (en) Two-dimensional code generation device, two-dimensional code reading device, two-dimensional code, two-dimensional code generation method, two-dimensional code reading method, and program
Lay et al. Visual QR codes with lossless picture embedding
US10650208B1 (en) Hybrid two-dimensional barcode and hybrid two-dimensional barcode generator
CN117094349B (en) Two-dimensional code graph generation method, device, equipment and medium
KR20010078545A (en) Name card having a bar code symbol and an encoder and a decoder for processing the bar code symbol
JP2007241329A (en) Program, information storage medium, two-dimensional code generation system, image generation system and printed matter
EA002213B1 (en) Method for identifying an image or a document

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191113

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20191113

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20191121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200116

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

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200529

R150 Certificate of patent or registration of utility model

Ref document number: 6714303

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250