JP2018136833A - Method for generating image data of code and code authentication method - Google Patents

Method for generating image data of code and code authentication method Download PDF

Info

Publication number
JP2018136833A
JP2018136833A JP2017032058A JP2017032058A JP2018136833A JP 2018136833 A JP2018136833 A JP 2018136833A JP 2017032058 A JP2017032058 A JP 2017032058A JP 2017032058 A JP2017032058 A JP 2017032058A JP 2018136833 A JP2018136833 A JP 2018136833A
Authority
JP
Japan
Prior art keywords
code
image data
data
image
modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017032058A
Other languages
Japanese (ja)
Other versions
JP6231233B1 (en
Inventor
仁 葛生
Hitoshi Kuzuu
仁 葛生
田中 肇
Hajime Tanaka
肇 田中
巌 尾方
Iwao Ogata
巌 尾方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Micro Technica Co Ltd
Original Assignee
Micro Technica Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Micro Technica Co Ltd filed Critical Micro Technica Co Ltd
Priority to JP2017032058A priority Critical patent/JP6231233B1/en
Application granted granted Critical
Publication of JP6231233B1 publication Critical patent/JP6231233B1/en
Priority to PCT/JP2018/003828 priority patent/WO2018155148A1/en
Priority to TW107106180A priority patent/TW201835816A/en
Publication of JP2018136833A publication Critical patent/JP2018136833A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B42BOOKBINDING; ALBUMS; FILES; SPECIAL PRINTED MATTER
    • B42DBOOKS; BOOK COVERS; LOOSE LEAVES; PRINTED MATTER CHARACTERISED BY IDENTIFICATION OR SECURITY FEATURES; PRINTED MATTER OF SPECIAL FORMAT OR STYLE NOT OTHERWISE PROVIDED FOR; DEVICES FOR USE THEREWITH AND NOT OTHERWISE PROVIDED FOR; MOVABLE-STRIP WRITING OR READING APPARATUS
    • B42D25/00Information-bearing cards or sheet-like structures characterised by identification or security features; Manufacture thereof
    • B42D25/30Identification or security features, e.g. for preventing forgery
    • B42D25/305Associated digital information
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Credit Cards Or The Like (AREA)
  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent code forgery by a method different from a conventional one.SOLUTION: A method for generating image data of codes representing information associated with articles comprises the steps to: generate altered image data representing altered images of articles obtained by altering the images of the articles representing the information by modes which differ one article or one group of articles to another on the basis of the input information; and record the altered image data on a recording medium.SELECTED DRAWING: Figure 2

Description

本願は、物品に付されるコードの偽造を抑制するための技術に関する。   The present application relates to a technique for suppressing forgery of a code attached to an article.

世の中に流通している様々な商品には、例えば商品コード、製造年月日(または消費期限)、ロット番号、または物品固有のシリアル番号などを示すコードが、その商品または包装に印刷されている。これらのコードは、一般に、一次元もしくは二次元のバーコード、人間による読み取りが可能な目視可能文字(ヒューマンリーダブル文字)、またはこれらの組み合わせの形態で印刷される。   Various products in circulation around the world are printed with codes that indicate, for example, product codes, date of manufacture (or expiry date), lot numbers, or product-specific serial numbers. . These codes are generally printed in the form of a one-dimensional or two-dimensional bar code, a human-readable character (human readable character), or a combination thereof.

このようなコードの印刷は、パーソナルコンピュータ(PC)およびプリンタなどの、一般に市販されている装置を用いて行うことができる。印刷されたコードは、例えばスマートフォンなどのカメラを搭載した携帯機器、またはバーコードリーダなどの読み取り装置を用いて読み取ることができる。コードの作成または読み取りのためのアプリケーションソフトウェアも容易に入手することができる。このため、コードは非常に利便性が高く、幅広い目的で使用されている。   Such code printing can be performed using a commercially available apparatus such as a personal computer (PC) and a printer. The printed code can be read using a portable device equipped with a camera such as a smartphone or a reading device such as a barcode reader. Application software for creating or reading codes is also readily available. For this reason, the code is very convenient and is used for a wide range of purposes.

しかし、その一方で、コードの偽造または改変が行われる可能性がある。例えば、正規品ではない商品に、正規品と同じコードが付されて販売されるおそれがある。現在広く利用されている1次元または2次元のバーコードには、偽造を防止する十分な仕組みがない。このため、商品が正規品なのか模造品なのかを消費者が判断することは一般に容易ではない。   However, on the other hand, code may be forged or altered. For example, a product that is not a regular product may be sold with the same code as a regular product. The one-dimensional or two-dimensional barcode currently widely used does not have a sufficient mechanism for preventing forgery. For this reason, it is generally not easy for a consumer to determine whether a product is a genuine product or a counterfeit product.

コードの偽造を困難にする技術として、例えばバーコードとホログラムとを組み合わせて印刷する技術が広く知られている。しかし、ホログラムを利用する技術は、コードの作成および印刷に複雑な工程を要するという課題がある。また、仮にホログラムが偽造された場合に、偽造の有無を消費者が容易に判断することができない。   As a technique for making it difficult to forge a code, for example, a technique for printing by combining a barcode and a hologram is widely known. However, the technique using a hologram has a problem that a complicated process is required for creating and printing a code. In addition, if the hologram is forged, the consumer cannot easily determine the presence or absence of forgery.

特許文献1は、より簡便な方法で、商品に付された二次元バーコードの複製を防止し得る技術を開示している。特許文献1は、二次元バーコードのパターンに、各セルのサイズ以下の微小形状を含む二次パターンを組み合わせたセキュアバーコードを作成する方法を開示している。微小形状は、バーコードスキャナによって検出される程度に大きいが、標準的な(すなわち、解像度が高くない)複製デバイスによって複製される可能性が低いほど十分に小さい。このため、セキュアバーコードは容易に複製できず、偽造される可能性を低減できる旨が特許文献1に開示されている。   Patent Document 1 discloses a technique that can prevent duplication of a two-dimensional barcode attached to a product by a simpler method. Patent Document 1 discloses a method for creating a secure barcode in which a two-dimensional barcode pattern is combined with a secondary pattern including a minute shape not larger than the size of each cell. The micro features are large enough to be detected by a barcode scanner, but small enough that they are unlikely to be replicated by a standard (ie, not high resolution) replication device. For this reason, Patent Document 1 discloses that a secure barcode cannot be easily copied and the possibility of being forged can be reduced.

特開2016−19286号公報Japanese Unexamined Patent Publication No. 2016-19286

本開示は、従来とは異なる方法で、コードの偽造を抑制し得る新規なコード生成方法を提供する。   The present disclosure provides a novel code generation method capable of suppressing code forgery by a method different from the conventional one.

本開示の一態様に係るコード生成方法は、物品に関連付けられた情報を示すコードの画像データを、プロセッサによって生成する方法である。前記方法は、入力された前記情報に基づき、前記情報を示すコードの画像データを、所定のアルゴリズムに従って生成するステップと、前記情報に基づく特定のルールに従い、前記画像データを、物品ごとまたは物品群ごとに異なる態様で改変するステップと、改変後の前記画像データを記録媒体に記録するステップと、を含む。   The code generation method according to an aspect of the present disclosure is a method of generating image data of a code indicating information associated with an article by a processor. The method includes generating image data of a code indicating the information based on the input information according to a predetermined algorithm, and according to a specific rule based on the information, the image data for each article or group of articles. Each of which is modified in a different manner, and the modified image data is recorded on a recording medium.

本開示の他の態様に係る真贋判定方法は、物品に印刷されたコードを撮影して得られる第1の画像データを取得するステップと、前記コード生成方法によって生成された改変後の画像データである第2の画像データ、または前記第2の画像データの改変内容を規定する改変用データを記録媒体から取得するステップと、前記第1の画像データと、前記第2の画像データまたは前記改変用データとに基づいて、前記第1の画像データにおける前記コードが、正規のコードであるか否かを判定するステップと、判定結果を示すデータを出力するステップと、を含む。   An authenticity determination method according to another aspect of the present disclosure includes a step of obtaining first image data obtained by photographing a code printed on an article, and modified image data generated by the code generation method. Obtaining a second image data or modification data defining modification contents of the second image data from a recording medium; the first image data; the second image data or the modification data And determining whether the code in the first image data is a regular code based on the data and outputting data indicating the determination result.

上記の包括的または具体的な態様は、装置、システム、方法、集積回路、コンピュータプログラム、記録媒体、またはこれらの任意の組み合わせによって実現され得る。   The comprehensive or specific aspect described above can be realized by an apparatus, a system, a method, an integrated circuit, a computer program, a recording medium, or any combination thereof.

本開示の一態様によれば、コードの偽造を比較的容易に検出できるため、コードの偽造を抑制し得る。   According to one aspect of the present disclosure, forgery of a code can be detected relatively easily, so that forgery of the code can be suppressed.

図1は、実施形態1におけるコード画像生成装置(サーバコンピュータ30)の概略構成を示すブロック図である。FIG. 1 is a block diagram illustrating a schematic configuration of a code image generation apparatus (server computer 30) according to the first embodiment. 図2は、プロセッサ32によるコード画像の生成処理の基本的な流れを示すフローチャートである。FIG. 2 is a flowchart showing a basic flow of a code image generation process by the processor 32. 図3Aは、図2におけるステップS101において生成されるコード画像の一例を示す図である。FIG. 3A is a diagram illustrating an example of the code image generated in step S101 in FIG. 図3Bは、図2におけるステップS102において改変されたコード画像の一例を示す図である。FIG. 3B is a diagram illustrating an example of the code image modified in step S102 in FIG. 図3Cは、改変後のコード画像の他の例を示す図である。FIG. 3C is a diagram illustrating another example of the code image after modification. 図3Dは、改変後のコード画像のさらに他の例を示す図である。FIG. 3D is a diagram illustrating still another example of the code image after modification. 図3Eは、改変後のコード画像のさらに他の例を示す図である。FIG. 3E is a diagram illustrating still another example of the code image after modification. 図3Fは、改変後のコード画像のさらに他の例を示す図である。FIG. 3F is a diagram illustrating still another example of the code image after modification. 図4Aは、コードのアライメントパターンにおける特定の箇所を白抜きにした例を示している。FIG. 4A shows an example in which a specific portion in the code alignment pattern is outlined. 図4Bは、アライメントパターンの周囲に3つのマーク1(黒いドット)が付加された例を示している。FIG. 4B shows an example in which three marks 1 (black dots) are added around the alignment pattern. 図4Cは、アライメントパターンの周囲に離れて3つのマーク1(黒いドット)が付加された例を示している。FIG. 4C shows an example in which three marks 1 (black dots) are added around the alignment pattern. 図5Aは、コードの領域の周囲にキャラクタマーク2を付加したコード画像の一例を示している。FIG. 5A shows an example of a code image in which the character mark 2 is added around the code area. 図5Bは、コードの領域の周囲にキャラクタマーク2を付加した改変後のコード画像の他の例を示す図である。FIG. 5B is a diagram illustrating another example of the modified code image in which the character mark 2 is added around the code area. 図6Aは、改変される前のコード画像の例を示している。FIG. 6A shows an example of a code image before being modified. 図6Bは、ヒューマンリーダブル文字を、上方向(+Y方向)に0.5mmだけシフトさせる改変例を示している。FIG. 6B shows a modification example in which the human readable character is shifted upward by 0.5 mm in the upward direction (+ Y direction). 図6Cは、ヒューマンリーダブル文字を、左方向(−X方向)に0.5mmだけシフトさせる改変例を示している。FIG. 6C shows a modification example in which the human readable character is shifted by 0.5 mm in the left direction (−X direction). 図6Dは、ヒューマンリーダブル文字を、下方向(−Y方向)に0.5mm、右方向(+X方向)に1mmだけシフトさせる改変例を示している。FIG. 6D shows a modification example in which the human readable character is shifted by 0.5 mm downward (−Y direction) and by 1 mm rightward (+ X direction). 図7Aは、ヒューマンリーダブル文字および点の両方が、基準の位置にある例を示している。FIG. 7A shows an example in which both human readable characters and dots are in the reference position. 図7Bは、それぞれの基準位置から、ヒューマンリーダブル文字が上方向に0.5mmシフトし、点が上方向に5mmシフトした例を示している。FIG. 7B shows an example in which the human readable character is shifted upward by 0.5 mm and the point is shifted upward by 5 mm from each reference position. 図7Cは、それぞれの基準位置から、ヒューマンリーダブル文字が下方向に0.5mm、右方向に0.5mmシフトし、点が上方向に8mm、左方向に5mmシフトした例を示している。FIG. 7C shows an example in which the human readable character is shifted downward by 0.5 mm and rightward by 0.5 mm, and the point is shifted upward by 8 mm and leftward by 5 mm from the respective reference positions. 図7Dは、それぞれの基準位置に対して、ヒューマンリーダブル文字が上方向に0.5mm、右方向に0.5mmシフトし、点が上方向に5mm、左方向に10mmシフトした例を示している。FIG. 7D shows an example in which the human readable character is shifted 0.5 mm upward, 0.5 mm rightward, and the point is shifted 5 mm upward, 10 mm leftward with respect to each reference position. . 図7Eは、それぞれの基準位置に対して、ヒューマンリーダブル文字が下方向に1mm、右方向に0.5mmシフトし、点が下方向に2mm、左方向に5mmシフトした例を示している。FIG. 7E shows an example in which the human readable character is shifted 1 mm downward, 0.5 mm rightward, and the point is shifted 2 mm downward and 5 mm leftward with respect to each reference position. 図8Aは、改変前のコード画像の他の例を示す図である。FIG. 8A is a diagram illustrating another example of the code image before modification. 図8Bは、バーコードが、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。FIG. 8B shows an example in which the barcode is shifted 0.2 mm to the left and 0.2 mm upward from the reference position. 図8Cは、バーコードが、基準の位置から右に0.2mm、下に0.2mmシフトした例を示している。FIG. 8C shows an example in which the barcode is shifted 0.2 mm to the right and 0.2 mm downward from the reference position. 図9Aは、改変前のコード画像の他の例を示す図である。FIG. 9A is a diagram illustrating another example of the code image before modification. 図9Bは、ヒューマンリーダブル文字が、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。FIG. 9B shows an example in which the human readable character is shifted 0.2 mm to the left and 0.2 mm upward from the reference position. 図9Cは、ヒューマンリーダブル文字が、基準の位置から右に0.2mm、下に0.1mmシフトした例を示している。FIG. 9C shows an example in which the human readable character is shifted 0.2 mm to the right and 0.1 mm downward from the reference position. 図10Aは、コード画像を改変する処理(図2におけるステップS102)のより具体的な例を示すフローチャートである。FIG. 10A is a flowchart illustrating a more specific example of the process of modifying the code image (step S102 in FIG. 2). 図10Bは、元情報から改変用データを生成するまでの流れの例を模式的に示す図である。FIG. 10B is a diagram schematically illustrating an example of a flow until generation of modification data from original information. 図10Cは、ハッシュ値と改変用データとの対応関係を規定するテーブルの一例を模式的に示す図である。FIG. 10C is a diagram schematically illustrating an example of a table that defines the correspondence between hash values and modification data. 図10Dは、ハッシュ値と改変用データとの対応関係を規定するテーブルの一例を模式的に示す図である。FIG. 10D is a diagram schematically illustrating an example of a table that defines the correspondence between hash values and modification data. 図10Eは、ハッシュ値と改変用データとの対応関係を規定するテーブルの一例を模式的に示す図である。FIG. 10E is a diagram schematically illustrating an example of a table that defines the correspondence between hash values and modification data. 図11は、真贋判定システムの全体構成の例を模式的に示す図である。FIG. 11 is a diagram schematically illustrating an example of the entire configuration of the authenticity determination system. 図12は、スマートフォン10(読み取り装置)の概略的な構成を示すブロック図である。FIG. 12 is a block diagram illustrating a schematic configuration of the smartphone 10 (reading device). 図13は、真贋判定動作の一例を示すフローチャートである。FIG. 13 is a flowchart illustrating an example of the authenticity determination operation. 図14は、図13におけるステップS13における真贋の判定処理をより具体的に示すフローチャートである。FIG. 14 is a flowchart showing more specifically the authenticity determination process in step S13 in FIG. 図15Aは、撮影されたコードが、正規品のコードと一致すると判定された場合の表示例を示す図である。FIG. 15A is a diagram illustrating a display example when it is determined that the photographed code matches the genuine code. 図15Bは、撮影されたコードが、正規品のコードと一致しないと判定された場合の表示例を示す図である。FIG. 15B is a diagram illustrating a display example when it is determined that the photographed code does not match the genuine code. 図16は、真贋判定システムの他の例を模式的に示す図である。FIG. 16 is a diagram schematically illustrating another example of the authenticity determination system. 図17は、読み取り装置による真贋判定の処理の例を示すフローチャートである。FIG. 17 is a flowchart illustrating an example of authentication determination processing by the reading device.

(概要)
本開示の具体的な実施形態を説明する前に、まず、本開示の技術の概要を説明する。
(Overview)
Before describing specific embodiments of the present disclosure, first, an overview of the technology of the present disclosure will be described.

本開示は、物品に関連付けられた種々の情報を示すコードの画像を、意図的に改変(編集)して記録または印刷する技術に関する。このように意図的に改変された画像が物品またはその包装などに印刷される場合、特定のルールを知らない第三者は、通常の装置とソフトウェアを用いて同じ画像を印刷することができない。このため、偽造の可能性を低減することができる。また、物品に付されたコードの画像が、正規のものか偽造されたものか(真贋)を判定することができる。例えば、スマートフォンなどの読み取り装置によって読み取られたバーコードの画像に基づいて、そのバーコードの真贋を判定するアプリケーションを実現できる。   The present disclosure relates to a technique for intentionally modifying (editing) an image of a code indicating various information associated with an article and recording or printing the image. When such intentionally modified images are printed on an article or its packaging, a third party who does not know the specific rules cannot print the same image using ordinary devices and software. For this reason, the possibility of forgery can be reduced. Further, it is possible to determine whether the image of the code attached to the article is genuine or forged (authenticity). For example, an application for determining the authenticity of a barcode can be realized based on a barcode image read by a reading device such as a smartphone.

本明細書において「コード」とは、物品に関連付けられた情報を示す図形、記号、模様、もしくは文字、またはこれらの任意の組み合わせを意味する。コードは、典型的には、1次元コード(一般的なバーコード)、2次元コード(例えばマトリクスコードまたはスタックコード)、もしくは文字列(数字、アルファベットその他の文字の組み合わせを含む)、またはこれらの組み合わせであり得る。2次元コードは、一般に、2次元バーコードと呼ばれることが多い。このため、本明細書においても、1次元コードだけでなく、2次元コードについても、「バーコード」の用語を用いることがある。コードは、必ずしも1次元または2次元のバーコードを含んでいる必要はない。コードが文字列(例えばヒューマンリーダブル文字)のみによって表現されていてもよい。   In this specification, “code” means a figure, a symbol, a pattern, or a character indicating information associated with an article, or any combination thereof. The code is typically a one-dimensional code (general bar code), a two-dimensional code (eg, a matrix code or a stack code), or a character string (including a combination of numbers, alphabets and other characters), or these It can be a combination. A two-dimensional code is generally often referred to as a two-dimensional barcode. For this reason, also in this specification, the term “bar code” may be used not only for a one-dimensional code but also for a two-dimensional code. The code does not necessarily include a one-dimensional or two-dimensional barcode. The code may be expressed only by a character string (for example, a human readable character).

コードは、物品(例えば製造物などの商品)に関連付けられた様々な情報を表す。そのような情報は、例えば、商品コード、製造年月日、消費期限、ロット番号、もしくは物品固有のシリアル番号、またはこれらの任意の組み合わせであり得る。ここに列挙した情報以外の情報がコードに含まれていてもよい。例えば、ウェブサイトのURLのような情報をコードが表現していてもよい。   The code represents various information associated with an article (for example, a product such as a product). Such information may be, for example, a product code, date of manufacture, expiration date, lot number, or article-specific serial number, or any combination thereof. Information other than the information listed here may be included in the code. For example, a code may express information such as a URL of a website.

コードは、例えば産業機器、民生用機器、医薬品、食品、衣料品、装飾品、生活雑貨等の商品、イベントの入場チケット、またはクーポンなどに付され得る。本明細書においては、コードが付され得るそのような有体物全般を「物品」と称する。   The code may be attached to, for example, industrial equipment, consumer equipment, pharmaceuticals, food, clothing, decorations, daily goods, etc., event entrance tickets, coupons, or the like. In this specification, such tangible objects to which codes can be attached are generally referred to as “articles”.

コードが物品に「付される」とは、そのコードが当該物品またはその包装の表面に印刷されることを意味する。物品に付されたコードは、カメラを搭載したスマートフォンまたはバーコードリーダなどの読み取り装置を用いて読み取ることができる。   “Attaching” a code to an article means that the code is printed on the surface of the article or its packaging. The code attached to the article can be read using a reading device such as a smartphone equipped with a camera or a barcode reader.

本明細書において、「コードの画像データ」とは、当該コードの画像を示すデータを意味する。コードの画像データは、JPEG、PNG、BMPなどの公知の規格に準拠したファイル形式を有する画像データに限定されず、任意の形式のデータであってよい。コードの画像データを、単に「コード画像」と称することがある。   In this specification, “code image data” means data indicating an image of the code. The image data of the code is not limited to image data having a file format conforming to a known standard such as JPEG, PNG, or BMP, and may be data of any format. The code image data may be simply referred to as “code image”.

本明細書において、「改変画像データ」とは、元のコード画像に、偽造防止のための改変がなされた画像を示すデータを意味する。改変画像データも、JPEG、PNG、BMPなどの公知の規格に準拠したファイル形式を有する画像データに限定されず、任意の形式のデータであってよい。例えば、改変画像データは、元の画像データに、偽造防止のための改変の内容を示すデータが付加されたデータまたは信号であってもよい。   In this specification, “modified image data” means data indicating an image in which an original code image has been modified to prevent forgery. The modified image data is not limited to image data having a file format conforming to a known standard such as JPEG, PNG, or BMP, and may be data in any format. For example, the modified image data may be data or a signal in which data indicating the content of modification for preventing forgery is added to the original image data.

本開示の例示的な実施形態によるコード生成方法は、物品(例えば製造物)に関連付けられた情報を示すコードの画像データをプロセッサ(またはコンピュータ)によって生成する方法である。ある実施形態において、前記方法は、(1)入力された情報に基づき、前記情報を示すコードの画像データを、所定のアルゴリズムに従って生成するステップと、(2)前記情報に基づく特定のルールに従い、前記画像データを、物品ごとまたは物品群ごとに異なる態様で改変するステップと、(3)改変後の前記画像データを記録媒体に記録するステップとを含む。この方法は、さらに、(4)改変後の前記画像データを、前記物品またはその包装に印刷するステップを含んでいてもよい。   A code generation method according to an exemplary embodiment of the present disclosure is a method in which image data of a code indicating information associated with an article (eg, a product) is generated by a processor (or computer). In one embodiment, the method includes (1) generating image data of a code indicating the information according to a predetermined algorithm based on input information, and (2) according to a specific rule based on the information. Modifying the image data in a different manner for each article or group of articles, and (3) recording the modified image data on a recording medium. This method may further include the step of (4) printing the modified image data on the article or its packaging.

上記(1)のステップは、例えば一般的な1次元または2次元のバーコードを生成するステップに相当する。プロセッサは、例えば公知のバーコード生成用のプログラムを実行することにより、バーコードを生成することができる。ただしこれに限定されず、「所定のアルゴリズム」は、ヒューマンリーダブル文字のみを含むコードの画像データを生成するアルゴリズムであってもよい。   The step (1) corresponds to a step of generating a general one-dimensional or two-dimensional barcode, for example. The processor can generate a barcode by executing a known barcode generation program, for example. However, the present invention is not limited to this, and the “predetermined algorithm” may be an algorithm that generates image data of a code including only human readable characters.

上記(2)のステップは、上記(1)のステップにおいて生成されたコードの画像データを意図的に改変することにより、コードの偽造を困難にする。このステップでは、例えば商品コードごと、ロット番号ごと、またはシリアル番号ごとに、特定のルールに従って異なる態様で画像データが改変され得る。これにより、物品ごと(例えばシリアル番号ごと)または物品群ごと(例えば商品コードまたはロット番号ごと)に固有の改変画像データが生成される。   The step (2) makes it difficult to forge the code by intentionally modifying the image data of the code generated in the step (1). In this step, the image data can be modified in a different manner according to a specific rule, for example, for each product code, lot number, or serial number. As a result, unique modified image data is generated for each article (for example, for each serial number) or for each group of articles (for example, for each product code or lot number).

上記(3)のステップは、後の(4)の印刷ステップで利用可能にするために、改変後の画像データを、ハードディスクドライブなどの任意の記録媒体に記録するステップである。改変後の画像データは、そのコードが付される物品の情報と関連付けて記録されてもよい。記録されたデータは、真贋判定を行う際に参照され得る。   The step (3) is a step of recording the modified image data on an arbitrary recording medium such as a hard disk drive so that it can be used in the subsequent printing step (4). The modified image data may be recorded in association with the information of the article to which the code is attached. The recorded data can be referred to when authenticating.

上記(4)のステップにおいて、改変後の画像データは、物品またはその包装に印刷される。このステップは、一般的なプリンタまたは印刷機によって実行され得る。   In the step (4), the modified image data is printed on the article or its packaging. This step can be performed by a common printer or printing press.

このように、本開示の実施形態におけるプロセッサは、物品に付されるコードの画像データを、その元情報に基づく特定のルールに従って意図的に改変する。例えば、元情報に基づく特定の暗号化処理によって画像データを改変する。この際、プロセッサは、例えば、改変の内容を規定する改変用データ(「偽造防止コード」とも称する。)を生成し、その改変用データに基づいて、コードの画像データを改変してもよい。   As described above, the processor in the embodiment of the present disclosure intentionally modifies the image data of the code attached to the article according to a specific rule based on the original information. For example, the image data is modified by a specific encryption process based on the original information. At this time, for example, the processor may generate modification data (also referred to as “counterfeit prevention code”) that defines the contents of modification, and modify the image data of the code based on the modification data.

上記(1)のステップにおいて生成される画像データは、通常のコード生成アルゴリズムに従って生成される、偽造防止対策が施されていない画像データである。この画像データは、明示的に生成されなくてもよい。改変画像データを生成する装置は、入力された情報から、通常のコード画像データを生成することなく改変画像データを生成してもよい。   The image data generated in the step (1) is image data that is generated according to a normal code generation algorithm and has not been subjected to counterfeit prevention measures. This image data may not be explicitly generated. The device that generates the modified image data may generate the modified image data from the input information without generating the normal code image data.

後に詳しく説明するように、画像データの改変の態様は様々である。例えば、以下の方法が可能である。
(1)偽造防止コードで示される値に応じて元のコードの印字位置を変化させる。
(2)コードとヒューマンリーダブル文字を併用する場合、それらの相対位置を偽造防止コードに基づいて変化させる。
(3)元のコードの領域の内部の、偽造防止コードによって示される座標に、マーク(例えば、黒または白のマーク)を付加する。
(4)元のコードの領域の周囲に、偽造防止コードによって示される座標に、マーク(例えば、黒または白のマーク)を付加する。
(5)元のコードとは別に、キャラクターマーク(文字列のマーク)を用意し、その座標、角度、フォント、大きさ等を変化させる。
As will be described in detail later, there are various ways of modifying the image data. For example, the following method is possible.
(1) The print position of the original code is changed according to the value indicated by the forgery prevention code.
(2) When a code and a human readable character are used in combination, their relative positions are changed based on the forgery prevention code.
(3) A mark (for example, a black or white mark) is added to the coordinates indicated by the forgery prevention code within the area of the original code.
(4) A mark (for example, a black or white mark) is added to the coordinates indicated by the forgery prevention code around the area of the original code.
(5) A character mark (character string mark) is prepared separately from the original code, and its coordinates, angle, font, size, etc. are changed.

上記(1)〜(5)の方法を任意に組み合わせて適用してもよい。以上の方法により、特定のルールを知らない第三者は全く同じ印刷をすることができない。また、通常の装置とソフトウェアとを用いてマークを偽造することは困難になる。   You may apply combining the method of said (1)-(5) arbitrarily. By the above method, a third party who does not know a specific rule cannot perform exactly the same printing. Further, it becomes difficult to forge the mark using a normal device and software.

さらに、読み取り装置またはサーバコンピュータに真贋の判定機能を持たせ、真贋の判定を行えるようにすることができる。例えば、スマートフォンまたはタブレットコンピュータ等のカメラ付きの情報機器を用いて、商品に印刷されたコードを撮影して得られる画像データに基づいて、そのコードの真贋の判定を行うことができる。真贋の判定は、例えば、判定用のアプリケーションソフトウェアがインストールされた情報機器(読み取り装置)によって実行することができる。あるいは、ネットワーク(例えばインターネット)を介して読み取り装置に接続されたサーバコンピュータが真贋の判定を実行してもよい。サーバコンピュータは、読み取り装置から送信された画像データと、実際に印刷された画像データまたはそのコードの改変内容を規定した改変用データとに基づいて、真贋の判定を行い、読み取り装置に判定結果を返す。このようなシステムにより、ユーザがスマートフォン等の携帯機器を用いて、商品が真正品か模造品かを直ちに知ることができる。   Further, the reader or the server computer can be provided with an authenticity determination function so that authenticity can be determined. For example, the authenticity of the code can be determined based on image data obtained by photographing a code printed on a product using an information device with a camera such as a smartphone or a tablet computer. The determination of authenticity can be executed by, for example, an information device (reading device) in which application software for determination is installed. Alternatively, a server computer connected to the reading device via a network (for example, the Internet) may execute authenticity determination. The server computer makes an authenticity determination based on the image data transmitted from the reading device and the modification data that defines the modification contents of the actually printed image data or its code, and sends the determination result to the reading device. return. With such a system, the user can immediately know whether the product is a genuine product or a counterfeit product using a mobile device such as a smartphone.

なお、真贋の判定機能をもたない通常の読み取り装置では真贋の判定を行うことはできない。しかし、通常の読み取り装置でも、偽造防止コードによる編集が行われたコードを、通常のコードと同様に読み取ることが可能である。このため、従来の利便性は維持される。   Note that it is not possible to determine authenticity with a normal reading device that does not have an authenticity determination function. However, even a normal reading device can read a code that has been edited with a forgery prevention code in the same way as a normal code. For this reason, the conventional convenience is maintained.

バーコードなどの印刷物は、印刷または流通の過程において、汚れまたは欠損などの印刷エラーが発生する可能性がある。このため、機械による読み取りが行われるどのコードシステムにおいても、多少の印刷エラーは許容されるような設計となっている。特に、2次元バーコードシステムでは、コードのエラーがあった場合でも、支障なく読み取りが行えるように、リード・ソロモン符号などによる高度な誤り訂正機能が実装されている。このため、コードの内部または周囲に特定のルールに従い、意図的にマーク等を追加しても、大きな支障なく読み取ることができる。このため、通常のシステムとしての機能を損なうことはない。言い換えれば、本開示の実施形態において行われる改変は、通常の読み取りに支障がない程度の改変である。   A printed matter such as a barcode may cause a printing error such as a stain or a defect in a printing or distribution process. For this reason, any code system that is read by a machine is designed to allow some printing errors. In particular, in a two-dimensional barcode system, an advanced error correction function using a Reed-Solomon code or the like is implemented so that even if there is a code error, it can be read without any trouble. Therefore, even if a mark or the like is intentionally added in accordance with a specific rule in or around the code, it can be read without significant trouble. For this reason, the function as a normal system is not impaired. In other words, the modification performed in the embodiment of the present disclosure is a modification that does not interfere with normal reading.

真贋を判定する装置は、撮影によって取得された画像データを解析することにより、例えばコードの画像に付されたマークが特定のルールに従って意図的に付けられたマークなのか、それ以外の汚れまたは欠損であるのかを識別することができる。   An apparatus for determining authenticity analyzes image data acquired by photographing, for example, whether a mark attached to an image of a code is a mark intentionally attached according to a specific rule, or other dirt or defect. Can be identified.

従来、バーコード等のコードの画像は、如何に綺麗かつ正確に印刷するかが重要であると考えられてきた。敢えてレイアウトを崩したり、コードとは関係のないマークを付加したりするという発想は従来なかった。本開示の実施形態では、例えば個々の物品ごとまたは物品群ごとに意図的にレイアウトを崩したり、マークを付加したりすることにより、真贋の判定をより容易に行うことが可能である。   Conventionally, it has been considered that how beautiful and accurate the image of a code such as a barcode is printed is important. There has never been an idea to dare to break the layout or add marks unrelated to the code. In the embodiment of the present disclosure, it is possible to more easily determine the authenticity by intentionally destroying the layout or adding a mark for each item or group of items.

以下、本開示のより具体的な実施形態を説明する。ただし、必要以上に詳細な説明は省略する場合がある。例えば、既によく知られた事項の詳細説明や実質的に同一の構成に対する重複説明を省略する場合がある。これは、以下の説明が不必要に冗長になるのを避け、当業者の理解を容易にするためである。なお、発明者は、当業者が本開示を十分に理解するために添付図面および以下の説明を提供するのであって、これらによって特許請求の範囲に記載の主題を限定することを意図するものではない。以下の説明において、同一または類似する構成要素については、同じ参照符号を付している。   Hereinafter, more specific embodiments of the present disclosure will be described. However, more detailed explanation than necessary may be omitted. For example, detailed descriptions of already well-known matters and repeated descriptions for substantially the same configuration may be omitted. This is to avoid the following description from becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. The inventor provides the accompanying drawings and the following description in order for those skilled in the art to fully understand the present disclosure, and is not intended to limit the subject matter described in the claims. Absent. In the following description, the same or similar components are denoted by the same reference numerals.

(実施形態)
本実施形態は、商品に印刷するバーコード(例えば2次元のマトリクスコード)の内部または外部に微小なマークまたはキャラクタマーク(文字列)を付加したり、ヒューマンリーダブル文字とバーコードとの相対位置を変えたりすることにより、改変されたコード画像データを生成する装置および方法に関する。本実施形態はまた、印刷されたコードの真贋を判定するシステムおよび方法に関する。
(Embodiment)
In the present embodiment, a minute mark or character mark (character string) is added inside or outside a barcode (for example, a two-dimensional matrix code) printed on a product, or the relative position between a human readable character and a barcode is set. The present invention relates to an apparatus and a method for generating modified code image data by changing them. This embodiment also relates to a system and method for determining the authenticity of a printed code.

<コード画像生成装置>
図1は、本実施形態におけるコード画像生成装置(サーバコンピュータ30)の概略構成を示すブロック図である。サーバコンピュータ30は、商品に付されるマトリクスコードの画像データを生成する装置である。サーバコンピュータ30は、相互に接続されたプロセッサ32と、メモリ34と、通信回路36と、ストレージ38とを備えている。
<Code image generator>
FIG. 1 is a block diagram showing a schematic configuration of a code image generation apparatus (server computer 30) in the present embodiment. The server computer 30 is a device that generates image data of a matrix code attached to a product. The server computer 30 includes a processor 32, a memory 34, a communication circuit 36, and a storage 38 that are connected to each other.

プロセッサ32は、例えばCPU(Central Processing Unit)またはDSP(Digital Signal Processor)などの回路によって実現され得る。プロセッサ32は、メモリ34に格納されたコンピュータプログラムを実行することにより、後述する画像生成処理を行う。   The processor 32 may be realized by a circuit such as a CPU (Central Processing Unit) or a DSP (Digital Signal Processor). The processor 32 executes a computer program stored in the memory 34 to perform image generation processing described later.

メモリ34は、RAM(Random Access Memory)およびROM(Read Only Memory)などの記録媒体を含む。メモリ34は、プロセッサ32によって実行されるプログラム、および処理の過程で生成される様々なデータを格納する。   The memory 34 includes a recording medium such as a RAM (Random Access Memory) and a ROM (Read Only Memory). The memory 34 stores a program executed by the processor 32 and various data generated in the course of processing.

ストレージ38は、例えばハードディスクドライブまたはソリッドステートドライブなどの記録媒体を含む装置である。ストレージ38は、プロセッサ32によって生成されたコードの画像データ等の各種のデータを記録する。なお、プロセッサ32によって生成されたコードの画像データは、サーバコンピュータ30の外部の他のストレージ(記録媒体)に記録されてもよい。そのような他のストレージは、サーバコンピュータ30にネットワーク(通信回線)を介して接続される。   The storage 38 is a device including a recording medium such as a hard disk drive or a solid state drive. The storage 38 records various data such as image data of the code generated by the processor 32. The code image data generated by the processor 32 may be recorded in another storage (recording medium) outside the server computer 30. Such other storage is connected to the server computer 30 via a network (communication line).

通信回路36は、ネットワークを介して他の機器と通信を行う回路である。通信回路36は、有線または無線によって外部の装置に直接的に、またはインターネットもしくはLAN(Local Area Network)などのネットワークを介して接続することができる。通信回路36は、例えばLANを介してプリンタに接続され得る。通信回路36はまた、インターネット等のネットワークを介して、スマートフォンなどの情報機器に接続され得る。   The communication circuit 36 is a circuit that communicates with other devices via a network. The communication circuit 36 can be connected directly to an external device by wire or wirelessly, or via a network such as the Internet or a LAN (Local Area Network). The communication circuit 36 can be connected to a printer, for example, via a LAN. The communication circuit 36 can also be connected to an information device such as a smartphone via a network such as the Internet.

サーバコンピュータ30は、図1に示す構成要素以外にも、例えば電源回路、入出力インタフェース、ディスプレイ等の要素を備え得る。しかし、それらの要素は、本実施形態における動作には直接関係しないため、説明を省略する。   In addition to the components shown in FIG. 1, the server computer 30 may include elements such as a power supply circuit, an input / output interface, and a display. However, since these elements are not directly related to the operation in the present embodiment, description thereof is omitted.

以下、本実施形態におけるプロセッサ32によって実行されるコード画像を生成する処理を説明する。   Hereinafter, a process of generating a code image executed by the processor 32 in the present embodiment will be described.

図2は、プロセッサ32によるコード画像の生成処理の基本的な流れを示すフローチャートである。プロセッサ32は、ある商品のためのコードを生成すべき旨の指令(コード生成指示)を受け取ると、図2に示す動作を実行する。   FIG. 2 is a flowchart showing a basic flow of a code image generation process by the processor 32. When the processor 32 receives a command (code generation instruction) indicating that a code for a certain product should be generated, the processor 32 performs the operation shown in FIG.

ステップS100において、プロセッサ32は、その商品に関する情報(例えば、商品コード、製造年月日、ロット番号、およびシリアル番号等)を取得する。この情報は、例えばコード生成指示とともに、ユーザまたは他の装置から入力され得る。   In step S100, the processor 32 acquires information (for example, a product code, a manufacturing date, a lot number, and a serial number) related to the product. This information may be input from a user or other device, for example, with a code generation instruction.

ステップS101において、プロセッサ32は、取得した情報に基づき、所定のアルゴリズムに従って、コードの画像データを生成する。この画像データは、例えば、公知の2次元コード生成アルゴリズムに従って作成され得る。一例として、2次元コードの一種であるDataMatrix ECC200を使用する場合、ISO/IEC16022:2006の規格に準拠したアルゴリズムを規定したソフトウェアによってコードの画像データを生成できる。他の種類の2次元コードを使用する場合も、そのコードの規格に準拠したアルゴリズムを規定したソフトウェアを用いることにより、コードの画像データを生成できる。そのようなソフトウェアのいくつかは、例えばインターネット上に公開されており、無償で利用できる。なお、2次元コード以外のコード(例えば1次元バーコードまたは文字列のみから構成されるコード)を生成する場合には、プロセッサ32は、そのコードを生成するための所定のアルゴリズムに従い、画像データを生成する。   In step S101, the processor 32 generates code image data according to a predetermined algorithm based on the acquired information. This image data can be created, for example, according to a known two-dimensional code generation algorithm. As an example, when DataMatrix ECC200, which is a kind of two-dimensional code, is used, code image data can be generated by software that defines an algorithm based on the ISO / IEC16022: 2006 standard. Even when other types of two-dimensional codes are used, code image data can be generated by using software that defines an algorithm that complies with the code standards. Some of such software is published on the Internet, for example, and can be used free of charge. When generating a code other than a two-dimensional code (for example, a one-dimensional barcode or a code composed only of a character string), the processor 32 converts image data into a predetermined algorithm for generating the code. Generate.

ステップS102において、プロセッサ32は、コードによって表現される情報に基づく特定のルールに従い、コードの画像データを改変(修正)する。本実施形態では、商品ID、ロット番号、またはシリアル番号ごとに異なる方法で、画像データを改変する。例えば、プロセッサ32は、画像データ内の、シリアル番号等に基づいて決定される位置に、1つまたは複数のマーク(偽造防止マーク)を付加することによって画像データを改変する。この際、プロセッサ32は、マークを付加する位置を示す座標値を示す情報を、改変用データ(偽造防止コード)として作成し、その商品に関連付けてストレージ38(記録媒体)に記録してもよい。   In step S102, the processor 32 modifies (corrects) the image data of the code according to a specific rule based on information expressed by the code. In the present embodiment, the image data is modified by a different method for each product ID, lot number, or serial number. For example, the processor 32 modifies the image data by adding one or more marks (counterfeit prevention marks) to positions determined based on a serial number or the like in the image data. At this time, the processor 32 may create information indicating the coordinate value indicating the position where the mark is added as modification data (counterfeit prevention code) and record the information in the storage 38 (recording medium) in association with the product. .

汚れまたは欠損を考慮し、偽造防止マークは、コード内の離れた位置に複数個配置してもよい。また、複数の重畳方法を併用してもよい。偽造防止マークは、読み取り装置(リーダー)の誤り訂正能力に応じて、読み取り時に負担が大きくならない大きさ、位置に配置される。偽造防止マークは、真贋判定の機能を損なわない範囲で、通常のシンボルマークよりも小さく設定され視認しにくくされる。   In consideration of dirt or defects, a plurality of anti-counterfeit marks may be arranged at distant positions in the code. A plurality of superposition methods may be used in combination. The anti-counterfeit mark is arranged at a size and position that does not increase the burden during reading according to the error correction capability of the reading device (reader). The forgery prevention mark is set to be smaller than a normal symbol mark within a range that does not impair the authenticity determination function and is difficult to visually recognize.

ステップS104において、プロセッサ32は、改変したコードの画像データを商品またはその包装に印刷するように、プリンタに指示する。これにより、特定のルールに基づいて改変されたコードの画像が、商品またはその包装に印刷される。なお、コード画像は、商品に関連付けられた包装以外の物(例えば、看板または広告等)に印刷されてもよい。   In step S104, the processor 32 instructs the printer to print the image data of the modified code on the product or its packaging. Thereby, the image of the code modified based on the specific rule is printed on the product or its packaging. The code image may be printed on an object other than the packaging associated with the product (for example, a signboard or an advertisement).

図3Aから図3Fを参照しながら、本実施形態において作成されるコード画像の例を説明する。   An example of a code image created in this embodiment will be described with reference to FIGS. 3A to 3F.

図3Aは、図2におけるステップS101において生成されるコード画像の一例を示す図である。ここでは、コードとして、2次元バーコードの一種であるDataMatrixコードを用いる例を説明する。なお、DataMatrixコード以外の2次元バーコード、例えば、Quick Response(QR)コード、VeriCode、PDF417コード、Aztecコード、またはMaxiCode等が用いられる場合も、以下に説明する処理と同様の処理が可能である。   FIG. 3A is a diagram illustrating an example of the code image generated in step S101 in FIG. Here, an example will be described in which a DataMatrix code, which is a kind of two-dimensional barcode, is used as the code. Note that the same processing as described below can be performed when a two-dimensional bar code other than the DataMatrix code, for example, Quick Response (QR) code, VeriCode, PDF417 code, Aztec code, or MaxiCode is used. .

2次元バーコードは、一般に、2次元的に配列された複数のデータセル(以下、単に「セル」と称する。)を含む。複数のセルは、同一のサイズの正方形または長方形の形状を有する。複数のセルの一部は、明るい(または白い)セルであり、他の一部は、暗い(または黒い)セルである。明るいセルおよび暗いセルの一方は0(ゼロ)の値を表し、他方は1の値を表す。よって、これらのセルの明暗の2次元パターンは、0および1の数値列で表現される特定の情報を表す。   The two-dimensional barcode generally includes a plurality of data cells (hereinafter simply referred to as “cells”) arranged two-dimensionally. The plurality of cells have a square or rectangular shape of the same size. Some of the plurality of cells are light (or white) cells, and some of the other cells are dark (or black) cells. One of the bright and dark cells represents a value of 0 (zero) and the other represents a value of 1. Therefore, the two-dimensional light and dark two-dimensional pattern of these cells represents specific information represented by 0 and 1 numeric strings.

図3Bは、図2におけるステップS102において改変されたコード画像の一例を示す図である。この例では、コードの領域の内部に、マーク1(黒い点)が付加されている。マーク1が付加される位置(座標)は、コードが示す情報に基づいて決定される。例えば、シリアル番号またはロット番号ごとに一意に決定される位置に、マーク1が付加され得る。   FIG. 3B is a diagram illustrating an example of the code image modified in step S102 in FIG. In this example, a mark 1 (black dot) is added inside the code area. The position (coordinates) to which the mark 1 is added is determined based on information indicated by the code. For example, the mark 1 can be added at a position uniquely determined for each serial number or lot number.

図3Cは、改変後のコード画像の他の例を示す図である。この例では、コードの領域の内部に、2つのマーク1(黒い点および白い点)が付加されている。この例のように、複数のマーク1が付加されてもよい。図示される2次元コードを構成する複数のセルのうち、明るいセルには黒い点が付加され、暗いセルには白い点が付加されている。この場合、改変用データは、2つのマーク1のそれぞれの座標値を示す情報を含む。   FIG. 3C is a diagram illustrating another example of the code image after modification. In this example, two marks 1 (a black dot and a white dot) are added inside the code area. As in this example, a plurality of marks 1 may be added. Among the plurality of cells constituting the two-dimensional code shown in the figure, a black dot is added to a bright cell, and a white dot is added to a dark cell. In this case, the modification data includes information indicating the coordinate values of the two marks 1.

図3Dは、改変後のコード画像のさらに他の例を示す図である。この例では、コードの領域の内部に、3つのマーク1(黒い点および2つの白い点)が付加されている。この場合、改変用データは、3つのマーク1のそれぞれの座標値を示す情報を含む。なお、マーク1の個数は、4個以上であってもよい。マーク1の個数が多いほど、より多くの改変のバリエーションが可能になる。また、マーク1の個数が多いほど、汚れまたは欠陥によって一部のマークが認識できない場合でも、真贋の判定を正しく行える可能性を高くできる。   FIG. 3D is a diagram illustrating still another example of the code image after modification. In this example, three marks 1 (black dots and two white dots) are added inside the code area. In this case, the modification data includes information indicating the coordinate values of the three marks 1. The number of marks 1 may be four or more. The greater the number of marks 1, the more variations of modification are possible. In addition, the greater the number of marks 1, the higher the possibility that correctness can be correctly determined even when some marks cannot be recognized due to dirt or defects.

図3Eは、改変後のコード画像のさらに他の例を示す図である。この例では、マーク1が点ではなく丸印である。このように、付加されるマーク1の形状は点以外の形状であってもよい。   FIG. 3E is a diagram illustrating still another example of the code image after modification. In this example, the mark 1 is not a point but a circle. Thus, the shape of the added mark 1 may be a shape other than a point.

図3Fは、改変後のコード画像のさらに他の例を示す図である。この例では、2つの丸印のマーク1が、コードの領域内に付加されている。2次元コードを構成する複数のセルのうち、明るいセルには黒い丸が付加され、暗いセルには白い丸が付加される。図3Fの例においても、3個以上のマーク1が付加されてもよい。   FIG. 3F is a diagram illustrating still another example of the code image after modification. In this example, two circle marks 1 are added in the code area. Among the plurality of cells constituting the two-dimensional code, a black circle is added to a bright cell, and a white circle is added to a dark cell. Also in the example of FIG. 3F, three or more marks 1 may be added.

マークは、例えば、三角形、四角形、星印その他の記号または文字等であってもよい。複数のマークが付加される場合、マークによって形状が異なっていてもよい。その場合、改変用データは、個々のマークの形状の情報も含み得る。   The mark may be, for example, a triangle, a quadrangle, an asterisk or other symbols or characters. When a plurality of marks are added, the shapes may be different depending on the marks. In that case, the modification data may also include information on the shape of each mark.

以上の例では、コードの内部にマーク1が付加されているが、コードの外部または外部との境界部分に1つ以上のマーク1が付加されてもよい。図4Aから図4Cは、そのような例を示している。   In the above example, the mark 1 is added to the inside of the code. However, one or more marks 1 may be added to the outside of the code or a boundary portion with the outside. 4A to 4C show such an example.

図4Aは、コードのアライメントパターン(コードの外周部のL字状の太い線)における特定の箇所を白抜きにした例を示している。この例ではアライメントパターン上の3箇所に白いマーク1が付加されている。このように、アライメントパターンに1つ以上のマーク1を付加してもよい。   FIG. 4A shows an example in which a specific portion in the code alignment pattern (L-shaped thick line on the outer peripheral portion of the code) is outlined. In this example, white marks 1 are added to three positions on the alignment pattern. In this way, one or more marks 1 may be added to the alignment pattern.

図4Bは、アライメントパターンの周囲に3つのマーク1(黒いドット)が付加された例を示している。これらのマーク1は、アライメントパターンに隣接している。図4Cは、アライメントパターンの周囲に離れて3つのマーク1(黒いドット)が付加された例を示している。これらの例のように、マーク1の印字位置は、コードの領域の外側であってもよい。   FIG. 4B shows an example in which three marks 1 (black dots) are added around the alignment pattern. These marks 1 are adjacent to the alignment pattern. FIG. 4C shows an example in which three marks 1 (black dots) are added around the alignment pattern. As in these examples, the printing position of the mark 1 may be outside the code area.

以上の例において、コード画像の改変内容を規定するパラメータ(改変用データの要素)は、マークの個数、各マークの形状、各マークの画像内の座標値(X座標およびY座標)であり得る。プロセッサ32は、コードが示す情報に含まれるシリアル番号またはロット番号などの情報に基づいて、これらのパラメータを、特定のルールに従って決定する。そして、決定したパラメータに従い、1つ以上のマーク1をコードに重畳する。これにより、例えば商品のシリアル番号ごとまたはロット番号ごとに異なる態様で、コードを印刷することができる。   In the above example, the parameters (modification data elements) that define the modification contents of the code image can be the number of marks, the shape of each mark, and the coordinate values (X coordinate and Y coordinate) in the image of each mark. . The processor 32 determines these parameters according to a specific rule based on information such as a serial number or lot number included in the information indicated by the code. Then, according to the determined parameters, one or more marks 1 are superimposed on the code. Thereby, for example, the code can be printed in a different manner for each serial number or lot number of the product.

以上の例では、付加されるマーク1は、いずれも、コードに含まれる個々のセルの大きさよりも小さい。また、明るいセルおよび暗いセルのそれぞれの個数に比べて、遥かに少数(例えば1/10未満)のマーク1が付加されている。このため、マーク1を付与した後もコードの読み取りに支障をきたすことはない。   In the above example, each of the marks 1 to be added is smaller than the size of each cell included in the code. Further, the number of marks 1 is much smaller (for example, less than 1/10) compared to the number of bright cells and dark cells. For this reason, even after the mark 1 is given, the reading of the code is not hindered.

2次元バーコードにおけるセル(データセルとも称する。)の個数をNとし、付加されるマークの個数をnとする。Nは、コードの種類によって異なるが、例えば20以上の整数であり得る。マークの個数nは、1以上N以下の整数であり、ある例では、2≦n≦N/10である。n個のマークが付される場合、コードの改変内容を規定する改変用データは、画像データ内のn個の座標値を示す情報を含む。プロセッサは、コードが示す情報に基づいてn個の座標値を決定し、そのn個の座標値が示す位置に、n個のマークを付加する。n個の座標値の組み合わせは、当該コードが示す情報(以下、「元情報」と称することがある。)によって異なる。これらのマークの座標の組み合わせは、例えば元情報と一対一に対応する。これらのマークの座標の組み合わせと、コードから読み取った元情報とが整合するかを判定することにより、コードの真贋を判定できる。   Let N be the number of cells (also referred to as data cells) in the two-dimensional barcode, and n be the number of marks to be added. N varies depending on the type of code, but may be an integer of 20 or more, for example. The number n of marks is an integer of 1 to N, and in one example, 2 ≦ n ≦ N / 10. When n marks are attached, the modification data that defines the modification contents of the code includes information indicating n coordinate values in the image data. The processor determines n coordinate values based on the information indicated by the code, and adds n marks to the position indicated by the n coordinate values. The combination of n coordinate values differs depending on the information indicated by the code (hereinafter, sometimes referred to as “original information”). The combination of the coordinates of these marks corresponds to the original information on a one-to-one basis, for example. The authenticity of the code can be determined by determining whether the combination of the coordinates of these marks matches the original information read from the code.

以上の例の他、2次元コードの領域の周囲に文字列を含むキャラクタマークを付加する改変も可能である。キャラクタマークの位置、角度、フォント(サイズ、書体、文字間隔を含む)、および文字列の内容の少なくとも1つを、物品ごとまたは物品群ごとに異なるようにすることにより、同様の偽造防止効果を得ることができる。   In addition to the above example, a modification in which a character mark including a character string is added around the area of the two-dimensional code is also possible. By making at least one of the character mark position, angle, font (including size, typeface, character spacing), and character string content different for each article or group of articles, the same forgery prevention effect can be obtained. Can be obtained.

図5Aは、コードの領域の周囲にキャラクタマーク2を付加したコード画像の一例を示している。この例では、数字、アルファベット、および記号からなる文字列が、コードの周辺上部に付加されている。図5Bは、コードの領域の周囲にキャラクタマーク2を付加した改変後のコード画像の他の例を示す図である。この例では、キャラクタマーク2は、図5Aに示す例と比較して、その内容、位置、および大きさが異なり、かつ、時計回りに傾いている。このように、プロセッサ32は、コードが表す情報に応じて、キャラクタマーク2の位置(座標)、回転角度、フォント等を変化させてもよい。この場合、改変の内容を規定するパラメータ(改変用データ)は、文字列の内容、位置(座標)、フォントの情報を含む。これらのパラメータは、例えばコードが示すシリアル番号またはロット番号ごとに一意に決定され得る。   FIG. 5A shows an example of a code image in which the character mark 2 is added around the code area. In this example, a character string made up of numbers, alphabets, and symbols is added to the upper part of the periphery of the code. FIG. 5B is a diagram illustrating another example of the modified code image in which the character mark 2 is added around the code area. In this example, the character mark 2 is different in content, position, and size as compared with the example shown in FIG. 5A and is tilted clockwise. As described above, the processor 32 may change the position (coordinates), rotation angle, font, and the like of the character mark 2 in accordance with the information represented by the code. In this case, the parameters (modification data) that define the content of the modification include the contents of the character string, position (coordinates), and font information. These parameters can be uniquely determined, for example, for each serial number or lot number indicated by the code.

上記の例の他、図3Aから図3F、図4Aから4C、および図5Aおよび図5Bに示す改変方法を組み合わせてもよい。例えば、2次元コードの内部、アライメントパターン上、および外部の少なくとも一部に1つ以上のマーク1を付加し、かつ、2次元コードの外部に1つ以上のキャラクタマーク2を付加してもよい。そのような形態では、改変用データは、各マーク1の形状、座標、サイズ、および各キャラクタマーク2の内容、座標、回転角度、フォント等の情報を含み得る。プロセッサ32は、それらのデータを、そのコードまたは物品に関連付けて記録媒体に記録する。これらの情報は、後述する真贋判定処理に用いられ得る。   In addition to the above example, the modification methods shown in FIGS. 3A to 3F, FIGS. 4A to 4C, and FIGS. 5A and 5B may be combined. For example, one or more marks 1 may be added to at least part of the inside, alignment pattern, and outside of the two-dimensional code, and one or more character marks 2 may be added to the outside of the two-dimensional code. . In such a form, the modification data may include information such as the shape, coordinates, and size of each mark 1 and the contents, coordinates, rotation angle, font, and the like of each character mark 2. The processor 32 records these data on a recording medium in association with the code or the article. These pieces of information can be used for authenticity determination processing described later.

次に、図6Aから図6Dを参照しながら、マークを付加する方法とは異なる方法で、コードの画像データを改変する例を説明する。以下の例では、コードは、2次元のバーコードに加えて、ヒューマンリーダブル文字を含んでいる。プロセッサ32は、バーコードまたはヒューマンリーダブル文字の、画像データ内における位置を変化させることにより、画像データを改変する。この動作により、バーコードとヒューマンリーダブル文字との相対位置が変化する。この変化の方向および大きさは、バーコードが示す情報に応じて決定される。この例においては、改変用データは、バーコードおよびヒューマンリーダブル文字の少なくとも一方の、画像データ内の基準位置からの変位量を示す情報を含む。   Next, an example in which the code image data is modified by a method different from the method of adding a mark will be described with reference to FIGS. 6A to 6D. In the following example, the code includes human readable characters in addition to a two-dimensional barcode. The processor 32 modifies the image data by changing the position of the barcode or human readable character in the image data. By this operation, the relative position between the barcode and the human readable character changes. The direction and magnitude of this change are determined according to information indicated by the barcode. In this example, the modification data includes information indicating the amount of displacement of at least one of the barcode and the human readable character from the reference position in the image data.

図6Aは、改変される前のコード画像の例を示している。この例では、2次元のバーコードの横に、4行の文字列から構成されるヒューマンリーダブル文字が印字される。このヒューマンリーダブル文字は、上から順に、(01)商品コード、(21)シリアル番号、(10)ロット番号、(17)有効期限 を表している。これは、2次元のバーコードが示す情報と同じである。ヒューマンリーダブル文字の表示態様は様々であり、図示される態様に限定されない。   FIG. 6A shows an example of a code image before being modified. In this example, a human readable character composed of a four-line character string is printed next to a two-dimensional barcode. These human readable characters represent (01) product code, (21) serial number, (10) lot number, and (17) expiration date in order from the top. This is the same as the information indicated by the two-dimensional barcode. The display mode of human readable characters is various, and is not limited to the illustrated mode.

図6Aに示すレイアウトを基本として、プロセッサ32は、バーコードとヒューマンリーダブル文字との相対的な位置関係を、バーコードが示す情報に応じて変化させる。例えば、シリアル番号ごと、またはロット番号ごとに異なる態様で、ヒューマンリーダブル文字の印字位置を変化させる。   Based on the layout shown in FIG. 6A, the processor 32 changes the relative positional relationship between the barcode and the human readable character in accordance with the information indicated by the barcode. For example, the print position of the human readable character is changed in a different manner for each serial number or for each lot number.

図6Bは、ヒューマンリーダブル文字を、上方向(+Y方向)に0.5mmだけシフトさせる改変例を示している。図6Cは、ヒューマンリーダブル文字を、左方向(−X方向)に0.5mmだけシフトさせる改変例を示している。図6Dは、ヒューマンリーダブル文字を、下方向(−Y方向)に0.5mm、右方向(+X方向)に1mmだけシフトさせる改変例を示している。図6Bから図6Dにおける「目視可能文字:Y+0.5mm」等の記載は、説明の便宜のために示されており、実際には印字されない。以降の図でも同様である。図6Bから図6Dにおける横長の長方形の枠は、実際に印刷されてもよいし印刷されなくてもよい。   FIG. 6B shows a modification example in which the human readable character is shifted upward by 0.5 mm in the upward direction (+ Y direction). FIG. 6C shows a modification example in which the human readable character is shifted by 0.5 mm in the left direction (−X direction). FIG. 6D shows a modification example in which the human readable character is shifted by 0.5 mm downward (−Y direction) and by 1 mm rightward (+ X direction). The descriptions such as “visible characters: Y + 0.5 mm” in FIGS. 6B to 6D are shown for convenience of explanation, and are not actually printed. The same applies to the subsequent drawings. The horizontally long rectangular frame in FIGS. 6B to 6D may be actually printed or may not be printed.

これらの例に示すように、バーコードとヒューマンリーダブル文字との相対位置を、バーコードが示す情報に基づく特定のルールに従って変化させることにより、真贋の判定が可能となる。この場合、改変用データは、X方向およびY方向のそれぞれの、基準位置からの変位量の情報を含む。プロセッサ32は、特定のルールに従って、各方向における変位量を決定する。   As shown in these examples, authenticity can be determined by changing the relative position of a barcode and a human readable character according to a specific rule based on information indicated by the barcode. In this case, the modification data includes information on the amount of displacement from the reference position in each of the X direction and the Y direction. The processor 32 determines the amount of displacement in each direction according to a specific rule.

ヒューマンリーダブル文字の代わりに、バーコードの位置を同様の方法でシフトさせてもよい。また、バーコードおよびヒューマンリーダブル文字の両方を、それぞれの基準位置からシフトさせてもよい。後者の例では、改変用データ(偽造防止コード)のパラメータ数が多くなるため、より多様な改変が可能となる。   Instead of human readable characters, the barcode position may be shifted in a similar manner. Further, both the barcode and the human readable character may be shifted from the respective reference positions. In the latter example, since the number of parameters of the modification data (counterfeit prevention code) is increased, more various modifications are possible.

プロセッサ32は、バーコードとヒューマンリーダブル文字との相対位置を変化させることに加えて、先の例のように、バーコードの内部または外部にマーク(例えば、記号、図形、文字、または文字列)を付加してもよい。以下、そのような例を説明する。   In addition to changing the relative position of the barcode and the human readable character, the processor 32 marks (eg, a symbol, figure, character, or character string) inside or outside the barcode as in the previous example. May be added. Such an example will be described below.

図7Aから図7Eは、ヒューマンリーダブル文字の印字位置を、バーコードが示す情報に応じて変更するとともに、バーコードの周囲にマーク(この例では点)を付加する形態のいくつかの例を示している。図7Aは、ヒューマンリーダブル文字および点の両方が、基準の位置にある例を示している。図7Bは、それぞれの基準位置から、ヒューマンリーダブル文字が上方向に0.5mmシフトし、点が上方向に5mmシフトした例を示している。図7Cは、それぞれの基準位置から、ヒューマンリーダブル文字が下方向に0.5mm、右方向に0.5mmシフトし、点が上方向に8mm、左方向に5mmシフトした例を示している。図7Dは、それぞれの基準位置に対して、ヒューマンリーダブル文字が上方向に0.5mm、右方向に0.5mmシフトし、点が上方向に5mm、左方向に10mmシフトした例を示している。図7Eは、それぞれの基準位置に対して、ヒューマンリーダブル文字が下方向に1mm、右方向に0.5mmシフトし、点が下方向に2mm、左方向に5mmシフトした例を示している。   7A to 7E show some examples of forms in which the print position of the human readable character is changed according to the information indicated by the barcode and a mark (a dot in this example) is added around the barcode. ing. FIG. 7A shows an example in which both human readable characters and dots are in the reference position. FIG. 7B shows an example in which the human readable character is shifted upward by 0.5 mm and the point is shifted upward by 5 mm from each reference position. FIG. 7C shows an example in which the human readable character is shifted downward by 0.5 mm and rightward by 0.5 mm, and the point is shifted upward by 8 mm and leftward by 5 mm from the respective reference positions. FIG. 7D shows an example in which the human readable character is shifted 0.5 mm upward, 0.5 mm rightward, and the point is shifted 5 mm upward, 10 mm leftward with respect to each reference position. . FIG. 7E shows an example in which the human readable character is shifted 1 mm downward, 0.5 mm rightward, and the point is shifted 2 mm downward and 5 mm leftward with respect to each reference position.

これらの例のように、コードとヒューマンリーダブル文字との相対位置、および点(マーク)の位置を、バーコードが示す情報に応じて変化させることにより、さらに多彩な改変のバリエーションが可能となる。これらの例において、マークの数は単数でも複数でもよい。一部のマークが汚れまたは欠陥によって認識できなくなった場合でも真贋の判定を正しく行える可能性を高くするために、マークの数を多く(例えば3個以上に)してもよい。   As in these examples, by changing the relative position between the code and the human readable character and the position of the point (mark) according to the information indicated by the bar code, various variations of modification are possible. In these examples, the number of marks may be singular or plural. The number of marks may be increased (for example, 3 or more) in order to increase the possibility that correctness can be correctly determined even when some marks cannot be recognized due to dirt or defects.

図8Aから図8Cは、本実施形態の他の例を示す図である。これらの例では、コードは2次元のバーコードのみを含んでいる。プロセッサ32は、バーコードの印字位置を、そのバーコードが示す情報に基づく特定の規則に従って変化させる。図8Aは、改変前のコード画像を示している。この例におけるコード画像は、バーコードの領域を囲む矩形の枠を含んでいる。プロセッサ32は、この枠と、バーコードの領域との相対的な位置関係を、バーコードが示す情報に応じて変化させる。図8Bは、バーコードが、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。図8Cは、バーコードが、基準の位置から右に0.2mm、下に0.2mmシフトした例を示している。これらの例では、改変用データは、バーコードの、画像データ内の基準位置からの、X方向およびY方向のそれぞれにおける変位量を示す情報を含む。プロセッサ32は、改変用データに基づいて、バーコードの、画像データ内における位置を変化させることにより、画像データを改変する。   8A to 8C are diagrams illustrating another example of the present embodiment. In these examples, the code includes only a two-dimensional barcode. The processor 32 changes the printing position of the barcode according to a specific rule based on information indicated by the barcode. FIG. 8A shows a code image before modification. The code image in this example includes a rectangular frame surrounding the barcode area. The processor 32 changes the relative positional relationship between this frame and the barcode area according to the information indicated by the barcode. FIG. 8B shows an example in which the barcode is shifted 0.2 mm to the left and 0.2 mm upward from the reference position. FIG. 8C shows an example in which the barcode is shifted 0.2 mm to the right and 0.2 mm downward from the reference position. In these examples, the modification data includes information indicating the amount of displacement of each barcode in the X direction and the Y direction from the reference position in the image data. The processor 32 modifies the image data by changing the position of the barcode in the image data based on the modification data.

以上の各例では、2次元のバーコード(マトリクスコード)が物品に付される場合を主に想定した。しかし、本開示はそのような例に限定されない。本実施形態における技術は、コードが1次元コードもしくは文字列によるコード、またはこれらの組み合わせである場合にも同様に適用できる。   In each of the above examples, a case where a two-dimensional barcode (matrix code) is attached to an article is mainly assumed. However, the present disclosure is not limited to such examples. The technique in the present embodiment can be similarly applied when the code is a one-dimensional code or a character string code, or a combination thereof.

図9Aから図9Cは、本実施形態の他の例を示す図である。これらの例では、コードはバーコードを含まず、ヒューマンリーダブル文字のみを含んでいる。プロセッサ32は、ヒューマンリーダブル文字の印字位置を、そのヒューマンリーダブル文字が示す情報に基づく特定の規則に従って変化させる。図9Aは、改変前のコード画像を示している。この例におけるコード画像は、ヒューマンリーダブル文字の領域を囲む矩形の枠を含んでいる。プロセッサ32は、この枠と、ヒューマンリーダブル文字の領域との相対的な位置関係を、ヒューマンリーダブル文字が示す情報に応じて変化させる。図9Bは、ヒューマンリーダブル文字が、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。図9Cは、ヒューマンリーダブル文字が、基準の位置から右に0.2mm、下に0.1mmシフトした例を示している。これらの例では、改変用データは、ヒューマンリーダブル文字の、画像データ内の基準位置からの、X方向およびY方向のそれぞれにおける変位量を示す情報を含む。プロセッサ32は、改変用データに基づいて、ヒューマンリーダブル文字の、画像データ内における位置を変化させることにより、画像データを改変する。   9A to 9C are diagrams illustrating other examples of the present embodiment. In these examples, the code does not include a bar code and includes only human readable characters. The processor 32 changes the print position of the human readable character according to a specific rule based on information indicated by the human readable character. FIG. 9A shows a code image before modification. The code image in this example includes a rectangular frame surrounding a human readable character region. The processor 32 changes the relative positional relationship between this frame and the area of the human readable character according to information indicated by the human readable character. FIG. 9B shows an example in which the human readable character is shifted 0.2 mm to the left and 0.2 mm upward from the reference position. FIG. 9C shows an example in which the human readable character is shifted 0.2 mm to the right and 0.1 mm downward from the reference position. In these examples, the modification data includes information indicating a displacement amount of the human readable character in the X direction and the Y direction from the reference position in the image data. The processor 32 modifies the image data by changing the position of the human readable character in the image data based on the modification data.

以上の例において、コード(バーコードまたはヒューマンリーダブル文字)の位置の変化に代えて、または加えて、コードの回転角度を変化させてもよい。ヒューマンリーダブル文字が印字される形態では、ヒューマンリーダブル文字のフォント(大きさ、書体、文字間隔等)を、物品ごとまたは物品群ごとに変化させてもよい。そのような方法を組み合せることにより、より多様な改変のバリエーションが可能になる。   In the above example, the rotation angle of the code may be changed instead of or in addition to the change of the position of the code (bar code or human readable character). In a form in which human readable characters are printed, the font (size, typeface, character spacing, etc.) of the human readable characters may be changed for each article or group of articles. By combining such methods, more various variations of modification are possible.

以上のような方法で作成されたコードの画像データは、一般の2次元バーコードの読み取り手順に従って読み取ることができる。この際、付加された偽造防止マーク等は、汚れまたは欠損とみなされ、誤り補正が行われる。このため、偽造防止のための改変がなされていないバーコードと同様に正常に読み取りが行われる。したがって、従来のシステムでの運用が損なわれることはない。   The image data of the code created by the above method can be read in accordance with a general two-dimensional barcode reading procedure. At this time, the added anti-counterfeit mark or the like is regarded as dirty or missing, and error correction is performed. For this reason, the barcode is normally read in the same manner as a bar code that has not been modified to prevent forgery. Therefore, the operation in the conventional system is not impaired.

次に、特定のルールに従ってコード画像を改変する処理をより具体的に説明する。   Next, the process of modifying the code image according to a specific rule will be described more specifically.

図10Aは、コード画像を改変する処理(図2におけるステップS102)のより具体的な例を示すフローチャートである。ここでは一例として、コードの領域の内部または外部に1つまたは複数のドットマークが付加される例を説明する。   FIG. 10A is a flowchart illustrating a more specific example of the process of modifying the code image (step S102 in FIG. 2). Here, as an example, an example will be described in which one or a plurality of dot marks are added inside or outside the code area.

この例では、プロセッサ32は、図2におけるステップS101において生成したコードのデータ(元情報)から、そのデータを代表する数値、すなわちハッシュ値を決定する(ステップS220)。ハッシュ値は、元情報の内容を端的に表す値であり、一般的に元情報よりも小さい情報量を有する。プロセッサ32は、元情報からハッシュ値を得るためのハッシュ関数(例えば暗号学的ハッシュ関数)を用いて、ハッシュ値を計算する。偽造を防止するという本実施形態の目的を考慮すると、ハッシュ関数は元のコードから推定されにくいハッシュ値を生成するように設計されることが好ましい。   In this example, the processor 32 determines a numerical value representing the data, that is, a hash value from the code data (original information) generated in step S101 in FIG. 2 (step S220). The hash value is a value that directly represents the content of the original information, and generally has a smaller amount of information than the original information. The processor 32 calculates a hash value using a hash function (for example, a cryptographic hash function) for obtaining a hash value from the original information. Considering the purpose of this embodiment of preventing forgery, the hash function is preferably designed to generate a hash value that is difficult to estimate from the original code.

次に、プロセッサ32は、計算したハッシュ値から印刷情報(改変用データ)への変換を行う。プロセッサ32は、予め用意されたコード表(ルックアップテーブル)を参照して、改変用データ(この例では各ドットマークの座標値)を決定する(ステップS221)。テーブルは、例えば以下の条件を満たすように作成され得る。
・ドットマークの数が所定の数または所定の範囲内の数である。例えば、3個、4個、4個以下など、目立たない数のドットマークが付加される。
・ドットマークの密度が所定の値以下である。すなわち、隣接する位置に複数のドットマークを付加することは避け、目立ちにくくする。例えば、5×5セルの領域内には1つのマークのみが付加されるようにする。
・コードの内部にドットマークを配置する場合、元のコードの読み取りの負担を小さくする。すなわち、偽造防止機能のない一般のリーダーでの読み取りを阻害しない。
・ドットパターン間のハミング距離が一定以上である。つまり類似した配置は避ける。これにより、ドットマークの一部が欠落した場合でも、修復できる仕組みを作れる。
Next, the processor 32 converts the calculated hash value into print information (modification data). The processor 32 refers to a code table (lookup table) prepared in advance and determines modification data (in this example, the coordinate value of each dot mark) (step S221). The table can be created so as to satisfy the following conditions, for example.
The number of dot marks is a predetermined number or a number within a predetermined range. For example, an inconspicuous number of dot marks such as 3, 4, 4 or less are added.
-The density of dot marks is below a predetermined value. In other words, adding a plurality of dot marks to adjacent positions is avoided, making them less noticeable. For example, only one mark is added in a 5 × 5 cell area.
-When placing dot marks inside the code, reduce the burden of reading the original code. That is, reading by a general reader having no forgery prevention function is not hindered.
-The Hamming distance between dot patterns is more than a certain value. That is, avoid similar arrangements. Thereby, even if a part of the dot mark is missing, a mechanism that can repair it can be created.

以上のような条件を満たすテーブルは、予め作成され、メモリ等の記録媒体に保存される。プロセッサ32は、テーブルを参照し、ハッシュ値から各ドットの位置(座標)を決定する。プロセッサ32は、決定した座標にドットマークを配置することにより、改変したコード画像を生成する(ステップS222)。   A table that satisfies the above conditions is created in advance and stored in a recording medium such as a memory. The processor 32 refers to the table and determines the position (coordinate) of each dot from the hash value. The processor 32 generates a modified code image by placing dot marks at the determined coordinates (step S222).

図10Bは、元情報から改変用データを生成するまでの流れを模式的に示す図である。前述のように、プロセッサ32は、ハッシュ関数を用いて、比較的情報量の多い元情報から、より情報量の少ないハッシュ値を算出する。次に、コード表(テーブル)を参照して、ハッシュ値から改変用データ(例えば座標値の組み合わせ)を決定する。そして、決定した改変用データに基づき、コードの画像データを改変する。このような動作によれば、比較的情報量の少ないハッシュ値を介して真贋判定を行うことができる。このため、判定に要する計算量を抑えることができる。   FIG. 10B is a diagram schematically illustrating a flow until generation of modification data from original information. As described above, the processor 32 uses the hash function to calculate a hash value with a smaller information amount from the original information with a relatively large information amount. Next, referring to the code table (table), modification data (for example, a combination of coordinate values) is determined from the hash value. Based on the determined modification data, the code image data is modified. According to such an operation, authenticity determination can be performed via a hash value with a relatively small amount of information. For this reason, the amount of calculation required for determination can be suppressed.

図10Cは、テーブルの一例を模式的に示す図である。このテーブルは、ハッシュ値と、コードが配置される複数の座標値の組み合わせ(改変用データ)との対応関係を規定している。ハッシュ値と座標値の組み合わせとは一対一に対応している。したがって、ハッシュ値から改変用データが一意に決定される。逆に、改変用データからハッシュ値を一意に特定することもできる。この仕組みにより、後述するように、コードの偽造の有無を容易に判定することができる。   FIG. 10C is a diagram schematically illustrating an example of a table. This table defines the correspondence between hash values and combinations (modification data) of a plurality of coordinate values where codes are arranged. There is a one-to-one correspondence between the combination of the hash value and the coordinate value. Therefore, the modification data is uniquely determined from the hash value. Conversely, the hash value can be uniquely identified from the modification data. With this mechanism, as described later, it is possible to easily determine whether or not the code is forged.

コード画像にマークを付加するのではなく、文字列またはシンボルのレイアウトを変更する改変も、同様の処理によって実現できる。この場合、図10Cに示すテーブルに代えて、例えば図10Dに示すようなテーブルが予め作成され、記録される。テーブルは、例えば以下のような条件を満足するように設計され得る。
・レイアウトの変化が目視または機械読み取りによって認識でき、かつ目立たない。例えば、±X方向および±Y方向のそれぞれについて、0.5mm刻みで0〜2.5mm程度の範囲内の値を変化量とする。
・レイアウトパターンの変化がシーケンシャルにならないようにする。すなわち、シリアル番号などの情報からレイアウトパターンを推定されにくくする。
・レイアウトパターンが均等に分布するようにする。すなわち、特定の場所に高い頻度で配置されることがないようにする。
Rather than adding a mark to the code image, modification that changes the layout of the character string or symbol can be realized by the same processing. In this case, instead of the table shown in FIG. 10C, for example, a table as shown in FIG. 10D is created and recorded in advance. The table can be designed to satisfy the following conditions, for example.
・ Changes in layout can be recognized visually or by machine reading and are not noticeable. For example, for each of the ± X direction and the ± Y direction, a value in the range of about 0 to 2.5 mm in 0.5 mm increments is set as the amount of change.
-Prevent changes in layout patterns from becoming sequential. That is, it is difficult to estimate a layout pattern from information such as a serial number.
-Ensure that the layout pattern is evenly distributed. In other words, it is prevented from being frequently placed in a specific place.

以上のような条件を満たすように作成されたテーブルを参照して、プロセッサ32は、ヒューマンリーダブル文字などの変位量を決定し、印刷データを作成することができる。   With reference to the table created so as to satisfy the above conditions, the processor 32 can determine the amount of displacement of a human readable character or the like and create print data.

文字列またはシンボルのレイアウトを変更し、かつ1つ以上のマークをコードの内部または外部に付加する改変を行う場合も、基本的に同じ処理が行われる。その場合、例えば図10Eに示すようなテーブルが利用され得る。この例におけるテーブルは、改変用データとして、付加される各マークの座標値の情報と、移動対象(例えば文字列またはシンボル)の移動量の情報とを含む。このようなテーブルを参照して、プロセッサ32は、元のコード画像にマークを付加し、かつヒューマンリーダブル文字などのレイアウトを変更する。   The same processing is basically performed when changing the layout of the character string or symbol and adding one or more marks inside or outside the code. In that case, for example, a table as shown in FIG. 10E can be used. The table in this example includes, as modification data, information on the coordinate values of each mark to be added and information on the amount of movement of a movement target (for example, a character string or a symbol). With reference to such a table, the processor 32 adds a mark to the original code image and changes the layout of human readable characters or the like.

シンボルまたは文字列の回転、または文字列のフォントを変更する改変も、同様の処理によって実現可能である。この場合も、図10C、10Dに示すテーブルに類似するテーブルが予め作成される。プロセッサ32は、テーブルを参照して、ハッシュ値から改変用データ(例えば、回転角度、文字サイズ、文字の書体、文字間隔など)を作成し、元のコード画像を改変して記録する。テーブルは、例えば以下のような条件を満足するように作成すればよい。
・変化の態様がシーケンシャルにならないようにする。すなわち、シリアル番号などの情報からレイアウトパターンを推定されにくくする。
・変化の態様が均等に分布するようにする。すなわち、特定の変化の態様が高い頻度で現れることが無いようにする。
・変化の態様が相互に類似しないようにする。すなわち、汚れまたは欠陥があった場合でも正しいパターンを推定し易くする。
The rotation of the symbol or character string or the modification for changing the font of the character string can be realized by the same processing. Also in this case, a table similar to the table shown in FIGS. 10C and 10D is created in advance. The processor 32 refers to the table, creates modification data (for example, rotation angle, character size, character font, character spacing, etc.) from the hash value, modifies and records the original code image. The table may be created so as to satisfy the following conditions, for example.
・ Ensure that changes are not sequential. That is, it is difficult to estimate a layout pattern from information such as a serial number.
・ Make sure that changes are evenly distributed. That is, a specific change mode is prevented from appearing frequently.
・ Make changes not similar to each other. That is, it is easy to estimate a correct pattern even when there is dirt or a defect.

図10Aから図10Eに示す例では、プロセッサは、コードが示す元情報からハッシュ関数を用いてハッシュ値を算出し、そのハッシュ値から、テーブル(コード表)を参照して改変用データ(偽造防止コード)を決定する。しかし、このような処理は一例に過ぎない。プロセッサは、例えばコードが示す元情報から、所定の関数またはテーブル等を用いて、直接的に改変内容を決定してもよい。元情報から特定のルールに従って改変内容を決定する方法は、特定の方法に限定されない。   In the example shown in FIGS. 10A to 10E, the processor calculates a hash value from the original information indicated by the code by using a hash function, and refers to a table (code table) from the hash value to modify data (forgery prevention) Code). However, such processing is only an example. The processor may determine the modification content directly from the original information indicated by the code, for example, using a predetermined function or table. The method of determining the modification content from the original information according to a specific rule is not limited to a specific method.

