[go: up one dir, main page]

WO2017073780A1 - 情報コードを読み取る装置及び情報コードを生成する方法 - Google Patents

情報コードを読み取る装置及び情報コードを生成する方法 Download PDF

Info

Publication number
WO2017073780A1
WO2017073780A1 PCT/JP2016/082237 JP2016082237W WO2017073780A1 WO 2017073780 A1 WO2017073780 A1 WO 2017073780A1 JP 2016082237 W JP2016082237 W JP 2016082237W WO 2017073780 A1 WO2017073780 A1 WO 2017073780A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
code
reading
unit
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2016/082237
Other languages
English (en)
French (fr)
Inventor
藤本 浩章
原 昌宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Denso Wave Inc
Original Assignee
Toshiba Corp
Denso Wave Inc
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
Priority claimed from JP2015214538A external-priority patent/JP6486813B2/ja
Priority claimed from JP2016049549A external-priority patent/JP6502882B2/ja
Application filed by Toshiba Corp, Denso Wave Inc filed Critical Toshiba Corp
Publication of WO2017073780A1 publication Critical patent/WO2017073780A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light

Definitions

  • the present invention relates to an apparatus for reading an information code in which desired information is implemented in advance as a set of information units, such as a QR code (registered trademark), and a method for generating the same, and in particular, measures against failure in reading the information.
  • the present invention relates to an apparatus and a method that can be taken.
  • information code readers (or simply called code readers) that can read an information code such as a barcode or QR code (registered trademark) and output the read result have been used everywhere. Recently, it has been proposed to incorporate this information code reader into a ticket gate for managing visitors at, for example, a station, an airport, an event venue, etc. (see, for example, Patent Document 1). For example, when a user puts a ticket on which an information code such as a boarding ticket or an admission ticket is displayed on the information code reading device, the information code reading device reads the information code displayed on the ticket or the like. The information code reading device acquires data from the read information code, and notifies the acquired data to an external device of the information code reading device, for example, a control device of the ticket gate.
  • an external device of the information code reading device for example, a control device of the ticket gate.
  • the information code reading device when a part of the information code is hidden by the user's finger or the like holding the ticket, or when only a part of the information code enters the reading field of the information code reading device, the information code reading device The information code may not be read normally from a defaced ticket. In this case, the information code reader becomes unresponsive when the information code cannot be read even though the ticket or the like is worn.
  • the conventional information code reader has no response while waiting for reading of the information code, but there is a problem that when the information code reading fails, there is no response. Furthermore, the information code reading device cannot notify the control device of the ticket gate or the user of the information code reading abnormality, for example. As a result, the operation of the ticket gate is temporarily stopped, and it becomes difficult for the user to determine whether the reading of the information code has been normally executed.
  • the following problems may occur when a plurality of users pass through the ticket gate continuously. That is, if reading of the information code for the voucher or the like worn by the previous user fails, the information code reading device does not respond and the operation of the ticket gate is temporarily stopped. In this case, if the previous user does not notice that the reading of the information code has failed, the previous user proceeds further while the ticket gate is temporarily stopped. Then, when a user who came later after the previous user picks up a ticket or the like with respect to the restored information code reading device, the information code reading device displays an information code such as a ticket or the like that the subsequent user has deceived. Will be read.
  • the information code reading device outputs the read result without distinguishing whether the read information code is for the voucher that the previous user has deceived or for the voucher that the subsequent user has deceived. Then, the ticket gate passes the previous user by the information code that the voucher or the like worn by the subsequent user has. In this case, since the previous user has already passed through the ticket gate, there may occur a situation in which a user who comes later cannot pass through the ticket gate.
  • the apparatus described in Patent Document 1 determines whether the code is in a stamped state or the deterioration of the code reader based on how much the code is read in error from the error correction function of the information code.
  • this Patent Document 1 detects a position detection pattern (position detection pattern) that is easy to detect when reading an information code, so that the medium is deceived by a code reader, but the medium is deceived. It is not possible to determine whether the reading could not be performed.
  • an information code reading device that outputs information in response to a code reading failure. Also provided are an information code reading apparatus and an information code generation method capable of suppressing reading an information code different from the information code that failed to be read after the information code reading has failed.
  • the code reader includes an acquisition unit, a code reading unit, a pattern detection unit, and a first output unit.
  • the acquisition unit acquires a captured (captured) image.
  • the code reading unit reads an information code from the captured image.
  • the pattern detection unit detects a position detection pattern indicating the presence of the information code from the captured image.
  • the apparatus includes an imaging unit capable of imaging an information code displayed on a medium, a code reading unit capable of reading the information code captured by the imaging unit, and the information code read by the code reading unit.
  • An output unit capable of outputting the read result, and the imaging unit, the code reading unit, and a control unit for controlling the output unit.
  • the information code includes general information to be recorded and unique information set uniquely for the general information.
  • the control unit when the code reading unit succeeds in reading the unique information and fails to read the general information, the information code having the unique information different from the unique information that has been successfully read.
  • the code reading unit is controlled so as not to read general information.
  • the third aspect of the present disclosure relates to a typical example of an information code generation method.
  • a function pattern having a preset shape and encoded general information are arranged inside a predetermined code area, and the encoding is set uniquely in the general information inside or around the code area.
  • the unique code is arranged to generate an information code.
  • FIG. 1 is a block diagram illustrating a configuration example of a code reader according to the first embodiment.
  • FIG. 2 is a diagram illustrating a configuration example of the surface of the ticket according to the first embodiment.
  • FIG. 3 is a diagram illustrating another configuration example of the surface of the ticket according to the first embodiment.
  • FIG. 4 is a diagram illustrating a configuration example of the back surface of the ticket according to the first embodiment.
  • FIG. 5 is a diagram illustrating another configuration example of the back surface of the ticket according to the first embodiment.
  • FIG. 6 is a flowchart for explaining an operation example of the code reader according to the first embodiment.
  • FIG. 7 is a flowchart for explaining an operation example of the code reader according to the first embodiment.
  • FIG. 1 is a diagram conceptually illustrating an example of a configuration of unique information according to the second embodiment (part 1).
  • FIG. 2 is a diagram conceptually illustrating an example of a configuration of unique information according to the second embodiment (part 2).
  • the figure which shows the relationship between the control state in the control part of an information code reader, and the data output from an output part about 2nd Embodiment (the 1) Flowchart showing the contents of information code reading processing performed by the control unit of the information code reading device in the third embodiment (part 1) Flowchart showing the contents of the information code reading process performed by the control unit of the information code reading device in the third embodiment (No.
  • FIG. 14 is a flowchart mainly showing a portion different from FIG. 14 or FIG. 17 in the contents of the information code reading process performed by the control unit of the information code reading device in the fourth embodiment.
  • the figure which shows the relationship between the control state in the control part of an information code reader, and the data output from an output part about 4th Embodiment (the 1) The figure which shows the relationship between the control state in the control part of an information code reader, and the data output from an output part about 4th Embodiment (the 2) The figure which shows the relationship between the control state in the control part of an information code reader, and the data output from an output part about 4th Embodiment (the 3) The figure which shows an example of the encoded information code about 5th Embodiment
  • An information code reader (also referred to as a code reader; hereinafter simply referred to as a code reader) is a code or screen (liquid crystal screen such as a smartphone) recorded on a sheet (for example, a ticket). Read the code displayed on the screen.
  • the code read by the code reader is a two-dimensional code.
  • the code read by the code reader is, for example, a stack type or matrix type two-dimensional code.
  • the code read by the code reader is, for example, a QR code (registered trademark).
  • the code read by the code reader is not limited to a specific two-dimensional code.
  • the code reader may read a one-dimensional code such as a barcode as a code.
  • the code read by the code reader is not limited to a specific configuration.
  • the position detection pattern is a left guard bar and a right guard bar on the left and right that indicate the start and end of reading.
  • the code reader decodes the read code, acquires code data, and transmits the code data to an external device.
  • FIG. 1 is a block diagram illustrating a configuration example of the code reader 1.
  • the code reader 1 includes a processor 11, a ROM 12, a RAM 13, a first timer 14a, a second timer 14b, a camera 15, a communication unit 16, and the like.
  • the processor 11 includes a CPU and has a function of controlling the operation of the entire code reader 1.
  • the processor 11 may include an internal cache and various interfaces.
  • the processor 11 implements various processes by executing programs stored in advance in an internal memory, ROM 12 (functioning as a non-transitory computer readable recording medium), or the like.
  • processor 11 controls a function executed by the hardware circuit.
  • the ROM 12 is a non-volatile memory in which a control program and control data are stored in advance.
  • the control program and control data stored in the ROM 12 are incorporated according to the specifications of the code reader 1 in advance.
  • the ROM 12 stores, for example, a program for controlling the circuit board of the code reader 1.
  • RAM 13 is a volatile memory.
  • the RAM 13 temporarily stores data being processed by the processor 11.
  • the RAM 13 stores various data based on instructions from the processor 11.
  • the RAM 13 may store data necessary for program execution, program execution results, and the like.
  • the first timer 14a measures the time from when the processor 11 detects a position detection pattern (which can also be said to be a mark indicating the presence of a code). For example, the first timer 14a starts measuring time based on a signal from the processor 11, and notifies the processor 11 of the measured time. Further, the first timer 14a may transmit a predetermined signal to the processor 11 when measuring a predetermined time. Note that the first timer 14 a may be realized as a function of the processor 11.
  • the second timer 14b measures the time from the time when the processor 11 transmits a reading abnormality signal or detection information.
  • the second timer 14b has the same configuration as the first timer 14a.
  • the first timer 14a and the second timer 14b may be one timer.
  • the camera 15 acquires an image including a code recorded on the sheet or a code displayed on the screen. For example, the camera 15 acquires an image by acquiring reflected light of light that is built in the camera 15 or illuminated by illumination provided in the code reader 1 or the like. The camera 15 acquires an image by acquiring light emitted from a screen or the like. The camera 15 may acquire an image using visible light. The camera 15 can acquire an image using invisible light. That is, the camera 15 acquires an image using predetermined dedicated light that is invisible light. For example, the camera 15 is a CCD or the like.
  • the camera 15 captures a code from a sheet or screen that is worn by the camera 15.
  • the camera 15 may be a handy type.
  • the camera 15 may photograph the code by being worn on a sheet or screen by an operator or the like.
  • the camera 15 photographs a code recorded on the ticket 2 as a sheet.
  • the communication unit 16 is an interface for transmitting / receiving data to / from an external device.
  • the communication unit 16 connects to an external device wirelessly or by wire.
  • the communication unit 16 is an interface that supports USB connection, for example.
  • the processor 11 transmits the code data (decoding result) acquired to the external device through the communication unit 16 when the code has been successfully read (that is, when the code data has been successfully acquired). Further, when the processor 11 fails to read the code (that is, fails to acquire the code data) and succeeds in detecting the position detection pattern, the reading error indicating that the reading of the code has failed through the communication unit 16 to the external device. A signal (first predetermined information) or pattern detection information (first predetermined information) indicating the detection of the position detection pattern is transmitted. For example, the reading abnormality signal is information indicating that the code reading has failed. That is, the processor 11 transmits different information to the subsequent processing device when the code data acquisition is successful and when the code data acquisition fails but the position detection pattern is detected successfully.
  • the code reader 1 may further include necessary elements as appropriate, or delete unnecessary elements.
  • the code reader 1 may include a nonvolatile memory that can rewrite data, a display unit that displays an image, or a speaker unit that outputs sound.
  • the ticket 2 is, for example, a rectangular heat sensitive medium. When heat is applied from the outside, the applied portion of the ticket 2 changes to a predetermined color. For example, the ticket 2 changes to black due to heat.
  • the ticket 2 is paper, plastic, vinyl, or the like.
  • FIG. 2 shows a configuration example of the surface of the ticket 2 photographed by the camera 15.
  • the surface of the ticket 2 is provided with an information code (which is a code in which cell data is arranged, also referred to as a data code) 21 and the like.
  • an information code which is a code in which cell data is arranged, also referred to as a data code
  • the information code 21 is a code created by encoding predetermined data.
  • the information code 21 is printed on the ticket 2 by an issuing machine that issues the ticket 2 or the like.
  • the issuing machine prints the information code 21 on the ticket 2 by heating the ticket 2.
  • the information code 21 is a two-dimensional code.
  • the information code 21 is a QR code.
  • the information code 21 may include ticket information. That is, the information code 21 may be created by encoding the ticket information.
  • the information indicated by the information code 21 is not limited to a specific configuration.
  • the information code 21 has position detection patterns 22a to 22c for detecting the presence of the information code, that is, its position.
  • the position detection patterns 22a to 22c indicate that the information code 21 is within a predetermined range from the reference position of the position detection patterns 22a to 22c.
  • the position detection patterns 22a to 22c are formed in the information code 21. That is, the position detection patterns 22 a to 22 c are formed as a part of the information code 21.
  • the position detection patterns 22a to 22c may indicate the position and / or direction of the information code 21.
  • the processor 11 may recognize the position and / or direction of the information code 21 from the positions of the position detection patterns 22a to 22c.
  • the position detection patterns 22a to 22c are also called finder patterns.
  • the information code 21 includes various position detection patterns (functional patterns) other than the above-described position detection patterns such as timing patterns in the code area.
  • the position detection patterns 22a to 22c are formed at the corners of the information code 21, respectively. In the example shown in FIG. 2, the position detection patterns 22a to 22c are formed at the upper left, upper right, and lower left of the information code 21, respectively.
  • the position detection pattern 22 may be formed at the center of the information code 21 or may be formed at other locations.
  • the position and number of position detection patterns 22 included in the information code 21 are not limited to a specific configuration.
  • the ticket 2 may include a character string or the like in an area other than the area (code area) where the information code 21 is formed.
  • the ticket 2 may include a character string related to the information code 21 in the area.
  • FIG. 3 shows another configuration example of the surface of the ticket 2.
  • the surface of the ticket 2 has at least one position detection pattern 22 outside the code area in addition to the information code 21.
  • the surface of the ticket 2 includes position detection patterns 22d to 22g.
  • the position detection patterns 22d to 22g have the same configuration as the position detection patterns 22a to 22c.
  • the position detection patterns 22d to 22g are formed on the upper left, lower left, upper right, and lower right of the surface of the ticket 2, respectively. Note that the position detection pattern may be formed at other locations other than the code area.
  • the position and number of the position detection patterns 22 formed outside the code area are not limited to a specific configuration.
  • FIG. 4 shows a configuration example of the back surface of the ticket 2.
  • the back surface of the ticket 2 includes position detection patterns 22h to 22k.
  • the position detection patterns 22h to 22k have the same configuration as the position detection patterns 22a to 22c.
  • the position detection patterns 22h to 22k are formed on the upper left, lower left, upper right, and lower right of the back surface of the ticket 2, respectively.
  • the back surface of the ticket 2 may be provided with the position detection pattern 22 at another position.
  • the number and positions of the position detection patterns 22 provided on the back surface of the ticket 2 are not limited to a specific configuration.
  • FIG. 5 shows another configuration example of the back surface of the ticket 2.
  • the back surface of the ticket 2 includes a concealing layer 23 and a detection code 24.
  • the concealing layer 23 is a layer from which information (code) is read using predetermined dedicated light (a recording area where information can be read by the dedicated light).
  • the masking layer 23 transmits predetermined dedicated light and does not transmit visible light.
  • the camera 15 can irradiate predetermined dedicated light to obtain reflected light from a cord or the like under the concealing layer 23.
  • the dedicated light is invisible light that can be read by the camera 15.
  • the dedicated light is, for example, ultraviolet light or infrared light.
  • the hiding layer 23 may be formed on the entire back surface of the ticket 2.
  • the detection code 24 is a code created by encoding predetermined information.
  • the detection code 24 may indicate the same information for any ticket 2.
  • the detection code 24 may indicate that it is formed on the back surface.
  • the detection code 24 may be a test code.
  • the detection code 24 is a QR code (registered trademark).
  • the detection code 24 is formed under the concealment layer 23. Therefore, the detection code 24 is read with predetermined dedicated light. That is, the detection code 24 can be read with invisible light.
  • the processor 11 has a function of acquiring a captured image captured (or captured) by the camera 15 (acquisition unit). For example, the processor 11 transmits a signal for capturing an image to the camera 15. The processor 11 acquires an image transmitted from the camera 15 as a captured image.
  • the processor 11 has a function of detecting that a medium (for example, a ticket 2) has been tricked into the camera 15. For example, the processor 11 detects that the medium has been deceived from the brightness or darkness of the captured image captured by the camera 15. Further, the processor 11 may detect that the medium has been tampered with using another sensor such as a proximity sensor.
  • a medium for example, a ticket 2
  • the processor 11 may detect that the medium has been tampered with using another sensor such as a proximity sensor.
  • the processor 11 has a function of scanning the captured image and reading the information code 21 or the detection code 24 (code reading unit). For example, the processor 11 raster scans the captured image to detect the information code 21 or the detection code 24. Further, the processor 11 detects the pattern of the dark module and the bright module of the information code 21 or the detection code 24. The processor 11 decodes the information code 21 or the detection code 24 from the detected pattern, and acquires predetermined data from the information code 21 or the detection code 24. Note that the method by which the processor 11 reads the information code 21 or the detection code 24 and the method for acquiring data from the information code 21 or the detection code 24 are not limited to specific methods.
  • the processor 11 has a function of scanning the captured image and detecting the position detection pattern 22 (pattern detection unit). For example, the processor 11 detects the position detection pattern 22 by raster scanning the captured image. Note that the method by which the processor 11 detects the position detection pattern 22 is not limited to a specific method.
  • the processor 11 may execute the function of reading the information code 21 or the detection code 24 and the function of detecting the position detection pattern 22 simultaneously in parallel. For example, the processor 11 scans the captured image, and simultaneously executes a function of reading the information code 21 or the detection code 24 and a function of detecting the position detection pattern 22.
  • the processor 11 reads the detection code 24, the back surface notification (second predetermined information) indicating that the back surface of the ticket 2 has been defaced or the detection code indicating detection of the detection code It has a function of outputting detection information (second predetermined information) (second output unit).
  • the processor 11 cannot read the information code 21 within a predetermined time (first predetermined time) after detecting the position detection pattern 22 (that is, when the code data cannot be acquired from the information code 21), or When the voucher 2 is no longer worn by the camera 15, it has a function of outputting a reading abnormality notification indicating that reading of the information code 21 has failed or pattern detection information indicating detection of a position detection pattern (first detection). Output section).
  • the processor 11 when the processor 11 detects the position detection pattern 22, the processor 11 starts the first timer 14a. For example, the processor 11 transmits a signal for causing the first timer 14a to start measuring time. The processor 11 reads the information code 21 from the captured image until the first timer 14a measures a first predetermined time (for example, a time arbitrarily set between 0.1 second and 1 second). continue.
  • a first predetermined time for example, a time arbitrarily set between 0.1 second and 1 second.
  • the processor 11 detects the position detection pattern 22, it determines whether or not the ticket 2 is no longer trapped by the camera 15. The processor 11 continues the operation of reading the information code 21 from the captured image until it is determined that the ticket 2 is no longer trapped by the camera 15.
  • the processor 11 may read the information code 21 based on the detected position detection pattern 22.
  • the processor 11 estimates the position and direction of the information code 21 based on the position of the position detection pattern 22 and the like.
  • the processor 11 may read the information code 21 based on the estimated position and direction of the information code 21.
  • the processor 11 ends the reading operation of the information code 21 when the first timer 14a measures the first predetermined time.
  • the processor 11 completes the reading operation of the information code 21, for example, via the communication unit 16, a reading abnormality notification indicating that the reading of the information code 21 has failed, or pattern detection information indicating the detection of the position detection pattern is transmitted to the external device. Send to.
  • the processor 11 when the processor 11 is within a predetermined time (second predetermined time) after transmitting the reading abnormality notification or pattern detection information to the external device, the reading abnormality notification or pattern detection is detected even if the position detection pattern 22 is detected. Do not send information to external devices.
  • the processor 11 when the processor 11 transmits a reading abnormality notification or pattern detection information to the external device, the processor 11 starts the second timer 14b. For example, the processor 11 transmits a signal for causing the second timer 14b to start measuring time. The processor 11 does not transmit the reading abnormality notification or the pattern detection information to the external device even if the position detection pattern 22 is detected until the second timer 14b measures the second predetermined time (for example, several seconds).
  • the processor 11 transmits the reading abnormality notification or the pattern detection information to the external device even if the position detection pattern 22 is detected when the ticket 2 has not been reproduced after the reading abnormality notification or the pattern detection information is transmitted to the external device. Do not send.
  • the processor 11 determines whether or not the ticket 2 has been defaced and has been defaced again. The processor 11 does not transmit the reading abnormality notification or the pattern detection information to the external device even if the position detection pattern 22 is detected until the ticket 2 is re-checked.
  • the processor 11 When the reading abnormality notification or the pattern detection information is output every time the position detection pattern is detected even after the reading abnormality notification or the pattern detection information is transmitted, the processor 11 repeatedly reads the abnormality as long as the medium continues to be deceived. Notification or pattern detection information may be transmitted to an external device. In that case, the external device cannot determine how many times the media has been deceived. Therefore, even if the processor 11 detects the position detection pattern 22 if the non-detection of the position detection pattern 22 does not continue for a second predetermined time or more after transmitting the reading abnormality notification or pattern detection information, the reading abnormality notification or pattern is detected. Do not send detection information. Accordingly, the processor 11 can synchronize the operation of the external device and the operation of the user picking up the medium without the external device performing complicated processing.
  • the processor 11 transmits a reading abnormality notification or pattern detection information related to the previous position detection pattern 22 to the external device, or whether a second predetermined time has elapsed, Alternatively, when the ticket 2 is re-checked, when the position detection pattern 22 is detected again, a reading abnormality notification or pattern detection information is transmitted to the external device.
  • 6 and 7 are flowcharts for explaining an operation example of the processor 11.
  • the operator holds the ticket 2 on the camera 15.
  • the second timer 14b is stopped in a state where the second predetermined time is counted in the initial state.
  • the processor 11 determines YES in S16 after first detecting the position detection pattern 22, and can start the first timer 14a.
  • the processor 11 acquires a captured image taken by the camera 15 (S11).
  • the processor 11 scans the captured image (S12).
  • the processor 11 determines whether the information code 21 has been read from the captured image (S13).
  • the processor 11 reads the information code 21 from the captured image, tries to decode the code data from the information code 21, and acquires the code data.
  • the information code 21 includes an error correction code, and even if a part of the code is missing (even if a part of the code is not read), the processor 11 may decode the code data using the error correction code. it can. In this way, the processor 11 tries to decode the code data, and determines whether the code data has been successfully acquired from the information code 21.
  • the processor 11 determines whether the detection code 24 has been read (S14). The processor 11 determines whether or not the acquisition of the detection code 24 has been successful as in the case of reading the information code 21.
  • the processor 11 determines whether the position detection pattern 22 has been detected (S15).
  • the processor 11 If it is determined that the position detection pattern 22 has not been detected (S15, NO), the processor 11 returns to S11.
  • the processor 11 determines whether the second timer 14b has timed the second predetermined time or whether the ticket 2 has been retanned. (S16). If it is determined that the second timer 14b has timed the second predetermined time or that the ticket sheet 2 has been retanned (S16, YES), the processor 11 starts the first timer 14a (S17). . When the first timer 14a is started, the processor 11 acquires a captured image captured by the camera 15 (S18). When the captured image is acquired, the processor 11 scans the captured image (S19).
  • the processor 11 determines whether the information code 21 has been read from the captured image (S20). If it is determined that the information code 21 has not been read from the captured image (S20, NO), the processor 11 determines whether the first timer 14a has timed the first predetermined time or whether the ticket 2 has been deceived ( S21).
  • the processor 11 If it is determined that the first timer 14a has not timed the first predetermined time and the ticket 2 has been wrinkled (S21, NO), the processor 11 returns to S18. When it is determined that the first timer 14a has timed the first predetermined time or the ticket 2 has not been deceived (S21, YES), the processor 11 indicates that the reading of the information code 21 has failed through the communication unit 16. The reading abnormality notification or the pattern detection information indicating the detection of the position detection pattern is transmitted to the external device (S22).
  • the processor 11 When the reading abnormality notification or the pattern detection information is transmitted, the processor 11 starts the second timer 14b (S23). For example, the processor 11 resets the second timer 14b and starts measuring time.
  • the processor 11 When the second timer 14b is started (S23), or when it is determined that the second timer 14b has not timed the second predetermined time and the ticket 2 is not retanned (S16) , NO), the processor 11 returns to S11.
  • the processor 11 When it is determined that the information code 21 has been read from the captured image (S13, YES), or when it is determined that the information code 21 has been read from the captured image (S20, YES), the processor 11 transmits the information code 21 through the communication unit 16. Is transmitted to the external device (S24).
  • the processor 11 uses the communication unit 16 to notify the back side indicating that the back side of the ticket 2 has been tampered with or to detect the detection code.
  • Code detection information is transmitted to the external layer (S25).
  • the processor 11 ends the operation.
  • the code reader 1 may include a display unit that displays an image (not shown).
  • the processor 11 may display a message indicating that reading has failed on the display unit as a reading abnormality notification. Further, the processor 11 may display the code data on the display unit.
  • the code reader 1 may include a speaker that outputs sound.
  • the processor 11 may output a warning sound or a warning sound indicating that reading has failed through a speaker as a reading abnormality notification.
  • the processor 11 may reset the first timer 14a (the first timer 14a may be returned to the initial value). Further, the processor 11 may extend the time for reading the information code 21 when the position detection pattern 22 is detected again.
  • the code reader configured as described above cannot read the code within a certain time after detecting the position detection pattern (if it cannot acquire the code data), the code reader externally notifies that the reading has failed. Send to device. Since the position detection pattern indicates the presence of the code, when the position detection pattern is detected, the code reader can recognize that the sheet on which the code is recorded or the screen on which the code is displayed has been turned.
  • the code reader can output a notification in response to the failure to read the code by the above operation, and can notify, for example, a reading abnormality notification or pattern detection information.
  • the code reader when reading data from a two-dimensional code, the code reader needs to accurately detect the coordinates of the cells arranged in a grid and the black and white identification. On the other hand, the code reader may detect a rough shape in order to detect the position detection pattern. Therefore, the code reader can easily read the position detection pattern even when optical blur or camera shake occurs due to the distance between the camera and the two-dimensional code. Therefore, the code reader can determine that the medium has been tampered with but data reading has failed.
  • the code reader may output a plurality of reading abnormality notifications or the like in a single trick operation.
  • the external device cannot determine how many times the user has overwhelmed the medium. Therefore, when the code reader does not read the data at a predetermined time after detecting the position detection pattern, the code reader transmits the reading abnormality notification and the like so that the operation of the external device and the operation of the user scolding the medium are performed. Can be synchronized.
  • the code reader transmits a backside notification indicating that the detection of the detection position detection pattern has been detected and that the backside has been tampered with. Therefore, the code reader can notify the external device that the user has mistakenly turned the back of the ticket.
  • the code reader can read the detection position detection pattern with invisible light. This prevents the user from recognizing the code on the back surface and prevents the back surface from being mistaken.
  • the processor 11 can read the program from a computer-readable storage medium via the communication unit 16, store the read program, and complete the installation of the program.
  • the processor 11 can download the program from the server via the communication unit 16, store the downloaded program, and complete the installation of the program. Thereby, the processor 11 of the code reader 1 can realize the above processing based on the installed program.
  • the information code system 110 of this embodiment includes an information code generation device 120, an information code reading device (hereinafter simply referred to as a code reader) 130, and an external device 140.
  • the information code system 110 can be used for, for example, a ticketing and ticket gate system for managing visitors at stations, airports, event venues, and the like.
  • the external device 140 is a ticket gate
  • the information code generation device 120 is a ticket issuing machine.
  • the code reader 130 is, for example, a code reader incorporated in a ticket gate, that is, the external device 40.
  • the information code system 110 is not limited to ticketing and ticket gate systems, and can be applied to other purposes. Further, the code reader 30 does not need to be incorporated in the external device 40.
  • the information code generation device 120 generates the information code 150 shown in FIG. 8 or 12 and causes the information code display medium 160 to display the information code 150.
  • the information code 150 includes, for example, a stack type or matrix type two-dimensional code.
  • the information code generation device 120 has a function of generating a two-dimensional code and a one-dimensional code.
  • the information code generation device 120 has a function of generating a QR code and a barcode. Note that the information code 150 generated by the information code generation device 120 is not limited to a QR code and a barcode.
  • the information code display medium 160 on which the information code 150 is displayed is, for example, a paper or resin sheet medium, or an electronic device having a display screen such as a liquid crystal screen, such as a smartphone.
  • “displaying the information code 150 on the information code display medium 160” means displaying the information code 150 on the information code display medium 160 so that it can be recognized from the appearance. That is, “to display the information code 150” means that, for example, when the information code display medium 160 is a paper medium, the information code 150 is printed on the paper medium. This means that the information code 150 is displayed on the screen of the electronic device.
  • the information code generation device 120 has a function of printing the information code generated by the information code generation device 120 on a medium. Therefore, the information code generation device 20 also serves as a printing device for printing the information code generated by the information code generation device 120 on a medium.
  • the information code generation device 120 includes a control unit 121, a general information acquisition unit 122, a unique information generation unit 123, an encoding unit 124, and a printing unit 125.
  • the control unit 121 is mainly composed of a microcomputer having, for example, a CPU 211, a storage area 212 such as a ROM, a RAM, and a rewritable flash memory, and a timer (not shown). Control.
  • the storage area 212 is a recording medium that functions as a non-transitory computer readable recording medium, and stores an information code generation program.
  • the control unit 121 virtually implements the general information acquisition unit 122, the unique information generation unit 123, the encoding unit 124, and the like by software by executing an information code generation program in the CPU 211.
  • the general information acquisition unit 122, the unique information generation unit 123, and the encoding unit 124 may be realized in hardware as an integrated circuit integrated with the control unit 121, for example.
  • the information code 150 generated by the information code generation device 120 includes general information 156 and unique information 157 as shown in FIG.
  • the general information 156 is information to be encoded, that is, information to be recorded.
  • the general information 156 is information such as a train number, a seat number, a boarding place, a getting-off place, a ticketing date and time, and a charge.
  • the unique information 157 is information inherently associated with the general information 156 and is unique to the general information 156.
  • the unique information 157 is associated with the general information 156, and even if there are a plurality of information codes 150, the general information 156 and the unique information 157 for each information code 150 are in principle one-to-one. It has become a relationship.
  • the information code generation device 120 is connected to a host computer higher than the information code generation device 120 via a communication line (not shown), for example.
  • the general information acquisition unit 122 has a function of acquiring the general information 56 from the host computer (not shown).
  • the unique information generation unit 123 generates unique information 157 unique to the general information 156 acquired by the general information acquisition unit 122, as shown in FIG.
  • the probability that the same unique information 57 is generated is 1 / (2048) ⁇ 2. Therefore, it can be said that the probability that the same unique information 157 is generated is extremely low.
  • the unique information generation unit 123 has a function of generating unique information 157 using, for example, random numbers. That is, in this case, the unique information 157 is configured by the random number 571.
  • the information code system 110 includes a plurality of information code generation devices 120, each information code generation device 120 has a different random number table.
  • the unique information generation unit 123 sets the unique information 157 as 3 of the 11 bits as the device identifier 572, and sets the remaining 8 bits by the printing device, that is, the information code generation device 120. It is set as a serial number 573 indicating the order of printing. That is, in this case, the unique information is configured by the device identifier 572 and the serial number 573.
  • the unique information generation unit 123 when the information code system 110 includes eight information code generators 120, device identifiers 572 of 0 to 7 are assigned to the information code generators 120, respectively. Then, the unique information generation unit 123 generates the unique information 157 by adding the serial number 573 to the device identifier 572.
  • the serial number 573 means the number of unique information 157 generated from the start of use of the information code generator 120 to the present.
  • the unique information 157 generated by the unique information generation unit 123 is not limited to the above-described information. For example, the number of bits of the unique information 157 may be greater than or less than 11 bits.
  • the unique information 157 is not limited to the information composed of the random number 561, the device identifier 572, and the serial number 573, and may include other elements.
  • the encoding unit 124 encodes the general information acquired by the general information acquisition unit 122 and the specific information generated by the specific information generation unit 123 to generate a QR code 150 as shown in FIG. .
  • the printing unit 125 shown in FIG. 8 prints the information code 150 encoded by the encoding unit 124, that is, the general information 156 and the unique information 157 on an information code display medium 160 such as a ticket.
  • the printing unit 125 may be incorporated in the information code generation device 120 or may be provided outside the information code generation device 120.
  • the information code generation device 120 includes a communication unit that can communicate with the electronic device instead of the printing unit 125 in order to display the information code 150 generated by the information code generation device 120 on an electronic device such as a smartphone. Also good.
  • the information code 150 includes a plurality of cells 511 formed by dividing the inside of a predetermined code area 151 into a lattice shape. Each cell 511 is two-dimensionally or planarly arranged in the code area 151.
  • the code area 151 is an area that includes all the cells 511 constituting the information code 150, and is, for example, a rectangular area. In the present embodiment, the code area 151 is a square area including 21 ⁇ 21 cells 511. Note that the size of the code area 151, that is, the size of the information code 150 is not limited to that described above, and can be appropriately changed depending on the capacity of the general information 156 and the like.
  • Each cell 511 is displayed in, for example, a white bright color or a black dark color.
  • the information code 150 is a QR code (registered trademark), for example, and has a configuration conforming to JISX0510.
  • the information code 150 includes position detection patterns 521 to 523, a timing pattern 153, separation patterns 541 to 543, and an encoding area 55.
  • the position detection patterns 521 to 523 and the timing pattern 153 are function patterns having a preset shape. That is, the position detection patterns 521 to 523 and the timing pattern 153 are set in a fixed shape regardless of the contents of the general information 156 and the unique information 157.
  • three position detection patterns 521 to 523 are arranged at corners including three vertices of the square code area 151, respectively.
  • the two position detection patterns 521 and 522 arranged on the diagonal line in the rectangular shape of the code area 151 are replaced with the first position detection pattern 521 and the second position detection pattern, respectively.
  • the remaining position detection pattern 523 is referred to as a third position detection pattern 523.
  • the timing pattern 153 is arranged in the encoding area 155.
  • the separation patterns 541 to 543 are patterns for separating the position detection patterns 521 to 523 and the coding region 155, and are all configured in light color, that is, white.
  • the separation pattern 541 for separating the first position detection pattern 521 and the coding region 155 is referred to as a first separation pattern 541.
  • a separation pattern 542 for separating the second position detection pattern 522 and the coding region 155 is referred to as a second separation pattern 542.
  • a separation pattern 543 for separating the third position detection pattern 523 and the coding region 155 is referred to as a third separation pattern 543.
  • encoded general information 156 and unique information 157 are arranged in the encoding area 155.
  • the encoded general information 156 and unique information 157 are not displayed for convenience of explanation. However, in practice, each cell 511 in the encoding area 155 is displayed in light or dark color according to the encoded general information 156 and unique information 157.
  • the unique information 157 is arranged adjacent to the separation pattern 541 in the coding area 155.
  • the unique information 157 may be arranged in only one place, but the unique information 157 having the same content is preferably arranged in at least two places. Therefore, the unique information 157 having the same content may be distributed in three or more places.
  • the unique information 157 having the same content is distributed and arranged in two places.
  • the encoding area 155 has a first unique information area 551 and a second unique information area 552.
  • the part indicated by the right-down oblique line is the cell 511 of the first specific information area 551
  • the part indicated by the left-down oblique line is the first This is the cell 511 of the second unique information area 552.
  • unique information 157 having the same content is arranged.
  • the first unique information area 551 is provided separately in two. A portion of the first unique information region 551 is provided adjacent to a portion of the first separation pattern 541 that does not face the third position detection pattern 523. The remaining portion of the first unique information area 551 is provided adjacent to a portion of the second separation pattern 542 that does not face the third position detection pattern 523. The second unique information region 552 is provided adjacent to the entire third separation pattern 543.
  • the encoded general information 156 is arranged in an area other than the unique information areas 551 and 542 in the encoding area 55.
  • the code reader 130 reads the information code 150 displayed on the information code display medium 160 and decodes, that is, decodes the read information code 150.
  • the code reader 130 transmits the reading result, that is, the decoded code data, to the external device 140.
  • the code reader 130 has a function of reading a two-dimensional code and a one-dimensional code.
  • the code reader 130 has a function of reading a QR code and a barcode.
  • the information code 150 read by the code reader 130 is not limited to a QR code and a barcode.
  • the code reader 130 includes a control unit 131, an imaging unit 132, a communication unit 133, a code reading unit 134, an output unit 135, and a receiving unit 136.
  • the control unit 131 is mainly configured by, for example, a microcomputer having a CPU 311, a storage area 312 (functioning as a non-transitory computer readable recording medium) such as a ROM, a RAM, and a rewritable flash memory, and a timer (not shown). And controls the entire code reader 130.
  • the storage area 312 stores an information code reading program.
  • the control unit 131 virtually implements the code reading unit 134, the output unit 135, the receiving unit 136, and the like by software by executing an information code reading program in the CPU 311.
  • the code reading unit 34, the output unit 135, and the receiving unit 136 may be realized in hardware as an integrated circuit integrated with the control unit 31, for example.
  • the imaging unit 132 is a CCD camera or the like, for example, and has a function of imaging the information code 150 displayed on the information code display medium 160.
  • the control unit 131 can acquire the information code 150 displayed on the information code display medium 160 by acquiring visible light or invisible light reflected from the information code display medium 160 by the imaging unit 132.
  • the control unit 131 has a function of detecting that the information code display medium 160 has been deceived by the imaging unit 132 from the brightness or darkness of the captured image by the imaging unit 132.
  • the control unit 131 may detect that the information code display medium 160 has been tampered with using another sensor such as a proximity sensor.
  • the control unit 131 acquires the information code 50 displayed on the information code display medium 160 from the image captured by the imaging unit 132.
  • the communication unit 133 is an interface for transmitting and receiving data to and from the external device 140.
  • the communication unit 116 is connected to the external device 140 wirelessly or by wire.
  • the code reading unit 134 has a function of scanning the image captured by the imaging unit 132, decoding the information code 150, and reading the content of the information code 150. For example, when detecting the position detection patterns 521 to 523 shown in FIG. 12, the code reading unit 134 decodes the general information 156 and the unique information 157 in the encoding area 155.
  • the output unit 135 has a function of outputting the content of the information code 150 read by the code reading unit 134, that is, code data and the like to the external device 140 via the communication unit 133.
  • the receiving unit 136 has a function of receiving a command from the external device 140 via the communication unit 133.
  • the words in parentheses indicate the contents of the flowchart corresponding to the words immediately before the parentheses.
  • “FP” written in step S114 in FIG. 13 is an abbreviation of finder pattern, and means position detection patterns 521 to 523.
  • one fixed value To and three variables T, ID0, and IDx are set.
  • the variable T is a variable indicating the time since the timer was activated.
  • the control unit 131 starts timing by a timer when the unique information 157 is successfully read for the first time after the information code reading process is started (start of FIG. 13).
  • the fixed value To defines the upper limit of the variable T and is a preset value.
  • the variable ID0 is for indicating the value of the unique information 157 read for the first time after the execution of the information code reading process is started (start of FIG. 13).
  • the variable IDx is for indicating the value of the latest unique information 157 among the unique information 157 read after the execution of the information code reading process is started (start of FIG. 13).
  • the variable T is referred to as a count time T
  • the fixed value To is referred to as a timeout time To
  • the variable ID0 is referred to as an initial value ID0
  • the variable IDx is referred to as a current value IDx.
  • the control unit 131 when the code reading unit 134 succeeds in reading the unique information 157 and fails to read the general information 156, the control unit 131 includes information having unique information 157 different from the unique information 157 that has been successfully read. For the code 150, the code reading unit 134 is controlled so as not to read the general information 156.
  • step S111 when the information code reading process is started (start of FIG. 13), the control unit 131 performs initial setting in step S111.
  • the control unit 131 sets the count time T, the initial value ID0, and the current value IDx to 0, respectively.
  • step S112 the control unit 131 determines whether the count time T has reached the timeout time To.
  • the control unit 131 ends the information code reading process (end in FIG. 14).
  • the control unit 131 moves the process to step S113.
  • step S113 the control unit 131 performs image acquisition and scanning of the information code 150 by the imaging unit 132 and the code reading unit 134. If the position detection patterns 521 to 523 are not detected as a result of the process in step S113 (NO in step S114), the control unit 131 shifts the process to step S112. On the other hand, if position detection patterns 521 to 523 are detected (YES in step S114), control unit 131 proceeds to step S115 and attempts to read unique information 157 from information code 150.
  • step S116 If the reading of the unique information 157 fails (NO in step S116), the control unit 131 shifts the process to step S112. On the other hand, when the reading of the unique information 157 is successful (YES in step S116), the control unit 131 shifts the process to step S117. Then, the control unit 131 sets the current value IDx to the value of the unique information 157 read in step S115. Thereafter, the control unit 131 shifts the processing to step S118 in FIG.
  • the control unit 131 determines whether or not the timer is operating in step S118 of FIG. That the timer is stopped means that the unique information 157 read in step S115 in FIG. 13 is the unique information 157 read for the first time after the information code reading process is started (start in FIG. 13). To do. Therefore, if the timer is stopped (NO in step S118), control unit 131 proceeds to step S119 and starts the timer. And the control part 131 transfers a process to step S120, and sets initial value ID0 to present value IDx. Thereafter, the control unit 131 shifts the processing to step S122.
  • step S118 the fact that the timer is operating in step S118 means that steps S119 and 120 have already been executed. That is, the fact that the timer is operating in step S118 indicates that the unique information 157 read in step S115 in FIG. 13 is read for the first time after the information code reading process is started (start in FIG. 13). That is, it means that the unique information 157 is read after the second time. Therefore, when the timer is operating (YES in step S118), the control unit 131 proceeds to step S121 and determines whether or not the current value IDx is equal to the initial value ID0.
  • the fact that the current value IDx does not match the initial value ID0 in step S121 means that the unique information 157 detected after the second time is different from the unique information 157 detected first, that is, the information code acquired first. This means that 150 and the currently acquired information code 150 are different. In other words, it means that the information code display medium 610 currently deceived by the imaging unit 132 is different from the information code display medium 160 deceived first. Therefore, when the current value IDx and the initial value ID0 do not match (NO in step S121), the control unit 131 determines that an information code display medium 160 different from the information code display medium 160 that has been initially deceived has been deceived. . And the control part 131 transfers a process to step S112 of FIG. 13, without reading the general information 156 in step S122.
  • the fact that the current value IDx matches the initial value ID0 in step S121 means that the unique information 157 detected after the second time is the same as the unique information 157 detected first, that is, acquired first.
  • the control unit 131 re-enters the information code display medium 160 that is the same as the information code display medium 160 that is initially defaced. The process proceeds to step S122.
  • control part 131 reads the general information 156 arrange
  • step S123 the control unit 131 determines whether or not the general information 156 has been successfully read in step S122. If the reading of the general information 156 fails (NO in step S123), the control unit 131 shifts the process to step S112 in FIG. 13, and repeats the processes in steps S112 to S123 again.
  • step S ⁇ b> 124 the control unit 131 outputs the reading result from the output unit 135 and transmits the reading result to the external device 140 via the communication unit 137.
  • the control unit 131 displays the general information 156 and the unique information 157 as the reading results.
  • Output step S124 in FIG. 14). Note that the numbers given above the “reading state” arrows in FIG. 15 mean the step numbers in FIGS. 13 and 14. And the control part 131 complete
  • the external device 140 that has received the reading result from the code reader 130 performs processing according to the reading result.
  • the code reader 130 includes the imaging unit 132, the code reading unit 134, the output unit 135, and the control unit 131.
  • the imaging unit 132 can image the information code 150 displayed on the information code display medium 160.
  • the code reading unit 134 can read the information code 150 imaged by the imaging unit 132.
  • the output unit 135 can output the reading result of the information code 150 read by the code reading unit 134.
  • the control unit 131 controls the imaging unit 132, the code reading unit 134, and the output unit 135.
  • the information code 150 includes general information 156 to be recorded and unique information 157 that is uniquely set to the general information 156.
  • the control unit 131 succeeds in reading the unique information 157 (YES in step S116 of FIG. 13). If the general information 156 has been successfully read (YES in step S123 of FIG. 14), the reading result is output (step S124). On the other hand, after the code reading unit 134 detects the position detection patterns 521 to 523 (YES in step S114), the control unit 131 succeeds in reading the unique information 157 (YES in step S116 of FIG. 13). When the reading of the general information 156 fails (NO in step S123 of FIG. 14), the code reading is performed so that the general information 156 is not read for the information code 150 having the unique information 157 different from the unique information 157 successfully read. Unit 134 is controlled (NO in step S121 in FIG. 14).
  • reading of the general information 156 fails for the information code 150 that is initially deceived (step S123 in FIG. 14), and then another information code is read without reading the general information 156 of the first information code 150.
  • the display medium 160 is defaced (YES in step S121 of FIG. 14)
  • the following operational effects are obtained. That is, the information code 150 has unique information 157 unique to the general information 156. Therefore, in this case, the unique information 157 possessed by the information code 150 that is cheated later does not match the unique information 157 possessed by the information code 150 that is cheated first. Therefore, the control unit 131 controls the code reading unit 134 so as not to read the general information 156 of the information code 150 cheated later.
  • the control unit 131 When the code reading unit 134 has successfully read the unique information 157 (YES in step S116 in FIG. 13) and has failed to read the general information 156 (NO in step S123 in FIG. 14), the control unit 131 performs a predetermined period of time. Until T0 elapses (YES in step S112 in FIG. 13), the code reading unit 134 is controlled so that the general information 156 is not read for the information code 150 having the unique information 157 different from the unique information 157 successfully read. . According to this, even if the code reader 130 fails to read the general information 156, the reading process can be continued by the code reader 130 alone. Therefore, an increase in processing by the external device 140 can be suppressed, and as a result, the load on the external device 140 can be suppressed.
  • function patterns 521 to 523, 153 having a preset shape and encoded general information 156 are arranged in a predetermined code area 151.
  • the encoded unique information 157 is arranged inside the code area 151 to generate the information code 150. According to this, for example, the information code 150 having the unique information 157 can be easily generated without greatly changing the configuration of the conventional QR code.
  • the unique information 157 is set by a random number, although it is extremely rare, there is a possibility that the same unique information 157 is accidentally issued to different general information 156. Therefore, in this case, the possibility that the same unique information 157 is generated is allowed, or the unique information 157 generated in the past by the information code generation device 120 that generates the unique information 157 and newly generated unique information 157 is collated, and if they match, processing such as regenerating the unique information 157 is required.
  • the information code generation device 120 is a printing device and there are a plurality of printing devices, it is necessary to share the unique information 157 generated in the past between the printing devices. As a result, communication between the plurality of information code generation devices 120 is required, and the entire system becomes complicated.
  • the unique information 157 may include a device identifier 572 and a serial number 573.
  • the device identifier 572 is an identifier for identifying the information code generation device 120 in the case of the printing device 120 that prints the information code 150 on the information code display medium 160.
  • the serial number 573 is a number indicating the order of printing by the printing apparatus 120. According to this, even if there are a plurality of printing apparatuses, that is, a plurality of information code generation apparatuses 120, at least the apparatus identifier 572 is different between the information code generation apparatuses 120, and therefore the same among the information code generation apparatuses 120.
  • the unique information 157 is not generated. Therefore, the generation of the unique information 157 can be managed by the information code generation device 120 alone without performing communication or the like between the information code generation devices 120, and as a result, it is possible to prevent the entire system from becoming complicated.
  • the function patterns 521 to 523, the general information 156, and the unique information 157 are configured by a two-dimensional code. According to this, since the unique information 157 can be included in, for example, a conventional QR code, the information code 150 including the unique information 157 can be easily generated.
  • the two-dimensional code constituting the information code 150 is a QR code.
  • the unique information 157 is arranged adjacent to the separation patterns 541 to 543 that separate the coding area 155 and the position detection patterns 521 to 523 in the coding area 155. That is, the unique information 157 is arranged in the vicinity of the position detection patterns 521 to 523. According to this, even if a part of the information code 150 is hidden by the user's finger or the like, if the position detection patterns 521 to 523 are detected, the information code 150 is arranged in the vicinity of the position detection patterns 521 to 523. The unique information 157 is easily detected at the same time. Therefore, it is possible to improve the probability that at least the unique information 157 in the information code 150 is normally read.
  • the unique information 157 having the same content is arranged in at least two places. That is, in the above-described embodiment, the unique information 157 having the same content is distributed and arranged in two places of the first unique information area 551 and the second unique information area 552 in the encoding area 155. According to this, the code reader 130 can read the other unique information 157 even when the one unique information 157 is hidden by the user's finger or the like. Accordingly, it is possible to further improve the probability that at least the unique information 157 in the information code 150 is normally read.
  • the control unit 131 executes the information code reading process shown in FIGS. 16 and 17.
  • the information code reading process shown in FIGS. 16 and 17 includes steps S131 and S132 shown in FIG. 16 and step S133 shown in FIG. 17 instead of steps S112 and S118 and 119 in FIG. ing.
  • step S131 the control unit 131 starts execution of the information code reading process (start of FIG. 16) and performs initial setting (step S111).
  • step S131 the control unit 131 determines whether or not the initial value ID0 is 0.
  • the initial value ID0 is 0, it means that step S120 of FIG. 17 has not yet been executed from the start of the information code reading process to the present, that is, the unique information 157 has not been read. .
  • the initial value ID0 is a value different from 0, it means that steps S120 to S123 have already been executed. That is, if the initial value ID0 is a value different from 0, the unique information 157 has already been successfully read from the start of the information code reading process to the present (YES in step S116 in FIG. 16), and This means that the reading of the general information 156 has failed (NO in step S123 in FIG. 17).
  • step S131 If the initial value ID0 is a value different from 0 in step S131 of FIG. 16 (NO in step S131), the control unit 131 executes steps S113 to S117 as in the second embodiment, and then the steps of FIG. The process proceeds to S133. Then, the control unit 131 determines whether or not the initial value ID0 is 0 in step S133. When the initial value ID0 is 0 (YES in step S133), the control unit 131 sets the initial value ID0 to the current value IDx in step S120. Thereafter, the control unit 131 shifts the processing to step S121. On the other hand, when the initial value ID0 is not 0 (NO in step S133), the control unit 131 shifts the process to step S121 without executing step S120, that is, while maintaining the initial value I0.
  • the control unit 131 executes step S121 to step S123 as in the second embodiment.
  • the control unit 131 proceeds to step S131 in FIG. Then, the process from step S131 is repeated.
  • the control unit 131 proceeds to step S124.
  • the control unit 131 outputs the reading result from the output unit 135 and transmits the reading result to the external device 140 via the communication unit 137. And the control part 131 complete
  • step S131 when the initial value ID0 is a value different from 0 in step S131 of FIG. 16 (NO in step S131), the control unit 131 shifts the processing to step S132. Then, the control unit 131 determines whether or not the receiving unit 136 has received a clear command for the initial value ID0 from the external device 140. When the receiving unit 136 has not received the clear command for the initial value ID0 (NO in step S132), the control unit 131 executes step S113 and subsequent steps as described above. On the other hand, when the receiving unit 136 receives a clear command for the initial value ID0 (YES in step S132), the control unit 131 ends the information code reading process (END in FIG. 17).
  • the control unit 131 when the code reading unit 134 succeeds in reading the unique information 157 (YES in step S116) and fails to read the general information 156 (in step S123 of FIG. 17). NO) until the receiving unit 136 receives a command from the external device 140 (YES in step S132 in FIG. 16), the general information 156 for the information code 150 having the unique information 157 different from the unique information 157 successfully read.
  • the code reading unit 134 is controlled so as not to read (NO in step S121). According to this, the same effect as the second embodiment can be obtained.
  • the control unit 131 adds information identifiers 581 and 582 for identifying the type of information included in the read result to the output content output from the output unit 135, as shown in FIGS. .
  • the control unit 131 adds and outputs the first information identifier 581 to the unique information 157 and the general information 156.
  • the first information identifier 581 indicates that the unique information 157 and the general information 156 have been successfully read. That is, the first information identifier 581 indicates that the content output from the output unit 135 includes the unique information 157 and the general information 156.
  • the control unit 131 adds the second information identifier 582 to the unique information 157 when the unique information 157 has been successfully read but the general information 156 has failed to be read. And output.
  • the second information identifier 582 indicates that the reading of the general information 156 has failed. That is, the second information identifier 582 indicates that the general information 156 is not included in the content output from the output unit 135.
  • the control unit 131 outputs an output unit when the general information 156 cannot be read even after the first period T1 elapses after the code reading unit 134 reads the unique information 157.
  • the unique information 157 is output from 135.
  • the control unit 131 does not detect the position detection patterns 521 to 523 and continues to detect the position detection patterns 521 to 523. Does not output the unique information 157 from the output unit 135.
  • the control unit 131 succeeds in reading the unique information 157 after the undetected state of the position detection patterns 521 to 523 continues for the second period T2 and thereafter.
  • the unique information 157 is output again from the output unit 135.
  • the second period T2 is longer than the first period T1.
  • the second period T2 is a period that is assumed as a period from when the user who put the information code display medium 160 to the code reader 130 removes the information code display medium 160 from the code reader 130 and then turns it again. For example, about 1 second.
  • the first period T1 is a period shorter than the second period T2, and is about 0.5 seconds, for example.
  • the control unit 131 executes the information code reading process shown in FIGS.
  • the processing contents shown in FIG. 18 include steps S141 and S142 in addition to the processing contents of FIG. Note that FIG. 18 shows processing after step S113.
  • the processing contents before step S113 may be those shown in FIG. 13, that is, steps S111 to S113, or those shown in FIG. 16, that is, steps S111, S131, and S132. May be.
  • processing content shown in FIG. 19 includes steps S143 to S147 in addition to the processing content shown in FIG. Note that FIG. 19 shows processing after step S122.
  • the processing contents before step S122 may be those shown in FIG. 14, that is, steps S118 to S121, or those shown in FIG. 17, that is, steps S133, S120, and S121.
  • control unit 131 executes steps S111 and S112 in FIG. 13 or steps S111, S131, and S132 in FIG. 16, and further executes steps S113 and S114 shown in FIG.
  • the control unit 131 sets the variable F to 0 in the initial setting in step S111.
  • the variable F determines whether to permit the output of the unique information 157 from the output unit 135.
  • the control unit 131 permits the output of the unique information 157 from the output unit 135.
  • the control unit 131 does not permit the output of the unique information 157 from the output unit 135.
  • step S141 the controller 131 determines whether or not the undetected state of the position detection patterns 521 to 523 continues for the second predetermined period T2.
  • the control unit 131 sets the variable F to 0 in step S142. Thereafter, the control unit 131 shifts the processing to step S112 in FIG. 13 or step S131 in FIG.
  • step S142 executes FIG.
  • the process proceeds to step S112 or step S131 in FIG. That is, if the position detection patterns 521 to 523 are not in the undetected state, or if the position detection patterns 521 to 523 have not been detected yet in less than the second predetermined period T2, the control unit 131 performs step S142. Do not execute.
  • step S123 of FIG. 19 the control unit 131 determines whether or not the reading of the general information 156 performed in step S122 is successful.
  • the control unit 131 shifts the process to step S143.
  • step S143 the control unit 131 outputs the first information identifier 581 from the output unit 35 in addition to the general information 156 and the unique information 157, as shown in FIG.
  • step S44 the control unit 131 determines whether or not the first period T1 has elapsed since the reading of the general information 156 first failed.
  • first failure to read the general information 56 means that the position detection patterns 521 to 523 are detected for the first time after starting (starting) the information code reading process (YES in step S114 in FIG. 18), and thereafter This means the case where reading of the general information 156 fails for the first time (NO in step S123 of FIG. 19).
  • step S144 If the first period T1 has not elapsed since the first reading of the general information 156 failed (NO in step S144), the control unit 131 does not execute steps S145 to S147, but executes step S112 in FIG. The process proceeds to step S131 in FIG. That is, after reading the general information 156 for the first time (NO in step S123), the first period T1 does not elapse (NO in step S144), and if the reading of the general information 156 fails again (step S144). The control unit 131 proceeds to step S112 in FIG. 13 or step S131 in FIG. 9 without executing steps S145 to S147.
  • step S145 the control unit 131 determines whether or not the variable F is zero.
  • the fact that the variable F is 0 means that the steps S146 and S147 have not been executed yet and the unique information 157 has not been output, or the steps S146 and S147 have been executed and the unique information 157 has been output.
  • the control unit 131 displays the second information identifier 582 in addition to the unique information 157 as illustrated in FIG. 21 or FIG. 35.
  • variable F is a value different from 0, it means that the unique information 157 has already been output by executing steps S146 and 147 and the position detection patterns 521 to 523 are not in the undetected state, or have already been This means that the steps S146 and 147 are executed, the unique information 157 is output, and the position detection patterns 521 to 523 are not detected yet for the second period T2 or more. Therefore, when the variable F is not 0 (NO in step S145 in FIG. 19), the control unit 131 does not execute steps S146 and S147, that is, does not output the unique information 157, or the step S112 in FIG. The process proceeds to step S131 in FIG.
  • the control unit 131 receives the second identification information 582 and the unique information 57 from the output unit 135. Is not output.
  • the control unit 131 adds information identifiers 581 and 582 for identifying the type of information included in the read result to the output content output from the output unit 135.
  • the external device 140 that has received the reading result from the code reader 130 can determine the type of information included in the reading result by looking at the information identifiers 581 and 582 added to the reading result. It is.
  • the code reader 130 reads the unique information 157 and the general information 156 while the user is holding the information code display medium 160. If the configuration is such that the unique information 157 is output every time reading of the general information 156 fails, the output unit 135 continues to output the unique information 157 until the general information 156 is successfully read. . Then, the amount of information received by the external device 140 increases and the processing of the external device 140 becomes complicated.
  • the control unit 131 succeeds in reading the unique information 157 (YES in step S116 in FIG. 18), and then cannot read the general information 56 even after the first period T1 has elapsed. (NO in step S123 of FIG. 19 and YES in step S144), the unique information 157 is output from the output unit 135. Therefore, the control unit 131 does not output the unique information 157 every time reading of the general information 156 fails. That is, once the unique information 157 is output, the control unit 131 does not continue to output the unique information 157 until the general information 156 is successfully read. Therefore, an increase in the amount of information received by the external device 140 can be suppressed, and as a result, the processing of the external device 140 can be prevented from becoming complicated and the processing load can be reduced.
  • the number of times the information code display medium 160 is tricked against the code reader 130 is useful information for controlling the code reader 130 and the external device 140.
  • the fact that the detection states of the position detection patterns 521 to 523 are continued without the position detection patterns 521 to 523 being in an undetected state means that the information code 150 once deceived is released from the code reader 130. This means that the trick has been performed only once. Therefore, after outputting the unique information 157 from the output unit 135, the control unit 131 does not detect the position detection patterns 521 to 523 and continues to detect the position detection patterns 521 to 523. Does not output the unique information 157 from the output unit 135.
  • the fact that the position detection patterns 521 to 523 are detected again after the position detection patterns 521 to 523 are not detected may indicate that the information code display medium 160 has been defaced. Therefore, after outputting the unique information 157 from the output unit 135, the control unit 131 succeeds in reading the unique information 157 after the undetected state of the position detection patterns 521 to 523 continues for the second period T2 and thereafter. When the general information 156 cannot be read even after the first period T1 has elapsed, the unique information 157 is output again from the output unit 135.
  • the control unit 131 sets the second period T2 to a time required for redoing the trick operation, for example, about 1 second. And the control part 131 makes specific information 157 one of the conditions of an output again that the undetected state continued more than 2nd period T2.
  • the number of times the unique information 157 is output can be assumed to be the number of times the information code display medium 160 has been deceived. Therefore, the external device 140 can artificially grasp the number of times the user has defaced the information code display medium 160 by measuring the number of unique information 157 received from the code reader 130.
  • the configuration of the unique information 157 arranged in the information code 150 is different from those in the above embodiments.
  • the information code generation device 120 generates barcodes 591 and 592 as the encoded unique information 157.
  • one of the two barcodes 591 and 592 is referred to as a first barcode 591 and the other is referred to as a second barcode 592.
  • Each of the first barcode 591 and the second barcode 592 indicates the unique information 157 having the same content.
  • the two-dimensional code constituting the information code 150 is, for example, a QR code.
  • the information code generation device 120 arranges the two barcodes 591 and 592 at positions adjacent to the encoding area 155 outside the encoding area 155 and between the two position detection patterns. That is, the information code generating apparatus 120 places the barcodes 591 and 592 outside the QR code code area 51 at a position in contact with the QR code code area 151.
  • the first barcode 591 is disposed between the first position detection pattern 521 and the third position detection pattern 523.
  • the second barcode 592 is disposed between the second position detection pattern 522 and the third position detection pattern 523.
  • the unique information 157 is arranged outside the encoding area 155 as barcodes 591 and 592. Therefore, it is possible to suppress a decrease in the information amount of the general information 156 due to the arrangement of the unique information 157 in the coding area 155. That is, according to the present embodiment, the size of the information code 150 with respect to the general information 156 can be reduced.
  • the barcodes 591 and 592 are respectively between two position detection patterns, that is, between the first position detection pattern 521 and the third position detection pattern 523 and between the second position detection pattern 522 and the third position detection pattern 523. Arranged between. That is, the barcodes 591 and 592 are not adjacent to any of the position detection patterns 521 to 523.
  • a quiet zone that is, a margin with a certain width is provided between the barcodes 591 and 592 and the position detection patterns 521 to 523.
  • a quiet zone that is, a margin with a certain width is provided between the barcodes 591 and 592 and the position detection patterns 521 to 523.
  • the distance between the barcodes 591 and 592 and the position detection patterns 521 to 523 can be made as close as possible. It can. That is, it is possible to avoid the deterioration of the reading performance of the barcodes 591 and 592 due to the arrangement of the barcodes 591 and 592 outside the code area 151 as much as possible.
  • DESCRIPTION OF SYMBOLS 1 ... Code reader, 2 ... Ticket paper, 11 ... Processor (functionally comprises an acquisition part, a code reading part, a pattern detection part, a 1st output part, a 2nd output part), 14a ... 1st timer 14b ... second timer, 15 ... camera, 16 ... communication unit, 21 ... information code, 22a to 22c ... position detection pattern, 23 ... hiding layer, 24 ... detection code, 110 ... information code system, 120 ... information Code generating device (printing device), 130... Code reader (information code reading device), 131... Control unit, 132... Imaging unit, 134 ... code reading unit, 135 ... output unit, 136 ... receiving unit, 140 ...

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

