WO2018168321A1 - Information processing device, program, information processing method, and information processing system - Google Patents

Information processing device, program, information processing method, and information processing system Download PDF

Info

Publication number
WO2018168321A1
WO2018168321A1 PCT/JP2018/005463 JP2018005463W WO2018168321A1 WO 2018168321 A1 WO2018168321 A1 WO 2018168321A1 JP 2018005463 W JP2018005463 W JP 2018005463W WO 2018168321 A1 WO2018168321 A1 WO 2018168321A1
Authority
WO
WIPO (PCT)
Prior art keywords
printer
information
code image
code
information processing
Prior art date
Application number
PCT/JP2018/005463
Other languages
French (fr)
Japanese (ja)
Inventor
広道 須賀
仁 葛生
巌 尾形
田中 肇
Original Assignee
サトーホールディングス株式会社
株式会社マイクロ・テクニカ
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 サトーホールディングス株式会社, 株式会社マイクロ・テクニカ filed Critical サトーホールディングス株式会社
Priority to JP2019505795A priority Critical patent/JPWO2018168321A1/en
Publication of WO2018168321A1 publication Critical patent/WO2018168321A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • the present invention relates to an information processing apparatus, a program, an information processing method, and an information processing system.
  • code images are printed on various products distributed around the world or on the packaging of products.
  • a code image is, for example, a one-dimensional barcode, a two-dimensional barcode, a human-readable character (hereinafter referred to as “human readable character”), or a combination thereof.
  • Japanese Unexamined Patent Application Publication No. 2016-19286 discloses a technique for preventing duplication of a two-dimensional code.
  • Japanese Patent Application Laid-Open No. 2016-19286 discloses a method of combining a secondary pattern including a minute shape with a two-dimensional code pattern. The micro features are large enough to be detected by a bar code scanner, but are unlikely to be replicated by standard replication devices. This makes it difficult to duplicate the two-dimensional code.
  • Japanese Patent Laid-Open No. 2016-19286 cannot prevent a two-dimensional code from being duplicated by a duplication device (for example, a high-resolution duplication device) that can decode the secondary pattern. Therefore, the anti-counterfeit effect of the code image is insufficient.
  • An object of the present invention is to improve the forgery prevention effect of the code image.
  • An aspect of the present invention provides: An information processing apparatus that can be connected to a printer, Means for obtaining printer information relating to a printer used for printing; Means for generating a code image corresponding to the code image based on the acquired printer information; Is an information processing apparatus.
  • the forgery prevention effect of the code image can be improved.
  • FIG. 2 is a block diagram illustrating a configuration of the printer in FIG. 1.
  • the block diagram which shows the structure of the server of FIG. 3 is a diagram illustrating a data structure of a printer information database according to the first embodiment.
  • FIG. 6 is a sequence diagram of printer information update processing according to the first embodiment.
  • FIG. 3 is a sequence diagram of a code image printing process according to the first embodiment.
  • FIG. 3 is a diagram schematically illustrating a flow until a code image based on printer information according to the first embodiment is generated.
  • the figure which shows the 1st example of the code table of 1st Embodiment typically.
  • the figure which shows the 2nd example of the code table of 1st Embodiment typically.
  • the figure which shows the 3rd example of the code table of 1st Embodiment typically.
  • the flowchart of the authenticity determination process of 1st Embodiment The figure which shows the example of a screen of the authentication determination process of FIG.
  • FIG. 9 is a block diagram illustrating a configuration of a printer according to a third embodiment.
  • FIG. 1 is a diagram illustrating a configuration of an information processing system according to the first embodiment.
  • the information processing system 1 includes a smartphone 10, a client terminal 30, a printer 40, and a server 60.
  • the smartphone 10, the client terminal 30, and the server 60 are examples of information processing apparatuses.
  • the smartphone 10, the client terminal 30, the printer 40, and the server 60 are connected to be communicable with each other via a network NW, wireless communication, or wired communication.
  • FIG. 2 is a block diagram showing a configuration of the smartphone of FIG.
  • the smartphone 10 includes a storage device 11, a processor 12, an input / output interface 13, a communication interface 14, and a camera 15.
  • the storage device 11 is configured to store a program and data.
  • the storage device 11 is, for example, a combination of ROM (Read Only Memory), RAM (Random Access Memory), and storage (for example, flash memory or hard disk).
  • the programs include, for example, the following programs.
  • OS Operating System
  • Application program that executes information processing (for example, authentication application)
  • the data includes, for example, the following data.
  • -Database referenced in information processing-Data obtained by executing information processing that is, information processing execution result
  • the processor 12 is configured to realize the function of the smartphone 10 by starting a program stored in the storage device 11.
  • the processor 12 is an example of a computer.
  • the input / output interface 13 is configured to receive an instruction from the user of the smartphone 10 from an input device connected to the smartphone 10 and to output information to an output device connected to the smartphone 10.
  • the input device is, for example, a soft key displayed on the touch panel, a microphone, and a combination thereof.
  • the output device is, for example, a display, a speaker, and a combination thereof.
  • the communication interface 14 is configured to control communication with other devices.
  • the camera 15 is configured to capture an image and generate image data corresponding to the captured image.
  • FIG. 3 is a block diagram showing the configuration of the client terminal of FIG.
  • the client terminal 30 includes a storage device 31, a processor 32, an input / output interface 33, and a communication interface 34.
  • the storage device 31 is configured to store programs and data.
  • the storage device 31 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
  • the programs include, for example, the following programs.
  • An OS program An application (for example, a web browser) program that executes information processing An application that generates an image to be printed (hereinafter referred to as an “image generation application”)
  • the data includes, for example, the following data.
  • -Database referenced in information processing-Data obtained by executing information processing that is, information processing execution result
  • the processor 32 is configured to realize the function of the client terminal 30 by starting a program stored in the storage device 31.
  • the processor 32 is an example of a computer.
  • the input / output interface 33 is configured to receive an instruction from the user of the client terminal 30 from an input device connected to the client terminal 30 and to output information to an output device connected to the client terminal 30.
  • the input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof.
  • the output device is, for example, a display.
  • the communication interface 34 is configured to control communication with other devices.
  • FIG. 4 is a block diagram showing the configuration of the printer of FIG.
  • the printer 40 includes a processor 42, a storage device 41, an input / output interface 43, a communication interface 44, a head drive circuit 47a, a print head 47b, a roller drive circuit 48a, and a conveyance roller. 48b, a cutter driving circuit 49a, and a cutter 49b.
  • the storage device 41 is configured to store programs and data.
  • the storage device 41 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
  • the programs include, for example, the following programs. -OS program-Firmware program for controlling hardware via each circuit-Application program for executing print processing
  • the data includes, for example, the following data. ⁇ Setting information for hardware control
  • the processor 42 is configured to realize the function of the printer 40 by starting a program stored in the storage device 41.
  • the processor 42 is an example of a computer. Specifically, the processor 42 activates a firmware program to drive the conveyance roller 48b via the roller drive circuit 48a, drive the print head 47b via the head drive circuit 47a, and drive the cutter.
  • the cutter 49b is driven through the circuit 49a.
  • the input / output interface 43 is configured to receive a user instruction of the printer 40 from an input device of the printer 40 and to output information to an output device of the printer 40.
  • the input device is, for example, a hard key, a touch panel, or a combination thereof.
  • the output device is, for example, a display, a speaker, or a combination thereof.
  • the communication interface 44 is configured to control communication with other devices.
  • the print head 47b is configured to print an image on a print medium.
  • the print head 47b is, for example, a thermal head.
  • the conveyance roller 48b is configured to convey a print medium.
  • the conveyance roller 48b is, for example, a platen roller.
  • the cutter 49b is configured to cut a print medium on which an image is printed.
  • FIG. 5 is a block diagram showing the configuration of the server of FIG.
  • the server 60 includes a storage device 61, a processor 62, an input / output interface 63, and a communication interface 64.
  • the storage device 61 is configured to store programs and data.
  • the storage device 61 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
  • the programs include, for example, the following programs.
  • -OS program-Application program for realizing the functions of the server 60
  • the data includes, for example, the following data.
  • a database that is referenced in information processing for example, a printer information database (described later)
  • -Data obtained by executing information processing that is, information processing execution results
  • the processor 62 is configured to realize the function of the server 60 by starting a program stored in the storage device 61.
  • the processor 62 is an example of a computer.
  • the input / output interface 63 is configured to receive an instruction from an operator of the server 60 from an input device connected to the server 60 and to output information to an output device connected to the server 60.
  • the input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof.
  • the output device is, for example, a display.
  • the communication interface 64 is configured to control communication with other devices.
  • FIG. 6 is a diagram illustrating a data structure of the printer information database according to the first embodiment.
  • the printer information database includes a “printer ID” field, a “use amount” field, a “replacement count” field, and an “installation location” field. Each field is associated with each other.
  • printer ID for identifying the printer 40 is stored.
  • the printer ID is a serial number of the printer 40, for example.
  • the “use amount” field information indicating the use amount of the printer 40 is stored.
  • the information in the “use amount” field changes every time the printer 40 is used.
  • Information in the “use amount” field is updated according to information transmitted from the printer 40.
  • the usage amount includes, for example, at least one of the following. -Print media transport distance-Platen roller rotation distance-Number of times the cutter 49b is driven
  • Information indicating the number of replacements of the components of the printer 40 is stored in the “number of replacements” field.
  • the information indicating the number of exchanges includes, for example, at least one of the following.
  • Information in the “number of exchanges” field is updated according to information transmitted from the printer 40. -Print head 47b replacement count-Conveyor roller 48b replacement count-Cutter 49b replacement count
  • Information indicating the installation location of the printer 40 is stored in the “installation location” field.
  • the information indicating the installation location includes, for example, at least one of the following.
  • Information in the “installation location” field is updated in accordance with an instruction from the user of the printer 40. ⁇ Country code ⁇ Postal code ⁇ Address ⁇ Code indicating the department that uses the printer 40
  • FIG. 7 is a diagram illustrating a data structure of the reference information database according to the first embodiment.
  • the reference information database stores information (hereinafter referred to as “reference information”) that serves as a reference for authenticity determination. As shown in FIG. 7, the reference information database includes a “product code” field and a “reference information” field. Each field is associated with each other.
  • a product code for identifying a product that is a reference for authenticity determination is stored.
  • reference code image a code image serving as a reference for authenticity determination is stored.
  • FIG. 8 is a sequence diagram of printer information update processing according to the first embodiment.
  • the printer information update process of FIG. 8 is started when an event (hereinafter referred to as “update event”) that accompanies updating of the printer information database (FIG. 6) occurs.
  • the update event includes, for example, at least one of the following. -Image printing-Cutter drive-Replacement of parts of printer 40 (at least one of thermal head, cutter, and platen roller)-Specification of installation location by user of printer 40-Initial printer 40 by user of printer 40 Registration ⁇ Network connection of printer 40 ⁇ Power-on of printer 40 ⁇ Update instruction by user operation
  • the printer 40 updates the printer information (S1400). Specifically, when receiving an image transmitted from the client terminal 30, the processor 42 prints the image on the print medium, and then indicates the conveyance distance of the print medium in the printer information stored in the storage device 41. Update information.
  • the printer 40 executes a printer information update request (S1401).
  • the processor 42 transmits an update request to the server 60 via the communication interface 44.
  • the update request includes a printer ID for identifying the printer 40 and printer information stored in the storage device 41.
  • This printer information includes information indicating the transport distance of the print medium updated in step S1400.
  • step S1401 when the client terminal 30 executes step S1401, the processor 32 receives information indicating the installation location of the printer 40 in accordance with an instruction from the user of the client terminal 30. Next, the processor 32 transmits an update request to the server 60 via the communication interface 34.
  • the update request includes a printer ID for identifying the printer 40 and information indicating the installation location of the printer 40.
  • the server 60 updates the printer information (S1600). Specifically, the processor 62 specifies a record associated with the printer ID included in the update request transmitted in step S1401 in the printer information database (FIG. 6). Next, the processor 62 stores information indicating the transport distance of the print medium included in the update request transmitted in step S1401 in the “usage” field of the identified record. As a result, the printer information stored in the storage device 61 is updated.
  • FIG. 9 is a sequence diagram of the code image printing process according to the first embodiment.
  • FIG. 10 is a diagram illustrating a screen example of the process of FIG.
  • the client terminal 30 executes acquisition of product information (S1310). Specifically, the processor 32 displays the screen P100 (FIG. 10) on the display.
  • the screen P100 includes input field objects F100a and F100b and a button object B100.
  • the input field object F100a is a field for designating product information relating to a product to which a print medium on which a code image is printed is attached.
  • the processor 32 specifies the specified information (product code, date of manufacture, valid Product information including a deadline, a lot number, and a product serial code) is received.
  • the input field object F100b is a field for designating the printer 40 used for printing.
  • the processor 32 receives the designated printer ID.
  • the client terminal 30 executes a printer information request (S1311). Specifically, when the user of the client terminal 30 designates the button object B100 on the screen P100 (FIG. 10), the processor 32 transmits a printer information request to the server 60.
  • the printer information request includes the printer ID designated by the input field object F100b.
  • the server 60 transmits a printer information response (S1610).
  • the processor 62 specifies a record associated with the printer ID included in the printer information request transmitted from the client terminal 30 in step S1311 in the printer information database (FIG. 6).
  • the processor 62 acquires printer information (information in the “use amount” field, the “number of replacements” field, and the “installation location” field) of the specified record.
  • the processor 62 transmits a printer information response to the client terminal 30.
  • the printer information response includes the acquired printer information.
  • the client terminal 30 executes code image generation (S1312). Specifically, the processor 32 generates a code image based on the product information acquired in step S1310. Next, the processor 32 generates a code image based on the printer information included in the printer information response transmitted from the server 60 in step S1610.
  • the generated code image includes encoded product information and forgery prevention information based on printer information. A method for generating the code image will be described later.
  • the code includes, for example: ⁇ One-dimensional code (one-dimensional barcode as an example) Two-dimensional code (for example, two-dimensional code, matrix code, or stack code) ⁇ Encrypted string ⁇ Combination of the above
  • the processor 32 displays the screen P101 (FIG. 10) on the display.
  • the screen P101 includes an image object IMG101 and a button object B101.
  • the image object IMG101 is a preview image of the generated code image.
  • the client terminal 30 executes a print request (S1313). Specifically, when the user of the client terminal 30 designates the button object B101 on the screen P101 (FIG. 10), the processor 32 transmits a print request to the printer 40.
  • the print request includes a print command for printing a reference code image and a print image (for example, an image of a character, a graphic, or a combination thereof).
  • the printer 40 performs printing (S1410).
  • the processor 42 sends control signals to the head drive circuit 47a, the roller drive circuit 48a, and the cutter drive circuit 49a based on the print command included in the print request transmitted from the client terminal 30 in step S1313.
  • the head drive circuit 47a, the roller drive circuit 48a, and the cutter drive circuit 49a drive the print head 47b, the transport roller 48b, and the cutter drive circuit 49a based on the control signal transmitted from the processor 42, respectively.
  • the code image generated in step S1312 is printed on the print medium. Anti-counterfeiting information is embedded in the printed code image.
  • the client terminal 30 executes a registration request (S1314). Specifically, the processor 32 transmits a registration request to the server 60.
  • the registration request includes the code image generated in step S1312.
  • This code image is a code image (hereinafter referred to as “reference code image”) that serves as a reference for authentication.
  • the server 60 executes reference code image registration (S1611). Specifically, the processor 62 specifies the product code for identifying the product corresponding to the reference code image by decoding the reference code image included in the registration request transmitted from the client terminal 30 in step S1314. Next, the processor 62 updates the reference information database (FIG. 7). The following information is stored in each field of the reference information database. The specified product code is stored in the “product code” field. A reference code image is stored in the “reference information” field.
  • FIGS. 11A to 11E are explanatory diagrams of a first example of the code image according to the first embodiment.
  • the first example of the code image is an example in which a mark is added to the inside of the code.
  • a DataMatrix code which is a kind of two-dimensional code
  • a two-dimensional code other than the DataMatrix code for example, a QR (Quick Response) code, VeriCode, PDF417 code, Aztec code, or MaxiCode is also used in the same manner as the DataMatrix code.
  • the two-dimensional code 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 a numerical sequence of 0 and 1.
  • a mark M black dot
  • the mark M is an example of forgery prevention information.
  • the position (coordinates) to which the mark M is added is determined based on the combination of printer information.
  • the code image includes a code parameter indicating a value (hereinafter referred to as “coordinate value”) indicating a position where the mark M is added.
  • two marks M are added inside the code area.
  • a plurality of marks M may be added.
  • a black dot is added to a bright cell
  • a white dot is added to a dark cell.
  • the code image includes code parameters indicating the coordinate values of the two marks M.
  • the code image includes code parameters indicating the coordinate values of the three marks M.
  • the mark M is not a point but a circle.
  • the shape of the mark M to be added may be a shape other than a point.
  • two circle marks M are added in the code area.
  • a black circle is added to a bright cell
  • a white circle is added to a dark cell.
  • the mark M may be, for example, a triangle, a quadrangle, a star, other symbols, characters, or a combination thereof.
  • the shape may be different depending on the marks.
  • the code image includes code parameters indicating the shape of individual marks.
  • (1-3-2-2) Second Example of Code Image A second example of the code image of the first embodiment will be described.
  • 12A to 12C are explanatory diagrams of a second example of the code image according to the first embodiment.
  • the second example of the code image is an example in which one or more marks are added to the outside of the code or a boundary portion with the outside of the code.
  • FIG. 12A shows an example in which a specific portion in the code alignment pattern (L-shaped thick line on the outer periphery of the code) is outlined.
  • white marks M are added to three positions on the alignment pattern.
  • the mark M is an example of forgery prevention information. In this way, one or more marks M may be added to the alignment pattern.
  • FIG. 12B shows an example in which three marks M (black dots) are added around the alignment pattern. These marks M are adjacent to the alignment pattern.
  • FIG. 12C shows an example in which three marks M (black dots) are added apart around the alignment pattern. As in these examples, the printing position of the mark M may be outside the code area.
  • the code parameter includes information on the elements of the code image (the number of marks, the shape of each mark, and the coordinate value (X coordinate and Y coordinate) in the image of each mark). .
  • the processor 32 determines a code parameter according to a specific rule based on the product information acquired in step S1310 and the printer information acquired in step S1312.
  • the mark M to be added is smaller than the size of each cell included in the code.
  • a much smaller number (for example, less than 1/10) of marks M is added compared to the number of bright cells and dark cells. For this reason, there is no trouble in reading the code even after the mark M is given.
  • the number of cells (hereinafter referred to as “data cells”) in the two-dimensional code is N
  • the number of added marks is n.
  • N varies depending on the type of code, but is 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.
  • the code parameter includes n coordinate values.
  • the processor determines n coordinate values based on the code parameter, and adds n marks at the position indicated by the n coordinate values.
  • the combination of n coordinate values is determined by the printer information.
  • the combination of coordinate values corresponds, for example, one-to-one with the printer information.
  • the number of marks M may be four or more. As the number of marks M is larger, the following effects can be obtained. -The forgery prevention effect can be improved. Even if some marks cannot be recognized due to dirt or defects, the accuracy of authenticity determination can be improved.
  • a character string (an example of a character mark) made up of numbers, alphabets, and symbols is added to the upper periphery of the code.
  • the content, position, and size of the character mark CM are different from those in the example of FIG. 13A and are inclined clockwise.
  • the character mark CM is an example of forgery prevention information.
  • the processor 32 may change at least one of the position, the rotation angle, and the font of the character mark CM according to the printer information.
  • the code parameter includes information indicating the content of the character mark CM, the coordinate value, and the font.
  • the code includes a human readable character in addition to the two-dimensional code.
  • the human readable character is an example of forgery prevention information.
  • the processor 32 determines the relative positions of the two-dimensional code and the human readable character in the code image based on the product information and the printer information.
  • the code parameter includes information indicating a displacement amount of at least one of the two-dimensional code and the human readable character from a predetermined reference position in the code image.
  • the processor 32 generates the code image of FIG. 14A.
  • This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
  • the code image includes a two-dimensional code and a human readable character composed of a character string of four lines. Human readable characters are placed next to the two-dimensional code. Human readable characters represent (01) product code, (21) product serial code, (10) lot number, and (17) expiration date in order from the top. This is the same as the information indicated by the two-dimensional code.
  • the display mode of human readable characters is various, and is not limited to the illustrated mode.
  • the processor 32 converts the code image of FIG. 14A into the code image of FIG. 14B. Specifically, the processor 32 changes the relative position between the two-dimensional code and the human readable character according to the printer information. For example, the processor 32 changes the position of the human readable character in a different manner for each combination of information in the “use amount” field, the “number of exchanges” field, and the “installation location” field acquired in step S1610.
  • FIG. 14B shows an example in which a human readable character is shifted upward by 0.5 mm (+ Y direction).
  • FIG. 14C shows an example in which the human readable character is shifted by 0.5 mm in the left direction ( ⁇ X direction).
  • FIG. 14D shows an example in which the human readable character is shifted by 0.5 mm in the downward direction ( ⁇ Y direction) and by 1 mm in the right direction (+ X direction).
  • the code images in FIGS. 14B to 14D are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
  • the processor 32 may change the relative position between the code and the human readable character according to the printer information.
  • the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction.
  • the processor 32 may shift the position of the code in the same manner instead of the human readable character.
  • the processor 32 may also shift both code and human readable characters. In this case, since the number of code parameters increases, the forgery prevention effect can be further improved.
  • the processor 32 performs a mark (for example, a symbol, a graphic, or the like) inside or outside the code as in the first and second examples of the code image. Character or character string).
  • the mark is an example of forgery prevention information.
  • FIG. 15A shows an example in which both human readable characters and dots are at the reference positions.
  • the code image in FIG. 15A is a code image generated by referring to only the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
  • FIG. 15B 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. 15C 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 8 mm and leftward by 5 mm from the respective reference positions.
  • FIG. 15D 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. 15C 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 8 mm and leftward by 5 mm from the respective reference positions.
  • FIG. 15D 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
  • FIGS. 15B to 15E show 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.
  • the code images in FIGS. 15B to 15E are code images based on the printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
  • the processor 32 changes both the relative position of the code and the human readable character and the position of the mark according to the printer information. Thereby, the forgery prevention effect can be improved more.
  • 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.
  • the processor 32 determines the position of the code based on the printer information. Specifically, the processor 32 generates the code image of FIG. 16A.
  • This code image includes a rectangular frame surrounding the periphery of the code.
  • This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
  • FIG. 16B shows an example in which the two-dimensional code is shifted 0.2 mm to the left and 0.2 mm upward from the reference position.
  • FIG. 16C shows an example in which the two-dimensional code is shifted 0.2 mm to the right and 0.2 mm downward from the reference position.
  • the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction from the reference position in the code image for the two-dimensional code.
  • the displaced two-dimensional code is an example of forgery prevention information.
  • the code images in FIGS. 16B and 16C are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
  • the processor 32 determines the position of the human readable character based on the printer information.
  • the human readable character is an example of forgery prevention information.
  • the processor 32 generates the code image of FIG. 17A.
  • This code image includes a rectangular frame surrounding the human readable character region.
  • This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
  • the processor 32 changes the relative positional relationship between the frame and the human readable character area based on the printer information.
  • FIG. 17B 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. 17C 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.
  • the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction from the reference position in the image for the human readable character.
  • the code images in FIGS. 17B and 17C are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
  • FIG. 18A is a flowchart showing a method of generating the code image of FIG.
  • at least one dot mark is added inside or outside a code area.
  • the processor 32 generates a code image corresponding to the product information acquired in step S1310 (S13120).
  • the processor 32 calculates a hash value based on the printer information transmitted from the server 60 in step S1610 (step S13121).
  • the hash value is a value that directly represents the contents of the printer information.
  • the information amount of the hash value is smaller than the printer information.
  • the processor 32 calculates a hash value by applying a hash function (for example, a cryptographic hash function) for obtaining a hash value from the original information to the printer information.
  • the hash function is preferably designed to generate a hash value that is difficult to estimate from the printer information.
  • the processor 32 determines the coordinate value of the dot mark corresponding to the printer information based on the calculated hash value (S13122). Specifically, the processor 32 refers to a code table (for example, a lookup table) prepared in advance and determines a coordinate value indicating a position where a dot mark is to be added in the code image (step S221).
  • a code table for example, a lookup table
  • the code table can be created so as to satisfy the following conditions, for example.
  • the number of dot marks is equal to or less than a predetermined upper limit number (for example, 4) (that is, making the dot marks less noticeable by limiting the number of dot marks).
  • the density of the dot marks is below a predetermined value (that is, making the dot marks less noticeable by avoiding adding a plurality of dot marks at adjacent positions). For example, only one mark is added in a 5 ⁇ 5 cell area.
  • the burden of reading the code image is reduced (that is, the code image can be read even by a general reading device having no forgery prevention function).
  • the hamming distance between the dot patterns is a certain value or more (that is, avoiding the similar arrangement so that the anti-counterfeit effect is maintained even if the printing accuracy of some dot marks is low) .
  • a code table that satisfies the above conditions is stored in the storage device 31 in advance.
  • step S13122 the processor 32 places a dot mark at the position indicated by the determined coordinate value in the code image generated in step S13120 (S13123). Thereby, a code image based on the printer information is generated.
  • FIG. 18B is a diagram schematically illustrating a flow until a code image based on the printer information according to the first embodiment is generated.
  • the processor 32 uses the hash function to calculate a hash value having a smaller amount of information than the printer information from the printer information.
  • the processor 32 refers to the code table to determine a combination of dot mark coordinate values from the hash value.
  • the processor 32 generates a code image by placing a dot mark at the position indicated by the determined coordinate value.
  • the authenticity determination process can be realized using a hash value having a relatively small amount of information. Therefore, it is possible to reduce the processing amount of the authenticity determination process.
  • FIG. 18C is a diagram schematically illustrating a first example of the code table of the first embodiment.
  • the first example of the code table includes a “hash value” field and a “coordinate value” field. Each field is associated with each other. A hash value is stored in the “hash value” field. A combination of a plurality of coordinate values is stored in the “coordinate value” field. Thereby, a code image including a dot mark is obtained.
  • FIG. 18D is a diagram schematically illustrating a second example of the code table of the first embodiment.
  • the second example of the code table includes a “hash value” field and a “displacement value” field. Each field is associated with each other. A hash value is stored in the “hash value” field. A displacement value is stored in the “displacement value” field.
  • This code table can be designed to satisfy the following conditions, for example.
  • ⁇ Changes in the layout can be recognized visually or by machine reading, and are inconspicuous (for example, values in the range of about 0 to 2.5 mm in 0.5 mm increments for each of the ⁇ X and ⁇ Y directions) And).
  • -Changes in the layout pattern are not sequential (that is, it is difficult to estimate the layout pattern from information such as a serial number).
  • the layout pattern is evenly distributed (that is, human readable characters are not frequently placed in a specific place). According to this, a code image including a human readable character is obtained.
  • FIG. 18E is a diagram schematically illustrating a third example of the code table of the first embodiment.
  • the third example of the code table stores information indicating the correspondence between the hash value and information for converting the layout of the character string or symbol (hereinafter referred to as “layout conversion information”). Is done.
  • the third example of the code table includes a “hash value” field and a “layout conversion information” field. Each field is associated with each other. A hash value is stored in the “hash value” field.
  • the “Layout conversion information” field the coordinate value of the dot mark and the layout of the character string or symbol (for example, rotation, shift, font typeface, font size, font spacing, and combinations thereof) are converted. A combination of information to be stored is stored.
  • This code table can be designed to satisfy the following conditions, for example.
  • the mode of conversion is not sequential (that is, the layout pattern is difficult to be estimated from information such as a serial number). -The mode of conversion is evenly distributed (that is, a specific mode does not appear frequently). The modes of conversion are not similar to each other (that is, the effect of preventing forgery is maintained even if the printing accuracy is low). Thereby, a code image including a combination of a dot mark and a character string or a symbol is obtained.
  • FIG. 19 is a flowchart of authentication processing according to the first embodiment.
  • FIG. 20 is a diagram illustrating a screen example of the authenticity determination process of FIG.
  • the smartphone 10 executes acquisition of a code image (S1120). Specifically, the processor 12 displays the screen P110 (FIG. 20) on the display. As shown in FIG. 20, the screen P110 includes an image object IMG110.
  • the image object IMG110 is a preview image of a code image (hereinafter referred to as “target code image”) captured by the camera 15.
  • the target code image is, for example, a code image printed on a print medium attached to a product.
  • the processor 12 stores the target code image in the storage device 11.
  • step S1120 the processor 12 executes an authenticity determination request (S1121). Specifically, the processor 12 transmits an authentication determination request to the server 60.
  • the authenticity determination request includes the target code image acquired in step S1120.
  • the server 60 executes authenticity determination (S1620). Specifically, the processor 62 specifies a product code for identifying a product to be determined by decoding the target code image transmitted from the smartphone 10 in step S1121. Next, the processor 62 refers to the reference information database (FIG. 7) updated in step S1611 and specifies a reference code image associated with the specified product code. Next, the processor 62 compares the identified reference code image with the target code image included in the determination request transmitted in S1121. When the reference code image matches the target code image, the processor 62 determines that the target code image is “authentic”. On the other hand, when the reference code image does not match the target code image, the processor 62 determines that the target code image is “counterfeit”.
  • the server 60 executes an authenticity determination response (S1621). Specifically, the processor 62 transmits an authentication determination response to the smartphone 10.
  • the authenticity determination response includes the determination result (“authentic” or “counterfeit”) in step S1620.
  • the smartphone 10 After step S1621, the smartphone 10 performs presentation of the determination result (step S1122). Specifically, the processor 12 displays the screen P111 (FIG. 20) on the display. As shown in FIG. 20, the determination result included in the authentication determination response transmitted from the server 60 in step S1621 is displayed on the screen P111. Thereby, the user of the smart phone 10 can confirm the authenticity of the code image attached to the product.
  • Second Embodiment A second embodiment will be described.
  • the second embodiment is an example in which the printer 40 executes a registration request before printing. A description similar to that of the first embodiment is omitted.
  • FIG. 21 is a sequence diagram of the code image printing process according to the second embodiment.
  • FIG. 22 is a diagram illustrating a screen example of the process of FIG.
  • FIG. 23 is a diagram illustrating a data structure of a reference information database according to the second embodiment.
  • the client terminal 30 executes the print request (S2300) after executing step S1310 as in the first embodiment (FIG. 9). Specifically, the processor 32 displays the screen P200 (FIG. 22) on the display. As shown in FIG. 22, the screen P200 includes input field objects F100a and F100b (FIG. 10) and a button object B200. When the user of the client terminal 30 designates the button object B200, the processor 32 transmits a print request to the printer 40. The print request includes product information designated by the input field object F100a.
  • the printer 40 executes acquisition of printer information (S2400). Specifically, the processor 42 acquires the printer information updated in step S1400 (FIG. 8) from the storage device 41.
  • the printer 40 executes a registration request (S2401). Specifically, the processor 42 transmits a registration request to the server 60.
  • the registration request includes product information included in the print request transmitted from the client terminal 30 in step S2300, printer information acquired in step S2400, and a printer ID for identifying the printer 40.
  • the server 60 executes registration of reference information (S2600). Specifically, the processor 62 associates the product information, the printer information, and the printer ID included in the registration request transmitted from the printer 40 in step S2401 and stores them in the storage device 61. Thereby, a reference information database (FIG. 23) is constructed.
  • Reference information is stored in the reference information database.
  • the reference information database includes a “product code” field and a “reference information” field.
  • the “reference information” field includes a “printer ID” field, a “use amount” field, a “replacement count” field, and an “installation location” field. Each field is associated with each other.
  • product information included in the registration request is stored.
  • the “printer ID” field stores the printer ID included in the registration request.
  • Printer information included in the registration request is stored in the “use amount” field, the “replacement count” field, and the “installation location” field.
  • FIG. 24 is a sequence diagram of authenticity determination processing according to the second embodiment.
  • the server 60 executes authenticity determination (S2610). Specifically, the processor 62 decodes the target code image transmitted from the smartphone 10 in step S1121, thereby specifying the product code and printer information for identifying the product to be determined. Next, the processor 62 specifies printer information (hereinafter referred to as “reference printer information”) stored in association with the specified product code in the reference information database (FIG. 23). Next, the processor 62 compares the printer information specified from the target code image with the specified reference printer information. The processor 62 determines that the target code image is authentic when the printer information specified from the target code image matches the reference printer information. On the other hand, when the printer information specified from the target code image does not match the reference printer information, the processor 62 determines that the target code image is counterfeit.
  • printer information hereinafter referred to as “reference printer information”
  • step S2610 the server 60 executes an authenticity determination response (S1621) as in the first embodiment (FIG. 19).
  • the client terminal 30 cannot generate the code image in which the forgery prevention information is embedded (for example, an application having a function of generating the code image is not installed)
  • the forgery prevention effect can be improved.
  • the third embodiment is an example in which the printer 40 executes a registration request after printing. Descriptions similar to those in the first and second embodiments are omitted.
  • FIG. 25 is a block diagram illustrating a configuration of a printer according to the third embodiment.
  • the printer 40 includes a camera 45 in addition to the same configuration as that of the first embodiment (FIG. 4).
  • the camera 45 is arranged so as to face the print surface (surface on which the code image is printed) of the print medium issued from the issue port of the printer 40.
  • the camera 45 is configured to take an image of the printing surface of the printing medium when the conveyance of the printing medium on which the code image is printed is stopped (that is, when the printing medium is issued from the issuing port).
  • the camera 45 may be built in the printer, or may be connected to the outside of the printer 40 via the communication interface 44 or the like.
  • FIG. 26 is a sequence diagram of the code image printing process according to the third embodiment.
  • the client terminal 30 executes steps S1310 and S2300 as in the second embodiment (FIG. 21).
  • the printer 40 executes steps S2400 and S1410 and then acquires a code image (S3400). Specifically, the camera 45 images the printing surface of the printing medium when the conveyance of the printing medium on which the code image is printed is stopped. Next, the processor 42 generates a code image corresponding to the code image printed on the printing surface. Next, the processor 42 stores the generated code image in the storage device 41.
  • the printer 40 executes a registration request (S3401). Specifically, the processor 42 transmits a registration request to the server 60.
  • the registration request includes the printer information acquired in step S2400, the code image acquired in step S3400, and the printer ID for identifying the printer 40.
  • the server 60 executes registration of a reference code image (S3600). Specifically, the processor 62 specifies the product code for identifying the product corresponding to the reference code image by decoding the reference code image included in the registration request transmitted from the printer 40 in step S3401. Next, the processor 62 stores the identified product code and the reference code image in the storage device 61 in association with each other.
  • the forgery prevention effect can be improved even when the client terminal 30 cannot generate a code image (for example, an application having a function of generating a code image is not installed). .
  • the reference code image corresponding to the code image actually printed by the printer 40 since the reference code image corresponding to the code image actually printed by the printer 40 is registered, the reference code image reflects the printing characteristics of the printer 40 (for example, printing density, printing deviation, printing fading). Corresponds to the reference code image. Therefore, the forgery prevention effect can be further improved.
  • Modification 1 is an example in which forgery prevention information based on a combination of printer information and product information is embedded in a code image.
  • the client terminal 30 or the printer 40 of Modification 1 embeds forgery prevention information based on a combination of printer information and product information in a code image.
  • step S1312 the processor 32 receives forgery prevention information based on a combination of the product information acquired in step S1310 and the printer information included in the printer information response transmitted from the server 60 in step S1610. Embed in code image.
  • the information serving as a reference for the code image is increased, so that the effect of preventing forgery can be further improved.
  • FIG. 27 is a diagram illustrating a data structure of a printing authority information database according to the second modification.
  • the printing authority information database is stored in the storage device 61 in advance. As shown in FIG. 27, the printing authority information database includes a “product code” field and a “printer ID” field. Each field is associated with each other.
  • the product code is stored in the “product code” field.
  • the “printer ID” field stores a printer ID for identifying the printer 40 that is permitted to print a code image corresponding to the product code in the “product code” field.
  • the processor 32 of the second modification transmits a printer information request including the product code acquired in S1310 in step S1311 (FIG. 9).
  • the processor 62 of the second modification refers to the print authority information database (FIG. 27).
  • the processor 62 specifies a record associated with the product code included in the printer information request transmitted from the client terminal 30 in step S1311 in the print authority information database.
  • the processor 62 compares the printer ID of the identified record with the printer ID included in the printer information request. When the printer ID of the identified record matches the printer ID included in the printer information request, the processor 62 transmits a printer information response similar to that in the first embodiment. If the printer ID of the identified record does not match the printer ID included in the printer information request, the processor 62 sends a printer information response including a message indicating that printing is prohibited (hereinafter referred to as “prohibited message”). Send.
  • the processor 32 displays the prohibition message on the display instead of steps S1312 to S1313.
  • the second modification it is possible to prevent printing using a printer other than the printer associated in advance with the product. Thereby, the forgery prevention effect can be further improved.
  • step S1312 the processor 32 generates a code image (for example, FIG. 11A) that has not been subjected to anti-counterfeit measures, and then embeds anti-counterfeit information in the code image, so that anti-counterfeit measures are taken.
  • the third modification is an example in which a code image that has been subjected to anti-counterfeit measures is generated in a single process without generating a code image that has not been subjected to anti-counterfeit measures.
  • step S1312 the processor 32 generates a code image (for example, the image of FIG. 14B) including forgery prevention information based on the product information and the printer information.
  • a code image for example, the image of FIG. 14B
  • the code image in which the forgery prevention measure is taken can be obtained by a single process.
  • the registration request transmitted from the client terminal 30 in step S1314 is included in the product code included in the product information acquired in S1310 and the print request transmitted from the client terminal 30 in step S1313. Print command.
  • step S1611 the processor 62 updates the reference information database (FIG. 7).
  • the following information is stored in each field of the reference information database.
  • the product code included in the registration request transmitted in step S1314 is stored.
  • the print command included in the registration request is stored in the “reference information” field.
  • authenticity determination can be realized by comparing print commands.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