<真贋判定システム>
次に、物品に付されたバーコードが、真正品のものか否かを判定するシステム(真贋判定システム)の例を説明する。
<Authenticity judgment system>
Next, an example of a system (authentication determination system) for determining whether or not a barcode attached to an article is a genuine product will be described.

スマートフォンまたはタブレットコンピュータなどの情報機器(読み取り装置)を用いて、物品に付されたバーコードが真正品に付されたバーコードと同一であるかを判定することができる。この判定のために、読み取り装置には、判定用のアプリケーションソフトウェア(アプリ)が予めインストールされる。本開示における真贋判定の方法には、大きく分けて以下の二つの方法がある。
(1)コード画像の印刷の際に適用された特定のルールを示す偽造防止コード(改変用データ)と同じまたは対応するデータを、読み取り装置に予め記録しておき、通信を行うことなく読み取り装置が単独で真贋判定を行う。
(2)印刷の際に適用された特定のルールを示す偽造防止コードに関するデータを読み取り装置には持たせず、通信回線を介して読み取り装置がサーバまたは記録装置に問い合せる。サーバは、真贋の判定を行い、判定結果を読み取り装置に返す。
Using an information device (reading device) such as a smartphone or a tablet computer, it is possible to determine whether the barcode attached to the article is the same as the barcode attached to the genuine product. For this determination, application software (application) for determination is installed in the reader in advance. There are roughly the following two methods for authenticity determination in the present disclosure.
(1) Data that is the same as or corresponds to a forgery prevention code (modification data) indicating a specific rule applied at the time of printing a code image is recorded in the reading device in advance, and the reading device without performing communication Authenticates by itself.
(2) The reading device does not have data relating to the anti-counterfeit code indicating the specific rule applied at the time of printing, and the reading device makes an inquiry to the server or the recording device via the communication line. The server determines authenticity and returns the determination result to the reading device.

