Two-dimensional code preview information display method and device, storage medium and chip

By analyzing QR code images or their download address, or obtaining QR code preview information from the server, the problem of traditional methods resulting in the reduction of QR code information capacity is solved, and efficient QR code preview information display and user experience are achieved.

CN119557026APending Publication Date: 2025-03-04HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311138787.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The traditional way of embedding QR code previewing information will squeeze the encoding space of the QR code, resulting in a smaller information capacity of the QR code itself.

Method used

By analyzing QR code pictures or their download address, or obtaining QR code preview information from the server, the preview information and picture information are separated and the impact on the QR code encoding space is avoided.

Benefits of technology

It realizes the acquisition and display of QR code preview information without affecting the QR code encoding space, which improves the user experience and is suitable for scenarios where the Internet is connected and not connected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557026A_ABST
    Figure CN119557026A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of two-dimensional code information, provides a two-dimensional code preview information display method and device, a storage medium and a chip, and can solve the problem that the information capacity of a two-dimensional code is reduced due to the fact that a coding space of the two-dimensional code is extruded in a traditional two-dimensional code preview information embedding mode. The method comprises the following steps: displaying a two-dimensional code picture; in response to a first control operation on the two-dimensional code picture, analyzing the two-dimensional code picture to obtain two-dimensional code preview information, or analyzing a downloading address of the two-dimensional code picture to obtain the two-dimensional code preview information, or obtaining the two-dimensional code preview information from a server; wherein the two-dimensional code preview information is used for representing feature information of the two-dimensional code picture; and displaying the two-dimensional code preview information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of two-dimensional code information technology, and in particular to a display method, device, storage medium and chip for two-dimensional code preview information. Background Art

[0002] At present, the QR code (quick response code, QR Code) has become a mainstream data carrier. Users can obtain the data information encoded in the QR code by scanning the QR code through an electronic device, which greatly facilitates the use of the user. In some application scenarios, in order to enable users to perceive some characteristic information of the QR code without scanning the QR code, it can be used as preview information and embedded in part of the QR code image in the form of a small icon. For example, the Logo icon corresponding to the application can be embedded in the middle of the QR code image so that the user can perceive the type of application corresponding to the QR code image. However, since the information carried by the QR code image itself is relatively limited, the small icon embedded in the QR code image not only displays less preview information, but also squeezes the encoding space of the QR code, resulting in a decrease in the information capacity of the QR code itself. Summary of the invention

[0003] The present application provides a method, device, storage medium and chip for displaying QR code preview information, which solves the problem that the traditional method of embedding QR code preview information squeezes the encoding space of the QR code, resulting in a reduction in the information capacity of the QR code itself.

[0004] In order to achieve the above objectives, this application adopts the following technical solutions:

[0005] In a first aspect, a method for displaying QR code preview information is provided, which is applied to an electronic device, and the method includes: displaying a QR code image; in response to a first control operation on the QR code image, parsing the QR code image to obtain QR code preview information, or parsing a download address of the QR code image to obtain the QR code preview information, or obtaining the QR code preview information from a server; wherein the QR code preview information is used to represent feature information of the QR code image; and displaying the QR code preview information.

[0006] Through the method provided in this embodiment, the electronic device can obtain the QR code preview information from different channels in response to the first control operation on the QR code image (for example, click, long press, etc.). Regardless of whether it is obtained by parsing the QR code image or the download address of the QR code image, or from the server, the QR code preview information does not affect the encoding space of the QR code image itself, and can be updated in real time according to the user operation, thereby improving the user experience.

[0007] In some embodiments, when the geometric figures of the QR code in the QR code image carry the QR code preview information, parsing the QR code image to obtain the QR code preview information includes: parsing the geometric figures of the QR code in the QR code image to obtain the QR code preview information.

[0008] The QR code geometric figure refers to the geometric shape displayed by the QR code through a number of small squares corresponding to the binary. That is, when the QR code image is generated, the preview information corresponding to the QR code and the relevant information of the QR code are encoded in the geometric figure of the QR code. When the electronic device obtains the QR code preview, it can directly parse the geometric figure.

[0009] In some embodiments, when the QR code preview information is encoded in the file entity of the QR code image, parsing the QR code image to obtain the QR code preview information includes: parsing the file entity of the QR code image to obtain the QR code preview information.

[0010] In this way, the preview information and picture information can be integrated and bundled. No matter how the QR code image is transmitted and distributed in the future, it can be guaranteed that the receiving device can display the QR code preview information by decoding even without a network, which facilitates the subsequent transmission and acquisition of the preview information and further increases the applicable scenarios.

[0011] In some embodiments, when the QR code preview information is encoded in the file entity of the QR code image using a digital watermark embedding algorithm, parsing the QR code image to obtain the QR code preview information includes: parsing the file entity of the QR code image according to the parsing method of the digital watermark embedding algorithm to obtain the QR code preview information.

[0012] In some embodiments, when the QR code preview information is encoded in the file entity of the QR code image in the picture format protocol of the exchangeable image file, parsing the QR code image to obtain the QR code preview information includes: parsing the file entity of the QR code image according to the picture format protocol of the exchangeable image file to obtain the QR code preview information.

[0013] In this embodiment, whether the QR code preview information is encoded in the file entity of the QR code image using a digital watermark embedding algorithm or a picture format protocol of an exchangeable image file, the QR code preview information can be effectively carried and the preview information can be bundled and transmitted together with the QR code image, thereby improving the effectiveness of carrying without affecting the encoding space of the QR code image itself.

[0014] In addition, the process of an electronic device parsing a QR code image (including the file entity of the image or the geometric figure of the QR code) to obtain the QR code preview information does not require information interaction with the server. Therefore, it can be applied to both when the electronic device is connected to the network and when the electronic device is not connected to the network. It can be specifically set according to actual needs and is not limited in this embodiment.

[0015] In some embodiments, obtaining QR code preview information from a server includes: determining identification information of a QR code image; sending a first acquisition request to the server, the first acquisition request carrying identification information of the QR code image for obtaining the QR code preview information from the server; and receiving the QR code preview information.