An information processing device (30) can connect to a printer (40), and in order to improve the counterfeiting-prevention effects of a code image, the information processing device is provided with the following: a means for acquiring printer information related to the printer (40) which is used for printing; and a means for generating a code image corresponding to a code image based on the acquired printer information.

Description

情報処理装置、プログラム、情報処理方法、情報処理システムInformation processing apparatus, program, information processing method, information processing system
 本発明は、情報処理装置、プログラム、情報処理方法、及び、情報処理システムに関する。 The present invention relates to an information processing apparatus, a program, an information processing method, and an information processing system.
 世の中に流通している様々な商品、又は、商品の包装には、様々なコード画像が印字されている。このようなコード画像は、例えば、一次元バーコード、二次元バーコード、人間による読み取りが可能な目視可能文字(以下「ヒューマンリーダブル文字」という)、又は、これらの組合せの画像である。 Various code images are printed on various products distributed around the world or on the packaging of products. Such a code image is, for example, a one-dimensional barcode, a two-dimensional barcode, a human-readable character (hereinafter referred to as “human readable character”), or a combination thereof.
 コード画像には、偽造のリスクがある。例えば、正規品ではない商品に、正規品と同じコード画像が付されて販売されるリスクがある。 ∙ There is a risk of forgery in the code image. For example, there is a risk that a non-genuine product is sold with the same code image as the regular product.
 このリスクを低減するために、従来、コード画像の偽造を防ぐ技術が知られている。例えば、特開2016-19286号公報は、二次元コードの複製を防止する技術を開示している。具体的には、特開2016-19286号公報は、二次元コードのパターンに、微小形状を含む二次パターンを組み合わせる方法を開示している。微小形状は、バーコードスキャナによって検出される程度に大きいが、標準的な複製デバイスによって複製される可能性が低い。これにより、二次元コードの複製が困難になる。 In order to reduce this risk, a technique for preventing forgery of a code image is conventionally known. For example, Japanese Unexamined Patent Application Publication No. 2016-19286 discloses a technique for preventing duplication of a two-dimensional code. Specifically, Japanese Patent Application Laid-Open No. 2016-19286 discloses a method of combining a secondary pattern including a minute shape with a two-dimensional code pattern. The micro features are large enough to be detected by a bar code scanner, but are unlikely to be replicated by standard replication devices. This makes it difficult to duplicate the two-dimensional code.
 しかし、特開2016-19286号公報では、二次パターンを解読可能な複製デバイス(例えば、高解像度の複製デバイス)による二次元コードの複製を防ぐことはできない。したがって、コード画像の偽造防止効果は不十分である。 However, Japanese Patent Laid-Open No. 2016-19286 cannot prevent a two-dimensional code from being duplicated by a duplication device (for example, a high-resolution duplication device) that can decode the secondary pattern. Therefore, the anti-counterfeit effect of the code image is insufficient.
 本発明の目的は、コード画像の偽造防止効果を向上させることである。 An object of the present invention is to improve the forgery prevention effect of the code image.
 本発明のある態様は、
 プリンタと接続可能な情報処理装置であって、
 印字に使用するプリンタに関するプリンタ情報を取得する手段と、
 前記取得したプリンタ情報に基づくコード画像に対応するコード画像を生成する手段と、