本実施形態における真贋判定システムは、上記(1)、(2)のいずれの方法でも実現可能である。(1)の方法は、単純な構成で実現できるため、システム構築が容易であるという利点がある。(2)の方法では、真贋判定のルールを示すデータを読み取り装置が持たないため、読み取り装置が解析されたとしても当該ルールが漏洩するおそれがないというセキュリティ上の利点がある。さらに、(2)の方法では、必要に応じて判定ルールをアップデートするなどの調整が可能であり、セキュリティ強度を高く維持することができる。したがって、低コストかつ簡単な構成でシステムを構築することを重視する場合には(1)の方法を採用することが好ましい。一方、セキュリティ強度を高めることを重視する場合には(2)の方法を採用することが好ましい。   The authenticity determination system in the present embodiment can be realized by any of the methods (1) and (2). Since the method (1) can be realized with a simple configuration, there is an advantage that system construction is easy. In the method (2), since the reading device does not have data indicating a rule for authenticity determination, there is a security advantage that even if the reading device is analyzed, the rule is not leaked. Furthermore, in the method (2), adjustment such as updating the determination rule is possible as necessary, and the security strength can be maintained high. Therefore, when it is important to construct a system with a low cost and simple configuration, it is preferable to adopt the method (1). On the other hand, when emphasizing increasing the security strength, it is preferable to adopt the method (2).