[0016] In this embodiment, the electronic device obtains the QR code preview information from the server side. At this time, the electronic device needs to exchange information with the server side. Therefore, this process can be used for the electronic device to obtain the QR code preview information when it is connected to the network. Based on this method, the electronic device can obtain the latest QR code preview information.

[0017] In some embodiments, displaying a QR code image includes: displaying a QR code download address; determining identification information of the QR code image in response to a selection operation on the QR code download address; sending a download request to a server, the download request carrying the identification information of the QR code image, for obtaining the QR code image from the server; receiving and displaying the QR code image.

[0018] It should be understood that when the QR code is displayed, in some application scenarios, the QR code is displayed as a download address. When the user needs to obtain the QR code image, he needs to click or select the download address. After the electronic device responds to the operation, it displays the QR code image.

[0019] In some embodiments, after determining the identification information of the QR code image in response to a selection operation on the QR code download address, the method also includes: sending a second acquisition request to the server, the second acquisition request carries the identification information of the QR code image, and is used to obtain download response information from the server, the QR code preview information is encoded in the HTTP protocol header field of the download response information; receiving and storing the download response information of the QR code image returned by the server.

[0020] In some embodiments, obtaining the QR code preview information from the server includes: parsing the HTTP protocol header field in the download response information to obtain the QR code preview information.

[0021] In an application scenario where a QR code image is displayed through a QR code download address, the electronic device can send a request to the server to obtain download response information from the server when obtaining the QR code image according to the QR code download address. After receiving the request, the server encodes the preview information corresponding to the QR code in the HTTP protocol header field of the download response information and returns it to the electronic device. At this time, the electronic device can parse the HTTP protocol header field in the download response information to obtain the latest QR code preview information.

[0022] In this way, the electronic device only needs to send a request to the server once when obtaining the QR code image according to the download address of the QR code, so as to dynamically receive the latest QR code preview information while obtaining the QR code image. This operation does not require adding an additional network request operation for the QR code preview information, reduces the interaction process, and improves communication efficiency.

[0023] In some embodiments, parsing the QR code image to obtain QR code preview information also includes: parsing the QR code image to obtain first initial QR code preview information; when the first initial QR code preview information is within the validity period, determining the first initial QR code preview information as the QR code preview information of the QR code image; when the first initial QR code preview information is not within the validity period, obtaining updated QR code preview information from the server.

[0024] In some embodiments, parsing the download address of the QR code image to obtain the QR code preview information also includes: parsing the download address of the QR code image to obtain second initial QR code preview information; when the second initial QR code preview information is within the validity period, determining the second initial QR code preview information as the QR code preview information of the QR code image; when the second initial QR code preview information is not within the validity period, obtaining updated QR code preview information from the server, or parsing the HTTP protocol header field in the download response information to obtain the QR code preview information.

[0025] Through the method provided in the above embodiment, the electronic device can obtain the latest QR code preview information.

[0026] In some embodiments, the first control operation includes a click or a long press operation on the area where the QR code image is located.

[0027] In other embodiments, the first control operation may also be a sliding or double-clicking operation.

[0028] In some embodiments, the QR code preview information includes at least one of text, picture, mixed text and picture, audio and video.

[0029] Based on different types of QR code preview information, diversified display of QR code preview information can be achieved.

[0030] In some embodiments, after displaying the QR code preview information, the method further includes: displaying a QR code image in response to a second control operation on the QR code preview information.

[0031] In some embodiments, the second control operation includes a click or a long press operation on the area where the QR code preview information is located.

[0032] Through the method provided in this embodiment, after displaying the QR code preview information, the electronic device starts to monitor the second control operation in the QR code preview information display area. When the second control operation event occurs in the QR code preview information display area, it returns to the display interface including the QR code image, so that the user can determine whether to further scan the QR code image according to the QR code preview information.

[0033] In a second aspect, a display device for QR code preview information is provided, which is applied to an electronic device, and the device includes a first display module, an acquisition module and a second display module; wherein the first display module is used to display a QR code image; the acquisition module is used to parse the QR code image to obtain the QR code preview information in response to a first control operation on the QR code image, or to parse the download address of the QR code image to obtain the QR code preview information, or to obtain the QR code preview information from a server; wherein the QR code preview information is used to represent feature information of the QR code image; the second display module is used to display the QR code preview information.

[0034] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for displaying the QR code preview information as shown in the first aspect is implemented.

[0035] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for displaying the QR code preview information as shown in the first aspect is implemented.

[0036] In a fifth aspect, a chip is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for displaying the QR code preview information as shown in the first aspect is implemented.

[0037] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a display method of QR code preview information provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a display method of QR code preview information provided by another embodiment of the present application;

[0040] Figure 3 A schematic structural diagram of a display system for QR code preview information provided by an embodiment of the present application;

[0041] Figure 4 A schematic structural diagram of a display system for QR code preview information provided by another embodiment of the present application;

[0042] Figure 5 A schematic structural diagram of a hosting server provided in an embodiment of the present application

[0043] Figure 6 A schematic structural diagram of an application server provided in an embodiment of the present application;

[0044] Figure 7 A schematic structural diagram of an electronic device provided in one embodiment of the present application;

[0045] Figure 8 A schematic flow chart of a method for generating a two-dimensional code according to an embodiment of the present application;

[0046] Fig. 9 A schematic flow chart of a hosting server encoding QR code preview information provided in an embodiment of the present application;

[0047] Fig.10 A schematic flow chart of a hosting server encoding QR code preview information provided by another embodiment of the present application;

[0048] Fig.11 A schematic diagram of an interface of a QR code image provided in an embodiment of the present application;

[0049] Fig.12 A schematic diagram of an interface of a QR code image provided by another embodiment of the present application;

[0050] Fig.13 A schematic diagram of a display process of an electronic device displaying a QR code image based on a download address of a QR code provided by an embodiment of the present application;

[0051] Fig.14 A schematic diagram of a method for displaying a QR code image provided by an embodiment of the present application;

[0052] Fig.15 A schematic interactive flow chart of a method for displaying QR code preview information provided by an embodiment of the present application;

[0053] Fig.16 A schematic diagram of an interface for displaying QR code preview information provided in an embodiment of the present application;

