Graphic code display method and device, electronic equipment and computer readable storage medium
By fusing the original code image color values of multiple graphic codes, the target code image color value is generated and the target graphic code is displayed, which solves the problem of cumbersome operation of displaying multiple graphic codes and improves display efficiency and information transmission effect.
Patent Information
- Application Number
- CN202210575021.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-05-24
AI Technical Summary
In the prior art, the display operation of multiple graphic codes is cumbersome, affecting display efficiency and user experience.
By acquiring the original code image color values of at least two original graphic codes from the user, performing a fusion process, generating a fused target code image color value, and displaying the target graphic code based on the target code image color value, the fused color value can identify various parameter information.
This technology enables the display of multiple parameter information through a single graphic code, improving the efficiency of graphic code display and the effect of parameter information transmission, and enhancing operational convenience.
Smart Images

Figure CN114911446B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer technology, in particular, the present application relates to a kind of graphic code display method, device, electronic equipment and computer readable storage medium. BACKGROUND
[0002] With the development of information technology, graphic code for recording or identifying information is increasingly widely used. Among them, graphic code can include one-dimensional code or two-dimensional code and so on. For example, one-dimensional code can be usually applied to record book information, commodity information and so on;Two-dimensional code can be applied to identify health information, electronic payment information and so on. And in the related art, when the information of multiple graphic codes needs to be used, the display operation of graphic code is more cumbersome;For example, first, the first graphic code is obtained from the first application, and the first graphic code is displayed;Then, the second graphic code is obtained from the second application, and the second graphic code is displayed. SUMMARY
[0003] The purpose of the present application is to at least solve one of the above technical defects, in particular, the technical defect that is not convenient for displaying multiple graphic codes.
[0004] According to one aspect of the present application, a graphic code display method is provided, the method comprising: obtaining at least two original graphic codes of a user, determining the original code color value of the original graphic code;Wherein the original code color value of each original graphic code identifies different parameter information;
[0005] The original code color value of at least two original graphic codes is fused to obtain the fused target code color value;
[0006] According to the target code color value, the target graphic code is displayed.
[0007] Optionally, the original code color value of at least two original graphic codes is fused to obtain the fused target code color value, comprising:
[0008] According to the preset fusion corresponding relationship, the original code color value of at least two original graphic codes is fused to obtain the target code color value;
[0009] Wherein, the target code color value includes single color color value;Or, the target code color value includes at least two mixed color color values corresponding to the original code color value.
[0010] Optionally, when the target code color value includes single color color value,
[0011] If the original code pattern color values of at least two original graphic codes respectively include a first color value, the target code pattern color value includes the first color value.
[0012] If the original code pattern color value of at least one original graphic code includes a second color value, the target code pattern color value includes the second color value.
[0013] If the original code pattern color values of at least two original graphic codes respectively include the first color value and a third color value, the target code pattern color value includes the third color value.
[0014] Optionally, the target code pattern color value includes at least two mixed color values corresponding to the original code pattern color values,
[0015] The at least two color values are distributed in a gradient manner on the target graphic code.
[0016] The gradient distribution direction includes at least one of a horizontal direction, a vertical direction, a diagonal direction, and a center line direction.
[0017] Optionally, before displaying the target graphic code, the method further includes:
[0018] Respectively analyzing at least two original graphic codes to obtain user feature information, and generating a code pattern graphic of the target graphic code based on the user feature information.
[0019] The displaying the target graphic code according to the target code pattern color value includes:
[0020] Displaying the target graphic code based on the code pattern graphic and the target code pattern color value.
[0021] Optionally, the displaying the target graphic code includes:
[0022] Indicating the client to display the target graphic code through a first display layer,
[0023] and / or
[0024] Indicating the client to display the original graphic code through a second display layer.
[0025] The first display layer is displayed above the second display layer.
[0026] Optionally, the indicating the client to display the original graphic code through the second display layer includes:
[0027] Receiving a first trigger operation to indicate the client to display the original graphic code through the second display layer.
[0028] Optionally, the original graphic code further comprises user feature information.
[0029] The display target graphic code comprises:
[0030] The display target graphic code and the user feature information are displayed.
[0031] Optionally, after the target code graphic color value after fusion is obtained, the method further comprises:
[0032] The user's permission indication information is generated based on the target code graphic color value.
[0033] The permission indication information is sent to the client.
[0034] Optionally, the at least two original graphic codes of the user are obtained by:
[0035] The original graphic codes are obtained from a preset database.
[0036] and / or
[0037] The original graphic codes reported by the client are received.
[0038] According to another aspect of the present application, a graphic code display device is provided, which comprises:
[0039] A determination module is configured to obtain at least two original graphic codes of a user, and determine original code graphic color values of the original graphic codes; wherein the original code graphic color values of each of the original graphic codes identify different parameter information.
[0040] A fusion module is configured to perform fusion processing on the original code graphic color values of the at least two original graphic codes, to obtain a target code graphic color value after fusion.
[0041] A display module is configured to display a target graphic code according to the target code graphic color value after fusion.
[0042] According to another aspect of the present application, an electronic device is provided, which comprises:
[0043] One or more processors;
[0044] A memory;
[0045] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the graphic code display method of any one of the first aspect of the present application.
[0046] For example, the third aspect of the present application provides a computing device, comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface are in communication with each other through the communication bus;
[0047] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the operations corresponding to the graphical code display method shown in the first aspect of the present application.
[0048] According to another aspect of the present application, a computer readable storage medium is provided, and the computer program is executed by the processor to implement the graphical code display method according to any one of the first aspect of the present application.
[0049] For example, the fourth aspect of the present application embodiment provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the program is executed by the processor to implement the graphical code display method shown in the first aspect of the present application.
[0050] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementation manners of the first aspect.
[0051] The technical scheme provided by the present application has the beneficial effects that:
[0052] In the present application embodiment, at least two original graphical codes of a user are acquired, and original code graph color values of the original graphical codes are determined. The original code graph color values of the at least two original graphical codes are fused to obtain fused target code graph color values. The target graphical code is displayed according to the target code graph color values. The fused target code graph color values can identify at least two parameter information. In this way, multiple parameter information can be displayed through one graphical code. When multiple parameter information is transmitted between the electronic device and the server, multiple graphical codes do not need to be repeatedly switched, the graphical code display efficiency and the parameter information transmission effect are improved, and the convenience of graphical code operation is improved. BRIEF DESCRIPTION OF DRAWINGS
[0053] In order to more clearly illustrate the technical scheme in the present application embodiment, the drawings needed in the description of the present application embodiment will be briefly introduced.
[0054] Figure 1 A system architecture diagram of a graphical code display method provided in the present application embodiment;
[0055] Figure 2A flowchart of a graphical code display method provided by an embodiment of the present application is shown in FIG. 1.
[0056] Figure 3 A flowchart of a graphical code display method provided by an embodiment of the present application is shown in FIG. 1.
[0057] Figure 4 An application scenario diagram of a graphical code display method provided by an embodiment of the present application is shown in FIG. 2.
[0058] Figure 5 A structural diagram of a graphical code display device provided by an embodiment of the present application is shown in FIG. 3.
[0059] Figure 6 A structural diagram of an electronic device for graphical code display provided by an embodiment of the present application is shown in FIG. 4. DETAILED DESCRIPTION
[0060] Embodiments of the present application will be described below in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the accompanying drawings are exemplary descriptions of the technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
[0061] Those skilled in the art can understand that the singular forms "a", "an" and "the" used herein include plural forms unless specifically stated otherwise. It should be further understood that the terms "comprise" and "include" used by the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technology. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or can mean that the element and the other element are connected through an intermediate element. In addition, "connected" or "coupled" used herein can include wireless connection or wireless coupling. The term "and / or" used herein means that at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0062] To make the purposes, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.
[0063] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0064] Firstly, in combination with Figure 1 It is a system architecture diagram of a graphic code display method provided by the embodiment of the application. The system can include a server 101 and a terminal cluster, wherein the server 101 can be regarded as a background server for providing graphic code display processing.
[0065] The terminal cluster can include a terminal 102, a terminal 103, a terminal 104, and the like, wherein a client supporting graphic code display is installed in the terminals. There can be a communication connection between the terminals, for example, there is a communication connection between the terminal 102 and the terminal 103, and there is a communication connection between the terminal 103 and the terminal 104.
[0066] Meanwhile, the server 101 can provide services for the terminal cluster through a communication connection function, and any terminal in the terminal cluster can have a communication connection with the server 101, for example, there is a communication connection between the terminal 102 and the server 101, and there is a communication connection between the terminal 103 and the server 101, wherein the above communication connection is not limited to the connection mode, and can be directly or indirectly connected through a wired communication mode, or can be directly or indirectly connected through a wireless communication mode, or can be connected through other modes.
[0067] The network of the above communication connection can be a wide area network or a local area network, or a combination of the two. The application does not limit here.
[0068] The graphic code display method of the embodiment of the application can be executed on the server side or on the terminal side, and the execution subject is not limited in the embodiment of the application. At least two original graphic codes of a user are obtained, the original code graph color value of the original graphic code is determined, fusion processing is performed on the original code graph color value of at least two original graphic codes to obtain a fused target code graph color value, and a target graphic code is displayed according to the target code graph color value. The fused target code graph color value can identify at least two kinds of parameter information, so that multiple parameter information can be displayed through one graphic code, and when multiple parameter information is transmitted between an electronic device and a server, multiple graphic codes do not need to be repeatedly switched, the graphic code display efficiency and the transmission effect of the parameter information are improved, and the convenience of graphic code operation is improved.
[0069] The method provided in the embodiments of the present application can be executed by a computer device, which includes but is not limited to a terminal (also including the user terminal described above) or a server (also including the server 101 described above). The server described above can be a stand-alone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms. The terminal described above can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like, but is not limited thereto. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited in the present application.
[0070] Of course, the method provided in the embodiments of the present application is not limited to the application scenarios shown above, but can also be applied to other possible application scenarios, which are not limited in the embodiments of the present application. The functions that can be achieved by the devices in the application scenarios shown above will be described together in subsequent method embodiments, and will not be described too much here. Figure 1 Figure 1 Of course, the method provided in the embodiments of the present application is not limited to the application scenarios shown above, but can also be applied to other possible application scenarios, which are not limited in the embodiments of the present application. The functions that can be achieved by the devices in the application scenarios shown above will be described together in subsequent method embodiments, and will not be described too much here.
[0071] The embodiments of the present application provide a possible implementation manner, which can be executed by any electronic device. Optionally, any electronic device can be a server device with a graphic code display capability, or a device or chip integrated on the device. As shown in the Figure 2 The method provided in the embodiments of the present application includes the following steps:
[0072] Step S201: Obtain at least two original graphic codes of a user, and determine original code graph color values of the original graphic codes.
[0073] Each original code graph color value of each original graphic code identifies different parameter information.
[0074] Optionally, the embodiments of the present application can be applied to the technical field of computer technology; for example, can be applied to an application scenario of displaying at least two graphic codes; wherein the graphic code can include the original graphic code in the embodiments of the present application.
[0075] Specifically, the original graphic code can include any graphic code; wherein the graphic code can be a geometric figure with information recorded and distributed according to a specific rule. As an example, the original graphic code can include a one-dimensional code, a two-dimensional code, and the like.
[0076] Optionally, in the embodiment of the present application, the original graphical code can record user characteristic information; for example, the user characteristic information can include static characteristic information and dynamic characteristic information of the user. The static characteristic information is, for example, information such as the name, gender, and ID number of the user; the dynamic characteristic information is, for example, information such as the health status information, location information, and travel information of the user.
[0077] In addition, each original graphical code has an original code pattern color value; the original code pattern color value is the color value of the original graphical code. Optionally, the original code pattern color value can include color values of various colors, for example, the original code pattern color value can include a color value of red, a color value of yellow, a color value of green, and the like; the embodiment of the present application does not limit this.
[0078] In the embodiment of the present application, the original code pattern color value of each original graphical code identifies different parameter information. The parameter information can include parameter information of the user; for example, the parameter information of the user is, for example, health status information, location information, and travel information of the user.
[0079] Taking the original graphical code as an example of a health information code used to identify health status, the original code pattern color value of the health information code can include a color value of red, a color value of green, and a color value of yellow; that is, the health information code can be red, green, or yellow. When the health information code is red, it indicates that there is a high risk (for example, a risk of suffering from a certain disease) in the health status; when the health information code is yellow, it indicates that there is a low risk in the health status; and when the health information code is green, it indicates that the health status is good, that is, there is no risk. Taking the original graphical code as an example of a location information code used to identify location information, the original code pattern color value of the location information code can include a color value of red, a color value of green, and a color value of yellow; that is, the location information code can be red, green, or yellow. When the location information code is red, it indicates that the location of the user is within the range of region A; when the location information code is yellow, it indicates that the location of the user is within the range of region B; and when the location information code is green, it indicates that the location of the user is within the range of region C, and the like.
[0080] Optionally, in the embodiment of the present application, the original graphical code of the user can be obtained from a preset database; or it can also be obtained by receiving a report from a client, and the like.
[0081] In an actual scenario, the at least two original graphic codes of the user can be obtained from the same database, or can be obtained from different databases, for example, a first original graphic code can be obtained from a first database, and a second original graphic code can be obtained from a second database, and the like. In addition, when the original graphic codes are obtained through reporting by the receiving client, the at least two original graphic codes can be located in the same application of the client. In addition, the at least two original graphic codes can also be located in different applications of the client, for example, a first original graphic code is located in a first application, and a second original graphic code is located in a second application.
[0082] Step S202: performing fusion processing on the original code graph color values of the at least two original graphic codes to obtain target code graph color values after fusion.
[0083] Since there are at least two original graphic codes, and the original code graph color values of each original graphic code identify different parameter information, when displaying the parameter information of the user based on the original code graph color values, at least two original graphic codes need to be displayed, that is, multiple original graphic codes need to be displayed. In this way, when multiple original graphic codes are displayed on one display page, the displayed original graphic codes are small, which affects the display effect; when each original graphic code is sequentially displayed through multiple pages, more time is consumed, which causes low efficiency of displaying the graphic codes; and the above display methods all affect the user experience.
[0084] In the embodiments of the present application, fusion processing can be performed on the original code graph color values of the at least two original graphic codes to obtain target code graph color values after fusion, so as to display based on the target code graph color values.
[0085] The target code graph color value is a color value obtained by performing fusion processing on the original code graph color values of the at least two original graphic codes. It can be understood that the target code graph color value can be used to identify parameter information determined by the original code graph color values of the at least two original graphic codes together.
[0086] Optionally, the original code graph color values can be fused according to a preset fusion corresponding relationship to obtain the target code graph color values.
[0087] The target code graph color value can include two cases: the target code graph color value includes a single color value; or the target code graph color value includes at least two mixed color values corresponding to the original code graph color values.
[0088] Case one: when the target code graph color value can include a single color value, as a first example, the following fusion scenario is described:
[0089] Taking the case of two original pattern codes, the two original pattern codes are health information code and location information code respectively; the original code pattern color value of the health information code can include the color value of red, the color value of green, the color value of yellow; that is, the health information code can be red, green, yellow. Among them, when the health information code is red, it indicates that the health status has a greater risk (for example, the risk of suffering from a certain disease); when the health information code is yellow, it indicates that the health status has a smaller risk; when the health information code is green, it indicates that the health status is good, that is, no risk. The original code pattern color value of the location information code can include the color value of red, the color value of green, the color value of yellow; that is, the location information code can be red, green, yellow. When the location information code is red, it indicates that the user's location is within the A regional range; when the location information code is yellow, it indicates that the user's location is within the B regional range; when the location information code is green, it indicates that the user's location is within the C regional range.
[0090] According to the preset fusion corresponding relationship, when the original code pattern color values of the health information code and the location information code are both green color values, the target code pattern color value can be a green color value; in this case, the target code pattern color value, that is, the green color value, indicates that the user's health status is good and the user's location is within the C regional range.
[0091] When the original code pattern color value of the health information code is a red color value and the original code pattern color value of the location information code is a yellow color value, the target code pattern color value can be a red color value; in this case, the target code pattern color value, that is, the red color value, indicates that the user's health status has a greater risk and the user's location is within the B regional range.
[0092] When the original code pattern color values of the health information code and the location information code are green color value and yellow color value respectively, the target code pattern color value is yellow color value. In this case, the target code pattern color value, that is, the yellow color value, indicates that the user's health status has a smaller risk and the user's location is within the B regional range.
[0093] Case two: when the target code pattern color value includes at least two mixed color values corresponding to the original code pattern color value, still combined with the first example for description:
[0094] For example, when the original code pattern color value of the health information code is a green color value and the original code pattern color value of the location information code is a yellow color value, the target code pattern color value can include a green color value and a yellow color value. In this case, the target code pattern color value indicates that the user's health status is good and the user's location is within the B regional range.
[0095] The two color values included in the target code pattern color value can be distributed in a gradient manner on the target graphical code after fusion processing, and the gradient distribution direction includes at least one of a horizontal direction, a vertical direction, a diagonal direction, and a center line direction.
[0096] Step S203: Display the target graphical code according to the target code pattern color value.
[0097] Specifically, the target graphical code is a graphical code after fusion processing. It can be understood that the color value of the target graphical code is the target code pattern color value.
[0098] Optionally, the code pattern of the target graphical code can be generated according to the user feature information recorded by the at least two original graphical codes. Specifically, the user feature information can be acquired by analyzing the at least two original graphical codes respectively, and the code pattern of the target graphical code can be generated based on the acquired user feature information. Since the code pattern of the target graphical code is generated based on the user feature information recorded by the at least two original graphical codes, it can be understood that the code pattern of the target graphical code is different from the code patterns of the at least two original graphical codes.
[0099] When the target graphical code is displayed, the target graphical code can be displayed based on the code pattern of the target graphical code and the target code pattern color value.
[0100] In the embodiments of the present application, at least two original graphical codes of a user are acquired, and original code pattern color values of the original graphical codes are determined. Fusion processing is performed on the original code pattern color values of the at least two original graphical codes to obtain target code pattern color values after fusion. The target graphical code is displayed according to the target code pattern color values. The target code pattern color values after fusion can identify at least two parameter information. In this way, multiple parameter information can be displayed by one graphical code, and when multiple parameter information is transmitted between an electronic device and a server, multiple graphical codes do not need to be repeatedly switched, the graphical code display efficiency and the parameter information transmission effect are improved, and the convenience of graphical code operation is improved.
[0101] In an embodiment of the present application, the fusion processing on the original code pattern color values of the at least two original graphical codes to obtain the target code pattern color values after fusion includes:
[0102] According to a preset fusion corresponding relationship, the original code pattern color values of the at least two original graphical codes are fused to obtain the target code pattern color values.
[0103] The target code pattern color value includes a single color value; or the target code pattern color value includes at least two mixed color values corresponding to the original code pattern color values.
[0104] Specifically, the target code pattern color value is a color value obtained by fusing original code pattern color values of the at least two original graphic codes. It can be understood that the target code pattern color value can be used to identify parameter information determined by the original code pattern color values of the at least two original graphic codes.
[0105] Optionally, the original code pattern color values can be fused according to a preset fusion correspondence relationship to obtain the target code pattern color value.
[0106] The target code pattern color value can include two cases: the target code pattern color value includes a single color value; or the target code pattern color value includes at least two mixed color values corresponding to the original code pattern color values.
[0107] In an embodiment of the present application, when the target code pattern color value includes a single color value,
[0108] If the original code pattern color values of the at least two original graphic codes respectively include a first color value, the target code pattern color value includes the first color value.
[0109] If the original code pattern color value of the at least one original graphic code includes a second color value, the target code pattern color value includes the second color value.
[0110] If the original code pattern color values of the at least two original graphic codes respectively include the first color value and a third color value, the target code pattern color value includes the third color value.
[0111] When the target code pattern color value can include a single color value, as a first example, the following fusion scenario is described:
[0112] In combination with Figure 3 As shown in the figure, taking two original graphic codes as an example, the two original graphic codes are a health information code and a location information code. The original code pattern color values of the health information code can include a red color value, a green color value and a yellow color value, that is, the health information code can be red, green or yellow. When the health information code is red, it indicates that there is a greater risk (for example, the risk of suffering from a certain disease) in the health status; when the health information code is yellow, it indicates that there is a smaller risk in the health status; and when the health information code is green, it indicates that the health status is good, that is, there is no risk. The original code pattern color values of the location information code can include a red color value, a green color value and a yellow color value, that is, the location information code can be red, green or yellow. When the location information code is red, it indicates that the user's location is within the A regional range; when the location information code is yellow, it indicates that the user's location is within the B regional range; and when the location information code is green, it indicates that the user's location is within the C regional range.
[0113] According to the preset fusion correspondence relationship, when the original code graph color values of the health information code and the location information code are both green color values, the target code graph color value is a green color value; in this case, the target code graph color value, i.e., the green color value, indicates that the user's health condition is good and the user's location is within the C regional range.
[0114] When the health information code and the location information code are not both green codes, the target code graph color value is a red color value or a yellow color value.
[0115] For example, when the original code graph color value of the health information code is a red color value and the original code graph color value of the location information code is a yellow color value, the target code graph color value can be a red color value; in this case, the target code graph color value, i.e., the red color value, indicates that the user's health condition has a large risk and the user's location is within the B regional range.
[0116] For example, when the original code graph color values of the health information code and the location information code are green color values and a yellow color value, respectively, the target code graph color value is a yellow color value. In this case, the target code graph color value, i.e., the yellow color value, indicates that the user's health condition has a small risk and the user's location is within the B regional range.
[0117] In an embodiment of the present application, when the target code graph color value includes at least two mixed color values corresponding to the original code graph color values,
[0118] The at least two color values are gradually distributed on the target graph code,
[0119] The direction of the gradual distribution includes at least one of a horizontal direction, a vertical direction, a diagonal direction, and a center line direction.
[0120] When the target code graph color value includes at least two mixed color values corresponding to the original code graph color values, still in combination with the first example:
[0121] For example, when the original code graph color value of the health information code is a green color value and the original code graph color value of the location information code is a yellow color value, the target code graph color value can include a green color value and a yellow color value. In this case, the target code graph color value indicates that the user's health condition is good and the user's location is within the B regional range.
[0122] The two color values included in the target code graph color value can be gradually distributed on the target graph code after the fusion processing, and the direction of the gradual distribution includes at least one of a horizontal direction, a vertical direction, a diagonal direction, and a center line direction.
[0123] In an embodiment of the present application, before displaying the target graphical code, the method further comprises:
[0124] Resolving the at least two original graphical codes respectively to obtain user feature information, and generating a code pattern of the target graphical code based on the user feature information;
[0125] The displaying of the target graphical code according to the target code pattern color value comprises:
[0126] Displaying the target graphical code based on the code pattern and the target code pattern color value.
[0127] Specifically, the target graphical code is a fused graphical code. It can be understood that the color value of the target graphical code is a target code pattern color value.
[0128] Optionally, the code pattern of the target graphical code can be generated based on the user feature information recorded by the at least two original graphical codes. Specifically, the at least two original graphical codes can be resolved respectively to obtain user feature information, and then a code pattern of the target graphical code can be generated based on the obtained user feature information. Since the code pattern of the target graphical code is generated based on the user feature information recorded by the at least two original graphical codes, it can be understood that the code pattern of the target graphical code is different from the code patterns of the at least two original graphical codes.
[0129] When displaying the target graphical code, the target graphical code can be displayed based on the code pattern of the target graphical code and the target code pattern color value.
[0130] In combination with Figure 4 In addition, as shown in a first example, for a health information code and a location information code, a comprehensive information code can be generated by mixing and rendering the two codes, and further, the comprehensive information code can be displayed. Figure 4
[0131] In an embodiment of the present application, the displaying of the target graphical code comprises:
[0132] Instructing the client to display the target graphical code through a first display layer,
[0133] and / or
[0134] Instructing the client to display the original graphical code through a second display layer;
[0135] Wherein, the first display layer is displayed above the second display layer.
[0136] In an actual scenario, the target graphical code can be displayed on the first display layer of the display interface on the client side; in addition, the original graphical code can be loaded on the second display layer of the display interface, and the original graphical code can be displayed on the second display layer. The first display layer is displayed above the second display layer.
[0137] In an embodiment of the present application, the indication that the client displays the original graphical code on the second display layer comprises:
[0138] A first trigger operation is received, indicating that the client displays the original graphical code on the second display layer.
[0139] Still in combination with the first example, after the original code graph color values of the health information code and the location information code are fused, the target graphical code can be displayed on the first display layer of the display interface on the client side. When a first trigger operation is received, for example, a user's click operation on the target graphical code, the health information code and the location information code can be displayed on the second display layer of the display interface. Further, when a second trigger operation is received, for example, a user's click operation on the second display layer of the display interface, the second display layer can be hidden.
[0140] In an embodiment of the present application, the original graphical code further comprises user characteristic information;
[0141] The display target graphical code comprises:
[0142] The target graphical code is displayed, and the user characteristic information is displayed.
[0143] Optionally, in an embodiment of the present application, the original graphical code records user characteristic information; for example, the user characteristic information can include static characteristic information and dynamic characteristic information of the user. The static characteristic information is, for example, information such as the user's name, gender, and ID number; the dynamic characteristic information is, for example, information such as the user's health status information, user location information, and user travel information.
[0144] In an actual scenario, when the target graphical code is displayed, the user characteristic information can also be displayed.
[0145] In an embodiment of the present application, after the fused target code graph color value is obtained, the method further comprises:
[0146] Generating the user's permission indication information based on the target code graph color value;
[0147] Sending the permission indication information to the client.
[0148] In an actual scene, the permission indication information of the user can also be generated based on the target code pattern color value, wherein the permission indication information is used to indicate the permission of the user. In combination with the first example, when the target code pattern color value is a green color value, the access control device performs scanning and identification on the target code pattern color value, and when it is determined that the target code pattern color value meets the requirements, permission indication information of opening the door can be generated; and the permission indication information is sent to the client; through the permission indication information, the user can pass through the corresponding access control.
[0149] In an embodiment of the present application, the at least two original graphic codes of the user are obtained by:
[0150] obtaining the original graphic codes from a preset database;
[0151] and / or
[0152] receiving the original graphic codes reported by the client.
[0153] Optionally, the at least two original graphic codes of the user can be obtained from the same database; or can be obtained from different databases, for example, a first original graphic code can be obtained from a first database, and a second original graphic code can be obtained from a second database. In addition, when the original graphic codes are obtained by receiving the report of the client, the at least two original graphic codes can be located in the same application of the client; in addition, the at least two original graphic codes can also be located in different applications of the client, for example, a first original graphic code is located in a first application, and a second original graphic code is located in a second application.
[0154] An embodiment of the present application provides a graphic code display device, as shown in the figure, the graphic code display device 60 can include: a determination module 601, a fusion module 602 and a fusion module 603, wherein, Figure 5
[0155] The determination module 601 is used to obtain at least two original graphic codes of the user, and determine original code pattern color values of the original graphic codes; wherein the original code pattern color value of each original graphic code identifies different parameter information;
[0156] The fusion module 602 is used to perform fusion processing on the original code pattern color values of the at least two original graphic codes, to obtain a fused target code pattern color value;
[0157] The display module 603 is used to display a target graphic code according to the target code pattern color value.
[0158] In an embodiment of the present application, the fusion module is specifically used for:
[0159] According to a preset fusion correspondence, the original code image color values of at least two of the original graphic codes are fused to obtain the target code image color value;
[0160] The target code image color value includes a single color value; or the target code image color value includes at least two mixed color values corresponding to the original code image color value.
[0161] In one embodiment of the present application, when the target code image color value includes a monochrome color value,
[0162] If the original code image color values of at least two of the original graphic codes respectively include a first color value, the target code image color value includes the first color value;
[0163] If the original code image color value of at least one of the original graphic codes includes a second color value, the target code image color value includes the second color value;
[0164] If the original code image color values of at least two of the original graphic codes respectively include the first color value and the third color value, the target code image color value includes the third color value.
[0165] In one embodiment of the present application, when the target code image color value includes at least two mixed color values corresponding to the original code image color value,
[0166] At least two of the color values are gradually distributed on the target graphic code,
[0167] The direction of the gradual distribution includes at least one of a horizontal direction, a vertical direction, a diagonal direction and a center line direction.
[0168] In one embodiment of the present application, the apparatus further includes: a parsing module, configured to parse at least two of the original graphic codes respectively before displaying the target graphic code, obtain user feature information, and generate a code image of the target graphic code based on the user feature information;
[0169] The display module is specifically configured to display the target graphic code based on the code image and the target code image color value.
[0170] In one embodiment of the present application, the display module is specifically used for:
[0171] Instruct the client to display the target graphic code through the first display layer,
[0172] and / or
[0173] instructing the client to display the original graphic code through a second display layer;
[0174] The first display layer is displayed above the second display layer.
[0175] In an embodiment of the present application, the display module is specifically used for:
[0176] Upon receiving a first trigger operation, the client is instructed to display the original graphical code through the second display layer.
[0177] In an embodiment of the present application, the original graphical code further comprises user feature information.
[0178] The display module is specifically used for:
[0179] The target graphical code is displayed, and the user feature information is displayed.
[0180] In an embodiment of the present application, the device further comprises a permission information generation module configured to generate permission indication information of the user based on the target code chart color value after obtaining the fused target code chart color value.
[0181] The permission indication information is sent to the client.
[0182] In an embodiment of the present application, the determination module is specifically used for obtaining the original graphical code from a preset database.
[0183] and / or
[0184] The original graphical code reported by the client is received.
[0185] The device of the embodiments of the present application can perform the method provided by the embodiments of the present application, the implementation principles are similar, and the actions performed by each module in the device of the embodiments of the present application are corresponding to the steps in the method of the embodiments of the present application. For the detailed function description of each module of the device, refer to the description of the corresponding method in the foregoing description, which will not be repeated here.
[0186] In the embodiments of the present application, at least two original graphical codes of a user are obtained to determine original code chart color values of the original graphical codes. The original code chart color values of the at least two original graphical codes are fused to obtain fused target code chart color values. The target graphical code is displayed according to the target code chart color values. The fused target code chart color values can identify at least two parameter information. In this way, multiple parameter information can be displayed through one graphical code. When multiple parameter information is transmitted between the electronic device and the server, multiple graphical codes do not need to be repeatedly switched, the graphical code display efficiency and the parameter information transmission effect are improved, and the convenience of graphical code operation is improved.
[0187] The electronic device provided in the embodiments of the present application comprises a memory and a processor, and at least one program stored in the memory and used for being executed by the processor to achieve the following compared with the prior art: in the embodiments of the present application, at least two original graphic codes of a user are acquired to determine original code graph color values of the original graphic codes; the original code graph color values of the at least two original graphic codes are fused to obtain fused target code graph color values; and a target graphic code is displayed according to the target code graph color values. The fused target code graph color values can identify at least two parameter information, so that multiple parameter information can be displayed through one graphic code, and when multiple parameter information is transmitted between the electronic device and a server, multiple graphic codes do not need to be repeatedly switched, the graphic code display efficiency and the parameter information transmission effect are improved, and the convenience of graphic code operation is improved.
[0188] In an optional embodiment, an electronic device is provided, as shown in Figure 6 Figure 6 The electronic device 4000 shown in the figure comprises a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, through a bus 4002. Optionally, the electronic device 4000 can further comprise a transceiver 4004, which can be used for data interaction, such as data sending and / or data receiving, between the electronic device and other electronic devices. It should be noted that in actual application, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0189] The processor 4001 can be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor 4001 can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.
[0190] The bus 4002 can include a path that transmits information between the above components. The bus 4002 can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For convenience of representation, Figure 6 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0191] The memory 4003 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this.
[0192] The memory 4003 is used to store application program code (computer program) for executing the scheme of the present application, and is controlled by the processor 4001 to execute. The processor 4001 is used to execute the application program code stored in the memory 4003 to realize the content shown in the foregoing method embodiments.
[0193] The electronic device includes but is not limited to: a mobile phone, a notebook computer, a multimedia player, a desktop computer, and the like.
[0194] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program runs on the computer, the computer can execute the corresponding content in the foregoing method embodiments.
[0195] In the embodiments of the present application, at least two original graphic codes of a user are acquired, original code chart color values of the original graphic codes are determined, fusion processing is performed on the original code chart color values of the at least two original graphic codes to obtain fused target code chart color values, and a target graphic code is displayed according to the target code chart color values. The fused target code chart color values can identify at least two parameter information. In this way, multiple parameter information can be displayed through one graphic code, and when multiple parameter information is transmitted between an electronic device and a server, multiple graphic codes do not need to be repeatedly switched, graphic code display efficiency and parameter information transmission effect are improved, and the convenience of graphic code operation is improved.
[0196] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described.
[0197] It should be understood that although the flowcharts of the embodiments of the present application indicate each operation step by an arrow, the implementation order of the steps is not limited to the order indicated by the arrow. Unless otherwise specified herein, in some implementation scenarios of the embodiments of the present application, the implementation steps in each flowchart can be executed in other orders as required. In addition, part or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on the actual implementation scenario. Part or all of these sub-steps or stages can be executed at the same time, and each of these sub-steps or stages can also be executed at different times. In the scenario where the execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and the embodiments of the present application do not limit this.
[0198] The above is only an optional implementation manner of some implementation scenarios of the present application. It should be pointed out that, for those skilled in the art, other similar implementation manners based on the technical concept of the present application can also be adopted without departing from the technical concept of the present application, and such implementation manners also belong to the protection scope of the embodiments of the present application.
Claims
1. A graphic code display method, characterized in that: include: Obtain at least two original graphic codes of the user, and determine original code image color values of the original graphic codes; wherein the original code image color value of each original graphic code indicates different parameter information; Performing a fusion process on the original code image color values of at least two of the original graphic codes to obtain a fused target code image color value; Displaying a target graphic code according to the color value of the target code image; The fusing the original code image color values of at least two original graphic codes to obtain the fused target code image color value includes: According to a preset fusion correspondence, the original code image color values of at least two of the original graphic codes are fused to obtain the target code image color value; The target code image color value includes at least two mixed color values corresponding to the original code image color value; or the target code image color value includes a single color value; When the target code image color value includes a monochrome color value, If the original code image color values of at least two of the original graphic codes respectively include a first color value, the target code image color value includes the first color value; If the original code image color value of at least one of the original graphic codes includes a second color value, the target code image color value includes the second color value; If the original code image color values of at least two of the original graphic codes respectively include the first color value and the third color value, the target code image color value includes the third color value.
2. The graphic code display method according to claim 1, wherein: When the target code image color value includes at least two mixed color values corresponding to the original code image color value, At least two of the color values are gradually distributed on the target graphic code; The direction of the gradual distribution includes at least one of a horizontal direction, a vertical direction, a diagonal direction and a center line direction.
3. The graphic code display method according to claim 1, wherein: Before displaying the target graphic code, the method further includes: parsing at least two of the original graphic codes respectively to obtain user characteristic information, and generating a code image of the target graphic code based on the user characteristic information; The step of displaying the target graphic code according to the color value of the target code image comprises: The target graphic code is displayed based on the code pattern and the target code pattern color value.
4. The graphic code display method according to claim 1, wherein: The display target graphic code includes: Instruct the client to display the target graphic code through the first display layer, and / or instructing the client to display the original graphic code through a second display layer; The first display layer is displayed on the second display layer.
5. The graphic code display method according to claim 1, wherein: The original graphic code also includes user feature information; The display target graphic code includes: The target graphic code is displayed, and the user characteristic information is displayed.
6. The graphic code display method according to claim 4, characterized in that: After obtaining the color value of the fused target code image, the method further includes: generating permission indication information of the user based on the color value of the target code image; The permission indication information is sent to the client.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the graphic code display method according to any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the graphic code display method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Graphic code processing method and device, computer equipment and storage medium
CN114037036A
Color information superposition of QR code
CN1845124A