コードリーダ(1)は、取得部と、コード読取部と、パターン検出部と、出力部とを構成するプロセッサ(11)を備える。取得部は、撮像画像を取得する。コード読取部は、撮像画像から情報コード(21)を読み取る。パターン検出部は、撮像画像から情報コードの存在を示す位置検出パターンを検出する。出力部は、コード読取部が情報コードを読み取る場合には情報コードに対応するコードデータを出力する。一方、出力部は、コード読取部が情報コードを読み取らずパターン検出部が位置検出パターンを検出する場合には、その旨を示す読取異常情報を出力する。このような読取異常は、情報コードが記録対象となる一般情報と、一般情報に固有に設定された固有情報と、を含む場合、それら一般情報と固有情報の読取成功及び読取失敗に基づいて処置することもできる。

Description

情報コードを読み取る装置及び情報コードを生成する方法 発明の英文名称
 APPARATUS FOR READING INFORMATION CODE AND METHOD OF GENERATING INFORMATION CODE
 本発明は、QRコード(登録商標)など、予め所望の情報が情報単位の集合としてインプリメントされている情報コードを読み取る装置及びそれを生成する方法に関し、とくに、その情報の読取の失敗に対する措置を講ずることができる装置及び方法に関する。
 近年、バーコードやQRコード(登録商標)等の情報コードを読み取り、その読取結果を出力することができる情報コード読取装置(又は単にコードリーダとも呼ばれる)が随所で使用されている。
