Program and code output method

The terminal device addresses the challenge of displaying easily readable barcodes on varying screen sizes by generating codes based on screen information and effectively outputting them, enhancing readability and facilitating quick transactions.

JP7659681B2Active Publication Date: 2025-04-09LOYALTY MARKETING
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
JP2024071557
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2025-04-09
Estimated Expiration
2036-01-08

AI Technical Summary

Technical Problem

Existing digital membership card systems face challenges in displaying barcodes that are easily readable, especially when screen sizes vary, leading to jagged outlines, blurriness, or unnatural code displays.

Method used

A terminal device is configured with a reception unit for identification information, an acquisition unit for screen size and resolution information, a generation unit for generating codes readable based on this information, and an output unit for displaying the codes effectively.

Benefits of technology

The solution enables clear and effective use of the terminal device's screen for displaying codes, making them easily readable and facilitating quick point processing in digital membership card transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007659681000001
    Figure 0007659681000001
  • Figure 0007659681000002
    Figure 0007659681000002
  • Figure 0007659681000003
    Figure 0007659681000003
Patent Text Reader

Abstract

To solve the problem that it is not easy to read codes displayed on screens when codes are displayed on various terminal devices with different screen sizes.SOLUTION: A terminal device is provided, comprising a reception unit for receiving identification information for identifying information, an acquisition unit for acquiring size information regarding one or more of the screen size and screen resolution of the terminal device, and an output unit for outputting a code generated by a generation unit. Such an arrangement enables display of a clear code by making effective use of the screen of the terminal device, making it easy to read the code displayed on the screen.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a terminal device or the like that generates and outputs a code. [Background technology]

[0002] Conventionally, there have been apps that provide digital membership cards for use on mobile terminals such as smartphones. These digital membership cards display a barcode with embedded membership information on the screen. These barcodes are stored in a library and therefore have a fixed size. On the other hand, mobile terminals have different screen sizes. Therefore, in conventional technology, the barcode is enlarged or displayed according to the screen size (see, for example, Non-Patent Document 1). Some apps also display the accepted code at its original size without considering the screen size. [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] "T-POINT / T-CARD", [online], [searched on September 23, 2015], Internet [URL: http: / / tsite.jp / r / mb-tcard / tsutaya / web / index.html] Summary of the Invention [Problem to be solved by the invention]

[0004] However, when the barcode is enlarged or reduced to fit the screen size, the jagged edges become prominent, the image becomes blurred, and the code is displayed unnaturally. Also, when the accepted code is displayed as is, the code cannot be displayed in a way that effectively utilizes the screen of the terminal device.

[0005] Therefore, in the conventional technology, it was not easy to read the displayed barcode. Generally, a digital membership card is presented in front of a cash register, and therefore both the digital membership card member and the store require quick point processing (membership confirmation, point allocation, point consumption, etc.), but if the barcode is not easy to read, there is a problem that quick point processing is not possible. Therefore, the present invention aims to provide a digital membership card that displays a barcode that is easier to read compared to the conventional technology, and to enable quick point processing. [Means for solving the problem]

[0006] The terminal device of the first invention is a terminal device comprising: a receiving unit that receives identification information that identifies information; an acquisition unit that acquires size information relating to one or more of the screen size and screen resolution of the terminal device; a generation unit that generates a code from which the identification information can be read based on the size information; and an output unit that outputs the code generated by the generation unit.

[0007] With this configuration, it is possible to display a clear code by effectively utilizing the screen of the terminal device, making it easier to read the code displayed on the screen.

[0008] In addition, in the terminal device of the second invention, compared to the first invention, the generation unit is a terminal device equipped with an acquisition means for acquiring code size information regarding the size of the code corresponding to the size information, and a generation means for generating code according to the code size information acquired by the acquisition means.

[0009] With this configuration, it is possible to display a clear code by effectively utilizing the screen of the terminal device, making it easier to read the code displayed on the screen.

[0010] In addition, the terminal device of the third invention is a terminal device in which, compared to the first or second invention, the output unit is equipped with a determination means for determining an output direction of the code according to size information, and an output means for outputting the code according to the output direction.

[0011] With this configuration, it is possible to display a clear code by effectively utilizing the screen of the terminal device, making it easier to read the code displayed on the screen.

[0012] Furthermore, in the terminal device of the fourth invention, in comparison with the third invention, the determining means determines whether the output direction of the code is vertical or horizontal.

[0013] With this configuration, it is possible to display a clear code by effectively utilizing the screen of the terminal device, making it easier to read the code displayed on the screen.

[0014] In addition, the terminal device of the fifth invention is a terminal device further comprising an other information output unit for outputting other information, which is information other than the code, to a second area, which is an area within the screen of the terminal device, with respect to any one of the first to third inventions.

[0015] With this configuration, a clear code can be displayed by effectively utilizing the screen of the terminal device, and information other than the code can be displayed in the remaining area, making it easier to read the displayed code and enabling effective use of the screen.

[0016] Further, in the terminal device of the sixth invention, in comparison with the fifth invention, the other information output section is a terminal device that outputs the other information by enlarging or reducing it.

[0017] With this configuration, a clear code can be displayed by effectively utilizing the screen of the terminal device, and information other than the code can also be displayed, making the displayed code easier to read and enabling extremely effective use of the screen.