を備える、情報処理装置である。
An aspect of the present invention provides:
An information processing apparatus that can be connected to a printer,
Means for obtaining printer information relating to a printer used for printing;
Means for generating a code image corresponding to the code image based on the acquired printer information;
Is an information processing apparatus.
 本発明のある態様によれば、コード画像の偽造防止効果を向上させることができる。 According to an aspect of the present invention, the forgery prevention effect of the code image can be improved.
第1実施形態の情報処理システムの構成を示す図。The figure which shows the structure of the information processing system of 1st Embodiment. 図1のスマートフォンの構成を示すブロック図。The block diagram which shows the structure of the smart phone of FIG. 図1のクライアント端末の構成を示すブロック図。The block diagram which shows the structure of the client terminal of FIG. 図1のプリンタの構成を示すブロック図。FIG. 2 is a block diagram illustrating a configuration of the printer in FIG. 1. 図1のサーバの構成を示すブロック図。The block diagram which shows the structure of the server of FIG. 第1実施形態のプリンタ情報データベースのデータ構造を示す図。FIG. 3 is a diagram illustrating a data structure of a printer information database according to the first embodiment. 第1実施形態の基準情報データベースのデータ構造を示す図。The figure which shows the data structure of the reference | standard information database of 1st Embodiment. 第1実施形態のプリンタ情報更新処理のシーケンス図。FIG. 6 is a sequence diagram of printer information update processing according to the first embodiment. 第1実施形態のコード画像印字処理のシーケンス図。FIG. 3 is a sequence diagram of a code image printing process according to the first embodiment. 図9の処理の画面例を示す図。The figure which shows the example of a screen of the process of FIG. 第1実施形態のコード画像の第1例の説明図。Explanatory drawing of the 1st example of the code image of 1st Embodiment. 第1実施形態のコード画像の第1例の説明図。Explanatory drawing of the 1st example of the code image of 1st Embodiment. 第1実施形態のコード画像の第1例の説明図。Explanatory drawing of the 1st example of the code image of 1st Embodiment. 第1実施形態のコード画像の第1例の説明図。Explanatory drawing of the 1st example of the code image of 1st Embodiment. 第1実施形態のコード画像の第1例の説明図。Explanatory drawing of the 1st example of the code image of 1st Embodiment. 第1実施形態のコード画像の第2例の説明図。Explanatory drawing of the 2nd example of the code image of 1st Embodiment. 第1実施形態のコード画像の第2例の説明図。Explanatory drawing of the 2nd example of the code image of 1st Embodiment. 第1実施形態のコード画像の第2例の説明図。Explanatory drawing of the 2nd example of the code image of 1st Embodiment. 第1実施形態のコード画像の第3例の説明図。Explanatory drawing of the 3rd example of the code image of 1st Embodiment. 第1実施形態のコード画像の第3例の説明図。Explanatory drawing of the 3rd example of the code image of 1st Embodiment. 第1実施形態のコード画像の第4例の説明図。Explanatory drawing of the 4th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第4例の説明図。Explanatory drawing of the 4th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第4例の説明図。Explanatory drawing of the 4th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第4例の説明図。Explanatory drawing of the 4th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第5例の説明図。Explanatory drawing of the 5th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第5例の説明図。Explanatory drawing of the 5th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第5例の説明図。Explanatory drawing of the 5th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第5例の説明図。Explanatory drawing of the 5th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第5例の説明図。Explanatory drawing of the 5th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第6例の説明図。Explanatory drawing of the 6th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第6例の説明図。Explanatory drawing of the 6th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第6例の説明図。Explanatory drawing of the 6th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第7例の説明図。Explanatory drawing of the 7th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第7例の説明図。Explanatory drawing of the 7th example of the code image of 1st Embodiment. 第1実施形態のコード画像の第7例の説明図。Explanatory drawing of the 7th example of the code image of 1st Embodiment. 図9のコード画像の生成の方法を示すフローチャート。10 is a flowchart showing a method for generating the code image of FIG. 9. 第1実施形態のプリンタ情報に基づくコード画像を生成するまでの流れを模式的に示す図。FIG. 3 is a diagram schematically illustrating a flow until a code image based on printer information according to the first embodiment is generated. 第1実施形態のコード表の第1例を模式的に示す図。The figure which shows the 1st example of the code table of 1st Embodiment typically. 第1実施形態のコード表の第2例を模式的に示す図。The figure which shows the 2nd example of the code table of 1st Embodiment typically. 第1実施形態のコード表の第3例を模式的に示す図。The figure which shows the 3rd example of the code table of 1st Embodiment typically. 第1実施形態の真贋判定処理のフローチャート。The flowchart of the authenticity determination process of 1st Embodiment. 図19の真贋判定処理の画面例を示す図。The figure which shows the example of a screen of the authentication determination process of FIG. 第2実施形態のコード画像印字処理のシーケンス図。The sequence diagram of the code image printing process of 2nd Embodiment. 図21の処理の画面例を示す図。The figure which shows the example of a screen of the process of FIG. 第2実施形態の基準情報データベースのデータ構造を示す図。The figure which shows the data structure of the reference | standard information database of 2nd Embodiment. 第2実施形態の真贋判定処理のシーケンス図。The sequence diagram of the authenticity determination process of 2nd Embodiment. 第3実施形態のプリンタの構成を示すブロック図。FIG. 9 is a block diagram illustrating a configuration of a printer according to a third embodiment. 第3実施形態のコード画像印字処理のシーケンス図。The sequence diagram of the code image printing process of 3rd Embodiment. 変形例2の印字権限情報データベースのデータ構造を示す図。The figure which shows the data structure of the printing authority information database of the modification 2.
 以下、本発明の一実施形態について、図面に基づいて詳細に説明する。なお、実施形態を説明するための図面において、同一の構成要素には原則として同一の符号を付し、その繰り返しの説明は省略する。 Hereinafter, an embodiment of the present invention will be described in detail based on the drawings. Note that in the drawings for describing the embodiments, the same components are denoted by the same reference symbols in principle, and the repetitive description thereof will be omitted.
(1)第1実施形態
 第1実施形態について説明する。
(1) First Embodiment A first embodiment will be described.
(1-1)情報処理システム
 第1実施形態の情報処理システムについて説明する。図1は、第1実施形態の情報処理システムの構成を示す図である。
(1-1) Information Processing System An information processing system according to the first embodiment will be described. FIG. 1 is a diagram illustrating a configuration of an information processing system according to the first embodiment.
 情報処理システム1は、スマートフォン10と、クライアント端末30と、プリンタ40と、サーバ60と、を備える。
 スマートフォン10、クライアント端末30、及び、サーバ60は、情報処理装置の一例である。
 スマートフォン10、クライアント端末30、プリンタ40、及び、サーバ60は、ネットワークNW、無線通信、又は、有線通信を介して、互いに通信可能に接続される。
The information processing system 1 includes a smartphone 10, a client terminal 30, a printer 40, and a server 60.
The smartphone 10, the client terminal 30, and the server 60 are examples of information processing apparatuses.
The smartphone 10, the client terminal 30, the printer 40, and the server 60 are connected to be communicable with each other via a network NW, wireless communication, or wired communication.
(1-1-1)スマートフォン
 第1実施形態のスマートフォンについて説明する。図2は、図1のスマートフォンの構成を示すブロック図である。
(1-1-1) Smartphone A smartphone according to the first embodiment will be described. FIG. 2 is a block diagram showing a configuration of the smartphone of FIG.
 図2に示すように、スマートフォン10は、記憶装置11と、プロセッサ12と、入出力インタフェース13と、通信インタフェース14と、カメラ15と、を備える。 As shown in FIG. 2, the smartphone 10 includes a storage device 11, a processor 12, an input / output interface 13, a communication interface 14, and a camera 15.
 記憶装置11は、プログラム及びデータを記憶するように構成される。記憶装置11は、例えば、ROM(Read Only Memory)、RAM(Random Access Memory)、及び、スト
レージ(例えば、フラッシュメモリ又はハードディスク)の組合せである。
The storage device 11 is configured to store a program and data. The storage device 11 is, for example, a combination of ROM (Read Only Memory), RAM (Random Access Memory), and storage (for example, flash memory or hard disk).
 プログラムは、例えば、以下のプログラムを含む。
・OS(Operating System)のプログラム
・情報処理を実行するアプリケーション(例えば、真贋判定アプリケーション)のプログラム
The programs include, for example, the following programs.
・ OS (Operating System) program ・ Application program that executes information processing (for example, authentication application)
 データは、例えば、以下のデータを含む。
・情報処理において参照されるデータベース
・情報処理を実行することによって得られるデータ(つまり、情報処理の実行結果)
The data includes, for example, the following data.
-Database referenced in information processing-Data obtained by executing information processing (that is, information processing execution result)
 プロセッサ12は、記憶装置11に記憶されたプログラムを起動することによって、スマートフォン10の機能を実現するように構成される。プロセッサ12は、コンピュータの一例である。 The processor 12 is configured to realize the function of the smartphone 10 by starting a program stored in the storage device 11. The processor 12 is an example of a computer.
 入出力インタフェース13は、スマートフォン10に接続される入力デバイスからスマートフォン10のユーザの指示を受け付け、かつ、スマートフォン10に接続される出力デバイスに情報を出力するように構成される。
 入力デバイスは、例えば、タッチパネルに表示されるソフトキー、マイク、及び、それらの組合せである。
 出力デバイスは、例えば、ディスプレイ、スピーカ、及び、それらの組合せである。
The input / output interface 13 is configured to receive an instruction from the user of the smartphone 10 from an input device connected to the smartphone 10 and to output information to an output device connected to the smartphone 10.
The input device is, for example, a soft key displayed on the touch panel, a microphone, and a combination thereof.
The output device is, for example, a display, a speaker, and a combination thereof.
 通信インタフェース14は、他の装置との通信を制御するように構成される。 The communication interface 14 is configured to control communication with other devices.
 カメラ15は、画像を撮像し、かつ、撮像した画像に対応する画像データを生成するように構成される。 The camera 15 is configured to capture an image and generate image data corresponding to the captured image.
(1-1-2)クライアント端末
 第1実施形態のクライアント端末について説明する。図3は、図1のクライアント端末の構成を示すブロック図である。
(1-1-2) Client Terminal A client terminal according to the first embodiment will be described. FIG. 3 is a block diagram showing the configuration of the client terminal of FIG.
 図3に示すように、クライアント端末30は、記憶装置31と、プロセッサ32と、入出力インタフェース33と、通信インタフェース34と、を備える。 As shown in FIG. 3, the client terminal 30 includes a storage device 31, a processor 32, an input / output interface 33, and a communication interface 34.
 記憶装置31は、プログラム及びデータを記憶するように構成される。記憶装置31は、例えば、ROM、RAM、及び、ストレージ(例えば、フラッシュメモリ又はハードディスク)の組合せである。 The storage device 31 is configured to store programs and data. The storage device 31 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
 プログラムは、例えば、以下のプログラムを含む。
・OSのプログラム
・情報処理を実行するアプリケーション(例えば、ウェブブラウザ)のプログラム
・印字の対象となる画像を生成するアプリケーション(以下「画像生成アプリケーション」という)
The programs include, for example, the following programs.
An OS program An application (for example, a web browser) program that executes information processing An application that generates an image to be printed (hereinafter referred to as an “image generation application”)
 データは、例えば、以下のデータを含む。
・情報処理において参照されるデータベース
・情報処理を実行することによって得られるデータ(つまり、情報処理の実行結果)
The data includes, for example, the following data.
-Database referenced in information processing-Data obtained by executing information processing (that is, information processing execution result)
 プロセッサ32は、記憶装置31に記憶されたプログラムを起動することによって、クライアント端末30の機能を実現するように構成される。プロセッサ32は、コンピュータの一例である。 The processor 32 is configured to realize the function of the client terminal 30 by starting a program stored in the storage device 31. The processor 32 is an example of a computer.
 入出力インタフェース33は、クライアント端末30に接続される入力デバイスからクライアント端末30のユーザの指示を受け付け、かつ、クライアント端末30に接続される出力デバイスに情報を出力するように構成される。
 入力デバイスは、例えば、キーボード、ポインティングデバイス、タッチパネル、又は、それらの組合せである。
 出力デバイスは、例えば、ディスプレイである。
The input / output interface 33 is configured to receive an instruction from the user of the client terminal 30 from an input device connected to the client terminal 30 and to output information to an output device connected to the client terminal 30.
The input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof.
The output device is, for example, a display.
 通信インタフェース34は、他の装置との通信を制御するように構成される。 The communication interface 34 is configured to control communication with other devices.
(1-1-3)プリンタ
 第1実施形態のプリンタについて説明する。図4は、図1のプリンタの構成を示すブロック図である。
(1-1-3) Printer The printer according to the first embodiment will be described. FIG. 4 is a block diagram showing the configuration of the printer of FIG.
 図4に示すように、プリンタ40は、プロセッサ42と、記憶装置41と、入出力インタフェース43と、通信インタフェース44と、ヘッド駆動回路47aと、印字ヘッド47bと、ローラ駆動回路48aと、搬送ローラ48bと、カッタ駆動回路49aと、カッタ49bと、を備える。 As shown in FIG. 4, the printer 40 includes a processor 42, a storage device 41, an input / output interface 43, a communication interface 44, a head drive circuit 47a, a print head 47b, a roller drive circuit 48a, and a conveyance roller. 48b, a cutter driving circuit 49a, and a cutter 49b.
 記憶装置41は、プログラム及びデータを記憶するように構成される。記憶装置41は、例えば、ROM、RAM、及び、ストレージ(例えば、フラッシュメモリ又はハードディスク)の組合せである。 The storage device 41 is configured to store programs and data. The storage device 41 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
 プログラムは、例えば、以下のプログラムを含む。
・OSのプログラム
・各回路を介して、ハードウェアを制御するファームウェアのプログラム
・印字処理を実行するアプリケーションのプログラム
The programs include, for example, the following programs.
-OS program-Firmware program for controlling hardware via each circuit-Application program for executing print processing
 データは、例えば、以下のデータを含む。
・ハードウェアの制御のための設定情報
The data includes, for example, the following data.
・ Setting information for hardware control
 プロセッサ42は、記憶装置41に記憶されたプログラムを起動することによって、プリンタ40の機能を実現するように構成される。プロセッサ42は、コンピュータの一例である。
 具体的には、プロセッサ42は、ファームウェアのプログラムを起動することにより、ローラ駆動回路48aを介して搬送ローラ48bを駆動させ、ヘッド駆動回路47aを介して印字ヘッド47bを駆動させ、かつ、カッタ駆動回路49aを介してカッタ49bを駆動させる。
The processor 42 is configured to realize the function of the printer 40 by starting a program stored in the storage device 41. The processor 42 is an example of a computer.
Specifically, the processor 42 activates a firmware program to drive the conveyance roller 48b via the roller drive circuit 48a, drive the print head 47b via the head drive circuit 47a, and drive the cutter. The cutter 49b is driven through the circuit 49a.
 入出力インタフェース43は、プリンタ40の入力デバイスからプリンタ40のユーザの指示を受け付け、かつ、プリンタ40の出力デバイスに情報を出力するように構成される。
 入力デバイスは、例えば、ハードキー、タッチパネル、又は、それらの組合せである。
 出力デバイスは、例えば、ディスプレイ、スピーカ、又は、それらの組合せである。