最近、この情報コード読取装置を、例えば駅や空港、イベント会場等において入場者を管理するための改札機に組み込むことが提案されている(例えば特許文献1を参照)。例えば乗車券や入場券等の情報コードが表示された券紙等をユーザが情報コード読取装置に翳すと、情報コード読取装置は、券紙等に表示された情報コードを読み取る。そして、情報コード読取装置は、読み取った情報コードからデータを取得し、その取得したデータを情報コード読取装置の外部装置、例えば改札機の制御装置へ通知する。
 しかし、券紙を持つユーザの指等によって情報コードの一部が隠されてしまった場合や、情報コード読取装置の読み取り視野に情報コードの一部しか入らなかった場合、情報コード読取装置は、翳された券紙等から情報コードを正常に読み取ることが出来ないことがある。この場合、情報コード読取装置は、券紙等が翳されたにもかかわらず情報コードを読み取ることが出来なかった場合には、無応答となる。
 つまり、従来の情報コード読取装置は、情報コードの読み取り待機中は無応答になるが、情報コードの読み取りに失敗した場合にも、同様に無応答になるという課題がある。
さらに、情報コード読取装置は、例えば改札機の制御装置やユーザに対して情報コードの読み取り異常を通知することが出来なくなる。その結果、改札機の動作が一時的に停止したり、ユーザが情報コードの読み取りが正常に実行されたか否かについて判断することが困難になったりする。
 このような従来構成においては、例えば複数のユーザが連続して改札機を通過する際に次のような問題が生じ得る。すなわち、先のユーザが翳した券紙等に対する情報コードの読み取りが失敗すると、情報コード読取装置が無応答になって改札機の動作が一時的に停止する。この場合、情報コードの読み取りが失敗したことに先のユーザが気付かないと、先のユーザは、改札機が一時停止している間に更に進んでしまう。そして、先のユーザに続いて後から来たユーザが、復帰した情報コード読取装置に対して券紙等を翳すと、情報コード読取装置は、後のユーザが翳した券紙等の情報コードを読み取ってしまう。この場合、情報コード読取装置は、読み取った情報コードが先のユーザが翳した券紙のものか後のユーザが翳した券紙のものかを区別することなく、その読み取り結果を出力する。すると、改札機は、後のユーザが翳した券紙等が有する情報コードによって、先のユーザを通過させてしまう。そして、この場合、既に先のユーザが改札機を通過しているため、後から来たユーザが改札機を通過出来ない、という事態が生じ得る。