[0018] Furthermore, the terminal device of the seventh aspect of the present invention is the terminal device of the fifth or sixth aspect of the present invention, wherein the other information output portion outputs different information depending on an attribute of the second region.

[0019] With this configuration, a clear code can be displayed by effectively utilizing the screen of the terminal device, and information other than the code can also be displayed, making the displayed code easier to read and enabling extremely effective use of the screen.

[0020] In addition, the terminal device of the eighth invention is a terminal device in which, compared to the fifth or sixth invention, the other information output unit outputs information other than a code in a different display mode depending on the attributes of the second region.

[0021] With this configuration, a clear code can be displayed by effectively utilizing the screen of the terminal device, and information other than the code can also be displayed, making the displayed code easier to read and enabling extremely effective use of the screen. Effect of the Invention

[0022] The terminal device according to the present invention provides a digital membership card that displays an easily readable barcode, enabling quick point processing. [Brief description of the drawings]

[0023] [Figure 1] Conceptual diagram of information system 1 according to embodiment 1. [Diagram 2] Block diagram of Information System 1 [Diagram 3] A flowchart for explaining an example of the operation of the terminal device 12. [Figure 4] Size information management table [Diagram 5] Size information management table [Figure 6] Member information management table [Figure 7] A diagram showing an example of how the code is displayed [Figure 8] A diagram showing an image of a membership card [Figure 9] A diagram showing an example of how the code is displayed [Figure 10] Advertisement information management table [Figure 11] A diagram showing examples of how codes are displayed [Figure 12] Overview of the computer system [Figure 13] Block diagram of the computer system DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024] Hereinafter, an embodiment of a terminal device and the like will be described with reference to the drawings. Note that components with the same reference numerals in the embodiments perform similar operations, and therefore repeated description may be omitted.

[0025] (Embodiment 1)

[0026] In this embodiment, an information system including a terminal device that receives identification information, acquires a screen size, generates a code having a size corresponding to the screen size, and outputs the code will be described.

[0027] In this embodiment, an information system including a terminal device that determines the display direction (vertical or horizontal) according to the screen size and outputs a code in that direction will be described. Note that the display direction according to the screen size includes the display direction according to the shape of the screen.

[0028] Furthermore, in this embodiment, an information system including a terminal device that controls the display of information other than the code in an area other than the code display area will be described.

[0029] 1 is a conceptual diagram of an information system 1 in this embodiment. The information system 1 includes a server device 11 and one or more terminal devices 12. The server device 11 is, for example, a server that stores information to be displayed on the terminal device 12. The server device 11 may be any type, such as a so-called cloud server. The terminal device 12 may be, for example, a so-called smartphone, tablet terminal, personal computer, or the like, and the type may be any type.

[0030] FIG. 2 is a block diagram of the information system 1 according to the present embodiment.

[0031] The server device 11 includes a server storage unit 111 , a server receiving unit 112 , a server processing unit 113 , and a server transmitting unit 114 .

[0032] The terminal device 12 includes a storage unit 121 , a reception unit 122 , a transmission unit 123 , a reception unit 124 , an acquisition unit 125 , a generation unit 126 , an output unit 127 , and an other information output unit 128 .

[0033] The generating unit 126 includes an acquiring unit 1261 and a generating unit 1262 .

[0034] The output unit 127 includes a determination unit 1271 and an output unit 1272 .

[0035] The server storage unit 111 constituting the server device 11 may store various types of information. The various types of information include, for example, identification information and other information described below. The server storage unit 111 may store, for example, one or more pieces of user information. The user information is information about a user, and includes, for example, identification information, a user's name, a password, and the like.

[0036] The server receiving unit 112 receives various types of information and instructions from the terminal device 12. The various types of information and instructions are, for example, a user ID, identification information, a password, an instruction to send identification information, an instruction to permit display of a membership card, etc. An instruction to send identification information is an instruction to send identification information. An instruction to permit display of a membership card is an instruction requesting permission to display a membership card on the terminal device 12, and includes, for example, a user ID. An instruction to permit display of a membership card may be considered to be a type of instruction to send identification information.

[0037] The server processing unit 113 performs various processes. For example, the various processes are processes for acquiring identification information from the server storage unit 111 in response to an instruction to permit display of the membership card. For example, the various processes are processes for acquiring identification information from the server storage unit 111 in response to an instruction to transmit the identification information.

[0038] The server transmitting unit 114 transmits various types of information to the terminal device 12. The various types of information are, for example, the identification information acquired by the server processing unit 113.

[0039] The storage unit 121 constituting the terminal device 12 may store various kinds of information, etc. The various kinds of information, etc. are, for example, size information. The size information is, for example, the screen size or screen resolution of the terminal device. The size information may be information having the screen size and screen resolution of the terminal device. Furthermore, the various kinds of information, etc. are, for example, a correspondence table of size information, code size information, and output direction. Details of the correspondence table will be described later. The code size information is information regarding the size of the code. The code size information is, for example, the number of pixels of thick lines and the number of pixels of thin lines constituting the barcode. The code size information is, for example, the vertical length and horizontal length of the code.