The input / output interface 43 is configured to receive a user instruction of the printer 40 from an input device of the printer 40 and to output information to an output device of the printer 40.
The input device is, for example, a hard key, a touch panel, or a combination thereof.
The output device is, for example, a display, a speaker, or a combination thereof.
 通信インタフェース44は、他の装置との通信を制御するように構成される。 The communication interface 44 is configured to control communication with other devices.
 印字ヘッド47bは、印字媒体に画像を印字するように構成される。印字ヘッド47bは、例えば、サーマルヘッドである。 The print head 47b is configured to print an image on a print medium. The print head 47b is, for example, a thermal head.
 搬送ローラ48bは、印字媒体を搬送するように構成される。搬送ローラ48bは、例えば、プラテンローラである。 The conveyance roller 48b is configured to convey a print medium. The conveyance roller 48b is, for example, a platen roller.
 カッタ49bは、画像が印字された印字媒体を切断するように構成される。 The cutter 49b is configured to cut a print medium on which an image is printed.
(1-1-4)サーバ
 第1実施形態のサーバについて説明する。図5は、図1のサーバの構成を示すブロック図である。
(1-1-4) Server A server according to the first embodiment will be described. FIG. 5 is a block diagram showing the configuration of the server of FIG.
 図5に示すように、サーバ60は、記憶装置61と、プロセッサ62と、入出力インタフェース63と、通信インタフェース64と、を備える。 As shown in FIG. 5, the server 60 includes a storage device 61, a processor 62, an input / output interface 63, and a communication interface 64.
 記憶装置61は、プログラム及びデータを記憶するように構成される。記憶装置61は、例えば、ROM、RAM、及び、ストレージ(例えば、フラッシュメモリ又はハードディスク)の組合せである。 The storage device 61 is configured to store programs and data. The storage device 61 is, for example, a combination of ROM, RAM, and storage (for example, flash memory or hard disk).
 プログラムは、例えば、以下のプログラムを含む。
・OSのプログラム
・サーバ60の機能を実現するアプリケーションのプログラム
The programs include, for example, the following programs.
-OS program-Application program for realizing the functions of the server 60
 データは、例えば、以下のデータを含む。
・情報処理において参照されるデータベース(例えば、プリンタ情報データベース(後述))
・情報処理を実行することによって得られるデータ(つまり、情報処理の実行結果)
The data includes, for example, the following data.
A database that is referenced in information processing (for example, a printer information database (described later))
-Data obtained by executing information processing (that is, information processing execution results)
 プロセッサ62は、記憶装置61に記憶されたプログラムを起動することによって、サーバ60の機能を実現するように構成される。プロセッサ62は、コンピュータの一例である。 The processor 62 is configured to realize the function of the server 60 by starting a program stored in the storage device 61. The processor 62 is an example of a computer.
 入出力インタフェース63は、サーバ60に接続される入力デバイスから、サーバ60のオペレータの指示を受け付け、かつ、サーバ60に接続される出力デバイスに情報を出力するように構成される。
 入力デバイスは、例えば、キーボード、ポインティングデバイス、タッチパネル、又は、それらの組合せである。
 出力デバイスは、例えば、ディスプレイである。
The input / output interface 63 is configured to receive an instruction from an operator of the server 60 from an input device connected to the server 60 and to output information to an output device connected to the server 60.
The input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof.
The output device is, for example, a display.
 通信インタフェース64は、他の装置との通信を制御するように構成される。 The communication interface 64 is configured to control communication with other devices.
(1-2)データベース
 第1実施形態のデータベースについて説明する。
 以下のデータベースは、記憶装置61に記憶される。
(1-2) Database A database according to the first embodiment will be described.
The following database is stored in the storage device 61.
(1-2-1)プリンタ情報データベース
 第1実施形態のプリンタ情報データベースについて説明する。図6は、第1実施形態のプリンタ情報データベースのデータ構造を示す図である。
(1-2-1) Printer Information Database The printer information database according to the first embodiment will be described. FIG. 6 is a diagram illustrating a data structure of the printer information database according to the first embodiment.
 図6に示すように、プリンタ情報データベースは、「プリンタID」フィールドと、「使用量」フィールドと、「交換回数」フィールドと、「設置場所」フィールドと、を含む。各フィールドは、互いに関連付けられている。 As shown in FIG. 6, the printer information database includes a “printer ID” field, a “use amount” field, a “replacement count” field, and an “installation location” field. Each field is associated with each other.
 「プリンタID」フィールドには、プリンタ40を識別するプリンタIDが格納される。プリンタIDは、例えば、プリンタ40のシリアル番号である。 In the “printer ID” field, a printer ID for identifying the printer 40 is stored. The printer ID is a serial number of the printer 40, for example.
 「使用量」フィールドには、プリンタ40の使用量を示す情報が格納される。「使用量」フィールドの情報は、プリンタ40を使用する度に変化する。「使用量」フィールドの情報は、プリンタ40から送信される情報に応じて更新される。使用量とは、例えば、以下の少なくとも1つを含む。
・印字媒体の搬送距離
・プラテンローラの回転距離
・カッタ49bの駆動回数
In the “use amount” field, information indicating the use amount of the printer 40 is stored. The information in the “use amount” field changes every time the printer 40 is used. Information in the “use amount” field is updated according to information transmitted from the printer 40. The usage amount includes, for example, at least one of the following.
-Print media transport distance-Platen roller rotation distance-Number of times the cutter 49b is driven
 「交換回数」フィールドには、プリンタ40の部品の交換回数を示す情報が格納される。交換回数を示す情報は、例えば、以下の少なくとも1つを含む。「交換回数」フィールドの情報は、プリンタ40から送信される情報に応じて更新される。
・印字ヘッド47bの交換回数
・搬送ローラ48bの交換回数
・カッタ49bの交換回数
Information indicating the number of replacements of the components of the printer 40 is stored in the “number of replacements” field. The information indicating the number of exchanges includes, for example, at least one of the following. Information in the “number of exchanges” field is updated according to information transmitted from the printer 40.
-Print head 47b replacement count-Conveyor roller 48b replacement count-Cutter 49b replacement count
 「設置場所」フィールドには、プリンタ40の設置場所を示す情報が格納される。設置場所を示す情報は、例えば、以下の少なくとも1つを含む。「設置場所」フィールドの情報は、プリンタ40のユーザの指示に応じて更新される。
・国コード
・郵便番号
・住所
・プリンタ40を使用する部署を示すコード
Information indicating the installation location of the printer 40 is stored in the “installation location” field. The information indicating the installation location includes, for example, at least one of the following. Information in the “installation location” field is updated in accordance with an instruction from the user of the printer 40.
・ Country code ・ Postal code ・ Address ・ Code indicating the department that uses the printer 40
(1-2-2)基準情報データベース
 第1実施形態の基準情報データベースについて説明する。図7は、第1実施形態の基準情報データベースのデータ構造を示す図である。
(1-2-2) Reference Information Database A reference information database according to the first embodiment will be described. FIG. 7 is a diagram illustrating a data structure of the reference information database according to the first embodiment.
 基準情報データベースには、真贋判定の基準となる情報(以下「基準情報」という)が格納される。
 図7に示すように、基準情報データベースは、「商品コード」フィールドと、「基準情報」フィールドと、を含む。各フィールドは、互いに関連付けられている。
The reference information database stores information (hereinafter referred to as “reference information”) that serves as a reference for authenticity determination.
As shown in FIG. 7, the reference information database includes a “product code” field and a “reference information” field. Each field is associated with each other.
 「商品コード」フィールドには、真贋判定の基準となる商品を識別する商品コードが格納される。 In the “product code” field, a product code for identifying a product that is a reference for authenticity determination is stored.
 「基準情報」フィールドには、真贋判定の基準となるコード画像(以下「基準コード画像」という)が格納される。 In the “reference information” field, a code image (hereinafter referred to as “reference code image”) serving as a reference for authenticity determination is stored.
(1-3)情報処理
 第1実施形態の情報処理について説明する。
(1-3) Information Processing Information processing according to the first embodiment will be described.
(1-3-1)プリンタ情報更新処理
 第1実施形態のプリンタ情報更新処理について説明する。図8は、第1実施形態のプリンタ情報更新処理のシーケンス図である。
(1-3-1) Printer Information Update Processing The printer information update processing according to the first embodiment will be described. FIG. 8 is a sequence diagram of printer information update processing according to the first embodiment.
 図8のプリンタ情報更新処理は、プリンタ情報データベース(図6)の更新を伴う事象(以下「更新イベント」という)が発生した場合に開始される。
 更新イベントは、例えば、以下の少なくとも1つを含む。
・画像の印字
・カッタの駆動
・プリンタ40の部品(サーマルヘッド、カッタ、及び、プラテンローラの少なくとも1つ)の交換
・プリンタ40のユーザによる設置場所の指定
・プリンタ40のユーザによるプリンタ40の初期登録
・プリンタ40のネットワーク接続
・プリンタ40の電源オン
・ユーザ操作による更新指示
The printer information update process of FIG. 8 is started when an event (hereinafter referred to as “update event”) that accompanies updating of the printer information database (FIG. 6) occurs.
The update event includes, for example, at least one of the following.
-Image printing-Cutter drive-Replacement of parts of printer 40 (at least one of thermal head, cutter, and platen roller)-Specification of installation location by user of printer 40-Initial printer 40 by user of printer 40 Registration ・ Network connection of printer 40 ・ Power-on of printer 40 ・ Update instruction by user operation
 プリンタ40は、プリンタ情報の更新(S1400)を実行する。
 具体的には、プロセッサ42は、クライアント端末30から送信された画像を受け付けると、当該画像を印字媒体に印字した後に、記憶装置41に記憶されたプリンタ情報のうち、印字媒体の搬送距離を示す情報を更新する。
The printer 40 updates the printer information (S1400).
Specifically, when receiving an image transmitted from the client terminal 30, the processor 42 prints the image on the print medium, and then indicates the conveyance distance of the print medium in the printer information stored in the storage device 41. Update information.
 ステップS1400の後、プリンタ40は、プリンタ情報更新リクエスト(S1401)を実行する。
 一例として、プロセッサ42は、通信インタフェース44を介して、更新リクエストをサーバ60に送信する。更新リクエストは、プリンタ40を識別するプリンタIDと、記憶装置41に記憶されたプリンタ情報と、を含む。このプリンタ情報は、ステップS1400で更新された印字媒体の搬送距離を示す情報を含む。
After step S1400, the printer 40 executes a printer information update request (S1401).
As an example, the processor 42 transmits an update request to the server 60 via the communication interface 44. The update request includes a printer ID for identifying the printer 40 and printer information stored in the storage device 41. This printer information includes information indicating the transport distance of the print medium updated in step S1400.
 別の例として、クライアント端末30がステップS1401を実行する場合、プロセッサ32は、クライアント端末30のユーザの指示に応じて、プリンタ40の設置場所を示す情報を受け付ける。
 次に、プロセッサ32は、通信インタフェース34を介して、更新リクエストをサーバ60に送信する。更新リクエストは、プリンタ40を識別するプリンタIDと、プリンタ40の設置場所を示す情報と、を含む。
As another example, when the client terminal 30 executes step S1401, the processor 32 receives information indicating the installation location of the printer 40 in accordance with an instruction from the user of the client terminal 30.
Next, the processor 32 transmits an update request to the server 60 via the communication interface 34. The update request includes a printer ID for identifying the printer 40 and information indicating the installation location of the printer 40.
 ステップS1401の後、サーバ60は、プリンタ情報の更新(S1600)を実行する。
 具体的には、プロセッサ62は、プリンタ情報データベース(図6)において、ステップS1401で送信された更新リクエストに含まれるプリンタIDに関連付けられたレコードを特定する。
 次に、プロセッサ62は、特定したレコードの「使用量」フィールドに、ステップS1401で送信された更新リクエストに含まれる印字媒体の搬送距離を示す情報を格納する。
 これにより、記憶装置61に記憶されたプリンタ情報が更新される。
After step S1401, the server 60 updates the printer information (S1600).
Specifically, the processor 62 specifies a record associated with the printer ID included in the update request transmitted in step S1401 in the printer information database (FIG. 6).
Next, the processor 62 stores information indicating the transport distance of the print medium included in the update request transmitted in step S1401 in the “usage” field of the identified record.
As a result, the printer information stored in the storage device 61 is updated.
(1-3-2)コード画像印字処理
 第1実施形態のコード画像印字処理について説明する。図9は、第1実施形態のコード画像印字処理のシーケンス図である。図10は、図9の処理の画面例を示す図である。
(1-3-2) Code Image Printing Process The code image printing process according to the first embodiment will be described. FIG. 9 is a sequence diagram of the code image printing process according to the first embodiment. FIG. 10 is a diagram illustrating a screen example of the process of FIG.
 図9のコード画像印字処理は、クライアント端末30のユーザが、入出力インタフェース33を介して、印字の指示を与えた場合に開始される。 9 is started when the user of the client terminal 30 gives a print instruction via the input / output interface 33.
 図9に示すように、クライアント端末30は、商品情報の取得(S1310)を実行する。
 具体的には、プロセッサ32は、画面P100(図10)をディスプレイに表示する。
As illustrated in FIG. 9, the client terminal 30 executes acquisition of product information (S1310).
Specifically, the processor 32 displays the screen P100 (FIG. 10) on the display.
 図10に示すように、画面P100は、入力フィールドオブジェクトF100a及びF100bと、ボタンオブジェクトB100と、を含む。
 入力フィールドオブジェクトF100aは、コード画像が印字された印字媒体を添付すべき商品に関する商品情報を指定するためのフィールドである。クライアント端末30のユーザが、入力フィールドオブジェクトF100aにおいて商品コード、製造年月日、ロット番号、及び、商品シリアルコードを指定すると、プロセッサ32は、指定された情報(商品コード、製造年月日、有効期限、ロット番号、及び、商品シリアルコード)を含む商品情報を受け付ける。
 入力フィールドオブジェクトF100bは、印字に使用するプリンタ40を指定するためのフィールドである。クライアント端末30のユーザが、入力フィールドオブジェクトF100bにおいてプリンタIDを指定すると、プロセッサ32は、指定されたプリンタIDを受け付ける。
As shown in FIG. 10, the screen P100 includes input field objects F100a and F100b and a button object B100.
The input field object F100a is a field for designating product information relating to a product to which a print medium on which a code image is printed is attached. When the user of the client terminal 30 specifies the product code, the date of manufacture, the lot number, and the product serial code in the input field object F100a, the processor 32 specifies the specified information (product code, date of manufacture, valid Product information including a deadline, a lot number, and a product serial code) is received.
The input field object F100b is a field for designating the printer 40 used for printing. When the user of the client terminal 30 designates a printer ID in the input field object F100b, the processor 32 receives the designated printer ID.
 図9に示すように、ステップS1310の後、クライアント端末30は、プリンタ情報リクエスト(S1311)を実行する。
 具体的には、クライアント端末30のユーザが画面P100(図10)のボタンオブジェクトB100を指定すると、プロセッサ32は、プリンタ情報リクエストをサーバ60に送信する。プリンタ情報リクエストは、入力フィールドオブジェクトF100bで指定されたプリンタIDを含む。
As shown in FIG. 9, after step S1310, the client terminal 30 executes a printer information request (S1311).
Specifically, when the user of the client terminal 30 designates the button object B100 on the screen P100 (FIG. 10), the processor 32 transmits a printer information request to the server 60. The printer information request includes the printer ID designated by the input field object F100b.
 図9に示すように、ステップS1311の後、サーバ60は、プリンタ情報レスポンス(S1610)を送信する。
 具体的には、プロセッサ62は、プリンタ情報データベース(図6)において、ステップS1311でクライアント端末30から送信されたプリンタ情報リクエストに含まれるプリンタIDに関連付けられたレコードを特定する。
 次に、プロセッサ62は、特定したレコードのプリンタ情報(「使用量」フィールド、「交換回数」フィールド、及び、「設置場所」フィールドの情報)を取得する。
 次に、プロセッサ62は、プリンタ情報レスポンスをクライアント端末30に送信する。プリンタ情報レスポンスは、取得したプリンタ情報を含む。
As shown in FIG. 9, after step S1311, the server 60 transmits a printer information response (S1610).
Specifically, the processor 62 specifies a record associated with the printer ID included in the printer information request transmitted from the client terminal 30 in step S1311 in the printer information database (FIG. 6).
Next, the processor 62 acquires printer information (information in the “use amount” field, the “number of replacements” field, and the “installation location” field) of the specified record.
Next, the processor 62 transmits a printer information response to the client terminal 30. The printer information response includes the acquired printer information.
 ステップS1610の後、クライアント端末30は、コード画像の生成(S1312)を実行する。
 具体的には、プロセッサ32は、ステップS1310で取得した商品情報に基づいて、コード画像を生成する。
 次に、プロセッサ32は、ステップS1610でサーバ60から送信されたプリンタ情報レスポンスに含まれるプリンタ情報に基づいて、コード画像を生成する。生成されたコード画像は、コード化された商品情報と、プリンタ情報に基づく偽造防止情報と、を含む。コード画像の生成の方法については、後述する。
After step S1610, the client terminal 30 executes code image generation (S1312).
Specifically, the processor 32 generates a code image based on the product information acquired in step S1310.
Next, the processor 32 generates a code image based on the printer information included in the printer information response transmitted from the server 60 in step S1610. The generated code image includes encoded product information and forgery prevention information based on printer information. A method for generating the code image will be described later.
 コードは、例えば、以下のものを含む。
・一次元コード(一例として、一次元バーコード)
・二次元コード(一例として、二次元コード、マトリクスコード、若しくは、スタックコード)
・暗号化された文字列
・上記の組合せ
The code includes, for example:
・ One-dimensional code (one-dimensional barcode as an example)
Two-dimensional code (for example, two-dimensional code, matrix code, or stack code)
・ Encrypted string ・ Combination of the above
 次に、プロセッサ32は、画面P101(図10)をディスプレイに表示する。 Next, the processor 32 displays the screen P101 (FIG. 10) on the display.
 図10に示すように、画面P101は、画像オブジェクトIMG101と、ボタンオブジェクトB101と、を含む。
 画像オブジェクトIMG101は、生成されたコード画像のプレビュー画像である。
As shown in FIG. 10, the screen P101 includes an image object IMG101 and a button object B101.
The image object IMG101 is a preview image of the generated code image.
 ステップS1312の後、クライアント端末30は、印字リクエスト(S1313)を実行する。
 具体的には、クライアント端末30のユーザが画面P101(図10)のボタンオブジェクトB101を指定すると、プロセッサ32は、印字リクエストをプリンタ40に送信する。印字リクエストは、基準コード画像及び印字画像(例えば、文字、図形、又はそれらの組合せの画像)を印字するための印字コマンドを含む。