一方で、特許文献1に記載の装置は、情報コードの誤り訂正機能から、どの程度コードを間違って読み取ったかでコードの印紙状態又はコードリーダの劣化を判断するものである。しかしながら、この特許文献1は、情報コードの読み取りに際して、検出しやすい位置検出パターン(位置検出パターン)を検出することで、媒体がコードリーダに翳されたが読取できなかったのか、媒体が翳されていないために読取ができなかったのかを判断することができない。
特開2013-191018号公報
 そこで、上記課題の一つを解決するため、コードの読み取り失敗に対応して情報を出力する情報コード読取装置(コードリーダ)を提供する。
また、情報コードの読み取りに失敗した後に、その読み取りに失敗した情報コードと異なる情報コードを読み取ってしまうことを抑制することができる情報コード読取装置及び情報コード生成方法を提供する。
 本開示の第1の態様に係る典型例によれば、コードリーダは、取得部と、コード読取部と、パターン検出部と、第1の出力部と、を備える。取得部は、撮像(撮影)画像を取得する。コード読取部は、前記撮像画像から情報コードを読み取る。パターン検出部は、前記撮像画像から前記情報コードの存在を示す位置検出パターンを検出する。第1の出力部と、前記コード読取部が前記情報コードを読み取る場合には前記情報コードに対応するコードデータを出力し、前記コード読取部が前記情報コードを読み取らず前記パターン検出部が前記位置検出パターンを検出する場合には第1の所定情報を出力する。
 また、別の第2の態様に係る典型例によれば、別の情報コード読取装置が提供される。この装置は、媒体に表示された情報コードを撮像可能な撮像部と、前記撮像部によって撮像された前記情報コードを読み取ることが可能なコード読取部と、前記コード読取部で読み取った前記情報コードの読取結果を出力可能な出力部と、前記撮像部、前記コード読取部、及び前記出力部を制御する制御部と、を備える。前記情報コードは、記録対象となる一般情報と、前記一般情報に固有に設定された固有情報と、を含む。前記制御部は、前記コード読取部が前記固有情報の読み取りに成功しかつ前記一般情報の読み取りに失敗した場合に、読み取りに成功した前記固有情報と異なる前記固有情報を有する前記情報コードについては前記一般情報を読み取らないように前記コード読取部を制御する。
更に、本開示の第3の態様は、情報コード生成方法の典型例に関する。この方法は、所定のコード領域の内部に予め設定された形状の機能パターンと符号化した一般情報とを配置するとともに、前記コード領域の内部又は周囲に前記一般情報に固有に設定された符号化した固有情報を配置して情報コードを生成する。
図1は、第1の実施形態に係るコードリーダの構成例を示すブロック図である。 図2は、第1の実施形態に係る券紙の表面の構成例を示す図である。 図3は、第1の実施形態に係る券紙の表面の他の構成例を示す図である。 図4は、第1の実施形態に係る券紙の裏面の構成例を示す図である。 図5は、第1の実施形態に係る券紙の裏面の他の構成例を示す図である。 図6は、第1の実施形態に係るコードリーダの動作例を説明するためのフローチャートである。 図7は、第1の実施形態に係るコードリーダの動作例を説明するためのフローチャートである。 第2実施形態による情報コードシステムの一例について構成を概念的に示すブロック図 第2実施形態について、情報コードの内容を概念的に示す図 第2実施形態について、固有情報の構成の一例を概念的に示す図(その1) 第2実施形態について、固有情報の構成の一例を概念的に示す図(その2) 第2実施形態について、符号化された情報コードの一例を示す図 第2実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容を示すフローチャート(その1) 第2実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容を示すフローチャート(その2) 第2実施形態について、情報コード読取装置の制御部における制御状態と出力部から出力されるデータとの関係を示す図(その1) 第3実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容を示すフローチャート(その1) 第3実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容を示すフローチャート(その2) 第4実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容のうち、主に図13又は図16と異なる部分を示すフローチャート 第4実施形態について、情報コード読取装置の制御部で行われる情報コード読取処理の内容のうち、主に図14又は図17と異なる部分を示すフローチャート 第4実施形態について、情報コード読取装置の制御部における制御状態と出力部から出力されるデータとの関係を示す図(その1) 第4実施形態について、情報コード読取装置の制御部における制御状態と出力部から出力されるデータとの関係を示す図(その2) 第4実施形態について、情報コード読取装置の制御部における制御状態と出力部から出力されるデータとの関係を示す図(その3) 第5実施形態について、符号化された情報コードの一例を示す図
 以下の図面を参照しながら実施形態について説明する。
 第1の実施形態に係る情報コード読取装置(コードリーダとも呼ばれる。以下、単に、コードリーダと呼ぶ)は、シート(たとえば、券紙など)に記録されたコード又は画面(スマートフォンなどの液晶画面)などに表示されるコードを読み取る。ここでは、コードリーダが読み取るコードは、2次元コードである。コードリーダが読み取るコードは、たとえば、スタック型又はマトリックス型の2次元コードである。コードリーダが読み取るコードは、たとえば、QRコード(登録商標)である。コードリーダが読み取るコードは、特定の2次元コードに限定されるものではない。
 なお、コードリーダは、コードとしてバーコードなどの1次元コードを読み取るものであってもよい。また、コードリーダが読み取るコードは、特定の構成に限定されるものではない。読み取る対象がバーコードの場合には、図示しないが、位置検出パターンは、読み始め及び読み終わりを指示する左右のレフトガードバー及びライトガードバーである。
 たとえば、コードリーダは、読み取ったコードをデコードして、コードデータを取得し、コードデータを外部装置へ送信する。
 次に、コードリーダの構成例について説明する。
図1は、コードリーダ1の構成例を示すブロック図である。
 図1が示すように、コードリーダ1は、プロセッサ11、ROM12、RAM13、第1のタイマ14a、第2のタイマ14b、カメラ15及び通信部16などを備える。
 プロセッサ11は、CPUを備え、コードリーダ1全体の動作を制御する機能を有する。プロセッサ11は、内部キャッシュおよび各種のインターフェースなどを備えても良い。プロセッサ11は、内部メモリ、ROM12(non-transitory computer readable recording medium として機能する)などに予め記憶したプログラムを実行することにより種々の処理を実現する。
 なお、プロセッサ11がプログラムを実行することにより実現する各種の機能のうちの一部は、ハードウエア回路により実現されるものであっても良い。この場合、プロセッサ11は、ハードウエア回路により実行される機能を制御する。
 ROM12は、予め制御用のプログラム及び制御データなどが記憶された不揮発性のメモリである。ROM12に記憶される制御プログラム及び制御データは、予めコードリーダ1の仕様に応じて組み込まれる。ROM12は、たとえば、コードリーダ1の回路基板を制御するプログラムなどを格納している。
 RAM13は、揮発性のメモリである。RAM13は、プロセッサ11の処理中のデータなどを一時的に格納する。RAM13は、プロセッサ11からの命令に基づき種々のデータを格納する。また、RAM13は、プログラムの実行に必要なデータ及びプログラムの実行結果などを格納してもよい。
 第1のタイマ14aは、プロセッサ11が位置検出パターン(コードの存在を示すマークとも言える)を検出した時点からの時間を計時する。たとえば、第1のタイマ14aは、プロセッサ11からの信号に基づいて計時を開始し、計時された時間をプロセッサ11に通知する。また、第1のタイマ14aは、所定の時問を計時すると、所定の信号をプロセッサ11へ送信してもよい。なお、第1のタイマ14aは、プロセッサ11の機能として実現されてもよい。
 第2のタイマ14bは、プロセッサ11が読取異常信号又は検出情報を送信した時点からの時間を計時する。第2のタイマ14bは、第1のタイマ14aと同様の構成である。
なお、第1のタイマ14a及び第2のタイマ14bは、1つのタイマであってもよい。
 カメラ15は、シートに記録されたコード又は画面などが表示するコードを含む画像を取得する。たとえば、カメラ15は、カメラ15に内蔵される又はコードリーダ1が備える照明などが照射する光の反射光を取得することで画像を取得する。また、カメラ15は、画面などが発する光を取得することで画像を取得する。カメラ15は、可視光を用いて画像を取得してもよい。また、カメラ15は、不可視光を用いて画像を取得することができる。即ち、カメラ15は、不可視光である所定の専用光を用いて画像を取得する。たとえば、カメラ15は、CCDなどである。
 たとえば、カメラ15は、カメラ15に翳されたシート又は画面などからコードを撮影する。
 また、カメラ15は、ハンディタイプであってもよい。たとえば、カメラ15は、オペレータなどによってシート又は画面などに翳されることで、コードを撮影してもよい。
 ここでは、カメラ15は、シートとして券紙2に記録されたコードを撮影するものとする。
 通信部16は、外部装置とデータを送受信するためのインターフェースである。通信部16は、無線又は有線で外部装置と接続する。通信部16は、たとえば、USB接続をサポートするインターフェースである。
 プロセッサ11は、コードの読み取りに成功した場合(つまりコードデータの取得に成功した場合)、通信部16を通じて外部装置に取得されたコードデータ(デコード結果)を送信する。また、プロセッサ11は、コードの読み取りに失敗し(つまりコードデータの取得に失敗し)位置検出パターンの検出に成功した場合、通信部16を通じて外部装置にコードの読み取りに失敗したことを示す読取異常信号(第1の所定情報)、又は位置検出パターンの検出を示すパターン検出情報(第1の所定情報)を送信する。例えば、読取異常信号は、コードの読み取りに失敗したことを示す情報である。つまり、プロセッサ11は、コードデータの取得に成功した場合と、コードデータの取得に失敗したが位置検出パターンの検出には成功した場合とで異なる情報を後続の処理装置に送信する。
 なお、コードリーダ1は、適宜必要な要素をさらに備え、又は不要な要素を削除してもよい。たとえば、コードリーダ1は、データを書き換え可能な不揮発性メモリ、画像を表示する表示部、又は、音を出力するスピーカ部などを備えてもよい。
 次に、券紙2について説明する。