以下、まず(2)の方法を適用した真贋判定システムの例を説明し、続いて(1)の方法を適用した真贋判定システムの例を説明する。   Hereinafter, an example of an authenticity determination system to which the method (2) is applied will be described first, and then an example of an authenticity determination system to which the method (1) is applied will be described.

図11は、上記(2)の方法を適用した真贋判定システムの全体構成の例を模式的に示す図である。本システムは、サーバコンピュータ30(以下、単に「サーバ30」と称する。)、プリンタ40、ストレージ50、およびスマートフォン10などの構成要素を備える。サーバ30は、前述のいずれかの方法で、商品5に付されるコードの画像データ(改変された画像データ)を生成し、ストレージ50に保存する。プリンタ40は、当該画像データに基づき、商品5またはその包装にコードを印刷する。コードが印刷された商品5は、流通過程を経て消費者の元に渡る。消費者は、スマートフォン10を用いて、商品5が真正品か否かを判定することができる。そのために、スマートフォン10には、予め真贋判定用のアプリケーションソフトウェア(アプリ)がインストールされる。   FIG. 11 is a diagram schematically illustrating an example of the entire configuration of the authenticity determination system to which the method (2) is applied. This system includes components such as a server computer 30 (hereinafter simply referred to as “server 30”), a printer 40, a storage 50, and a smartphone 10. The server 30 generates image data (modified image data) of a code attached to the product 5 by any of the methods described above, and stores it in the storage 50. The printer 40 prints a code on the product 5 or its packaging based on the image data. The product 5 on which the code is printed passes through the distribution process to the consumer. The consumer can determine whether or not the product 5 is a genuine product using the smartphone 10. Therefore, application software (application) for authenticity determination is installed in the smartphone 10 in advance.

