Code creation method and program
By generating codes with varying densities and indicating related codes, the method enhances the convenience of two-dimensional code reading by allowing users to determine if additional codes need to be read from a distance, reducing unnecessary decoding efforts.
Patent Information
- Application Number
- JP2021021174
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-12
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2041-02-12
AI Technical Summary
Existing two-dimensional codes, particularly high-density codes, are difficult to recognize from a distance, requiring users to approach closely for accurate reading, leading to inconvenience as the information cannot be reliably accessed until close proximity.
A method for generating multiple codes with varying cell configurations, including information about the presence or absence of related codes with higher densities, allowing users to determine if additional codes need to be read based on initial low-density scans.
Enables convenient reading of high-density codes by allowing users to identify the need for and access additional codes remotely, reducing unnecessary decoding efforts and improving overall usability.
Smart Images

Figure 0007539845000012 
Figure 0007539845000006 
Figure 0007539845000009
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a code creation method and a program. [Background technology]
[0002] Two-dimensional codes such as QR Code (registered trademark) that encode specific information are becoming widespread. In general, low-density two-dimensional codes have a small amount of recorded information and simple information is recorded, while high-density two-dimensional codes have a large amount of recorded information and more detailed information is recorded. The information recorded in the two-dimensional code is read by capturing an image of the two-dimensional code with a camera or the like and decoding the image. In order to correctly read a high-density two-dimensional code, the imaging conditions are limited to a narrow range.
[0003] For example, when capturing an image of a high-density two-dimensional code located far away from the user with a camera, if the angle of view is widened, the two-dimensional code may not be recognized correctly. Therefore, in order to read a high-density two-dimensional code, it is necessary to get close to the two-dimensional code to some extent and capture the image. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 6558330 Summary of the Invention [Problem to be solved by the invention]
[0005] However, because a user cannot recognize the information in a two-dimensional code until it is actually read, even if the user approaches a high-density two-dimensional code located far away from the user and captures an image of it, the information read may not be the desired information, making it inconvenient.
[0006] The problem to be solved by the embodiments of the present invention is to provide a technique that enables creation of highly convenient code. [Means for solving the problem]
[0007] In one embodiment, a method for creating a code includes obtaining and generating a code. The obtaining includes obtaining type information associated with each of the code rankings based on a plurality of different cell configurations. The generating includes generating a plurality of codes including the obtained type information based on the cell configuration according to the code rankings. Each of the plurality of codes includes information indicating the presence or absence of an associated code of a next ranking. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram illustrating an apparatus according to a first embodiment. [Diagram 2] FIG. 2 is a flowchart illustrating a procedure of a process for generating type information of a two-dimensional code by the device according to the first embodiment. [Diagram 3] FIG. 3 is a flowchart illustrating a procedure of a process for generating a two-dimensional code by the device according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing an example of the configuration of a two-dimensional code generated by the device according to the first embodiment. [Diagram 5] FIG. 5 is an example of an external view of a terminal according to the second embodiment as viewed from the display side. [Figure 6] FIG. 6 is an example of an external view of a terminal according to a second embodiment, seen from the opposite side of the display. [Figure 7] FIG. 7 is a block diagram illustrating a terminal according to the second embodiment. [Figure 8] FIG. 8 is a diagram showing an example of a code read by a terminal according to the second embodiment. [Figure 9] FIG. 9 is a flowchart illustrating a procedure of a code reading process performed by a terminal according to the second embodiment. [Figure 10] FIG. 10 is a diagram showing an example of a screen displayed on a display of a terminal according to the second embodiment. [Figure 11] FIG. 11 is a diagram showing an example of a screen displayed on a display of a terminal according to the second embodiment. [Figure 12] FIG. 12 is a diagram showing an example of a screen displayed on a display of a terminal according to the second embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a screen displayed on a display of a terminal according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] [First embodiment] The first embodiment will be described below with reference to the drawings. For example, the first embodiment relates to the generation of codes, such as two-dimensional codes. FIG. 1 is a block diagram illustrating an apparatus 1 according to a first embodiment. The device 1 is an electronic device having an information processing function. For example, the device 1 is a PC (Personal Computer), but may also be a smartphone or a tablet terminal. The device 1 is an example of an information processing device.
[0010] The device 1 is a computer including a processor 11, a main memory 12, an auxiliary storage device 13, a communication interface 14, an input device 15, and a display 16. The components constituting the device 1 are connected to each other so as to be able to input and output signals. In Fig. 1, the interface is indicated as "I / F".
[0011] The processor 11 corresponds to the central part of the device 1. For example, the processor 11 is a CPU (Central Processing Unit), but is not limited to this. The processor 11 may be composed of various circuits. The processor 11 loads a program stored in advance in the main memory 12 or the auxiliary storage device 13 into the main memory 12. The program is a program that causes the processor 11 of the device 1 to realize each part described below. The processor 11 executes the program loaded into the main memory 12 to perform various operations.
[0012] The main memory 12 corresponds to the main storage portion of the device 1. The main memory 12 includes a nonvolatile memory area and a volatile memory area. The main memory 12 stores an operating system or a program in the nonvolatile memory area. The main memory 12 uses the volatile memory area as a work area where data is appropriately rewritten by the processor 11. For example, the main memory 12 includes a ROM (Read Only Memory) as the nonvolatile memory area. For example, the main memory 12 includes a RAM (Random Access Memory) as the volatile memory area.
[0013] The auxiliary storage device 13 corresponds to an auxiliary storage portion of the apparatus 1. For example, the auxiliary storage device 13 is an EEPROM (registered trademark) (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disc Drive), or an SSD (Solid State Drive). The auxiliary storage device 13 stores the above-mentioned programs, data used by the processor 11 in performing various processes, and data generated by the processes in the processor 11.
[0014] The auxiliary storage device 13 stores a type information database (DB) 131, a main information DB 132, and a parameter DB 133. The type information DB131 stores type information. The type information is information indicating the type of information stored in the code. The code is, for example, a two-dimensional code. The type information is included in the header information of the code. The types of information are, for example, "warning", "historic site", "history", "traffic", "signal", etc. "Warning" is, for example, information indicating the presence of another code in which related information is stored. "Historic site" is, for example, information indicating the name of a historical site. "History" is, for example, information indicating the history related to the associated historical site. "Historic site" and "History" are information associated with each other. "Traffic" is, for example, information indicating a traffic sign. "Signal" is, for example, information regarding an intersection where a traffic light is installed. "Traffic" and "signal" are information associated with each other. The type information may be an English abbreviation indicating the type of information. Examples of English abbreviations are "WA" for "Warning", "LM" for "Landmark", "HIS" for "History", "TR" for "Traffic", "SIG" for "Signal", etc. The type is also called "Class".
[0015] The type information is input to the apparatus 1 via the input device 15 by, for example, a user operation. The user operation is text input via the input device 15, input of a selection instruction from a plurality of type candidates, etc. The type information DB 131 is updated every time type information is input by the user.
[0016] The main information DB132 stores main information. The main information is main information recorded in a code. The main information corresponds to the body information of the code. The main information is text data such as "This stone monument was erected in 1876" and "This traffic light is in front of X Station, four lanes on each side, pedestrian and vehicle separated intersection." The main information is not limited to text data, and may be data such as audio data, video data, and URL (Uniform Resource Locator). The main information is input to the device 1 via the input device 15 by, for example, a user's operation. The user's operation is, for example, a text input via the input device 15, an input of a selection instruction from a plurality of main information candidates, and the like. The main information DB132 is updated every time the main information is input by the user.
[0017] The parameter DB 133 stores parameters related to code generation. The parameters include additional information such as cell size, error correction level, background, color, image format, etc. The parameters are setting information specified when generating the code. Different parameters can be set based on the code rank. The code rank is the rank of the code based on a plurality of different cell configurations. The cell configuration is the number of cells included in each code. The cell configuration is indicated by, for example, 25×25, 49×49, 73×73, etc. A cell configuration with a small number of cells is said to have a low cell configuration or a large cell configuration, and a cell configuration with a large number of cells is said to have a high cell configuration or a small cell configuration. In the above example, a code with a cell number of "25×25" can be expressed as a cell configuration "small" or "low", a code with a cell number of "49×49" can be expressed as a cell configuration "medium", and a code with a cell number of "73×73" can be expressed as a cell configuration "large" or "high". A code with a large cell configuration corresponds to a high density code, and a code with a small cell configuration corresponds to a low density code. The cell configuration is also called a version. The parameter DB 133 stores each parameter in association with a code rank.
[0018] Code ranks correspond to the ascending order of the size of the cell configuration. Code ranks are determined according to ascending order of cell configuration density from lowest to highest. For example, a code with a code rank of "1" is the code with the smallest cell configuration. A code with a code rank of "2" is the code with the second smallest cell configuration. The cell configuration of a code with a code rank of "2" is larger than the cell configuration of a code with a code rank of "1" and smaller than the cell configuration of a code with a code rank of "3". A code with a code rank of "3" is the code with the third smallest cell configuration. The cell configuration of a code with a code rank of "3" is larger than the cell configuration of a code with a code rank of "2". When the code ranks are from 1 to 3, a code with a code rank of "3" is the code with the largest cell configuration.
[0019] In the following description, a code set of codes with code ranks "1", "2", and "3" will be described. A code set is a combination of multiple codes related to each other. The code ranks of the multiple codes included in each code set are not limited to "1" to "3", but may be "1" to "2", "1" to "4", etc., as long as the number of code ranks is two or more. A code with a code rank of "1" is also called a first code. A code with a code rank of "2" is also called a second code. A code with a code rank of "2" is the code with the next rank after the first code. The code with the next rank is also called a next code. A code with a code rank of "3" is also called a third code. A code with a code rank of "3" is also called a next code after the second code. In this example, the code with the code rank "1" and the code with the code rank "2" are also called low-ranked codes. In this case, the code with the code rank "3" is also called a high-ranked code. When describing a code set with code rank "2" and code rank "3", the code with code rank "2" is also referred to as the first code, and the code with code rank "3" is also referred to as the second code.
[0020] The parameters are input to the apparatus 1 via the input device 15 by, for example, a user operation. The user operation is text input via the input device 15, input of a selection instruction from a plurality of parameter candidates, etc. The parameter DB 133 is updated every time a parameter is input by the user.
[0021] The communication interface 14 includes various interfaces that communicatively connect the device 1 to other devices via a network in accordance with a predetermined communication protocol.
[0022] The input device 15 is a device capable of inputting data or instructions by a touch operation to the apparatus 1. For example, the input device 15 is a keyboard or a touch panel.
[0023] The display 16 is a device capable of displaying various screens under the control of the apparatus 1. For example, the display 16 is a liquid crystal display or an EL (Electroluminescence) display.
[0024] The hardware configuration of the device 1 is not limited to the above-mentioned configuration, and the device 1 allows the above-mentioned components to be omitted or changed and new components to be added as appropriate.
[0025] The procedure for generating a two-dimensional code by the device 1 will be described. In the following description, it is assumed that the first code, second code, and third code shown in FIG. 4 are generated. The first code, second code, and third code are codes associated with each other. The first code, second code, and third code are a code set of codes that record information about stone monument A. The first code is the code with code ranking "1" and is the code with the smallest cell configuration. The second code is the code with code ranking "2" and is the code with the second smallest cell configuration. The third code is the code with code ranking "3" and is the code with the largest cell configuration. The third code corresponds to the last code.
[0026] FIG. 2 is a flowchart illustrating a procedure of a process for generating type information of a two-dimensional code by the device 1 according to the first embodiment. In the following, the procedure of the process of generating type information of a two-dimensional code by the device 1 will be described according to the flowchart shown in FIG. 2 and with reference to FIG. Note that the process steps described below are merely examples, and each process may be modified as much as possible. In addition, steps may be omitted, replaced, or added as appropriate for the process steps described below depending on the embodiment.
[0027] First, the user of device 1 sets the maximum code rank value on device 1. The maximum code rank value can be set to any value. In this example, the user sets the maximum code rank value to "3". Next, the user sets type information for each code on device 1. The type information set by the user is stored in type information DB 131. In this example, the user sets the type of the first code to "Warning", the type of the second code to "Historical Site", and the type of the third code to "History". Next, the user sets main information to be recorded for each code on device 1. The main information set by the user is stored in main information DB 132. In this example, the user sets main information only for the third code.
[0028] The processor 11 sets the value of the variable M to 1 (ACT101). The variable M indicates the code rank.
[0029] The processor 11 acquires type information associated with the variable M from the type information DB 131 (ACT102). In ACT102, for example, the processor 11 acquires type information from the type information DB 131 in accordance with the input type.
[0030] The processor 11 generates a type array indicating type information for each code rank based on the acquired type information (ACT103). The type array indicating type information generated by the processor 11 corresponds to the information set in the "type" item in Fig. 4. Each time the processor 11 generates a type array, it saves the type array in the auxiliary storage device 13. The generating includes updating.
[0031] The processor 11 determines whether the value of the variable M is the maximum value (ACT104). The maximum value is the maximum value of the code rank set by the user. If the processor 11 determines that the value of the variable M is the maximum value (ACT104: YES), the processing ends. If the processor 11 determines that the value of the variable M is not the maximum value (ACT104: NO), the processing transitions from ACT104 to ACT105.
[0032] The processor 11 increments the value of the variable M by 1 (ACT105). After the processing of ACT105, the processor 11 returns to ACT102.
[0033] Through the above process, the type information for each code is determined. As shown in Figure 4, for the first code with code rank "1", "Warning (WA)" is set in the "Type" field. For the second code with code rank "2", "Historical Site (LM)" is set in the "Type" field. For the third code with code rank "3", "History (HIS)" is set in the "Type" field.
[0034] The type information may be associated with a code rank in advance. For example, type information may be associated with a code rank in advance for each of a plurality of code sets, such as a code set related to historical sites, a code set related to traffic lights, etc. For the code set related to historical sites, the code ranks "1" to "3" are associated with the identification information "warning," "historic site," and "history," respectively. For the code set related to traffic lights, the code ranks "1" to "3" are associated with the identification information "warning," "traffic," and "traffic light," respectively. In this case, the user sets code set identification information that identifies the code set.
[0035] FIG. 3 is a flowchart illustrating a procedure of a process for generating a two-dimensional code by the device 1 according to the first embodiment. The procedure of the process of generating a two-dimensional code by the device 1 will be described below according to the flowchart shown in FIG. 3 and with reference to FIG. Note that the process steps described below are merely examples, and each process may be modified as much as possible. In addition, steps may be omitted, replaced, or added as appropriate for the process steps described below depending on the embodiment.
[0036] The processor 11 sets the value of a variable N to 1 (ACT201). The variable N indicates a code rank.
[0037] The processor 11 determines whether or not the value of the variable N is the maximum value of the variable M (ACT202). If the processor 11 determines that the value of the variable N is the maximum value of the variable M (ACT202: YES), the process transitions from ACT202 to ACT205. If the processor 11 determines that the value of the variable N is not the maximum value of the variable M (ACT202: NO), the process transitions from ACT202 to ACT203.
[0038] The processor 11 acquires the parameters associated with the variable N from the parameter information DB 133 (ACT 203).
[0039] The processor 11 generates a code for the variable N (ACT204). In ACT204, for example, the processor 11 acquires a type array from the auxiliary storage device 13. The processor 11 acquires type information associated with the variable N and type information associated with the variable N+1 from the type array. The processor 11 generates a code including the acquired type information for the variable N based on a cell configuration according to the variable N. The processor 11 generates a code including "N=N, CLASS=CLASS(N), NC_EXIST=ON, NCLASS=CLASS(N+1)" as header information of the code. Here, "N" indicates the variable N. "N" corresponds to the "code order" item shown in FIG. 4. "CLASS" indicates a type. "CLASS" corresponds to the "type" item shown in FIG. 4. "Type" is type information associated with the variable N. "CLASS(N)" indicates a type associated with the variable N. "NC_EXIST" indicates the presence or absence of a related next code. "NC_EXIST" corresponds to the "next code presence / absence" item shown in Figure 4. "Next code presence / absence" is information indicating whether or not there is a next code. "NC_EXIST=ON" indicates the presence of a next code. "NCLASS" indicates the type of next code. "NCLASS" corresponds to the "next code type" item shown in Figure 4. "Next code type" is type information associated with the next code. "CLASS(N+1)" indicates the type associated with the variable N+1. The variable N+1 corresponds to the code ranking of the next code. "Next code presence / absence" and "next code type" are also referred to as next code information. Next code information is information for identifying the information recorded in the next code.
[0040] The processor 11 generates a code indicating "BODY=NULL" as the body information of the code. Here, "BODY" indicates main information. "BODY" corresponds to "main information" shown in FIG. 4. "BODY=NULL" indicates that there is no main information. In this example, the main information is recorded only in the third code with the code order "3". Therefore, when the variable N is not the maximum value, the processor 11 sets "BODY=NULL" to the main information. A code in which the variable N is not the maximum value does not include main information. In this example, a code in which the variable N is the maximum value corresponds to the third code. A code in which the variable N is the maximum value is also called the last code. Codes other than the last code correspond to the first code and the second code. Codes other than the last code are also called low-order codes. In addition, when the main information is recorded in the first code and the second code, a process of ACT205 described later is added before the process of ACT203 or the process of ACT204.
[0041] The processor 11 generates code for the variable N based on the parameters obtained in ACT 203 .
[0042] The processor 11 acquires the main information associated with the variable N from the main information DB 132 (ACT 205).
[0043] The processor 11 acquires the parameters associated with the variable N from the parameter information DB 133 (ACT 206).
[0044] The processor 11 generates a code for the variable N (ACT207). In ACT207, for example, the processor 11 acquires a type array from the auxiliary storage device 13. The processor 11 acquires type information associated with the variable N from the type array. In this example, the processor 11 acquires type information associated with the maximum value of the variable M from the type array. The processor 11 generates a code including the acquired type information for the variable N based on a cell configuration according to the variable N. The processor 11 generates a code indicating "N=N, CLASS=CLASS(N), NC_EXIST=OFF, NCLASS=NULL" as header information of the code. Here, "NC_EXIST=OFF" indicates that there is no next code, and "NCLASS=NULL" indicates that there is no type of the next code. The code in which the variable M is the maximum value corresponds to the last code. In this example, the last code is the third code.
[0045] The processor 11 generates a code indicating "BODY="main information"" as the body information of the code for the variable N. In this example, a code including the body information "BODY="Monument A was erected in 1876..."" is generated as the third code. The main information is not limited to text data, and may be data such as audio data, video data, and a URL. The processor 11 generates code for the variable N based on the parameters obtained in ACT 206 .
[0046] The processor 11 determines whether or not the value of the variable N is the maximum value of the variable M (ACT208). If the processor 11 determines that the value of the variable N is the maximum value of the variable M (ACT208: YES), the process ends. If the processor 11 determines that the value of the variable N is not the maximum value of the variable M (ACT208: NO), the process transitions from ACT208 to ACT209.
[0047] The processor 11 increments the value of the variable N by 1 (ACT209). After the processing of ACT209, the processor 11 returns to ACT202.
[0048] As shown in ACT204 and ACT207, the processor 11 can obtain type information associated with each of the code rankings based on a plurality of different cell configurations. The processor 11 can generate a plurality of codes including the obtained type information based on the cell configuration according to the code ranking. Each of the plurality of codes may include information indicating the presence or absence of a related code of the next ranking. The processor 11 can set information indicating the presence of the next code, such as "NC_EXIST=ON", to a code other than the last code among the plurality of codes. A code other than the last code among the plurality of codes may include information indicating the presence of the next code. On the other hand, the processor 11 can set information indicating the absence of the next code, such as "NC_EXIST=OFF", to the last code among the plurality of codes. The last code among the plurality of codes may include information indicating the absence of the next code. According to this example, when reading multiple codes, the user can determine whether or not to read the next code with a larger related cell composition by reading the first code with a smaller cell composition. Therefore, the user can read the next code installed at a distant position as needed. This improves the convenience of the user in reading codes.
[0049] As shown in ACT204 and ACT207, the processor 11 can change whether or not to set type information associated with the next code for each of the multiple codes depending on whether or not there is a next code. The processor 11 can set type information associated with the next code, such as "NCLASS=CLASS(N+1)", for codes other than the last code among the multiple codes. Codes other than the last code among the multiple codes may include type information associated with the next code. On the other hand, the processor 11 can avoid setting type information associated with the next code, such as "NCLASS=NULL", for the last code among the multiple codes. The last code among the multiple codes does not need to include type information associated with the next code.
[0050] According to this example, when reading multiple codes, the user can recognize the type of information recorded in the next code with a larger related cell configuration by reading the first code with a smaller cell configuration. Therefore, the user can determine whether or not to read the next code based on the type of the next code. The user can read the next code according to need. This can improve the convenience of the user in reading codes.
[0051] As shown in ACT204 and ACT207, the processor 11 can change whether or not to set main information for each of the multiple codes depending on whether or not there is a next code. The processor 11 can set no main information, such as "BODY=NULL", for codes other than the last code among the multiple codes. Codes other than the last code among the multiple codes do not need to include main information. On the other hand, the processor 11 can set main information, such as "BODY="main information"", for the last code among the multiple codes. The last code among the multiple codes may include main information.
[0052] According to this example, when reading multiple codes, the user can first read the lower-ranked codes and obtain information about the related last code from the read lower-ranked codes. Therefore, the last code including the main information can be read only when it is determined that reading is necessary. The user's terminal can decode the code depending on whether reading is necessary. This allows the user to prevent unnecessary reading of the last code, which is high density and places a large burden on the decoding process, and reduces processing on the user's terminal side. The user can read the main information as necessary. This increases the convenience of code reading for the user.
[0053] Furthermore, the processor 11 can record data such as text data, audio data, video data, and a URL as main information in the code. According to this example, the user can obtain the main information not only visually but also aurally, which allows the processor 11 to change the method of providing the main information depending on the code reading situation, thereby improving the convenience of the code reading for the user.
[0054] Processor 11 may generate multiple codes based on different parameters associated with each of the code orders. For example, processor 11 may generate multiple codes based on cell configurations according to court orders. According to this example, the processor 11 can generate a plurality of codes related to each other with different cell configurations, etc. When reading a plurality of codes, the user can determine whether or not it is necessary to read the next code with a larger related cell configuration by reading a first code with a smaller cell configuration. Therefore, the user can read the next code installed at a distant position as necessary. This can improve the convenience of the user in reading codes.
[0055] The first code, the second code, and the third code will be described. FIG. 4 is a diagram showing an example of the configuration of a two-dimensional code generated by the device 1 according to the first embodiment.
[0056] Each of the first code, the second code, and the third code includes header information and body information. The header information includes "code rank," "type," "presence or absence of next code," and "next code type." The body information includes "main information." Each of the first code, the second code, and the third code is configured, for example, by a code sequence illustrated in FIG. 4. The first code, the second code, and the third code are associated with each other. In this example, the first code, the second code, and the third code are a code set of codes related to historical sites that record information about stone monument A.
[0057] The first code is a code with the code order set to "1", the type set to "Warning", the next code presence set to "Yes", the next code type set to "Historical Site", and the main information set to "No". The cell structure of the first code is smaller than the cell structure of the second code. The first code records simpler information than the second code. In other words, the first code records less information than the second code.
[0058] The second code is a code with the code order set to "2", the type set to "historical site", the next code presence / absence set to "yes", the next code type set to "history", and the main information set to "no". The cell structure of the second code is smaller than the cell structure of the third code. Also, the cell structure of the second code is larger than the cell structure code of the first code. The second code records more detailed information than the first code. In other words, the second code records a larger amount of information than the first code. Also, the second code records more simplified information than the third code. In other words, the second code records a smaller amount of information than the third code.
[0059] The third code has a code order of "3", a type of "History", next code presence / absence of "None", next code type of "None", and main information of "Monument A was erected in 1876...". The cell structure of the third code is larger than that of the second code. The third code records more detailed information than the second code. In other words, the third code records a larger amount of information than the second code.
[0060] [Second embodiment] The second embodiment will be described below with reference to the drawings. For example, the second embodiment relates to reading a code, such as a two-dimensional code generated by the first embodiment.
[0061] FIG. 5 is an example of an external view of the terminal 2 according to the second embodiment as viewed from the display side. The terminal 2 is a portable electronic device having a communication function. For example, the terminal 2 is a smartphone or a tablet terminal. The terminal 2 is a terminal carried by a user. The terminal 2 is an example of an information processing terminal.
[0062] The terminal 2 includes a microphone 27 , a speaker 28 , and a display 29 .
[0063] The microphone 27 is a device capable of inputting sounds in the surrounding environment of the terminal 2. The sounds input to the microphone 27 are sounds generated in the environment in which the terminal 2 is placed and the voices of people in the surrounding environment in which the terminal 2 is placed. The sounds generated in the surrounding environment in which the terminal 2 is placed include various sounds such as the sound of objects touching each other, the sound of devices operating, and music. The voices of people in the surrounding environment in which the terminal 2 is placed include not only the voice of the user who uses the terminal 2, but also the voices of people in the vicinity of the terminal 2. For example, the microphone 27 is provided on one end side of the terminal 2 in the longitudinal direction, but the position of the microphone 27 on the terminal 2 is not limited.
[0064] The speaker 28 is a device capable of outputting sound under the control of the terminal 2. For example, the speaker 28 is provided on one end side of the terminal 2 in the longitudinal direction, but the position of the speaker 28 on the terminal 2 is not limited.
[0065] The display 29 is a device capable of displaying various screens under the control of the terminal 2. For example, the display 29 is a liquid crystal display or an EL (Electroluminescence) display.
[0066] FIG. 6 is an example of an external view of the terminal 2 according to the second embodiment, seen from the opposite side of the display. The terminal 2 includes a camera 26 in addition to the microphone 27, speaker 28, and display 29 described above.
[0067] The camera 26 is a device capable of identifying an optically readable code symbol such as a two-dimensional code by image processing. The camera 26 is a camera equipped with an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal-Oxide Semiconductor). The camera 26 is an example of an imaging unit.
[0068] FIG. 7 is a block diagram illustrating a terminal 2 according to the second embodiment. The terminal 2 is a computer including a processor 21, a main memory 22, an auxiliary storage device 23, a communication interface 24, and an input device 25 in addition to the above-mentioned camera 26, microphone 27, speaker 28, and display 29. Each part constituting the terminal 2 is connected to each other so as to be able to input and output signals. In Fig. 7, the interface is written as "I / F".
[0069] The processor 21 corresponds to the central part of the terminal 2. The processor 21 has the same hardware configuration as the above-mentioned processor 11. The processor 21 loads a program stored in advance in the main memory 22 or the auxiliary storage device 23 into the main memory 22. The program is a program that causes the processor 21 of the terminal 2 to realize each unit described below. The processor 21 executes the program loaded into the main memory 22 to perform various operations.
[0070] The main memory 22 corresponds to the main storage portion of the terminal 2. It has the same hardware configuration as the above-mentioned main memory 12. The main memory 22 stores programs.
[0071] The auxiliary storage device 23 corresponds to the auxiliary storage portion of the terminal 2. The auxiliary storage device 23 has the same hardware configuration as the above-mentioned auxiliary storage device 13. The auxiliary storage device 23 stores the above-mentioned programs, data used by the processor 21 when performing various processes, and data generated by the processes in the processor 21.
[0072] The communication interface 24 includes various interfaces that connect the terminal 2 to other devices so that they can communicate with each other via a network in accordance with a predetermined communication protocol.
[0073] The input device 25 is a device capable of inputting data or instructions by a touch operation to the terminal 2. For example, the input device 25 is a keyboard or a touch panel.
[0074] The hardware configuration of the terminal 2 is not limited to the above-mentioned configuration. The terminal 2 allows the omission or modification of the above-mentioned components and the addition of new components as appropriate.
[0075] Each unit implemented in the above-mentioned processor 21 will be described. The processor 21 implements an acquisition unit 211, a decoding unit 212, a generation unit 213, a detection unit 214, a camera control unit 215, and an output unit 216. Each unit implemented in the processor 21 can also be referred to as each function. Each unit implemented in the processor 21 can also be referred to as being implemented in a control unit including the processor 21 and the main memory 22.
[0076] The acquisition unit 211 acquires various codes via the camera 26. For example, the acquisition unit 211 acquires a first code via the camera 26. The first code is a code with a minimum cell configuration among a plurality of codes associated with each other. The acquisition unit 211 also acquires a second code via the camera 26. The second code is a code with a larger cell configuration than the first code. The second code is a next code of the first code. The second code is a code that records more detailed information than the first code. That is, the second code records a larger amount of information than the first code. The first code and the second code are associated with each other. It is assumed that the first code and the second code are arranged in close proximity, but the arrangement condition is not limited to this. The first code records information about the second code associated with the first code as next code information. The information about the second code includes information indicating the presence or absence of the second code as information indicating the presence or absence of the next code. The information about the second code includes type information associated with the second code as type information associated with the next code.
[0077] The decoding unit 212 decodes various codes acquired by the acquisition unit 211. For example, the decoding unit 212 decodes a first code acquired by the acquisition unit 211. The decoding unit 212 also decodes a second code acquired by the acquisition unit 211. Based on the first code acquired by the acquisition unit 211, the decoding unit 212 determines whether or not there is a second code associated with the first code.
[0078] The generating unit 213 generates a notification regarding a second code associated with the first code according to the first code information decoded by the decoding unit 212. The first code information is information acquired by decoding the first code by the decoding unit 212. The notification regarding the second code is generated based on the next code information recorded in the first code. The generating unit 213 generates a notification indicating the type of the second code based on type information associated with the next code, for example. The notification regarding the second code is a notification indicating the type of the second code, such as "there is a code related to a signal" or "there is a code related to history". The generating unit 213 may generate a notification indicating the type of the second code based on information indicating the presence or absence of the next code. The notification regarding the second code may include a notification indicating the presence or absence of the second code, such as "there is a related code".
[0079] The detection unit 214 detects an acquisition instruction to acquire the second code. The acquisition instruction is an instruction to acquire the second code by the user of the terminal 2 via the input device 25. The detection unit 214 detects a touch input by the user to the display 29 as the acquisition instruction. The touch input is realized when the user touches the code displayed on the display 29. The detection unit 214 may detect a voice input via the microphone 27 as the acquisition instruction.
[0080] The detection unit 214 may detect an acquisition instruction for selecting and acquiring a code to be acquired from a plurality of codes displayed on the display 29.
[0081] Camera control unit 215 controls the zoom function of camera 26 in response to detection of an acquisition instruction by detection unit 214. In the following description, "in response" may be read as "based on".
[0082] The output unit 216 outputs various information to the display 29. For example, the output unit 216 outputs a notification regarding the second code generated by the generation unit 213. The output unit 216 outputs the second code information decoded by the decoding unit 212. The second code information is information acquired by decoding the second code by the decoding unit 212. The output unit 216 outputs different information depending on whether the second code is acquired by the acquisition unit 211. For example, the output unit 216 outputs the second code information when the second code is acquired by the acquisition unit 211. When the second code is not acquired by the acquisition unit 211, the output unit 216 outputs an error message. The error message is a message indicating that the second code could not be acquired by the acquisition unit 211. The error message may include a recommendation message to the user to acquire the second code. The recommendation message includes a message recommending that the user physically approach the second code.
[0083] The output unit 216 may output various types of information as audio output via the speaker 28. In the following description, "output" may be read as "transmit".
[0084] Note that, although the acquiring unit 211, the detecting unit 214, and the output unit 216 have been described as being implemented in the processor 21 by executing a program, this is not limiting. The acquiring unit 211 may be realized by the processor 21 cooperating with a device such as the camera 26 by executing a program. The detecting unit 214 may be realized by the processor 21 cooperating with a device such as the input device 25 by executing a program. The output unit 216 may be realized by the processor 21 cooperating with a device such as the speaker 28 and the display 29 by executing a program.
[0085] The first code and the second code will be described. FIG. 8 is a diagram showing an example of a code read by the terminal 2 according to the second embodiment.
[0086] FIG. 8 shows a first code Ca and a second code Cb. The first code Ca is created with the smallest cell configuration (e.g., 25×25 cells) of the two mutually related codes. The display size of the first code Ca is larger than that of the second code Cb. The display size is determined by the number of cells and the cell size. Therefore, the first code Ca can be recognized even if it is imaged by the camera 26 from a certain distance away. The second code Cb is created with a larger cell configuration (49×49 cells) than the first code Ca. The second code Cb is a code that records a larger amount of information than the first code Ca. The display size of the second code Cb is smaller than that of the first code Ca. Therefore, the second code Cb can be recognized by imaged by the camera 26 from a closer distance than the first code Ca can be recognized.
[0087] The first code Ca contains next code information about the second code Cb associated with the first code Ca. The next code information includes information indicating the presence or absence of the second code Cb and type information indicating the type of information recorded in the second code Cb. The first code Ca and the second code Cb associated with the first code Ca are arranged adjacent to each other. The first code Ca and the second code Cb arranged adjacent to each other are collectively called a code set.
[0088] The cell configuration and display size of the first code Ca and the second code Cb may be set in advance, or may be set according to the conditions of the location where the code set is installed, the conditions under which the code set is imaged, the amount of information recorded in the first code Ca and the second code Cb, etc.
[0089] The second code Cb is assumed to have a cell configuration large enough to be unrecognized under the conditions in which the first code Ca is imaged. For example, the pitch of the finder pattern FPa of the second code Cb is set to be approximately the same as or slightly smaller than the pitch of the alignment pattern (not shown) or the finder pattern FPb of the first code Ca.
[0090] Next, an example of the operation of the terminal 2 configured as above will be described with reference to the following drawings. FIG. 9 is a flowchart illustrating a procedure of a code reading process performed by the terminal 2 according to the second embodiment.
[0091] The procedure of the code reading process by the terminal 2 will be described below according to the flowchart shown in FIG. 9 and with reference to FIGS. Fig. 10 is a diagram showing an example of a screen displayed on the display 29 of the terminal 2 according to the second embodiment. Fig. 11 is a diagram showing an example of a screen displayed on the display 29 of the terminal 2 according to the second embodiment. Fig. 12 is a diagram showing an example of a screen displayed on the display 29 of the terminal 2 according to the second embodiment. Fig. 13 is a diagram showing an example of a screen displayed on the display 29 of the terminal 2 according to the second embodiment.
[0092] Note that the process steps described below are merely examples, and each process may be modified as much as possible. In addition, steps may be omitted, replaced, or added as appropriate for the process steps described below depending on the embodiment.
[0093] First, the user of terminal 2 starts a code reading application on terminal 2 and points camera 26 at the code. When the user points camera 26 at the code, terminal 2 starts a reading process according to the procedure shown in the flowchart of Fig. 9. In this example, a description will be given assuming that the code sets of the first code and the second code are installed close to each other.
[0094] Fig. 10 is a diagram showing an example of a screen displayed on the display 29 when the camera 26 is pointed toward a code. Fig. 10 shows an image screen SCa displayed on the display 29. In this example, it is assumed that a user reads a code on the street. As shown in Fig. 10, the image screen SCa includes a code set of a first code Ca and a second code Cb, and a code set of a first code Cc and a second code Cd. In this example, it is assumed that, at the user's position, the camera 26 can read only the first code Ca and the first code Cc, but cannot read the second code Cb and the second code Cd.
[0095] In the following, a procedure for reading a code set consisting of a first code Ca and a second code Cb will be described. The second code Cb corresponds to the code next to the first code Ca.
[0096] The acquisition unit 211 acquires a first code Ca via the camera 26 (ACT301). The acquisition unit 211 may acquire a plurality of first codes via the camera 26. As described below, in response to the acquisition of the plurality of first codes by the acquisition unit 211, the generation unit 213 may generate a notification regarding a plurality of second codes associated with the plurality of first codes.
[0097] The decoding unit 212 decodes the first code Ca acquired by the acquisition unit 211 (ACT 302). In ACT 302, for example, the decoding unit 212 decodes the data recorded in the first code Ca to acquire first code information.
[0098] The decoding unit 212 judges whether or not there is a second code Cb associated with the first code Ca based on the first code information (ACT303). In ACT303, for example, the decoding unit 212 acquires the next code information included in the first code information. The decoding unit 212 judges whether or not there is a second code Cb from the next code information. If the decoding unit 212 judges that there is a second code Cb (ACT303: YES), the process transitions from ACT303 to ACT305. If the decoding unit 212 judges that there is no second code Cb (ACT303: NO), the process transitions from ACT303 to ACT304. If the first code Ca does not have the next code information, or if the next code information cannot be correctly recognized in the first code Ca, the decoding unit 212 judges that there is no second code Cb.
[0099] In response to the determination by the decoding unit 212 that the second code Cb is not present, the output unit 216 outputs the main information included in the first code information to the display 29 (ACT304). The output unit 216 may output information indicating that the second code Cb is not present to the display 29. Then, the process ends.
[0100] In response to the determination by the decoding unit 212 that the second code Cb exists, the generating unit 213 generates a notification regarding the second code Cb (ACT305). In ACT305, for example, the generating unit 213 generates a notification regarding the second code Cb associated with the first code Ca according to the first code information decoded by the decoding unit 212. The generating unit 213 acquires the next code information included in the first code information. The generating unit 213 generates a notification indicating the type of the second code Cb based on the acquired next code information. For example, when historical information regarding the stone monument A is recorded in the second code Cb, the generating unit 213 generates a notification indicating the type of information recorded in the second code Cb such as "historical information of the stone monument A exists" (also referred to as a "notification of type"). The generating unit 213 may generate a notification indicating the existence of the next code (also referred to as a "notification that the next code exists") instead of or in addition to the notification of type. The notification that there is a next code is, for example, a notification such as "There is a related code." Note that the generating unit 213 may generate notifications regarding multiple next codes associated with multiple first codes, similar to the generation of a notification regarding a second code associated with one first code.
[0101] The output unit 216 outputs a notification regarding the second code Cb generated by the generation unit 213 (ACT306). In ACT306, for example, the output unit 216 outputs a notification of the type of the second code Cb to the display 29. Instead of or in addition to the notification of the type, the output unit 216 may output a notification that the next code is present to the display 29. The output unit 216 may output the notification regarding the next code as audio by using audio data. Alternatively, the output unit 216 may output the notification regarding the next code as video by using video data. Note that the output unit 216 may output notifications of the types of multiple next codes to the display 29.
[0102] The notification regarding the second code output by the output unit 216 will be described below with reference to FIG. 11. FIG. 11 is a diagram showing an example of the notification regarding the second code displayed on the display 29. FIG. 11 shows a notification screen SCb displayed on the display 29. In this example, it is assumed that the shooting range of the camera 26 includes a code set of the first code Ca and the second code Cb and a code set of the first code Cc and the second code Cd. As shown in FIG. 11, the display 29 displays a notification Ma of the type of the second code Cb generated by the generation unit 213 based on the first code Ca, "Historical information of the stone monument A is available." In addition, the display 29 displays a notification Mb of the type of the second code Cd generated by the generation unit 213 based on the first code Cc, "Traffic signal information of traffic signal B is available." The user of the terminal 2 selects a code set area including the next code to be acquired by touch input according to the notification screen SCb. The code set area is an area in which a code set including the first code and the second code is displayed. The code set area may be any area including an area where a code set is displayed, and may be set arbitrarily. A touch input on the code set area is an example of an acquisition instruction to acquire the next code. The user of the terminal 2 may input a voice input via the microphone 27 as an acquisition instruction.
[0103] According to this example, the output unit 216 can output a notification regarding the second code. This allows the terminal 2 to encourage the user to notice the presence of another code related to the first code. Furthermore, the user can select whether or not to acquire the second code in response to the notification regarding the second code. This allows the terminal 2 to selectively acquire the second code. Therefore, the terminal 2 can reduce the acquisition process of unnecessary codes. Furthermore, the output unit 216 can output audio data and video data in addition to text data. This allows the user to select acquisition of a code not only visually but also aurally. Therefore, the convenience of the user in reading the code can be improved.
[0104] Furthermore, the output unit 216 can output a notification regarding the plurality of second codes to the display 29. This allows the user to select the second code to be acquired from the plurality of second codes. Therefore, the terminal 2 can reduce the process of acquiring unnecessary codes.
[0105] The detection unit 214 detects an acquisition instruction to acquire a second code (ACT307). In ACT307, for example, the detection unit 214 detects a touch input by the user on the code set area on the notification screen SCb. The detection unit 214 detects that the code set area has been touched by a signal from the display 29. The detection unit 214 detecting that the code set area has been touched is an example of the detection of an acquisition instruction by the user by the detection unit 214. The detection unit 214 may detect a voice input by the user via the microphone 27. In this case, the detection unit 214 detecting that the voice input has been made is an example of the detection of an acquisition instruction by the user by the detection unit 214. Note that, when a notification regarding a plurality of second codes is displayed on the display 29, the detection unit 214 may detect an acquisition instruction to acquire a second code selected by the user. In this case, the user inputs an acquisition instruction by touching and selecting a code set area including a second code to be acquired. The detection unit 214 may detect the selection of the second code by voice input via the microphone 27 by the user.
[0106] If the detection unit 214 detects an acquisition instruction (ACT307: YES), the process proceeds from ACT307 to ACT308. If the detection unit 214 does not detect an acquisition instruction (ACT307: NO), the process ends.
[0107] In response to the acquisition instruction being detected by the detection unit 214, the camera control unit 215 controls the zoom function of the camera 26 (ACT308). In ACT308, for example, the camera control unit 215 controls the zoom function of the camera 26 to perform close-up photography in order to recognize the second code.
[0108] The acquisition unit 211 acquires the second code via the camera 26 based on the control by the camera control unit 215 (ACT309). This allows the terminal 2 to acquire the second code without requiring the user to perform an operation to acquire the second code. In addition, the user does not need to search for the second code via the camera 26. This can improve the convenience of the user in reading the code.
[0109] If the second code is acquired by the acquisition unit 211 (ACT309: YES), the process transitions from ACT309 to ACT312. If the second code is not acquired by the acquisition unit 211 (ACT309: NO), the process transitions from ACT309 to ACT310. The output unit 216 outputs different information depending on whether the second code is acquired by the acquisition unit 211, as described below.
[0110] The camera control unit 215 judges whether or not the zoom function of the camera 26 has been controlled to the maximum (ACT310). If the camera control unit 215 judges that the zoom function has been controlled to the maximum (ACT310: YES), the process transitions from ACT310 to ACT311. If the camera control unit 215 does not judge that the zoom function has been controlled to the maximum (ACT310: NO), the process transitions from ACT310 to ACT308. The camera control unit 215 repeatedly controls the zoom function until the acquisition unit 211 acquires the second code (ACT308 to ACT310).
[0111] According to this example, in response to detection of an instruction to acquire the second code, the camera control unit 215 can control the zoom function of the camera 26 until the second code is acquired. This allows the terminal 2 to acquire the second code without requiring the user to perform an operation to acquire the second code. In addition, the user does not need to search for the second code via the camera 26. This can improve the convenience of the user in reading the code.
[0112] In response to the camera control unit 215 determining that the control of the zoom function has been maximized, the output unit 216 outputs an error message to the display 29. The output unit 216 may output the error message as sound via the speaker 28 by using audio data. Alternatively, the output unit 216 may output the error message as a video to the display 29 by using video data.
[0113] Hereinafter, an error message output by the output unit 216 will be described with reference to FIG. 12. FIG. 12 is a diagram showing an example of a notification regarding the next code displayed on the display 29. FIG. 12 shows a notification screen SCc displayed on the display 29. In this example, it is assumed that the shooting range of the camera 26 includes a code set of the first code Ca and the second code Cb, and the user issues an instruction to obtain the second code Cb. As shown in FIG. 12, the output unit 216 outputs an error message saying "Cannot read. Please move closer" to the display 29. It is assumed that the user who receives the error message approaches the second code Cb and holds the camera 26 over the second code Cb.
[0114] According to this example, when the second code cannot be acquired by controlling the zoom function, the output unit 216 can output an error message to the user. This allows the terminal 2 to prompt the user to perform an action to acquire the second code. Therefore, the terminal 2 can reduce the number of trial processes for the user to acquire the second code.
[0115] When the acquisition unit 211 acquires the next code, the decoding unit 212 decodes the second code acquired by the acquisition unit 211 (ACT312). In ACT312, for example, the decoding unit 212 decodes the data recorded in the second code to acquire second code information. The second code information includes main information of the second code.
[0116] The output unit 216 outputs the second code information decoded by the decoding unit 212 (ACT313). In ACT313, for example, the output unit 216 outputs the main information included in the second code information recorded in the second code to the display 29. The output unit 216 may output the main information as audio via the speaker 28 by using audio data. Alternatively, the output unit 216 may output the main information as a video to the display 29 by using video data.
[0117] Hereinafter, the main information output by the output unit 216 will be described with reference to Fig. 13. Fig. 13 is a diagram showing an example of the main information displayed on the display 29. Fig. 13 shows a notification screen SCd displayed on the display 29. In this example, it is assumed that the user issues an instruction to acquire the second code Cb, and the second code Cb is acquired by the acquisition unit 211. As shown in Fig. 13, the output unit 216 outputs the main information of the second code Cb to the display 29, such as "Monument A was erected in 1876...".
[0118] According to this example, the output unit 216 can output second code information such as main information of the second code selected by the user. This allows the terminal 2 to reduce unnecessary code acquisition processing. Furthermore, the output unit 216 can output the main information of the second code as text data, audio data, or video data. This allows the user to acquire code information not only visually but also aurally. This can improve the convenience of the user in reading the code.
[0119] This embodiment has been described using an example assuming a code installed on a street, but is not limited to this. This embodiment can also be applied to cases where codes are used to manage goods in, for example, a logistics center, a factory, etc. In that case, the terminal 2 may be interpreted as a dedicated reading device that reads the code.
[0120] The program may be transferred in a state where it is stored in an electronic device, or in a state where it is not stored in an electronic device. In the latter case, the program may be transferred via a network, or in a state where it is recorded on a recording medium. The recording medium is a non-transitory tangible medium. The recording medium is an electronic device-readable medium. The recording medium may be in any form, such as a CD-ROM or a memory card, as long as it is capable of storing the program and is readable by an electronic device.
[0121] Although several other embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0122] 1...device, 2...terminal, 10...microphone, 11...processor, 12...main memory, 13...auxiliary storage device, 14...communication interface, 15...input device, 16...display, 21...processor, 22...main memory, 23...auxiliary storage device, 24...communication interface, 25...input device, 26...camera, 27...microphone, 28...speaker, 29...display, 211...acquisition unit, 212...decoding unit, 213...generation unit, 214...detection unit, 215...camera control unit, 216...output unit, Ca...first code, Cb...second code, Cc...first code, Cd...second code, 131...type information DB, 132...main information DB, 133...parameter information DB, FPa...finder pattern, FPb...finder pattern, Ma...notification, Mb...notification, SCa...imaging screen, SCb...notification screen, SCc...notification screen, SCd...notification screen.
Claims
1. acquiring type information associated with each of the code rankings based on a plurality of different cell configurations; generating a plurality of codes including the acquired type information based on a cell configuration according to the code order; Equipped with A method of creating codes, wherein each of the plurality of codes includes information indicating whether or not there is a next-ranked code associated with it.
2. whether or not to set type information associated with the code of the next rank for each of the plurality of codes depending on the presence or absence of the code of the next rank; The method of claim 1 .
3. whether or not main information is set for each of the plurality of codes is changed depending on whether or not there is a code of the next rank; 3. The code generation method according to claim 1 or 2.
4. generating said plurality of codes based on different parameters associated with each of the code orders; A method for creating a code according to any one of claims 1 to 3.
5. The code ranking corresponds to an ascending order of the size of the cell configuration. A method for generating code according to any one of claims 1 to 4.
6. On the computer, An acquisition function for acquiring type information associated with each of the code rankings based on a plurality of different cell configurations; A generation function for generating a plurality of codes including the acquired type information based on a cell configuration according to the code order; A program for executing A program, wherein each of the plurality of codes includes information indicating whether or not there is a next-ranked code associated with it.
Citation Information
Patent Citations
Information code and information code generating device
JP2000172802A
Image printer, computer and image distribution system
JP2006042216A
Control device and computer program
JP2014109962A
Two-dimensional barcodes and authentication methods for such barcodes
JP2016540329A
Information code generator
JP2017041161A
