Two-dimensional code display method, apparatus, device and medium

By superimposing a preset color main positioning point and a characteristic color main positioning point in two-dimensional codes, the method enhances the visual distinctiveness and recognition of the codes, aligning them with their respective application programs.

JP7553211B2Active Publication Date: 2024-09-18DOUYIN VISION CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
JP2023541003
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-06
Filing Date
2021-12-22
Publication Date
2024-09-18
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Current two-dimensional codes lack the ability to embody the unique style of an application program, making them less recognizable.

Method used

A method and apparatus for displaying two-dimensional codes that include a first main positioning point with a preset color and a second main positioning point with a characteristic color of the application program, superimposed to enhance recognition.

Benefits of technology

The method improves the recognition of two-dimensional codes by making them visually distinct and representative of the application program they belong to.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553211000015
    Figure 0007553211000015
  • Figure 0007553211000009
    Figure 0007553211000009
  • Figure 0007553211000007
    Figure 0007553211000007
Patent Text Reader

Abstract

The present disclosure relates to a two-dimensional code display method, an apparatus, a device, and a medium. The two-dimensional code display method includes: receiving a two-dimensional code display operation, the two-dimensional code display operation is used to trigger the display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; and displaying a two-dimensional code image in response to the two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point being located above the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of the first application program. According to the embodiment of the present disclosure, the recognition degree of the two-dimensional code can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [Related Applications] This application claims priority to a Chinese patent application filed on January 6, 2021, bearing application number 202110014589.0 and entitled "Two-dimensional code display method, apparatus, device and medium," the entire contents of which are incorporated herein by reference. [Technical field] The present disclosure relates to the technical field of two-dimensional codes, and in particular to a method, an apparatus, a device, and a medium for displaying a two-dimensional code. [Background technology]

[0002] With the development of Internet technology, two-dimensional codes are more and more widely applied in people's lives. For example, people can use two-dimensional codes to share social business cards, share short videos, share social platform information, etc.

[0003] However, the current two-dimensional code has a monotonous style and cannot embody the unique style of an application program through the two-dimensional code itself, which reduces the recognition degree of the two-dimensional code. Summary of the Invention [Problem to be solved by the invention]

[0004] In order to solve or at least partially solve the above-mentioned technical problems, the present disclosure provides a two-dimensional code display method, apparatus, device and medium. [Means for solving the problem]

[0005] According to a first aspect, the present disclosure provides a two-dimensional code display method, receiving a two-dimensional code display operation, the two-dimensional code display operation being used to trigger the display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; The method includes a step of displaying a two-dimensional code image in response to a two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point arranged in a superimposed manner, the first main positioning point being located above the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of a first application program.

[0006] According to a second aspect, the present disclosure provides a two-dimensional code display device, a first accepting unit arranged to accept a two-dimensional code display operation, the two-dimensional code display operation being used to trigger the display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; The first display unit includes: a first display unit arranged to display a two-dimensional code image in response to a two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point arranged in a superimposed manner, the first main positioning point being located above the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of a first application program.

[0007] According to a third aspect, the present disclosure provides an electronic device, comprising: A processor; a memory for storing executable instructions; The processor realizes the two-dimensional code display method according to the first aspect by reading and executing executable instructions from the memory.

[0008] According to a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored therein, the computer program causing the processor to realize the two-dimensional code display method described in the first aspect when executed by a processor.

[0009] Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages: The two-dimensional code display method, apparatus, device, and medium according to the embodiments of the present disclosure can display a two-dimensional code image corresponding to a target content in a first application program based on a two-dimensional code display operation, and the two-dimensional code image can include a first main positioning point and a second main positioning point superimposed thereon, where the first main positioning point is located on the second main positioning point and has a preset color, and the second main positioning point has a characteristic color of the first application program, so that the two-dimensional code has the characteristic color of the first application program, and the characteristic color can make the two-dimensional code embody the unique style of the first application program, and improve the recognition of the two-dimensional code. [Brief description of the drawings]

[0010] The above and other features, advantages, and aspects of each embodiment of the present disclosure will become more apparent by reference to the following specific embodiments in conjunction with the accompanying drawings, in which the same or similar reference numerals refer to the same or similar elements throughout the drawings, where the drawings are schematic and parts and elements are not necessarily drawn to scale. [Figure 1] FIG. 1 is a schematic diagram of a two-dimensional code display architecture according to an embodiment of the present disclosure. [Diagram 2] 1 is a schematic flowchart of a two-dimensional code display method according to an embodiment of the present disclosure. [Diagram 3] FIG. 2 is a schematic diagram of a two-dimensional code image according to an embodiment of the present disclosure. [Figure 4] FIG. 2 is a schematic diagram of another two-dimensional code image according to an embodiment of the present disclosure. [Diagram 5] FIG. 13 is a schematic diagram of yet another two-dimensional code image according to an embodiment of the present disclosure. [Figure 6] FIG. 13 is a schematic diagram of yet another two-dimensional code image according to an embodiment of the present disclosure. [Figure 7] 1 is a schematic diagram of a two-dimensional code image frame according to an embodiment of the present disclosure. [Figure 8] FIG. 2 is a schematic diagram of another two-dimensional code image frame according to an embodiment of the present disclosure. [Figure 9] 1 is a schematic diagram of yet another two-dimensional code image frame according to an embodiment of the present disclosure. [Figure 10] 13 is a schematic diagram of yet another two-dimensional code image frame according to an embodiment of the present disclosure. FIG. [Figure 11] 13 is a schematic diagram of yet another two-dimensional code image frame according to an embodiment of the present disclosure. FIG. [Figure 12] FIG. 1 is a schematic diagram of an interface for displaying a two-dimensional code image according to an embodiment of the present disclosure. [Figure 13] 1 is a schematic flowchart of another two-dimensional code display method according to an embodiment of the present disclosure. [Figure 14] FIG. 13 is a schematic diagram of an interface for displaying a two-dimensional code image according to another embodiment of the present disclosure. [Figure 15] FIG. 2 is a schematic diagram of the generation principle of a background image according to an embodiment of the present disclosure. [Figure 16] FIG. 13 is a schematic diagram of the generation principle of another background image according to an embodiment of the present disclosure. [Figure 17] 1 is a structural schematic diagram of a two-dimensional code display device according to an embodiment of the present disclosure; [Figure 18] FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided to provide a deeper and more complete understanding of the present disclosure. It should also be understood that the drawings and embodiments of the present disclosure are used for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0012] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Also, method embodiments may include additional steps and / or omit the performance of steps that are illustrated. The scope of the present disclosure is not limited in this respect.

[0013] As used herein, the term "including" and variations thereof mean open-ended inclusion, i.e., "including but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one other embodiment," and the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below.

[0014] It should be noted that the concepts of "first", "second", etc. referred to in this disclosure are used only to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules or units.

[0015] It should be noted that the modifications "one" and "multiple" referred to in this disclosure are exemplary rather than limiting, and should be understood as "one or more" unless otherwise indicated herein, as would be understood by one of ordinary skill in the art.

[0016] The names of messages or information exchanged among devices in the embodiments of the present disclosure are not intended to limit the scope of these messages or information, but are for illustrative purposes only.

[0017] The two-dimensional code display method provided by the present disclosure can be applied to the architecture shown in FIG. 1, and will be specifically described in detail in conjunction with FIG.

[0018] FIG. 1 shows a schematic diagram of a two-dimensional code display architecture according to an embodiment of the present disclosure.

[0019] As shown in FIG. 1, the two-dimensional code display architecture 100 may include at least one electronic device 101 of a client and at least one server 102 of a service end. The electronic device 101 may establish a connection with the server 102 through a network protocol, such as HyperText Transfer Protocol over Secure Socket Layer (HTTPS), to perform information interaction. The electronic device 101 may include devices having communication functions, such as mobile phones, tablets, desktop computers, notebook computers, in-vehicle terminals, wearable electronic devices, all-in-one devices, and smart home devices, or may be devices simulated by virtual machines or simulators. The server 102 may be a device having storage and calculation functions, such as a cloud server or a server cluster.

[0020] Based on the above architecture, a user can display, via the electronic device 101, a two-dimensional code image corresponding to a target content belonging to a specified application program.

[0021] When a user wishes to display a two-dimensional code image corresponding to target content belonging to a specified application program through the electronic device 101, the user can input a two-dimensional code display operation into the electronic device 101, cause the electronic device 101 to accept the two-dimensional code display operation, and display the two-dimensional code image corresponding to the target content in response to the two-dimensional code display operation.

[0022] The two-dimensional code image displayed on the electronic device 101 may include a first main positioning point and a second main positioning point arranged to be superimposed, the first main positioning point may be located above the second main positioning point and have a preset color, and the second main positioning point may have a characteristic color of a designated application program, so that the two-dimensional code has the characteristic color of the designated application program, and the characteristic color can further allow the two-dimensional code to embody the unique style of the designated application program and improve the recognition of the two-dimensional code.

[0023] Optionally, the two-dimensional code image may be generated by the server 102 of a specified application program, or may be generated by the electronic device 101, for example, generated by a specified application program, not limited herein.

[0024] In some examples, when the two-dimensional code display operation is an operation on a two-dimensional code image that is not stored locally in the electronic device 101, the electronic device 101 accepts the two-dimensional code display operation input by the user in a specified application program, and then sends a two-dimensional code acquisition request including the target content to the server 102 of the specified application program, so that the server 102 can respond to the two-dimensional code acquisition request and feed back a two-dimensional code image corresponding to the target content to the electronic device 101.

[0025] When the two-dimensional code image is an image generated in real time based on the target content, the server 102 can receive a two-dimensional code acquisition request including the target content transmitted from the electronic device 101, and then generate a two-dimensional code image including the first main positioning point and the second main positioning point superimposed in response to the two-dimensional code acquisition request, and transmit the generated two-dimensional code image to the electronic device 101. In this case, the two-dimensional code image generated by the server 102 in real time based on the same target content each time may be different.