図12は、スマートフォン10(読み取り装置)の概略的な構成を示すブロック図である。スマートフォン10は、プロセッサ12と、メモリ14と、通信回路16と、カメラ18と、ディスプレイ20とを備えている。プロセッサ12は、メモリ14に格納されたコンピュータプログラム(アプリ)を実行することにより、後述する動作を実行する。本実施形態では、カメラ18で撮影することによって取得された画像データが、通信回路16を介して遠隔地のサーバ30に送られる。   FIG. 12 is a block diagram illustrating a schematic configuration of the smartphone 10 (reading device). The smartphone 10 includes a processor 12, a memory 14, a communication circuit 16, a camera 18, and a display 20. The processor 12 executes an operation to be described later by executing a computer program (application) stored in the memory 14. In the present embodiment, image data acquired by photographing with the camera 18 is sent to the remote server 30 via the communication circuit 16.

図13は、真贋判定動作の一例を示すフローチャートである。真贋判定を行う際、消費者(ユーザ)の操作に応じて、プロセッサ12は、真贋判定用のアプリ(プログラム)を実行する。プロセッサ12は、商品5におけるバーコードが付された箇所を、スマートフォン10のカメラ18で撮影するように促す画像をディスプレイ20に表示させる。消費者が当該箇所を撮影すると(ステップS10)、通信回路16は、その画像データを、基地局90およびネットワーク100(例えばインターネット)を介して、サーバ30に送る(ステップS11)。サーバ30は、送られてきた画像データに含まれるバーコードが、真正品のバーコードか否かを、ストレージ50に保存されている改変用データに基づいて判定する(ステップS13)。サーバ30は、判定結果を示すデータを、ネットワーク100および基地局90を介してスマートフォン10に送信する(ステップS14)。スマートフォン10のプロセッサ12は、ディスプレイ20に、判定結果を表示する(ステップS15)。これにより、消費者は、商品5に付されたバーコードが正規のものか否かを確認できる。   FIG. 13 is a flowchart illustrating an example of the authenticity determination operation. When performing authenticity determination, the processor 12 executes an authenticity determination application (program) in accordance with the operation of the consumer (user). The processor 12 causes the display 20 to display an image that prompts the camera 18 of the smartphone 10 to shoot the part to which the barcode is attached in the product 5. When the consumer images the location (step S10), the communication circuit 16 sends the image data to the server 30 via the base station 90 and the network 100 (for example, the Internet) (step S11). The server 30 determines whether or not the barcode included in the transmitted image data is a genuine barcode based on the modification data stored in the storage 50 (step S13). The server 30 transmits data indicating the determination result to the smartphone 10 via the network 100 and the base station 90 (step S14). The processor 12 of the smartphone 10 displays the determination result on the display 20 (step S15). Thereby, the consumer can check whether or not the barcode attached to the product 5 is genuine.

