Two-dimensional code, two-dimensional code reading device, and two-dimensional code reading method
The two-dimensional code system addresses the challenge of decoding multiple code sets by using rank sets and distinct cell configurations to correctly identify and combine information from multiple code areas, enhancing reading accuracy and capacity without additional data.
Patent Information
- Application Number
- PCT/JP2024/008910
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-19
AI Technical Summary
Existing two-dimensional code reading technologies face challenges in accurately identifying and decoding multiple sets of two-dimensional codes within a single image, leading to incomplete or incorrect decryption processes due to the need for separate information in each code area, which reduces the capacity for recording information.
A two-dimensional code system where first and second information areas are generated using rank sets according to predetermined setting rules, allowing the code reading device to combine and read these information sets without relying on information from each individual area, using distinct cell configurations or mask patterns to differentiate and correctly identify the code regions.
Enables accurate reading and combination of information from multiple two-dimensional code areas within a single image, preventing misidentification and increasing the capacity for information recording without the need for additional data in each code area.
Smart Images

Figure JP2024008910_19092024_PF_FP_ABST
Abstract
Description
Two-dimensional code, two-dimensional code reader, and two-dimensional code reading method
[0001] The present disclosure relates to a two-dimensional code, a two-dimensional code reader, and a two-dimensional code reading method.
[0002] Conventionally, two-dimensional codes with various reading methods have been developed for the purpose of improving convenience, such as increasing capacity, saving space, reading at high speed, and reading with high accuracy. For example, the encrypted information code disclosed in Patent Document 1 below is generated so that the encrypted information can be decoded using a decryption key. The encrypted information is obtained by simultaneously reading the encrypted information code and a two-dimensional code on which identification information associated with the decryption key is recorded.
[0003] JP 2016-015578 A
[0004] However, in the configuration described above in which the encrypted information code and the two-dimensional code for decryption are read as a set, if there are multiple sets, the multiple sets of two-dimensional codes may be captured simultaneously. In such a case, unless the encrypted information code corresponding to the two-dimensional code for decryption can be identified in the captured image, the decryption process cannot be performed properly. This is not limited to two-dimensional codes in which information is encrypted as described above, but occurs with any two-dimensional code in which information recorded in each of the two code areas should be read as a set of information.
[0005] For this reason, it is conceivable to record predetermined common data or the like in each of the paired code areas. In this case, the two code areas to be paired can be identified from the respective reading results. However, since it is necessary to record the common data or the like in each code area, the amount of information that can be recorded in each code area is reduced.
[0006] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide a two-dimensional code, a two-dimensional code reading device, and a two-dimensional code reading method that can read the information recorded in each of the two code areas as a set of information without using the information recorded in each of the two code areas.
[0007] A two-dimensional code according to one embodiment of the present disclosure comprises a first code area in which first information is recorded by arranging multiple types of cells two-dimensionally, and a second code area in which second information is recorded by arranging multiple types of cells two-dimensionally, and is a two-dimensional code for reading the first information and the second information as a set of information, wherein the first code area is generated using a rank set in accordance with predetermined setting rules regarding information on predetermined components, and the second code area is generated using a rank set in accordance with the predetermined setting rules regarding information on the predetermined components.
[0008] A two-dimensional code reading device according to one embodiment of the present disclosure is a two-dimensional code reading device that optically reads the first information and the second information as a set of information from a two-dimensional code having a first code area in which first information is recorded by arranging multiple types of cells two-dimensionally, and a second code area in which second information is recorded by arranging multiple types of cells two-dimensionally, wherein the first code area is generated using a rank set in accordance with predetermined setting rules regarding information of a predetermined component, and the second code area is generated using a rank set in accordance with the predetermined setting rules regarding information of the predetermined component, and the two-dimensional code reading device treats the first information and the second information read from the first code area and the second code area, respectively, generated using the rank set in accordance with the predetermined setting rules regarding information of the predetermined component, as the set of information.
[0009] A two-dimensional code reading method according to one embodiment of the present disclosure is a two-dimensional code reading method that optically reads, as a set of information, the first information and the second information from a two-dimensional code having a first code area in which first information is recorded by arranging multiple types of cells two-dimensionally, and a second code area in which second information is recorded by arranging multiple types of cells two-dimensionally, using a two-dimensional code reading device, wherein the first code area is generated using ranks set in accordance with predetermined setting rules regarding information of predetermined components, and the second code area is generated using ranks set in accordance with the predetermined setting rules regarding information of the predetermined components, and the two-dimensional code reading method includes treating the first information and the second information read from the first code area and the second code area, respectively, generated using the ranks set in accordance with the predetermined setting rules regarding information of the predetermined components, as the set of information.
[0010] In a two-dimensional code according to an embodiment of the present disclosure, a first code area in which first information is recorded is generated using a rank set in accordance with a predetermined setting rule regarding information on a predetermined component, and a second code area in which second information is recorded is generated using a rank set in accordance with the predetermined setting rule regarding information on the predetermined component.
[0011] A two-dimensional code reader that reads the first information and the second information from the first code area and the second code area compares the rank used to generate the first code area with the rank used to generate the second code area. These ranks are set according to the same predetermined setting rules regarding the information of the predetermined components. This allows the two-dimensional code reader to determine whether to read the first information and the second information as a set of information even if the first information and the second information do not contain information indicating that they are a set of information. For example, both of the two code areas may be generated using the same rank. In this case, information recorded in two code areas with different ranks can be prevented from being mistaken for a set of information. Therefore, the two-dimensional code reader can read the information recorded in each of the two code areas as a set of information without using the information recorded in each of the two code areas.
[0012] The two-dimensional code reading device according to an embodiment of the present disclosure provides the same effects as the two-dimensional code according to the embodiment of the present disclosure. The two-dimensional code reading method according to an embodiment of the present disclosure provides the same effects as the two-dimensional code according to the embodiment of the present disclosure.
[0013] FIG. 1 is an explanatory diagram showing a two-dimensional code according to a first embodiment. FIG. 2 is a block diagram illustrating a functional configuration of a two-dimensional code reading device according to the first embodiment. FIG. 3 is a flowchart illustrating a flow of a two-dimensional code reading process performed in the two-dimensional code reading device according to the first embodiment. FIG. 4 is an explanatory diagram showing a two-dimensional code according to a modified example of the first embodiment. FIG. 5 is an explanatory diagram showing an information code according to a second embodiment. FIG. 6 is a diagram illustrating a process of acquiring the position of a code area 20 using second position information. FIG. 7 is a diagram illustrating a process of acquiring the position of a code area 10 using first position information. FIG. 8 is a block diagram illustrating a functional configuration of an information code reading device according to a second embodiment. FIG. 9 is a flowchart illustrating a flow of an information code reading process performed in the information code reading device according to the second embodiment. FIG. 10 is an explanatory diagram showing an information code according to a modified example of the second embodiment. FIG. 11 is a hardware configuration diagram of a two-dimensional code reading device according to an embodiment of the present disclosure.
[0014] First Embodiment A two-dimensional code, a two-dimensional code reader, and a two-dimensional code reading method according to a first embodiment of the present disclosure will be described below with reference to the drawings.
[0015] As shown in Fig. 1, the two-dimensional code 1 according to this embodiment is a group code having two code areas, code area 10 and code area 20, which are arranged in a predetermined positional relationship. Code area 10 and code area 20 are each a cell aggregate in which a plurality of cells (hereinafter simply referred to as cells), which are units for displaying information, are arranged two-dimensionally according to the information to be recorded. The two-dimensional code 1 is displayed, for example, with code area 10 and code area 20 arranged on the same plane on the plane of display medium Ra.
[0016] The code area 10 is a code area in which predetermined information (i.e., first information) is recorded by being generated based on a first code reading method. The code area 10 in this embodiment may be generated according to the method disclosed in, for example, JP 2014-139771 A or JP 2019-128677 A. As shown in Fig. 1 , the code area 10 is provided with specific pattern areas 11a to 11c in which specific patterns of predetermined shapes are arranged, a data recording area in which data is recorded using multiple types of cells, an error correction code recording area in which error correction codes are recorded using multiple types of cells, and a free area 12 in which no data is recorded using multiple types of cells.
[0017] The code area 20 is generated based on the second code reading method and stores predetermined information (i.e., the second information). In this embodiment, the code area 20 is generated as a QR code (registered trademark) having a smaller display area than the code area 10, as shown in FIG.
[0018] The two-dimensional code 1 according to this embodiment is generated so that the first information recorded in the code area 10 and the second information recorded in the code area 20 are read as a set of information. Note that the code area 10 can correspond to an example of a first code area, and the code area 20 can correspond to an example of a second code area.
[0019] In particular, the code area 10 and the code area 20 are generated using a rank related to information of a predetermined component, which rank is different from the rank most suitable for recording the first information and the second information, and the different rank is set according to a predetermined setting rule.
[0020] Specifically, in this embodiment, the number of cells constituting the code region (hereinafter also referred to as cell configuration) is adopted as the information of the predetermined component. Also, the predetermined setting rule is to set the cell configuration of the version (i.e., rank) next to the cell configuration of the most suitable version (i.e., rank).
[0021] For example, if the cell configuration most suitable for the amount of second information (i.e., the smallest cell configuration capable of recording that amount of information) is 25x25, a cell configuration with one cell number greater than that cell configuration (i.e., with room to record that amount of information) may be adopted for the code area 20. For example, a 29x29 cell configuration, which is the next largest after 25x25, may be adopted. Normally, the smallest cell configuration capable of recording the amount of information to be recorded is adopted. Therefore, even if there are multiple code areas in which the same second information is recorded, the multiple code areas can be distinguished according to their cell configurations.
[0022] In this case, the code area 10 adopts the next largest cell configuration after the smallest cell configuration that can be recorded for the amount of information of the first information so that the predetermined setting rule adopted is the same as that adopted for the code area 20. Therefore, the 2D code reader confirms that the cell configurations of both the code area 10 and the code area 20 included in the same captured image are the next largest cell configuration after the normal cell configuration described above, which differs from the normal cell configuration. This makes it possible to determine that the information read from each of the code area 10 and the code area 20 (i.e., the first information and the second information) should be treated as a set of information.
[0023] Next, the schematic configuration of a two-dimensional code reader 30 capable of optically reading the two-dimensional code 1 generated as described above will be described with reference to FIG.
[0024] The two-dimensional code reader 30 may be, for example, a mobile terminal such as a smartphone with a camera function. A predetermined application program (hereinafter also referred to as a reading application) is installed in the two-dimensional code reader 30 to acquire and output a set of information (i.e., first information and second information) read from the captured two-dimensional code 1.
[0025] 2, the two-dimensional code reader 30 mainly includes a control unit 31, a storage unit 32, an imaging unit 33, a display unit 34, an operation unit 35, and a communication unit 36. The imaging unit 33 is a camera equipped with a light-receiving sensor such as a C-MOS (complementary metal-oxide semiconductor) area sensor or a CCD (charge coupled device) area sensor. The display unit 34 is a touch panel display. The operation unit 35 outputs signals corresponding to touch operations on the touch panel and operations on various operation keys to the control unit 31. The communication unit 36 is a communication interface capable of communicating with external devices such as a host terminal (not shown) via a predetermined network such as the Internet.
[0026] As shown in Fig. 11, the two-dimensional code reader 30 includes a processor 41 and a memory 43 as a hardware configuration. For example, the processor 41 may be a CPU (Central Processing Unit). The memory 43 may be a ROM (Read Only Memory), a RAM (Random Access Memory), or a non-volatile memory. The memory 43 stores in advance programs related to the processing of the two-dimensional code reader 30. The functions of the control unit 31 and the storage unit 32 may be realized by the above hardware configuration.
[0027] The two-dimensional code reader 30 optically reads the two-dimensional code 1 captured by the imaging unit 33 through a two-dimensional code reading process performed by the control unit 31 when the reading application is started.
[0028] The two-dimensional code reading process performed by the control unit 31 of the two-dimensional code reader 30 when reading the two-dimensional code 1 generated as described above will be described in detail below with reference to the flowchart shown in FIG.
[0029] When a user operates the operation unit 35 to start the reading application, the control unit 31 starts the two-dimensional code reading process. First, the imaging process of step S101 in FIG. 3 is performed. In this process, a captured image of an information code or the like captured by the imaging unit 33 is captured and acquired. Next, in the decoding process shown in step S103, a process is performed to decode and read two code areas (i.e., information codes) included in the captured image. Until the decoding is successful, the determination process of step S105 returns No, and the processes from step S101 to S105 are repeated. For example, even if one information code is successfully decoded, the determination process of step S105 returns No, and the process is repeated from step S101.
[0030] If the decoding of the two code areas (i.e., information codes) contained in the captured image is successful (Yes in S105), the judgment process in step S107 determines whether the information read from each of the code areas is information that should be output as a set of information.
[0031] Here, the code region 10 and the code region 20 included in the same captured image are successfully read. That is, it is confirmed that the cell configurations of the code region 10 and the code region 20 are the next largest cell configurations after the normal cell configuration described above. In this way, it is confirmed that the two read code regions were generated using the version (i.e., rank) set according to the predetermined setting rule. This determines that the two read pieces of information (i.e., the first information and the second information) are to be output as a set of information (Yes in S107). Note that only one of the code regions 10 and 20 may contain information on the components of the other code region (e.g., the cell configuration). In this case, one code region may be decoded to obtain information on the components of the other code region. Next, during the decoding of the other code region, it may be determined whether the information on the components of the other code region matches the information on the components of the other code region obtained from one code region.
[0032] In this case, a data acquisition process shown in step S109 is performed. The two pieces of information that have been read (i.e., the first information and the second information) are acquired as a set of information to be output and stored in the storage unit 32. Note that the multiple sets of information acquired as described above may be transmitted together to the upper terminal via the communication unit 36 at a predetermined timing. Alternatively, each of the multiple sets of information acquired may be transmitted to the upper terminal via the communication unit 36 each time it is acquired.
[0033] On the other hand, because two information codes are simply imaged and read, it may be determined that at least one of the cell configurations is not the next largest cell configuration after the normal cell configuration described above. In this case, it is determined that the two pieces of information read do not need to be output as a set of information (No in S107). Furthermore, even if the code area 20 is replaced with another QR code, it may be determined that the cell configuration of the replaced QR code is not the next largest cell configuration after the normal cell configuration described above. In this case, it is also determined that the two pieces of information read do not need to be output as a set of information (No in S107). In this case, the two pieces of information read are not acquired or stored, and the two-dimensional code reading process ends. Note that if it is determined that the two pieces of information read do not need to be output as a set of information (No in S107), the process may be repeated from step S101.
[0034] As described above, in the two-dimensional code 1 according to this embodiment, the code area 10 in which the first information is recorded is generated using a rank set in accordance with a predetermined setting rule for information on a predetermined component, and the code area 20 in which the second information is recorded is generated using a rank set in accordance with the predetermined setting rule for information on the predetermined component. The rank set in accordance with the predetermined setting rule differs from the rank most suitable for recording the first information and the second information.
[0035] The two-dimensional code reader 30, which reads the first information and the second information from the code area 10 and the code area 20, checks the ranks related to the information of the predetermined component used in generating the code area 10 and the ranks used in generating the code area 20. This allows the determination of whether the first information and the second information should be read as a set of information. This prevents information read from a code area generated using a rank related to the information of the predetermined component that is most suitable for recording the information to be read (i.e., a two-dimensional code that is easily generated using a common generation method) from being mistakenly recognized as one of the set of information. Furthermore, the ranks set according to the predetermined setting rules may be the same for the code area 10 and the code area 20. This prevents code areas that should not be read as a set of information from being mistakenly recognized as a set of information, even if they were generated using a rank different from the most suitable rank. This is because the ranks used in generating the code area 10 and the code area 20 not only follow the predetermined setting rules but are also the same. Therefore, the information recorded in the code area 10 and the code area 20 can be read as a set of information without using the information recorded in each area.
[0036] In particular, in this embodiment, the number of cells constituting the code area (i.e., the cell configuration) is used as the information on the predetermined component. Therefore, as in the above example, the predetermined setting rule may include setting a cell configuration with one more cell number than the cell configuration that is most suitable for the amount of information to be recorded in the code area. This makes it easy and accurate to determine whether the code area is being generated using a cell configuration of a rank set in accordance with the predetermined setting rule.
[0037] The information on the predetermined components is not limited to the cell configuration, and other information on components obtainable during decoding may also be used. For example, the information on the predetermined components according to the first modification of this embodiment may be a mask pattern for rearranging cells arranged according to the information to be recorded so that the brightness of the cells is dispersed. In this case, for example, the predetermined setting rule may include setting a second version (i.e., a second rank) of the mask pattern that is different from a first version (i.e., a first rank) of the mask pattern that is most suitable for distributing the brightness of the cells arranged according to the information to be recorded in the code area. The second version may be set as a mask pattern that is next most suitable after the first version. In this case, after an encoding process is performed to arrange the cells so that the read information is recorded, the version (i.e., rank) of the mask pattern set according to the predetermined setting rule is calculated. The calculated version (i.e., rank) of the mask pattern is compared with the version (i.e., rank) of the mask pattern read from the code area by imaging. This makes it possible to determine whether the code area is generated using the version (i.e., rank) set according to the predetermined setting rule. Furthermore, when a unique mask number is assigned to each mask pattern, for example, a mask number (i.e., rank) next to the mask number (i.e., rank) of the most suitable mask pattern may be set. In other words, when the information of the predetermined component is managed by element numbers, an element number (e.g., the next element number in the sequence) different from the element number (i.e., rank) that is most suitable for the information to be recorded may be set.
[0038] Furthermore, a compression method for the information recorded in the code area (hereinafter simply referred to as record information) may be adopted as the information of the predetermined component according to the second modification of this embodiment. In this case, for example, the predetermined setting rule may include setting a rank for a compression method different from the compression method that can best compress the record information (i.e., the smallest amount of information). Specifically, for example, if the record information consists of only one type of character, the predetermined setting rule may be set to a rank for a compression method different from the compression method that is most suitable for the record information (i.e., record information consisting of only one type of character). For example, the predetermined setting rule may be set to a rank for a compression method that is most suitable for record information consisting of multiple types of characters. For example, if the record information consists of multiple types of characters, the predetermined setting rule may be set to a rank for a compression method different from the compression method that is most suitable for the record information (i.e., record information consisting of multiple types of characters). For example, the predetermined setting rule may be set to a rank for a compression method that is most suitable for record information consisting of only one type of character. By checking the compression method of the read information, it is possible to determine whether the code area has been generated using a rank set in accordance with a predetermined setting rule. In other words, for example, the predetermined setting rule may include setting a second rank different from the first rank of the compression method that is most suitable for compressing the information to be recorded in the code area (i.e., that maximizes compression efficiency). The second rank may be set to the compression method that is next most suitable after the first rank. In this case, the compression method of the read information is compared with the compression method of the rank set in accordance with the predetermined setting rule for the read information. This makes it possible to determine whether the code area has been generated using a rank set in accordance with the predetermined setting rule.
[0039] Furthermore, as a third modification of this embodiment, at least one of code area 10 and code area 20 may be generated as a partially private code having a public area and a private area. Information that does not require a decryption key is recorded in the public area. Encrypted information that requires a decryption key is recorded in the private area. As a method for generating such a partially private code and a specific configuration of the generated partially private code, for example, the techniques disclosed in Japanese Patent Application Laid-Open No. 2009-9547 or Japanese Patent Application Laid-Open No. 2008-299422 may be suitably used.
[0040] This allows a two-dimensional code reader 30 with a decryption key to acquire different sets of information from a two-dimensional code reader 30 without a decryption key. For example, lot data of a product bearing the two-dimensional code 1 may be recorded in the public area of a first code area of the two code areas, and company-specific data related to the product may be recorded in the private area of the first code area. Product data of the product may be recorded in the second code area that is not generated as a partial private code. This allows distributors and others who do not use the decryption key to acquire product data and lot data as a set of information. On the other hand, product manufacturers and others who use the decryption key can acquire product data, lot data, and company-specific data as a set of information. Furthermore, users and others who use a reading device that can read only the second code area that is not generated as a partial private code can acquire only the product data. In this way, the range of information read from a single two-dimensional code 1 can be individually set depending on the reading device.
[0041] The present disclosure is not limited to the above-described embodiments, and may be modified as follows, for example.
[0042] (1) The method for reading the first code for generating and reading the code area 10 is not limited to the above-described reading method. The method for reading the first code may be a reading method for other code types, such as a QR code, a Data Matrix code, or a MaxiCode. Similarly, the method for reading the second code for generating and reading the code area 20 is not limited to a reading method for a QR code. The method for reading the second code may be a reading method for other code types, such as a Data Matrix code or a MaxiCode.
[0043] Furthermore, for example, the same reading method may be adopted for reading the first code and the second code. Specifically, for example, the two-dimensional code 1a illustrated as a modified example in Fig. 4 includes a code area 10a (i.e., the first code area) that is a QR code and a code area 20a (i.e., the second code area) that is also a QR code. The code area 10a and the code area 20a may be QR codes with different code area sizes and cell sizes.
[0044] (2) The code area 10 (or the code area 10a) and the code area 20 (or the code area 20a) may be arranged so that one code area having an error correction function is covered by the other code area within the range in which the error can be corrected.
[0045] Second Embodiment Conventionally, various information codes with various reading methods have been developed with the aim of improving convenience, such as increasing capacity, saving space, reading at high speed, and reading with high accuracy. For example, the information code disclosed in Japanese Patent No. 6465051 includes a first code area in which predetermined information is recorded by arranging multiple types of cells based on a first code reading method, and a second code area in which reading method information related to the first code reading method is recorded by arranging multiple types of cells based on a second code reading method. As a result, even a reading device that does not have a program corresponding to the first code reading method installed can obtain the reading method information by reading the second code area. By using the reading method information to install a program corresponding to the first code reading method, the information code of the first code reading method can be read.
[0046] A typical reading device outputs the reading result to a higher-level device each time it successfully reads an information code. On the other hand, there are also reading devices that read multiple information codes at once and output the reading results to a higher-level device.
[0047] However, in the case of the latter reading device, for example, when two information codes to be grouped are read at once, even if one information code is successfully read, the other information code may fail to be read. This is because the size of the cells that make up the information codes and the size of the information codes themselves may differ. Image capture and decoding may be repeated until the other information code is successfully read. As a result, the reading process time may be long.
[0048] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide an information code, an information code reading device, and an information code reading method that can shorten the time required to read information codes to be grouped.
[0049] An information code (1b, 1c) according to one embodiment of the present disclosure comprises: a first code area (10b, 10c) in which first information is recorded by arranging multiple types of cells based on a first code reading method; and a second code area (20b, 20c) in which second information is recorded by arranging multiple types of cells based on a second code reading method, wherein the first information includes first reading information, information indicating that the first code area is grouped with the second code area, and information indicating the position of the second code area; and the second information includes second reading information, information indicating that the second code area is grouped with the first code area, and information indicating the position of the first code area.
[0050] An information code reading device (30b) according to an embodiment of the present disclosure optically reads an information code (1b, 1c) including a first code area (10b, 10c) in which first information is recorded by arranging multiple types of cells based on a first code reading method, and a second code area (20b, 20c) in which second information is recorded by arranging multiple types of cells based on a second code reading method, wherein the first information includes first read information, information indicating that the first code area is grouped with the second code area, and information indicating a position of the second code area, and the second information includes second read information, information indicating that the second code area is grouped with the first code area, and information indicating a position of the first code area. When information recorded in one of the first code area and the second code area is read, the information code reading device uses the information recorded in the one code area to read the information recorded in the other code area.
[0051] An information code reading method according to an embodiment of the present disclosure includes optically reading, using an information code reader (30b), an information code (1b, 1c) including a first code area (10b, 10c) in which first information is recorded by arranging multiple types of cells based on a first code reading method, and a second code area (20b, 20c) in which second information is recorded by arranging multiple types of cells based on a second code reading method, wherein the first information includes first read information, information indicating that the first code area is grouped with the second code area, and information indicating a position of the second code area, and the second information includes second read information, information indicating that the first code area is grouped with the first code area, and information indicating a position of the first code area, The information code reading method includes, when information recorded in one of the first code area and the second code area is read, reading information recorded in the other code area using the information recorded in the one code area.
[0052] According to an information code according to an embodiment of the present disclosure, a first code area generated based on a first code reading method records first reading information, information indicating that the first code area is grouped with a second code area, and information indicating the position of the second code area, and a second code area generated based on a second code reading method records second reading information, information indicating that the second code area is grouped with the first code area, and information indicating the position of the first code area.
[0053] This allows the information code reading device capturing the first and second code areas to determine that the read information is information to be grouped. Furthermore, the information code reading device can use the position information read from one of the two code areas to determine the position of the other code area to be read next. For example, reading the second code area may be difficult because the cell and code area size of the second code area is smaller than that of the first code area. Even in this case, the success rate of reading the second code area can be increased by using the position information of the second code area read from the first code area. Therefore, the time required to read information codes to be grouped can be reduced.
[0054] Furthermore, the first code area has recorded therein information indicating the position of the second code area based on the size of the cells that make up the first code area, and the second code area has recorded therein information indicating the position of the first code area based on the size of the cells that make up the second code area.
[0055] In this way, the position of the next code area to be read is determined based on the size of the cells in one code area that has been read. By using the cell size, which can be easily obtained from the captured image, as a criterion, the position of the next code area can be determined accurately and easily.
[0056] In addition, information indicating the position of the second code area relative to the size of the first code area is recorded in the first code area, and information indicating the position of the first code area relative to the size of the second code area is recorded in the second code area.
[0057] In this way, the size of one code area that has been read is used as a reference to determine the position of the other code area that should be read next. By using the size of the code area, which can be easily obtained from the captured image, as a criterion, the position of the other code area can be determined accurately and easily.
[0058] According to the information code reading device according to an embodiment of the present disclosure, the same effects as those of the information code according to an embodiment of the present disclosure can be achieved. According to the information code reading method according to an embodiment of the present disclosure, the same effects as those of the information code according to an embodiment of the present disclosure can be achieved.
[0059] An information code, an information code reading device, and an information code reading method according to a second embodiment of the present disclosure will be described below with reference to the drawings.
[0060] As shown in Fig. 5, the information code 1b according to this embodiment is a group code including two code areas, code area 10b and code area 20b, which are arranged in a predetermined positional relationship. Each of code area 10b and code area 20b is a cell assembly in which a plurality of cells (hereinafter simply referred to as cells), which are units for displaying information, are arranged according to the information to be recorded. For example, the information code 1b is displayed with code area 10b and code area 20b arranged on the same plane on the plane of display medium Rb. Code area 10b may be an example of a first code area, and code area 20b may be an example of a second code area.
[0061] The code area 10b is a code area in which predetermined information (i.e., first information) is recorded by being generated based on a first code reading method. The code area 10b in this embodiment may be generated according to the method disclosed in, for example, JP 2014-139771 A or JP 2019-128677 A. As shown in Fig. 5, the code area 10b is provided with specific pattern areas 11d to 11f in which specific patterns of predetermined shapes are arranged, a data recording area in which data is recorded using multiple types of cells, an error correction code recording area in which error correction codes are recorded using multiple types of cells, and a free area 12b in which data is not recorded using multiple types of cells.
[0062] The code area 20b is generated based on the second code reading method and stores predetermined information (i.e., the second information). In this embodiment, the code area 20b is generated as a QR code whose code area and cell sizes are smaller than those of the code area 10b, as shown in Fig. 5 .
[0063] The first read information recorded in code area 10b and the second read information recorded in code area 20b included in information code 1b according to this embodiment are grouped and output as read results. Therefore, the first read information and information indicating that code area 10b is grouped with code area 20b are recorded in code area 10b. Similarly, the second read information and information indicating that code area 20b is a group with code area 10b are recorded in code area 20b. In this embodiment, the group information indicating that code area 10b is grouped with code area 20b and recorded in code area 10b may be a value calculated from the second read information using a known method such as a checksum. Similarly, the group information indicating that code area 20b is grouped with code area 10b and recorded in code area 20b may be a value calculated from the first read information using a known method such as a checksum. The information indicating that the code regions are grouped may be, for example, a predetermined common value.
[0064] In particular, in this embodiment, information indicating the position of the code region 20b (hereinafter also referred to as second position information) is further recorded in the code region 10b. Furthermore, information indicating the position of the code region 10b (hereinafter also referred to as first position information) is further recorded in the code region 20b. Specifically, the second position information is information based on the size of the cells constituting the code region 10b. For example, as shown in FIG. 6 , the second position information may be generated as information indicating the distances between the four corners (i.e., corners) of the code region 20b and the four corners of the code region 10b in units of cells. Similarly, the first position information is information based on the size of the cells constituting the code region 20b. For example, as shown in FIG. 7 , the first position information may be generated as information indicating the distances between the four corners of the code region 10b and the four corners of the code region 20b in units of cells.
[0065] The code region 10b and the code region 20b thus generated can each be read independently as an information code. The code region 10b can be an example of a first code, and the code region 20b can be an example of a second code.
[0066] Next, the schematic configuration of an information code reader 30b capable of optically reading the information code 1b generated as described above will be described with reference to FIG.
[0067] The information code reader 30b may be, for example, a mobile terminal such as a smartphone with a camera function. A predetermined application program (hereinafter also referred to as a reading application) is installed in the information code reader 30b to group (e.g., connect) and output information read from the captured information code 1b (i.e., the first read information and the second read information).
[0068] As shown in Fig. 8, the information code reader 30b mainly includes a control unit 31b, a storage unit 32b, an imaging unit 33b, a display unit 34b, an operation unit 35b, and a communication unit 36b. The imaging unit 33b is a camera equipped with a light-receiving sensor such as a C-MOS area sensor or a CCD area sensor. The display unit 34b is a touch panel display. The operation unit 35b outputs signals corresponding to touch operations on the touch panel and operations on various operation keys to the control unit 31b. The communication unit 36b is a communication interface capable of communicating with external devices such as a host terminal (not shown) via a predetermined network such as the Internet.
[0069] As shown in Fig. 11, the information code reading device 30b includes a processor 41 and a memory 43 as a hardware configuration. For example, the processor 41 may be a CPU. The memory 43 may be a ROM, a RAM, or a non-volatile memory. The memory 43 stores in advance a program related to the processing of the information code reading device 30b. The functions of the control unit 31b and the storage unit 32b may be realized by the above hardware configuration.
[0070] The information code reader 30b optically reads the information code 1b captured by the imaging unit 33b through an information code reading process performed by the control unit 31b when the reading application is started.
[0071] The information code reading process performed by the control unit 31b of the information code reader 30b when reading the information code 1b generated as described above will be described in detail below with reference to the flowchart shown in FIG.
[0072] When the user operates the operation unit 35b to start the reading application, the control unit 31b starts the information code reading process. First, the imaging process of step S201 in FIG. 9 is performed. In this process, an image of an information code or the like captured by the imaging unit 33b is captured and acquired. Next, in the decoding process of step S203, a process is performed to decode and read the information code included in the captured image. Until the decoding is successful, the determination of step S205 is No, and the processes of steps S201 to S205 are repeated.
[0073] If the information code included in the captured image is successfully decoded (Yes in S205), a determination process in step S207 is performed to determine whether the successfully decoded information code is part of a group code based on the decoding result. If the decoding result does not include the group information, it is determined that the successfully decoded information code is not part of a group code (No in S207). In this case, an output process in step S217 outputs the decoding result to a higher-level terminal or the like via the communication unit 36b.
[0074] On the other hand, if the decoded result includes the group information, it is determined that the successfully decoded information code is part of the group code (Yes in S207). In this case, the process of acquiring the position information in the code area shown in step S209 is performed.
[0075] For example, if the decoding of code area 10b in the imaged information code 1b is successful first, information on the position of code area 20b (e.g., the positions of the four corners) is obtained from the imaged image based on the position of code area 10b, based on the second position information read from that code area 10b.
[0076] Also, for example, if the decoding of the code area 20b in the imaged information code 1b is successful first, information on the position of the code area 10b (for example, the positions of the four corners) is obtained from the imaged image based on the position of the code area 20b, based on the first position information read from the code area 20b.
[0077] As described above, when the position information of one of the code areas 10b and 20b is read from the other code area that has been successfully decoded, a re-decoding process shown in step S211 is performed. In this process, the range occupied by the other code area in the captured image in which one code area has been successfully decoded is calculated from the position information obtained as described above. Then, a process for decoding the other code area is performed for the calculated range. In this way, because the area to be re-decoded is calculated based on the obtained position information, it is possible to avoid information being read from other nearby information codes and the read information being erroneously grouped.
[0078] If the decoding of the other code area in which the group information is recorded is successful (Yes in S213), a group output process is performed in step S215. In this process, the first read information and the second read information, which are the decoded results obtained in the decoding process in step S203 and the decoded results obtained in the re-decoding process in step S211, excluding the first position information, the second position information, and the group information, are grouped and output to a higher-level terminal or the like via the communication unit 36b.
[0079] On the other hand, for example, if a portion of the information code 1b is missing from the captured image, even if one code area is successfully decoded, the captured image may not include part of the other code area. In this case, it is determined that the re-decoding has failed (No in S213), and the process returns to step S201. Also, even if the re-decoding result does not include group information, it is determined that the re-decoding has failed (No in S213), and the process returns to step S201. Note that, as described above, the user may be notified that the re-decoding has failed by using a display on the display unit 34b functioning as a notification unit, or the like.
[0080] As described above, the information code 1b according to this embodiment includes a code area 10b generated based on a first code reading method and a code area 20b generated based on a second code reading method. The first read information, group information indicating that the code area 10b is grouped with the code area 20b, and information indicating the position of the code area 20b are recorded in the code area 10b. The second read information, group information indicating that the code area 20b is grouped with the code area 10b, and information indicating the position of the code area 10b are recorded in the code area 20b.
[0081] This allows the information code reader 30b, which captures the code areas 10b and 20b, to determine that the read information is to be grouped. Furthermore, the information code reader 30b can use the position information read from one of the two code areas to determine the position of the other code area to be read next. For example, reading the code area 20b may be difficult due to the small size of the cells and code area of the code area 20b. Even in this case, the success rate of reading the code area 20b can be increased by using the position information of the code area 20b read from the code area 10b. Therefore, the time required to read information codes to be grouped can be reduced.
[0082] In particular, information indicating the position of code region 20b based on the size of the cells that make up code region 10b is recorded in code region 10b. Also, information indicating the position of code region 10b based on the size of the cells that make up code region 20b is recorded in code region 20b.
[0083] In this way, the position of the next code area to be read is determined based on the size of the cells in one code area that has been read. By using the cell size, which can be easily obtained from the captured image, as a criterion, the position of the next code area can be determined accurately and easily.
[0084] Note that information indicating the position of code region 20b based on the size of code region 10b may be recorded in code region 10b. Also, information indicating the position of code region 10b based on the size of code region 20b may be recorded in code region 20b.
[0085] In this way, the position of the next code area to be read is determined based on the size of one code area that has been read. By using the size of the code area, which can be easily obtained from the captured image, as a criterion, the position of the next code area can be determined accurately and easily.
[0086] The present disclosure is not limited to the above-described embodiments, and may be modified as follows, for example.
[0087] (1) The method for reading the first code for generating and reading code area 10b is not limited to the above-described reading method. The first code may be read using other code types, such as QR codes, data matrix codes, maxicodes, and barcodes. Similarly, the second code for generating and reading code area 20b is not limited to the QR code reading method. The second code may be read using other code types, such as data matrix codes, maxicodes, and barcodes.
[0088] Furthermore, for example, the same reading method may be adopted for reading the first code and the second code. Specifically, for example, an information code 1c illustrated as a modified example in Fig. 10 includes a code area 10c (i.e., a first code area) that is a QR code and a code area 20c (i.e., a second code area) that is also a QR code. The code area 10c and the code area 20c may be QR codes with different code area sizes and cell sizes.
[0089] (2) The code area 10b may be generated as a partially private code having a public area and a private area. Information not requiring a decryption key is recorded in the public area. Encrypted information requiring a decryption key is recorded in the private area. For example, first position information and group information may be recorded in the private area, and first read information may be recorded in the public area. Similarly, the code area 20b may be generated as a partially private code. For example, second position information and group information may be recorded in the private area, and second read information may be recorded in the public area. This not only clarifies the information to be grouped, but also prevents a reader without a decryption key from outputting the position information and group information. As a method for generating such a partially private code and a specific configuration of the generated partially private code, the techniques disclosed in, for example, Japanese Patent Application Laid-Open No. 2009-9547 or Japanese Patent Application Laid-Open No. 2008-299422 may be suitably used.
[0090] (3) The code area 10b (or the code area 10c) and the code area 20b (or the code area 20c) may be arranged so that one code area having an error correction function is covered by the other code area within the range in which the error can be corrected.
Claims
1. A two-dimensional code comprising a first code area in which first information is recorded by arranging multiple types of cells two-dimensionally, and a second code area in which second information is recorded by arranging multiple types of cells two-dimensionally, for reading the first information and the second information as a set of information, wherein the first code area is generated using a rank set in accordance with predetermined setting rules regarding information of a predetermined component, and the second code area is generated using a rank set in accordance with the predetermined setting rules regarding the information of the predetermined component.
2. The two-dimensional code according to claim 1, wherein the predetermined setting rule includes setting a rank different from a rank that is most suitable for the information to be recorded.
3. The two-dimensional code according to claim 1, wherein the information on the predetermined component is the number of cells that make up the code area.
4. The two-dimensional code according to claim 1, wherein the information of the predetermined component is a mask pattern for rearranging the cells arranged according to the information to be recorded so that the light and dark of the cells are dispersed.
5. The two-dimensional code according to claim 1, wherein the information of the predetermined component is a compression method for the recorded information.
6. A two-dimensional code reading device that optically reads the first information and the second information as a set of information from a two-dimensional code having a first code area in which first information is recorded by arranging multiple types of cells in a two-dimensional manner, and a second code area in which second information is recorded by arranging multiple types of cells in a two-dimensional manner, wherein the first code area is generated using a rank set in accordance with a predetermined setting rule regarding information of a predetermined component, and the second code area is generated using a rank set in accordance with the predetermined setting rule regarding information of the predetermined component, and the two-dimensional code reading device treats the first information and the second information read from the first code area and the second code area, respectively, generated using the rank set in accordance with the predetermined setting rule regarding information of the predetermined component, as the set of information.
7. A two-dimensional code reading method for optically reading, as a set of information, the first information and the second information from a two-dimensional code having a first code area in which first information is recorded by arranging multiple types of cells in a two-dimensional manner, and a second code area in which second information is recorded by arranging multiple types of cells in a two-dimensional manner, using a two-dimensional code reader, wherein the first code area is generated using a rank set in accordance with a predetermined setting rule regarding information of a predetermined component, and the second code area is generated using a rank set in accordance with the predetermined setting rule regarding information of the predetermined component, and the two-dimensional code reading method includes treating, as the set of information, the first information and the second information read from the first code area and the second code area, respectively, generated using the rank set in accordance with the predetermined setting rule regarding information of the predetermined component.
Citation Information
Patent Citations
Method for generating two-dimensional code and reading device therefor
JP2008299422A
Method of creating two-dimensional code and its reader
JP2009009547A
Generation method for information code, information code, information code reader, and information code utilization system
JP2014139771A
Decryption system using encryption information code, program, and method
JP2016015578A
Information code generation system
JP2019128677A
Cited By
Printed material, composite two-dimensional symbol, method for displaying composite two-dimensional symbols, method for generating image data, and method for reading composite two-dimensional symbols.
JP7847391B1
Printed matter, composite two-dimensional symbol, composite display method for two-dimensional symbol, image data generation method, and reading method for composite two-dimensional symbol
WO2026133651A1