[0054] Fig.17 A schematic interactive flow chart of a method for displaying QR code preview information provided in another embodiment of the present application;

[0055] Fig.18 A schematic diagram of an interface for displaying QR code preview information provided in an embodiment of the present application;

[0056] Fig.19 A schematic interactive flow chart of a method for displaying QR code preview information provided in yet another embodiment of the present application;

[0057] Fig. 20 A schematic diagram of a process of switching from a QR code preview information to a QR code image interface provided in an embodiment of the present application;

[0058] Fig.21 A schematic structural diagram of a display device for QR code preview information provided by an embodiment of the present application;

[0059] Fig. 22 A schematic structural diagram of a chip provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0060] The technical solution provided in the embodiments of the present application is described below with reference to the accompanying drawings.

[0061] It should be understood that in the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0062] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0063] With the development of Internet technology, the convenience brought by the current use of QR codes has led to an increasing number of application scenarios for QR codes, such as product anti-counterfeiting / tracing, advertising push, website links, data downloads, commodity transactions, positioning / navigation, electronic vouchers, and vehicle management. As a mainstream data carrier, QR codes are usually displayed to users in the form of static images, and users can extract the data information encoded in the QR code through image recognition. Based on this, in this embodiment, the static image that displays the QR code is called a QR code image.

[0064] In some application scenarios, users usually need to first understand some characteristic information of the QR code image, and then determine whether to further scan the QR code to obtain more data information of the QR code based on the characteristic information. For example, the characteristic information can be the logo icon of the application, the full membership of the WeChat group, or the transaction period when the commodity is traded.

[0065] For example, for a QR code image of a payment code, the user first needs to know what the payment code is. Payment code, If the QR code is a payment code or a payment code of other payment applications, it can determine which application needs to be launched to scan the QR code image and complete the payment operation. For example, for a QR code image of adding a WeChat group, the user can first understand whether the WeChat group is full, and then scan the WeChat group QR code and join the group chat if the WeChat group is not full, so as to reduce the user's invalid operations.

[0066] In some implementations, in order to enable users to perceive some characteristic information of the QR code in advance without scanning the QR code, the characteristic information of the QR code can be presented in the form of QR code preview information. Based on the QR code preview information, the user determines whether to further scan the QR code image to obtain more data information.

[0067] Currently, the preview information of the QR code is usually embedded in a part of the QR code image in the form of a small icon. For example, the logo icon corresponding to the application is embedded in the middle of the QR code image so that the user can perceive the type of application corresponding to the QR code image. Figure 1 However, since the information carried by the QR code image itself is relatively limited, the small icon embedded in the QR code image not only displays less preview information, but also squeezes the encoding space of the QR code, resulting in a decrease in the information capacity of the QR code itself.

[0068] In some embodiments, the preview information of the QR code can also be embedded in other image files together with the QR code image. Figure 2As shown in , the QR code preview information is distributed around the QR code image. However, this method easily leads to untimely update of the QR code preview information or an overall large image file.

[0069] Based on the above problems, an embodiment of the present application provides a method for displaying QR code preview information. In this method, the QR code preview information displayed by the electronic device is obtained by parsing the QR code image or the download address of the QR code image, or from a server. The QR code preview information does not affect the encoding space of the QR code image itself, and can be updated in real time according to user operations, thereby improving the user experience.

[0070] Figure 3 is a schematic structural diagram of a display system for QR code preview information applicable to an embodiment of the present application, see Figure 3 As shown, the system includes an electronic device 100, a hosting server 200 and an application server 300. The electronic device 100 is a device that supports generating a request for obtaining a QR code preview information, processing the QR code preview information and displaying the QR code preview information. The hosting server 200 is an intermediate server that provides QR code image downloading, QR code generation, QR code hosting, QR code image preview information embedding processing, and real-time processing of a request for obtaining a QR code preview information. The application server 300 is a server that centrally manages the QR code preview information. The application server 300 can update the QR code preview information in a timely manner and provide a query interface to the hosting server 200.

[0071] It should be noted that, in some other embodiments, the hosting server 200 and the application server 300 may be integrated into a server 400, and the server 400 is used to perform all the functions of the hosting server 200 and the application server 300. Figure 4 shown.

[0072] In the embodiment provided in the present application, the hosting server 200 is independently deployed and provides services, that is, the hosting server 200 and the application server 300 are separated, and the hosting server 200 provides a unified standard QR code preview information processing flow and specification, which is convenient for the use of the electronic device 100 and the application server 300, thereby making the display system provided in this embodiment more universal.

[0073] Figure 5 A schematic diagram of the structure of a hosting server provided in an embodiment of the present application is shown in FIG. Figure 5As shown, the hosting server 200 includes at least one central processing unit (CPU) 210 (e.g., at least one processor) and a memory 220, and at least one storage medium 230 (e.g., at least one mass storage device) storing application programs or data. The memory 220 and the storage medium 230 may be temporary storage or permanent storage. The program stored in the storage medium 230 may include at least one module (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 210 may be configured to communicate with the storage medium 230 to execute a series of instruction operations in the storage medium 230 on the hosting server 200.

[0074] In addition, the hosting server 200 may further include at least one power supply 240, at least one wired or wireless network interface 250, at least one input and output interface 260, and / or at least one operating system 270, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0075] Figure 6 For a schematic diagram of the application server provided in one embodiment of the present application, see Figure 6 As shown, the application server 300 includes a processor unit 310, a storage unit 320, a network module unit 330 and an input and output interface 340, which mainly implements the business processing logic of the application itself and centrally manages the QR code preview information. The application server 300 can update the QR code preview information in a timely manner and provide a query interface for the QR code hosting server. The QR code hosting server can obtain the latest preview information of the QR code through the query interface.

[0076] Figure 7 : is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) interface 730, a charging management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, an earphone interface 770D, a sensor module 780, a button 790, a motor 791, an indicator 792, a camera 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc.

[0077] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0078] For example, when the electronic device is a mobile phone or a tablet computer, it may include all the components shown in the figure, or may include only some of the components shown in the figure.