[0040] The reception unit 122 receives identification information for identifying information. The identification information may be any information that identifies information. Examples of the identification information include a user identifier for identifying a user, a product identifier for identifying a product, and a URL. Examples of the user identifier include a membership number and a user ID. Examples of the identification information include a numeric string, a character string, and the like, and the type of information does not matter. Here, reception usually refers to reception from the server device 11. However, reception is a concept that includes reception of information input from an input device such as a keyboard, a mouse, or a touch panel, transfer from other processing units, and reception of information read from a recording medium such as an optical disk, a magnetic disk, or a semiconductor memory.

[0041] The transmission unit 123 transmits various instructions, information, etc. to the server device 11. The various instructions, information, etc. are, for example, an instruction to transmit identification information.

[0042] The receiving unit 124 receives other information, which is information other than the identification information. The receiving unit 124 normally receives one or more pieces of other information from the server device 11. The other information is, for example, advertising information, news information indicating news, information for constituting a digital membership card, etc. The other information is, for example, a still image, a video, a character string, information combining these, etc., and the data type does not matter. The other information is, for example, given one or more attribute values. The one or more attribute values ​​are, for example, size information, shape information, etc. Note that the information for constituting a digital membership card is normally an image, but the data structure does not matter, such as XML, HTML, etc.

[0043] The acquisition unit 125 acquires size information of the terminal device 12. The acquisition unit 125 normally reads out the size information from the storage unit 121. The size information is, for example, the number of inches of the screen, the vertical and horizontal sizes of the screen, the screen resolution, a terminal device identifier for identifying the terminal device 12 (for example, the product number of the terminal device 12, etc.). The size information may be information that is the source for acquiring information regarding the screen size (for example, the terminal device identifier, etc.). The technology for acquiring size information is a publicly known technology. For example, a function for acquiring size information is provided by the OS as a library.

[0044] The generating unit 126 generates a code according to the size information. The code according to the size information is a code of a size corresponding to the size information. That is, the generating unit 126 generates a code according to the code size information corresponding to the size information. The generating unit 126 determines the number of pixels of the thick lines and the number of pixels of the thin lines of the barcode using, for example, the resolution of the screen and the actual size of the screen (for example, the vertical size and the horizontal size of the screen), and generates an image of a barcode having thick lines and thin lines corresponding to the number of pixels and having identification information embedded therein. Note that this code is a code from which the identification information can be read. The generating unit 126 usually generates an image of a code. It can be said that this image of the code is an image in which the identification information is embedded. It can also be said that this image of the code is an image having a size corresponding to the size information, for example. It can also be said that the code here is usually a barcode, but may be another code such as a QR code. It is sufficient that the identification information of the code is read by a code reader such as a barcode reader. Furthermore, the technology of generating a code by providing the identification information and the size information is a publicly known technology.

[0045] The acquiring means 1261 acquires code size information corresponding to the size information by using the size information. The acquiring means 1261, for example, uses the size information to determine the number of pixels of the thick line and the number of pixels of the thin line of the barcode. In this case, the number of pixels of the thick line and the number of pixels of the thin line are the code size information. The size acquired by the acquiring means 1261 includes, for example, the vertical length and the horizontal length of the code. However, the size may be either one of the vertical length or the horizontal length. The acquiring means 1261, for example, refers to a correspondence table between the size information and the code size information to acquire the code size information corresponding to the size information. The acquiring means 1261 may also acquire the code size information by substituting the acquired size information into an arithmetic expression having size information (for example, resolution and actual size of the screen) as a parameter and executing the arithmetic expression. In this case, the correspondence table between the size information and the code size information and the arithmetic expression are stored in the storage unit 121.

[0046] The generating means 1262 generates a code according to the code size information acquired by the acquiring means 1261. This code is a code from which the identification information accepted by the accepting unit 122 can be read.

[0047] The output unit 127 outputs the code generated by the generation unit 126. Output usually means display on the screen. The area where the code is output may be called the first area. The first area may be a predetermined position on the screen, or may be dynamically determined according to size information. The first area may be a part of an area of ​​other information such as a membership card.

[0048] The determination means 1271 determines the output direction of the code according to the size information. The determination means 1271 determines, for example, the output direction according to the size information, either the vertical direction or the horizontal direction. The determination means 1271 may determine, for example, a diagonal direction (the diagonal direction of the screen) as the output direction according to the size information. Here, the output direction is the direction in which the code is output relative to the screen. The output direction is, for example, "vertical", "horizontal", or "diagonal".

[0049] The output means 1272 outputs the code in the output direction determined by the determination means 1271. The output here usually means display on a screen.

[0050] The other information output unit 128 outputs other information, which is information other than the code, to a second area, which is an area within the screen of the terminal device 12. The second area is preferably an area other than the area where the output unit 127 outputs the code, but may overlap with the first area where the code is output, or may be included in the first area. The other information that is output is usually other information received by the receiving unit 124.

[0051] The other information output unit 128 outputs different information depending on the attribute of the second region. The other information output unit 128 usually selects information that matches the attribute of the second region and outputs it to the second region. The attribute of the second region here is, for example, size, shape (square, rectangle, vertical, horizontal, etc.), number of regions, etc.

[0052] Furthermore, when outputting information other than the code, the other information output unit 128 outputs the information in a different display mode depending on the attribute of the second region. Here, the other information output unit 128 normally outputs the information other than the code in a display mode corresponding to the attribute of the second region. Here, the different display modes include, for example, different sizes, different orientations, different background colors, etc.