[0026] In addition, when the two-dimensional code image is an image generated in real time based on the target content, the electronic device 101 can also generate a two-dimensional code image including the first main positioning point and the second main positioning point superimposed on each other after accepting the two-dimensional code display operation input by the user in the specified application program, and no further details will be given here.

[0027] When the two-dimensional code image is an image generated in advance based on the target content, the server 102 can receive a two-dimensional code acquisition request including the target content sent from the electronic device 101, and then, in response to the two-dimensional code acquisition request, search for a two-dimensional code image corresponding to the target content from stored images, and send the searched two-dimensional code image to the electronic device 101. The two-dimensional code image can be generated by the server 102 based on the first main positioning point and the second main positioning point superimposed in advance. In this case, the two-dimensional code image searched by the server 102 based on the same target content every time is the same.

[0028] In addition, if the two-dimensional code image is an image generated in advance based on the target content, the electronic device 101 can also search for a two-dimensional code image corresponding to the target content from among the stored images after accepting the two-dimensional code display operation input by the user in the specified application program, and no further details will be given here.

[0029] Furthermore, after receiving the two-dimensional code image sent from the server 102, the electronic device 101 can display the two-dimensional code image.

[0030] Thus, in these examples, a user may display, via the electronic device 101, a two-dimensional code image that is not stored locally on the electronic device 101.

[0031] In a scene where a user shares information through a two-dimensional code, the target content may be the information to be shared in a specified application program, or the acquisition address of a page for displaying the information to be shared in the specified application program, and the two-dimensional code image may be a shared two-dimensional code image generated according to the information to be shared or the acquisition address. In this case, when a user displays or transmits the shared two-dimensional code image in a shared object, the shared two-dimensional code image can embody the unique style of the specified application program through its characteristic color, which not only can increase the aesthetics of the two-dimensional code, but also the shared object can quickly understand the application program to which the two-dimensional code belongs based on the characteristic color, thereby improving the recognition of the two-dimensional code.

[0032] In addition to the scenario in which users use two-dimensional codes to share information, the architecture shown in FIG. 1 can also be applied to other scenarios in which two-dimensional codes are displayed or used, and is not limited thereto.

[0033] In another example, if the two-dimensional code display operation is an operation on a two-dimensional code image stored locally in the electronic device 101, the electronic device 101 can directly display the locally stored two-dimensional code image.

[0034] In these examples, the electronic device 101 can previously receive the two-dimensional code image transmitted from the server 102 and locally store the received two-dimensional code image.

[0035] Thus, in these examples, a user can display a locally stored two-dimensional code image via the electronic device 101.

[0036] According to the above architecture, the two-dimensional code display method provided by the embodiment of the present disclosure will be described below in combination with FIG. 2 to FIG. 16. In the embodiment of the present disclosure, the two-dimensional code display method may be executed by an electronic device. In some embodiments, the electronic device may be the electronic device 101 in the client shown in FIG. 1. The electronic device may include a device having a communication function, such as a mobile phone, a tablet, a desktop computer, a notebook computer, an in-vehicle terminal, a wearable electronic device, an all-in-one device, or a smart home device, or may be a device simulated by a virtual machine or a simulator.

[0037] FIG. 2 shows a schematic flowchart of a two-dimensional code display method according to an embodiment of the present disclosure.

[0038] As shown in FIG. 2, the two-dimensional code display method may include steps S210 to S220.

[0039] S210, accepting a two-dimensional code display operation, the two-dimensional code display operation being used to trigger display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program;

[0040] In an embodiment of the present disclosure, when a user wants to display a two-dimensional code image corresponding to a target content belonging to a first application program through an electronic device, a two-dimensional code display operation for triggering the display of the two-dimensional code image can be input into the electronic device, and the electronic device can be made to accept the two-dimensional code display operation.

[0041] The first application program may be any application program, and the target content may be any content belonging to the first application program, without any limitation here.

[0042] For example, the first application program may include an application program having an information sharing function, the target content may include any information to be shared in the first application program or an acquisition address of an exhibition page of the information to be shared, and the two-dimensional code image may include a shared two-dimensional code image corresponding to the information to be shared or the acquisition address.

[0043] Optionally, the information to be shared may include at least one of the following: a user's personal social homepage information, a user's social business card, social platform information, an image, an image set, a video, a video set, special effects, music, an image editing template, a video editing template, and the like.

[0044] In addition, the information to be shared may also be information that other users display or intend to share via a two-dimensional code, and is not limited here.

[0045] S220: in response to a two-dimensional code display operation, displaying a two-dimensional code image, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point being located above the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of a first application program.

[0046] In an embodiment of the present disclosure, after the electronic device accepts a two-dimensional code display operation input by a user, it can display a two-dimensional code image corresponding to a target content belonging to a first application program in response to the two-dimensional code display operation.

[0047] Optionally, the electronic device may display the two-dimensional code image in full screen, or may display the two-dimensional code image in non-full screen at any position, and is not limited thereto.

[0048] In some embodiments of the present disclosure, the two-dimensional code image may be a rectangular image, and the two-dimensional code image may include two or three sets of overlapping first and second main positioning points, and each set of overlapping first and second main positioning points may be located at one preset vertex of the two-dimensional code image.

[0049] In some embodiments, the two-dimensional code image may include two sets of overlapping first and second main positioning points, and the two sets of overlapping first and second main positioning points may be located at two adjacent preset vertices of the two-dimensional code image, respectively.

[0050] In another embodiment, the two-dimensional code image may also include three sets of overlapping first and second main positioning points, and the three sets of overlapping first and second main positioning points are respectively located at three preset vertices of the two-dimensional code image such that the centers of the three sets of overlapping first and second main positioning points can form a right-angled isosceles triangle.

[0051] In some embodiments of the present disclosure, the number of first primary positioning points in each set may be one or more, and is not limited herein.

[0052] Optionally, when the number of first main positioning points in each set is multiple, the multiple first main positioning points may be provided overlapping each other.

[0053] In some embodiments of the present disclosure, the number of second primary positioning points in each set may be one or more, and is not limited herein.

[0054] Optionally, when the number of second main positioning points in each set is one, when the number of first main positioning points in each set is one, the second main positioning point can be arranged to overlap with any portion of the first main positioning point, and when the number of first main positioning points in each set is multiple, the second main positioning point can be arranged to overlap with any portion of at least one of the first main positioning points.

[0055] Optionally, when the number of second primary positioning points in each set is multiple, if the number of first primary positioning points in each set is one, each second primary positioning point can be overlapped with a different portion of the first primary positioning point, and each second primary positioning point can partially overlap with the overlapping portion of the first primary positioning point.

[0056] For example, when the number of the first main positioning point and the second main positioning points in each set is one and the number of the second main positioning points is two, after the two second main positioning points are arranged overlapping with the first main positioning point, the circle centers of the two second main positioning points can be collinear with the circle center of the first main positioning point, and the circle centers of the two second main positioning points can be located on both sides of the circle center of the first main positioning point, respectively.

[0057] Optionally, when the number of second primary positioning points in each set is multiple, when the number of first primary positioning points in each set is multiple, each second primary positioning point can be provided overlapping with a different portion of at least one first primary positioning point, and each second primary positioning point can partially overlap with an overlapping portion of the first primary positioning point.

[0058] For example, when the number of first main positioning points and the number of second main positioning points among each set of first main positioning points and second main positioning points is two, the two first main positioning points can be arranged overlapping each other, and after the two second main positioning points are arranged overlapping the two first main positioning points, the circle centers of the two second main positioning points can be collinear with the circle centers of the two first main positioning points, and the circle centers of the two second main positioning points can be located on both sides of the circle centers of the two first main positioning points, respectively.

[0059] In some embodiments of the present disclosure, the first primary positioning point may have a preset color, ie, the first primary positioning point may be displayed as a predefined color.

[0060] Optionally, the predetermined color may include, but is not limited to, at least one of black and other colors that are binarized to black.

[0061] In some embodiments of the present disclosure, the second primary positioning point may have a characteristic color of the first application program, i.e., the second primary positioning point may be displayed as a characteristic color of the first application program.

[0062] The distinctive color may include a color contained in a distinctive icon of the first application program.

[0063] Optionally, the distinctive icon may include a logotype (LOGO) of the first application program.

[0064] Optionally, the characteristic color of the first application program may include at least one of at least one first type of color whose binarized color is the same as a predetermined color, and at least one second type of color whose binarized color is different from the predetermined color, but is not limited thereto.

[0065] Optionally, the number of colors of the first type may be one or more, and is not limited here.

[0066] Optionally, the number of colors of the second type may be one or more, and is not limited here.

[0067] In some embodiments of the present disclosure, the first primary positioning point can be located above the second primary positioning point, whereby the overlapping portion of the first primary positioning point and the second primary positioning point can have a predetermined color, i.e., the overlapping portion of the first primary positioning point and the second primary positioning point can be displayed as a predetermined color.

[0068] The first and second main positioning points will be described in detail below using a specific example.

[0069] FIG. 3 shows a schematic diagram of a two-dimensional code image according to an embodiment of the present disclosure.

[0070] As shown in FIG. 3, the electronic device may display a two-dimensional code image 301, and the two-dimensional code image 301 may include three sets of overlapping first and second main positioning points, and the three sets of overlapping first and second main positioning points may be located at the upper left vertex, the lower left vertex and the upper right vertex of the two-dimensional code image 301, respectively.