[0079] The processor 710 may include one or more processing units. Among them, different processing units may be independent devices or integrated into one or more processors. A memory may also be provided in the processor 710 for storing instructions and data. In some embodiments, the memory in the processor 710 is a cache memory. The memory may store instructions or data that the processor 710 has just used or circulated. If the processor 710 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 710 is reduced, thereby improving the efficiency of the system. In addition, the processor 710 also includes a two-dimensional code preview information processing unit, which is used to respond to the control operation of the screen where the two-dimensional code image is located, obtain the two-dimensional code preview information, and display it through the display screen 794.

[0080] The external memory interface 720 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 710 through the external memory interface 720 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0081] The internal memory 721 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 710 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 721. The internal memory 721 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.).

[0082] In addition, the internal memory 721 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0083] The USB interface 730 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 730 can be used to connect a charger to charge an electronic device, and can also be used to transfer data between an electronic device and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0084] The charging management module 740 is used to receive charging input from the charger. The power management module 741 is used to connect the battery 742, the charging management module 740 and the processor 710. The power management module 741 receives input from the battery 742 and / or the charging management module 740 to power the processor 710, the internal memory 721, the external memory, the display screen 794, the camera 793, and the wireless communication module 760.

[0085] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 750, wireless communication module 760, modem processor and baseband processor.

[0086] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0087] The mobile communication module 750 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 750 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 750 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 750 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0088] In some embodiments, at least some functional modules of the mobile communication module 750 may be disposed in the processor 710. In some embodiments, at least some functional modules of the mobile communication module 750 and at least some functional modules of the processor 710 may be disposed in the same device.

[0089] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 770A, a receiver 770B, etc.), or displays an image or video through a display screen 794. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 710 and be set in the same device as the mobile communication module 750 or other functional modules.

[0090] The wireless communication module 760 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 760 can be one or more devices integrating at least one communication processing module. The wireless communication module 760 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 710. The wireless communication module 760 can also receive the signal to be sent from the processor 710, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0091] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 750, and antenna 2 is coupled to wireless communication module 760, so that the electronic device can communicate with the network and other devices through wireless communication technology.

[0092] The electronic device can implement audio functions through the audio module 770, the speaker 770A, the receiver 770B, the microphone 770C, the headphone jack 770D, and the application processor.

[0093] The audio module 770 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 770 can also be used to encode and decode audio signals. In some embodiments, the audio module 770 can be arranged in the processor 710, or some functional modules of the audio module 770 are arranged in the processor 710.

[0094] The speaker 770A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 770A. In addition, the speaker 770A can also emit an ultrasonic signal of a preset frequency (such as f1) according to the control of the processor 710.

[0095] The receiver 770B, also called the "earpiece", is used to convert the audio electrical signal into a sound signal. When the electronic device receives a call or voice message, the voice can be received by placing the receiver 770B close to the human ear. In addition, the receiver 770B can also transmit an ultrasonic signal of a preset frequency (such as f2) according to the control of the processor 710.

[0096] Microphone 770C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 770C with his mouth to input the sound signal into the microphone 770C. An electronic device may be provided with at least one microphone 770C. In some embodiments, the microphone 770C may also receive ultrasonic signals, for example, ultrasonic signals of different frequencies emitted by speakers and receivers of other electronic devices.

[0097] The earphone interface 770D is used to connect a wired earphone and can be a USB interface 730 or a 3.7 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0098] The key 790 includes a power key, a volume key, etc. The key 790 may be a mechanical key or a touch key. The electronic device may receive key input and generate key signal input related to user settings and function control of the electronic device.

[0099] Motor 791 can generate vibration prompts. Motor 791 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 794, motor 791 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0100] Indicator 792 may be an indicator light that may be used to indicate charging status, power changes, messages, missed calls, notifications, and the like.

[0101] The electronic device implements the display function through a GPU, a display screen 794, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 794 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 710 may include one or more GPUs that execute program instructions to generate or change display information.

[0102] The display screen 794 is used to display images, videos, etc. The display screen 794 includes a display panel. In some embodiments, the electronic device may include 1 or N display screens 794, where N is a positive integer greater than 1. When the display screen 794 displays an image, the image may be a display interface including a QR code image or a QR code download address, or a display interface including QR code preview information, etc. In addition, the display screen 794 also includes a user input unit, which is used to obtain user input information.

[0103] The SIM card interface 795 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device by inserting the SIM card interface 795 or removing the SIM card interface 795. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.

[0104] Combine the following Figure 3 The display system of the QR code preview information shown exemplifies the display method of the QR code preview information provided in the embodiment of the present application in three aspects: (1) generation of the QR code, (2) display of the QR code, and (3) display process of the QR code preview information.

[0105] (I) Generation of QR Code

[0106] Figure 8 A schematic flow chart of a method for generating a QR code according to an embodiment of the present application is shown in FIG. Figure 8 As shown, the method includes the following steps S801-S802.

[0107] S801, the hosting server obtains relevant information of the QR code.

[0108] In this embodiment, the relevant information includes data information of the QR code, identification information, preview information of the QR code, and some interface configuration information related to the application server.

[0109] S802: The hosting server generates a QR code image based on the relevant information of the QR code.

[0110] In this embodiment, after obtaining the relevant information of the QR code, the hosting server processes the relevant information according to the QR code generation principle, such as the matrix principle, the row principle, etc., to record the relevant information through a number of geometric shapes corresponding to the binary system (i.e., the geometric figures of the QR code).

[0111] In some embodiments, the geometric figure of the QR code in the QR code image generated by the hosting server carries the QR code preview information.

[0112] In some other embodiments, the geometric figure of the two-dimensional code of the two-dimensional code image generated by the hosting server does not carry the two-dimensional code preview information. In this case, the hosting server can encode the two-dimensional code preview information into the file entity of the two-dimensional code image.

[0113] In some implementations of this embodiment, the hosting server encodes the QR code preview information into the file entity of the QR code image through a digital watermark embedding algorithm. Fig. 9 As shown, the hosting server processes the QR code preview information according to the key and the watermark generation algorithm to generate a watermark signal, and then combines the watermark signal with the QR code image through a watermark embedding algorithm to generate a QR code image embedded with the watermark signal, thereby encoding the QR code preview information in the file entity of the QR code image.