[0053] It is preferable that the other information output unit 128 enlarges or reduces the other information before outputting it. It is preferable that the other information output unit 128 enlarges or reduces the other information before outputting it so as to fit the screen size indicated by the size information. That is, the other information output unit 128 may enlarge or reduce the other information before outputting it so as to fit the screen size indicated by the size information, and the output means 1272 may output the generated code. After being output, the code is read by a code reader, but the other information is usually only viewed by a person. Therefore, it is considered that it is not a big problem even if the other information is slightly blurred.

[0054] Furthermore, the other information output unit 128 may, for example, output an image of the membership card, and the output means 1272 may output the code as part of the image of the membership card (on top of the image of the membership card). Also, the other information output unit 128 may, for example, output an enlarged or reduced image of the membership card, and the output means 1272 may output the generated code as part of the image of the membership card (on top of the image of the membership card).

[0055] The server storage unit 111 and the storage unit 121 are preferably non-volatile recording media, but may also be realized as volatile recording media.

[0056] There is no restriction on the process by which information is stored in the server storage unit 111 etc. For example, information may be stored in the server storage unit 111 etc. via a recording medium, information transmitted via a communication line etc. may be stored in the server storage unit 111 etc., or information inputted via an input device may be stored in the server storage unit 111 etc.

[0057] Server receiving unit 112, acceptance unit 122, and receiving unit 124 are typically realized by wireless or wired communication means, but may also be realized by means for receiving broadcasts.

[0058] The server processing unit 113, the acquisition unit 125, the generation unit 126, the acquisition means 1261, the generation means 1262, and the determination means 1271 can usually be realized by an MPU, a memory, etc. The processing procedure of the server processing unit 113, etc. is usually realized by software, and the software is recorded in a recording medium such as a ROM. However, it may be realized by hardware (dedicated circuit).

[0059] Server transmitting unit 114 and transmitting unit 123 are usually realized by wireless or wired communication means, but may also be realized by broadcasting means.

[0060] The output unit 127, the output means 1272, and the other information output unit 128 may or may not include an output device such as a display. The output unit 127, etc. may be realized by driver software for an output device, or a combination of driver software for an output device and an output device, etc.

[0061] Next, a description will be given of the operation of the information system 1. First, an example of the operation of the server device 11 will be described.

[0062] The server receiving unit 112 of the server device 11 receives an instruction to transmit the identification information from the terminal device 12. Next, the server processing unit 113 acquires the identification information corresponding to the instruction to transmit the identification information from the server storage unit 111. Then, the server transmitting unit 114 transmits the identification information acquired by the server processing unit 113 to the terminal device 12. Note that the server transmitting unit 114 may also transmit other information stored in the server storage unit 111 to the terminal device 12.

[0063] Next, an example of the operation of the terminal device 12 will be described with reference to the flowchart of FIG.

[0064] (Step S301) The terminal device 12 judges whether or not an instruction to transmit the identification information has been accepted. If an instruction to transmit the identification information has been accepted, the process proceeds to step S302, and if an instruction to transmit the identification information has not been accepted, the process returns to step S301.

[0065] (Step S302) The transmitting unit 123 transmits an instruction to transmit the identification information to the server device 11.

[0066] (Step S303) Acceptor 122 judges whether or not identification information has been received from server device 11. If identification information has been received, the process proceeds to step S304, and if not, the process returns to step S303.

[0067] (Step S304) The receiving unit 124 judges whether or not other information has been received from the server device 11. If other information has been received, the process proceeds to step S306, and if not, the process proceeds to step S305.

[0068] (Step S305) The receiving unit 124 judges whether or not a timeout has occurred. If a timeout has occurred, the process proceeds to step S306, and if not, the process returns to step S304.

[0069] (Step S306) The acquiring unit 125 reads the size information from the storage unit 121.

[0070] (Step S307) The acquiring means 1261 acquires code size information corresponding to the size information read out in step S306.

[0071] (Step S308) The generating means 1262 generates a code according to the code size information determined in step S307, in which the identification information received in step S303 is embedded.

[0072] (Step S309) The determining means 1271 determines the output direction according to the size information or the code size information, and determines whether the output direction is vertical or horizontal.

[0073] (Step S310) The output means 1272 displays the code generated in step S308 on the screen in accordance with the output direction determined in step S309.

[0074] (Step S311) The other information output unit 128 judges whether or not a second area in which other information should be displayed exists within the screen of the terminal device 12. If a second area exists, the process proceeds to step S312, and if a second area does not exist, the process returns to step S301.

[0075] (Step S312) The other information output unit 128 judges whether or not other information has been received. If other information is present, the process proceeds to step S313, and if other information is not present, the process returns to step S301.

[0076] (Step S313) The other information output unit 128 outputs the received other information. Return to step S301. Note that it is preferable that the other information output unit 128 outputs the received one or more pieces of other information to one or more second areas according to the attribute of the second area. It is also preferable that the other information output unit 128 outputs the received one or more pieces of other information to one or more second areas in a display form according to the attribute of the second area.

[0077] In the flowchart of FIG. 3, the process ends when the power is turned off or an interrupt occurs to end the process.

[0078] The specific operation of the information system 1 in this embodiment will be described below. A conceptual diagram of the information system 1 is shown in Fig. 1. In the following specific examples, the code is a barcode. Furthermore, five specific examples will be described below.