[0071] The first main positioning point may include a first color main positioning point 302 (such as a black large dot in Fig. 3), and the number of second main positioning points may include a second color main positioning point 303 (such as a large dot in a grid fill in Fig. 3) and a third color main positioning point 304 (such as a large dot in a dot fill in Fig. 3). The first color main positioning point 302 is provided overlapping with the second color main positioning point 303 and the third color main positioning point 304 respectively, and the first color main positioning point 302 is located above the second color main positioning point 303 and the third color main positioning point 304.

[0072] The centers of the first color main positioning point 302, the second color main positioning point 303 and the third color main positioning point 304 are collinear, the center of the second color main positioning point 303 is located to the left of the first color main positioning point 302, and the center of the third color main positioning point 304 is located to the right of the first color main positioning point 302.

[0073] Optionally, the predetermined color includes black, and the characteristic color includes red and blue, and the binarized color of red can be black, and the binarized color of blue can be white. The first color main positioning point 302 can be a main positioning point of black, the second color main positioning point 303 can be a main positioning point of red, and the third color main positioning point 304 can be a main positioning point of blue.

[0074] In an embodiment of the present disclosure, based on the two-dimensional code display operation, a two-dimensional code image corresponding to the target content in a first application program can be displayed, and the two-dimensional code image can include a first main positioning point and a second main positioning point superimposed thereon, where the first main positioning point is located on the second main positioning point and has a preset color, and the second main positioning point has a characteristic color of the first application program, so that the two-dimensional code has the characteristic color of the first application program, and the characteristic color can make the two-dimensional code embody the unique style of the first application program, and improve the recognition of the two-dimensional code.

[0075] Returning to FIG. 2, the two-dimensional code display operation in S210 will be further described below.

[0076] In some embodiments of the present disclosure, a two-dimensional code display operation can be used to trigger the display of a two-dimensional code image that is not stored in the local target storage space of the electronic device.

[0077] The two-dimensional code display operation may be an operation such as clicking, long pressing, double clicking, voice control, or facial expression control on the first control in the first application program.

[0078] The first control can be used to trigger the display of a two-dimensional code image that is not stored in the local target storage space of the electronic device.

[0079] For example, if the two-dimensional code image is a shared two-dimensional code image, the first control may be a "Share" button. In this way, the user can make the electronic device display a two-dimensional code image that is not stored in the local target storage space of the electronic device through the two-dimensional code display operation.

[0080] In another embodiment of the present disclosure, the two-dimensional code display operation can be used to trigger the display of the two-dimensional code image stored in the local target storage space of the electronic device. The two-dimensional code display operation can be an operation such as clicking, long pressing, double clicking, voice control, facial expression control, etc., on a local second control of the electronic device. In some examples, the second control can be used to trigger the opening of the target storage space in which the two-dimensional code image is stored so that the electronic device can display the two-dimensional code image. For example, the target storage space can be an album, and the second control can be an album icon displayed on the desktop of the electronic device. In another example, the second control can be used to trigger the display of the two-dimensional code image stored in the target storage space. For example, the target storage space can be an album, and the second control can be a preview image of the two-dimensional code image displayed in the album.

[0081] The above is a further description of the two-dimensional code display operation in S210. The following describes how the electronic device obtains the two-dimensional code image for display.

[0082] In some embodiments of the present disclosure, when the two-dimension code display operation is used to trigger the display of a two-dimension code image that is not stored in the local target storage space of the electronic device, and the two-dimension code image is generated by the server of the first application program, before S220, the two-dimension code display method further comprises: sending a two-dimensional code acquisition request including target content to a server of a first application program, the two-dimensional code acquisition request being used to feed back a two-dimensional code image corresponding to the target content to the server; and receiving a two-dimensional code image fed back from the server.

[0083] The server may be server 102 in the embodiment shown in Figure 1. The server may be any device having storage and computing capabilities, such as a cloud server or a server cluster.

[0084] In this way, after accepting the two-dimensional code display operation, the electronic device can send a two-dimensional code acquisition request including the target content to the server of the first application program in response to the two-dimensional code display operation, whereby, after receiving the two-dimensional code acquisition request including the target content sent from the electronic device, the server can feed back a two-dimensional code image corresponding to the target content to the electronic device in response to the two-dimensional code acquisition request, and the electronic device can receive the two-dimensional code image fed back from the server and display the two-dimensional code image.

[0085] In some embodiments, when the two-dimensional code image is an image generated in real time based on the target content, the two-dimensional code acquisition request can be used to cause the server to generate and feed back a two-dimensional code image corresponding to the target content.

[0086] In this way, in response to a two-dimensional code acquisition request, the server can generate a two-dimensional code image corresponding to the target content based on the above-mentioned superimposed first main positioning point and second main positioning point, and transmit the generated two-dimensional code image to the electronic device.

[0087] In another embodiment, if the two-dimensional code image is a pre-generated image based on the target content, the two-dimensional code acquisition request can be used to cause the server to search for and feed back the two-dimensional code image corresponding to the target content.

[0088] In this way, in response to a two-dimensional code acquisition request, the server can search for a two-dimensional code image corresponding to the target content from stored images and transmit the searched two-dimensional code image to the electronic device.

[0089] The two-dimensional code image can be generated in advance by the server based on the first main positioning point and the second main positioning point that are arranged to overlap each other.

[0090] In another embodiment of the present disclosure, when the two-dimensional code display operation is used to trigger the display of a two-dimensional code image that is not stored in the local target storage space of the electronic device, and the two-dimensional code image is generated by the electronic device through a first application program, before S220, the two-dimensional code display method can further include the step of generating a two-dimensional code image corresponding to the target content. The method of the electronic device generating the two-dimensional code image is similar to the method of the server generating the two-dimensional code image, and is not described here.

[0091] In another embodiment of the present disclosure, in order to improve the positioning accuracy of the two-dimensional code image, the two-dimensional code image may further include auxiliary positioning points, which may be uniformly arranged around the first main positioning point and the second main positioning point arranged so as to overlap each other.

[0092] Optionally, the two-dimensional code image may include at least one set of auxiliary positioning points, and the number of sets of auxiliary positioning points may be the same as the number of sets of the first and second main positioning points arranged in an overlapping manner. A set of auxiliary positioning points is arranged uniformly around a set of the first and second main positioning points arranged in an overlapping manner. Optionally, the number of auxiliary positioning points in each set may be a multiple of four. For example, the number of auxiliary positioning points may be four, eight, twelve, etc., and is not limited here. In this way, after the auxiliary positioning points are arranged uniformly around the first and second main positioning points arranged in an overlapping manner, the centers of the auxiliary positioning points in each set may form a rectangle.

[0093] In some embodiments of the present disclosure, the auxiliary positioning points may have the preset colors described above.

[0094] The auxiliary positioning points in these embodiments will be described in detail below using a specific example.

[0095] FIG. 4 shows a schematic diagram of another two-dimensional code image according to an embodiment of the present disclosure.

[0096] As shown in FIG. 4 , the electronic device may display a two-dimensional code image 401, which may include three sets of superimposed first main positioning points 402 and second main positioning points 403, and three sets of auxiliary positioning points 404.

[0097] The first primary positioning point 402 and the second primary positioning point 403 are similar to the first primary positioning point and the second primary positioning point in the embodiment shown in FIG. 3, and will not be described further here.

[0098] The number of the auxiliary positioning points 404 in each set may be eight, and the set of auxiliary positioning points 404 may be uniformly arranged around the set of the first main positioning points 402 and the second main positioning points 403, respectively.

[0099] Optionally, if the predetermined color includes black, the auxiliary positioning points 404 may be black.

[0100] In another embodiment of the present disclosure, when the characteristic color includes a first type of color and the binarized color of the first type of color is the same as the predetermined color, the auxiliary positioning point can include a first auxiliary positioning point and a second auxiliary positioning point, where the first auxiliary positioning point can have a preset color and the second auxiliary positioning point can have the first type of color.

[0101] Since the binarized color of the first type of color is the same as the predetermined color, and the binarized color of the first type of color is still black, even if the second auxiliary positioning point has the first type of color, it does not affect its positioning function.

[0102] Optionally, the ratio of the second auxiliary positioning points to the auxiliary positioning points may be a first preset ratio. The first preset ratio may be any value between (0, 1), and is not limited here. For example, when the number of auxiliary positioning points in each set is 8, the first preset ratio may be 1 / 8 or 1 / 4.

[0103] In these above embodiments, in the process of generating a two-dimensional code image, the server or electronic device can first generate auxiliary positioning points corresponding to the first main positioning point and the second main positioning point of each set, in which each auxiliary positioning point is of a predetermined color, for example, black, and then randomly select a first preset proportion of auxiliary positioning points from each set, and convert the selected auxiliary positioning points from the predetermined color to a first type of color, for example, red, and further include the first auxiliary positioning point and the second auxiliary positioning point in each set of auxiliary positioning points.

[0104] The auxiliary positioning points in these embodiments will be described in detail below using a specific example.

[0105] FIG. 5 shows a schematic diagram of another two-dimensional code image according to an embodiment of the present disclosure.

[0106] As shown in FIG. 5, the electronic device may display a two-dimensional code image 501, which may include three sets of superimposed first main positioning points 502 and second main positioning points 503, as well as three corresponding sets of auxiliary positioning points.

[0107] The first primary positioning point 502 and the second primary positioning point 503 are similar to the first primary positioning point and the second primary positioning point in the embodiment shown in FIG. 3, and will not be described further here.

[0108] It is illustrated by way of example that the number of the auxiliary positioning points in each set is 8, each set of the auxiliary positioning points can be uniformly arranged around a corresponding set of the first main positioning points 502 and the second main positioning points 503, and the first preset ratio is 1 / 8. Each set of the auxiliary positioning points can include seven first auxiliary positioning points 504 and one second auxiliary positioning point 505.