After step S1312, the client terminal 30 executes a print request (S1313).
Specifically, when the user of the client terminal 30 designates the button object B101 on the screen P101 (FIG. 10), the processor 32 transmits a print request to the printer 40. The print request includes a print command for printing a reference code image and a print image (for example, an image of a character, a graphic, or a combination thereof).
 ステップS1313の後、プリンタ40は、印字(S1410)を実行する。
 具体的には、プロセッサ42は、ステップS1313においてクライアント端末30から送信された印字リクエストに含まれる印字コマンドに基づいて、ヘッド駆動回路47a、ローラ駆動回路48a、及び、カッタ駆動回路49aに制御信号を送信する。
 ヘッド駆動回路47a、ローラ駆動回路48a、及び、カッタ駆動回路49aは、それぞれ、プロセッサ42から送信された制御信号に基づいて、印字ヘッド47b、搬送ローラ48b、及び、カッタ駆動回路49aを駆動させる。
 これにより、ステップS1312で生成されたコード画像が印字媒体に印字される。印字されたコード画像には、偽造防止情報が埋め込まれている。
After step S1313, the printer 40 performs printing (S1410).
Specifically, the processor 42 sends control signals to the head drive circuit 47a, the roller drive circuit 48a, and the cutter drive circuit 49a based on the print command included in the print request transmitted from the client terminal 30 in step S1313. Send.
The head drive circuit 47a, the roller drive circuit 48a, and the cutter drive circuit 49a drive the print head 47b, the transport roller 48b, and the cutter drive circuit 49a based on the control signal transmitted from the processor 42, respectively.
As a result, the code image generated in step S1312 is printed on the print medium. Anti-counterfeiting information is embedded in the printed code image.
 図9に示すように、ステップS1313の後、クライアント端末30は、登録リクエスト(S1314)を実行する。
 具体的には、プロセッサ32は、登録リクエストをサーバ60に送信する。登録リクエストは、ステップS1312で生成されたコード画像を含む。このコード画像は、真贋判定の基準となるコード画像(以下「基準コード画像」という)である。
As shown in FIG. 9, after step S1313, the client terminal 30 executes a registration request (S1314).
Specifically, the processor 32 transmits a registration request to the server 60. The registration request includes the code image generated in step S1312. This code image is a code image (hereinafter referred to as “reference code image”) that serves as a reference for authentication.
 ステップS1314の後、サーバ60は、基準コード画像の登録(S1611)を実行する。
 具体的には、プロセッサ62は、ステップS1314でクライアント端末30から送信された登録リクエストに含まれる基準コード画像をデコードすることにより、基準コード画像に対応する商品を識別する商品コードを特定する。
 次に、プロセッサ62は、基準情報データベース(図7)を更新する。基準情報データベースの各フィールドには、以下の情報が格納される。
・「商品コード」フィールドに、特定した商品コードが格納される。
・「基準情報」フィールドに、基準コード画像が格納される。
After step S1314, the server 60 executes reference code image registration (S1611).
Specifically, the processor 62 specifies the product code for identifying the product corresponding to the reference code image by decoding the reference code image included in the registration request transmitted from the client terminal 30 in step S1314.
Next, the processor 62 updates the reference information database (FIG. 7). The following information is stored in each field of the reference information database.
The specified product code is stored in the “product code” field.
A reference code image is stored in the “reference information” field.
(1-3-2-1)コード画像の第1例
 第1実施形態のコード画像の第1例について説明する。図11A~図11Eは、第1実施形態のコード画像の第1例の説明図である。コード画像の第1例は、コードの内部にマークが付加される例である。
(1-3-2-1) First Example of Code Image A first example of the code image of the first embodiment will be described. 11A to 11E are explanatory diagrams of a first example of the code image according to the first embodiment. The first example of the code image is an example in which a mark is added to the inside of the code.
 ここでは、コードとして、二次元コードの一種であるDataMatrixコードを用いる例を説明する。なお、DataMatrixコード以外の二次元コード、例えば、QR(Quick Response)コード、VeriCode、PDF417コード、Aztecコード、又は、MaxiCodeが用いられる場合も、DataMatrixコードと同様である。 Here, an example in which a DataMatrix code, which is a kind of two-dimensional code, is used as the code will be described. Note that a two-dimensional code other than the DataMatrix code, for example, a QR (Quick Response) code, VeriCode, PDF417 code, Aztec code, or MaxiCode is also used in the same manner as the DataMatrix code.
 二次元コードは、一般に、二次元的に配列された複数のデータセル(以下、単に「セル」と称する。)を含む。複数のセルは、同一のサイズの正方形または長方形の形状を有する。複数のセルの一部は、明るい(または白い)セルであり、他の一部は、暗い(または黒い)セルである。明るいセルおよび暗いセルの一方は0(ゼロ)の値を表し、他方は1の値を表す。よって、これらのセルの明暗の二次元パターンは、0および1の数値列で表現される特定の情報を表す。 The two-dimensional code 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 a numerical sequence of 0 and 1.
 図11Aでは、コードの領域の内部に、マークM(黒い点)が付加されている。マークMは、偽造防止情報の一例である。マークMが付加される位置(座標)は、プリンタ情報の組合せに基づいて決定される。この場合、コード画像は、マークMが付される位置を示す値(以下「座標値」という)を示すコードパラメータを含む。 In FIG. 11A, a mark M (black dot) is added inside the code area. The mark M is an example of forgery prevention information. The position (coordinates) to which the mark M is added is determined based on the combination of printer information. In this case, the code image includes a code parameter indicating a value (hereinafter referred to as “coordinate value”) indicating a position where the mark M is added.
 図11Bでは、コードの領域の内部に、2つのマークM(黒い点および白い点)が付加されている。この例のように、複数のマークMが付加されてもよい。図示される二次元コードを構成する複数のセルのうち、明るいセルには黒い点が付加され、暗いセルには白い点が付加されている。この場合、コード画像は、2つのマークMのそれぞれの座標値を示すコードパラメータを含む。 In FIG. 11B, two marks M (a black dot and a white dot) are added inside the code area. As in this example, a plurality of marks M 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 code image includes code parameters indicating the coordinate values of the two marks M.
 図11Cの例では、コードの領域の内部に、3つのマークM(黒い点および2つの白い点)が付加されている。この場合、コード画像は、3つのマークMのそれぞれの座標値を示すコードパラメータを含む。 In the example of FIG. 11C, three marks M (a black dot and two white dots) are added inside the code area. In this case, the code image includes code parameters indicating the coordinate values of the three marks M.
 図11Dの例では、マークMが点ではなく丸印である。このように、付加されるマークMの形状は点以外の形状であってもよい。 In the example of FIG. 11D, the mark M is not a point but a circle. Thus, the shape of the mark M to be added may be a shape other than a point.
 図11Eの例では、2つの丸印のマークMが、コードの領域内に付加されている。二次元コードを構成する複数のセルのうち、明るいセルには黒い丸が付加され、暗いセルには白い丸が付加される。 In the example of FIG. 11E, two circle marks M 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.
 マークMは、例えば、三角形、四角形、星印、その他の記号、文字、又は、それらの組合せであってもよい。複数のマークが付加される場合、マークによって形状が異なってもよい。その場合、コード画像は、個々のマークの形状を示すコードパラメータを含む。 The mark M may be, for example, a triangle, a quadrangle, a star, other symbols, characters, or a combination thereof. When a plurality of marks are added, the shape may be different depending on the marks. In that case, the code image includes code parameters indicating the shape of individual marks.
(1-3-2-2)コード画像の第2例
 第1実施形態のコード画像の第2例について説明する。図12A~図12Cは、第1実施形態のコード画像の第2例の説明図である。コード画像の第2例は、コードの外部、又は、コードの外部との境界部分に、1つ以上のマークが付加される例である。
(1-3-2-2) Second Example of Code Image A second example of the code image of the first embodiment will be described. 12A to 12C are explanatory diagrams of a second example of the code image according to the first embodiment. The second example of the code image is an example in which one or more marks are added to the outside of the code or a boundary portion with the outside of the code.
 図12Aは、コードのアライメントパターン(コードの外周部のL字状の太い線)における特定の箇所を白抜きにした例を示している。この例ではアライメントパターン上の3箇所に白いマークMが付加されている。マークMは、偽造防止情報の一例である。このように、アライメントパターンに1つ以上のマークMを付加してもよい。 FIG. 12A shows an example in which a specific portion in the code alignment pattern (L-shaped thick line on the outer periphery of the code) is outlined. In this example, white marks M are added to three positions on the alignment pattern. The mark M is an example of forgery prevention information. In this way, one or more marks M may be added to the alignment pattern.
 図12Bは、アライメントパターンの周囲に3つのマークM(黒いドット)が付加された例を示している。これらのマークMは、アライメントパターンに隣接している。 FIG. 12B shows an example in which three marks M (black dots) are added around the alignment pattern. These marks M are adjacent to the alignment pattern.
 図12Cは、アライメントパターンの周囲に離れて3つのマークM(黒いドット)が付加された例を示している。これらの例のように、マークMの印字位置は、コードの領域の外側であってもよい。 FIG. 12C shows an example in which three marks M (black dots) are added apart around the alignment pattern. As in these examples, the printing position of the mark M may be outside the code area.
 コード画像の第1例及び第2例において、コードパラメータは、コード画像の要素に関する情報(マークの個数、各マークの形状、各マークの画像内の座標値(X座標及びY座標))を含む。プロセッサ32は、ステップS1310で取得した商品情報と、ステップS1312で取得したプリンタ情報と、に基づいて、特定のルールに従って、コードパラメータを決定する。 In the first example and the second example of the code image, the code parameter includes information on the elements of the code image (the number of marks, the shape of each mark, and the coordinate value (X coordinate and Y coordinate) in the image of each mark). . The processor 32 determines a code parameter according to a specific rule based on the product information acquired in step S1310 and the printer information acquired in step S1312.
 コード画像の第1例及び第2例では、付加されるマークMは、いずれも、コードに含まれる個々のセルの大きさよりも小さい。また、明るいセルおよび暗いセルのそれぞれの個数に比べて、遥かに少数(例えば1/10未満)のマークMが付加されている。このため、マークMを付与した後もコードの読み取りに支障をきたすことはない。 In the first example and the second example of the code image, the mark M to be added is smaller than the size of each cell included in the code. In addition, a much smaller number (for example, less than 1/10) of marks M is added compared to the number of bright cells and dark cells. For this reason, there is no trouble in reading the code even after the mark M is given.
 二次元コードにおけるセル(以下「データセル」という)の個数をNとし、付加されるマークの個数をnとする。Nは、コードの種類によって異なるが、例えば20以上の整数である。マークの個数nは、1以上N以下の整数であり、ある例では、2≦n≦N/10である。n個のマークが付される場合、コードパラメータは、n個の座標値を含む。プロセッサは、コードパラメータに基づいてn個の座標値を決定し、そのn個の座標値が示す位置に、n個のマークを付加する。n個の座標値の組み合わせは、プリンタ情報によって決まる。座標値の組み合わせは、例えば、プリンタ情報と一対一に対応する。 Suppose that the number of cells (hereinafter referred to as “data cells”) in the two-dimensional code is N, and the number of added marks is n. N varies depending on the type of code, but is 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 added, the code parameter includes n coordinate values. The processor determines n coordinate values based on the code parameter, and adds n marks at the position indicated by the n coordinate values. The combination of n coordinate values is determined by the printer information. The combination of coordinate values corresponds, for example, one-to-one with the printer information.
 以上の例の他、二次元コードの領域の周囲に文字列を含むキャラクタマークを付加する改変も可能である。キャラクタマークの位置、角度、フォント(サイズ、書体、文字間隔を含む)、および文字列の内容の少なくとも1つを、物品ごとまたは物品群ごとに変えることにより、同様の偽造防止効果を得ることができる。 In addition to the above examples, it is possible to modify by adding a character mark including a character string around the area of the two-dimensional code. A similar forgery prevention effect can be obtained by changing at least one of the position, angle, font (including size, typeface, and character spacing) of the character mark, and the content of the character string for each article or group of articles. it can.
 マークMの個数は、4個以上であってもよい。
 マークMの個数が多いほど、以下の効果が得られる。
・偽造防止効果を向上させることができる。
・汚れまたは欠陥によって一部のマークが認識できなかったとしても、真贋の判定の精度を向上させることができる。
The number of marks M may be four or more.
As the number of marks M is larger, the following effects can be obtained.
-The forgery prevention effect can be improved.
Even if some marks cannot be recognized due to dirt or defects, the accuracy of authenticity determination can be improved.
(1-3-2-3)コード画像の第3例
 第1実施形態のコード画像の第3例について説明する。図13A及び図13Bは、第1実施形態のコード画像の第3例の説明図である。コード画像の第3例は、コードの領域の周囲にキャラクタマークが付加される例である。
(1-3-2-2-3) Third Example of Code Image A third example of the code image of the first embodiment will be described. 13A and 13B are explanatory diagrams of a third example of the code image according to the first embodiment. The third example of the code image is an example in which a character mark is added around the code area.
 図13Aの例では、数字、アルファベット、及び、記号からなる文字列(キャラクタマークの一例)が、コードの周辺上部に付加されている。 In the example of FIG. 13A, a character string (an example of a character mark) made up of numbers, alphabets, and symbols is added to the upper periphery of the code.
 図13Bの例では、キャラクタマークCMの内容、位置、及び、大きさが、図13Aの例とは異なり、かつ、時計回りに傾いている。キャラクタマークCMは、偽造防止情報の一例である。 In the example of FIG. 13B, the content, position, and size of the character mark CM are different from those in the example of FIG. 13A and are inclined clockwise. The character mark CM is an example of forgery prevention information.
 このように、プロセッサ32は、プリンタ情報に応じて、キャラクタマークCMの位置、回転角度、及び、フォントの少なくとも1つを変化させてもよい。この場合、コードパラメータは、キャラクタマークCMの内容、座標値、及び、フォントを示す情報を含む。 As described above, the processor 32 may change at least one of the position, the rotation angle, and the font of the character mark CM according to the printer information. In this case, the code parameter includes information indicating the content of the character mark CM, the coordinate value, and the font.
(1-3-2-4)コード画像の第4例
 第1実施形態のコード画像の第4例について説明する。図14A~図14Dは、第1実施形態のコード画像の第4例の説明図である。コード画像の第4例は、ヒューマンリーダブル文字の例である。
(1-3-2-2-4) Fourth Example of Code Image A fourth example of the code image of the first embodiment will be described. 14A to 14D are explanatory diagrams of a fourth example of the code image according to the first embodiment. The fourth example of the code image is an example of a human readable character.
 コード画像の第4例では、コードは、二次元コードに加えて、ヒューマンリーダブル文字を含む。ヒューマンリーダブル文字は、偽造防止情報の一例である。
 プロセッサ32は、商品情報及びプリンタ情報に基づいて、コード画像における二次元コード及びヒューマンリーダブル文字の相対位置を決定する。この場合、コードパラメータは、二次元コード及びヒューマンリーダブル文字の少なくとも一方の、コード画像内の所定の基準位置からの変位量を示す情報を含む。
In the fourth example of the code image, the code includes a human readable character in addition to the two-dimensional code. The human readable character is an example of forgery prevention information.
The processor 32 determines the relative positions of the two-dimensional code and the human readable character in the code image based on the product information and the printer information. In this case, the code parameter includes information indicating a displacement amount of at least one of the two-dimensional code and the human readable character from a predetermined reference position in the code image.
 はじめに、プロセッサ32は、図14Aのコード画像を生成する。このコード画像は、プリンタ情報を参照せず、商品情報のみを参照して生成されたコード画像である。つまり、このコード画像は、偽造防止対策が施されていない場合の印字例である。
 図14Aに示すように、コード画像は、二次元コードと、4行の文字列から構成されるヒューマンリーダブル文字と、を含む。ヒューマンリーダブル文字は、二次元コードの横に配置される。ヒューマンリーダブル文字は、上から順に、(01)商品コード、(21)商品シリアルコード、(10)ロット番号、及び、(17)有効期限を表している。これは、二次元コードが示す情報と同じである。ヒューマンリーダブル文字の表示態様は様々であり、図示される態様に限定されない。
First, the processor 32 generates the code image of FIG. 14A. This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
As shown in FIG. 14A, the code image includes a two-dimensional code and a human readable character composed of a character string of four lines. Human readable characters are placed next to the two-dimensional code. Human readable characters represent (01) product code, (21) product serial code, (10) lot number, and (17) expiration date in order from the top. This is the same as the information indicated by the two-dimensional code. The display mode of human readable characters is various, and is not limited to the illustrated mode.
 次に、プロセッサ32は、図14Aのコード画像を、図14Bのコード画像に変換する。具体的には、プロセッサ32は、二次元コードとヒューマンリーダブル文字との相対位置を、プリンタ情報に応じて変化させる。例えば、プロセッサ32は、ステップS1610で取得した「使用量」フィールド、「交換回数」フィールド、及び、「設置場所」フィールドの情報の組合せ毎に異なる態様で、ヒューマンリーダブル文字の位置を変化させる。 Next, the processor 32 converts the code image of FIG. 14A into the code image of FIG. 14B. Specifically, the processor 32 changes the relative position between the two-dimensional code and the human readable character according to the printer information. For example, the processor 32 changes the position of the human readable character in a different manner for each combination of information in the “use amount” field, the “number of exchanges” field, and the “installation location” field acquired in step S1610.
 図14Bは、ヒューマンリーダブル文字を、上方向(+Y方向)に0.5mmだけシフトさせる例を示している。
 図14Cは、ヒューマンリーダブル文字を、左方向(-X方向)に0.5mmだけシフトさせる例を示している。
 図14Dは、ヒューマンリーダブル文字を、下方向(-Y方向)に0.5mm、かつ、右方向(+X方向)に1mmだけシフトさせる例を示している。
 図14B~図14Dのコード画像は、プリンタ情報に基づくコード画像である。つまり、このコード画像は、偽造防止対策が施されている場合の印字例である。
FIG. 14B shows an example in which a human readable character is shifted upward by 0.5 mm (+ Y direction).
FIG. 14C shows an example in which the human readable character is shifted by 0.5 mm in the left direction (−X direction).
FIG. 14D shows an example in which the human readable character is shifted by 0.5 mm in the downward direction (−Y direction) and by 1 mm in the right direction (+ X direction).
The code images in FIGS. 14B to 14D are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
 このように、プロセッサ32は、コードとヒューマンリーダブル文字との相対位置を、プリンタ情報に応じて変化させてもよい。この場合、コードパラメータは、X方向及びY方向のそれぞれの変位量を示す情報を含む。 Thus, the processor 32 may change the relative position between the code and the human readable character according to the printer information. In this case, the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction.
 なお、プロセッサ32は、ヒューマンリーダブル文字の代わりに、コードの位置を同様の方法でシフトさせてもよい。
 また、プロセッサ32は、コード及びヒューマンリーダブル文字の両方をシフトさせてもよい。この場合、コードパラメータの数が多くなるため、偽造防止効果をより向上させることができる。