[0079] Specific example 1 is a case where a size information management table is referenced and the size of the barcode is determined from the size information. Specific example 2 is a case where all or part of the size information is substituted into an arithmetic formula to determine the size of the barcode. Specific example 3 is a case where other information is also output, and the other information is information that constitutes a membership card. Specific example 4 is an example where only a barcode is displayed on a watch-type terminal with a small screen size. In other words, in Specific example 4, the other information cannot be displayed due to the small screen size. Specific example 5 is a case where two or more pieces of other information are also output, and one piece of other information is information that constitutes a membership card, and the other pieces of other information are advertising information. (Example 1)

[0080] Currently, the storage unit 121 holds a size information management table shown in FIG. 4. The size information management table is a correspondence table between size information, barcode code size information, and output direction. The size information management table also stores one or more records each having an "ID", "size information", "code size information", and "output direction". The "ID" is information for identifying a record. The "size information" has a "screen size" and a "resolution". The "screen size" "w1×h1" indicates a screen size with a width of "w1" and a height of "h1". The "resolution" "x1×y1" indicates a resolution of "x1×y1". The "code size information" also has a "thick line pixel count" and a "thin line pixel count". The "thick line pixel count" indicates the number of pixels of the thick line of the barcode, and the "thin line pixel count" indicates the number of pixels of the thin line of the barcode. The "horizontal" in the "output direction" indicates that the barcode is output horizontally, and the "vertical" indicates that the barcode is output vertically.

[0081] The size information management table may be the table shown in Fig. 5. In this case, "w1 x h1" in "size information" indicates that the screen size is width "w1" and height "h1". "a1 x b1" in "code size information" indicates that the barcode width is "a1" and the barcode height is "b1". "Horizontal" in "output direction" indicates that the barcode is output horizontally, and "vertical" indicates that the barcode is output vertically.

[0082] It is also assumed that server storage unit 111 of server device 11 stores the member information management table shown in FIG. 6. The member information management table is a table for managing member information. The member information management table stores one or more records each having an "ID", "user ID", "password", and "identification information". "ID" is information for identifying a record. "User ID" is information for identifying a user, and is used during login authentication to server device 11. "Password" is used together with "user ID" during login authentication. It is assumed here that "identification information" is a member number.

[0083] In this situation, it is assumed that user A inputs an instruction to transmit identification information having a user ID "1234" and a password "abcd" to his / her smartphone. Next, the transmitting unit 123 transmits the instruction to transmit the identification information to the server device 11. Note that the smartphone is a type of the terminal device 12.

[0084] Next, the server receiving unit 112 of the server device 11 receives an instruction to transmit the identification information from the terminal device 12. Next, the server processing unit 113 acquires the identification information "12345670" that is paired with the user ID "1234" and password "abcd" included in the instruction to transmit the identification information from the member information management table (FIG. 6). Then, the server transmitting unit 114 transmits the identification information acquired by the server processing unit 113 to the terminal device 12.

[0085] Next, the accepting unit 122 of the terminal device 12 receives the identification information “12345670” from the server device 11. In addition, the receiving unit 124 determines that no other information has been received from the server device 11.

[0086] Next, the acquisition unit 125 reads out the screen size “w2×h2” and the resolution “x2×y2” from the storage unit 121.

[0087] Next, the obtaining means 1261 obtains the code size information "a2, b2" corresponding to the screen size "w2×h2" and the resolution "x2×y2" from the size information management table (FIG. 4).

[0088] Next, the generating means 1262 generates a barcode corresponding to the code size information "a2, b2" acquired by the acquiring means 1261, and having the identification information "12345670" embedded therein. Note that the barcode corresponding to the code size information "a2, b2" is a barcode with a thick line pixel count of "a2" and a thin line pixel count of "b2". Note that the processing performed by the generating means 1262 is well known, and therefore a detailed description thereof will be omitted.

[0089] Next, the determining means 1271 obtains the output direction "portrait" included in the record with ID "2" that corresponds to the obtained size information from the size information management table (FIG. 4).

[0090] Next, the output means 1272 displays the generated barcode on the screen in accordance with the output direction "vertical." An example of such a display is shown in FIG.

[0091] The other information output unit 128 determines that the second area exists on the screen of the terminal device 12. This is because there is an empty area on the screen. The other information output unit 128 also determines that no other information has been received. This is because no other information has been received. And the other information is not displayed on the screen. (Example 2)

[0092] Now, let us assume that the storage unit 121 stores the arithmetic expressions "a=f(w,h,x,y)" and "b=g(w,h,x,y)" that determine the number of pixels of thick lines (a) and the number of pixels of thin lines (b) of a barcode. Furthermore, "f" and "g" are functions with parameters w (screen width), h (screen height), and resolution (x×y). However, "f" and "g" may also be functions with parameters of one to three of w, h, x, and y.

[0093] It is also assumed that server storage unit 111 of server device 11 stores the member information management table shown in FIG.

[0094] In this situation, it is assumed that user A inputs an instruction to transmit identification information having a user ID “1234” and a password “abcd” to his / her smartphone. Next, the transmitting unit 123 transmits the instruction to transmit the identification information to the server device 11.