[0109] Optionally, if the predetermined colors include black and the first type of colors include red, the first auxiliary positioning point 504 may be black and the second auxiliary positioning point 505 may be red.

[0110] Therefore, in the embodiment of the present disclosure, while not affecting the positioning effect of the two-dimensional code, the recognition degree of the two-dimensional code can be further improved by the color of the second auxiliary positioning point among the auxiliary positioning points.

[0111] In yet another embodiment of the present disclosure, the two-dimensional code image can further include a data dot matrix, which can be generated according to the target content, and the data dot matrix can be used to allow a second application program to obtain the target content.

[0112] Furthermore, the second application program may include at least one of the first application program and other application programs other than the first application program, and is not limited here. Thus, the two-dimensional code image may be a general-purpose two-dimensional code image.

[0113] Optionally, when the second application program is the first application program itself, the data dot matrix can be used to directly obtain the target content after the first application program scans or recognizes the two-dimensional code image, and display the information to be shared that corresponds to the target content.

[0114] Optionally, when the second application program is an application program other than the first application program, the data dot matrix can be used to obtain the target content of the first application program in the second application program after the second application program scans or recognizes the two-dimensional code image, and display the information to be shared that corresponds to the target content. For example, the second application program can convert the data dot matrix into the target content after scanning or recognizing the two-dimensional code image, and display the information to be shared that corresponds to the target content through the built-in browser page, widget page, or fifth generation hypertext markup language (HTML5, H5) page of the second application program.

[0115] Optionally, when the second application program is an application program other than the first application program, the data dot matrix can be further used to make the second application program scan or recognize the two-dimensional code image, then jump into the first application program to obtain the target content, and display the information to be shared that corresponds to the target content. For example, the second application program can scan or recognize the two-dimensional code image, then convert the data dot matrix into the target content, determine the first application program to which the target content belongs, and then jump to the first application program to display the information to be shared that corresponds to the target content in the first application program.

[0116] In some embodiments of the present disclosure, as shown in FIGS. 3 to 5, the data dots in the data dot matrix can have the above-mentioned predetermined colors.

[0117] 3, the two-dimensional code image 301 may include a data dot matrix, and the data dot matrix may include data dots 305. If the predetermined color includes black, the data dots 305 may be black.

[0118] 4, the two-dimensional code image 401 may include a data dot matrix, and the data dot matrix may include data dots 405. If the predetermined color includes black, the data dots 405 may be black.

[0119] 5, the two-dimensional code image 501 may include a data dot matrix, and the data dot matrix may include data dots 506. If the predetermined color includes black, the data dots 506 may be black.

[0120] In another embodiment of the present disclosure, the data dot matrix can include first data dots and second data dots, the first data dots can have the above-mentioned preset color, and the second data dots can have the above-mentioned characteristic color.

[0121] Optionally, if the characteristic color includes a first type of color whose binarized color is the same as a predetermined color, the second data dots may include second data dots of the first type, and the second data dots of the first type may have a first type of color, and the first data dots and the second data dots of the first type may be generated according to the target content.

[0122] Since the binarized color of the first type of color is the same as the predetermined color, and the binarized color of the first type of color is still black, even though the second data dot of the first type has the first type of color, its data recognition function is not affected.

[0123] Optionally, the proportion of the first type of second data dots in the sum of the first data dots and the first type of second data dots may be a second preset proportion. The second preset proportion may be any value in (0,1), and is not limited herein. For example, the second preset proportion may be 1%, 3%, 5%, or 10%, and is not limited herein.

[0124] Optionally, when the characteristic color includes a second type of color whose binarized color is different from the predetermined color, the second data dots may further include second type of second data dots, and the second type of second data dots may have the second type of color. Since the binarized color of the second type of color is different from the predetermined color and the binarized color of the second type of color is white, even though the second type of second data dots have the second type of color, it does not affect the content recognized according to the data dot matrix.

[0125] Optionally, the proportion of the second type of second data dots in the blank data sites other than the first data dots and the first type of second data dots in the two-dimensional code image may be a third preset proportion. The third preset proportion may be any value in (0,1), and is not limited herein. For example, the third preset proportion may be 1%, 3%, 5%, or 10%, and is not limited herein.

[0126] In these embodiments, the server can first generate an initial data dot matrix according to the target content, in which each data dot is a predetermined color, e.g., black, and the server can randomly select a second preset percentage of data dots in the initial data dot matrix and convert the selected data dots from the predetermined color to a first type of color, e.g., red, so that the data dot matrix includes the first data dots and the first type of second data dots; then the server randomly selects a third preset percentage of blank data sites from the blank data sites in the data dot matrix and generates the second type of second data dots having a second type of color, e.g., blue, at the selected blank data sites, and obtain a final data dot matrix consisting of the first data dots, the first type of second data dots, and the second type of second data dots.

[0127] The data dot matrix in these embodiments will be described in detail below using one specific example.

[0128] FIG. 6 shows a schematic diagram of yet another two-dimensional code image according to an embodiment of the present disclosure.

[0129] As shown in FIG. 6, the electronic device may display a two-dimensional code image 601, which may include three sets of superimposed first main positioning points 602 and second main positioning points 603, three sets of auxiliary positioning points 604, and a data dot matrix.

[0130] The three sets of overlapping first and second main positioning points 602 and 603, and the corresponding three sets of auxiliary positioning points 604 are similar to the first main positioning point 502, the second main positioning point 503, and the auxiliary positioning points in the embodiment shown in Figure 5, and will not be described in detail here.

[0131] The data dot matrix may include first data dots 605 (such as the small black dots in FIG. 6), second data dots 606 of a first type (such as the small dots in the grid fill in FIG. 6), and second data dots 607 of a second type (such as the small dots in the dot fill in FIG. 6).

[0132] Optionally, if the predetermined color includes black and the characteristic colors include red and blue, the binarized color of red may be black and the binarized color of blue may be white. The first data dots 605 may be black, the second data dots of the first type 606 may be red, and the second data dots of the second type 607 may be blue.

[0133] Therefore, in the embodiment of the present disclosure, the color of the second data dot in the data dot matrix can further improve the recognition of the two-dimensional code, without affecting the reliability of reading the information of the two-dimensional code.

[0134] In yet another embodiment of the present disclosure, in order to further improve the recognition of the two-dimensional code, the two-dimensional code image can further include an image frame, and the image frame can be generated according to a characteristic color.

[0135] Optionally, the image frame may be a closed frame made up of sub-frames with distinctive colors. A closed frame may enclose a closed shape.

[0136] When the characteristic colors include a first type of color and a second type of color, the picture frame may be a closed frame consisting of a first sub-frame having the first type of color and a second sub-frame having the second type of color.

[0137] The image frames in these embodiments will now be described in detail using one specific example.

[0138] FIG. 7 shows a schematic diagram of a two-dimensional code image frame according to an embodiment of the present disclosure.

[0139] As shown in FIG. 7, the electronic device may display a two-dimensional code image 701, and an image frame may be provided on the image edge of the two-dimensional code image 701, and the image frame may consist of an L-shaped first sub-frame 702 and a second sub-frame 703, and the first sub-frame 702 and the second sub-frame 703 may be surrounded by a rectangle.

[0140] Optionally, if the characteristic colors include red and blue, the binarized color of red may be black and the binarized color of blue may be white. The first sub-pane 702 may be red and the second sub-pane 703 may be blue.

[0141] The two-dimensional code image 701 is similar to the two-dimensional code image shown in FIG. 6, and will not be described in detail here.

[0142] Optionally, the image frame may further be an open frame made up of sub-frames having distinctive colors, where every two adjacent sub-frames are not connected to each other and every two adjacent sub-frames can be connected to enclose a closed shape.

[0143] When the characteristic colors include a first type of color and a second type of color, each sub-frame of the image frame may include a first sub-frame portion having the first type of color and a second sub-frame portion having the second type of color.

[0144] The image frames in these embodiments will now be described in detail using one specific example.

[0145] FIG. 8 shows a schematic diagram of another two-dimensional code image frame according to an embodiment of the present disclosure.

[0146] As shown in Fig. 8, the electronic device may display a two-dimensional code image 801, and an image frame may be provided within the two-dimensional code image 801, and the image frame may consist of four L-shaped sub-frames 802, and the four sub-frames 802 may be located at the four vertices of the two-dimensional code image 801, respectively, and each sub-frame 802 may include a first sub-frame portion 803 and a second sub-frame portion 804. In addition, in order to make the two-dimensional code image more beautiful, each L-shaped sub-frame 802 may be further rounded, that is, the corners of the L-shaped sub-frame 802 may present a certain arc.

[0147] Optionally, if the characteristic colors include red and blue, the binarized color of red may be black and the binarized color of blue may be white. The first sub-frame portion 803 may be red and the second sub-frame portion 804 may be blue.

[0148] The two-dimensional code image 601 is similar to the two-dimensional code image shown in FIG. 6, and will not be described in detail here.

[0149] In another embodiment of the present disclosure, content information of the target content may further be included in the two-dimensional code image, and the content information may include at least one of a type icon of the target content, a content name of the target content, etc.

[0150] In one embodiment, content information can be located within an image pane if the image pane is a closed pane made up of sub-panels with distinct colors.

[0151] FIG. 9 shows a schematic diagram of another two-dimensional code image frame according to an embodiment of the present disclosure.

[0152] As shown in FIG. 9 , the electronic device may display a two-dimensional code image 701, and an image frame may be provided on the image edge of the two-dimensional code image 701, and the image frame may consist of an L-shaped first sub-frame 702 and a second sub-frame 703. The two-dimensional code image 701 may further include a type icon 704 of the target content, and the type icon 704 may be used to display the type of the target content, and the type icon 704 may be located within a rectangle surrounded by the first sub-frame 702 and the second sub-frame 703.