図14は、ステップS13における真贋の判定処理をより具体的に示すフローチャートである。サーバ30におけるプロセッサ32は、送られてきた画像データに含まれるコードから、そのコードが付された物品を特定する(ステップS200)。例えば、そのコードが示す商品コード、ロット番号、シリアル番号などの情報を読み取り、その物品を特定する。この読み取りは、例えば公知の2次元コード読み取り用のアルゴリズムを利用して行われ得る。次に、その物品にコードを印刷したときに使用した改変用データを、ストレージ50などの記録媒体から取得する(ステップS201)。ここで取得される改変用データは、例えば図10Cから図10Eに例示されているようなテーブルに含まれるデータであり得る。プロセッサ32は、送られてきた画像データ(以下、「撮影データ」と称することがある。)に、改変用データが示す改変が反映されているかを判定する(ステップS202)。この判定は、例えば、撮影データに含まれるコードから算出されるハッシュ値に対応する改変内容と、撮影データの改変内容(例えば、付加されているマークの位置の組み合わせ、および/またはレイアウト)とが整合しているかに基づいて行われ得る。コード画像が偽造されたものである場合、両者が整合することはない。このため、そのコード画像が付された商品は、真正品ではないと判断できる。判定は、公知の画像マッチング技術を用いて行ってもよい。   FIG. 14 is a flowchart showing the authenticity determination process in step S13 more specifically. The processor 32 in the server 30 identifies the article to which the code is attached from the code included in the sent image data (step S200). For example, information such as a product code, a lot number, and a serial number indicated by the code is read to identify the article. This reading can be performed using, for example, a known algorithm for reading a two-dimensional code. Next, the modification data used when the code is printed on the article is acquired from a recording medium such as the storage 50 (step S201). The modification data acquired here may be data included in tables such as those illustrated in FIGS. 10C to 10E, for example. The processor 32 determines whether or not the modification indicated by the modification data is reflected in the transmitted image data (hereinafter also referred to as “photographing data”) (step S202). This determination includes, for example, modification content corresponding to a hash value calculated from a code included in shooting data, and modification content of the shooting data (for example, a combination of positions of added marks and / or layout). This can be done based on matching. If the code image is forged, they will not match. For this reason, it can be determined that the product with the code image attached is not a genuine product. The determination may be performed using a known image matching technique.

送られてきた画像データに含まれるコードが正規のものであると判定した場合、プロセッサ32は、その旨の情報を、スマートフォン10に送信する。送られてきた画像データに含まれるコードが正規のものでないと判定した場合、プロセッサ32は、その旨の情報を、スマートフォン10に送信する。   When it is determined that the code included in the transmitted image data is genuine, the processor 32 transmits information to that effect to the smartphone 10. When it is determined that the code included in the transmitted image data is not authentic, the processor 32 transmits information to that effect to the smartphone 10.

なお、プロセッサ32は、改変用データに基づいて真贋を判定する代わりに、印刷時に用いた改変後の画像データを用いて真贋を判定してもよい。すなわち、プロセッサ32は、送られてきた画像データと、印刷時に使用した画像データとを照合して同一性を判定してもよい。この場合、例えば公知の画像マッチング技術を用いて2つの画像の同一性を判定することができる。   Note that the processor 32 may determine the authenticity using the modified image data used at the time of printing instead of determining the authenticity based on the modification data. That is, the processor 32 may determine the identity by comparing the sent image data with the image data used at the time of printing. In this case, for example, the identity of two images can be determined using a known image matching technique.

本実施形態では、コード画像の生成と、真贋判定とを同一のサーバ30が行うが、これらを異なる装置に実行させてもよい。コード画像の生成および印刷を行うシステムと、真贋判定を行う装置またはシステムとが遠く離れた場所に配置されていてもよい。   In the present embodiment, the same server 30 performs code image generation and authenticity determination, but these may be executed by different devices. The system that generates and prints the code image and the apparatus or system that performs authentication determination may be arranged at a remote location.

図15Aおよび図15Bは、判定結果の表示例を示す図である。図15Aは、撮影されたコードが、正規品のコードと一致すると判定された場合の表示例を示している。この場合、ディスプレイ20には、そのコードが正規品のコードと一致する旨、例えば「正規品のコードです。」といった文言が表示され得る。図15Bは、撮影されたコードが、真正品のコードとは一致しないと判定された場合の表示例を示している。この場合、ディスプレイ20には、そのコードが正規品のコードと一致しない旨、例えば「正規品のコードではありません」といった文言が表示され得る。この際、図15Bに示すように、「メーカに連絡」などのボタンの表示を行い、その表示をタップすることで、メーカの連絡先情報が表示されたり、電子メールなどによってメーカに連絡したりできる仕組みを導入してもよい。   15A and 15B are diagrams illustrating display examples of determination results. FIG. 15A shows a display example when it is determined that the photographed code matches the genuine code. In this case, the display 20 can display a statement that the code matches the code of the genuine product, for example, “It is a genuine product code”. FIG. 15B shows a display example when it is determined that the photographed code does not match the genuine code. In this case, the display 20 may display a statement that the code does not match the genuine code, for example, “It is not a genuine code”. At this time, as shown in FIG. 15B, a button such as “Contact manufacturer” is displayed, and by tapping the display, contact information of the manufacturer is displayed, or the manufacturer is contacted by e-mail or the like. A mechanism that can do this may be introduced.

本実施形態では、読み取られたコードの画像の真贋をクラウド上のサーバ30が判定する。スマートフォン10(読み取り装置)は、撮影データをサーバ30に送信し、サーバ30から判定結果を示すデータを受信して表示するだけである。このため、読み取り装置の内部データを解析しても、コード画像の改変に用いられたルールを特定することはできない。ルールの漏洩するおそれがないため、高いセキュリティを確保することができる。   In the present embodiment, the server 30 on the cloud determines the authenticity of the read code image. The smartphone 10 (reading device) simply transmits the shooting data to the server 30 and receives and displays data indicating the determination result from the server 30. For this reason, even if the internal data of the reading device is analyzed, the rule used to modify the code image cannot be specified. Since there is no risk of rule leakage, high security can be ensured.

次に、サーバ30ではなくスマートフォン10などの読み取り装置が自ら真贋の判定を行う例(上記の(2)の例)を説明する。図16は、この例における真贋判定システムを模式的に示す図である。この例では、真贋判定システムは、スマートフォン10のみを含む。スマートフォン10のプロセッサ12は、メモリ14に格納されたコンピュータプログラムを実行することにより、通信回線を介することなく上記と同様の判定処理を行う。スマートフォン10のメモリ14には、真贋判定用のプログラムの他、コード画像の作成時に適用された特定のルールを示すデータが予め記録される。   Next, an example in which the reading device such as the smartphone 10 instead of the server 30 determines the authenticity by itself (example (2) above) will be described. FIG. 16 is a diagram schematically showing an authenticity determination system in this example. In this example, the authenticity determination system includes only the smartphone 10. The processor 12 of the smartphone 10 executes a computer program stored in the memory 14 to perform the same determination process as described above without using a communication line. In the memory 14 of the smartphone 10, data indicating a specific rule applied at the time of creating the code image is recorded in advance in addition to the program for authenticity determination.

図17は、スマートフォン10による真贋判定の処理の例を示すフローチャートである。スマートフォン10は、ユーザからの撮影指示に応じて、商品に付されたコードをカメラ18で撮影する(ステップS300)。コードが撮影されると、プロセッサ12は、撮影データに含まれるコードからその物品を特定する(ステップS301)。例えば、そのコードが示す商品コード、ロット番号、シリアル番号などの情報に基づいて、その物品を特定する。この読み取りは、例えば公知の2次元コード読み取り用のアルゴリズムを利用して行われ得る。次に、プロセッサ12は、メモリ14(または他の記録媒体)にアクセスし、特定した物品の改変用データを取得する(ステップS302)。プロセッサ12は、撮影データと、改変用データとに基づき、改変用データが示す改変が撮影データに反映されているかを判定する(ステップS303)。この判定は、例えば、撮影データに含まれるコードから算出されるハッシュ値に対応する改変内容と、撮影データの改変内容(例えば、付加されているマークの位置の組み合わせ、および/またはレイアウト)とが整合しているかに基づいて行われ得る。判定は、公知の画像マッチング技術を用いて行ってもよい。撮影データに含まれるコードが正規のものであると判定した場合、プロセッサ12は、その旨の情報をディスプレイ20に表示する。撮影データに含まれるコードが正規のものでないと判定した場合、プロセッサ12は、その旨の情報を、ディスプレイ20に送信する。   FIG. 17 is a flowchart illustrating an example of authentication determination processing by the smartphone 10. The smartphone 10 captures the code attached to the product with the camera 18 in accordance with the capturing instruction from the user (step S300). When the code is photographed, the processor 12 specifies the article from the code included in the photographing data (step S301). For example, the article is specified based on information such as a product code, a lot number, and a serial number indicated by the code. This reading can be performed using, for example, a known algorithm for reading a two-dimensional code. Next, the processor 12 accesses the memory 14 (or other recording medium), and acquires modification data for the identified article (step S302). The processor 12 determines whether the modification indicated by the modification data is reflected in the photograph data based on the photograph data and the modification data (step S303). This determination includes, for example, modification content corresponding to a hash value calculated from a code included in shooting data, and modification content of the shooting data (for example, a combination of positions of added marks and / or layout). This can be done based on matching. The determination may be performed using a known image matching technique. If the processor 12 determines that the code included in the photographic data is authentic, the processor 12 displays information to that effect on the display 20. If it is determined that the code included in the shooting data is not authentic, the processor 12 transmits information to that effect to the display 20.

プロセッサ12は、改変用データに基づいて真贋を判定する代わりに、印刷時に用いた改変後の画像データを用いて真贋を判定してもよい。すなわち、プロセッサ12は、撮影データと、印刷時に使用された画像データとを照合して同一性を判定してもよい。この場合、例えば公知の画像マッチング技術を用いて2つの画像の同一性を判定することができる。   Instead of determining authenticity based on the modification data, the processor 12 may determine authenticity using the modified image data used during printing. That is, the processor 12 may determine the identity by comparing the captured data with the image data used at the time of printing. In this case, for example, the identity of two images can be determined using a known image matching technique.

この例では、ネットワークを介することなく、スマートフォン10が単独で物品の真贋を判定できる。このため、図11の例と比較して、システムの構成を簡単にすることができる。   In this example, the smartphone 10 can determine the authenticity of the article alone without going through the network. Therefore, the system configuration can be simplified as compared with the example of FIG.