The processor 32 may shift the position of the code in the same manner instead of the human readable character.
The processor 32 may also shift both code and human readable characters. In this case, since the number of code parameters increases, the forgery prevention effect can be further improved.
(1-3-2-5)コード画像の第5例
 第1実施形態のコード画像の第5例について説明する。図15A~図15Eは、第1実施形態のコード画像の第5例の説明図である。コード画像の第5例は、ヒューマンリーダブル文字及びマークの組合せの例である。
(1-3-2-5) Fifth Example of Code Image A fifth example of the code image of the first embodiment will be described. 15A to 15E are explanatory diagrams of a fifth example of the code image according to the first embodiment. The fifth example of the code image is an example of a combination of human readable characters and marks.
 プロセッサ32は、バーコードとヒューマンリーダブル文字との相対位置を変化させることに加えて、コード画像の第1例及び第2例のように、コードの内部または外部にマーク(例えば、記号、図形、文字、または文字列)を付加する。マークは、偽造防止情報の一例である。 In addition to changing the relative position of the bar code and the human readable character, the processor 32 performs a mark (for example, a symbol, a graphic, or the like) inside or outside the code as in the first and second examples of the code image. Character or character string). The mark is an example of forgery prevention information.
 図15Aは、ヒューマンリーダブル文字および点の両方が、基準の位置にある例を示している。図15Aのコード画像は、プリンタ情報を参照せず、商品情報のみを参照して生成されたコード画像である。つまり、このコード画像は、偽造防止対策が施されていない場合の印字例である。 FIG. 15A shows an example in which both human readable characters and dots are at the reference positions. The code image in FIG. 15A is a code image generated by referring to only the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
 図15Bは、それぞれの基準位置から、ヒューマンリーダブル文字が上方向に0.5mmシフトし、点が上方向に5mmシフトした例を示している。
 図15Cは、それぞれの基準位置から、ヒューマンリーダブル文字が下方向に0.5mm、右方向に0.5mmシフトし、点が上方向に8mm、左方向に5mmシフトした例を示している。
 図15Dは、それぞれの基準位置に対して、ヒューマンリーダブル文字が上方向に0.5mm、右方向に0.5mmシフトし、点が上方向に5mm、左方向に10mmシフトした例を示している。
 図15Eは、それぞれの基準位置に対して、ヒューマンリーダブル文字が下方向に1mm、右方向に0.5mmシフトし、点が下方向に2mm、左方向に5mmシフトした例を示している。
 図15B~図15Eのコード画像は、プリンタ情報に基づくコード画像である。つまり、このコード画像は、偽造防止対策が施されている場合の印字例である。
FIG. 15B 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. 15C 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 8 mm and leftward by 5 mm from the respective reference positions.
FIG. 15D 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. 15E 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.
The code images in FIGS. 15B to 15E are code images based on the printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
 コード画像の第5例によれば、プロセッサ32は、コードとヒューマンリーダブル文字との相対位置、及び、マークの位置の両方を、プリンタ情報に応じて変化させる。これにより、偽造防止効果をより向上させることができる。 According to the fifth example of the code image, the processor 32 changes both the relative position of the code and the human readable character and the position of the mark according to the printer information. Thereby, the forgery prevention effect can be improved more.
 コード画像の第5例では、マークの数は単数でも複数でもよい。一部のマークが汚れまたは欠陥によって認識できなくなった場合でも真贋の判定を正しく行える可能性を高くするために、マークの数を多く(例えば3個以上に)してもよい。 In the fifth example of the code image, 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.
(1-3-2-6)コード画像の第6例
 第1実施形態のコード画像の第6例について説明する。図16A~図16Cは、第1実施形態のコード画像の第6例の説明図である。コード画像の第6例では、コードは二次元コードのみを含んでいる。
(1-3-2-6) Sixth Example of Code Image A sixth example of the code image of the first embodiment will be described. 16A to 16C are explanatory diagrams of a sixth example of the code image according to the first embodiment. In the sixth example of the code image, the code includes only a two-dimensional code.
 プロセッサ32は、プリンタ情報に基づいて、コードの位置を決定する。
 具体的には、プロセッサ32は、図16Aのコード画像を生成する。このコード画像は、コードの周囲を囲む矩形の枠を含んでいる。このコード画像は、プリンタ情報を参照せず、商品情報のみを参照して生成されたコード画像である。つまり、このコード画像は、偽造防止対策が施されていない場合の印字例である。
The processor 32 determines the position of the code based on the printer information.
Specifically, the processor 32 generates the code image of FIG. 16A. This code image includes a rectangular frame surrounding the periphery of the code. This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
 次に、プロセッサ32は、プリンタ情報に基づいて、この枠と、コードとの相対的な位置関係を変化させる。
 図16Bは、二次元コードが、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。
 図16Cは、二次元コードが、基準の位置から右に0.2mm、下に0.2mmシフトした例を示している。
 図16B及び図16Cの例では、コードパラメータは、二次元コードについて、コード画像内の基準位置からの、X方向およびY方向のそれぞれにおける変位量を示す情報を含む。変位した二次元コードは、偽造防止情報の一例である。
 図16B及び図16Cのコード画像は、プリンタ情報に基づくコード画像である。つまり、このコード画像は、偽造防止対策が施されている場合の印字例である。
Next, the processor 32 changes the relative positional relationship between the frame and the code based on the printer information.
FIG. 16B shows an example in which the two-dimensional code is shifted 0.2 mm to the left and 0.2 mm upward from the reference position.
FIG. 16C shows an example in which the two-dimensional code is shifted 0.2 mm to the right and 0.2 mm downward from the reference position.
In the example of FIGS. 16B and 16C, the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction from the reference position in the code image for the two-dimensional code. The displaced two-dimensional code is an example of forgery prevention information.
The code images in FIGS. 16B and 16C are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
(1-3-2-7)コード画像の第7例
 第1実施形態のコード画像の第7例について説明する。図17A~図17Cは、第1実施形態のコード画像の第7例の説明図である。コード画像の第7例は、コードを含まず、ヒューマンリーダブル文字のみを含んでいる。
(1-3-2-7) Seventh Example of Code Image A seventh example of the code image of the first embodiment will be described. 17A to 17C are explanatory diagrams of a seventh example of the code image according to the first embodiment. The seventh example of the code image does not include a code and includes only human readable characters.
 プロセッサ32は、プリンタ情報に基づいて、ヒューマンリーダブル文字の位置を決定する。ヒューマンリーダブル文字は、偽造防止情報の一例である。
 具体的には、プロセッサ32は、図17Aのコード画像を生成する。このコード画像は、ヒューマンリーダブル文字の領域を囲む矩形の枠を含んでいる。このコード画像は、プリンタ情報を参照せず、商品情報のみを参照して生成されたコード画像である。つまり、このコード画像は、偽造防止対策が施されていない場合の印字例である。
The processor 32 determines the position of the human readable character based on the printer information. The human readable character is an example of forgery prevention information.
Specifically, the processor 32 generates the code image of FIG. 17A. This code image includes a rectangular frame surrounding the human readable character region. This code image is a code image generated by referring only to the product information without referring to the printer information. That is, this code image is an example of printing when no counterfeit prevention measures are taken.
 次に、プロセッサ32は、プリンタ情報に基づいて、この枠と、ヒューマンリーダブル文字の領域との相対的な位置関係を変化させる。
 図17Bは、ヒューマンリーダブル文字が、基準の位置から左に0.2mm、上に0.2mmシフトした例を示している。
 図17Cは、ヒューマンリーダブル文字が、基準の位置から右に0.2mm、下に0.1mmシフトした例を示している。
 図17B及び図17Cの例では、コードパラメータは、ヒューマンリーダブル文字について、画像内の基準位置からの、X方向およびY方向のそれぞれにおける変位量を示す情報を含む。
 図17B及び図17Cのコード画像は、プリンタ情報に基づくコード画像である。つまり、このコード画像は、偽造防止対策が施されている場合の印字例である。
Next, the processor 32 changes the relative positional relationship between the frame and the human readable character area based on the printer information.
FIG. 17B 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. 17C 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 the example of FIGS. 17B and 17C, the code parameter includes information indicating the amount of displacement in each of the X direction and the Y direction from the reference position in the image for the human readable character.
The code images in FIGS. 17B and 17C are code images based on printer information. That is, this code image is an example of printing when a counterfeit prevention measure is taken.
(1-3-2-8)コード画像の生成の方法
 第1実施形態のコード画像の生成の方法について説明する。図18Aは、図9のコード画像の生成の方法を示すフローチャートである。ここでは一例として、コードの領域の内部又は外部に、少なくとも1つのドットマークが付加される例を説明する。
(1-3-2-8) Code Image Generation Method A code image generation method according to the first embodiment will be described. FIG. 18A is a flowchart showing a method of generating the code image of FIG. Here, as an example, an example will be described in which at least one dot mark is added inside or outside a code area.
 プロセッサ32は、ステップS1310で取得した商品情報に対応するコード画像を生成する(S13120)。 The processor 32 generates a code image corresponding to the product information acquired in step S1310 (S13120).
 ステップS13120の後、プロセッサ32は、ステップS1610でサーバ60から送信されたプリンタ情報に基づいて、ハッシュ値を計算する(ステップS13121)。ハッシュ値は、プリンタ情報の内容を端的に表す値である。ハッシュ値の情報量は、プリンタ情報より小さい。
 具体的には、プロセッサ32は、元情報からハッシュ値を得るためのハッシュ関数(例えば、暗号学的ハッシュ関数)をプリンタ情報に適用することにより、ハッシュ値を計算する。ハッシュ関数は、プリンタ情報から推定されにくいハッシュ値を生成するように設計されることが好ましい。
After step S13120, the processor 32 calculates a hash value based on the printer information transmitted from the server 60 in step S1610 (step S13121). The hash value is a value that directly represents the contents of the printer information. The information amount of the hash value is smaller than the printer information.
Specifically, the processor 32 calculates a hash value by applying a hash function (for example, a cryptographic hash function) for obtaining a hash value from the original information to the printer information. The hash function is preferably designed to generate a hash value that is difficult to estimate from the printer information.
 ステップS13121の後、プロセッサ32は、計算したハッシュ値に基づいて、プリンタ情報に対応するドットマークの座標値を決定する(S13122)。
 具体的には、プロセッサ32は、予め用意されたコード表(例えば、ルックアップテーブル)を参照して、コード画像においてドットマークを付加すべき位置を示す座標値を決定する(ステップS221)。
After step S1311, the processor 32 determines the coordinate value of the dot mark corresponding to the printer information based on the calculated hash value (S13122).
Specifically, the processor 32 refers to a code table (for example, a lookup table) prepared in advance and determines a coordinate value indicating a position where a dot mark is to be added in the code image (step S221).
 コード表は、例えば以下の条件を満たすように作成され得る。
・ドットマークの数は、所定の上限数(例えば、4個)以下である(つまり、ドットマークの数を制限することにより、ドットマークを目立ちにくくする)。
・ドットマークの密度は、所定値以下である(つまり、隣接する位置に複数のドットマークを付加することを避けることにより、ドットマークを目立ちにくくする)。例えば、5×5セルの領域内には1つのマークのみが付加されるようにする。
・コード画像の内部にドットマークを配置する場合、コード画像の読み取りの負担を低減する(つまり、偽造防止機能のない一般的な読取装置でもコード画像を読取可能にする)。
・ドットパターン間のハミング距離は、一定値以上である(つまり、類似した配置は避けることにより、一部のドットマークの印字精度が低かったとしても、偽造防止効果が維持されるようにする)。
 以上のような条件を満たすコード表は、記憶装置31に予め記憶されている。
The code table can be created so as to satisfy the following conditions, for example.
The number of dot marks is equal to or less than a predetermined upper limit number (for example, 4) (that is, making the dot marks less noticeable by limiting the number of dot marks).
The density of the dot marks is below a predetermined value (that is, making the dot marks less noticeable by avoiding adding a plurality of dot marks at adjacent positions). For example, only one mark is added in a 5 × 5 cell area.
When the dot mark is arranged inside the code image, the burden of reading the code image is reduced (that is, the code image can be read even by a general reading device having no forgery prevention function).
The hamming distance between the dot patterns is a certain value or more (that is, avoiding the similar arrangement so that the anti-counterfeit effect is maintained even if the printing accuracy of some dot marks is low) .
A code table that satisfies the above conditions is stored in the storage device 31 in advance.
 ステップS13122の後、プロセッサ32は、ステップS13120で生成したコード画像において、決定した座標値が示す位置に、ドットマークを配置する(S13123)。
 これにより、プリンタ情報に基づくコード画像が生成される。
After step S13122, the processor 32 places a dot mark at the position indicated by the determined coordinate value in the code image generated in step S13120 (S13123).
Thereby, a code image based on the printer information is generated.
 図18Bは、第1実施形態のプリンタ情報に基づくコード画像を生成するまでの流れを模式的に示す図である。 FIG. 18B is a diagram schematically illustrating a flow until a code image based on the printer information according to the first embodiment is generated.
 図18Bに示すように、プロセッサ32は、ハッシュ関数を用いて、プリンタ情報から、プリンタ情報より情報量の少ないハッシュ値を計算する。
 次に、プロセッサ32は、コード表を参照して、ハッシュ値からドットマークの座標値の組合せを決定する。
 次に、プロセッサ32は、決定した座標値が示す位置にドットマークを配置することにより、コード画像を生成する。
 これにより、比較的情報量の少ないハッシュ値を用いて真贋判定処理を実現することができる。したがって、真贋判定処理の処理量を低減することができる。
As illustrated in FIG. 18B, the processor 32 uses the hash function to calculate a hash value having a smaller amount of information than the printer information from the printer information.
Next, the processor 32 refers to the code table to determine a combination of dot mark coordinate values from the hash value.
Next, the processor 32 generates a code image by placing a dot mark at the position indicated by the determined coordinate value.
As a result, the authenticity determination process can be realized using a hash value having a relatively small amount of information. Therefore, it is possible to reduce the processing amount of the authenticity determination process.
 図18Cは、第1実施形態のコード表の第1例を模式的に示す図である。 FIG. 18C is a diagram schematically illustrating a first example of the code table of the first embodiment.
 図18Cに示すように、コード表の第1例には、ハッシュ値と、複数の座標値の組合せとの対応関係を示す情報が格納される。
 コード表の第1例は、「ハッシュ値」フィールドと、「座標値」フィールドと、を含む。各フィールドは互いに関連付けられている。
 「ハッシュ値」フィールドには、ハッシュ値が格納される。
 「座標値」フィールドには、複数の座標値の組合せが格納される。
 これにより、ドットマークを含むコード画像が得られる。
As illustrated in FIG. 18C, information indicating a correspondence relationship between a hash value and a combination of a plurality of coordinate values is stored in the first example of the code table.
The first example of the code table includes a “hash value” field and a “coordinate value” field. Each field is associated with each other.
A hash value is stored in the “hash value” field.
A combination of a plurality of coordinate values is stored in the “coordinate value” field.
Thereby, a code image including a dot mark is obtained.
 図18Dは、第1実施形態のコード表の第2例を模式的に示す図である。 FIG. 18D is a diagram schematically illustrating a second example of the code table of the first embodiment.
 図18Dに示すように、コード表の第2例には、ハッシュ値と、ヒューマンリーダブル文字を変位させるための値(以下「変位値」という)との対応関係を示す情報が格納される。
 コード表の第2例は、「ハッシュ値」フィールドと、「変位値」フィールドと、を含む。各フィールドは互いに関連付けられている。
 「ハッシュ値」フィールドには、ハッシュ値が格納される。
 「変位値」フィールドには、変位値が格納される。
 このコード表は、例えば、以下の条件を満足するように設計され得る。
・レイアウトの変化が目視または機械読み取りによって認識でき、かつ、目立たない(例えば、±X方向および±Y方向のそれぞれについて、0.5mm刻みで0~2.5mm程度の範囲内の値を変化量とする)。
・レイアウトパターンの変化がシーケンシャルにならない(つまり、シリアル番号などの情報からレイアウトパターンを推定されにくくする)。
・レイアウトパターンが均等に分布する(つまり、ヒューマンリーダブル文字が、特定の場所に高い頻度で配置されないようにする)。
 これによれば、ヒューマンリーダブル文字を含むコード画像が得られる。
As illustrated in FIG. 18D, information indicating a correspondence relationship between a hash value and a value for displacing a human readable character (hereinafter referred to as “displacement value”) is stored in the second example of the code table.
The second example of the code table includes a “hash value” field and a “displacement value” field. Each field is associated with each other.
A hash value is stored in the “hash value” field.
A displacement value is stored in the “displacement value” field.
This code table can be designed to satisfy the following conditions, for example.
・ Changes in the layout can be recognized visually or by machine reading, and are inconspicuous (for example, values in the range of about 0 to 2.5 mm in 0.5 mm increments for each of the ± X and ± Y directions) And).
-Changes in the layout pattern are not sequential (that is, it is difficult to estimate the layout pattern from information such as a serial number).
The layout pattern is evenly distributed (that is, human readable characters are not frequently placed in a specific place).
According to this, a code image including a human readable character is obtained.
 図18Eは、第1実施形態のコード表の第3例を模式的に示す図である。 FIG. 18E is a diagram schematically illustrating a third example of the code table of the first embodiment.
 図18Eに示すように、コード表の第3例には、ハッシュ値と、文字列又はシンボルのレイアウトを変換するための情報(以下「レイアウト変換情報」という)との対応関係を示す情報が格納される。
 コード表の第3例は、「ハッシュ値」フィールドと、「レイアウト変換情報」フィールドと、を含む。各フィールドは互いに関連付けられている。
 「ハッシュ値」フィールドには、ハッシュ値が格納される。
 「レイアウト変換情報」フィールドには、ドットマークの座標値、及び、文字列又はシンボルのレイアウト(例えば、回転、シフト、フォントの書体、フォントのサイズ、フォントの間隔、及び、それらの組合せ)を変換するための情報の組合せが格納される。
 このコード表は、例えば、以下の条件を満足するように設計され得る。
・変換の態様がシーケンシャルにならない(つまり、シリアル番号などの情報からレイアウトパターンを推定されにくくする)。
・変換の態様が均等に分布する(つまり、特定の態様が高い頻度で現れることが無いようにする)。
・変換の態様が相互に類似しない(つまり、印字精度が低かったとしても、偽造防止効果が維持されるようにする)。
 これにより、ドットマーク、及び、文字列又はシンボルの組合せを含むコード画像が得られる。