券紙2は、たとえば、矩形の感熱媒体である。券紙2は、外部から熱を加えられると、加えられた部分が所定の色に変化する。たとえば、券紙2は、熱により黒色に変化する。たとえば、券紙2は、紙、プラスチック、又は、ビニールなどである。
 図2は、カメラ15が撮影する券紙2の表面の構成例を示す。
図2が示すように、券紙2の表面は、情報コード(セルデータが配置されたコードであり、データコードとも言う)21などを備える。
 情報コード21は、所定のデータをエンコードして作成されるコードである。情報コード21は、券紙2を発行する発行機などによって券紙2上に印刷される。たとえば、発行機は、券紙2を加熱することで、情報コード21を券紙2上に印刷する。ここでは、情報コード21は、2次元コードである。たとえば、情報コード21は、QRコードである。
 たとえば、情報コード21は、乗車券情報を含むものであってもよい。即ち、情報コード21は、乗車券情報をエンコードして作成されるものであってもよい。情報コード21が示す情報は、特定の構成に限定されるものではない。
 情報コード21は、情報コードの存在、即ち、その位置を検出するための位置検出パターン22a乃至22cを有する。たとえば、位置検出パターン22a乃至22cは、位置検出パターン22a乃至22cの基準位置から所定の範囲内に情報コード21があることを示す。
 位置検出パターン22a乃至22cは、情報コード21内に形成される。即ち、位置検出パターン22a乃至22cは、情報コード21の一部として形成される。位置検出パターン22a乃至22cは、情報コード21の位置及び/又は方向を示してもよい。たとえば、プロセッサ11は、位置検出パターン22a乃至22cの位置から情報コード21の位置及び/又は方向を認識してもよい。例えば、情報コード21が、QRコード(登録商標)の場合、位置検出パターン22a乃至22cは、ファインダパターンとも呼ばれる。情報コード21は、そのコード領域に、タイミングパターン等、上述した位置検出パターン以外の種々の位置検出パターン(機能パターン)を備える。
 位置検出パターン22a乃至22cは、それぞれ情報コード21の角に形成される。図2が示す例では、位置検出パターン22a乃至22cは、それぞれ情報コード21の左上、右上、及び、左下に形成される。なお、位置検出パターン22は、情報コード21の中心部に形成されてもよいし、その他の箇所に形成されてもよい。情報コード21が備える位置検出パターン22の位置及び個数は、特定の構成に限定されるものではない。
 なお、券紙2は、情報コード21が形成される領域(コード領域)以外の領域に文字列などを備えてもよい。たとえば、券紙2は、当該領域に情報コード21に関連する文字列を備えてもよい。
 次に、券紙2の表面の他の構成例について説明する。
図3は、券紙2の表面の他の構成例を示す。
図3が示すように、券紙2の表面は、情報コード21に加えて、コード領域外に位置検出パターン22を少なくとも1つ有する。図3が示す例では、券紙2の表面は、位置検出パターン22d乃至22gを備える。
 位置検出パターン22d乃至22gは、位置検出パターン22a乃至22cと同様の構成である。
 位置検出パターン22d乃至22gは、それぞれ券紙2の表面の左上、左下、右上、及び、右下に形成される。なお、位置検出パターンは、コード領域以外のその他の箇所に形成されてもよい。コード領域以外に形成される位置検出パターン22の位置及び個数は、特定の構成に限定されるものではない。
 次に、券紙2の裏面について説明する。
図4は、券紙2の裏面の構成例を示す。
図4が示すように、券紙2の裏面は、位置検出パターン22h乃至22kなどを備える。位置検出パターン22h乃至22kは、位置検出パターン22a乃至22cと同様の構成である。
 図4が示す例では、位置検出パターン22h乃至22kは、それぞれ券紙2の裏面の左上、左下、右上、及び、右下に形成される。なお、券紙2の裏面は、他の位置に位置検出パターン22を備えてもよい。券紙2の裏面が備える位置検出パターン22の個数及び位置は、特定の構成に限定されるものではない。
 次に、券紙2の裏面の他の構成例について説明する。
図5は、券紙2の裏面の他の構成例を示す。
図5が示すように、券紙2の裏面は、隠蔽層23及び検出用コード24などを備える。
 隠蔽層23は、所定の専用光を用いて情報(コード)が読み取られる層である(専用光により情報が読み取り可能となる記録領域である)。隠蔽層23は、所定の専用光を透過し、可視光を透過しない。カメラ15は、所定の専用光を照射して、隠蔽層23の下にあるコード等からの反射光を得ることができる。
 専用光は、カメラ15が読み取ることができる不可視光である。専用光は、たとえば、紫外線又は赤外線などである。
なお、隠蔽層23は、券紙2の裏面の全体に形成されてもよい。
 検出用コード24は、所定の情報をエンコードして作成されるコードである。たとえば、検出用コード24は、いずれの券紙2であっても同様の情報を示すものであってもよい。たとえば、検出用コード24は、自身が裏面に形成されていることを示すものであってもよい。また、検出用コード24は、テスト用のコードであってもよい。たとえば、検出用コード24は、QRコード(登録商標)である。
 検出用コード24は、隠蔽層23の下に形成される。そのため、検出用コード24は、所定の専用光で読み取られる。即ち、検出用コード24は、不可視光で読取可能である。
 次に、プロセッサ11が実現する機能について説明する。