以上のように、本実施形態における真贋判定方法は、物品に印刷されたコードを撮影して得られる画像データ(第1の画像データ)を取得するステップと、実際に使用された改変後の画像データ(第2の画像データ)を記録媒体から取得するステップと、第1の画像データと第2の画像データ(または改変用データ)とを照合することによって第1の画像データにおけるコードが、正規のコードであるか否かを判定するステップと、判定結果を示すデータを出力するステップとを含む。これにより、簡便にコードの真贋を判定することができる。   As described above, the authenticity determination method according to the present embodiment includes a step of acquiring image data (first image data) obtained by photographing a code printed on an article, and an actually used modified image. The code in the first image data is obtained by comparing the step of acquiring the data (second image data) from the recording medium and the first image data and the second image data (or modification data). And a step of outputting data indicating a result of the determination. Thereby, the authenticity of the code can be easily determined.

上記の例において、読み取り装置はスマートフォンであるが、他の情報機器であってもよい。例えば、タブレットコンピュータ、バーコードリーダ、ノートPC(ラップトップPC)などを読み取り装置として使用してもよい。読み取り装置におけるカメラ(または撮像素子)およびディスプレイは、プロセッサおよびメモリと同じ筐体に収納されていなくてもよい。真贋判定の対象であるコードが2次元コード以外のコード(例えば、一次元バーコードまたはヒューマンリーダブル文字)である場合にも、上記の技術は同様に適用できる。   In the above example, the reading device is a smartphone, but may be another information device. For example, a tablet computer, a barcode reader, a notebook PC (laptop PC), or the like may be used as the reading device. The camera (or image sensor) and the display in the reading device may not be housed in the same housing as the processor and the memory. The above technique can also be applied to the case where the code that is the object of authenticity determination is a code other than a two-dimensional code (for example, a one-dimensional barcode or a human readable character).

以上のように、本開示は、以下の項目に記載の方法、プログラム、および装置を含む。   As described above, the present disclosure includes the methods, programs, and apparatuses described in the following items.

[項目1]
物品に関連付けられた情報を示すコードの画像データを、プロセッサによって生成する方法であって、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを記録媒体に記録するステップと、
を含む方法。
[Item 1]
A method of generating image data of a code indicating information associated with an article by a processor,
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium;
Including methods.

[項目2]
前記改変画像データが示す画像を、前記物品またはその包装に印刷するステップをさらに含む、項目1に記載の方法。
[Item 2]
The method according to item 1, further comprising a step of printing an image indicated by the modified image data on the article or its packaging.

[項目3]
前記生成するステップは、読み取り装置が、改変前の前記画像が示す情報と同じ情報を、前記改変画像データから読み取ることができる態様で前記改変画像データを生成する、項目1または2に記載の方法。
[Item 3]
3. The method according to item 1 or 2, wherein the generating step generates the modified image data in such a manner that a reading device can read the same information as the information indicated by the image before modification from the modified image data. .

[項目4]
前記生成するステップは、前記情報に基づく特定のルールに従い、前記改変画像データの改変の内容を規定する改変用データを決定することを含む、項目1から3のいずれかに記載の方法。
[Item 4]
4. The method according to any one of items 1 to 3, wherein the generating step includes determining modification data that defines a modification content of the modified image data according to a specific rule based on the information.

[項目5]
前記生成するステップは、
入力された前記情報から、前記情報に対応するハッシュ値を決定し、
予め用意されたテーブルを参照して、前記ハッシュ値から、前記ハッシュ値に対応する前記改変用データを決定することを含む、
項目4に記載の方法。
[Item 5]
The generating step includes
A hash value corresponding to the information is determined from the input information,
Determining the modification data corresponding to the hash value from the hash value with reference to a table prepared in advance;
Item 5. The method according to Item4.

[項目6]
前記改変用データは、前記画像内の少なくとも1つの座標値を示す情報を含み、
前記生成するステップは、前記少なくとも1つの座標値が示す位置に、少なくとも1つのマークを付加することを含む、
項目4または5に記載の方法。
[Item 6]
The modification data includes information indicating at least one coordinate value in the image,
The generating step includes adding at least one mark to a position indicated by the at least one coordinate value;
6. The method according to item 4 or 5.

[項目7]
前記マークは、前記画像における前記コードの領域の内部または外部に付加される記号、図形、または文字である、項目6に記載の方法。
[Item 7]
7. The method according to item 6, wherein the mark is a symbol, a figure, or a character that is added inside or outside the area of the code in the image.

[項目8]
前記コードは、1次元または2次元のバーコード、およびヒューマンリーダブル文字の少なくとも一方を含み、
前記改変用データは、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像内の基準位置からの変位量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像データ内における位置を変化させることを含む、
項目4から7のいずれかに記載の方法。
[Item 8]
The code includes at least one of a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a displacement amount of the barcode or the human readable character from a reference position in the image,
The generating step includes changing the position of the barcode or the human readable character in the image data based on the modification data.
Item 8. The method according to any one of Items 4 to 7.

[項目9]
前記コードは、1次元または2次元のバーコードおよびヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字の、前記画像内の基準位置からの変位量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記バーコードと前記ヒューマンリーダブル文字との相対位置を変化させることを含む、
項目4から8のいずれかに記載の方法。
[Item 9]
The code includes a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a displacement amount of the human readable character from a reference position in the image,
The generating step includes changing a relative position of the barcode and the human readable character based on the modification data.
Item 9. The method according to any one of Items 4 to 8.

[項目10]
前記コードは、1次元または2次元のバーコードおよびヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字の、基準角度からの角度の変化量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記ヒューマンリーダブル文字の角度を変化させることを含む、
項目4から9のいずれかに記載の方法。
[Item 10]
The code includes a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a change amount of the human readable character from a reference angle,
The generating step includes changing an angle of the human readable character based on the modification data.
Item 10. The method according to any one of Items 4 to 9.

[項目11]
前記コードは、ヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字のフォントを示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記ヒューマンリーダブル文字のフォントを変化させることを含む、
項目4から10のいずれかに記載の方法。
[Item 11]
The code includes a human readable character,
The modification data includes information indicating a font of the human readable character,
The generating step includes changing a font of the human readable character based on the modification data.
Item 11. The method according to any one of Items 4 to 10.

[項目12]
前記コードは、N個(Nは20以上の整数)のセルを含む2次元バーコードであり、
前記改変用データは、前記画像内のn個(nは2以上N/10以下の整数)の座標値を示す情報を含み、
前記生成するステップは、前記n個の座標値が示す位置に、n個のマークを付加することを含み、前記n個の座標値の組み合わせは、前記コードが示す前記情報によって異なる、
項目4から11のいずれかに記載の方法。
[Item 12]
The code is a two-dimensional barcode including N cells (N is an integer of 20 or more),
The modification data includes information indicating n coordinate values (n is an integer of 2 to N / 10) in the image,
The generating step includes adding n marks to the position indicated by the n coordinate values, and a combination of the n coordinate values depends on the information indicated by the code.
Item 12. The method according to any one of Items 4 to 11.

[項目13]
前記改変するステップは、前記コードの領域の内部または外部に、読み取りに影響を及ぼさない態様で、少なくとも1つのマークを付加することを含む、項目1から4のいずれかに記載の方法。
[Item 13]
5. A method according to any of items 1 to 4, wherein the modifying step includes adding at least one mark inside or outside the area of the code in a manner that does not affect reading.

[項目14]
前記コードは、1次元または2次元のバーコード、およびヒューマンリーダブル文字の少なくとも一方を含み、
前記生成するステップは、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像内における位置を変化させることを含む、
項目1から4、および13のいずれかに記載の方法。
[Item 14]
The code includes at least one of a one-dimensional or two-dimensional barcode and a human readable character,
The step of generating includes changing a position of the barcode or the human readable character in the image;
14. The method according to any one of items 1 to 4 and 13.

[項目15]
前記生成するステップは、前記コードの画像に、キャラクタマークを付加することを含み、
前記キャラクタマークの位置、角度、フォント、および内容の少なくとも1つは、物品ごとまたは物品群ごとに異なる、
項目1から14のいずれかに記載の方法。
[Item 15]
The generating step includes adding a character mark to the image of the code;
At least one of the position, angle, font, and content of the character mark is different for each article or group of articles.
Item 15. The method according to any one of Items 1 to 14.

[項目16]
前記物品は製造物であり、
前記物品に関連付けられた前記情報は、商品コード、製造年月日、消費期限、ロット番号、およびシリアル番号の少なくとも1つを含み、
前記生成するステップは、前記商品コードごと、前記ロット番号ごと、または前記シリアル番号ごとに異なる態様で、前記画像を改変する、
項目1から15のいずれかに記載の方法。
[Item 16]
The article is a product;
The information associated with the article includes at least one of a product code, date of manufacture, expiration date, lot number, and serial number;
The generating step modifies the image in a different manner for each product code, for each lot number, or for each serial number.
Item 16. The method according to any one of Items 1 to 15.

[項目17]
物品に関連付けられた情報を示すコードの画像データを、生成するためのプログラムであって、コンピュータに、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを、前記物品に関連付けて記録媒体に記録するステップと、
を実行させるプログラム。
[Item 17]
A program for generating image data of a code indicating information associated with an article, the computer,
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium in association with the article;
A program that executes

[項目18]
物品に関連付けられた情報を示すコードの画像データを生成する装置であって、
プロセッサと、
前記プロセッサによって実行されるコンピュータプログラムを格納したメモリと、
を備え、
前記コンピュータプログラムは、前記プロセッサに、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを、前記物品に関連付けて記録媒体に記録するステップと、
を実行させる装置。
[Item 18]
An apparatus for generating image data of a code indicating information associated with an article,
A processor;
A memory storing a computer program executed by the processor;
With
The computer program is stored in the processor.
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium in association with the article;
A device that executes

[項目19]
物品に印刷されたコードを撮影して得られる第1の画像データを取得するステップAと、
項目1から16のいずれかに記載の方法によって生成された前記改変画像データである第2の画像データ、または前記第2の画像データの改変内容を規定する改変用データを記録媒体から取得するステップBと、
前記第1の画像データと、前記第2の画像データまたは前記改変用データとに基づいて、前記第1の画像データにおける前記コードが、正規のコードであるか否かを判定するステップCと、
判定結果を示すデータを出力するステップDと、
を含む真贋判定方法。
[Item 19]
Step A for obtaining first image data obtained by photographing a code printed on an article;
The step of acquiring from the recording medium second image data that is the modified image data generated by the method according to any one of items 1 to 16, or modification data that defines the modification content of the second image data B and
Determining whether the code in the first image data is a regular code based on the first image data and the second image data or the modification data; and
Step D for outputting data indicating the determination result;
Authentication method including

[項目20]
前記ステップAは、前記第1の画像データを取得した読み取り装置からネットワークを介して前記第1の画像データを取得することを含み、
前記ステップDは、前記読み取り装置に前記ネットワークを介して前記判定結果を示すデータを送信することを含む、
項目19に記載の真贋判定方法。
[Item 20]
The step A includes obtaining the first image data via a network from a reading device that has obtained the first image data,
The step D includes transmitting data indicating the determination result to the reading device via the network.
Item 20. The authentication method according to Item 19.

[項目21]
前記ステップA、前記ステップB、前記ステップC、および前記ステップDは、カメラ、プロセッサ、前記記録媒体を備えた読み取り装置における前記プロセッサによって実行され、
前記ステップAは、前記カメラから前記第1の画像データを取得することを含み、
前記ステップBは、前記第2の画像データまたは前記改変用データを前記記録媒体から取得することを含む、
項目19に記載の真贋判定方法。
[Item 21]
Step A, Step B, Step C, and Step D are executed by the processor in a reading device including a camera, a processor, and the recording medium,
The step A includes obtaining the first image data from the camera;
The step B includes obtaining the second image data or the modification data from the recording medium.
Item 20. The authentication method according to Item 19.

[項目22]
前記読み取り装置は、ディスプレイをさらに備え、
前記ステップDは、前記ディスプレイに、前記判定結果を表示させることを含む、項目20または21に記載の真贋判定方法。
[Item 22]
The reading device further includes a display,
The authenticity determination method according to item 20 or 21, wherein the step D includes displaying the determination result on the display.

[項目23]
コンピュータに、
物品に印刷されたコードを撮影して得られる第1の画像データを取得するステップAと、
項目1から16のいずれかに記載の方法によって生成された前記改変画像データである第2の画像データ、または前記第2の画像データの改変内容を規定する改変用データを記録媒体から取得するステップBと、
前記第1の画像データと、前記第2の画像データまたは前記改変用データとに基づいて、前記第1の画像データにおける前記コードが、正規のコードであるか否かを判定するステップCと、
判定結果を示すデータを出力するステップDと、
を実行させるプログラム。
[Item 23]
On the computer,
Step A for obtaining first image data obtained by photographing a code printed on an article;
The step of acquiring from the recording medium second image data that is the modified image data generated by the method according to any one of items 1 to 16, or modification data that defines the modification content of the second image data B and
Determining whether the code in the first image data is a regular code based on the first image data and the second image data or the modification data; and
Step D for outputting data indicating the determination result;
A program that executes

本開示の実施形態におけるコード画像を生成する方法および装置は、1次元もしくは2次元のバーコードまたはヒューマンリーダブル文字などのコードを、製造品などの物品に印刷する用途に利用され得る。   The method and apparatus for generating a code image in an embodiment of the present disclosure can be used for printing a code such as a one-dimensional or two-dimensional barcode or a human readable character on an article such as a manufactured product.

1 マーク
2 キャラクタマーク
5 商品
10 スマートフォン
12 プロセッサ
14 メモリ
16 通信回路
18 カメラ
20 ディスプレイ
30 サーバコンピュータ
32 プロセッサ
34 メモリ
36 通信回路
38 ストレージ
40 プリンタ
50 ストレージ
90 基地局
100 ネットワーク
1 Mark 2 Character Mark 5 Product 10 Smartphone 12 Processor 14 Memory 16 Communication Circuit 18 Camera 20 Display 30 Server Computer 32 Processor 34 Memory 36 Communication Circuit 38 Storage 40 Printer 50 Storage 90 Base Station 100 Network

Claims (23)