As shown in FIG. 18E, the third example of the code table stores information indicating the correspondence between the hash value and information for converting the layout of the character string or symbol (hereinafter referred to as “layout conversion information”). Is done.
The third example of the code table includes a “hash value” field and a “layout conversion information” field. Each field is associated with each other.
A hash value is stored in the “hash value” field.
In the “Layout conversion information” field, the coordinate value of the dot mark and the layout of the character string or symbol (for example, rotation, shift, font typeface, font size, font spacing, and combinations thereof) are converted. A combination of information to be stored is stored.
This code table can be designed to satisfy the following conditions, for example.
The mode of conversion is not sequential (that is, the layout pattern is difficult to be estimated from information such as a serial number).
-The mode of conversion is evenly distributed (that is, a specific mode does not appear frequently).
The modes of conversion are not similar to each other (that is, the effect of preventing forgery is maintained even if the printing accuracy is low).
Thereby, a code image including a combination of a dot mark and a character string or a symbol is obtained.
(1-3-3)真贋判定処理
 第1実施形態の真贋判定処理について説明する。図19は、第1実施形態の真贋判定処理のフローチャートである。図20は、図19の真贋判定処理の画面例を示す図である。
(1-3-3) Authenticity Determination Processing The authentication determination processing according to the first embodiment will be described. FIG. 19 is a flowchart of authentication processing according to the first embodiment. FIG. 20 is a diagram illustrating a screen example of the authenticity determination process of FIG.
 図19の真贋判定処理は、スマートフォン10のユーザが、入出力インタフェース13を介して、真贋判定アプリケーションのプログラムの起動の指示を与えた場合に開始される。 19 is started when the user of the smartphone 10 gives an instruction to start the program of the authentication application via the input / output interface 13.
 図19に示すように、スマートフォン10は、コード画像の取得(S1120)を実行する。
 具体的には、プロセッサ12は、画面P110(図20)をディスプレイに表示する。図20に示すように、画面P110は、画像オブジェクトIMG110を含む。画像オブジェクトIMG110は、カメラ15によって撮像されたコード画像(以下「対象コード画像」という)のプレビュー画像である。対象コード画像は、例えば、商品に添付された印字媒体に印字されたコード画像である。
 スマートフォン10のユーザがボタンオブジェクトB110を指定すると、プロセッサ12は、対象コード画像を記憶装置11に記憶する。
As illustrated in FIG. 19, the smartphone 10 executes acquisition of a code image (S1120).
Specifically, the processor 12 displays the screen P110 (FIG. 20) on the display. As shown in FIG. 20, the screen P110 includes an image object IMG110. The image object IMG110 is a preview image of a code image (hereinafter referred to as “target code image”) captured by the camera 15. The target code image is, for example, a code image printed on a print medium attached to a product.
When the user of the smartphone 10 specifies the button object B110, the processor 12 stores the target code image in the storage device 11.
 ステップS1120の後、プロセッサ12は、真贋判定リクエスト(S1121)を実行する。
 具体的には、プロセッサ12は、真贋判定リクエストをサーバ60に送信する。真贋判定リクエストは、ステップS1120で取得された対象コード画像を含む。
After step S1120, the processor 12 executes an authenticity determination request (S1121).
Specifically, the processor 12 transmits an authentication determination request to the server 60. The authenticity determination request includes the target code image acquired in step S1120.
 ステップS1121の後、サーバ60は、真贋判定(S1620)を実行する。
 具体的には、プロセッサ62は、ステップS1121でスマートフォン10から送信された対象コード画像をデコードすることにより、判定の対象となる商品を識別する商品コードを特定する。
 次に、プロセッサ62は、ステップS1611で更新された基準情報データベース(図7)を参照して、特定した商品コードに関連付けられた基準コード画像を特定する。
 次に、プロセッサ62は、特定した基準コード画像と、S1121で送信された判定リクエストに含まれる対象コード画像と、を比較する。
 プロセッサ62は、基準コード画像と対象コード画像とが一致する場合、対象コード画像が「真正」であると判定する。一方、プロセッサ62は、基準コード画像と対象コード画像とが一致しない場合、対象コード画像が「偽造」であると判定する。
After step S1121, the server 60 executes authenticity determination (S1620).
Specifically, the processor 62 specifies a product code for identifying a product to be determined by decoding the target code image transmitted from the smartphone 10 in step S1121.
Next, the processor 62 refers to the reference information database (FIG. 7) updated in step S1611 and specifies a reference code image associated with the specified product code.
Next, the processor 62 compares the identified reference code image with the target code image included in the determination request transmitted in S1121.
When the reference code image matches the target code image, the processor 62 determines that the target code image is “authentic”. On the other hand, when the reference code image does not match the target code image, the processor 62 determines that the target code image is “counterfeit”.
 ステップS1620の後、サーバ60は、真贋判定レスポンス(S1621)を実行する。
 具体的には、プロセッサ62は、真贋判定レスポンスをスマートフォン10に送信する。真贋判定レスポンスは、ステップS1620の判定結果(「真正」又は「偽造」)を含む。
After step S1620, the server 60 executes an authenticity determination response (S1621).
Specifically, the processor 62 transmits an authentication determination response to the smartphone 10. The authenticity determination response includes the determination result (“authentic” or “counterfeit”) in step S1620.
 ステップS1621の後、スマートフォン10は、判定結果の提示(ステップS1122)を実行する。
 具体的には、プロセッサ12は、画面P111(図20)をディスプレイに表示する。図20に示すように、画面P111には、ステップS1621でサーバ60から送信された真贋判定レスポンスに含まれる判定結果が表示される。
 これにより、スマートフォン10のユーザは、商品に付されたコード画像の真贋を確認することができる。
After step S1621, the smartphone 10 performs presentation of the determination result (step S1122).
Specifically, the processor 12 displays the screen P111 (FIG. 20) on the display. As shown in FIG. 20, the determination result included in the authentication determination response transmitted from the server 60 in step S1621 is displayed on the screen P111.
Thereby, the user of the smart phone 10 can confirm the authenticity of the code image attached to the product.
(2)第2実施形態
 第2実施形態について説明する。第2実施形態は、プリンタ40が印字の前に登録リクエストを実行する例である。第1実施形態と同様の説明は省略する。
(2) Second Embodiment A second embodiment will be described. The second embodiment is an example in which the printer 40 executes a registration request before printing. A description similar to that of the first embodiment is omitted.
(2-1)コード画像印字処理
 第2実施形態のコード画像印字処理について説明する。図21は、第2実施形態のコード画像印字処理のシーケンス図である。図22は、図21の処理の画面例を示す図である。図23は、第2実施形態の基準情報データベースのデータ構造を示す図である。
(2-1) Code Image Printing Process The code image printing process of the second embodiment will be described. FIG. 21 is a sequence diagram of the code image printing process according to the second embodiment. FIG. 22 is a diagram illustrating a screen example of the process of FIG. FIG. 23 is a diagram illustrating a data structure of a reference information database according to the second embodiment.
 図21に示すように、クライアント端末30は、第1実施形態(図9)と同様にステップS1310を実行した後、印字リクエスト(S2300)を実行する。
 具体的には、プロセッサ32は、画面P200(図22)をディスプレイに表示する。図22に示すように、画面P200は、入力フィールドオブジェクトF100a及びF100b(図10)と、ボタンオブジェクトB200と、を含む。
 クライアント端末30のユーザがボタンオブジェクトB200を指定すると、プロセッサ32は、印字リクエストをプリンタ40に送信する。印字リクエストは、入力フィールドオブジェクトF100aで指定された商品情報を含む。
As shown in FIG. 21, the client terminal 30 executes the print request (S2300) after executing step S1310 as in the first embodiment (FIG. 9).
Specifically, the processor 32 displays the screen P200 (FIG. 22) on the display. As shown in FIG. 22, the screen P200 includes input field objects F100a and F100b (FIG. 10) and a button object B200.
When the user of the client terminal 30 designates the button object B200, the processor 32 transmits a print request to the printer 40. The print request includes product information designated by the input field object F100a.
 ステップS2300の後、プリンタ40は、プリンタ情報の取得(S2400)を実行する。
 具体的には、プロセッサ42は、ステップS1400(図8)で更新されたプリンタ情報を記憶装置41から取得する。
After step S2300, the printer 40 executes acquisition of printer information (S2400).
Specifically, the processor 42 acquires the printer information updated in step S1400 (FIG. 8) from the storage device 41.
 ステップS2400の後、プリンタ40は、登録リクエスト(S2401)を実行する。
 具体的には、プロセッサ42は、登録リクエストをサーバ60に送信する。登録リクエストは、ステップS2300でクライアント端末30から送信された印字リクエストに含まれる商品情報と、ステップS2400で取得されたプリンタ情報と、プリンタ40を識別するプリンタIDと、を含む。
After step S2400, the printer 40 executes a registration request (S2401).
Specifically, the processor 42 transmits a registration request to the server 60. The registration request includes product information included in the print request transmitted from the client terminal 30 in step S2300, printer information acquired in step S2400, and a printer ID for identifying the printer 40.
 ステップS2401の後、サーバ60は、基準情報の登録(S2600)を実行する。
 具体的には、プロセッサ62は、ステップS2401でプリンタ40から送信された登録リクエストに含まれる商品情報、プリンタ情報、及び、プリンタIDを関連付けて記憶装置61に記憶する。
 これにより、基準情報データベース(図23)が構築される。
After step S2401, the server 60 executes registration of reference information (S2600).
Specifically, the processor 62 associates the product information, the printer information, and the printer ID included in the registration request transmitted from the printer 40 in step S2401 and stores them in the storage device 61.
Thereby, a reference information database (FIG. 23) is constructed.
 基準情報データベースには、基準情報が格納される。
 図23に示すように、基準情報データベースは、「商品コード」フィールドと、「基準情報」フィールドと、を含む。「基準情報」フィールドは、「プリンタID」フィールドと、「使用量」フィールドと、「交換回数」フィールドと、「設置場所」フィールドと、を含む。各フィールドは互いに関連付けられている。
Reference information is stored in the reference information database.
As shown in FIG. 23, the reference information database includes a “product code” field and a “reference information” field. The “reference information” field includes a “printer ID” field, a “use amount” field, a “replacement count” field, and an “installation location” field. Each field is associated with each other.
 「商品コード」フィールドには、登録リクエストに含まれる商品情報が格納される。
 「プリンタID」フィールドには、登録リクエストに含まれるプリンタIDが格納される。
 「使用量」フィールド、「交換回数」フィールド、及び、「設置場所」フィールドには、登録リクエストに含まれるプリンタ情報が格納される。
In the “product code” field, product information included in the registration request is stored.
The “printer ID” field stores the printer ID included in the registration request.
Printer information included in the registration request is stored in the “use amount” field, the “replacement count” field, and the “installation location” field.
(2-2)真贋判定処理
 第2実施形態の真贋判定処理について説明する。図24は、第2実施形態の真贋判定処理のシーケンス図である。
(2-2) Authenticity Determination Processing The authentication determination processing according to the second embodiment will be described. FIG. 24 is a sequence diagram of authenticity determination processing according to the second embodiment.
 図24に示すように、スマートフォン10が、第1実施形態(図19)と同様に、ステップS1120及びS1121を実行した後、サーバ60は、真贋判定(S2610)を実行する。
 具体的には、プロセッサ62は、ステップS1121でスマートフォン10から送信された対象コード画像をデコードすることにより、判定の対象となる商品を識別する商品コード及びプリンタ情報を特定する。
 次に、プロセッサ62は、基準情報データベース(図23)において、特定した商品コードに関連付けて記憶されたプリンタ情報(以下「基準プリンタ情報」という)を特定する。
 次に、プロセッサ62は、対象コード画像から特定したプリンタ情報と、特定した基準プリンタ情報と、を比較する。
 プロセッサ62は、対象コード画像から特定したプリンタ情報と基準プリンタ情報とが一致する場合、対象コード画像が真正であると判定する。一方、プロセッサ62は、対象コード画像から特定したプリンタ情報と基準プリンタ情報とが一致しない場合、対象コード画像が偽造であると判定する。
As shown in FIG. 24, after the smartphone 10 executes steps S1120 and S1121 as in the first embodiment (FIG. 19), the server 60 executes authenticity determination (S2610).
Specifically, the processor 62 decodes the target code image transmitted from the smartphone 10 in step S1121, thereby specifying the product code and printer information for identifying the product to be determined.
Next, the processor 62 specifies printer information (hereinafter referred to as “reference printer information”) stored in association with the specified product code in the reference information database (FIG. 23).
Next, the processor 62 compares the printer information specified from the target code image with the specified reference printer information.
The processor 62 determines that the target code image is authentic when the printer information specified from the target code image matches the reference printer information. On the other hand, when the printer information specified from the target code image does not match the reference printer information, the processor 62 determines that the target code image is counterfeit.
 ステップS2610の後、サーバ60は、第1実施形態(図19)と同様に、真贋判定レスポンス(S1621)を実行する。 After step S2610, the server 60 executes an authenticity determination response (S1621) as in the first embodiment (FIG. 19).
 第2実施形態によれば、クライアント端末30で、偽造防止情報が埋め込まれたコード画像を生成することができない(例えば、当該コード画像を生成する機能を有するアプリケーションがインストールされていない)場合でも、偽造防止効果を向上させることができる。 According to the second embodiment, even when the client terminal 30 cannot generate the code image in which the forgery prevention information is embedded (for example, an application having a function of generating the code image is not installed) The forgery prevention effect can be improved.
(3)第3実施形態
 第3実施形態について説明する。第3実施形態は、プリンタ40が、印字の後に登録リクエストを実行する例である。第1実施形態及び第2実施形態と同様の説明は省略する。
(3) Third Embodiment A third embodiment will be described. The third embodiment is an example in which the printer 40 executes a registration request after printing. Descriptions similar to those in the first and second embodiments are omitted.
(3-1)プリンタ
 第3実施形態のプリンタについて説明する。図25は、第3実施形態のプリンタの構成を示すブロック図である。
(3-1) Printer A printer according to the third embodiment will be described. FIG. 25 is a block diagram illustrating a configuration of a printer according to the third embodiment.
 図25に示すように、プリンタ40は、第1実施形態(図4)と同様の構成に加えて、カメラ45を備える。 As shown in FIG. 25, the printer 40 includes a camera 45 in addition to the same configuration as that of the first embodiment (FIG. 4).
 カメラ45は、プリンタ40の発行口から発行される印字媒体の印字面(コード画像が印字された面)に向くように、配置される。カメラ45は、コード画像が印字された印字媒体の搬送が停止した時(つまり、発行口から発行された時)に、印字媒体の印字面を撮像するように構成される。
 尚、カメラ45はプリンタに内蔵しても良いし、通信インタフェース44等を介してプリンタ40の外部に接続されても良い。
The camera 45 is arranged so as to face the print surface (surface on which the code image is printed) of the print medium issued from the issue port of the printer 40. The camera 45 is configured to take an image of the printing surface of the printing medium when the conveyance of the printing medium on which the code image is printed is stopped (that is, when the printing medium is issued from the issuing port).
The camera 45 may be built in the printer, or may be connected to the outside of the printer 40 via the communication interface 44 or the like.
(3-2)コード画像印字処理
 第3実施形態のコード画像印字処理について説明する。図26は、第3実施形態のコード画像印字処理のシーケンス図である。
(3-2) Code Image Printing Process The code image printing process of the third embodiment will be described. FIG. 26 is a sequence diagram of the code image printing process according to the third embodiment.
 図26に示すように、クライアント端末30が、第2実施形態(図21)と同様に、ステップS1310及びS2300を実行する。 As shown in FIG. 26, the client terminal 30 executes steps S1310 and S2300 as in the second embodiment (FIG. 21).
 ステップS2300の後、プリンタ40は、第2実施形態(図21)と同様に、ステップS2400、S1410を実行した後、コード画像の取得(S3400)を実行する。
 具体的には、カメラ45は、コード画像が印字された印字媒体の搬送が停止した時に、印字媒体の印字面を撮像する。
 次に、プロセッサ42は、印字面に印字されたコード画像に対応するコード画像を生成する。
 次に、プロセッサ42は、生成したコード画像を記憶装置41に記憶する。
After step S2300, as in the second embodiment (FIG. 21), the printer 40 executes steps S2400 and S1410 and then acquires a code image (S3400).
Specifically, the camera 45 images the printing surface of the printing medium when the conveyance of the printing medium on which the code image is printed is stopped.
Next, the processor 42 generates a code image corresponding to the code image printed on the printing surface.
Next, the processor 42 stores the generated code image in the storage device 41.
 ステップS3400の後、プリンタ40は、登録リクエスト(S3401)を実行する。
 具体的には、プロセッサ42は、登録リクエストをサーバ60に送信する。登録リクエストは、ステップS2400で取得されたプリンタ情報と、S3400で取得されたコード画像と、プリンタ40を識別するプリンタIDと、を含む。
After step S3400, the printer 40 executes a registration request (S3401).
Specifically, the processor 42 transmits a registration request to the server 60. The registration request includes the printer information acquired in step S2400, the code image acquired in step S3400, and the printer ID for identifying the printer 40.
 ステップS3401の後、サーバ60は、基準コード画像の登録(S3600)を実行する。
 具体的には、プロセッサ62は、ステップS3401でプリンタ40から送信された登録リクエストに含まれる基準コード画像をデコードすることにより、基準コード画像に対応する商品を識別する商品コードを特定する。
 次に、プロセッサ62は、特定した商品コードと、基準コード画像と、を関連付けて記憶装置61に記憶する。
After step S3401, the server 60 executes registration of a reference code image (S3600).
Specifically, the processor 62 specifies the product code for identifying the product corresponding to the reference code image by decoding the reference code image included in the registration request transmitted from the printer 40 in step S3401.
Next, the processor 62 stores the identified product code and the reference code image in the storage device 61 in association with each other.
 第3実施形態によれば、クライアント端末30でコード画像を生成することができない(例えば、コード画像を生成する機能を有するアプリケーションがインストールされていない)場合でも、偽造防止効果を向上させることができる。 According to the third embodiment, the forgery prevention effect can be improved even when the client terminal 30 cannot generate a code image (for example, an application having a function of generating a code image is not installed). .
 また、プリンタ40が実際に印字したコード画像に対応する基準コード画像が登録されるので、基準コード画像は、プリンタ40の印字特性(例えば、印字濃度、印字のずれ、印字のかすれ)が反映された基準コード画像に対応する。したがって、偽造防止効果を更に向上させることができる。 In addition, since the reference code image corresponding to the code image actually printed by the printer 40 is registered, the reference code image reflects the printing characteristics of the printer 40 (for example, printing density, printing deviation, printing fading). Corresponds to the reference code image. Therefore, the forgery prevention effect can be further improved.
(4)変形例
 変形例について説明する。
(4) Modification A modification will be described.
(4-1)変形例1
 変形例1について説明する。変形例1は、プリンタ情報及び商品情報の組合せに基づく偽造防止情報をコード画像に埋め込む例である。