[0114] In some other implementations of this embodiment, the hosting server encodes the QR code preview information into the file entity of the QR code image by using the exchangeable image file (EXIF) image format protocol. Fig.10As shown, the hosting server embeds the QR code preview information in the extended data area of ​​the file entity of the QR code image based on the EXIF ​​image format protocol, so that the file entity of the QR code image carries the QR code preview information. It should be understood that in various image formats (such as joint photographic experts group (JPEG), portable network graphics (PNG), tagged image file format (TIFF), bitmap file (bitmap, BMP), etc.), the image file includes an image data area and a part of the extended data area, wherein the image data area is used to add the relevant data of the image itself, while the part of the extended data area has nothing to do with the image display itself and does not participate in the expression of the image pixel data. Therefore, the specification extensibility support can be used to add additional customized information items, such as using the EXIF ​​image format protocol to embed additional customized information items in the extended data area.

[0115] In this embodiment, the hosting server encodes the QR code preview information into the QR code image file entity by directly encoding the QR code preview information into the image entity corresponding to the QR code, thereby realizing the integrated bundling of the preview information and the image information. No matter how the QR code image is subsequently transmitted and distributed, it can be ensured that the receiving device can display the QR code preview information by decoding even without a network, thereby facilitating the subsequent transmission and acquisition of the preview information and further increasing the applicable scenarios. Compared with the traditional technology in which the QR code preview information is embedded in the QR code image in the form of a small icon or the QR code image is embedded in other images, and additional preview information reminders are added around the QR code image, this method can realize the effective carrying of the QR code preview information and the preview information can be bundled and transmitted together with the QR code image, thereby improving the effectiveness of carrying, and does not affect the encoding space of the QR code image itself.

[0116] As can be seen from the above, there are two ways to encode the QR code preview information in the QR code image. One is to record the QR code preview information in the geometric figures of the QR code image, and the other is to encode the QR code preview information in the file entity of the QR code image.

[0117] Optionally, after generating the QR code image, the hosting server may also generate a download address corresponding to the QR code image.

[0118] In this embodiment, the download address of the QR code image is used to display the QR code image when it is selected, such as when it is long pressed or clicked by the user.

[0119] In some embodiments, when the hosting server generates a download address corresponding to the QR code image, the QR code preview information is not encoded in the download address.

[0120] In other embodiments, when the hosting server generates a download address corresponding to the QR code image, the preview information of the QR code is encoded in the download address.

[0121] Exemplarily, the hosting server may encode the QR code preview information in the parameter name of the download address of the QR code image, such as http: / / xxx.com / a123.jpg?param=<QR code preview information>. The parameter name carrying the preview information may be any preset name or format, such as JavaScript object notation (json) format or extensible markup language (xml) format. By encoding the QR code preview information in the QR code image download address, a simpler and more effective way of carrying the QR code preview information can be achieved.

[0122] As can be seen from the above, the QR code image obtained by the QR code generation method provided by this embodiment can be a QR code image without encoding the QR code preview information, or a QR code image encoding the QR code preview information. Therefore, after the hosting server generates the QR code image and sends the QR code image to the electronic device, the QR code image displayed in the electronic device can also be two different types of images.

[0123] (II) Display of QR Code

[0124] After generating the QR code image and / or the download address of the QR code image, the hosting server distributes the QR code image or the download address of the QR code image to the electronic device, and the electronic device can display it according to specific needs.

[0125] In some embodiments, the electronic device displays the QR code in the form of a static QR code image, such as embedding the QR code image in a website interface, or displaying the QR code image in an application interface, see Fig.11 as well as Fig.12 shown.

[0126] In some other embodiments, the electronic device displays the QR code in the form of a download address of the QR code. In response to the user's selection operation of the download address of the QR code, the electronic device displays the QR code image. The display process is shown in FIG. Fig.13 and Fig.14 shown.

[0127] Fig.14A schematic diagram of a method for displaying a two-dimensional code image provided in an embodiment of the present application, the method comprising the following steps S1401 to S1405.

[0128] S1401, the electronic device displays the download address of the QR code.

[0129] Combination Fig.13 As shown, in this embodiment, the electronic device does not directly display the QR code image, but embeds the download address of the QR code image in the display interface in the form of a link, and the user can choose whether to download and display the QR code image as needed.

[0130] S1402: The electronic device determines identification information of the QR code image in response to a selection operation on the QR code download address.

[0131] The selection operation includes the user clicking on the screen area where the QR code download address is located, or the user moving the cursor to click on the QR code download address, or the user searching and selecting the QR code download address through a browser. It should be understood that when each QR code image is generated, there is unique identification information corresponding to the QR code image, and the identification information is used to uniquely represent the corresponding QR code. Exemplarily, the identification information can be a string corresponding to the QR code.

[0132] S1403, the electronic device sends a download request to the hosting server, where the download request carries identification information of the QR code image and is used to obtain the QR code image from the server.

[0133] Combination Fig.13 As shown in , when a user needs to obtain a group chat QR code to join a group chat, he first clicks on the download address link of the QR code. The electronic device responds to the click operation and displays a QR code image. Then the user recognizes the QR code image and joins the group chat.

[0134] S1404, the hosting server sends the QR code image to the electronic device.

[0135] S1405, the electronic device receives and displays the QR code image.

[0136] It should be noted that when an electronic device displays a QR code in the form of a QR code image, the QR code image may be a QR code image that does not encode the QR code preview information, or a QR code image that encodes the QR code preview information. Similarly, when an electronic device displays a QR code in the form of a QR code download address, the QR code download address may be a download address that encodes the QR code preview information, or a download address that does not encode the QR code preview information; the QR code image corresponding to the QR code download address may be a QR code image that does not encode the QR code preview information, or a QR code image that encodes the QR code preview information.

[0137] (III) Display process of QR code preview information

[0138] In this embodiment, the electronic device obtains the QR code preview information in different ways as an example to exemplarily illustrate the display process of the QR code preview information.

[0139] Example 1: An electronic device parses a QR code image to obtain QR code preview information.

[0140] Fig.15 A schematic interactive flow chart of a method for displaying a QR code preview information provided in an embodiment of the present application, see Fig.15 As shown, the method includes the following steps S1501 to S1503.