[0153] Optionally, if the image pane is an open pane consisting of sub-panels with distinctive colors, the content information can be located outside the image pane.

[0154] FIG. 10 shows a schematic diagram of yet another two-dimensional code image frame according to an embodiment of the present disclosure.

[0155] As shown in FIG. 10, the electronic device may display a two-dimensional code image 801, and an image frame may be provided within the two-dimensional code image 801. A target content type icon 805 may be provided at the top edge of the two-dimensional code image 801, and the type icon 805 may be used to display the type of the target content, and the type icon 805 may be located above the image frame.

[0156] The image frame may consist of four L-shaped sub-frames 802, which may be located at the four vertices of the two-dimensional code image 801, respectively, and each sub-frame 802 may include one first sub-frame portion and one second sub-frame portion.

[0157] In some further embodiments of the present disclosure, the picture frame can further be generated according to a characteristic color and a preset color.

[0158] Optionally, the image pane may be a closed pane consisting of sub-panels, each with a characteristic color, and sub-panels with preset colors. A closed pane may enclose a closed shape.

[0159] Optionally, the picture pane may further be an open pane consisting of sub-panels with characteristic and preset colors.

[0160] FIG. 11 shows a schematic diagram of yet another two-dimensional code image frame according to an embodiment of the present disclosure.

[0161] As shown in FIG. 11 , the electronic device may have a two-dimensional code image 801 displayed thereon, and an image frame may be provided within the two-dimensional code image 801, and the image frame may consist of four L-shaped sub-frames 802, and the four sub-frames 802 may be located at the four vertices of the two-dimensional code image 801, respectively, and each sub-frame 802 may include one first sub-frame portion 803, one second sub-frame portion 804, and one third sub-frame portion 806.

[0162] Optionally, if the preset colors include black and the characteristic colors include red and blue, the binarized color of red may be black and the binarized color of blue may be white. The first sub-frame portion 803 may be red, the second sub-frame portion 804 may be blue, and the third sub-frame portion 806 may be black.

[0163] In this manner, in the embodiment of the present disclosure, the recognition of the two-dimensional code can be further improved by using the color of the image frame of the two-dimensional code image.

[0164] In yet another embodiment of the present disclosure, returning to FIG. 2, after S210, the two-dimensional code display method further includes: The method may include the step of displaying a target control in response to a two-dimensional code display operation.

[0165] Optionally, the target control may include at least one of a two-dimensional code storage control, a two-dimensional code scanning control, and a two-dimensional code sharing control.

[0166] Optionally, the target control may further include controls for triggering other functions, not limited here.

[0167] Optionally, the target control can be displayed at any position other than the two-dimensional code image, and is not limited thereto. For example, the target control can be displayed at any position of the two-dimensional code image, such as the top, bottom, upper right, upper left, lower left, lower right, etc.

[0168] The interface on which the two-dimensional code image and the target control are displayed will be described in detail below using a specific example.

[0169] FIG. 12 shows a schematic diagram of an interface for displaying a two-dimensional code image according to an embodiment of the present disclosure.

[0170] As shown in FIG. 12, the electronic device may display a two-dimensional code image 1201 and a target control, and the top edge of the two-dimensional code image 1201 may be provided with a target content type icon 1202, and the target control may include a two-dimensional code storage control 1203, a two-dimensional code scanning control 1204, and a two-dimensional code sharing control 1205.

[0171] The two-dimensional code image 1201 is similar to the two-dimensional code image shown in FIG. 11, and will not be described in detail here.

[0172] The two-dimensional code storage control 1203 can be used to locally store the two-dimensional code image. The two-dimensional code storage control 1203 may be a "store locally" button. The user can click the two-dimensional code storage control 1203 to cause the electronic device to store the two-dimensional code image in the local target storage space of the electronic device.

[0173] The two-dimensional code scanning control 1204 can be used to scan two-dimensional code images displayed by other electronic devices or two-dimensional code images stored locally on the electronic device. The two-dimensional code scanning control 1204 may be a "scan two-dimensional code" button. A user can click the two-dimensional code scanning control 1204 to cause the electronic device to display a two-dimensional code scanning interface and scan two-dimensional code images displayed by other electronic devices in the two-dimensional code scanning interface. The two-dimensional code scanning interface can further include, for example, an "album" icon, and a user can click the album icon to cause the electronic device to display locally stored images, and the user can click any two-dimensional code image in the displayed image to cause the electronic device to scan the two-dimensional code image stored locally on the electronic device selected by the user.

[0174] The two-dimensional code sharing control 1205 can be used to share the two-dimensional code image with other users in the first application program or other application programs other than the first application program. The two-dimensional code sharing control 1205 may be a transfer button. The user can click the two-dimensional code sharing control 1205 to cause the electronic device to display other users in the first application program or other application programs other than the first application program. The user can click at least one of the other users in the first application program to cause the electronic device to transmit the two-dimensional code image to the selected other users through a chat window between the user in the first application program and the selected other users. The user can also click any of the other application programs other than the first application program to cause the electronic device to display shared objects, such as users or social platforms, in the other application programs selected by the user, and the user can select at least one of the shared objects in the other application programs. When the shared object in the other application program selected by the user is a user, the electronic device can send the two-dimensional code image to the selected user via a chat window between the user in the other application program selected by the user and the selected user, and when the shared object in the other application program selected by the user is a social platform, the electronic device can upload the two-dimensional code image to the social platform of the other application program selected by the user.

[0175] In yet another embodiment of the present disclosure, returning to FIG. 2, in S220, the electronic device can further superimpose and display a two-dimensional code image on the interface displayed when the two-dimensional code display operation is accepted.

[0176] Optionally, when a user inputs a two-dimensional code display operation in a display interface of a target content, after the electronic device accepts the two-dimensional code display operation, in response to the two-dimensional code display operation, it can set up a floating layer on the preview interface, and display the two-dimensional code image at any position in the floating layer.

[0177] For example, the target content may be a target video, and the display interface may be a video display interface. After a user inputs a two-dimensional code display operation into the video display interface, the electronic device can directly superimpose and display a two-dimensional code image in the center of the video display interface.

[0178] In some embodiments of the present disclosure, when the electronic device can simultaneously display the two-dimensional code image and the target control in response to the two-dimensional code display operation, the electronic device can further display the two-dimensional code image and the target control superimposed on the interface displayed when the two-dimensional code display operation is accepted. For example, a floating layer is provided on the interface displayed when the two-dimensional code display operation is accepted, and the two-dimensional code image and the target control are displayed at any position within the floating layer.

[0179] As a result, in an embodiment of the present disclosure, the electronic device can directly superimpose a two-dimensional code image on the interface that is displayed when a two-dimensional code display operation is received, thereby reducing the number of page jumps and improving the user experience.

[0180] In yet another embodiment of the present disclosure, S220 may further specifically include the step of displaying a two-dimensional code image on the first background image.

[0181] The first background image may be displayed on the entire screen, or may be displayed at any position on the interface that is displayed when the two-dimensional code display operation is accepted, and there is no limitation here.

[0182] Optionally, the first background image may be a preset image, which may be any image provided in advance and is not limited herein.

[0183] In some embodiments, the first background image may be generated according to a first color.

[0184] In some examples, the first color may be a preset background color, which may be any color provided in advance and is not limited thereto.

[0185] In another example, the first color may be determined in response to a two-dimensional code display operation.

[0186] For example, if the two-dimensional code display operation is the first operation to trigger the display of a two-dimensional code image corresponding to the target content, the first color may be a preset background color. The preset background color may be any color provided in advance, and is not limited here. Also, for example, if the two-dimensional code display operation is not the first operation to trigger the display of a two-dimensional code image corresponding to the target content, the first color may be a color corresponding to the background image finally selected by the user when displaying the two-dimensional code image last time.

[0187] In these embodiments, correspondingly, after S220, the two-dimensional code display method further comprises: receiving an image modification operation, the image modification operation being used to replace a first background image with a second background image; In response to the image change operation, replacing the first background image with the second background image and displaying the second background image.

[0188] A detailed explanation will be given below based on the two-dimensional code display method shown in FIG.

[0189] FIG. 13 shows a schematic flowchart of another method for displaying a two-dimensional code according to an embodiment of the present disclosure.

[0190] As shown in FIG. 13, the two-dimensional code display method may include steps S1310 to S1340.

[0191] S1310, accepting a two-dimensional code display operation, the two-dimensional code display operation being used to trigger display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program;

[0192] S1310 is similar to S210 in the embodiment shown in FIG. 2 and will not be described further here.

[0193] S1320: in response to a two-dimensional code display operation, displaying a two-dimensional code image on a first background image, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point being located above the second main positioning point and having a preset color, the second main positioning point having a characteristic color of a first application program, the first background image being generated according to the first color, and the first color being determined according to the two-dimensional code display operation.

[0194] In the embodiment of the present disclosure, the first color can be determined according to a two-dimensional code display operation.

[0195] In some embodiments, when the two-dimensional code display operation is the first operation to trigger the display of the two-dimensional code image corresponding to the target content, the first color may be a preset background color. The preset background color may be any color provided in advance, and is not limited here.

[0196] In another embodiment, when the two-dimensional code display operation is not the first operation for triggering the display of a two-dimensional code image corresponding to the target content, the first color may be the color corresponding to the background image finally selected by the user when displaying the two-dimensional code image the previous time.

[0197] In an embodiment of the present disclosure, the first background image can be generated according to a first color.

[0198] In some embodiments, the first background image may be an image generated in real time according to the first color.

[0199] Optionally, before S1320, the two-dimensional code display method may further include generating a first background image according to the first color.

[0200] Therefore, after receiving a two-dimensional code display operation, the electronic device can first generate a first background image according to a first color in response to the two-dimensional code display operation, and then display the two-dimensional code image on the first background image.