(4-1) Modification 1
Modification 1 will be described. Modification 1 is an example in which forgery prevention information based on a combination of printer information and product information is embedded in a code image.
 変形例1のクライアント端末30、又は、プリンタ40は、プリンタ情報及び商品情報の組合せに基づく偽造防止情報を、コード画像に埋め込む。 The client terminal 30 or the printer 40 of Modification 1 embeds forgery prevention information based on a combination of printer information and product information in a code image.
 一例として、プロセッサ32は、ステップS1312(図9)において、ステップS1310で取得した商品情報と、ステップS1610でサーバ60から送信されたプリンタ情報レスポンスに含まれるプリンタ情報との組合せに基づく偽造防止情報をコード画像に埋め込む。 As an example, in step S1312 (FIG. 9), the processor 32 receives forgery prevention information based on a combination of the product information acquired in step S1310 and the printer information included in the printer information response transmitted from the server 60 in step S1610. Embed in code image.
 変形例1によれば、コード画像の基準となる情報が増えるので、偽造防止効果を更に向上させることができる。 According to the first modification, the information serving as a reference for the code image is increased, so that the effect of preventing forgery can be further improved.
(4-2)変形例2
 変形例2について説明する。変形例2は、コード画像毎に、プリンタ40に印字の権限を付与する例である。
(4-2) Modification 2
Modification 2 will be described. The second modification is an example in which printing authority is given to the printer 40 for each code image.
(4-2-1)印字権限情報データベース
 変形例2の印字権限情報データベースについて説明する。図27は、変形例2の印字権限情報データベースのデータ構造を示す図である。
(4-2-1) Printing Authority Information Database A printing authority information database according to Modification 2 will be described. FIG. 27 is a diagram illustrating a data structure of a printing authority information database according to the second modification.
 印字権限情報データベースは、記憶装置61に予め記憶されている。
 図27に示すように、印字権限情報データベースは、「商品コード」フィールドと、「プリンタID」フィールドと、を含む。各フィールドは、互いに関連付けられている。
The printing authority information database is stored in the storage device 61 in advance.
As shown in FIG. 27, the printing authority information database includes a “product code” field and a “printer ID” field. Each field is associated with each other.
 「商品コード」フィールドには、商品コードが格納される。 The product code is stored in the “product code” field.
 「プリンタID」フィールドには、「商品コード」フィールドの商品コードに対応するコード画像を印字が許可されたプリンタ40を識別するプリンタIDが格納される。 The “printer ID” field stores a printer ID for identifying the printer 40 that is permitted to print a code image corresponding to the product code in the “product code” field.
(4-2-2)コード画像印字処理
 変形例2のコード画像印字処理について説明する。
(4-2-2) Code Image Printing Process The code image printing process of Modification 2 will be described.
 変形例2のプロセッサ32は、ステップS1311(図9)において、S1310で取得された商品コードを含むプリンタ情報リクエストを送信する。 The processor 32 of the second modification transmits a printer information request including the product code acquired in S1310 in step S1311 (FIG. 9).
 変形例2のプロセッサ62は、ステップS1610において、印字権限情報データベース(図27)を参照する。プロセッサ62は、印字権限情報データベースにおいて、ステップS1311でクライアント端末30から送信されたプリンタ情報リクエストに含まれる商品コードに関連付けられたレコードを特定する。
 次に、プロセッサ62は、特定したレコードのプリンタIDと、プリンタ情報リクエストに含まれるプリンタIDとを比較する。
 特定したレコードのプリンタIDと、プリンタ情報リクエストに含まれるプリンタIDとが一致する場合、プロセッサ62は、第1実施形態と同様のプリンタ情報レスポンスを送信する。
 特定したレコードのプリンタIDと、プリンタ情報リクエストに含まれるプリンタIDとが一致しない場合、プロセッサ62は、印字が禁止されていることを示すメッセージ(以下「禁止メッセージ」という)を含むプリンタ情報レスポンスを送信する。
In step S1610, the processor 62 of the second modification refers to the print authority information database (FIG. 27). The processor 62 specifies a record associated with the product code included in the printer information request transmitted from the client terminal 30 in step S1311 in the print authority information database.
Next, the processor 62 compares the printer ID of the identified record with the printer ID included in the printer information request.
When the printer ID of the identified record matches the printer ID included in the printer information request, the processor 62 transmits a printer information response similar to that in the first embodiment.
If the printer ID of the identified record does not match the printer ID included in the printer information request, the processor 62 sends a printer information response including a message indicating that printing is prohibited (hereinafter referred to as “prohibited message”). Send.
 プロセッサ32は、ステップS1610で送信されたプリンタ情報レスポンスに禁止メッセージが含まれる場合、ステップS1312~ステップS1313に代えて、禁止メッセージをディスプレイに表示する。 When the prohibition message is included in the printer information response transmitted in step S1610, the processor 32 displays the prohibition message on the display instead of steps S1312 to S1313.
 変形例2によれば、商品に予め関連付けられたプリンタ以外のプリンタを用いた印字を防ぐことができる。これにより、偽造防止効果を更に向上させることができる。 According to the second modification, it is possible to prevent printing using a printer other than the printer associated in advance with the product. Thereby, the forgery prevention effect can be further improved.
(4-3)変形例3
 変形例3について説明する。本実施形態では、プロセッサ32は、ステップS1312において、偽造防止対策が施されていないコード画像(例えば、図11A)を生成した後に、当該コード画像に偽造防止情報を埋め込むことにより、偽造防止対策が施されたコード画像(例えば、図11B)を生成する例を示した。
 これに対して、変形例3は、偽造防止対策が施されていないコード画像を生成することなく、偽造防止対策が施されたコード画像を一度の処理で生成する例である。
(4-3) Modification 3
Modification 3 will be described. In the present embodiment, in step S1312, the processor 32 generates a code image (for example, FIG. 11A) that has not been subjected to anti-counterfeit measures, and then embeds anti-counterfeit information in the code image, so that anti-counterfeit measures are taken. The example which produces | generates the code image (for example, FIG. 11B) which gave was shown.
On the other hand, the third modification is an example in which a code image that has been subjected to anti-counterfeit measures is generated in a single process without generating a code image that has not been subjected to anti-counterfeit measures.
 一例として、プロセッサ32は、ステップS1312において、商品情報及びプリンタ情報に基づいて、偽造防止情報を含むコード画像(例えば、図14Bの画像)を生成する。これにより、一度の処理で、偽造防止対策が施されたコード画像を得ることができる。 As an example, in step S1312, the processor 32 generates a code image (for example, the image of FIG. 14B) including forgery prevention information based on the product information and the printer information. Thereby, the code image in which the forgery prevention measure is taken can be obtained by a single process.
(4-4)変形例4
 変形例4について説明する。本実施形態では、印字コマンドを基準情報として登録する例である。
(4-4) Modification 4
Modification 4 will be described. In this embodiment, a print command is registered as reference information.
 一例として、ステップS1314(図9)においてクライアント端末30から送信される登録リクエストは、S1310で取得された商品情報に含まれる商品コードと、ステップS1313においてクライアント端末30から送信された印字リクエストに含まれる印字コマンドと、を含む。 As an example, the registration request transmitted from the client terminal 30 in step S1314 (FIG. 9) is included in the product code included in the product information acquired in S1310 and the print request transmitted from the client terminal 30 in step S1313. Print command.
 プロセッサ62は、ステップS1611において、基準情報データベース(図7)を更新する。基準情報データベースの各フィールドには、以下の情報が格納される。
・「商品コード」フィールドに、ステップS1314において送信された登録リクエストに含まれる商品コードが格納される。
・「基準情報」フィールドに、登録リクエストに含まれる印字コマンドが格納される。
In step S1611, the processor 62 updates the reference information database (FIG. 7). The following information is stored in each field of the reference information database.
In the “product code” field, the product code included in the registration request transmitted in step S1314 is stored.
The print command included in the registration request is stored in the “reference information” field.
 変形例4によれば、印字コマンドを比較することにより真贋判定を実現することができる。 According to the fourth modification, authenticity determination can be realized by comparing print commands.
1      :情報処理システム
10     :スマートフォン
11     :記憶装置
12     :プロセッサ
13     :入出力インタフェース
14     :通信インタフェース
15     :カメラ
30     :クライアント端末
31     :記憶装置
32     :プロセッサ
33     :入出力インタフェース
34     :通信インタフェース
36     :通信回路
40     :プリンタ
41     :記憶装置
42     :プロセッサ
43     :入出力インタフェース
44     :通信インタフェース
45     :カメラ
47a    :ヘッド駆動回路
47b    :印字ヘッド
48a    :ローラ駆動回路
48b    :搬送ローラ
49a    :カッタ駆動回路
49b    :カッタ
60     :サーバ
61     :記憶装置
62     :プロセッサ
63     :入出力インタフェース
64     :通信インタフェース
66     :入出力インタフェース
68     :ストレージ
1: Information processing system 10: Smartphone 11: Storage device 12: Processor 13: Input / output interface 14: Communication interface 15: Camera 30: Client terminal 31: Storage device 32: Processor 33: Input / output interface 34: Communication interface 36: Communication Circuit 40: Printer 41: Storage device 42: Processor 43: Input / output interface 44: Communication interface 45: Camera 47a: Head drive circuit 47b: Print head 48a: Roller drive circuit 48b: Transport roller 49a: Cutter drive circuit 49b: Cutter 60 : Server 61: Storage device 62: Processor 63: Input / output interface 64: Communication interface 66 Input and output interface 68: Storage

Claims (12)

  1.  プリンタと接続可能な情報処理装置であって、
     印字に使用するプリンタに関するプリンタ情報を取得する手段と、
     前記取得したプリンタ情報に基づいて、コード画像を生成する手段と、
    を備える、情報処理装置。
    An information processing apparatus that can be connected to a printer,
    Means for obtaining printer information relating to a printer used for printing;
    Means for generating a code image based on the acquired printer information;
    An information processing apparatus comprising:
  2.  前記コード画像の印字を前記プリンタに指示する手段を更に備える、
    請求項1に記載の情報処理装置。
    Means for instructing the printer to print the code image;
    The information processing apparatus according to claim 1.
  3.  前記取得する手段は、商品に関する商品情報を更に取得し、
     前記生成する手段は、前記取得した商品情報及びプリンタ情報の組合せに基づいて、前記コード画像を生成する、
    請求項1又は2に記載の情報処理装置。
    The acquisition means further acquires product information about the product,
    The generating means generates the code image based on a combination of the acquired product information and printer information.
    The information processing apparatus according to claim 1 or 2.
  4.  前記プリンタ情報は、前記プリンタの使用量を示す情報、前記プリンタの部品の交換回数を示す情報、前記プリンタの設置場所を示す情報の少なくとも1つを含む、
    請求項1~3の何れかに記載の情報処理装置。
    The printer information includes at least one of information indicating the amount of use of the printer, information indicating the number of times of replacement of parts of the printer, and information indicating an installation location of the printer.
    The information processing apparatus according to any one of claims 1 to 3.
  5.  前記プリンタ情報は、前記プリンタを識別するプリンタIDを含み、
     前記取得したプリンタ情報に含まれるプリンタIDが所定のプリンタIDと異なる場合、前記コード画像の生成を禁止する手段を更に備える、
    請求項1~4の何れかに記載の情報処理装置。
    The printer information includes a printer ID for identifying the printer,
    Means for prohibiting generation of the code image when a printer ID included in the acquired printer information is different from a predetermined printer ID;
    The information processing apparatus according to any one of claims 1 to 4.
  6.  コンピュータを、請求項1~5の何れかに記載の各手段として機能させる、プログラム。 A program that causes a computer to function as each means according to any one of claims 1 to 5.
  7.  コンピュータが、
     印字に使用するプリンタに関するプリンタ情報を取得するステップと、
     前記取得したプリンタ情報に基づいて、コード画像を生成するステップと、
    を備える、情報処理方法。
    Computer
    Obtaining printer information about the printer used for printing;
    Generating a code image based on the acquired printer information;
    An information processing method comprising:
  8.  プリンタと、クライアント端末と、サーバと、を含む情報処理システムであって、
     前記プリンタは、前記プリンタを識別するプリンタIDと、前記プリンタに関するプリンタ情報と、を前記サーバに送信する手段を備え、
     前記サーバは、前記プリンタから送信されたプリンタIDと、前記プリンタ情報と、を関連付けて記憶する手段を備え、
     前記クライアント端末は、
      前記サーバから、前記プリンタIDに関連付けられたプリンタ情報を取得する手段と、
      前記取得したプリンタ情報に基づいて、コード画像を生成する手段と、を備える、
    情報処理システム。
    An information processing system including a printer, a client terminal, and a server,
    The printer includes means for transmitting a printer ID for identifying the printer and printer information about the printer to the server.
    The server includes means for storing the printer ID transmitted from the printer in association with the printer information,
    The client terminal is
    Means for obtaining printer information associated with the printer ID from the server;
    Means for generating a code image based on the acquired printer information,
    Information processing system.
  9.  前記クライアント端末は、前記コード画像の印字を前記プリンタに指示する手段を更に備える、
    請求項8に記載の情報処理システム。
    The client terminal further includes means for instructing the printer to print the code image.
    The information processing system according to claim 8.
  10.  前記プリンタ情報は、前記プリンタの使用量を示す情報、前記プリンタの部品の交換回数を示す情報、前記プリンタの設置場所を示す情報の少なくとも1つを含む、
    請求項8又は9に記載の情報処理システム。
    The printer information includes at least one of information indicating the amount of use of the printer, information indicating the number of times of replacement of parts of the printer, and information indicating an installation location of the printer.
    The information processing system according to claim 8 or 9.
  11.  前記取得する手段は、商品に関する商品情報を更に取得し、
     前記生成する手段は、前記取得した商品情報及びプリンタ情報の組合せに基づいて、前記コード画像を生成する、
    請求項8~10の何れかに記載の情報処理システム。
    The acquisition means further acquires product information about the product,
    The generating means generates the code image based on a combination of the acquired product information and printer information.
    The information processing system according to any one of claims 8 to 10.
  12.  前記サーバは、
      印字が許可されたプリンタを識別するプリンタIDを記憶する手段と、
      前記記憶されたプリンタIDと、印字に使用するプリンタを識別するプリンタIDとが一致しない場合、前記コード画像の生成を禁止する手段と、を更に備える、
    請求項8~11の何れかに記載の情報処理システム。
    The server
    Means for storing a printer ID for identifying a printer permitted to print;
    Means for prohibiting the generation of the code image when the stored printer ID and the printer ID for identifying the printer used for printing do not match;
    The information processing system according to any one of claims 8 to 11.
PCT/JP2018/005463 2017-03-13 2018-02-16 Information processing device, program, information processing method, and information processing system WO2018168321A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019505795A JPWO2018168321A1 (en) 2017-03-13 2018-02-16 Information processing apparatus, program, information processing method, information processing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017047618 2017-03-13
JP2017-047618 2017-03-13

Publications (1)

Publication Number Publication Date
WO2018168321A1 true WO2018168321A1 (en) 2018-09-20

Family

ID=63523029

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/005463 WO2018168321A1 (en) 2017-03-13 2018-02-16 Information processing device, program, information processing method, and information processing system

Country Status (3)

Country Link
JP (1) JPWO2018168321A1 (en)
TW (1) TWI770123B (en)
WO (1) WO2018168321A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009107313A (en) * 2007-11-01 2009-05-21 Seiko Epson Corp Printer and system for providing certificate of origin
JP2015515388A (en) * 2012-02-15 2015-05-28 グレニシス ケイエフティー.Glenisys Kft. Security element and method of checking the authenticity of the stamp

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009034967A1 (en) * 2007-09-11 2009-03-19 Tokyo Electron Limited Information processor, information processing method and program
WO2011068464A1 (en) * 2009-12-01 2011-06-09 T-Data Systems (S) Pte Ltd Memory card and method for storage and wireless transceiving of data
JP2011253417A (en) * 2010-06-03 2011-12-15 Ricoh Co Ltd Information processor, program introduction support method, and program introduction support program
US9104420B2 (en) * 2011-08-09 2015-08-11 Samsung Electronics Co., Ltd. Image forming apparatus, microcontroller, and methods for controlling image forming apparatus and microcontroller
US8681361B2 (en) * 2011-12-02 2014-03-25 Apple Inc. Authenticating printers prior to pairing with portable electronic devices
US11562324B2 (en) * 2012-03-01 2023-01-24 Allscripts Healthcare, Llc Systems and methods for generating, managing, and sharing digital scripts
TW201423568A (en) * 2012-12-05 2014-06-16 Kinpo Elect Inc Data printing system and method thereof
US10867584B2 (en) * 2014-06-27 2020-12-15 Microsoft Technology Licensing, Llc Smart and scalable touch user interface display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009107313A (en) * 2007-11-01 2009-05-21 Seiko Epson Corp Printer and system for providing certificate of origin
JP2015515388A (en) * 2012-02-15 2015-05-28 グレニシス ケイエフティー.Glenisys Kft. Security element and method of checking the authenticity of the stamp

Also Published As

Publication number Publication date
TW201833758A (en) 2018-09-16
JPWO2018168321A1 (en) 2020-01-16
TWI770123B (en) 2022-07-11

Similar Documents

Publication Publication Date Title
US10235618B2 (en) Authentication feature in a barcode
US9773168B2 (en) Identification mark with a predetermined color difference
TWI644261B (en) Data transmission using optical codes
CN105938569A (en) Method and system for generating and printing three dimensional barcodes
EP3356995B1 (en) Method and system of forensic encryption
US20180057975A1 (en) Process for making a fabric label containing one unique information and respective authentication process
CN103119613A (en) Two-dimensional identification pattern, article including such a pattern, and methods for marking and identifying such a pattern
CN103198345A (en) Method of preventing copy of two-dimension code and two-dimension printer
JP2006245980A (en) Method, apparatus and program for image processing, and method, apparatus and program for detecting alteration, and recording medium
TW201835816A (en) Method for generating image data of a code, and method for determining authenticity or false of the code
CN103403733B (en) The method printing the product code of the character containing amendment
US9832471B2 (en) Description encoding/decoding of information from a graphic information unit
CN105894072A (en) Two-dimensional code mixed generation system
WO2018168321A1 (en) Information processing device, program, information processing method, and information processing system
US20160004889A1 (en) Systems and methods of using magnetization to authenticate products
JP2005222157A (en) Two-dimensional code, device and method for generating two-dimensional code, and device and method for reading two-dimensional code
CN102442096B (en) Method for printing variable information by embedding information into word stock
WO2015010938A1 (en) Personalization of documents
US11200470B2 (en) Method for checking a surface of an object, which surface is imprinted and/or structured in raster shape, and an object
JP2009118293A (en) Method of displaying electronic watermark pattern, and information holder
JP6127899B2 (en) Image processing apparatus and image processing program
EP2831809B1 (en) Security feature
JP2016004534A (en) Information code medium and information code utilization system
JP4491288B2 (en) Two-dimensional code, information verification system using the two-dimensional code, and information verification method
JP2012194601A (en) Individual identification device, individual identification method and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18768260

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019505795

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18768260

Country of ref document: EP

Kind code of ref document: A1