[0141] S1501, the electronic device displays a QR code image.

[0142] In this embodiment, the QR code image can be embedded in the display interface of the electronic device in the form of a static entity image. Fig.12 As shown in . The two-dimensional code image is a two-dimensional code image that encodes the two-dimensional code preview information. The specific encoding method has been introduced in the above embodiment, and will not be repeated in this embodiment.

[0143] S1502: In response to a first control operation on the QR code image, the electronic device parses the QR code image to obtain QR code preview information.

[0144] In some embodiments, when the electronic device displays a QR code image, the electronic device starts monitoring a first control operation of the screen area where the QR code image is located, such as clicking, long pressing, etc.

[0145] In some embodiments, the electronic device decodes the QR code image according to a preset decoding method to obtain the QR code preview information. The preset decoding method may be a method agreed upon in advance or set. Exemplarily, when the QR code preview information is encoded in the file entity of the QR code image using a digital watermark embedding algorithm, the electronic device parses the QR code image according to the parsing method of the digital watermark embedding algorithm to obtain the QR code preview information. When the QR code preview information is encoded in the file entity of the QR code image using the EXIF ​​picture format protocol, the electronic device parses the file entity of the QR code image according to the picture format protocol of the exchangeable image file to obtain the QR code preview information.

[0146] In some other implementations of this embodiment, when a QR code image is generated, if the hosting server pre-configures the QR code preview information corresponding to the QR code image in the geometric figure corresponding to the QR code image when generating the QR code image, the electronic device may also parse the geometric figure of the QR code image to obtain the QR code preview information pre-configured by the hosting server in the QR code image.

[0147] It can be seen that the process of an electronic device parsing a QR code image (including the file entity of the image or the geometric figure of the QR code) to obtain the QR code preview information does not require information interaction with the server. Therefore, it can be applied to both when the electronic device is connected to the network and when the electronic device is not connected to the network. It can be specifically set according to actual needs and is not limited in this embodiment.

[0148] In this embodiment, the networking status of the electronic device includes whether the electronic device is connected to a network or not connected to a network, and the network includes a wired network, a wireless network, or a cellular mobile network.

[0149] Optionally, in some other embodiments, the electronic device parsing the QR code image to obtain the QR code preview information further includes: the electronic device first parses the QR code image to obtain first initial QR code preview information, wherein the first initial QR code preview information includes the QR code preview information pre-encoded in the QR code image (including the file entity of the image or the geometric figure of the QR code) by the hosting server. Then, it is determined whether the first initial QR code preview information is within a valid range. When the first initial QR code preview information is within a valid range, the electronic device determines the first initial QR code preview information as the QR code preview information of the QR code image. When the first initial QR code preview information is not within a valid range, the electronic device obtains updated QR code preview information from the server by sending a first acquisition request to the server, see Fig.15 The process of the electronic device obtaining the QR code preview information from the server by sending a first acquisition request to the server will be described in detail in Example 3 below, and will not be repeated in this embodiment. This method can ensure that the QR code preview information obtained by the electronic device is the latest valid information.

[0150] In this embodiment, the QR code preview information includes text, pictures, mixed text and pictures, or other multimedia information, such as audio information or video information, etc. When the QR code preview information is displayed to the user in other ways, such as audio information or video information, compared with the static presentation of the QR code picture, this embodiment can provide dynamic QR code preview information, so that the user can obtain more QR code preview information in the network state without scanning the code.

[0151] S1503, the electronic device displays QR code preview information.

[0152] In this embodiment, the electronic device can display the QR code preview information in the form of animation playback. For example, the electronic device flips the display interface of the current QR code image and displays the QR code preview information on the back of the QR code image; or the electronic device displays a pop-up window on the display interface of the QR code image, and the pop-up window includes the QR code preview information. The display process is shown in FIG. Fig.16 as shown in .

[0153] Example 2: An electronic device parses a download address of a QR code image to obtain QR code preview information.

[0154] Fig.17 A schematic interactive flow chart of a method for displaying a QR code preview information provided by another embodiment of the present application, see Fig.17 As shown, the method includes the following steps S1701 to S1703.

[0155] S1701, the electronic device displays the download address of the QR code.

[0156] S1702: The electronic device determines identification information of the QR code image in response to a selection operation on the QR code download address.

[0157] S1703, the electronic device sends a download request to the hosting server, where the download request carries identification information of the QR code image and is used to obtain the QR code image from the server.

[0158] Optionally, step S1703 further includes: the electronic device sends a second acquisition request to the hosting server, the second acquisition request carries identification information of the QR code image, and is used to obtain download response information from the hosting server, wherein the QR code preview information is encoded in a header field of the hypertext transfer protocol (HTTP). Fig.17As shown in the dotted part of step S1703, the electronic device sends a second acquisition request to the hosting server. After receiving the second acquisition request sent by the electronic device, the hosting server generates and sends a query request to the application server based on the identification information in the second acquisition request. The query request is used to instruct the application server to query the QR code preview information corresponding to the QR code image according to the identification information. After the application server determines the QR code preview information, it returns the QR code preview information to the hosting server. After receiving the QR code preview information, the hosting server encodes the QR code preview information in the HTTP protocol header field of the download response information and returns it to the electronic device. Among them, the QR code preview information field name and encoding format can be any form of agreed name or format. The electronic device receives and stores the download response information of the QR code image returned by the hosting server.

[0159] S1704, the hosting server sends the QR code image to the electronic device.

[0160] S1705, the electronic device receives and displays the QR code image.

[0161] S1706: In response to the first control operation on the QR code image, the electronic device parses the download address of the QR code image to obtain QR code preview information.

[0162] In this embodiment, when the electronic device parses the QR code download address to obtain the QR code preview information, its parsing method corresponds to the method of encoding the QR code preview information in the QR code download address. Exemplarily, when the QR code preview information is encoded into the parameter name of the QR code download address in a preset format, the electronic device uses a decoding method corresponding to the preset format to parse the QR code download address to obtain the QR code preview information. Specifically, the preset format can be a format that is set in advance or agreed upon.