[0201] The two-dimensional code image has already been described in the above embodiment, so it will not be described here in detail.

[0202] In these embodiments, the first background image may be a monochrome image generated according to the first color. The first background image may be a color gradient image obtained after performing a color gradation process on the first color according to the target color. The present disclosure is not limited thereto. The target color may be any predetermined color, for example, white.

[0203] Furthermore, when the first background image is a color gradation image, the color gradation center may be located within the first background image or may be located outside the first background image, and there is no limitation here.In addition, the color gradation center may be set either fixedly or randomly, and there is no limitation here.

[0204] Optionally, after receiving the two-dimensional code display operation, the electronic device can, in response to the two-dimensional code display operation, first fill a first color into the canvas to generate a first background color image, then determine a color gradation center, and perform color gradation processing on the first color background image based on the determined color gradation center and target color, to obtain a first background image, and then display the two-dimensional code image on the first background image.

[0205] In another embodiment, the first background image may be a pre-generated image according to the first color.

[0206] Optionally, before S1320, the two-dimensional code display method can further include the step of querying a first background image corresponding to a first color.

[0207] In some embodiments, when the two-dimensional code display operation is the first operation for triggering the display of a two-dimensional code image corresponding to the target content, the electronic device can refer to a first background image corresponding to a first color in the preset background images corresponding to each color stored in advance. The preset background image can be generated according to the real-time generation method of the above-mentioned first background image, and will not be described here.

[0208] Optionally, when one color corresponds to multiple preset background images, the electronic device may randomly select one from the preset background images corresponding to the first color, and set the selected preset background image as the first background image.

[0209] In some other embodiments, when the two-dimensional code display operation is not the first operation to trigger the display of a two-dimensional code image corresponding to the target content, the electronic device can obtain the background image last selected by the user when displaying the two-dimensional code image the previous time.

[0210] S1330, accepts an image modification operation, the image modification operation being used to replace the first background image with a second background image.

[0211] In some embodiments of the present disclosure, the image modification operation may be a selection operation on the second background image.

[0212] The image change operation may include an operation such as clicking, long pressing, double clicking, voice control, facial expression control, etc., on the third control to trigger the display of the plurality of images, and a selection operation on the second background image in the plurality of images. Optionally, the plurality of images may include at least one of local images of the electronic device and Internet images, and is not limited thereto. Optionally, the plurality of images may include at least one of static images and dynamic images, such as videos, and is not limited thereto.

[0213] The image changing operation in these embodiments will be described below using one specific example.

[0214] FIG. 14 illustrates another interface schematic diagram for displaying a two-dimensional code image according to an embodiment of the present disclosure.

[0215] 14, the electronic device may display a first background image 1401 in full screen, and a two-dimensional code image 1402 and a third control 1403, such as a "change background" button, may be superimposed on the first background image 1401. The two-dimensional code image 1402 may be located in the center of the first background image 1401, and the third control 1403 may be located above the two-dimensional code image 1402.

[0216] The user can click the third control 1403 to enter the album of the electronic device and select an image in the album as the second background image, causing the electronic device to replace the first background image 1401 with the second background image.

[0217] In another embodiment of the present disclosure, the image modification operation may be an operation for triggering a change in background color.

[0218] Optionally, the second colour may be determined in response to an image modification operation.

[0219] In some embodiments, multiple colors may be pre-stored in the electronic device, and the image modification operation may be used to select a second color.

[0220] The image change operation can include an operation such as clicking or long pressing on the fourth control or any display position to trigger the display of the multiple colors, and a selection operation on a second color in the multiple colors.

[0221] In another embodiment, multiple colors may be pre-stored in the electronic device, and an image modification operation may be used to trigger the selection of a second color by the electronic device.

[0222] The image change operation may include an operation such as a click or a long press input by the user at any display position.

[0223] In some examples, the electronic device may randomly select a second color, different from the first color, from a plurality of colors in response to an image alteration operation.

[0224] In another example, the electronic device can have a plurality of colors pre-stored in it to be circularly arranged in a predetermined arrangement order, and in response to an image change operation, the electronic device can determine a total number of image change operations received after displaying a first background image, determine a ranking position difference between a second color and the first color based on the total number, and further select a second color after the first color from the plurality of circularly arranged colors based on the ranking position difference.

[0225] In the embodiment of the present disclosure, the second background image may be a monochrome image generated according to the second color. The second background image may also include a color gradient image corresponding to the second color. The present disclosure is not limited thereto.

[0226] S1340, in response to an image change operation, the first background image is replaced with a second background image and displayed.

[0227] In an embodiment of the present disclosure, after receiving an image change operation, the electronic device can replace the first background image with the second background image and display it in response to the image change operation.

[0228] Optionally, S1340 specifically provides: The method may include taking the operation position of the image changing operation as the center of the circle and expanding the second background image according to the preset radius increment until the second background image replaces the first background image, wherein the operation position may be a touch center point relative to the display screen of the electronic device when the user inputs the image changing operation.

[0229] Specifically, the electronic device can set the operation position of the image change operation as the center of the circle, gradually expand a circular display area in the first background image from small to large according to a preset radius increment, and display image content at a corresponding position in the second background image within the circular display area, and when the circular display area completely covers the first background image, replace the first background image with the second background image and display it.

[0230] Thus, in the embodiment of the present disclosure, the user can further make personalized adjustments to the background image of the two-dimensional code image, further improving the user experience.

[0231] In some embodiments of the present disclosure, the second background image may be an image generated in real time according to the second color.

[0232] Optionally, before S1340, the two-dimensional code display method may further include generating a second background image according to a second color.

[0233] In some embodiments, when the second background image includes a color gradation image corresponding to the second color, the color gradation image corresponding to the second background image can perform color gradation generation for the second color according to a third color. The third color can include at least one of the first color and the target color, and is not limited herein. Optionally, the target color can be any predetermined color, for example, white.

[0234] Optionally, after receiving the image modification operation, the electronic device can, in response to the image modification operation, first fill a second color into the canvas to generate a second background color image, and then perform color gradation processing on the second color background image based on a third color to obtain a second background image, and further replace the first background image with the second background image for display.

[0235] In these embodiments, optionally, the electronic device may perform color gradation processing on the second color background image based on the third color according to a fixed color gradation center and a fixed gradation radius to obtain a second background image.

[0236] The fixed color gradation center may be any display position, and is not limited herein, for example, the fixed color gradation center may be the center position of the display screen of the electronic device.

[0237] Taking the fixed color gradation center as the center position of the display screen of the electronic device as an example, the electronic device fills a canvas of the same size as the display screen of the electronic device with a second color to generate a second background color image, and then performs color gradation processing on the second color background image based on a third color, with the center position of the canvas as the color gradation center and according to the fixed gradation radius, to obtain a second background image with a fixed gradation radius and with the color gradation center at the center position of the display screen, and further replaces the first background image with the second background image for display.

[0238] Hereinafter, a specific method for generating the second background image in these embodiments will be described by taking the fixed color gradation center as the center position of the display screen of the electronic device as an example.

[0239] FIG. 15 shows a schematic diagram of the background image generation principle according to an embodiment of the present disclosure.

[0240] 15, the electronic device may display a first background image 1501 in full screen, and a two-dimensional code image 1502 may be superimposed on the first background image 1501. The two-dimensional code image 1502 may be located in the center of the first background image 1501.

[0241] After the electronic device accepts the image change operation, a second color is obtained and filled into a canvas of the same size as the first background image with the second color to generate a second-color background image, and further, the center of the first background image 1501 is set as the color gradient center, half the length of the diagonal of the first background image 1502 is set as the gradation radius 1503, and color gradation processing is performed on the second-color background image based on the third color to obtain a second background image after gradation processing, in which the second color gradually transitions from the center to the periphery in the second background image to the third color.

[0242] In another embodiment, when the second background image includes a color gradient image corresponding to a second color and the image modification operation is used to trigger selection of the second color by the electronic device, the color gradient image corresponding to the second background image can perform a color gradient generation for the second color according to an operation parameter of the image modification operation.

[0243] Optionally, the operation parameters may include at least one of an operation position, an operation time length, and an operation force.

[0244] The operation position can be used to determine the color gradation center, the operation time length can be used to determine the color gradation radius and / or the color difference of the second color, and the operation force can be used to determine the color gradation radius and / or the color difference of the second color.

[0245] Furthermore, the color difference of the second color may refer to the color difference between the actual color value and the initial color value of the second color, where the actual color value of the second color refers to the color value at the gradation center point of the second background image, and the initial color value of the second color refers to the color value of the second color preset by the electronic device.

[0246] In some examples, when the operation parameters include an operation position, the electronic device can determine a color gradation center according to the operation position, and perform color gradation processing on the second color background image based on the third color according to the determined color gradation center and the fixed gradation radius to obtain a second background image. The operation position can be a touch center point on the display screen of the electronic device when the user inputs the image change operation.

[0247] Specifically, the electronic device fills a canvas whose size is N times the size of the display screen of the electronic device with a second color (N is a positive integer, for example, N is 4) to generate a second background color image, then performs color gradation processing on the second color background image based on the third color, with the center position of the canvas as the color gradation center and according to a fixed gradation radius, to obtain a second color background image after gradation processing, then cuts out a second background image of the same size as the display screen in the second color background image so that the operation position overlaps with the center position of the canvas and the relative position of the color gradation center in the second background image is the same as the relative position of the operation position on the display screen according to the relative position of the operation position on the display screen of the electronic device, and further replaces the first background image with the second background image having a fixed gradation radius and with the color gradation center at the operation position, and displays it.

[0248] A specific method for generating the second background image in these examples will be described below with reference to FIG.