物品に関連付けられた情報を示すコードの画像データを、プロセッサによって生成する方法であって、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを記録媒体に記録するステップと、
を含む方法。
A method of generating image data of a code indicating information associated with an article by a processor,
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium;
Including methods.
前記改変画像データが示す画像を、前記物品またはその包装に印刷するステップをさらに含む、請求項1に記載の方法。   The method according to claim 1, further comprising: printing an image indicated by the modified image data on the article or its packaging. 前記生成するステップは、読み取り装置が、改変前の前記画像が示す情報と同じ情報を、前記改変画像データから読み取ることができる態様で前記改変画像データを生成する、請求項1または2に記載の方法。   3. The generation step according to claim 1, wherein the generating step generates the modified image data in such a manner that the reading device can read the same information as the information indicated by the image before modification from the modified image data. Method. 前記生成するステップは、
前記情報に基づく特定のルールに従い、前記改変画像データの改変の内容を規定する改変用データを決定することを含む、請求項1から3のいずれかに記載の方法。
The generating step includes
4. The method according to claim 1, further comprising: determining modification data that defines a modification content of the modified image data according to a specific rule based on the information. 5.
前記生成するステップは、
入力された前記情報から、前記情報に対応するハッシュ値を決定し、
予め用意されたテーブルを参照して、前記ハッシュ値から、前記ハッシュ値に対応する前記改変用データを決定することを含む、
請求項4に記載の方法。
The generating step includes
A hash value corresponding to the information is determined from the input information,
Determining the modification data corresponding to the hash value from the hash value with reference to a table prepared in advance;
The method of claim 4.
前記改変用データは、前記画像内の少なくとも1つの座標値を示す情報を含み、
前記生成するステップは、前記少なくとも1つの座標値が示す位置に、少なくとも1つのマークを付加することを含む、
請求項4または5に記載の方法。
The modification data includes information indicating at least one coordinate value in the image,
The generating step includes adding at least one mark to a position indicated by the at least one coordinate value;
The method according to claim 4 or 5.
前記マークは、前記画像における前記コードの領域の内部または外部に付加される記号、図形、または文字である、請求項6に記載の方法。   The method according to claim 6, wherein the mark is a symbol, a figure, or a character added to the inside or outside of the area of the code in the image. 前記コードは、1次元または2次元のバーコード、およびヒューマンリーダブル文字の少なくとも一方を含み、
前記改変用データは、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像内の基準位置からの変位量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像内における位置を変化させることを含む、
請求項4から7のいずれかに記載の方法。
The code includes at least one of a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a displacement amount of the barcode or the human readable character from a reference position in the image,
The generating step includes changing the position of the barcode or the human readable character in the image based on the modification data.
The method according to claim 4.
前記コードは、1次元または2次元のバーコードおよびヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字の、前記画像内の基準位置からの変位量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記バーコードと前記ヒューマンリーダブル文字との相対位置を変化させることを含む、
請求項4から8のいずれかに記載の方法。
The code includes a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a displacement amount of the human readable character from a reference position in the image,
The generating step includes changing a relative position of the barcode and the human readable character based on the modification data.
9. A method according to any one of claims 4 to 8.
前記コードは、1次元または2次元のバーコードおよびヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字の、基準角度からの角度の変化量を示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記ヒューマンリーダブル文字の角度を変化させることを含む、
請求項4から9のいずれかに記載の方法。
The code includes a one-dimensional or two-dimensional barcode and a human readable character,
The modification data includes information indicating a change amount of the human readable character from a reference angle,
The generating step includes changing an angle of the human readable character based on the modification data.
10. A method according to any one of claims 4-9.
前記コードは、ヒューマンリーダブル文字を含み、
前記改変用データは、前記ヒューマンリーダブル文字のフォントを示す情報を含み、
前記生成するステップは、前記改変用データに基づいて、前記ヒューマンリーダブル文字のフォントを変化させることを含む、
請求項4から10のいずれかに記載の方法。
The code includes a human readable character,
The modification data includes information indicating a font of the human readable character,
The generating step includes changing a font of the human readable character based on the modification data.
11. A method according to any one of claims 4 to 10.
前記コードは、N個(Nは20以上の整数)のセルを含む2次元バーコードであり、
前記改変用データは、前記画像内のn個(nは2以上N/10以下の整数)の座標値を示す情報を含み、
前記生成するステップは、前記n個の座標値が示す位置に、n個のマークを付加することを含み、前記n個の座標値の組み合わせは、前記コードが示す前記情報によって異なる、
請求項4から11のいずれかに記載の方法。
The code is a two-dimensional barcode including N cells (N is an integer of 20 or more),
The modification data includes information indicating n coordinate values (n is an integer of 2 to N / 10) in the image,
The generating step includes adding n marks to the position indicated by the n coordinate values, and a combination of the n coordinate values depends on the information indicated by the code.
12. A method according to any one of claims 4 to 11.
前記改変するステップは、前記コードの領域の内部または外部に、読み取りに影響を及ぼさない態様で、少なくとも1つのマークを付加することを含む、請求項1から4のいずれかに記載の方法。   5. A method according to any of claims 1 to 4, wherein the modifying step includes adding at least one mark inside or outside the region of the code in a manner that does not affect reading. 前記コードは、1次元または2次元のバーコード、およびヒューマンリーダブル文字の少なくとも一方を含み、
前記生成するステップは、前記バーコードまたは前記ヒューマンリーダブル文字の、前記画像内における位置を変化させることを含む、
請求項1から4、および13のいずれかに記載の方法。
The code includes at least one of a one-dimensional or two-dimensional barcode and a human readable character,
The step of generating includes changing a position of the barcode or the human readable character in the image;
14. A method according to any one of claims 1 to 4 and 13.
前記生成するステップは、前記コードの画像に、キャラクタマークを付加することを含み、
前記キャラクタマークの位置、角度、フォント、および内容の少なくとも1つは、物品ごとまたは物品群ごとに異なる、
請求項1から14のいずれかに記載の方法。
The generating step includes adding a character mark to the image of the code;
At least one of the position, angle, font, and content of the character mark is different for each article or group of articles.
15. A method according to any one of claims 1 to 14.
前記物品は製造物であり、
前記物品に関連付けられた前記情報は、商品コード、製造年月日、消費期限、ロット番号、およびシリアル番号の少なくとも1つを含み、
前記生成するステップは、前記商品コードごと、前記ロット番号ごと、または前記シリアル番号ごとに異なる態様で、前記画像を改変する、
請求項1から15のいずれかに記載の方法。
The article is a product;
The information associated with the article includes at least one of a product code, date of manufacture, expiration date, lot number, and serial number;
The generating step modifies the image in a different manner for each product code, for each lot number, or for each serial number.
The method according to claim 1.
物品に関連付けられた情報を示すコードの画像データを生成するためのプログラムであって、コンピュータに、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを、前記物品に関連付けて記録媒体に記録するステップと、
を実行させるプログラム。
A program for generating image data of a code indicating information associated with an article,
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium in association with the article;
A program that executes
物品に関連付けられた情報を示すコードの画像データを生成する装置であって、
プロセッサと、
前記プロセッサによって実行されるコンピュータプログラムを格納したメモリと、
を備え、
前記コンピュータプログラムは、前記プロセッサに、
入力された前記情報に基づき、前記情報を示すコードの画像を、物品ごとまたは物品群ごとに異なる態様で改変した画像を示す改変画像データを生成するステップと、
前記改変画像データを、前記物品に関連付けて記録媒体に記録するステップと、
を実行させる装置。
An apparatus for generating image data of a code indicating information associated with an article,
A processor;
A memory storing a computer program executed by the processor;
With
The computer program is stored in the processor.
Generating modified image data indicating an image obtained by modifying an image of a code indicating the information in a different manner for each article or each article group based on the input information;
Recording the modified image data on a recording medium in association with the article;
A device that executes
物品に印刷されたコードを撮影して得られる第1の画像データを取得するステップAと、
請求項1から16のいずれかに記載の方法によって生成された前記改変画像データである第2の画像データ、または前記第2の画像データの改変内容を規定する改変用データを記録媒体から取得するステップBと、
前記第1の画像データと、前記第2の画像データまたは前記改変用データとに基づいて、前記第1の画像データにおける前記コードが、正規のコードであるか否かを判定するステップCと、
判定結果を示すデータを出力するステップDと、
を含む真贋判定方法。
Step A for obtaining first image data obtained by photographing a code printed on an article;
The second image data, which is the modified image data generated by the method according to any one of claims 1 to 16, or modification data that defines the modification content of the second image data is acquired from a recording medium. Step B
Determining whether the code in the first image data is a regular code based on the first image data and the second image data or the modification data; and
Step D for outputting data indicating the determination result;
Authentication method including
前記ステップAは、前記第1の画像データを取得した読み取り装置からネットワークを介して前記第1の画像データを取得することを含み、
前記ステップDは、前記読み取り装置に前記ネットワークを介して前記判定結果を示すデータを送信することを含む、
請求項19に記載の真贋判定方法。
The step A includes obtaining the first image data via a network from a reading device that has obtained the first image data,
The step D includes transmitting data indicating the determination result to the reading device via the network.
The authenticity determination method according to claim 19.
前記ステップA、前記ステップB、前記ステップC、および前記ステップDは、カメラ、プロセッサ、前記記録媒体を備えた読み取り装置における前記プロセッサによって実行され、
前記ステップAは、前記カメラから前記第1の画像データを取得することを含み、
前記ステップBは、前記第2の画像データまたは前記改変用データを前記記録媒体から取得することを含む、
請求項19に記載の真贋判定方法。
Step A, Step B, Step C, and Step D are executed by the processor in a reading device including a camera, a processor, and the recording medium,
The step A includes obtaining the first image data from the camera;
The step B includes obtaining the second image data or the modification data from the recording medium.
The authenticity determination method according to claim 19.
前記読み取り装置は、ディスプレイをさらに備え、
前記ステップDは、前記ディスプレイに、前記判定結果を表示させることを含む、請求項20または21に記載の真贋判定方法。
The reading device further includes a display,
The authenticity determination method according to claim 20 or 21, wherein the step D includes displaying the determination result on the display.
コンピュータに、
物品に印刷されたコードを撮影して得られる第1の画像データを取得するステップAと、
請求項1から16のいずれかに記載の方法によって生成された前記改変画像データである第2の画像データ、または前記第2の画像データの改変内容を規定する改変用データを記録媒体から取得するステップBと、
前記第1の画像データと、前記第2の画像データまたは前記改変用データとに基づいて、前記第1の画像データにおける前記コードが、正規のコードであるか否かを判定するステップCと、
判定結果を示すデータを出力するステップDと、
を実行させるプログラム。
On the computer,
Step A for obtaining first image data obtained by photographing a code printed on an article;
The second image data, which is the modified image data generated by the method according to any one of claims 1 to 16, or modification data that defines the modification content of the second image data is acquired from a recording medium. Step B
Determining whether the code in the first image data is a regular code based on the first image data and the second image data or the modification data; and
Step D for outputting data indicating the determination result;
A program that executes
JP2017032058A 2017-02-23 2017-02-23 Code image data generation method and code authenticity determination method Active JP6231233B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2017032058A JP6231233B1 (en) 2017-02-23 2017-02-23 Code image data generation method and code authenticity determination method
PCT/JP2018/003828 WO2018155148A1 (en) 2017-02-23 2018-02-05 Method for generating image data for code, and method for determining authenticity of code
TW107106180A TW201835816A (en) 2017-02-23 2018-02-23 Method for generating image data of a code, and method for determining authenticity or false of the code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017032058A JP6231233B1 (en) 2017-02-23 2017-02-23 Code image data generation method and code authenticity determination method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017185914A Division JP6284676B1 (en) 2017-09-27 2017-09-27 Code image data generation method and code authenticity determination method

Publications (2)

Publication Number Publication Date
JP6231233B1 JP6231233B1 (en) 2017-11-15
JP2018136833A true JP2018136833A (en) 2018-08-30

Family

ID=60321108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017032058A Active JP6231233B1 (en) 2017-02-23 2017-02-23 Code image data generation method and code authenticity determination method

Country Status (3)

Country Link
JP (1) JP6231233B1 (en)
TW (1) TW201835816A (en)
WO (1) WO2018155148A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019095953A (en) * 2017-11-21 2019-06-20 小林クリエイト株式会社 Two-dimensional code for preventing forgery of printed matter and printed matter having two-dimensional code
JP6473899B1 (en) 2017-12-29 2019-02-27 株式会社I・Pソリューションズ Composite code pattern, generating device, reading device, method and program
SG10201801042QA (en) * 2018-02-07 2019-09-27 I Sprint Innovations Pte Ltd Two-Dimensional Barcode Generating Method, Verification Method, Server and Two-Dimensional Barcode
JP2019196189A (en) * 2018-05-08 2019-11-14 凸版印刷株式会社 Package and implementation method of website campaign

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05346979A (en) * 1992-06-12 1993-12-27 Oki Electric Ind Co Ltd Ticket issuing system
JP2004021398A (en) * 2002-06-13 2004-01-22 Toyo Commun Equip Co Ltd Prepaid card
JP2004054594A (en) * 2002-07-19 2004-02-19 Dainippon Printing Co Ltd Authentication system and method, authentication program, and paper medium
JP2005352879A (en) * 2004-06-11 2005-12-22 Gijutsu Transfer Service:Kk System and method for information verification by two-dimensional code
JP2006102364A (en) * 2004-10-08 2006-04-20 Le Tekku:Kk Semiconductor device for controlling game machine, and inspection apparatus and inspection method therefor
JP2006285592A (en) * 2005-03-31 2006-10-19 Sumitomo Mitsui Banking Corp Contract alteration preventing system, and contract alteration preventing method
JP2007293836A (en) * 2007-03-30 2007-11-08 Denso Wave Inc Method for reading information code printing medium and system for reading information code printing medium
JP2008035164A (en) * 2006-07-28 2008-02-14 Fuji Xerox Co Ltd Image processing system, image processing device, and image processing program
JP2008077240A (en) * 2006-09-19 2008-04-03 Omron Corp Marking processing system for code for article management, code decision system, article management system, marking method for code for article management, code decision method and information display object
JP2008129870A (en) * 2006-11-21 2008-06-05 Sony Corp Ticket issue management system, provision server, and usage management server
CN104392260A (en) * 2014-12-17 2015-03-04 肖学静 Two-dimensional code anti-counterfeiting method based on additional information
JP2016019286A (en) * 2014-07-09 2016-02-01 ゼロックス コーポレイションXerox Corporation Strengthening of bar code by secondary coding for forgery prevention

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4585202B2 (en) * 2004-02-03 2010-11-24 アライ株式会社 Two-dimensional code, two-dimensional code forming apparatus and forming method, and two-dimensional code reading apparatus and reading method
CN102236810A (en) * 2010-04-23 2011-11-09 富港电子(昆山)有限公司 QR (Quick Response) code with hidden codes, and formation and identification methods of hidden codes
WO2016049062A1 (en) * 2014-09-23 2016-03-31 Sys-Tech Solutions, Inc. Methods and a system for verifying the authenticity of a mark

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05346979A (en) * 1992-06-12 1993-12-27 Oki Electric Ind Co Ltd Ticket issuing system
JP2004021398A (en) * 2002-06-13 2004-01-22 Toyo Commun Equip Co Ltd Prepaid card
JP2004054594A (en) * 2002-07-19 2004-02-19 Dainippon Printing Co Ltd Authentication system and method, authentication program, and paper medium
JP2005352879A (en) * 2004-06-11 2005-12-22 Gijutsu Transfer Service:Kk System and method for information verification by two-dimensional code
JP2006102364A (en) * 2004-10-08 2006-04-20 Le Tekku:Kk Semiconductor device for controlling game machine, and inspection apparatus and inspection method therefor
JP2006285592A (en) * 2005-03-31 2006-10-19 Sumitomo Mitsui Banking Corp Contract alteration preventing system, and contract alteration preventing method
JP2008035164A (en) * 2006-07-28 2008-02-14 Fuji Xerox Co Ltd Image processing system, image processing device, and image processing program
JP2008077240A (en) * 2006-09-19 2008-04-03 Omron Corp Marking processing system for code for article management, code decision system, article management system, marking method for code for article management, code decision method and information display object
JP2008129870A (en) * 2006-11-21 2008-06-05 Sony Corp Ticket issue management system, provision server, and usage management server
JP2007293836A (en) * 2007-03-30 2007-11-08 Denso Wave Inc Method for reading information code printing medium and system for reading information code printing medium
JP2016019286A (en) * 2014-07-09 2016-02-01 ゼロックス コーポレイションXerox Corporation Strengthening of bar code by secondary coding for forgery prevention
CN104392260A (en) * 2014-12-17 2015-03-04 肖学静 Two-dimensional code anti-counterfeiting method based on additional information

Also Published As

Publication number Publication date
WO2018155148A1 (en) 2018-08-30
TW201835816A (en) 2018-10-01
JP6231233B1 (en) 2017-11-15

Similar Documents

Publication Publication Date Title
JP6231233B1 (en) Code image data generation method and code authenticity determination method
US10235618B2 (en) Authentication feature in a barcode
JP6470646B2 (en) Method for generating secure barcode, barcode generation system, and two-dimensional barcode
US8750556B2 (en) Watermark systems and methods
JP2017182835A (en) Optical code, creation method of optical code, reading method of optical code, and barcode reading device
JP2017174456A (en) Monitor for portable article
CN105074732A (en) Information code, information code generation method, information code reader device, and information code usage system
CN106408063B (en) Printing medium, method of generating the same, method of scanning the same, and label
US20200372628A1 (en) Methods and systems to ensure correct printing plate usage for encoded signals
CN108351956B (en) Method and system for printing forensic-encoded 2D barcodes
JP6284676B1 (en) Code image data generation method and code authenticity determination method
JP2020034984A (en) Manufacturing method of product, product, manufacturing apparatus of product, determination apparatus and program
CN107992907B (en) Two-dimensional code anti-counterfeiting printer, platform and method for distinguishing authenticity of goods and tracking goods
KR20140040231A (en) Method and device for authenticating a tag
JP2009042826A (en) Two dimensional code creation system and two dimensional code printing medium
CN111670429B (en) Object ID centric workflow
CN109313701B (en) Method, imaging device and system for generating a measure of the authenticity of an object
CN207607245U (en) Thermal sensitive label printer and two-dimension code anti-counterfeit system
TWI505649B (en) System and method for encoding and decoding two dimensional barcode
TWI714012B (en) System and method of three-dimensional anti-counterfeiting two-dimensional barcode
TWM544091U (en) Anti-counterfeiting structure of two-dimensional bar code
TWI770123B (en) Information processing apparatus, program, information processing method and information processing system
US20230044781A1 (en) Validation of Security Device Authentication in a Decentralized Network
JP2021056613A (en) Two-dimensional code, print object having the same printed thereon, two-dimensional code generator, two-dimensional code reader, two-dimensional code generation method, two-dimensional code reading method, two-dimensional code generation program, two-dimensional code reading program, computer readable recording medium and recorded device
JP2022078565A (en) Printed matter set, authenticity determination method, and determination system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170303

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20170303

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20170330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170425

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170621

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170704

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170927

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20171005

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171018

R150 Certificate of patent or registration of utility model

Ref document number: 6231233

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250