[0163] S1707, when the QR code preview information is not within the valid range, the electronic device obtains the latest QR code preview information from the server, or parses the HTTP protocol header field of the download response information to obtain the QR code preview information.

[0164] In this embodiment, step S1707 is an optional step, that is, after the electronic device parses the download address of the QR code to obtain the second initial QR code preview information, it determines whether the second initial QR code preview information is within the validity period, wherein the second initial QR code preview information includes the QR code preview information encoded in the QR code download address by the hosting server. When the second initial QR code preview information is within the validity period, the second initial QR code preview information is determined as the QR code preview information of the QR code image; when the second initial QR code preview information is not within the validity period, the electronic device obtains the updated QR code preview information from the server by sending a first acquisition request to the server. The process of the electronic device obtaining the QR code preview information from the server by sending the first acquisition request to the server will be specifically described in Example 3 below, and will not be repeated in this embodiment.

[0165] That is to say, when the QR code preview information obtained by the electronic device by parsing the download address of the QR code is within the validity period, step S1708 is directly executed; and when the QR code preview information obtained by the electronic device by parsing the download address of the QR code is not within the validity period, S1707 is executed to obtain the updated QR code preview information.

[0166] Optionally, if the electronic device responds to the selection operation of the QR code download address, determines the identification information of the QR code image, and receives and stores the download response information of the QR code image returned by the hosting server, the HTTP protocol header field of the download response information is encoded with the QR code preview information, specifically refer to the optional content shown in the aforementioned step S1703. At this time, when the second initial QR code preview information is not within the validity period, the electronic device can parse the HTTP protocol header field of the download response information to obtain the QR code preview information. At this time, the electronic device obtains the latest QR code preview information encoded in the download response information by the hosting server. In this way, the electronic device only needs to send a request to the hosting server when obtaining the QR code image according to the QR code download address, so as to realize the dynamic reception of the latest QR code preview information while obtaining the QR code image. This operation does not need to add an additional network request operation for the QR code preview information, reduces the interaction process, and improves the communication efficiency.

[0167] S1708, the electronic device displays the QR code preview information.

[0168] In this embodiment, the electronic device can display the QR code preview information in the form of animation playback. Fig.18 Shown is an interface schematic diagram of the QR code preview information display process provided in an embodiment of the present application.

[0169] Through the display method of QR code preview information provided by this embodiment, the electronic device obtains the QR code preview information by parsing the download address of the QR code image, thereby expanding the carrying method of the QR code preview information and achieving simpler and more efficient acquisition of the QR code preview information.

[0170] Example 3: The electronic device obtains QR code preview information from the server.

[0171] Fig.19 A schematic interactive flow chart of a method for displaying a QR code preview information provided in another embodiment of the present application is shown in FIG. Fig.19 As shown, the method includes the following steps S1901 to S1908.

[0172] S1901, the electronic device displays a QR code image.

[0173] S1902: The electronic device determines identification information of the QR code image in response to a first control operation on the QR code image.

[0174] S1903, the electronic device sends a first acquisition request to the hosting server, where the first acquisition request carries identification information of the QR code image and is used to obtain QR code preview information from the hosting server.

[0175] S1904: The hosting server generates and sends a query request to the application server according to the first acquisition request. The query request is used to instruct the application server to query the QR code preview information corresponding to the QR code image according to the identification information.

[0176] S1905: After determining the QR code preview information according to the identification information, the application server returns the QR code preview information to the hosting server.

[0177] S1906: The hosting server receives the QR code preview information and sends the QR code preview information to the electronic device.

[0178] S1907, the electronic device receives the QR code preview information.

[0179] S1908, the electronic device displays the QR code preview information.

[0180] In this embodiment, when the electronic device obtains the QR code preview information from the server side, the electronic device needs to exchange information with the hosting server. Therefore, this process can be used for the electronic device to obtain the QR code preview information when it is in a networked state. Based on this method, the electronic device can obtain the latest QR code preview information. Compared with the traditional technology that uses the Hover protocol of the web page to display the QR code preview information by hovering the cursor over the QR code, the acquisition process provided by this embodiment does not need to be preset in advance. By introducing the hosting server, the hosting server is accessed in real time according to the user operation in the networked state to obtain the latest QR code additional preview information, so that the QR code preview information can be changed and updated separately without changing the QR code image, ensuring that the latest QR code preview information is finally provided to the user, which improves the timeliness and accuracy of the preview information.

[0181] Through the method provided in the embodiment of the present application, when the electronic device statically displays the QR code in the form of a QR code image, the user only needs to perform a first control operation on the area where the QR code image is located, such as clicking or long pressing, to obtain the preview information corresponding to the QR code image, so that the user can also perceive the preview information (or the latest information) of the QR code through simple operations without scanning, such as whether the activity registration has expired, if it is a WeChat group, whether the group is full, etc. At the same time, this method can be applied to some scenarios where it is inconvenient for users to scan QR codes, such as seeing the QR code in a web browser or application that does not support "long press", and the perception of the QR code preview information. Compared with the traditional technology, in this scenario, it is necessary to first take a screenshot and save the QR code, and then start the scanning operation to obtain the QR code preview information. This method is simple and fast, and can make the QR code image present more preview content, and give the user an intuitive display for user perception, providing a better user experience.

[0182] In addition, the display method of the QR code preview information provided in this embodiment does not need to rely on the Hover protocol in the form of a web page, which greatly improves the use scenarios of the QR code preview information display process, that is, the QR code preview information can be processed and presented on many electronic devices that do not support the Hover protocol (without the so-called cursor). For example, the method is applicable to QR code image scenes integrated in the form of web pages, instant messaging (IM) chat window scenes, and picture sharing scenes.

[0183] The above is the display process of the QR code preview information provided in the embodiment of the present application. After the electronic device displays the QR code preview information in response to the user's first control operation, it will start monitoring the second control operation in the QR code preview information display area again, and return to displaying the QR code image in response to the second control operation.

[0184] In this embodiment, the second control operation includes, for example, clicking, long pressing, etc.

[0185] When a second control operation event occurs in the QR code preview information display area, the electronic device returns to the display interface including the QR code image again, so that the user can determine whether to further scan the QR code image based on the QR code preview information.