[0249] FIG. 16 shows a schematic diagram of another background image generation principle according to an embodiment of the present disclosure.

[0250] 16, the electronic device may display a first background image 1601 in full screen, and a two-dimensional code image 1602 may be superimposed on the first background image 1601. The two-dimensional code image 1602 may be located in the center of the first background image 1601.

[0251] When a user clicks a display position 1603 on the first background image 1601, the electronic device can obtain the second color, fill the second color into a canvas whose size is four times that of the first background image 1601, generate a second-color background image 1604, further set the center of the second-color background image 1604 as a color gradient center, set half the length of the diagonal of the second-color background image 1604 as a gradient radius 1605, and perform color gradation processing on the second-color background image 1604 based on the third color to obtain a second-color background image 1604 after the gradation processing, in which the second color can gradually transition to the third color from the center to the periphery in the second-color background image 1604 after the gradation processing, and finally, the electronic device can overlap the display position 1603 with the center of the second-color background image 1604 and crop a second background image having the same size as the first background image 1601 in the second-color background image 1604 after the gradation processing.

[0252] In another example, when the image changing operation includes a long press operation, the operation parameters include an operation time length, and the operation time length is used to determine the color gradation radius, the electronic device can further determine a color gradation radius corresponding to the operation time length according to the correspondence between the time length and the radius, and further perform color gradation processing on the second color background image based on a third color according to the determined color gradation radius, to obtain a second background image, which will not be described further here.

[0253] In yet another example, when the operation parameters include an operating force and the operating force is used to determine the color difference of the second color, the second-color background image is obtained by filling it with an initial color value of the second color, and the electronic device further determines a color difference of the second color corresponding to the operating force according to the correspondence between the degree of force and the color difference, and further adjusts the image color of the second-color background image from the initial color value of the second color to the actual color value of the second color according to the color difference of the second color, and performs color gradation processing on the second-color background image after the image color adjustment based on the third color, to obtain a second background image, which will not be described further here.

[0254] In another embodiment of the present disclosure, the second background image may be an image pre-generated according to a second color.

[0255] Optionally, before S1340, the two-dimensional code display method can further include a step of querying a second background image corresponding to a second color.

[0256] Specifically, the electronic device can search for a second background image corresponding to a second color in the preset background images corresponding to each color stored in advance. The preset background image can be generated according to the real-time generation method of the first background image described above, and the method will not be described here.

[0257] Optionally, when one color corresponds to multiple preset background images, the electronic device may randomly select one from the preset background images corresponding to the second color, and set the selected preset background image as the second background image.

[0258] In this way, the embodiments of the present disclosure can further satisfy the personalization needs of users and improve their experience.

[0259] An embodiment of the present disclosure further provides a two-dimensional code display device, which will be described below in conjunction with FIG.

[0260] In some embodiments of the present disclosure, the two-dimensional code display device may be an electronic device. In some embodiments, the electronic device may be the electronic device 101 in the client shown in FIG. 1. The electronic device may be a device having a communication function, such as a mobile phone, a tablet, a desktop computer, a notebook computer, an in-vehicle terminal, a wearable device, an all-in-one device, or a smart home device, or may be a device simulated by a virtual machine or a simulator.

[0261] FIG. 17 shows a structural schematic diagram of a two-dimensional code display device according to an embodiment of the present disclosure.

[0262] As shown in FIG. 17, the two-dimensional code display device 1700 may include a first receiving unit 1710 and a first display unit 1720 . The first receiving unit 1710 can be configured to receive a two-dimensional code display operation, which is used to trigger the display of a two-dimensional code image corresponding to a target content, and the target content belongs to a first application program. The first display unit 1720 can be configured to display a two-dimensional code image in response to a two-dimensional code display operation, and the two-dimensional code image includes a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point is located above the second main positioning point and has a preset color, and the second main positioning point has a characteristic color of a first application program.

[0263] In an embodiment of the present disclosure, based on the two-dimensional code display operation, a two-dimensional code image corresponding to the target content in a first application program can be displayed, and the two-dimensional code image can include a first main positioning point and a second main positioning point superimposed thereon, where the first main positioning point is located on the second main positioning point and has a preset color, and the second main positioning point has a characteristic color of the first application program, so that the two-dimensional code has the characteristic color of the first application program, and the characteristic color can make the two-dimensional code embody the unique style of the first application program, and improve the recognition of the two-dimensional code.

[0264] In some embodiments of the present disclosure, the two-dimensional code image may further include auxiliary positioning points, which may be uniformly arranged around the first main positioning point and the second main positioning point that are overlapping each other.

[0265] In some embodiments of the present disclosure, the characteristic color may include a first type of color, and a binarized color of the first type of color may be the same as the predetermined color. Correspondingly, the auxiliary positioning point may include a first auxiliary positioning point and a second auxiliary positioning point, the first auxiliary positioning point may have a preset color, and the second auxiliary positioning point may have a first type of color.

[0266] In some embodiments of the present disclosure, the two-dimensional code image may further include a data dot matrix, the data dot matrix may include first data dots and second data dots, the first data dots may have a preset color, and the second data dots may have a characteristic color. Correspondingly, the data dot matrix can be generated according to the target content and can be used to cause a second application program to acquire the target content, and the second application program can include at least one of the first application program and another application program other than the first application program.

[0267] In some embodiments of the present disclosure, the characteristic colors may include a first type of color and a second type of color, and the binarized color of the first type of color may be the same as a predetermined color and the binarized color of the second type of color may be different from the predetermined color. Correspondingly, the second data dots may include second data dots of a first type and second data dots of a second type, the second data dots of the first type may have a first type of color and the second data dots of the second type may have a second type of color, and the first data dots and the second data dots of the first type may be generated according to the target content.

[0268] In some embodiments of the present disclosure, the two-dimensional code image can further include an image frame, and the image frame can be generated according to a characteristic color.

[0269] In some embodiments of the present disclosure, the first display unit 1720 can be further configured to display a two-dimensional code image on a first background image, and the first background image can be generated according to a first color. Correspondingly, the two-dimensional code display device 1700 may further include a second receiving unit and a second display unit.

[0270] The second receiving unit can be arranged to receive an image modification operation, which can be used to replace the first background image with the second background image. The second display unit may be arranged to display, in response to an image changing operation, a second background image replacing the first background image.

[0271] In some embodiments of the present disclosure, the second display unit may be further configured to use the operation position of the image changing operation as the center of a circle and expand the second background image according to a preset radius increment until the second background image replaces the first background image.

[0272] In some embodiments of the present disclosure, the second background image may include a color gradient image corresponding to a second color.

[0273] In some embodiments of the present disclosure, the color gradient image can be generated by performing color gradation on a second color according to a third color, where the third color can include at least one of the first color and a target color.

[0274] In some embodiments of the present disclosure, the color gradient image can be generated by performing color gradation on the second color according to operation parameters of an image modification operation, and the operation parameters can include at least one of an operation position, an operation time length, and an operation force.

[0275] In some embodiments of the present disclosure, the two-dimensional code display device 1700 may further include a third display unit, which may be configured to display a target control in response to a two-dimensional code display operation. The target control may include at least one of a two-dimensional code storage control, a two-dimensional code scanning control, and a two-dimensional code sharing control.

[0276] In addition, the two-dimensional code display device 1700 shown in Figure 17 can execute each step in the method embodiments shown in Figures 2 to 16, and can also realize each process and effect in the method embodiments shown in Figures 2 to 16, so no detailed description will be given here.

[0277] An embodiment of the present disclosure further provides an electronic device, which may include a processor and a memory, and the memory may be used to store executable instructions. The processor may be used to read and execute the executable instructions from the memory to realize the two-dimensional code display method in the above embodiment.

[0278] 18 shows a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. Referring specifically to FIG. 18, a structural schematic diagram suitable for realizing an electronic device 1800 in an embodiment of the present disclosure is shown.

[0279] The electronic device 1800 in an embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and wearable devices, and fixed terminals such as digital TVs, desktop computers, and smart home devices.

[0280] It should be noted that the electronic device 1800 shown in FIG. 18 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure.

[0281] As shown in Fig. 18, the electronic device 1800 can include a processing unit (e.g., a central processing unit, a graphic processor, etc.) 1801 that can perform various suitable operations and processes according to a program stored in a read-only memory (ROM) 1802 or loaded from a storage device 1808 into a random access memory (RAM) 1803. The RAM 1803 further stores various programs and data necessary for the operation of the electronic device 1800. The processing unit 1801, the ROM 1802, and the RAM 1803 are connected to each other via a bus 1804. An input / output (I / O) interface 1805 is also connected to the bus 1804.

[0282] Typically, input devices 1806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyro, etc., output devices 1807 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc., storage devices 1808 including, for example, a magnetic tape, hard disk, etc., and communication devices 1809 can be connected to the I / O interface 1805. The communication devices 1809 enable the electronic device 1800 to communicate wirelessly or via wires with other devices to exchange data. Although FIG. 18 illustrates the electronic device 1800 having various devices, it should be understood that it is not required to implement or include all of the devices shown. Alternatively, more or fewer devices may be implemented or included.

[0283] An embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, causes the processor to realize the two-dimensional code display method in the above embodiment.

[0284] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowcharts can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 1809, or installed from a storage device 1808, or installed from a ROM 1802. When the computer program is executed by the processing device 1801, it performs the above-mentioned functions limited to the two-dimensional code display method of the embodiment of the present application.