[0095] Next, the server receiving unit 112 of the server device 11 receives an instruction to transmit the identification information from the terminal device 12. Next, the server processing unit 113 acquires the identification information "12345670" that is paired with the user ID "1234" and password "abcd" included in the instruction to transmit the identification information from the member information management table (FIG. 6). Then, the server transmitting unit 114 transmits the identification information acquired by the server processing unit 113 to the terminal device 12.

[0096] Next, the accepting unit 122 of the terminal device 12 receives the identification information “12345670” from the server device 11. In addition, the receiving unit 124 determines that no other information has been received from the server device 11.

[0097] Next, the acquiring unit 125 reads out the size information “w2×h2” and “x2×y2” from the storage unit 121.

[0098] Next, the acquisition means 1261 acquires "f(w2,h 2, x2, y2)" and obtains "a2". 2, Let's say you perform "x2, y2)" and obtain "b2".

[0099] Next, the generating means 1262 generates the code size information “a 2, b2" and generates a barcode with the identification information "12345670" embedded.

[0100] Next, the determining means 1271 determines the output direction to be "vertical" based on the size information and the size of the barcode, because the entire area of ​​the barcode would not be displayed in the horizontal direction.

[0101] Next, the output means 1272 displays the generated barcode on the screen in accordance with the output direction "vertical." An example of such a display is shown in FIG.

[0102] The other information output unit 128 determines that the second area exists within the screen of the terminal device 12. The other information output unit 128 also determines that the received other information does not exist. Then, the other information is not displayed on the screen. (Example 3)

[0103] It is now assumed that the server storage unit 111 of the server device 11 stores an image of the membership card shown in Fig. 8. Also, the storage unit 121 of the terminal device 12 holds the size information management table shown in Fig. 4.

[0104] In this situation, assume that user A inputs an instruction to transmit a membership card having user ID “1234” and password “abcd” to his / her smartphone. Next, transmission unit 123 transmits the instruction to transmit the membership card to server device 11.

[0105] Next, the server receiving unit 112 of the server device 11 receives an instruction to send the membership card from the terminal device 12. Next, the server processing unit 113 obtains, from the member information management table (FIG. 6), the identification information "12345670" that pairs with the user ID "1234" and password "abcd" contained in the instruction to send the membership card. Then, the server transmitting unit 114 transmits the identification information "12345670" obtained by the server processing unit 113 to the terminal device 12. Furthermore, it is assumed that the server transmitting unit 114 transmits an image of the membership card in FIG. 8 to the terminal device 12.

[0106] Next, the acceptance unit 122 of the terminal device 12 receives the identification information "12345670" from the server device 11. In addition, the reception unit 124 receives from the server device 11 the image of the membership card in FIG.

[0107] Next, the acquiring unit 125 reads out the size information “w2×h2” and “x2×y2” from the storage unit 121.

[0108] Next, the obtaining unit 1261 obtains the code size information "a2, b2" corresponding to the size information "w2 x h2" and "x2 x y2" from the size information management table (FIG. 4).

[0109] Next, the generating means 1262 generates the code size information “a 2, b2" and generates a barcode with the identification information "12345670" embedded.

[0110] Next, the determining means 1271 obtains the output direction "portrait" corresponding to the obtained size information from the size information management table (FIG. 4).

[0111] Next, the output means 1272 displays the generated barcode on the screen according to the output direction "vertical".

[0112] Further, the other information output unit 128 uses the size information "w2×h2" and "x2×y2" to enlarge the image of the membership card in FIG. 8 received so that it is displayed across the entire screen of the terminal device 12. The other information output unit 128 then displays the enlarged image of the membership card vertically across the entire screen of the terminal device 12. It is to be noted that the other information output unit 128 outputs the image of the membership card so that the image of the membership card becomes the background of the barcode. An example of such output is shown in FIG. 8.

[0113] In this specific example, after displaying the enlarged image of the membership card, the barcode may be displayed at a predetermined position within the membership card. The other information output unit 128 may also combine the enlarged image of the membership card with the barcode to form a single image and output the single image. In other words, the display order and display algorithm of the other information and the code are not important. (Example 4)

[0114] It is now assumed that the server storage unit 111 of the server device 11 stores an image of the membership card shown in Fig. 8. Also, the storage unit 121 of the terminal device 12 holds the size information management table shown in Fig. 4.

[0115] Assume that user A inputs an instruction to transmit a membership card having a user ID "1234" and a password "abcd" into his / her smartwatch (watch-type terminal). Next, the transmission unit 123 transmits the instruction to transmit the membership card to the server device 11. Note that the smartwatch (watch-type terminal) is an example of the terminal device 12.

[0116] Next, the server receiving unit 112 of the server device 11 receives an instruction to send the membership card from the terminal device 12. Next, the server processing unit 113 obtains, from the member information management table (FIG. 6), the identification information "12345670" that pairs with the user ID "1234" and password "abcd" contained in the instruction to send the membership card. Then, the server transmitting unit 114 transmits the identification information "12345670" obtained by the server processing unit 113 to the terminal device 12. Furthermore, it is assumed that the server transmitting unit 114 transmits an image of the membership card in FIG. 8 to the terminal device 12.

[0117] Next, the acceptance unit 122 of the terminal device 12 receives the identification information "12345670" from the server device 11. In addition, the reception unit 124 receives the image of the membership card of FIG.

[0118] Next, the acquiring unit 125 reads out the size information “w3×h3” and “x3×y3” from the storage unit 121.