プロセッサ11は、カメラ15が撮像(又は撮影)した撮像画像を取得する機能を有する(取得部)。たとえば、プロセッサ11は、画像を撮影させる信号をカメラ15へ送信する。プロセッサ11は、カメラ15から送信される画像を撮像画像として取得する。
 また、プロセッサ11は、カメラ15に媒体(たとえば、券紙2)が翳されたことを検知する機能を有する。たとえば、プロセッサ11は、カメラ15が撮像した撮像画像の明暗などから媒体が翳されたことを検知する。また、プロセッサ11は、近接センサなどの他のセンサなどを用いて、媒体が翳されたことを検知してもよい。
 プロセッサ11は、撮像画像をスキャンして、情報コード21又は検出用コード24を読み取る機能を有する(コード読取部)。たとえば、プロセッサ11は、撮像画像をラスタスキャンして情報コード21又は検出用コード24を検出する。また、プロセッサ11は、情報コード21又は検出用コード24の暗モジュール及び明モジュールのパターンを検出する。プロセッサ11は、検出されたパターンから情報コード21又は検出用コード24をデコードして、情報コード21又は検出用コード24から所定のデータを取得する。なお、プロセッサ11が情報コード21又は検出用コード24を読み取る方法、及び情報コード21又は検出用コード24からデータを取得する方法は、特定の方法に限定されるものではない。
 また、プロセッサ11は、撮像画像をスキャンして、位置検出パターン22を検出する機能を有する(パターン検出部)。たとえば、プロセッサ11は、撮像画像をラスタスキャンして位置検出パターン22を検出する。なお、プロセッサ11が位置検出パターン22を検出する方法は、特定の方法に限定されるものではない。
 なお、プロセッサ11は、情報コード21又は検出用コード24を読み取る機能と位置検出パターン22検出する機能とを同時並行して実行してもよい。たとえば、プロセッサ11は、撮像画像に対してスキャンを実行し、情報コード21又は検出用コード24を読み取る機能と位置検出パターン22を検出する機能とを同時に実行する。
 また、プロセッサ11は、検出用コード24を読み取った場合に、券紙2の裏面が翳されたことを示す裏面通知(第2の所定情報)、又は、検出用コードの検出を示す検出用コード検出情報(第2の所定情報)を出力する機能を有する(第2の出力部)。
 また、プロセッサ11は、位置検出パターン22を検出した後に所定時間(第1の所定時間)内に情報コード21を読み取ることができない場合(つまり情報コード21からコードデータを取得できない場合)、又は、券紙2がカメラ15に翳されなくなった場合に、情報コード21の読み取りに失敗したことを示す読取異常通知、又は位置検出パターンの検出を示すパターン検出情報を出力する機能を有する(第1の出力部)。
 たとえば、プロセッサ11は、位置検出パターン22を検出すると、第1のタイマ14aをスタートする。たとえば、プロセッサ11は、第1のタイマ14aに計時を開始させる信号を送信する。プロセッサ11は、第1のタイマ14aが第1の所定時間(たとえば、0.1秒から1秒の間で任意に設定された時間)を計時するまで、撮像画像から情報コード21を読み取る動作を継続する。
 また、プロセッサ11は、位置検出パターン22を検出すると、券紙2がカメラ15に翳されなくなったかを判定する。プロセッサ11は、券紙2がカメラ15に翳されなくなったと判定するまで、撮像画像から情報コード21を読み取る動作を継続する。
 たとえば、プロセッサ11は、検出された位置検出パターン22に基づいて情報コード21を読み取ってもよい。たとえば、プロセッサ11は、位置検出パターン22の位置などに基づいて情報コード21の位置及び方向などを推定する。プロセッサ11は、推定された情報コード21の位置及び方向などに基づいて情報コード21を読み取ってもよい。
 また、プロセッサ11は、第1のタイマ14aが第1の所定時間を計時すると情報コード21の読み取り動作を終了する。プロセッサ11は、情報コード21の読み取り動作を終了すると、たとえば、通信部16を通じて、情報コード21の読み取りに失敗したことを示す読取異常通知、又は位置検出パターンの検出を示すパターン検出情報を外部装置へ送信する。
 また、プロセッサ11は、読取異常通知又はパターン検出情報を外部装置へ送信してから所定時間(第2の所定時間〉内である場合、位置検出パターン22を検出しても読取異常通知又はパターン検出情報を外部装置へ送信しない。
 たとえば、プロセッサ11は、読取異常通知又はパターン検出情報を外部装置へ送信すると、第2のタイマ14bをスタートする。たとえば、プロセッサ11は、第2のタイマ14bに計時を開始させる信号を送信する。プロセッサ11は、第2のタイマ14bが第2の所定時間(たとえば、数秒)を計時するまで、位置検出パターン22を検出しても読取異常通知又はパターン検出情報を外部装置へ送信しない。
 また、プロセッサ11は、読取異常通知又はパターン検出情報を外部装置へ送信してから券紙2の再翳しがない場合、位置検出パターン22を検出しても読取異常通知又はパターン検出情報を外部装置へ送信しない。
 たとえば、プロセッサ11は、読取異常通知又はパターン検出情報を外部装置へ送信すると、券紙2が翳されなくなり、かつ、再度券紙2が翳されたか判定する。プロセッサ11は、券紙2の再翳しが行われるまで、位置検出パターン22を検出しても読取異常通知又はパターン検出情報を外部装置へ送信しない。
 読取異常通知又はパターン検出情報を送信してからも位置検出パターンを検出する度に読取異常通知又はパターン検出情報を出力した場合、プロセッサ11は、媒体が翳される続ける限り、何度も読取異常通知又はパターン検出情報を外部装置に送信することがある。その場合、外部装置は、何回媒体が翳されたかを判断できない。そのため、プロセッサ11は、読取異常通知又はパターン検出情報を送信してから第2の所定時間以上、位置検出パターン22の未検出が続かなければ位置検出パターン22を検出しても読取異常通知又はパターン検出情報を送信しない。これによって、プロセッサ11は、外部装置が複雑な処理を行わなくとも、外部装置の動作と利用者が媒体を翳す動作とを同期させることができる。
 ここでは、プロセッサ11は、次の位置検出パターン22を検出した後に、前の位置検出パターン22に関する読取異常通知又はパターン検出情報を外部装置へ送信してから第2の所定時間が経過するか、又は、券紙2の再翳しが行われた場合には、再度位置検出パターン22を検出すると、読取異常通知又はパターン検出情報を外部装置へ送信するものとする。
 次に、プロセッサ11の動作例について説明する。
 図6及び図7は、プロセッサ11の動作例について説明するためのフローチャートである。
ここでは、オペレータは、券紙2をカメラ15に翳すものとする。また、第2のタイマ14bは、初期状態において第2の所定時間を計時した状態で停止しているものとする。これにより、プロセッサ11は、最初に位置検出パターン22を検出した後のS16において、YESと判定し、第1のタイマ14aを開始することができる。
 まず、プロセッサ11は、カメラ15が撮影した撮像画像を取得する(S11)。撮像画像を取得すると、プロセッサ11は、撮像画像をスキャンする(S12)。
 撮像画像をスキャンすると、プロセッサ11は、撮像画像から情報コード21を読み取ったか判定する(S13)。プロセッサ11は、撮像画像から情報コード21を読み取り、情報コード21からコードデータのデコードを試行し、コードデータを取得する。例えば、情報コード21は、エラー訂正コードを含み、仮にコードの一部分が欠落していても(コードの一部分が読み取られなくても)、プロセッサ11は、エラー訂正コードによりコードデータをデコードすることができる。このようにして、プロセッサ11は、コードデータのデコードを試行し、情報コード21からコードデータの取得に成功したか判定する。撮像画像から情報コード21を読み取っていないと判定すると(S13、NO)、つまり、コードデータを取得していないと判定すると、プロセッサ11は、検出用コード24を読み取ったか判定する(S14)。プロセッサ11は、情報コード21の読み取りと同様に検出用コード24の取得に成功したか判定する。
 検出用コード24を読み取っていないと判定すると(S14、NO)、プロセッサ11は、位置検出パターン22を検出したか判定する(S15)。
 位置検出パターン22を検出していないと判定すると(S15、NO)、プロセッサ11は、S11に戻る。
 位置検出パターン22を検出したと判定すると(S15、YES)、プロセッサ11は、第2のタイマ14bが第2の所定時間を計時したか、又は、券紙2の再翳しが行われたかを判定する(S16)。第2のタイマ14bが第2の所定時間を計時した、又は、券紙2の再翳しが行われたと判定すると(S16、YES)、プロセッサ11は、第1のタイマ14aをスタートさせる(S17)。第1のタイマ14aをスタートすると、プロセッサ11は、カメラ15が撮影した撮像画像を取得する(S18)。撮像画像を取得すると、プロセッサ11は、撮像画像をスキャンする(S19)。
 撮像画像をスキャンすると、プロセッサ11は、撮像画像から情報コード21を読み取ったか判定する(S20)。撮像画像から情報コード21を読み取っていないと判定すると(S20、NO)、プロセッサ11は、第1のタイマ14aが第1の所定時間を計時したか又は券紙2が翳されなくなったか判定する(S21)。
 第1のタイマ14aが第1の所定時間を計時していないかつ券紙2が翳されていると判定すると(S21、NO)、プロセッサ11は、S18に戻る。第1のタイマ14aが第1の所定時間を計時した又は券紙2が翳されなくなったと判定すると(S21、YES)、プロセッサ11は、通信部16を通じて、情報コード21の読み取りに失敗したことを示す読取異常通知、又は位置検出パターンの検出を示すパターン検出情報を外部装置へ送信する(S22)。
 読取異常通知又はパターン検出情報を送信すると、プロセッサ11は、第2のタイマ14bをスタートさせる(S23)。たとえば、プロセッサ11は、第2のタイマ14bをリセットして、計時をスタートさせる。
 第2のタイマ14bをスタートさせた場合(S23)、又は、第2のタイマ14bが第2の所定時間を計時していないかつ券紙2の再翳しが行われていないと判定した場合(S16、NO)、プロセッサ11は、S11に戻る。
 撮像画像から情報コード21を読み取ったと判定した場合(S13、YES)、又は、撮像画像から情報コード21を読み取ったと判定した場合(S20、YES)、プロセッサ11は、通信部16を通じて、情報コード21をデコードしたコードデータを外部装置へ送信する(S24)。
 検出用コード24を読み取ったと判定すると(S14、YES)、プロセッサ11は、通信部16を通じて、券紙2の裏面が翳されたことを示す裏面通知、又は、検出用コードの検出を示す検出用コード検出情報を外部層へ送信する(S25)。
 読取異常通知又はパターン検出情報を送信した場合(S24)、又は、裏面通知又は検出用コード検出情報を送信した場合(S25)、プロセッサ11は、動作を終了する。
 なお、コードリーダ1は、図示しないが、画像を表示する表示部を備えてもよい。たとえば、プロセッサ11は、読み取りに失敗したことを示すメッセージなどを読取異常通知として表示部に表示してもよい。また、プロセッサ11は、コードデータを表示部に表示してもよい。
 また、コードリーダ1は、音を出力するスピーカを備えてもよい。たとえば、プロセッサ11は、スピーカを通じて読み取りに失敗したことを示す警告音又は警告音声を読取異常通知として出力してもよい。
 たとえば、プロセッサ11は、位置検出パターン22を再度検出すると、第1のタイマ14aをリセットしてもよい(第1のタイマ14aを初期値に戻してもよい)。また、プロセッサ11は、位置検出パターン22を再度検出すると、情報コード21を読み取る時間を延長してもよい。
 以上のように構成されたコードリーダは、位置検出パターンを検知した後に一定時間内にコードを読み取ることができないと(コードデータを取得できないと)、読み取りに失敗したことを示す読取異常通知を外部装置へ送信する。位置検出パターンはコードの存在を示すため、位置検出パターンを検出した場合は、コードリーダは、コードが記録されたシート又はコードが表示された画面が翳されたことを認識することができる。
 そのため、コードリーダは、位置検出パターンを検出したにもかかわらずコードを読み取ることができない場合には、読み取りに異常が生じたものと判定することができる。したがって、コードリーダは、以上の動作によって、コードの読み取り失敗に対応しで清報を出力することができ、例えば、読取異常通知又はパターン検出情報を通知することができる。
 また、2次元コードからデータを読み取る場合、コードリーダは、格子状に配置されたセルの座標と白黒識別とを正確に検出する必要がある。それに対して、コードリーダは、位置検出パターンを検出するために、概略の形状を検出すればよい。そのため、コードリーダは、カメラと2次元コードとの距離による光学ぼけ又は手ぶれが生じた場合でも、位置検出パターンを容易に読み取ることができる。従って、コードリーダは、媒体が翳されたがデータの読取に失敗したことを判定することができる。
 また、コードの存在を示す位置検出パターンを検出する度に読取異常通知などを出力した場合、コードリーダは、1回の翳し動作で複数の読取異常通知などを出力することがある。この場合、外部装置は、利用者が媒体を何回翳したのかを判断できない。そのため、コードリーダは、位置検出パターンを検出した後に、所定の時間にデータを読み取らない場合に、読取異常通知などを送信することで、外部装置の動作と利用者が媒体を翳す動作とを同期させることができる。
 また、コードリーダは、検出用位置検出パターンを検出した揚合、裏面が翳されたことを示す裏面通知を送信する。そのため、コードリーダは、利用者が誤って券紙の裏面を翳したことを外部装置へ通知することができる。また、コードリーダは、不可視光で検出用位置検出パターンを読み取ることができる。そのため、利用者は、裏面にあるコードを認識できず、誤って裏面を翳すことが防止される。
 なお、上記各機能及び各処理を実現するための手順は全てソフトウェアによって実行することが可能である。このため、上記各機能及び各処理を実現するための手順を実行するプログラムを格納したコンピュータ読み取り可能な記憶媒体を通じてこのプログラムをコードリーダ1にインストールして実行することで、上記各機能及び各処理を実現することができる。
 例えば、プロセッサ11は、通信部16を介して、コンピュータ読み取り可能な記憶媒体から上記プログラムを読み取り、読み取ったプログラムを記憶し、プログラムのインストールを完了することができる。或いは、プロセッサ11は、通信部16を介して、上記プログラムをサーバからダウンロードし、ダウンロードしたプログラムを記憶し、プログラムのインストールを完了することができる。これにより、コードリーダ1のプロセッサ11は、インストールされた上記プログラムに基づき、上記処理を実現することができる。
 さらに、第2の実施形態以降の複数の実施形態について図面を参照しながら説明する。なお、第2の実施形態及びそれ以降の各実施形態において実質的に同一の要素には同一の符号を付し、説明を省略する。
 (第2実施形態)
 まず、第2実施形態について、図8~図15を参照して説明する。
 本実施形態の情報コードシステム110は、情報コード生成装置120、情報コード読取装置(以下、単に、コードリーダと呼ぶ)130、及び外部装置140を含んで構成されている。情報コードシステム110は、例えば駅や空港、イベント会場等において入場者を管理するための発券及び改札システム等に用いることができる。この場合、例えば外部装置140は改札機であり、情報コード生成装置120は発券機である。また、コードリーダ130は、例えば改札機つまり外部装置40に組み込まれたコードリーダである。
 なお、情報コードシステム110は、発券及び改札システムに限られず、他の用途にも適用することができる。また、コードリーダ30は、外部装置40に組み込まれている必要はない。
 [情報コード生成装置]
 以下では、図8~図12を参照して情報コード生成装置120について説明する。情報コード生成装置120は、図8又は図12に示す情報コード150を生成し、その情報コード150を情報コード表示媒体160に表示させる。情報コード150は、例えばスタック型又はマトリックス型の2次元コードを含むものである。例えば情報コード生成装置120は、2次元コード及び1次元コードを生成する機能を有する。本実施形態の場合、情報コード生成装置120は、QRコード及びバーコードを生成する機能を有する。なお、情報コード生成装置120が生成する情報コード150は、QRコード及びバーコードに限られない。
 情報コード150が表示される情報コード表示媒体160は、例えば紙又は樹脂製のシート状の媒体や、液晶画面等の表示画面を備える電子機器例えばスマートフォン等である。この場合、「情報コード150を情報コード表示媒体160に表示させる」とは、情報コード150を情報コード表示媒体160に対して外観から認識できるように表示することを意味する。すなわち、「情報コード150を表示させる」とは、例えば情報コード表示媒体160が紙媒体である場合にはその紙媒体に情報コード150を印刷することを意味し、情報コード表示媒体160がスマートフォン等の電子機器である場合にはその電子機器の画面に情報コード150を表示させることを意味する。本実施形態の場合、情報コード生成装置120は、情報コード生成装置120で生成した情報コードを媒体に印刷する機能を有している。したがって、情報コード生成装置20は、情報コード生成装置120で生成した情報コードを媒体に印刷するための印刷装置を兼ねている。
 情報コード生成装置120は、制御部121、一般情報取得部122、固有情報生成部123、符号化部124、及び印刷部125を備えている。制御部121は、例えばCPU211や、ROM、RAM、及び書き換え可能なフラッシュメモリ等の記憶領域212、及び図示しないタイマー等を有するマイクロコンピュータを主体に構成されており、情報コード生成装置120の全体を制御する。記憶領域212は、non-transitory computer readable recording mediumとして機能する記録媒体であり、情報コード生成プログラムを記憶している。制御部121は、CPU211において情報コード生成プログラムを実行することにより、一般情報取得部122、固有情報生成部123、及び符号化部124等を、ソフトウェアによって仮想的に実現する。なお、これら一般情報取得部122、固有情報生成部123、及び符号化部124は、例えば制御部121と一体の集積回路としてハードウェア的に実現してもよい。
 情報コード生成装置120によって生成される情報コード150には、図9に示すように、一般情報156及び固有情報157が含まれている。一般情報156とは、符号化の対象となる情報つまり記録の目的となる情報である。例えば情報コードシステム110が駅の改札システムに用いられる場合、一般情報156は、列車番号や座席番号、乗車地、降車地、発券日時及び料金等の情報である。固有情報157とは、一般情報156に固有的に付随する情報であって、一般情報156に固有の情報である。つまり、固有情報157は、一般情報156に紐付されており、情報コード150が複数個存在する場合であっても、各情報コード150について一般情報156と固有情報157とは、原則として1対1の関係になっている。
 情報コード生成装置120は、例えば図示しない通信回線を介して、この情報コード生成装置120よりも上位のホストコンピュータに接続されている。一般情報取得部122は、この図示しないホストコンピュータから一般情報56を取得する機能を有する。
 固有情報生成部123は、図9に示すように、一般情報取得部122で取得した一般情報156に固有の固有情報157を生成する。固有情報生成部123は、例えば符号11ビット及び誤り訂正1ビットを有するBCH符号による固有情報157を生成する。この場合、固有情報生成部123は、2^11=2048通りの固有情報157を生成することができる。そして、同一の固有情報57が生成される確率は、1/(2048)^2となる。したがって、同一の固有情報157が生成される確率は、極めて低いといえる。
 固有情報生成部123は、図10に示すように、例えば乱数を用いて固有情報157を生成する機能を有する。つまり、この場合、固有情報157は、乱数571によって構成されている。例えば情報コードシステム110が複数台の情報コード生成装置120を備えている場合、各情報コード生成装置120は、それぞれ異なる乱数表を有している。
 また、固有情報生成部123は、例えば図11に示すように、固有情報157を、11ビットのうち3ビットを装置識別子572として設定し、残りの8ビットを印刷装置つまり情報コード生成装置120によって印刷された順番を示す連番号573として設定する。つまり、この場合、固有情報は、装置識別子572及び連番号573によって構成されている。
 例えば情報コードシステム110が8台の情報コード生成装置120を備えている場合、各情報コード生成装置120には、それぞれ0~7の装置識別子572が割り当てられる。そして、固有情報生成部123は、その装置識別子572に連番号573を付加して、固有情報157を生成する。この場合、連番号573は、情報コード生成装置120が使用開始してから現在までに生成した固有情報157の数を意味する。なお、固有情報生成部123が生成する固有情報157は、上述したものに限られない。例えば固有情報157のビット数は11ビットよりも多くてもよいし、少なくてもよい。また、固有情報157は、乱数561や、装置識別子572及び連番号573から構成されるものに限られず、他の要素を含んでいてもよい。
 図8に示す符号化部124は、一般情報取得部122で取得した一般情報156及び固有情報生成部123で生成した固有情報157を符号化つまりエンコードして2次元コードを生成する機能を有する。本実施形態の場合、符号化部124は、一般情報取得部122で取得した一般情報及び固有情報生成部123で生成した固有情報を符号化して、図12に示すようなQRコード150を生成する。
 図8に示す印刷部125は、符号化部124によって符号化された情報コード150つまり一般情報156及び固有情報157を、券紙等の情報コード表示媒体160に印刷する。なお、印刷部125は、情報コード生成装置120に内蔵されたものでもよいし、情報コード生成装置120の外部に設けられていてもよい。また、情報コード生成装置120は、情報コード生成装置120で生成した情報コード150をスマートフォン等の電子機器に表示させるために、印刷部125に換えて電子機器と通信可能な通信部を備えていてもよい。
 [情報コード]
 以下では、図12を参照して情報コード150の詳細について説明する。情報コード150は、所定のコード領域151の内部を格子状に区分けして形成された複数のセル511を有している。各セル511は、コード領域151内において2次元的つまり平面的に配列されている。コード領域151は、情報コード150を構成する各セル511を全て含む領域であって、例えば矩形状の領域である。本実施形態の場合、コード領域151は、21×21個のセル511を含む正方形状の領域である。なお、コード領域151のサイズつまり情報コード150のサイズは、上述したものに限定されず、一般情報156の容量等によって適宜変更することができる。各セル511は、例えば白色の明色又は例えば黒色の暗色で表示される。
 情報コード150は、例えばQRコード(登録商標)であり、JISX0510に即した構成である。この場合、情報コード150は、位置検出パターン521~523、タイミングパターン153、分離パターン541~543、及び符号化領域55を有している。位置検出パターン521~523及びタイミングパターン153は、予め設定された形状の機能パターンである。すなわち、位置検出パターン521~523及びタイミングパターン153は、一般情報156及び固有情報157の内容に関わらず、一定形状に設定されている。
 本実施形態の場合、正方形のコード領域151の3つの頂点を含む角部に、それぞれ3つの位置検出パターン521~523が配置されている。この場合、3つの位置検出パターン521~523のうち、コード領域151の矩形状における対角線上に配置された2つの位置検出パターン521、522を、それぞれ第1位置検出パターン521、第2位置検出パターン522と称し、残りの位置検出パターン523を第3位置検出パターン523と称する。タイミングパターン153は、符号化領域155内に配置されている。
 分離パターン541~543は、位置検出パターン521~523と符号化領域155とを分離するためのパターンであり、全て明色つまり白色で構成されている。この場合、第1位置検出パターン521と符号化領域155とを分離するための分離パターン541を第1分離パターン541と称する。また、第2位置検出パターン522と符号化領域155とを分離するための分離パターン542を第2分離パターン542と称する。そして、第3位置検出パターン523と符号化領域155とを分離するための分離パターン543を第3分離パターン543と称する。
 符号化領域155には、符号化された一般情報156及び固有情報157が配置される。なお、図12では、説明の都合上、符号化された一般情報156及び固有情報157は表示されていない。しかし、実際には、符号化領域155内の各セル511は、符号化された一般情報156及び固有情報157に応じて明色又は暗色で表示される。固有情報157は、符号化領域155内において、分離パターン541に隣接して配置される。情報コード150は、固有情報157が1か所のみに配置されていてもよいが、同一内容の固有情報157が少なくとも2か所に分散して配置されていることが好ましい。したがって、同一内容の固有情報157を3か所以上に分散して配置しても良い。
 本実施形態の場合、同一内容の固有情報157が2か所に分散して配置されている。具体的には、符号化領域155は、第1固有情報領域551及び第2固有情報領域552を有している。この場合、図12では、符号化領域155内の各セル511のうち、右下がりの斜線で示した部分が第1固有情報領域551のセル511であり、左下がりの斜線で示した部分が第2固有情報領域552のセル511である。第1固有情報領域551及び第2固有情報領域552には、同一内容の固有情報157が配置される。
 この場合、第1固有情報領域551は、2つに分離して設けられている。第1固有情報領域551の一部分は、第1分離パターン541のうち第3位置検出パターン523と対向しない部分に隣接して設けられている。また、第1固有情報領域551の残りの部分は、第2分離パターン542のうち第3位置検出パターン523と対向しない部分に隣接して設けられている。第2固有情報領域552は、第3分離パターン543の全体に亘って隣接して設けられている。また、符号化された一般情報156は、符号化領域55のうち固有情報領域551、542以外の領域に配置される。
 [コードリーダ(情報コード読取装置)]
 以下では、図8を参照してコードリーダ130について説明する。コードリーダ130は、情報コード表示媒体160に表示された情報コード150を読み取り、その読み取った情報コード150を復号つまり、デコードする。コードリーダ130は、その読取結果つまり復号したコードデータを外部装置140へ送信する。この場合、コードリーダ130は、2次元コード及び1次元コードを読み取る機能を有する。本実施形態の場合、コードリーダ130は、QRコード及びバーコードを読み取る機能を有する。なお、コードリーダ130が読み取る情報コード150は、QRコード及びバーコードに限られない。
 コードリーダ130は、制御部131、撮像部132、通信部133、コード読取部134、出力部135、及び受信部136を備えている。制御部131は、例えばCPU311や、ROM、RAM、及び書き換え可能なフラッシュメモリ等の記憶領域312(non-transitory computer readable recording mediumとして機能)、及び図示しないタイマー等を有するマイクロコンピュータを主体に構成されており、コードリーダ130の全体を制御する。記憶領域312は、情報コード読取プログラムを記憶している。制御部131は、CPU311において情報コード読取プログラムを実行することにより、コード読取部134、出力部135、及び受信部136等を、ソフトウェアによって仮想的に実現する。なお、これらコード読取部34、出力部135、及び受信部136は、例えば制御部31と一体の集積回路としてハードウェア的に実現してもよい。
 撮像部132は、例えばCCDカメラ等であり、情報コード表示媒体160に表示された情報コード150を撮像する機能を有する。制御部131は、情報コード表示媒体160から反射した可視光又は不可視光を撮像部132によって取得することで、情報コード表示媒体160に表示された情報コード150を取得することができる。また、制御部131は、撮像部132による撮像画像の明暗等から、情報コード表示媒体160が撮像部132に翳されたことを検知する機能を有する。なお、制御部131は、近接センサ等の他のセンサを用いて、情報コード表示媒体160が翳されたことを検知してもよい。ユーザが情報コード表示媒体160を撮像部132に翳すと、制御部131は、撮像部132による撮像画像から、情報コード表示媒体160に表示された情報コード50を取得する。
 通信部133は、外部装置140とデータを送受信するためのインターフェースである。通信部116は、無線又は有線で外部装置140と接続される。コード読取部134は、撮像部132で撮像した画像をスキャンして、情報コード150を復号して情報コード150の内容を読み取る機能を有する。例えばコード読取部134は、図12に示す位置検出パターン521~523を検出すると、符号化領域155内の一般情報156及び固有情報157の復号を行う。出力部135は、コード読取部134で読み取った情報コード150の内容、つまりコードデータ等を、通信部133を介して外部装置140へ出力する機能を有する。受信部136は、通信部133を介して外部装置140からの指令を受信する機能を有する。
 [情報コード読取処理]
 以下では、図13及び図14を参照して、コードリーダ130の制御部131で行われる情報コード読取処理について説明する。なお、以下の説明において、括弧内の語句は、その括弧の直前の語句に対応するフローチャートの内容を示している。また、図13のステップS114に表記されている「FP」は、ファインダパターンの略であり、位置検出パターン521~523を意味する。以下の処理では、1つの固定値Toと、3つの変数T、ID0、IDxが設定される。変数Tは、タイマーを作動させてからの時間を示す変数である。制御部131は、情報コード読取処理を開始(図13のスタート)してから初めて固有情報157の読み取りに成功した場合に、タイマーによる計時を開始する。
 固定値Toは、変数Tの上限を定めるもので、予め設定された値である。変数ID0は、情報コード読取処理の実行開始(図13のスタート)後に初めて読み取った固有情報157の値を示すためのものである。そして、変数IDxは、情報コード読取処理の実行開始(図13のスタート)後に読み取った固有情報157のうち最新の固有情報157の値を示すためのものである。以下の説明では、変数Tをカウント時間Tと称し、固定値Toをタイムアウト時間Toと称し、変数ID0を初期値ID0と称し、変数IDxを現在値IDxと称する。
 本実施形態において、制御部131は、コード読取部134が固有情報157の読み取りに成功しかつ一般情報156の読み取りに失敗した場合に、読み取りに成功した固有情報157と異なる固有情報157を有する情報コード150については一般情報156を読み取らないようにコード読取部134を制御する。
 具体的には、制御部131は、情報コード読取処理を開始すると(図13のスタート)、ステップS111において初期設定を行う。制御部131は、初期設定を実行すると、カウント時間T、初期値ID0、及び現在値IDxをそれぞれ0に設定する。次に、制御部131は、ステップS112において、カウント時間Tがタイムアウト時間Toに達しているか否かを判断する。カウント時間Tがタイムアウト時間To以上である場合(ステップS112でNO)、制御部131は、情報コード読取処理を終了する(図14のエンド)。一方、カウント時間Tがタイムアウト時間To未満であれば(ステップS112でYES)、制御部131は、ステップS113へ処理を移行する。
 ステップS113において、制御部131は、撮像部132及びコード読取部134により情報コード150の画像取得及びスキャンを行う。ステップS113の処理の結果、位置検出パターン521~523が検出されなかった場合(ステップS114でNO)、制御部131は、ステップS112へ処理を移行する。一方、位置検出パターン521~523が検出された場合(ステップS114でYES)、制御部131は、ステップS115へ処理を移行し、情報コード150から固有情報157の読み取りを試みる。
 固有情報157の読み取りが失敗した場合(ステップS116でNO)、制御部131は、ステップS112へ処理を移行する。一方、固有情報157の読み取りが成功した場合(ステップS116でYES)、制御部131は、ステップS117へ処理を移行する。そして、制御部131は、現在値IDxを、ステップS115で読み取った固有情報157の値に設定する。その後、制御部131は、図14のステップS118へ処理を移行する。
 制御部131は、図14のステップS118において、タイマーが作動中であるか否かを判断する。タイマーが停止しているということは、図13のステップS115で読み取った固有情報157が、情報コード読取処理を開始(図13のスタート)してから初めて読み取った固有情報157そのものであることを意味する。そのため、タイマーが停止中であれば(ステップS118でNO)、制御部131は、ステップS119へ処理を移行し、タイマーを始動させる。そして、制御部131は、ステップS120へ処理を移行し、初期値ID0を現在値IDxに設定する。その後、制御部131は、ステップS122へ処理を移行する。
 これに対し、ステップS118においてタイマーが作動しているということは、既にステップS119、120を実行したということを意味する。すなわち、ステップS118においてタイマーが作動しているということは、図13のステップS115で読み取った固有情報157が、情報コード読取処理を開始(図13のスタート)してから初めて読み取った固有情報157そのものでないことつまり2回目以降に読み取った固有情報157であることを意味する。そのため、タイマーが作動中である場合(ステップS118でYES)、制御部131は、ステップS121へ処理を移行し、現在値IDxが初期値ID0と等しいか否かを判断する。
 ステップS121において現在値IDxが初期値ID0に一致していないということは、2回目以降に検出した固有情報157が最初に検出した固有情報157と異なっていること、すなわち、最初に取得した情報コード150と、現在取得している情報コード150とが異なっていることを意味する。換言すれば、撮像部132に現在翳されている情報コード表示媒体610が、最初に翳された情報コード表示媒体160と異なっていることを意味する。そのため、現在値IDxと初期値ID0とが不一致である場合(ステップS121でNO)、制御部131は、最初に翳された情報コード表示媒体160と異なる情報コード表示媒体160が翳されたと判断する。そして、制御部131は、ステップS122において一般情報156を読み取ることなく図13のステップS112へ処理を移行する。
 一方、ステップS121において現在値IDxが初期値ID0に一致しているということは、2回目以降に検出した固有情報157と最初に検出した固有情報157とが同一であること、すなわち、最初に取得した情報コード150と現在取得している情報コード150とが同一であることを意味する。換言すれば、撮像部132に現在翳されている情報コード表示媒体160が、最初に翳された情報コード表示媒体160と同一のものであることを意味する。そのため、現在値IDxと初期値ID0とが一致している場合(ステップS121でYES)、制御部131は、最初に翳された情報コード表示媒体160と同一の情報コード表示媒体160が再度翳されたと判断し、ステップS122へ処理を移行する。
 そして、制御部131は、ステップS122において、コード読取部134により、符号化領域155内に配置された一般情報156を読み取る。次に、制御部131は、ステップS123において、ステップS122で一般情報156の読み取りが成功したか否かを判断する。一般情報156の読み取りが失敗した場合(ステップS123でNO)、制御部131は、図13のステップS112へ処理を移行し、再度、ステップS112~S123の処理を繰り返す。
 一方、一般情報156の読み取りが成功した場合(ステップS123でYES)、制御部131は、ステップS124へ処理を移行する。そして、制御部131は、ステップS124において、出力部135により読取結果を出力するとともに、通信部137を介してその読取結果を外部装置140へ送信する。この場合、制御部131は、図15に示すように、コード読取部134による一般情報の読み取りが成功した(図14のステップS123でYES)直後に、読取結果として一般情報156及び固有情報157を出力する(図14のステップS124)。なお、図15の「読取状態」の矢印上部に付した番号は、図13及び図14のステップ番号を意味している。そして、制御部131は、情報コード読取処理を終了する(図14のエンド)。コードリーダ130から読取結果を受信した外部装置140は、その読取結果に応じた処理を行う。
 以上説明した実施形態によれば、コードリーダ130は、撮像部132、コード読取部134、出力部135、及び制御部131を備えている。撮像部132は、情報コード表示媒体160に表示された情報コード150を撮像することが出来る。コード読取部134は、撮像部132によって撮像された情報コード150を読み取ることが出来る。出力部135は、コード読取部134で読み取った情報コード150の読取結果を出力することが出来る。制御部131は、これら撮像部132、コード読取部134、及び出力部135を制御する。情報コード150は、記録対象となる一般情報156と、一般情報156に固有に設定された固有情報157と、を含んでいる。
 そして、制御部131は、コード読取部134が位置検出パターン521~523を検出した後(ステップS114でYES)、コード読取部134が固有情報157の読み取りに成功し(図13のステップS116でYES)かつ一般情報156の読み取りに成功した場合(図14のステップS123でYES)、その読取結果を出力する(ステップS124)。一方、制御部131は、コード読取部134が位置検出パターン521~523を検出した後(ステップS114でYES)、コード読取部134が固有情報157の読み取りに成功し(図13のステップS116でYES)かつ一般情報156の読み取りに失敗した場合(図14のステップS123でNO)、読み取りに成功した固有情報157と異なる固有情報157を有する情報コード150については一般情報156を読み取らないようにコード読取部134を制御する(図14のステップS121でNO)。
 これによれば、最初に翳された情報コード150について一般情報156の読み取りに失敗し(図14のステップS123)、その後、最初の情報コード150の一般情報156を読み取ることなく更に別の情報コード表示媒体160が翳された場合(図14のステップS121でYES)に、次のような作用効果を奏する。
すなわち、情報コード150は一般情報156に固有の固有情報157を有している。そのため、この場合、後に翳された情報コード150が有する固有情報157と、最初に翳された情報コード150が有する固有情報157とは一致しない。したがって、制御部131は、後に翳された情報コード150の一般情報156を読み取らないようにコード読取部134を制御する。これにより、情報コード150について一般情報156の読み取りに失敗した後に、その読み取りに失敗した情報コード150と異なる情報コード150の一般情報156を読み取ってしまうことを防ぐことができる。その結果、例えばコードリーダ130を改札機に組み込んだものにおいて、複数のユーザが連続して改札機を通過した場合であっても、改札機は、後のユーザが翳した情報コード150によって先のユーザを通過させてしまう、といった事態を抑制することができる。
 制御部131は、コード読取部134が固有情報157の読み取りに成功し(図13のステップS116でYES)かつ一般情報156の読み取りに失敗した場合(図14のステップS123でNO)に、所定期間T0が経過するまでは(図13のステップS112でYES)、読み取りに成功した固有情報157と異なる固有情報157を有する情報コード150については一般情報156を読み取らないようにコード読取部134を制御する。これによれば、コードリーダ130が一般情報156の読み取りに失敗した場合であっても、コードリーダ130単体によって読取処理を継続することができる。したがって、外部装置140による処理の増大を抑制することができ、その結果、外部装置140の負荷を抑制することができる。
 また、上記実施形態による情報コード生成方法は、図12に示すように、所定のコード領域151の内部に予め設定された形状の機能パターン521~523、153と符号化した一般情報156とを配置するとともに、コード領域151の内部に符号化した固有情報157を配置して情報コード150を生成する。これによれば、例えば従来のQRコードの構成を大きく変えることなく、固有情報157を有した情報コード150を容易に生成することができる。
 ここで、例えば固有情報157が乱数によって設定される場合、極めて希ではあるものの、異なる一般情報156に対して偶然にも同一の固有情報157が発番される可能性が存在する。したがって、この場合、同一の固有情報157が生成される可能性を許容するか、又は、固有情報157を生成する情報コード生成装置120が過去に生成された固有情報157と新たに生成した固有情報157とを照合し、一致する場合には固有情報157を生成し直す等の処理が必要になる。そして、後者の処理を行う場合、情報コード生成装置120が印刷装置であって、その印刷装置が複数台存在すると、過去に生成された固有情報157を相互の印刷装置で共有する必要がある。その結果、複数の情報コード生成装置120の相互間で通信が必要となってシステム全体が複雑化する。
 そこで、上記実施形態による情報コード生成方法において、固有情報157は、装置識別子572及び連番号573を含んでいても良い。装置識別子572は、情報コード150を情報コード表示媒体160に印刷する印刷装置120の場合,情報コード生成装置120を識別するための識別子である。連番号573は、印刷装置120によって印刷された順番を示す番号である。これによれば、印刷装置つまり情報コード生成装置120が複数台存在する場合であっても、各情報コード生成装置120間で少なくとも装置識別子572が異なるため、各情報コード生成装置120間で同一の固有情報157が生成されることがない。そのため、各情報コード生成装置120間で通信等を行うことなく、情報コード生成装置120単体で固有情報157の生成を管理でき、その結果、システム全体が複雑化することを抑制できる。
 上記実施形態による情報コード生成方法は、機能パターン521~523と一般情報156と固有情報157とを2次元コードで構成する。これによれば、固有情報157を例えば従来のQRコードに含めることができるため、固有情報157を含む情報コード150の生成が容易になる。
 この場合、情報コード150を構成する2次元コードはQRコードである。そして、情報コード生成方法は、固有情報157を、符号化領域155内において符号化領域155と位置検出パターン521~523とを分離する分離パターン541~543に隣接して配置する。つまり、固有情報157は、位置検出パターン521~523の近傍に配置されている。これによれば、情報コード150の一部がユーザの指等によって隠されていた場合であっても、位置検出パターン521~523が検出されれば、位置検出パターン521~523の近傍に配置された固有情報157も同時に検出され易くなる。したがって、情報コード150のうち少なくとも固有情報157が正常に読み取られる確率を向上させることができる。
 また、上記実施形態による情報コード生成方法は、同一内容の固有情報157を少なくとも2か所に配置する。すなわち、上記実施形態では、同一内容の固有情報157が、符号化領域155内において第1固有情報領域551と第2固有情報領域552との2か所に分散して配置されている。これによれば、コードリーダ130は、一方の固有情報157がユーザの指等によって隠されていた場合であっても、他方の固有情報157を読み取ることができる。したがって、情報コード150のうち少なくとも固有情報157が正常に読み取られる確率を更に向上させることができる。
 (第3実施形態)
 次に、第3実施形態について図16及び図17を参照して説明する。
 第3実施形態において、制御部131は、図16及び図17に示す情報コード読取処理を実行する。図16及び図17に示す情報コード読取処理は、図13のステップS112、及び図14のステップS118、119に換えて、図16に示すステップS131、S132、及び図17に示すステップS133を有している。
 すなわち、制御部131は、情報コード読取処理の実行を開始し(図16のスタート)、初期設定を行うと(ステップS111)、ステップS131において初期値ID0が0であるか否かを判断する。初期値ID0が0であることは、情報コード読取処理が開始されてから現在に至るまでに未だ図17のステップS120が実行されていないこと、即ち固有情報157が読み取られていないことを意味する。逆を言えば、初期値ID0が0と異なる値であることは、既にステップS120~ステップS123が実行されていることを意味する。つまり、初期値ID0が0と異なる値であることは、情報コード読取処理が開始されてから現在に至るまでに既に固有情報157の読み取りが成功し(図16のステップS116でYES)、かつ、一般情報156の読み取りが失敗している(図17のステップS123でNO)ことを意味する。
 図16のステップS131において初期値ID0が0と異なる値である場合(ステップS131でNO)、制御部131は、第2実施形態と同様にステップS113~ステップS117を実行した後、図17のステップS133へ処理を移行する。そして、制御部131は、ステップS133において、初期値ID0が0であるか否かを判断する。初期値ID0が0である場合(ステップS133でYES)、制御部131は、ステップS120において初期値ID0を現在値IDxに設定する。その後、制御部131は、ステップS121へ処理を移行する。一方、初期値ID0が0でない場合(ステップS133でNO)、制御部131は、ステップS120を実行することなく、つまり初期値I0を維持した状態で、ステップS121へ処理を移行する。
 制御部131は、第2実施形態と同様にステップS121~ステップS123を実行する。この場合、現在値IDxが初期値ID0と異なる場合(ステップS121でNO)、又は一般情報156の読み取りが失敗した場合(ステップS123でNO)、制御部131は、図16のステップS131へ処理を移行し、再度、ステップS131以降の処理を繰り返す。また、現在値IDxが初期値ID0と同一であり(図17のステップS121でYES)、かつ、一般情報156の読み取りが成功した場合(ステップS123でYES)、制御部131は、ステップS124へ処理を移行する。そして、制御部131は、ステップS124において、出力部135により読取結果を出力するとともに、通信部137を介してその読取結果を外部装置140へ送信する。そして、制御部131は、処理を終了する(エンド)。
 これに対し、図16のステップS131において、初期値ID0が0と異なる値である場合(ステップS131でNO)、制御部131は、ステップS132へ処理を移行する。そして、制御部131は、受信部136が外部装置140から初期値ID0のクリア指令を受信したか否かを判断する。受信部136が初期値ID0のクリア指令を受信していない場合(ステップS132でNO)、制御部131は、上述したように、ステップS113以降を実行する。一方、受信部136が初期値ID0のクリア指令を受信した場合(ステップS132でYES)、制御部131は、情報コード読取処理を終了する(図17のエンド)。
 このように、本実施形態において、制御部131は、コード読取部134が固有情報157の読み取りに成功し(ステップS116でYES)かつ一般情報156の読み取りに失敗した場合(図17のステップS123でNO)に、受信部136が外部装置140からの指令を受けるまで(図16のステップS132でYES)は、読み取りに成功した固有情報157と異なる固有情報157を有する情報コード150については一般情報156を読み取らないようにコード読取部134を制御する(ステップS121でNO)。
 これによれば、上記第2実施形態と同様の作用効果が得られる。
 (第4実施形態)
 次に、第4実施形態について図18~図22を参照して説明する。なお、図20~図22の「読取状態」の矢印上部に付した番号は、図18及び図19のステップ番号を意味している。
 本実施形態において、制御部131は、図20~図22に示すように、出力部135から出力される出力内容に、読取結果に含まれる情報の種類を識別する情報識別子581、582を付加する。制御部131は、例えば図20に示すように、固有情報157及び一般情報156の読み取りに成功した場合に、固有情報157及び一般情報156に第1情報識別子581を付加して出力する。この場合、第1情報識別子581は、固有情報157及び一般情報156の読み取りに成功したことを示すものである。つまり、第1情報識別子581は、出力部135から出力された内容に、固有情報157及び一般情報156が含まれていることを示すものである。
 また、制御部131は、例えば図21及び図22に示すように、固有情報157の読み取りには成功したが一般情報156の読み取りに失敗した場合に、固有情報157に第2情報識別子582を付加して出力する。この場合、第2情報識別子582は、一般情報156の読み取りに失敗したことを示すものである。つまり、第2情報識別子582は、出力部135から出力された内容に、一般情報156が含まれていないことを示すものである。
 また、制御部131は、図21及び図22に示すように、コード読取部134が固有情報157を読み取ってから第1期間T1が経過しても一般情報156を読み取れなかった場合には出力部135から固有情報157を出力する。そして、制御部131は、出力部135から固有情報157を出力した後は、位置検出パターン521~523が未検出状態になることなく位置検出パターン521~523の検出有り状態が継続している間は、出力部135から固有情報157を出力しない。また、制御部131は、出力部135から固有情報157を出力した後は、位置検出パターン521~523の未検出状態が第2期間T2以上継続した後に更に固有情報157の読み取りが成功し、その後、第1期間T1が経過しても一般情報156を読み取れなかった場合に、出力部135から固有情報157を再度出力する。
 この場合、第2期間T2は、第1期間T1よりも長い期間である。例えば第2期間T2は、情報コード表示媒体160をコードリーダ130に翳したユーザが、その情報コード表示媒体160をコードリーダ130から一度離してから再度翳すまでの期間として想定される期間であり、例えば1秒程度である。第1期間T1は、第2期間T2よりも短い期間であり、例えば0.5秒程度である。
 本実施形態において、制御部131は、図18及び図19に示す情報コード読取処理を実行する。図18に示す処理内容は、図13又は図16の処理内容に加えて、ステップS141、S142を有している。なお、図18では、ステップS113以降の処理を示している。この場合、図18の処理内容において、ステップS113以前の処理内容は、図13に示すもの、つまりステップS111~S113であっても良いし、図16に示すものつまりステップS111、S131、S132であっても良い。
 また、図19に示す処理内容は、図14又は図17に示す処理内容に加えて、ステップS143~S147を有している。なお、図19では、ステップS122以降の処理を示している。この場合、図19の処理内容において、ステップS122以前の処理内容は、図14に示すものつまりステップS118~S121であっても良いし、図17に示すものつまりステップS133、S120、S121であっても良い。また、図19に示す処理内容では、図14又は図17のステップS124に換えて、ステップS143、S147を有している。
 具体的には、制御部131は、図13のステップS111、S112、又は図16のステップS111、S131、S132を実行し、更に図18に示すステップS113、S114を実行する。この場合、制御部131は、ステップS111の初期設定において変数Fを0に設定する。変数Fは、出力部135から固有情報157の出力を許可するか否かを決定するものである。変数Fが0である場合、制御部131は、出力部135から固有情報157の出力を許可する。一方、変数Fが0と異なる値である場合、制御部131は、出力部135から固有情報157の出力を許可しない。
 図18のステップS113の処理の結果、位置検出パターン521~523が検出されなかった場合(ステップS114でNO)、制御部131は、ステップS141へ処理を移行する。制御部131は、ステップS141において、位置検出パターン521~523の未検出状態が第2所定期間T2以上継続しているか否かを判断する。位置検出パターン521~523の未検出状態が第2所定期間T2以上継続している場合(ステップS141でYES)、制御部131は、ステップS142において変数Fを0に設定する。その後、制御部131は、図13のステップS112又は図9のステップS131へ処理を移行する。
 一方、位置検出パターン521~523の未検出状態が第2所定期間T2以上継続していない場合(図18のステップS141でNO)、制御部131は、ステップS142を実行することなく、図13のステップS112又は図16のステップS131へ処理を移行する。つまり、位置検出パターン521~523の未検出状態となっていない場合、又は位置検出パターン521~523の未検出状態が第2所定期間T2未満で終了した場合には、制御部131は、ステップS142を実行しない。
 また、図19のステップS123において、制御部131は、ステップS122で行った一般情報156の読み取りが成功したか否かを判断する。一般情報156の読み取りが成功した場合(ステップS123でYES)、制御部131は、ステップS143へ処理を移行する。そして、ステップS143において、制御部131は、図20に示すように、一般情報156及び固有情報157に加えて第1情報識別子581を、出力部35から出力する。
 一方、一般情報156の読み取りが失敗した場合(ステップS123でNO)、制御部131は、ステップS44へ処理を移行する。そして、ステップS44において、制御部131は、最初に一般情報156の読み取りを失敗してから第1期間T1が経過したか否かを判断する。ここで、「最初に一般情報56の読み取りを失敗」とは、情報コード読取処理を開始(スタート)してから初めて位置検出パターン521~523を検出し(図18のステップS114でYES)、その後初めて一般情報156の読み取りに失敗した場合(図19のステップS123でNO)を意味する。
 最初に一般情報156の読み取りを失敗してから第1期間T1が経過していない場合(ステップS144でNO)、制御部131は、ステップS145~S147を実行することなく、図13のステップS112又は図16のステップS131へ処理を移行する。つまり、最初に一般情報156の読み取りを失敗してから(ステップS123でNO)、第1期間T1が経過することなく(ステップS144でNO)、再度、一般情報156の読み取りに失敗した場合(ステップS123でNO)、制御部131は、ステップS145~S147を実行することなく、図13のステップS112又は図9のステップS131へ処理を移行する。
 一方、最初に一般情報156の読み取りを失敗してから第1期間T1が経過した場合(ステップS144でYES)、制御部131は、ステップS145へ処理を移行する。ステップS145において、制御部131は、変数Fが0であるか否かを判断する。変数Fが0であることは、未だステップS146、S147を実行しておらず固有情報157が出力されていないか、又はステップS146、S147を実行して固有情報157が出力されたが、その後、位置検出パターン521~523の未検出状態が第2期間T2以上継続されて(図18のステップS141でYES)、変数Fが0にリセットされた(ステップS142)ことを意味する。そのため、変数Fが0である場合(ステップS145でYES)、制御部131は、ステップS146において、図21又は図22に示すように、固有情報157に加えて第2情報識別子582を、出力部35から出力する。
 また、変数Fが0と異なる値であることは、既にステップS146、147が実行されて固有情報157が出力されておりかつ位置検出パターン521~523の未検出状態となっていないこと、又は既にステップS146、147が実行されて固有情報157が出力されておりかつ位置検出パターン521~523の未検出状態となっても第2期間T2以上継続していないことを意味する。そのため、変数Fが0でない場合(図19でステップS145でNO)、制御部131は、ステップS146、S147を実行することなく、つまり固有情報157を出力することなく、図13のステップS112又は図16のステップS131へ処理を移行する。
 つまり、既にステップS146、147が実行されて固有情報157が出力されておりかつ位置検出パターン521~523の未検出状態となっていない場合、又は既にステップS146、147が実行されて固有情報157が出力されておりかつ位置検出パターン521~523の未検出状態となっても第2期間T2以上継続していない場合には、制御部131は、出力部135から第2識別情報582及び固有情報57を出力しない。
 このように、本実施形態において制御部131は、出力部135から出力される出力内容に、読取結果に含まれる情報の種類を識別する情報識別子581、582を付加する。これによれば、コードリーダ130から読取結果を受信した外部装置140は、その読取結果に付加された情報識別子581、582を見ることで、その読取結果に含まれる情報の種類を判別でき、便利である。
 ここで、例えばユーザの指等によって符号化領域155の一部が隠された状態で、ユーザが情報コード表示媒体160をコードリーダ130に翳したままにすると、次のような問題が生じる。すなわち、この場合、コードリーダ130は、ユーザが情報コード表示媒体160を翳している間中、固有情報157及び一般情報156の読み取りを行うことになる。そして、一般情報156の読み取りを失敗する度に、固有情報157を出力する構成にすると、出力部135は、一般情報156の読み取りが成功するまでの間、固有情報157を出力し続けることになる。すると、外部装置140が受信する情報量が増えて外部装置140の処理が複雑化する。
 そこで、本実施形態において、制御部131は、固有情報157の読み取りが成功し(図18のステップS116でYES)、その後、第1期間T1が経過しても一般情報56を読み取れなかった場合に(図19のステップS123でNO、かつ、ステップS144でYES)、出力部135から固有情報157を出力する。したがって、制御部131は、一般情報156の読み取りを失敗する度に、固有情報157を出力することがない。つまり、制御部131は、一旦固有情報157を出力してしまえば、一般情報156の読み取りが成功するまでの間、固有情報157を出力し続ける、といったことがない。したがって、外部装置140が受信する情報量の増加を抑制することができ、その結果、外部装置140の処理の複雑化を防止し処理の負荷を低減させることができる。
 また、コードリーダ130に対して情報コード表示媒体160が翳された回数は、コードリーダ130や外部装置140の制御を行ううえで有用な情報である。ここで、位置検出パターン521~523が未検出状態になることなく位置検出パターン521~523の検出有り状態が継続しているということは、一度翳された情報コード150がコードリーダ130から離されていないこと、つまり翳し動作が一度しか行われていないことを意味する。そこで、制御部131は、出力部135から固有情報157を出力した後は、位置検出パターン521~523が未検出状態になることなく位置検出パターン521~523の検出有り状態が継続している間は、出力部135から固有情報157を出力しない。
 また、位置検出パターン521~523が未検出状態になった後に再度位置検出パターン521~523の検出有り状態になるということは、情報コード表示媒体160が翳し直された可能性がある。そこで、制御部131は、出力部135から固有情報157を出力した後は、位置検出パターン521~523の未検出状態が第2期間T2以上継続した後に更に固有情報157の読み取りが成功し、その後、第1期間T1が経過しても一般情報156を読み取れなかった場合に、出力部135から固有情報157を再度出力する。
 この場合、位置検出パターン521~523が未検出状態になった後に再度位置検出パターン521~523の検出有り状態になったというだけでは、単なる読取不良なのか、又は翳し動作が行われたかを判断することができない。そのため、制御部131は、第2期間T2を、翳し動作をやり直すために必要な時間、例えば1秒程度に設定している。そして、制御部131は、未検出状態が第2期間T2以上継続したことを、固有情報157を再度出力の条件の1つとしている。
 これによれば、固有情報157が出力された回数を、情報コード表示媒体160が翳された回数と擬制することができる。したがって、外部装置140は、コードリーダ130から受信した固有情報157の回数を計測することで、ユーザが情報コード表示媒体160を翳した回数を疑似的に把握することができる。
 (第5実施形態)
 次に、第5実施形態について図23を参照して説明する。
 第5実施形態では、情報コード150に配置した固有情報157の構成が、上記各実施形態のものと異なる。本実施形態において、情報コード生成装置120は、符号化した固有情報157としてバーコード591、592を生成する。この場合、2つのバーコード591、592の一方を第1バーコード591と称し、他方を第2バーコード592と称する。第1バーコード591及び第2バーコード592は、いずれも同一内容の固有情報157を示すものである。
 本実施形態において、情報コード150を構成する2次元コードは、例えばQRコードである。そして、情報コード生成装置120は、2つのバーコード591、592を、それぞれ符号化領域155外において符号化領域155に隣接する位置であって、2つの位置検出パターン間に配置する。つまり、情報コード生成装置120は、バーコード591、592を、QRコードのコード領域51外において、QRコードのコード領域151に接する位置に配置する。この場合、第1バーコード591は、第1位置検出パターン521と第3位置検出パターン523との間に配置される。また、第2バーコード592は、第2位置検出パターン522と第3位置検出パターン523との間に配置される。
 これによれば、固有情報157は、バーコード591、592として符号化領域155外に配置されている。したがって、符号化領域155内に固有情報157を配置することによる一般情報156の情報量の低下を抑制することができる。つまり、本実施形態によれば、一般情報156に対する情報コード150のサイズを小さくすることができる。
 また、バーコード591、592は、それぞれ2つの位置検出パターン間、つまり第1位置検出パターン521と第3位置検出パターン523との間及び第2位置検出パターン522と第3位置検出パターン523との間に配置されている。つまり、バーコード591、592は、各位置検出パターン521~523のいずれにも隣接していない。
 ここで、位置検出パターン521~523に隣接してバーコード591、592を配置するためには、バーコード591、592と位置検出パターン521~523との間に一定幅のクワイエットゾーンつまり余白を設ける必要がある。一方、図23に示すように、バーコード591、592を、QRコードのコード領域151外でかつ符号化領域155外に配置する場合であれば、バーコード591、592と符号化領域155との間にクワイエットゾーンを設ける必要がない。そして、バーコード591、592を、QRコードのコード領域151外でかつ位置検出パターン521~523間に設けることで、バーコード591、592と位置検出パターン521~523との距離を極力近づけることができる。つまり、バーコード591、592をコード領域151外に配置したことによるバーコード591、592の読み取り性能の低下を極力避けることができる。
 本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
1…コードリーダ、2…券紙、11…プロセッサ(機能的に取得部、コード読取部、パターン検出部、第1の出力部、第2の出力部を構成する)、14a…第1のタイマ、14b…第2のタイマ、15…カメラ、16…通信部、21…情報コード、22a乃至22c…位置検出パターン、23…隠蔽層、24…検出用コード、110…情報コードシステム、120…情報コード生成装置(印刷装置)、130…コードリーダ(情報コード読取装置)、131…制御部、132…撮像部、134…コード読取部、135…出力部、136…受信部、140…外部装置、150…情報コード(2次元コード、QRコード)、151…コード領域、160…情報コード表示媒体、521…第1位置検出パターン(位置検出パターン、機能パターン)、522…第2位置検出パターン(位置検出パターン、機能パターン)、523…第3位置検出パターン(位置検出パターン、機能パターン)、541…第1分離パターン(分離パターン)、542…第2分離パターン(分離パターン)、543…第3分離パターン(分離パターン)、155…符号化領域、156…一般情報、157…固有情報、572…装置識別子、573…連番号、581…第1情報識別子(情報識別子)、582…第2情報識別子(情報識別子)、591…第1バーコード(バーコード)、592は…第2バーコード(バーコード)

Claims (30)

  1.  撮像画像を取得する取得部と、
     前記撮像画像から情報コードを読み取るコード読取部と、
     前記撮像画像から前記情報コードの存在を示す位置検出パターンを検出するパターン検出部と、
     前記コード読取部が前記情報コードを読み取る場合には前記情報コードに対応するコードデータを出力し、前記コード読取部が前記情報コードを読み取らず前記パターン検出部が前記位置検出パターンを検出する場合には第1の所定情報を出力する第1の出力部と、
     を備える情報コードを読み取る装置。
  2.  前記第1の所定情報は、前記情報コードの読み取りに失敗したことを示す情報、又は前記位置検出パターンを検出したことを示す情報である、
     前記請求項1に記載の装置。
  3.  前記第1の出力部は、前記パターン検出部が前記位置検出パターンを検出してから第1の所定時間内に前記コード読取部が前記情報コードを読み取らない場合に、前記第1の所定情報を出力する、
     前記請求項1又は2に記載の装置。
  4.  前記第1の出力部は、前記第1の所定情報を出力してから、前記パターン検出部が第2の所定時間以上、前記位置検出パターンを未検出でなければ、前記第1の所定情報を出力しない、
     前記請求項1乃至3の何れか1項に記載の装置。
  5.  前記撮像画像は、前記装置に翳された、前記情報コードを備える媒体の画像であり、
    前記第1の出力部は、前記第1の所定情報を出力してから、前記媒体の再翳しが行われるまでは、前記第1の所定情報を出力しない、
     前記請求項1乃至3の何れか1項に記載の装置。
  6.  前記コード読取部は、検出用コードを読み取り、
     前記コード読取部が検出用コードを読み取る場合には、第2の所定情報を出力する第2の出力部を備える、
     前記請求項1乃至5の何れか1項に記載の装置。
  7.  前記第2の所定情報は、前記情報コードを備える媒体の裏面が翳されたことを示す通知、又は、前記検出用コードの検出を示す検出用コード検出情報である、
     前記請求項6に記載の装置。
  8.  前記検出用コードは、不可視光で読取可能である、前記請求項6又は7に記載の装置。
  9.  前記位置検出パターンは、前記情報コード内に形成される、
     前記請求項1乃至8の何れか1項に記載の装置。
  10.  前記情報コードは、2次元コードである、
     前記請求項1乃至9の何れか1項に記載の装置。
  11.  前記情報コードは、QRコード(登録商標)であり、
     前記位置検出パターンは、ファインダパターンである、
     前記請求項10に記載の装置。
  12.  画像を撮影するカメラを備え、
     前記取得部は、前記カメラが撮影した画像を前記撮像画像として取得する、
     前記請求項1乃至11の何れか1項に記載の装置。
  13.  外部装置とデータを送受信する通信部を備え、
     前記第1の出力部は、前記通信部を通じて、前記外部装置へ前記コードデータ又は前記第1の所定情報を送信する、
     前記請求項1乃至12の何れか1項に記載の装置。
  14.  前記情報コードは、媒体に形成され、
     前記媒体は、前記情報コードが形成される領域以外の領域に少なくとも1つの前記位置検出パターンを備える、
     前記請求項1に記載の装置。
  15.  撮像画像から情報コードを読み取り、
     前記撮像画像から前記情報コードの存在を示す位置検出パターンを検出し、
     コード読取部が前記情報コードを読み取る場合には前記情報コードに対応するコードデータを出力し、
     前記コード読取部が前記情報コードを読み取らないときに、前記位置検出パターンが検出される場合には第1の所定情報を出力する、
     情報コードを読み取る方法。
  16.  媒体に表示された情報コードを撮像可能な撮像部と、
     前記撮像部によって撮像された前記情報コードを読み取ることが可能なコード読取部と、
     前記コード読取部で読み取った前記情報コードの読取結果を出力可能な出力部と、
     前記撮像部、前記コード読取部、及び前記出力部を制御する制御部と、を備え、
     前記情報コードは、記録対象となる一般情報と、前記一般情報に固有に設定された固有情報と、を含み、
     前記制御部は、前記コード読取部が前記固有情報の読み取りに成功しかつ前記一般情報の読み取りに失敗した場合に、読み取りに成功した前記固有情報と異なる前記固有情報を有する前記情報コードについては前記一般情報を読み取らないように前記コード読取部を制御する、情報コードを読み取る装置。
  17.  前記制御部は、前記コード読取部が前記固有情報の読み取りに成功しかつ前記一般情報の読み取りに失敗した場合に、予め設定された所定期間が経過するまでは、読み取りに成功した前記固有情報と異なる固有情報を有する前記情報コードについては前記一般情報を読み取らないように前記コード読取部を制御する、
     請求項16に記載の装置。
  18.  外部装置からの指令を受信可能な受信部を更に備え、
     前記制御部は、前記コード読取部が前記固有情報の読み取りに成功しかつ前記一般情報の読み取りに失敗した場合に、前記受信部が前記外部装置からの指令を受けるまでは、読み取りに成功した前記固有情報と異なる固有情報を有する前記情報コードについては前記一般情報を読み取らないように前記コード読取部を制御する、
     請求項16に記載の装置。
  19.  前記制御部は、前記出力部から出力される出力内容に、前記読取結果に含まれる情報の種類を識別する情報識別子を付加する、
     請求項16から18のいずれか一項に記載の装置。
  20.  前記制御部は、前記コード読取部が前記固有情報を読み取ってから第1期間が経過しても前記一般情報を読み取れなかった場合には前記出力部から前記固有情報を出力する、
     請求項16から19のいずれか一項に記載の装置。
  21.  前記制御部は、前記出力部から前記固有情報を出力した後は、前記情報コードの存在位置を示す位置検出パターンが未検出状態になることなく前記位置検出パターンの検出有り状態が継続している間は、前記出力部から前記固有情報を出力せず、
     前記位置検出パターンの未検出状態が第2期間以上継続した後に更に前記固有情報の読み取りが成功し、その後、前記第1期間が経過しても前記一般情報を読み取れなかった場合に、前記出力部から前記固有情報を再度出力する、
     請求項20に記載の装置。
  22.  所定のコード領域の内部に予め設定された形状の機能パターンと符号化した一般情報とを配置するとともに、前記コード領域の内部又は周囲に前記一般情報に固有に設定された符号化した固有情報を配置して情報コードを生成する、方法。
  23.  前記固有情報は、前記情報コードを媒体に印刷する印刷装置を識別するための装置識別子及び前記印刷装置によって印刷された順番を示す連番号を含んでいる、請求項22に記載の方法。
  24.  前記機能パターンと前記一般情報と前記固有情報とを2次元コードで構成する、請求項22又は23に記載の方法。
  25.  前記固有情報を、前記コード領域の符号化領域の内部において、当該符号化領域と位置検出パターンとを分離する分離パターンに隣接して配置する、請求項24に記載の方法。
  26.  前記機能パターンと前記一般情報とを2次元コードで構成し、前記固有情報をバーコードで構成する、請求項22又は23に記載の方法。
  27.  前記固有情報を、前記コード領域の符号化領域の外において、2つの位置検出パターン間であって当該符号化領域に隣接する位置に配置する、請求項26に記載の方法。
  28.  同一内容の前記固有情報を少なくとも2か所に配置する、請求項22から27のいずれか一項に記載の方法。
  29.  媒体に表示された情報コードを撮像し
     前記撮像された情報コードを読み取り、
     前記読み取った情報コードの読取結果を出力する、情報コードの読取方法であって、
     前記情報コードは、記録対象となる一般情報と、前記一般情報に固有に設定された固有情報と、を含み、
     前記固有情報の読み取りに成功しかつ前記一般情報の読み取りに失敗した所定状態か否かを判定し、
     前記所定状態が判断された場合、読み取りに成功した前記固有情報と異なる前記固有情報を有する前記情報コードについては前記一般情報を読み取らないように指令する、情報コードを読み取る方法。
  30.  請求項22から28のいずれか一項に記載の情報コード生成方法によって生成された情報コードが表示された情報コード表示媒体。
PCT/JP2016/082237 2015-10-30 2016-10-31 情報コードを読み取る装置及び情報コードを生成する方法 Ceased WO2017073780A1 (ja)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2015214538A JP6486813B2 (ja) 2015-10-30 2015-10-30 コードリーダ
JP2015-214538 2015-10-30
JP2016-049549 2016-03-14
JP2016049549A JP6502882B2 (ja) 2016-03-14 2016-03-14 情報コード読取装置、情報コード生成方法、及び情報コード表示媒体

Publications (1)

Publication Number Publication Date
WO2017073780A1 true WO2017073780A1 (ja) 2017-05-04

Family

ID=58631581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/082237 Ceased WO2017073780A1 (ja) 2015-10-30 2016-10-31 情報コードを読み取る装置及び情報コードを生成する方法

Country Status (1)

Country Link
WO (1) WO2017073780A1 (ja)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236452A (ja) * 1992-12-18 1994-08-23 Nippondenso Co Ltd 光学的情報読取り装置
JPH10307886A (ja) * 1997-05-09 1998-11-17 Denso Corp 光学的情報読取装置、情報処理装置、文書および記録媒体
JPH11328302A (ja) * 1998-05-12 1999-11-30 Denso Corp 2次元コードの読取方法及び記録媒体
JP2008181475A (ja) * 2006-03-06 2008-08-07 Denso Wave Inc 光学情報読取装置
JP2010257225A (ja) * 2009-04-24 2010-11-11 Denso Wave Inc 二次元コード読み取りシステム
JP2014235488A (ja) * 2013-05-31 2014-12-15 株式会社デンソーウェーブ 情報コード表示媒体及び情報コード読取システム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236452A (ja) * 1992-12-18 1994-08-23 Nippondenso Co Ltd 光学的情報読取り装置
JPH10307886A (ja) * 1997-05-09 1998-11-17 Denso Corp 光学的情報読取装置、情報処理装置、文書および記録媒体
JPH11328302A (ja) * 1998-05-12 1999-11-30 Denso Corp 2次元コードの読取方法及び記録媒体
JP2008181475A (ja) * 2006-03-06 2008-08-07 Denso Wave Inc 光学情報読取装置
JP2010257225A (ja) * 2009-04-24 2010-11-11 Denso Wave Inc 二次元コード読み取りシステム
JP2014235488A (ja) * 2013-05-31 2014-12-15 株式会社デンソーウェーブ 情報コード表示媒体及び情報コード読取システム

Similar Documents

Publication Publication Date Title
JP2015035178A (ja) 画像処理装置及びプログラム
US11449699B2 (en) Information code reading system
JP6288325B2 (ja) 情報コードおよび情報コード読取装置
KR20100108537A (ko) 광학적으로 판독가능한 태그
JP2019061427A (ja) 情報コード読取システム
CN105556942B (zh) 数字水印
JP2009230287A (ja) 読み取り装置、筆記情報処理システム、読み取り装置の制御装置、プログラム
JP6486813B2 (ja) コードリーダ
JP7289641B2 (ja) 情報処理装置、およびその制御方法
JP2010218039A (ja) 顔認証システム及び顔認証方法
CN107944326B (zh) 一种数据获取方法、数据处理方法与系统
WO2017073780A1 (ja) 情報コードを読み取る装置及び情報コードを生成する方法
JP2014182476A (ja) 操作履歴情報保存装置、画像処理装置、操作履歴情報保存制御プログラム
JP6287565B2 (ja) 光学情報読み取り装置
JP5984863B2 (ja) 画像処理装置
JP2017167626A (ja) 情報コード読取装置、情報コード生成方法、及び情報コード表示媒体
CN113343723B (zh) 发光装置、发光方法及计算机可读介质
JP6958067B2 (ja) 情報コード読取システム
JP5098267B2 (ja) 筆記情報処理装置、筆記情報処理方法、及びプログラム
EP3754579A1 (en) Barcode generation device and barcode generation method
CN113468903B (zh) 信息码读取系统、及信息码读取装置
JP2025101216A (ja) 自動改札機、自動改札システム、自動改札方法、および自動改札プログラム
US12061827B2 (en) Processing system, information processing apparatus, and medium for authorized usage of an image processing apparatus
JP7283312B2 (ja) 情報読取装置及びプログラム
JP2017188022A (ja) 画像処理装置、画像処理方法及びプログラム

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.09.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16860008

Country of ref document: EP

Kind code of ref document: A1