[0285] It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium, or a computer-readable storage medium, or any combination of the above. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (electrical programmable ROM, EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (compactdisc ROM, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagating in baseband or as part of a carrier wave, the data signal carrying computer-readable program code. Such a propagated data signal may take many forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may be any computer-readable medium, except for a computer-readable storage medium, which may transmit, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including, but not limited to, an electrical wire, an optical fiber cable, RF (radio frequency), or the like, or any suitable combination of the above.

[0286] In some embodiments, clients and servers may communicate using any network protocol now known or later developed, such as HTTP, and may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network ("LAN"), a wide area network ("WAN"), the World Wide Web (e.g., the Internet), an end-to-end network (e.g., an ad hoc end-to-end network), and any other network now known or later developed.

[0287] The computer readable medium may be included in the electronic device or may be separate from and not located on the electronic device.

[0288] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is The method includes the steps of: accepting a two-dimensional code display operation, the two-dimensional code display operation being used to trigger the display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; and displaying the two-dimensional code image in response to the two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point being located above the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of the first application program.

[0289] In embodiments of the present disclosure, computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages ​​or combinations thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and further including, but not limited to, conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a single stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. When a remote computer is involved, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., connecting via the Internet using an Internet service provider).

[0290] The flowcharts and block diagrams in the drawings illustrate architecture, functions, and operations that can be realized according to the system, method, and computer program product of various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some alternative implementations, the functions shown in the blocks may occur in a different order from the order shown in the figures. For example, two blocks shown in succession may actually be executed essentially in parallel, or in some cases in the reverse order, depending on the functions involved. Also, each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be realized in a dedicated system by hardware, or in a combination of dedicated hardware and computer instructions, for executing a certain function or operation.

[0291] The units described in the embodiments of the present disclosure may be implemented in a software manner or a hardware manner, and the names of the units, if any, do not constitute limitations on the units themselves.

[0292] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that may be utilized include, but are not limited to, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.

[0293] In this disclosure, a machine-readable medium may be a tangible medium that contains or stores a program that may be used by or in combination with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of machine-readable storage media include an electrical connection by one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact magnetic disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0294] The above description is merely a description of the preferred embodiments of the present disclosure and the technical principles applied thereto. As can be understood by those skilled in the art, the disclosure scope of the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, and also includes other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept, for example, the technical solutions formed by replacing the above features with technical features having similar functions disclosed in the present disclosure (but not limited thereto).

[0295] Also, although operations have been described employing a particular order, this should not be construed as requiring that these operations be performed in the particular order or sequence shown. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, the above discussion includes some specific implementation details, but these should not be construed as limitations on the scope of the disclosure. Some features that are described in the context of a single embodiment may be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may be implemented in multiple embodiments separately or in any suitable subcombination.

[0296] Although the present subject matter has been described in language specific to structural features and / or logical operations of a method, it should be understood that the subject matter defined in the appended claims is not limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms for implementing the claims.

Claims

1. A two-dimensional code display method executed by an electronic device, comprising: receiving a two-dimensional code display operation, the two-dimensional code display operation being used to trigger the display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; displaying the two-dimensional code image in response to the two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed thereon, the first main positioning point being located on the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of the first application program; The method according to claim 1, further comprising:

2. the two-dimensional code image further includes auxiliary positioning points, the auxiliary positioning points being uniformly arranged around the first main positioning point and the second main positioning point arranged to overlap each other; 2. The method of claim 1 .

3. The characteristic color includes a first type of color, and a binarized color of the first type of color is the same as the preset color; the auxiliary positioning points include a first auxiliary positioning point and a second auxiliary positioning point, the first auxiliary positioning point having the preset color, and the second auxiliary positioning point having the first type of color; 3. The method of claim 2 .

4. the two-dimensional code image further includes a data dot matrix, the data dot matrix including first data dots and second data dots, the first data dots having the preset color, and the second data dots having the characteristic color; The data dot matrix is ​​generated according to the target content and is used to make a second application program acquire the target content, the second application program including at least one of the first application program and another application program other than the first application program; 2. The method of claim 1 .

5. the characteristic colors include a first type of color and a second type of color, a binarized color of the first type of color is the same as the preset color, and a binarized color of the second type of color is different from the preset color; the second data dots include second data dots of a first type and second data dots of a second type, the second data dots of the first type having a color of the first type and the second data dots of the second type having a color of the second type, the first data dots and the second data dots of the first type being generated in response to the target content; 5. The method of claim 4.

6. the distinctive color of the first application program includes a color included in a distinctive icon of the first application program; 6. The method according to claim 1, wherein the first and second electrodes are connected to a first electrode.

7. the distinctive icon includes a logo of the first application program; 7. The method of claim 6.

8. the two-dimensional code image further includes an image frame, the image frame being generated according to the characteristic color; 2. The method of claim 1 .

9. the image frame is a closed frame made up of sub-frames having the characteristic color, or the image frame is an open frame made up of character frames having the characteristic color; 9. The method of claim 8.

10. when the characteristic colors include a first type of color and a second type of color, the image frame is a closed frame consisting of a first sub-frame having the first type of color and a second sub-frame having the second type of color; 10. The method of claim 9.

11. the image frame is a closed frame consisting of a sub-frame having the characteristic color and a sub-frame having the preset color, or the image frame is an open frame consisting of a sub-frame having the characteristic color and a sub-frame having the preset color; 9. The method of claim 8.

12. The step of displaying the two-dimensional code image includes: displaying the two-dimensional code image on a first background image, the first background image being generated according to a first color; 2. The method of claim 1 .

13. the first background image includes a color gradation image corresponding to the first color; 13. The method of claim 12.

14. After the step of displaying the two-dimensional code image, the method further comprises: receiving an image modification operation, the image modification operation being used to replace the first background image with a second background image, the second background image being generated according to a second color; and in response to the image change operation, replacing the first background image with the second background image and displaying the second background image.

14. The method according to claim 12 or 13.

15. The step of replacing the first background image with the second background image and displaying the same includes: and expanding the second background image according to a preset radius increment, with the operation position of the image changing operation as a center of a circle, until the second background image is replaced with the first background image.

15. The method of claim 14.

16. the second background image includes a color gradation image corresponding to the second color; 15. The method of claim 14.

17. the color gradation image is generated by performing color gradation on the second color according to a third color, the third color including at least one of the first color and a target color; 17. The method of claim 16.

18. the color gradation image is generated by performing a color gradation on the second color in accordance with an operation parameter of the image changing operation, the operation parameter including at least one of an operation position, an operation time length, and an operation force; 18. The method according to claim 16 or 17.

19. After the step of accepting a two-dimensional code display operation, the method further includes: displaying a target control in response to the two-dimensional code display operation; The target control includes at least one of a two-dimensional code storage control, a two-dimensional code scanning control, and a two-dimensional code sharing control; 2. The method of claim 1 .

20. The target content is information to be shared in the first application program, or the target content is an address of a page to display the information to be shared in the first application program.

2. The method of claim 1 .

21. The two-dimensional code image includes a plurality of sets of first and second main positioning points arranged in a superimposed manner, and each set of the first and second main positioning points arranged in a superimposed manner is arranged at one preset point of the two-dimensional code image; 2. The method of claim 1 .

22. Each set of first main positioning points is provided in a plurality of overlapping positions, and / or each set of second main positioning points is provided in a plurality of overlapping positions, 22. The method of claim 21 .

23. When each set of first main positioning points is provided in a plurality of overlapping positions, each set of second main positioning points is provided in an overlapping position with any part of at least one of the first main positioning points.

23. The method of claim 22.

24. When each set of second main positioning points is provided in a plurality of overlapping positions, each of the second main positioning points provided in the overlapping positions of the set is provided in an overlapping position with at least a different portion of the first main positioning points provided in the overlapping positions of the set.

23. The method of claim 22.

25. the center of each set of the first main positioning points is collinear with the center of each set of the second main positioning points, and the centers of the second main positioning points are located on both sides of the center of the first main positioning points, respectively; 23. The method of claim 22.

26. sending a two-dimension code acquisition request including the target content to a server of the first application program in response to the two-dimension code display operation for triggering the display of a two-dimension code image not locally stored in the electronic device, the two-dimension code acquisition request being used to instruct the server to feed back a two-dimension code image corresponding to the target content; receiving the two-dimensional code image transmitted from the server; The method of claim 1 further comprising:

27. generating a two-dimensional code image corresponding to the target content in response to the two-dimensional code display operation to trigger display of a two-dimensional code image not stored locally on the electronic device; The method of claim 1 further comprising:

28. The two-dimensional code image includes a plurality of sets of auxiliary positioning points, each set of auxiliary positioning points being uniformly arranged around a set of first and second main positioning points that are overlapped with each other; 3. The method of claim 2 .

29. the centers of the auxiliary positioning points of each set form a rectangle; 29. The method of claim 28.

30. A two-dimensional code display device, a first accepting unit arranged to accept a two-dimensional code display operation, the two-dimensional code display operation being used to trigger a display of a two-dimensional code image corresponding to a target content, the target content belonging to a first application program; a first display unit arranged to display the two-dimensional code image in response to the two-dimensional code display operation, the two-dimensional code image including a first main positioning point and a second main positioning point superimposed on each other, the first main positioning point being located on the second main positioning point and having a preset color, and the second main positioning point having a characteristic color of the first application program; An apparatus comprising:

31. A processor; a memory for storing executable instructions; Including, The processor reads the executable instructions from the memory and executes them to realize the two-dimensional code display method according to any one of claims 1 to 29.

1. An electronic device comprising:

32. A computer-readable storage medium having a computer program stored therein, the computer program causing the processor to realize the two-dimensional code display method according to any one of claims 1 to 29 when the computer program is executed by the processor. A computer-readable storage medium comprising:

Citation Information

Patent Citations

  • Code generation device and code generation program

    JP2008217124A

  • Position specification method and color specification method and id creation method

    JP2009289066A

  • Two-dimensional code, method for creating same, and computer program

    JP2010009133A

  • Two-dimensional code

    JP2010026665A

  • Two-dimensional code

    JP2010061217A