[0186] In some embodiments, in response to a click operation on the QR code preview information display area in the display interface, the electronic device plays an animated flip effect to switch the current QR code preview information display interface to a display interface including a QR code image. Alternatively, the electronic device shrinks the QR code preview information interface by shrinking the pop-up window to switch the current display interface to a display interface including a QR code image. The display process is shown in FIG. Fig. 20 as shown in .

[0187] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0188] The present application also provides a display device for previewing QR code information, which is applied to electronic devices. Fig.21 As shown, the device includes a first display module 2101 , an acquisition module 2102 and a second display module 2103 .

[0189] Wherein, the first display module 2101 is used to display a QR code image.

[0190] The acquisition module 2102 is used to respond to the first control operation on the QR code image, parse the QR code image to obtain the QR code preview information, or parse the download address of the QR code image to obtain the QR code preview information, or obtain the QR code preview information from the server; wherein the QR code preview information is used to represent the characteristic information of the QR code image.

[0191] The second display module 2103 is used to display the QR code preview information.

[0192] An embodiment of the present application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the display method of the QR code preview information shown in the above-mentioned embodiments is executed.

[0193] The present application also provides a chip, see Fig. 22As shown, the chip includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, the display method of the two-dimensional code preview information in the above-mentioned embodiments is implemented.

[0194] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the display method of the QR code preview information provided in the above embodiments is implemented.

[0195] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by an electronic device, the electronic device implements the display method of the QR code preview information provided in the above embodiments.

[0196] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0197] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0198] In the embodiments provided in the present application, the division of each framework or module is only a logical function division. There may be other division methods in actual implementation. For example, multiple frameworks or modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0199] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0200] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0201] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0202] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for displaying preview information of a two-dimensional code, characterized in that: Applied to electronic equipment, the method comprises: Display the QR code image; In response to a first control operation on the two-dimensional code image, the two-dimensional code image is parsed to obtain the two-dimensional code preview information, or the download address of the two-dimensional code image is parsed to obtain the two-dimensional code preview information, or the two-dimensional code preview information is obtained from a server; wherein the two-dimensional code preview information is used to represent feature information of the two-dimensional code image; The QR code preview information is displayed.

2. The method according to claim 1, characterized in that When the geometric figure of the two-dimensional code in the two-dimensional code image carries the two-dimensional code preview information, the parsing of the two-dimensional code image to obtain the two-dimensional code preview information includes: The geometric figure of the two-dimensional code in the two-dimensional code image is parsed to obtain the preview information of the two-dimensional code.

3. The method according to claim 1, characterized in that When the QR code preview information is encoded in the file entity of the QR code image, the parsing of the QR code image to obtain the QR code preview information includes: Parse the file entity of the QR code image to obtain the QR code preview information.

4. The method according to claim 3, characterized in that When the two-dimensional code preview information is encoded in the file entity of the two-dimensional code image by a digital watermark embedding algorithm, the parsing of the two-dimensional code image to obtain the two-dimensional code preview information includes: The file entity of the two-dimensional code image is parsed according to the parsing method of the digital watermark embedding algorithm to obtain the two-dimensional code preview information.

5. The method according to claim 3, characterized in that: When the two-dimensional code preview information is encoded in the file entity of the two-dimensional code image in a picture format protocol of an exchangeable image file, parsing the two-dimensional code image to obtain the two-dimensional code preview information includes: The file entity of the QR code image is parsed according to the picture format protocol of the exchangeable image file to obtain the QR code preview information.

6. The method according to claim 1, characterized in that The obtaining of the QR code preview information from the server includes: Determine identification information of the QR code image; Sending a first acquisition request to the server, where the first acquisition request carries identification information of the QR code image and is used to acquire the QR code preview information from the server; The QR code preview information is received.

7. The method according to claim 1, characterized in that The display of the QR code image includes: Display the QR code download address; In response to a selection operation on the QR code download address, determining identification information of the QR code image; Sending a download request to the server, wherein the download request carries identification information of the QR code image and is used to obtain the QR code image from the server; Receive and display the QR code image.

8. The method according to claim 7, characterized in that After determining the identification information of the QR code image in response to the selection operation of the QR code download address, the method further includes: Sending a second acquisition request to the server, the second acquisition request carrying identification information of the QR code image, and being used to obtain download response information from the server, wherein the QR code preview information is encoded in an HTTP protocol header field of the download response information; Receive and store the download response information of the two-dimensional code image returned by the server.

9. The method according to claim 8, characterized in that The obtaining of the QR code preview information from the server includes: Parse the HTTP protocol header field in the download response information to obtain the QR code preview information.

10. The method according to any one of claims 1 to 9, characterized in that: The step of parsing the QR code image to obtain QR code preview information further includes: Parsing the QR code image to obtain first initial QR code preview information; When the first initial QR code preview information is within the validity period, determining the first initial QR code preview information as the QR code preview information of the QR code image; When the first initial two-dimensional code preview information is not within the validity period, updated two-dimensional code preview information is obtained from the server.

11. The method according to any one of claims 1 to 10, characterized in that: The step of parsing the download address of the QR code image to obtain the QR code preview information further includes: Parsing the download address of the QR code image to obtain second initial QR code preview information; When the second initial QR code preview information is within the validity period, determining the second initial QR code preview information as the QR code preview information of the QR code image; When the second initial QR code preview information is not within the validity period, the updated QR code preview information is obtained from the server, or the HTTP protocol header field in the download response information is parsed to obtain the QR code preview information.

12. The method according to any one of claims 1 to 11, characterized in that: The first control operation includes a click or a long press operation on the area where the two-dimensional code image is located.

13. The method according to any one of claims 1 to 12, characterized in that: The two-dimensional code preview information includes at least one of text, picture, mixed text and picture, audio and video.

14. The method according to any one of claims 1 to 13, characterized in that: After displaying the QR code preview information, the method further includes: In response to a second control operation on the two-dimensional code preview information, the two-dimensional code image is displayed.

15. The method according to claim 14, characterized in that The second control operation includes a click or a long press operation on the area where the QR code preview information is located.

16. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 15 when executing the computer program.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

18. A chip, characterized in that: The chip includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 15 is implemented.