[0119] Next, the obtaining means 1261 obtains the code size information "a3, b3" corresponding to the size information "w3×h3" and "x3×y3" from the size information management table (FIG. 4).

[0120] Next, the generating means 1262 generates a barcode that corresponds to the size "a3, b3" acquired by the acquiring means 1261 and has the identification information "12345670" embedded therein.

[0121] Next, the determining means 1271 acquires the output direction "landscape" corresponding to the size information "w3, h3" from the size information management table (FIG. 4).

[0122] Next, the output means 1272 displays the generated barcode on the screen in accordance with the output direction “landscape.” An example of such a display is shown in FIG.

[0123] Next, the other information output unit 128 determines that the second area does not exist on the screen of the terminal device 12. In other words, the other information output unit 128 determines that the area other than the first area in which the barcode is displayed is not an area equal to or larger than the threshold required to display the other information (this is equivalent to "the second area does not exist"). Then, the other information output unit 128 does not display the image of the membership card. (Example 5)

[0124] Assume now that the server storage unit 111 of the server device 11 stores an image of the membership card shown in Fig. 8. Assume also that the server storage unit 111 stores the advertisement information management table shown in Fig. 10. The advertisement information management table stores one or more records having an "ID," "advertising information," and "attribute value." The "attribute value" here is shape, but it may be other types of attribute values ​​(for example, size, color, genre of advertisement information, etc.).

[0125] In this situation, assume that user A inputs an instruction to transmit a membership card having user ID “1234” and password “abcd” to his / her smartphone. Next, transmission unit 123 transmits the instruction to transmit the membership card to server device 11.

[0126] Next, the server receiving unit 112 of the server device 11 receives an instruction to send the membership card from the terminal device 12. Next, the server processing unit 113 acquires the identification information "12345670" that pairs with the user ID "1234" and password "abcd" contained in the instruction to send the membership card from the member information management table (FIG. 6). Then, the server transmitting unit 114 transmits the identification information "12345670" acquired by the server processing unit 113 to the terminal device 12. Also, it is assumed that the server transmitting unit 114 transmits an image of the membership card of FIG. 8 to the terminal device 12. Furthermore, it is assumed that the server transmitting unit 114 transmits one or more pairs of advertisement information and attribute values ​​stored in the advertisement information management table of FIG. 10 (for example, information of all pairs in the advertisement information management table) to the terminal device 12.

[0127] Next, the accepting unit 122 of the terminal device 12 receives the identification information "12345670" from the server device 11. In addition, the receiving unit 124 receives the image of the membership card in Fig. 8 (a type of other information) from the server device 11. Furthermore, the receiving unit 124 receives one or more pairs of advertising information and attribute values.

[0128] Next, the acquiring unit 125 reads out the size information “w2×h2” and “x2×y2” from the storage unit 121.

[0129] Next, the obtaining unit 1261 obtains the barcode size "a2, b2" corresponding to the size information "w2×h2" and "x2×y2" from the size information management table (FIG. 4).

[0130] Next, the generating means 1262 generates a barcode that corresponds to the size "a2, b2" acquired by the acquiring means 1261 and has the identification information "12345670" embedded therein.

[0131] Next, the determining means 1271 acquires the output direction "vertical" corresponding to the size information "w2, h2" from the size information management table (FIG. 4).

[0132] Next, the output means 1272 displays the generated barcode on the screen according to the output direction "vertical".

[0133] Further, using the size information "w2×h2" and "x2×y2", other information output unit 128 enlarges the image of the membership card in Fig. 8 received so that it is displayed across the entire screen of terminal device 12. Then, other information output unit 128 displays the enlarged image of the membership card vertically across the entire screen of terminal device 12. It is to be noted that other information output unit 128 outputs the image of the membership card so that the image of the membership card becomes the background of the barcode.

[0134] Further, the other information output unit 128 judges that a second area exists within the screen of the terminal device 12. Here, the second area is assumed to be area 1001 in the image of the membership card.

[0135] Next, it is assumed that the other information output unit 128 determines that there is received other information.

[0136] Next, the other information output unit 128 acquires the attribute value of the second region, which is "vertical". Note that the attribute value of the second region is the shape of the region, which is either "vertical", "horizontal", or "square".

[0137] Next, the other information output unit 128 acquires advertising information (book image) corresponding to the attribute value "portrait" of the second area from the received advertising information. Then, the other information output unit 128 displays the advertising information in the second area 1001. An example of such output is shown in FIG. 11.

[0138] As described above, according to this embodiment, an easily readable code can be displayed on the screen.

[0139] Furthermore, according to this embodiment, a clear code can be displayed by effectively utilizing the screen of the terminal device, and information other than the code can also be displayed, making it easier to read the displayed code and enabling effective use of the screen.

[0140] In this embodiment, when the size information management table in the above specific example is that of Fig. 5, for example, the screen size is acquired, the size of the barcode is determined to be the code size information paired with the size information that matches the screen size, and a barcode with embedded identification information and a size that corresponds to the size of the barcode is generated. Then, the generated barcode is output in the direction indicated by the output direction.

