Group code, information acquisition device, information acquisition method, and program
Patent Information
- Application Number
- JP2022108512
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2025-02-17
- Estimated Expiration
- 2042-07-05
Smart Images

Figure 0007630145000001 
Figure 0007630145000002 
Figure 0007630145000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a group code composed of a predetermined number of two-dimensional codes, and an information acquisition device that acquires information corresponding to the group code. [Background technology]
[0002] Conventionally, two-dimensional codes such as QR Code (registered trademark) have been widely used (for example, see Patent Document 1). The use of two-dimensional codes has the advantage that the amount of information that can be recorded can be increased compared to barcodes, which are one-dimensional codes. For this reason, two-dimensional codes have come to be used in a variety of situations, such as logistics, public transportation, and payment of fees. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 10-214317 Summary of the Invention [Problem to be solved by the invention]
[0004] Although the amount of information that a two-dimensional code can carry is greater than that of a barcode, it is still finite, and so there has been a problem in that it cannot be used when more information than that amount is required.
[0005] The present invention has been made to solve the above-mentioned problems, and aims to provide a code that can store a larger amount of information than conventional two-dimensional codes, and an information acquisition device that can acquire information corresponding to the code. [Means for solving the problem]
[0006] In order to achieve the above-mentioned object, an information acquisition device according to one embodiment of the present invention comprises an image acquisition unit that acquires a captured image of a plurality of rectangular, oriented two-dimensional codes; an identification unit that identifies a group code composed of a predetermined number of two-dimensional codes in the acquired captured image using at least the relative orientations of the 2-dimensional codes that make up the group code; a reading unit that reads information from the plurality of two-dimensional codes that make up the identified group code; and an information acquisition unit that acquires information corresponding to the group code using the information read from the plurality of two-dimensional codes that make up the group code. With this configuration, even if two or more group codes are adjacent to each other, each group code can be identified using at least the relative orientation of the two-dimensional codes that make up the group code, and information corresponding to each group code can be obtained.
[0007] In the information acquisition device according to an aspect of the present invention, the identification unit may identify the group code using the orientation and type of the two-dimensional code that constitutes the group code. With this configuration, each group code can be identified using the type as well as the orientation of the two-dimensional code that constitutes the group code.
[0008] In the information acquisition device according to an aspect of the present invention, the type of the two-dimensional code may be a type related to the number of cells of the two-dimensional code. With this configuration, for example, the group code can be identified using the type of two-dimensional code according to the number of cells on one side and the orientation of the two-dimensional code.
[0009] In addition, in an information acquisition device according to one embodiment of the present invention, the information read from at least one of the two-dimensional codes that make up the group code includes a check digit, and the information acquisition unit may acquire information corresponding to the group code when the information read from the multiple two-dimensional codes that make up the group code matches the check digit corresponding to the group code. With this configuration, it is possible to determine whether the group code has been properly identified by using the check digit. For example, if multiple two-dimensional codes are accidentally arranged to form a group code, the check digits usually do not match, so it is possible to avoid erroneously acquiring information corresponding to the group code from such multiple two-dimensional codes.
[0010] In the information acquisition device according to an aspect of the present invention, the predetermined number may be any one of two to four.
[0011] In addition, a group code according to one embodiment of the present invention is a group code that is rectangular and composed of a plurality of oriented two-dimensional codes, and can be identified using at least the relative orientations of the two-dimensional codes that make up the group code. With this configuration, the amount of information can be increased by using this group code compared to conventional two-dimensional codes. Also, even if two or more group codes are adjacent to each other, each group code can be identified by at least the relative orientation of the two-dimensional codes that make up the group code.
[0012] In addition, in a group code according to an aspect of the present invention, the group code may be able to be specified using the orientation and type of the two-dimensional code that constitutes the group code. With this configuration, the group code can be identified using the type as well as the orientation of the two-dimensional code that constitutes the group code.
[0013] In addition, an information acquisition method according to one aspect of the present invention is an information acquisition method processed using an image acquisition unit, an identification unit, a reading unit, and an information acquisition unit, and includes the steps of: the image acquisition unit acquiring a captured image of a plurality of rectangular 2-dimensional codes having a direction; the identification unit identifying a group code consisting of a predetermined number of 2-dimensional codes in the acquired captured image using at least the relative orientations of the 2-dimensional codes that make up the group code; the reading unit reading information from the plurality of 2-dimensional codes that make up the identified group code; and the information acquisition unit acquiring information corresponding to the group code using the information read from the plurality of 2-dimensional codes that make up the group code. Effect of the Invention
[0014] Since the group code according to an embodiment of the present invention is composed of a predetermined number of two-dimensional codes, the amount of information can be increased compared to conventional two-dimensional codes. Also, according to the information acquisition device according to an embodiment of the present invention, the group code can be identified from a plurality of two-dimensional codes by using at least the orientation of the two-dimensional codes that compose the group code, and information corresponding to the group code can be acquired. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a block diagram showing a configuration of an information acquisition device according to an embodiment of the present invention; [Diagram 2] A flowchart showing the operation of the information acquisition device according to the embodiment. [Diagram 3] FIG. 13 shows an example of a group code according to the embodiment. [Figure 4] FIG. 13 shows an example of a transport target to which a group code is assigned in the embodiment. [Diagram 5] FIG. 13 shows an example of a group code according to the embodiment. [Figure 6] FIG. 13 shows an example of a group code according to the embodiment. [Figure 7]FIG. 13 is a diagram showing an example of an output of a captured image in the embodiment; [Figure 8] FIG. 2 shows an example of the configuration of a computer system according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] The information acquisition device and group code according to the present invention will be described below using the embodiments. In the following embodiments, components and steps with the same reference numerals are the same or equivalent, and repeated description may be omitted. The information acquisition device according to this embodiment identifies a group code consisting of a predetermined number of two-dimensional codes by using at least the relative orientation of the two-dimensional codes that make up the group code, and acquires information corresponding to the identified group code.
[0017] FIG. 1 is a block diagram showing the configuration of an information acquisition device 1 according to this embodiment. The information acquisition device 1 according to this embodiment acquires information corresponding to a group code composed of a predetermined number of two-dimensional codes, and includes an image acquisition unit 11, a storage unit 12, an identification unit 13, a reading unit 14, an information acquisition unit 15, and an output unit 16. The information acquisition device 1 may be, for example, a portable information processing terminal having a photographing function, such as a smartphone, a tablet terminal, a PDA (Personal Digital Assistant), or an information processing device or server that receives and processes a photographed image from a device having a photographing function. Since the information acquisition device 1 acquires information corresponding to the group code, it can also be considered as a code reader of the group code.
[0018] The image acquisition unit 11 acquires captured images of a plurality of two-dimensional codes. The image acquisition unit 11 may be, for example, an optical device such as a camera that captures a plurality of two-dimensional codes, or may receive captured images of a plurality of two-dimensional codes captured by an optical device such as a camera. It is preferable that the captured images include images of a plurality of two-dimensional codes. For example, the image acquisition unit 11 may acquire the captured image only once, or may continuously acquire the captured image in real time. In the latter case, the captured image may be a moving image. In addition, in order to read information from the two-dimensional code included in the captured image, it is preferable that the captured image has a resolution that allows information to be read from the two-dimensional code. In addition, when the code to be captured is a color code, it is preferable that the captured image is a color image. The acquired captured image may be stored in, for example, the storage unit 12. In this embodiment, this case will be mainly described.
[0019] The captured images are stored in the storage unit 12. The storage unit 12 is preferably realized by a non-volatile recording medium, but may be realized by a volatile recording medium. The recording medium may be, for example, a semiconductor memory, a magnetic disk, an optical disk, or the like.
[0020] The identification unit 13 identifies a group code in the acquired photographed image. The group code is a code composed of a predetermined number of two-dimensional codes. The predetermined number is not particularly limited as long as it is two or more, but may be, for example, two, three, four, or five or more. In this embodiment, the case where the number of two-dimensional codes included in the group code is two, three, or four will be mainly described.
[0021] The two-dimensional code included in the group code is a rectangular code. The rectangular code may be, for example, a square code, or a code having a rectangular shape other than a square. In this embodiment, the former case will be mainly described. The multiple two-dimensional codes included in the group code may be arranged, for example, with their sides facing each other closely. Note that, in order to make it possible to distinguish each two-dimensional code, it is usually preferable that there is a gap between adjacent two-dimensional codes, but this is not necessary.
[0022] The two-dimensional code is not particularly limited, and may be, for example, a color code such as a Chameleon Code (registered trademark), a QR Code (registered trademark), an AR marker, or other codes. The AR marker may be, for example, an ArUco marker. It is preferable that the two-dimensional code is one that can simultaneously read a plurality of codes. In this embodiment, the case where the two-dimensional code is an AR marker will be mainly described.
[0023] The group code is assumed to be capable of uniquely identifying each group code even if two or more group codes are adjacent to each other. For this purpose, for example, an attribute of the two-dimensional code may be used. The attribute of the two-dimensional code includes at least the orientation of the two-dimensional code, and may include the type of the two-dimensional code as necessary. For example, the group code may be capable of uniquely identifying each group code even if two or more group codes are adjacent to each other, only by the relative orientation of the two-dimensional code constituting the group code, or by the relative orientation and type of the two-dimensional code constituting the group code. That is, for example, the relative orientation of the two-dimensional codes included in the group code may be predetermined, and the relative orientation and type of the two-dimensional codes included in the group code may be predetermined. The orientation and type of the two-dimensional code will be described later.
[0024] In addition, it is preferable that the group code can specify the order of a predetermined number of two-dimensional codes included in the group code. This is because when information corresponding to the group code is obtained using information read from a predetermined number of two-dimensional codes included in the group code, the order of the two-dimensional codes included in the group code needs to be uniquely specified. For example, in a group code consisting of K two-dimensional codes, if the first two-dimensional code to the Kth two-dimensional code can be uniquely specified, the information read from the first two-dimensional code to the Kth two-dimensional code may be sequentially configured from the upper side to the lower side of the information corresponding to the group code. Note that K is an arbitrary integer of 2 or more. The order of the predetermined number of two-dimensional codes included in the group code may be specified, for example, using the attribute of the two-dimensional code, or may be specified using the information of the two-dimensional code, i.e., the information read from the two-dimensional code. In the former case, in order to specify the order of the predetermined number of two-dimensional codes included in the group code, it is preferable that the group code is not two-fold symmetric with respect to the attribute of the two-dimensional code included in the group code. The attribute of the two-dimensional code includes at least the orientation of the two-dimensional code, and may include the type of the two-dimensional code as necessary. In addition, when the order of a predetermined number of two-dimensional codes included in a group code can be specified using information of the two-dimensional code, for example, the information of each two-dimensional code constituting the group code may include information indicating the order. Note that the order of a predetermined number of two-dimensional codes included in a group code may be predetermined, for example, by the attribute of the two-dimensional code or the information of the two-dimensional code.
[0025] The two-dimensional code included in the group code is a code having a direction. For example, a code having a direction may mean that the direction can be uniquely identified from the two-dimensional code. The direction may be, for example, along a side of a rectangular two-dimensional code. A specific direction along a side can be set for a rectangular two-dimensional code that is not two-fold symmetric. Therefore, the two-dimensional code having a direction may be a rectangular two-dimensional code that is not two-fold symmetric. Note that the direction of the two-dimensional code may be set according to a predetermined rule, for example, or may be set manually for each two-dimensional code.
[0026] The group code may include a plurality of types of two-dimensional codes. The types may be, for example, types related to the number of cells of the two-dimensional code, types related to the color of the two-dimensional code, types related to the size of the two-dimensional code, or other types of two-dimensional codes. In this embodiment, a case where the type of the two-dimensional code is the type of the number of cells of the two-dimensional code will be mainly described. For example, as a square-shaped AR marker, an AR marker with 4 cells on one side, an AR marker with 5 cells, an AR marker with 6 cells, and the like are known. Therefore, in this case, the number of cells on one side may be the type of the two-dimensional code.
[0027] The identification unit 13 identifies the group code by using at least the relative orientation of the two-dimensional code constituting the group code. The identification unit 13 may also identify the group code by using, for example, the orientation and type of the two-dimensional code constituting the group code. Even if two or more group codes are adjacent, if each group code can be uniquely identified by using only the orientation of the two-dimensional code, the identification unit 13 may identify the group code by using only the orientation of the two-dimensional code. On the other hand, when two or more group codes are adjacent, if each group code cannot be uniquely identified without using, for example, the orientation and type of the two-dimensional code, the identification unit 13 may identify the group code by using the orientation and type of the two-dimensional code. Identifying the group code may, for example, be identifying a predetermined number of two-dimensional codes constituting the group code to be identified. For example, by identifying the group code in a captured image of multiple two-dimensional codes, the multiple two-dimensional codes can be divided into group codes. Identifying the two-dimensional code may, for example, be acquiring the position of the two-dimensional code in the captured image, or acquiring an image of the two-dimensional code.
[0028] The reading unit 14 reads information from the multiple two-dimensional codes constituting the group code identified by the identification unit 13. This reading of information may be, for example, a decoding process of the two-dimensional code. The method of reading information from the two-dimensional code is already known in the field of code readers for two-dimensional codes, and detailed description thereof will be omitted.
[0029] The information acquisition unit 15 acquires information corresponding to the specified group code from a plurality of two-dimensional codes constituting the specified group code using information read by the reading unit 14. As described above, in the group code, for example, the order of the two-dimensional codes constituting the group code is uniquely determined by the attributes of the two-dimensional codes and the information included in the information read from the two-dimensional codes. Therefore, the information acquisition unit 15 may acquire information corresponding to the group code using information of each two-dimensional code constituting the group code acquired by the reading unit 14 and the order of the two-dimensional codes in the group code. For example, when the group code includes four two-dimensional codes and the first to fourth pieces of information are read from the first to fourth two-dimensional codes, respectively, the information acquisition unit 15 may acquire information in which the first to fourth pieces of information are arranged from the upper side to the lower side as information corresponding to the group code.
[0030] The information acquisition unit 15 may acquire information corresponding to a specified group code by using all the information read from the multiple two-dimensional codes constituting the group code, or may acquire information corresponding to the group code by using a part of the read information. In the latter case, information corresponding to the group code may be acquired by using, for example, information indicating the order of the two-dimensional codes or information other than a check digit, which will be described later. As long as information corresponding to the group code is uniquely acquired based on information read from each of the K two-dimensional codes included in the group code and the order of each piece of information, the method of acquiring information corresponding to the group code is not important.
[0031] When the information read from the two-dimensional codes constituting the group code matches with the check digit corresponding to the group code, the information acquisition unit 15 acquires the information corresponding to the group code. In this case, the information read from at least one of the two-dimensional codes constituting the group code may include the check digit corresponding to the group code. For example, the lowest information of the information read from the Kth two-dimensional code among the K two-dimensional codes constituting the group code may be the check digit. In addition, in determining the consistency, the information acquisition unit 15 may perform a predetermined calculation using the information read from the two-dimensional codes constituting the group code, and when the calculation result matches with the check digit, it may determine that the information read from the two-dimensional codes constituting the group code matches with the check digit corresponding to the group code. Note that the consistency between the calculation result and the check digit may be, for example, that they match. In addition, the information used in the calculation may be, for example, information read from the two-dimensional code excluding the check digit.
[0032] The method of determining consistency using a check digit is not particularly limited, and may be performed, for example, as follows. Here, it is assumed that the group code is composed of three two-dimensional codes, and the reading unit 14 reads three-digit decimal numbers from the first to third two-dimensional codes (hereinafter, referred to as "first information", "second information", and "third information", respectively). It is assumed that the last digit of the third information is the check digit. The information acquisition unit 15 acquires a nine-digit number using the read information as follows: 1st information x 1000000 + 2nd information x 1000 + 3rd information
[0033] For example, if the first information is "150", the second information is "125", and the third information is "127", the nine-digit number will be "150125127". Of the nine-digit number, the first digit "7" is the check digit. Next, a predetermined calculation is performed on the eight-digit number "15012512" other than the check digit. The calculation is not particularly limited, but may be, for example, the following calculation.
[0034] Numbers are assigned in order from the first digit of the eight-digit number, such as 1, 2, 3, ..., 8. Then, the assigned numbers are multiplied by 3 if the assigned numbers are odd numbers, and multiplied by 1 if the assigned numbers are even numbers, and the sum of the multiplication results is calculated. Next, the last digit of the sum is subtracted from 10 to obtain the result. If this result matches the check digit, the information read from the multiple two-dimensional codes constituting the group code and the check digit corresponding to the group code match, and if not, they do not match. In the above example, the calculation result is "7", which matches the check digit, so the information acquisition unit 15 determines that the read information matches the check digit, and the eight-digit number "15012512" excluding the check digit may be set as the information corresponding to the group code.
[0035] The above description of the check digit consistency determination is an example, and it goes without saying that the check digit consistency determination may be performed by a method other than the above. In addition, when the check digit is used to determine the consistency, the two-dimensional codes constituting the group code may be set so that the information read from the two-dimensional codes constituting the group code and the check digit are consistent. In addition, when the information read from the two-dimensional codes constituting the group code, excluding the check digit, corresponds to the group code, the information corresponding to the group code has already been acquired when the check digit consistency determination is performed. In this case, acquiring the information corresponding to the group code when the information read from the two-dimensional codes constituting the group code and the check digit corresponding to the group code match may be such that the information acquisition unit 15 uses the information corresponding to the group code in a later process when the information read from the two-dimensional codes constituting the group code and the check digit corresponding to the group code match, and does not use the information corresponding to the group code in a later process when the information read from the two-dimensional codes constituting the group code and the check digit corresponding to the group code match, and does not use the information corresponding to the group code in a later process when the information does not match. The subsequent processing may be, for example, output by the output unit 16.
[0036] The output unit 16 performs output related to the information acquired by the information acquisition unit 15. The output related to the acquired information may be, for example, the output of the acquired information itself, or may be the output of information corresponding to the acquired information. Here, this output may be, for example, a display on a display device (for example, a liquid crystal display or an organic EL display), a transmission to a predetermined device via a communication line, a printing by a printer, an audio output by a speaker, storage in a recording medium, or a delivery to another component. When the output unit 16 performs display output, the output unit 16 may also display, for example, a captured image stored in the storage unit 12. The output unit 16 may or may not include a device that performs output (for example, a display device or a communication device). The output unit 16 may be realized by hardware, or may be realized by software such as a driver that drives those devices.
[0037] Here, an example of a group code will be described for cases where the number of two-dimensional codes included in the group code is (1) two, (2) three, and (3) four. In the following description, it is assumed that the group code is composed of a predetermined number of two-dimensional codes each having a square shape. In addition, in Figs. 3 to 6, for convenience of explanation, the direction of each two-dimensional code is indicated by an arrow, but it goes without saying that the arrow is not actually displayed on the two-dimensional code. In addition, as shown in Fig. 3(a), the side 21 on the end side of the arrow is called the first side, the side 22 on the left side in the direction of the arrow is called the second side, the side on the start side of the arrow is called the third side, and the side 24 on the right side in the direction of the arrow is called the fourth side. In addition, the first to fourth sides are relative to the arrow.
[0038] (1) A group code consisting of two 2D codes The group code 4 consisting of two two-dimensional codes may be, for example, as shown in FIG. 3(a), two two-dimensional codes 3a and 3b facing each other, one two-dimensional code 3a being a two-dimensional code with six cells on one side, and the other two-dimensional code 3b being a two-dimensional code with five cells on one side. That is, the two-dimensional codes 3a and 3b may be arranged so that the first side of the two-dimensional code 3a and the first side of the two-dimensional code 3b face each other. In this case, even if the group codes 4 are adjacent to each other in any direction, each group code 4 can be uniquely identified. Note that the group code 4 in FIG. 3(a) is not two-fold symmetric with respect to the direction and type, which are attributes of the two-dimensional codes 3a and 3b (that is, even if the group code 4 is rotated 180 degrees, the attributes of the two-dimensional codes 3a and 3b do not match), so the information acquisition unit 15 can identify the order of the two-dimensional codes 3a and 3b included in the group code 4. The information acquisition unit 15 may acquire information corresponding to the group code 4 by, for example, taking the information of the two-dimensional code 3a having six cells on a side as the upper information and the information of the two-dimensional code 3b having five cells on a side as the lower information.
[0039] Also, the group code 4 consisting of two two-dimensional codes may be, for example, as shown in FIG. 3(b), in which the orientation of the two two-dimensional codes 3a and 3b is opposite to that of FIG. 3(a), and one two-dimensional code 3a is a two-dimensional code with six cells on one side, and the other two-dimensional code 3b is a two-dimensional code with five cells on one side. That is, the two-dimensional codes 3a and 3b may be arranged so that the third side of the two-dimensional code 3a and the third side of the two-dimensional code 3b face each other. In this case, even if the group codes 4 are adjacent to each other in any orientation, each group code 4 can be uniquely identified. Also, the information acquisition unit 15 may acquire information corresponding to the group code 4, for example, as in FIG. 3(a), by taking the information of the two-dimensional code 3a with six cells on one side as upper-level information and the information of the two-dimensional code 3b with five cells on one side as lower-level information.
[0040] Also, as shown in FIG. 3(c), the group code 4 consisting of two two-dimensional codes may be, for example, two two-dimensional codes 3a and 3b facing each other, with the most significant digit of the information of one two-dimensional code 3a being "0" and the most significant digit of the information of the other two-dimensional code 3b being "1". In this case, even if the group codes 4 are adjacent to each other in any orientation, each group code 4 can be uniquely identified. Also, the information acquisition unit 15 may acquire information corresponding to the group code 4 by, for example, regarding the information other than the most significant digit of the information of the two-dimensional code 3a having the most significant digit "0" as the higher-order information, and regarding the information other than the most significant digit of the information of the two-dimensional code 3b having the most significant digit "1" as the lower-order information.
[0041] Next, when group code 4 consisting of two two-dimensional codes is as shown in Fig. 3(a), a process of specifically identifying group code 4 and acquiring information corresponding to group code 4 will be described. It is assumed that the captured image acquired by image acquisition unit 11 includes two-dimensional codes 3c and 3d shown in Fig. 3(d).
[0042] In this case, the identification unit 13 first identifies the 6×6 cell two-dimensional code 3c in the captured image of FIG. 3(d), and judges whether or not a 5×5 cell two-dimensional code exists at a position a predetermined distance from the center of the identified two-dimensional code 3c toward the first side of the two-dimensional code 3c. The predetermined distance may be, for example, the length of one side of the two-dimensional code. Furthermore, the presence of a two-dimensional code at a certain position may mean that the two-dimensional code exists in an area including the position. In FIG. 3(d), the 5×5 cell two-dimensional code 3d exists at a position a distance corresponding to one side of the two-dimensional code 3c toward the first side of the two-dimensional code 3c from the center of the two-dimensional code 3c, so the identification unit 13 identifies the orientation of the two-dimensional code 3d, and judges whether or not the orientation is rotated by 180 degrees with respect to the orientation of the two-dimensional code 3c. 3(d), the orientation of two-dimensional code 3d is rotated 180 degrees with respect to the orientation of two-dimensional code 3c, so the identification unit 13 identifies group code 4 including two-dimensional codes 3c, 3d. Then, the identification unit 13 may pass to the reading unit 14 the position of two-dimensional code 3c included in the identified group code 4 in the captured image and the position of two-dimensional code 3d in the captured image.
[0043] The reading unit 14 then reads the information of each of the two-dimensional codes 3c and 3d from the captured image and passes it to the information acquisition unit 15. Upon receiving this information, the information acquisition unit 15 separates this information into a check digit and information other than the check digit, and performs a predetermined calculation on the information other than the check digit. The information acquisition unit 15 then determines whether the calculation result matches the check digit. In this case, it is assumed that the calculation result matches the check digit. The information acquisition unit 15 then acquires the information other than the check digit as information corresponding to the group code 4 composed of the two two-dimensional codes 3c and 3d.
[0044] In addition, if the 6×6 cell two-dimensional code cannot be identified in the captured image, if the 5×5 cell two-dimensional code does not exist at a position a predetermined distance from the center of the 6×6 cell two-dimensional code 3c toward the first side, if the orientation of the two-dimensional codes 3c and 3d is not rotated by 180 degrees, or if the calculation result does not match the check digit, the information acquisition unit 15 does not acquire information corresponding to the group code. In addition, the determination of the relative orientation, for example, whether or not the orientation of one of two-dimensional codes is rotated 180 degrees with respect to the orientation of the other two-dimensional code, may be performed taking into consideration a predetermined error. In other words, if the relative orientation of the multiple two-dimensional codes is predetermined within the range of error, it may be determined that the relative orientation of the multiple two-dimensional codes is predetermined. The error is not particularly limited, but may be, for example, about 20 degrees or about 10 degrees.
[0045] When the group code 4 consisting of two two-dimensional codes is as shown in Fig. 3(a) or Fig. 3(c), for example, as shown in Fig. 4, the group code 4 consisting of two two-dimensional codes 3 is given to the side of the transport object 5, and even if the two-dimensional codes 3 constituting each group code 4 are adjacent to each other, each group code 4 can be uniquely identified. Therefore, the information acquisition device 1 can appropriately acquire information corresponding to each group code from the captured image of the multiple group codes 4 given to the transport object 5 shown in Fig. 4. Note that the group code 4 consisting of two two-dimensional codes may be rectangular overall, for example, as shown in Fig. 3.
[0046] (2) A group code consisting of three 2D codes For example, as shown in Fig. 5(a), the group code 4 consisting of three two-dimensional codes may be arranged in a straight line, with the two-dimensional code 3a at one end facing the two-dimensional code 3b in the middle, and the two-dimensional code 3c at the other end facing the two-dimensional code 3b in the middle. That is, the two-dimensional codes 3a to 3c may be arranged so that the first side of the two-dimensional code 3a faces the first side of the two-dimensional code 3b, and the third side of the two-dimensional code 3b faces the first side of the two-dimensional code 3c. In this case, even if the group codes 4 are adjacent to each other in any direction, each group code 4 can be uniquely identified. The information acquiring unit 15 may acquire information corresponding to the group code 4 by treating the information of the two-dimensional code 3a facing the central two-dimensional code 3b as higher-order information, the information of the central two-dimensional code 3b as middle-order information, and the information of the other two-dimensional code 3c as lower-order information. In this case, the number of cells on one side of the two-dimensional codes 3a to 3c may be, for example, the same or different.
[0047] Also, the group code 4 may be composed of three two-dimensional codes 3a to 3c, as shown in FIG. 5(b) or FIG. 5(c). In these cases, even if the group codes 4 are adjacent to each other in any direction, each group code 4 can be uniquely identified. In FIG. 5(b), the information acquisition unit 15 may acquire information corresponding to the group code 4 by, for example, taking the information of the two-dimensional code 3a at one end as higher-order information, the information of the two-dimensional code 3b at the center as middle-order information, and the information of the two-dimensional code 3c at the other end as lower-order information. In FIG. 5(c), the information acquisition unit 15 may acquire information corresponding to the group code 4 by, for example, taking the information of the two-dimensional code 3a with six cells on one side as higher-order information, the information of the two-dimensional code 3b with five cells on one side as middle-order information, and the information of the two-dimensional code 3c with four cells on one side as lower-order information.
[0048] Also, the group code 4 consisting of three two-dimensional codes may be, for example, as shown in Fig. 5(d), three two-dimensional codes 3a, 3b, and 3c arranged in an L-shape, with the two-dimensional code 3a at one end facing the two-dimensional code 3b at the apex of the L-shape, and the remaining two two-dimensional codes 3b and 3c facing each other. That is, the two-dimensional codes 3a to 3c may be arranged so that the first side of the two-dimensional code 3a faces the second side of the two-dimensional code 3b, and the first side of the two-dimensional code 3b faces the first side of the two-dimensional code 3c. In this case, even if the group codes 4 are adjacent to each other in any direction, each group code 4 can be uniquely identified. The information acquiring unit 15 may acquire information corresponding to the group code 4 by treating the information of the two-dimensional code 3a on the side not facing the apex two-dimensional code 3b as higher-level information, the information of the apex two-dimensional code 3b as middle-level information, and the information of the other two-dimensional code 3c as lower-level information. In this case, the number of cells on one side of the two-dimensional codes 3a to 3c may be, for example, the same or different.
[0049] 5(e), the group code 4 consisting of three two-dimensional codes may be, for example, three two-dimensional codes 3a, 3b, and 3c arranged in an L-shape, with the two-dimensional code 3a at one end facing away from the two-dimensional code 3b at the apex, and the remaining two two-dimensional codes 3b and 3c facing each other, with the two-dimensional code 3a not facing the two-dimensional code 3b at the apex being a two-dimensional code with five cells on one side, the two-dimensional code 3b at the apex being a two-dimensional code with four cells on one side, and the two-dimensional code 3c facing the two-dimensional code 3b at the apex being a two-dimensional code with six cells on one side. Even in this case, no matter what orientation the group codes 4 are adjacent to each other, each group code 4 can be uniquely identified. The information acquiring unit 15 may acquire information corresponding to the group code 4 by, for example, treating the information of the two-dimensional code 3a having five cells on a side as higher-level information, the information of the two-dimensional code 3b having four cells on a side as middle-level information, and the information of the two-dimensional code 3c having six cells on a side as lower-level information. The group code 4 made up of three two-dimensional codes may be rectangular or L-shaped as a whole, as shown in Fig. 5, for example.
[0050] (3) A group code consisting of four two-dimensional codes For example, as shown in Fig. 6(a), the group code 4 consisting of four two-dimensional codes may be arranged in a 2 x 2 matrix of four two-dimensional codes 3a, 3b, 3c, and 3d, with the two two-dimensional codes 3a and 3b on one side facing each other, and the remaining two two-dimensional codes 3c and 3d facing the two-dimensional codes 3a and 3b. That is, the two-dimensional codes 3a to 3d may be arranged such that the first side of the two-dimensional code 3a faces the first side of the two-dimensional code 3b, the fourth side of the two-dimensional code 3a faces the first side of the two-dimensional code 3c, the second side of the two-dimensional code 3b faces the first side of the two-dimensional code 3d, and the fourth side of the two-dimensional code 3c faces the second side of the two-dimensional code 3d. In this case, even if the group codes 4 are adjacent to each other in any direction, each group code 4 can be uniquely identified. 6(a), the information acquiring unit 15 may acquire information corresponding to the group code 4 by regarding the information of the two-dimensional code 3a on the upper left side as the higher-order information, the information of the two-dimensional code 3b on the upper right side as the second highest-order information, the information of the two-dimensional code 3c on the lower left side as the third highest-order information, and the information of the two-dimensional code 3d on the lower right side as the lower lowest-order information. In this case, the number of cells on one side of the two-dimensional codes 3a to 3d may be, for example, the same or different.
[0051] 6(b), the group code 4 consisting of four two-dimensional codes may be, for example, as shown in Fig. 6(b), four two-dimensional codes 3a to 3d arranged in a 2 x 2 matrix, with the two-dimensional code 3a with six cells on one side facing the adjacent two-dimensional code 3b with five cells on one side, which in turn faces the adjacent two-dimensional code 3c with five cells on one side, which in turn faces the adjacent two-dimensional code 3d with five cells on one side, which in turn faces the two-dimensional code 3a with six cells on one side. In this case as well, no matter what orientation the group codes 4 are adjacent to each other, each group code 4 can be uniquely identified. For example, in a group code 4 arranged in the orientation shown in Figure 6 (b), the information acquisition unit 15 may acquire information corresponding to the group code 4 by treating the information in the two-dimensional code 3a on the upper left side as the higher-order information, the information in the two-dimensional code 3b on the upper right side as the second highest-order information, the information in the two-dimensional code 3c on the lower right side as the third highest-order information, and the information in the two-dimensional code 3d on the lower left side as the lower order information.
[0052] Also, the group code 4 may be composed of four two-dimensional codes 3a to 3d, as shown in FIG. 6(c). In this case, even if the group codes 4 are adjacent to each other in any orientation, each group code 4 can be uniquely identified. In FIG. 6(c), the information acquisition unit 15 may acquire information corresponding to the group code 4 by setting the information of the two-dimensional code 3a on the upper left side as the higher-order information, the information of the two-dimensional code 3b on the upper right side as the second highest-order information, the information of the two-dimensional code 3c on the lower left side as the third highest-order information, and the information of the two-dimensional code 3d on the lower right side as the lower-order information, for example, in the group code 4 arranged in the orientation shown in FIG. 6(c).
[0053] The group code 4 consisting of four two-dimensional codes may be, for example, a square shape as a whole as shown in Fig. 6, or may be another shape. For example, the group code 4 consisting of four two-dimensional codes may be, for example, a rectangular shape, an L-shape, a convex shape, a zigzag shape, or the like as a whole. When the group code 4 is rectangular as a whole, for example, the four two-dimensional codes may be arranged in a straight line.
[0054] Although an example of a group code having two, three, and four two-dimensional codes has been described with reference to Figs. 3 to 6, it goes without saying that the group code may be other than these. In addition, it is preferable that the group code consisting of a plurality of two-dimensional codes to be photographed is usually one type of group code. For example, if the group code 4 shown in Fig. 3(a) and the group code 4 shown in Fig. 3(b) are mixed, each group code cannot be uniquely identified. Therefore, it is preferable that the group code from which information is acquired by the information acquisition device 1 has a predetermined number of two-dimensional codes that constitute the group code, and can be uniquely identified by attributes such as the orientation and type of the two-dimensional codes that constitute the group code. Note that, as a result, as long as each group code can be uniquely identified, multiple types of group codes may be targets for information acquisition by the information acquisition device 1. For example, even if the group code 4 in Fig. 3(a) and the group code 4 in Fig. 6(b) are mixed and adjacent to each other, each can be uniquely identified. Therefore, they may be used in a mixed state.
[0055] Here, a method for generating the group code 4 will be briefly described. The type of the group code 4 is assumed to be predetermined. For example, the group code 4 may be determined as shown in FIG. 3(a). First, when the information corresponding to the group code is determined, a check digit is calculated from the information, and the information including the information corresponding to the group code and the check digit is divided into a predetermined number of pieces of information in order from the upper side. This number is the number of two-dimensional codes 3 included in the group code 4. Then, each piece of information after division is converted into a two-dimensional code according to the attribute of the two-dimensional code corresponding to the information. This conversion is already known as an encoding process for two-dimensional codes, and a detailed description will be omitted. Then, the two-dimensional codes after the conversion are arranged in a predetermined manner to generate the group code. Specifically, in the case of the group code 4 shown in FIG. 3(a), first, the information including the information corresponding to the group code and the check digit is divided into two pieces of information, the upper side and the lower side. Next, the information on the upper side is converted into a two-dimensional code with six cells on one side, and the information on the lower side is converted into a two-dimensional code with five cells on one side. Then, a two-dimensional code with six cells on a side and a two-dimensional code with five cells on a side are arranged so that they face each other, that is, as shown in Figure 3(a), to form group code 4.
[0056] The generated group code 4 may be printed on a sheet-like medium such as paper or film, or may be printed directly on an object to which the group code is to be assigned, such as a cardboard box or paper box. In the former case, for example, a sheet-like medium on which the group code 4 is printed may be affixed to the object to which the group code is to be assigned, such as an object to be transported.
[0057] Next, the operation of the information acquisition device 1 will be described with reference to the flowchart of FIG. (Step S101) The image acquisition unit 11 judges whether or not to acquire a captured image. If the captured image is to be acquired, the process proceeds to step S102. If not, the process of step S101 is repeated until it is determined that the captured image is to be acquired. Note that the image acquisition unit 11 may, for example, periodically determine that the captured image is to be acquired, or may determine that the captured image is to be acquired in response to an instruction to acquire the captured image (for example, a user pressing a capture button, etc.).
[0058] (Step S102) The image acquisition unit 11 acquires a photographed image. The acquired photographed image may be stored in the storage unit 12.
[0059] (Step S103) The identification unit 13 identifies a group code in the captured image. Note that, when a plurality of group codes are included in the captured image, the identification unit 13 may identify each group code.
[0060] (Step S104) The reader 14 reads the information of each of the two-dimensional codes included in the group code identified in step S103.
[0061] (Step S105) The information acquiring unit 15 acquires the check digit from the information of the two-dimensional code read in step S104, and performs a predetermined calculation on the information other than the check digit.
[0062] (Step S106) The information acquisition unit 15 compares the calculation result with the check digit and determines whether they match. If they match, the process proceeds to step S107, and if they do not, the process returns to step S101. Note that the calculation result and the check digit being consistent may mean, for example, that they match.
[0063] (Step S107) The information acquiring unit 15 acquires information corresponding to the group code by using the information of the two-dimensional code read in step S104. This information may be acquired by using, for example, the information of the two-dimensional code excluding the check digit.
[0064] (Step S108) The output unit 16 outputs the information acquired in step S107.
[0065] In the flowchart of Fig. 2, if multiple group codes are identified in step S103, the process of steps S104 to S108 may be performed for each group code. Also, the order of the process in the flowchart of Fig. 2 is an example, and the order of each step may be changed as long as the same result can be obtained. Also, in the flowchart of Fig. 2, the process ends when the power is turned off or an interrupt is issued to end the process.
[0066] Next, the operation of the information acquisition device 1 according to this embodiment will be described using a specific example. In this specific example, a case will be described in which an image of a transport target 5 with a group code 4 attached to its side, as shown in FIG. 4, is captured by the information acquisition device 1, which is a smartphone. Also, it is assumed that the information acquisition device 1 holds a plurality of pieces of correspondence information that associate information corresponding to the group code 4 with the names of products contained in the box of the transport target 5 to which the group code 4 is attached. Also, it is assumed that the group code 4 in this specific example is the one shown in FIG. 3(a).
[0067] First, when a user inputs an instruction to capture an image with the information acquisition device 1, which is a smartphone, pointed at the transport target 5 shown in Fig. 4, the instruction is accepted by a reception unit (not shown) and passed to the image acquisition unit 11. Then, the image acquisition unit 11 determines to acquire a captured image, acquires the captured image of the transport target 5 to which the group code 4 consisting of two two-dimensional codes 3 shown in Fig. 4 has been assigned, and stores it in the storage unit 12 (steps S101, S102).
[0068] When a new captured image is stored in the storage unit 12, the identification unit 13 identifies each group code 4 by the method described with reference to Fig. 3(d) and passes information indicating the area of each group code 4 in the captured image to the reading unit 14 (step S103). Upon receiving the information indicating the area of each group code 4, the reading unit 14 reads information on two two-dimensional codes 3 constituting the group code 4 for each group code 4 from the captured image stored in the storage unit 12, and passes the information to the information acquisition unit 15 in the order of information on the two-dimensional code with six cells on a side and information on the two-dimensional code with five cells on a side, and also passes information indicating the area of the group code 4 to the information acquisition unit 15 (step S104).
[0069] When the information acquiring unit 15 receives the information of the two two-dimensional codes for each group code 4, it extracts the check digit from the information and performs a predetermined calculation using the information excluding the check digit (step S105). Then, the information acquiring unit 15 judges whether the check digit matches the result of the predetermined calculation (step S106). In this specific example, it is assumed that the two match for all group codes 4. Then, the information acquiring unit 15 acquires information corresponding to the group code 4 using the information received from the reading unit 14 excluding the check digit for each group code 4, and links the information indicating the area of the group code 4 with the information corresponding to the group code 4 and passes them to the output unit 16 (step S107).
[0070] When the output unit 16 receives the information corresponding to the group code 4, it reads out the captured image from the storage unit 12, and uses the above-mentioned multiple pieces of correspondence information to obtain the name of the product associated with the information corresponding to the group code 4, and displays an image on the touch panel in which the name is displayed superimposed on the position of the captured image indicated by the information indicating the area of the group code 4 in the captured image (step S108). As a result, the display shown in Fig. 7 is performed. This display allows the user to know the name of the product contained in each box of the transport object 5.
[0071] As described above, the group code according to the present embodiment is composed of a predetermined number of two-dimensional codes, and thus can increase the amount of information compared to conventional two-dimensional codes. In addition, since the group code can be specified by the orientation and type of the two-dimensional code, even if group codes are adjacent to each other in a captured image, the information acquisition device 1 can specify each group code and acquire information corresponding to each group code. In addition, since the order of the predetermined number of two-dimensional codes included in the group code can be specified, information corresponding to the group code can be uniquely acquired based on information read from the multiple two-dimensional codes included in the group code. In addition, if a check digit is included in the information of at least one of the two-dimensional codes that constitute the group code, the check digit can be used to determine whether the specified group code is appropriate. Therefore, even if the orientation and type of multiple two-dimensional codes arranged regardless of the group code happen to constitute a group code, the check digit can be used to determine that the multiple two-dimensional codes are not a legitimate group code.
[0072] In the present embodiment, the case where the check digit is included in the information of at least one of the two-dimensional codes constituting the group code has been mainly described, but this is not necessarily the case. The check digit may not be included in the information of at least one of the two-dimensional codes constituting the group code. In this case, processing related to the check digit may not be performed.
[0073] In the above embodiment, the information acquisition device 1 is described as a standalone device, but the information acquisition device 1 may be a standalone device or a server device in a server-client system. In the latter case, the output unit and the acquisition unit may output data or acquire information via a communication line.
[0074] In addition, in the above embodiments, each process or function may be realized by centralized processing in a single device or a single system, or may be realized by distributed processing in multiple devices or multiple systems.
[0075] In addition, in the above embodiments, the transfer of information between each component may be performed, for example, by one component outputting information and the other component receiving information if the two components transferring the information are physically different, or, if the two components transferring the information are physically the same, by shifting from a processing phase corresponding to one component to a processing phase corresponding to the other component.
[0076] In the above embodiment, information related to the processing performed by each component, such as information accepted, acquired, selected, generated, transmitted, or received by each component, and information such as thresholds, formulas, and addresses used by each component in processing, may be temporarily or long-term stored in a recording medium (not shown) even if not specified in the above description. Furthermore, each component or a storage unit (not shown) may store information in the recording medium (not shown). Furthermore, each component or a reading unit (not shown) may read information from the recording medium (not shown).
[0077] In the above embodiment, if the information used by each component, such as the thresholds, addresses, and various setting values used by each component in processing, may be changed by the user, the user may be able to change the information as appropriate, even if not specified in the above description. If the information is changeable by the user, the change may be realized, for example, by a reception unit (not shown) that receives a change instruction from the user, and a change unit (not shown) that changes the information in response to the change instruction. The reception unit (not shown) may receive the change instruction from an input device, may receive information transmitted via a communication line, or may receive information read from a predetermined recording medium.
[0078] In addition, in the above embodiment, when two or more components included in the information acquisition device 1 have a communication device, an input device, etc., the two or more components may physically have a single device, or may have separate devices.
[0079] In the above embodiment, each component may be configured by dedicated hardware, or a component that can be realized by software may be realized by executing a program. For example, each component may be realized by a program execution unit such as a CPU reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. During execution, the program execution unit may execute the program while accessing the storage unit or the recording medium. The software that realizes the information acquisition device 1 in the above embodiment is a program as follows. That is, this program is a program that causes a computer to function as an image acquisition unit that acquires a captured image of a plurality of rectangular two-dimensional codes having a direction, an identification unit that identifies a group code consisting of a predetermined number of two-dimensional codes in the acquired captured image by using at least the relative directions of the two-dimensional codes that constitute the group code, a reading unit that reads information from the plurality of two-dimensional codes that constitute the identified group code, and an information acquisition unit that acquires information corresponding to the group code by using the information read from the plurality of two-dimensional codes that constitute the group code.
[0080] In addition, the functions realized by the above program do not include functions that can only be realized by hardware, such as a modem or an interface card in an acquisition unit that acquires information or an output unit that outputs information.
[0081] This program may be executed by being downloaded from a server or the like, or by reading out a program recorded on a predetermined recording medium (for example, an optical disk such as a CD-ROM, a magnetic disk, a semiconductor memory, etc.). This program may be used as a program constituting a program product. This program may be executed by a single computer or multiple computers. That is, centralized processing or distributed processing may be performed.
[0082] 8 is a diagram showing an example of a computer system 900 that executes the above program to realize the information acquisition device 1 according to the above embodiment. The above embodiment can be realized by computer hardware and a computer program executed thereon.
[0083] 8, the computer system 900 includes an MPU (Micro Processing Unit) 911, a ROM 912 such as a flash memory in which programs such as a boot-up program, application programs, system programs, and data are stored, a RAM 913 connected to the MPU 911 and temporarily storing instructions of application programs and providing a temporary storage space, a touch panel 914, a wireless communication module 915, and a bus 916 connecting the MPU 911, the ROM 912, and the like to each other. Note that a wired communication module may be provided instead of the wireless communication module 915. Also, instead of the touch panel 914, a display and an input device such as a mouse or a keyboard may be provided.
[0084] A program that causes the computer system 900 to execute the functions of the information acquisition device 1 according to the above embodiment may be stored in the ROM 912 via the wireless communication module 915. The program is loaded into the RAM 913 when executed. The program may also be loaded directly from the network.
[0085] The program does not necessarily include an operating system (OS) or a third-party program that causes the computer system 900 to execute the functions of the information acquisition device 1 according to the above embodiment. The program may include only an instruction portion that calls appropriate functions or modules in a controlled manner to obtain a desired result. How the computer system 900 operates is well known, and a detailed description will be omitted.
[0086] Furthermore, the present invention is not limited to the above-described embodiment, and various modifications are possible, and it goes without saying that these modifications are also included within the scope of the present invention. [Explanation of symbols]
[0087] 1 Information acquisition device 11 Image acquisition section 12 Storage section 13 Specific section 14 Reading unit 15 Information acquisition department 16 Output section
Claims
1. an image acquisition unit that acquires captured images of a plurality of rectangular two-dimensional codes having a direction; an identification unit that identifies a group code composed of a predetermined number of two-dimensional codes in the acquired photographed image by using at least a relative orientation of the two-dimensional codes that compose the group code; a reading unit that reads information from a plurality of two-dimensional codes that constitute the identified group code; An information acquisition device comprising: an information acquisition unit that acquires information corresponding to a group code by using information read from a plurality of two-dimensional codes that constitute the group code.
2. The information acquisition device according to claim 1 , wherein the identification unit identifies the group code using a direction and a type of a two-dimensional code that constitutes the group code.
3. 3. The information acquisition device according to claim 2, wherein the type of the two-dimensional code is related to the number of cells of the two-dimensional code.
4. The information read from at least one of the two-dimensional codes constituting the group code includes a check digit, 4. The information acquisition device according to claim 1, wherein the information acquisition unit acquires information corresponding to the group code when information read from a plurality of two-dimensional codes constituting the group code matches a check digit corresponding to the group code.
5. 4. The information acquisition device according to claim 1, wherein the predetermined number is any one of two to four.
6. A group code consisting of a plurality of rectangular two-dimensional codes having a direction, A group code that can be specified using at least the relative orientation of two-dimensional codes that constitute the group code.
7. The group code according to claim 6, wherein the group code can be specified using a direction and a type of a two-dimensional code constituting the group code.
8. An information acquisition method that is processed using an image acquisition unit, a specification unit, a reading unit, and an information acquisition unit, The image acquisition unit acquires captured images of a plurality of rectangular two-dimensional codes having a direction; a step of the identification unit identifying a group code composed of a predetermined number of two-dimensional codes in the acquired photographed image by using at least a relative orientation of the two-dimensional codes constituting the group code; A step in which the reading unit reads information from a plurality of two-dimensional codes constituting the identified group code; and a step in which the information acquisition unit acquires information corresponding to the group code by using information read from a plurality of two-dimensional codes that constitute the group code.
9. Computer, an image acquisition unit for acquiring captured images of a plurality of rectangular two-dimensional codes having orientations; an identification unit that identifies a group code composed of a predetermined number of two-dimensional codes in the acquired photographed image by using at least the relative orientations of the two-dimensional codes that compose the group code; a reading unit that reads information from a plurality of two-dimensional codes that constitute the identified group code; A program for functioning as an information acquisition unit that acquires information corresponding to a group code using information read from a plurality of two-dimensional codes that constitute the group code.
Citation Information
Patent Citations
Two-dimensional code and method for reading two-dimensional code
JP1998214317A
Two dimensional code display object and two dimensional code display tire
JP2005164655A
Information code indication sheet
JP2007323498A
Method for authenticating security documents, security documents, devices, and security elements
JP2020509508A
Code processing apparatus, code processing method, and program
JP2021101284A