[0141] Furthermore, the processing in this embodiment may be realized by software. This software may be distributed by software download or the like. This software may be recorded on a recording medium such as a CD-ROM and distributed. This also applies to other embodiments in this specification. The software for realizing the terminal device 12 in this embodiment is a program as follows. That is, this program is a program for making a computer function as a reception unit that receives identification information for identifying information, an acquisition unit that acquires size information related to one or more pieces of information of the screen size and the screen resolution of the terminal device, a generation unit that generates a code from which the identification information can be read and has a size corresponding to the size information, and an output unit that outputs the code generated by the generation unit.

[0142] In addition, in the above program, it is preferable that the generation unit is a program that causes a computer to function by including an acquisition means that uses the size information to acquire code size information regarding the size of the code corresponding to the size information, and a generation means that generates code according to the code size information acquired by the acquisition means.

[0143] In addition, in the above program, it is preferable that the output unit is a program that causes a computer to function by including a determination means for determining whether the output direction is vertical or horizontal, depending on the size information, and an output means for outputting the code in accordance with the output direction.

[0144] Furthermore, it is preferable that the above program further causes the computer to function as an other information output unit that outputs other information, which is information other than the code, to a second area, which is an area within the screen of the terminal device.

[0145] In the above program, it is preferable that the other information output section is a program that causes a computer to function as a program that enlarges or reduces the other information and outputs it.

[0146] In the above program, it is preferable that the other information output section is a program that causes a computer to function as outputting different information depending on an attribute of the second region.

[0147] In addition, in the above program, it is preferable that the other information output unit is a program that causes a computer to function such that when outputting information other than the code, the other information output unit outputs the information in a different display manner depending on the attributes of the second area.

[0148] 12 shows the appearance of a computer that executes the programs described in this specification to realize the terminal device 12 and the like of the various embodiments described above. The above-mentioned embodiments can be realized by computer hardware and a computer program executed thereon. FIG. 12 is an overview of this computer system 300, and FIG. 13 is a block diagram of the system 300.

[0149] In FIG. 12, computer system 300 includes a computer 301 which includes a CD-ROM drive 3012 , a keyboard 302 , a mouse 303 , and a monitor 304 .

[0150] 13, computer 301 includes a CD-ROM drive 3012, an MPU 3013, a bus 3014 connected to the CD-ROM drive 3012 and MPU 3013, a ROM 3015 for storing programs such as a boot-up program, a RAM 3016 connected to MPU 3013 for temporarily storing instructions of application programs and providing a temporary storage space, and a hard disk 3017 for storing application programs, system programs, and data. Although not shown here, computer 301 may further include a network card for providing a connection to a LAN.

[0151] A program for causing computer system 300 to execute the functions of terminal device 12 or the like of the above-mentioned embodiment may be stored on CD-ROM 3101, inserted into CD-ROM drive 3012, and further transferred to hard disk 3017. Alternatively, the program may be transmitted to computer 301 via a network (not shown) and stored on hard disk 3017. The program is loaded into RAM 3016 when executed. The program may be loaded directly from CD-ROM 3101 or the network.

[0152] The program does not necessarily include an operating system (OS) or a third party program that causes the computer 301 to execute the functions of the terminal device 12 of the above-mentioned embodiment. The program only needs to include an instruction portion that calls appropriate functions (modules) in a controlled manner to obtain a desired result. How the computer system 300 operates is well known, and a detailed description will be omitted.

[0153] The program may be executed by a single computer or a plurality of computers. That is, the program may be executed by a centralized processing or a distributed processing.

[0154] Furthermore, in each of the above embodiments, it goes without saying that two or more communication means present in one device may be physically realized by one medium.

[0155] Furthermore, in each of the above embodiments, each process (each function) may be realized by centralized processing in a single device (system), or may be realized by distributed processing in a plurality of devices.

[0156] 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. [Industrial Applicability]

[0157] As described above, the terminal device of the present invention can display clear codes by making effective use of the screen, making it easier to read the codes displayed on the screen, and is therefore useful as a terminal device for displaying codes, etc. [Explanation of symbols]

[0158] 1. Information Systems 11 Server equipment 12 Terminal Equipment 111 Server Storage 112 Server Reception Unit 113 Server Processing Unit 114 Server transmission unit 121 Storage area 122 Reception 123 Transmitter 124 Receiving section 125 Acquisition Department 126 Generation part 127 Output section 128 Other information output section 1261 Acquisition method 1262 Generation means 1271 Decision-making means 1272 Output Method

Claims

1. A terminal device outputs a code having embedded therein identification information for identifying a membership card, the code being read by a code reader. A program that causes the terminal device to display the code and other information other than the code on a screen of the terminal device, A program characterized by displaying a membership card having the code and the other information when the terminal device is a smartphone, and displaying a membership card having the code but not the other information when the terminal device is a smart watch.

2. A code output method in a terminal device that outputs a code having embedded therein identification information for identifying a membership card and that is read by a code reader, comprising the steps of: receiving an instruction to output the membership card; A code output method comprising the steps of: displaying a membership card having the code and other information other than the code if the terminal device is a smartphone; and displaying a membership card having the code but not the other information if the terminal device is a smart watch.

Citation Information

Patent Citations

  • Bar code display reader

    JP1992031983A

  • Portable unit displaying bar code of card and method and system for managing point of card

    JP2003085499A

  • Member registration system, member registration device, and member registration method

    JP2014110011A

  • Information processor and control method

    JP2015090570A

  • Terminal device, display control method and program

    JP2015219560A