Graphic code display method and device

By receiving user input and combining image data and voice information to automatically identify the type of graphic code, it solves the problems of cumbersome passive scanning operations and improper distance, realizes automatic matching display and adjustment of graphic codes, and improves the success rate of scanning codes and user experience. .

CN113298212BActive Publication Date: 2024-08-23艾酷软件技术(上海)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110574349.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-08-23
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

The existing passive code scanning method is cumbersome and can easily lead to users opening the graphic code by mistake or improper distance between the device and the scanning device, resulting in code scanning failure.

Method used

By receiving user input, it obtains image data information and voice information, automatically identifies the target graphic code type, displays a matching graphic code interface, and adjusts the size, position and brightness of the graphic code to adapt to the line of sight of the scanning device.

Benefits of technology

It improves the efficiency and accuracy of graphic code display, reduces user manual operation errors, and improves the code scanning success rate and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113298212B
    Figure CN113298212B
Patent Text Reader

Abstract

The present application discloses a method and device for displaying a graphic code, which belongs to the field of communication technology. The method includes: receiving a first input from a user, the first input is used to trigger the display of a graphic code; in response to the first input, obtaining graphic code associated information, wherein the graphic code associated information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by an electronic device, and the voice information is a voice recognition result of a target voice in the current environment acquired by the electronic device; displaying a first interface; the first interface includes a graphic code associated with the graphic code associated information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a method and device for displaying a graphic code. Background Art

[0002] Currently, there are two ways to use graphic codes of electronic devices, one is active scanning and the other is passive scanning.

[0003] For the passive code scanning method, users open various applications through electronic devices and then open the corresponding graphic code.

[0004] However, this method has complicated operation steps, and the user may open the graphic code incorrectly, or the electronic device screen may be too close or too far away from the scanning device or verification person's line of sight, or may not be aligned, resulting in scanning failure or verification error. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method and device for displaying a graphic code, which can automatically display a matching type of graphic code.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying a graphic code, the method comprising:

[0007] receiving a first input from a user, wherein the first input is used to trigger display of a graphic code;

[0008] In response to the first input, acquiring graphic code associated information, wherein the graphic code associated information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by the electronic device, and the voice information is a voice recognition result of a target voice in a current environment acquired by the electronic device;

[0009] A first interface is displayed; the first interface includes a graphic code associated with the graphic code association information.

[0010] In a second aspect, an embodiment of the present application provides a graphic code display device, comprising:

[0011] A receiving module, used for receiving a first input from a user, wherein the first input is used for triggering display of a graphic code;

[0012] an acquisition module, configured to acquire, in response to the first input, graphic code associated information, wherein the graphic code associated information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by the electronic device, and the voice information is a voice recognition result of a target voice in a current environment acquired by the electronic device;

[0013] The display module is used to display a first interface; the first interface includes a graphic code associated with the graphic code association information.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In an embodiment of the present application, by acquiring graphic code associated information such as image data information and voice information, automatic matching and display of the target graphic code is achieved. The user does not have to manually select the target application and then open the target graphic code, thereby avoiding the presentation of the wrong graphic code and improving the efficiency of presenting the graphic code. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 One of the flow charts of the method for displaying a graphic code provided in an embodiment of the present application;

[0019] Figure 2 One of the interface schematic diagrams of the graphic code display method provided in the embodiment of the present application;

[0020] Figure 3 The second interface diagram of the method for displaying a graphic code provided in an embodiment of the present application;

[0021] Figure 4 The second flowchart of the method for displaying a graphic code provided in an embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of a graphic code display device provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0026] The graphic code display method and device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0027] Figure 1 A flow chart of a method for displaying a graphic code provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, an embodiment of the present application provides a method for displaying a graphic code, the execution subject of which is an electronic device, and the method includes:

[0028] Step 101: Receive a first input from a user, where the first input is used to trigger display of a graphic code.

[0029] Specifically, when using an electronic device, users need to present a graphic code in scenarios where a graphic code is required, such as a payment QR code, a collection QR code, a health code, a travel code, a personal social software business card QR code, etc. The graphic code display mode can be triggered through the first input. The graphic code display mode is used to enable users to quickly and accurately display the graphic code.

[0030] The first input is a preset shortcut, for example, a single-finger sliding operation on the screen, a multi-finger sliding operation on the screen, a single-finger long press operation on the screen, a multi-finger long press operation on the screen, a continuous tap operation on the screen, a tap operation on the screen, and a preset gesture in front of the screen. The air operation can be hovering or sliding in a preset direction.

[0031] For example, the first input is an operation of opening an application (Application, APP) for displaying a graphic code in an electronic device. The APP provides a unified entry for subsequent display of the graphic code, and opening the APP triggers a graphic code display event.

[0032] For example, the first input is tapping the screen of the electronic device twice with two fingers, and the graphic code display event is triggered after the user taps the screen twice with two fingers.

[0033] After the user performs the first input, the electronic device receives the first input of the user.

[0034] Step 102: In response to the first input, obtain graphic code association information, wherein the graphic code association information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image obtained by the electronic device, and the voice information is a voice recognition result of a target voice in a current environment obtained by the electronic device.

[0035] Specifically, after receiving the user's first input, the electronic device obtains graphic code association information in response to the first input. The graphic code association information refers to information used to determine the type of graphic code that needs to be displayed. The graphic code association information is used to quickly determine the type of graphic code that needs to be presented and the corresponding application.

[0036] The graphic code associated information includes at least one of image data information and voice information. The image data information refers to the image recognition result of the target image acquired by the electronic device. The target image may be an image of the current scene acquired by calling the camera of the electronic device. The electronic device performs image recognition on the target image to obtain an image recognition result. The image recognition result is used to determine the type of graphic code to be presented.

[0037] Image data information mainly refers to the information such as code scanning equipment, text content, people, and signs in the image captured by the camera of the electronic device. Code scanning equipment can include subway gates, bus code scanning machines, store code scanning guns, graphic code payment boxes, etc.; text content can include "show health code", "show travel code", "show payment code", "show boarding code", "please scan code when leaving the station", etc.; people can include subway duty personnel, epidemic prevention staff, store cashiers, parking lot security personnel, etc.; signs can be supermarket or convenience store trademarks, bus stop signs, subway station entrance signs, etc.

[0038] For example, before passing through a subway gate, you need to show the subway boarding code. After the user triggers the graphic code display event, the user places the electronic device close to the subway gate. The target image including the subway gate can be obtained through the front camera of the electronic device. The electronic device recognizes that the target image includes the subway gate, and determines that the graphic code to be shown is the subway boarding code.

[0039] For example, when paying in a supermarket or convenience store, you need to present a payment code. After triggering the graphic code display event, the user places the electronic device close to the checkout counter. The front camera of the electronic device can obtain a target image including the checkout counter, barcode scanner gun or self-service checkout counter. The electronic device recognizes that the target image includes the cashier counter, barcode scanner gun or self-service checkout counter, and determines that the QR code to be presented is the payment code.

[0040] Voice information refers to the voice recognition result of the target voice in the current environment obtained by the electronic device. It is different from the voice input such as "show xx QR code" actively entered by the user. The voice information in this application refers to the voice used to determine the type of graphic code in the current environment obtained by the electronic device after receiving the first input of the user triggering the graphic code display event.

[0041] Voice information mainly refers to the voice recognition results in the current environment obtained by the electronic device after the user triggers the graphic code display event, such as subway arrival broadcasts, bus arrival broadcasts, convenience store voices such as "Welcome to XX convenience store", voices such as "Please show the QR code" played by scanning devices, and high-speed rail station broadcasts such as "Please scan the health code to enter / exit the station".

[0042] For example, before passing through a subway gate, you need to show the subway boarding code. After the user triggers the graphic code display event, he or she places the electronic device close to the subway gate. The microphone of the electronic device can obtain the broadcast message of the subway station's arrival. When the electronic device recognizes the information of the subway entering the station, it determines that the graphic code that needs to be shown is the subway boarding code or the subway ticket payment code.

[0043] For example, when displaying a payment QR code to a scanning box, after triggering the graphic code display event, the user places the electronic device close to the scanning box. The microphone of the electronic device can capture the voice such as "Please show the QR code" played by the scanning box. The electronic device recognizes that the voice is the broadcast voice of the scanning box and determines that the graphic code to be presented is the payment QR code.

[0044] In addition to image data information and voice information, graphic code associated information can also be location information. The current geographical location of the electronic device can also be used to determine the type of graphic code that needs to be presented. For example, the positioning information shows that the current location of the electronic device is a certain convenience store, a certain subway station, a certain bus stop, a certain airport, a certain hospital, a certain parking lot, etc.

[0045] When multiple graphic code associated information is obtained at the same time to determine the type of graphic code, the types of graphic codes determined by different graphic code associated information may be different. At this time, it is necessary to determine the priority between different graphic code associated information to determine the final graphic code type. Generally, the graphic code associated information that can determine the unique graphic code type takes precedence over the graphic code associated information that determines the graphic code type is not unique; image data information takes precedence over voice information, and voice information takes precedence over location information.

[0046] For example, when the location information shows that the current location is at a certain subway station, the voice information obtains the subway's arrival broadcast, and the image data information identifies the subway's ticket purchasing device, the type of the graphic code is determined to be a boarding code or a payment code through the location information and voice information, and the image data information determines that the graphic code type is a payment code. Therefore, the final determined type of the graphic code is a payment code.

[0047] For example, when the location information shows that the current location is a certain hospital, the voice information obtains the broadcast information of "Please show your health code", and the image data information recognizes the code scanning device at the payment window, the location information determines that the type of the graphic code is a health code or a payment code, the voice information determines that the type of the graphic code is a health code, and the image data information determines that the type of the graphic code is a payment code, so the final determined type of the graphic code is a payment code.

[0048] The graphic code associated information is used to quickly lock the type of graphic code that needs to be displayed.

[0049] Step 103: display a first interface; the first interface includes a graphic code associated with the graphic code association information.

[0050] Specifically, after determining the type of the graphic code to be displayed, the electronic device displays the graphic code on a first interface. The graphic code is determined by graphic code associated information, and the first interface is the graphic code display interface.

[0051] After determining the final graphic code type through the graphic code association information, the system presets the application programs and jump page paths corresponding to different types of graphic codes, and calls the corresponding application to jump to the corresponding graphic code display interface.

[0052] When the application that displays the graphic code of this type is uniquely determined, the electronic device calls the application and directly jumps to the graphic code display interface corresponding to the application.

[0053] When the application that displays this type of graphic code is not unique, for example, multiple apps can display payment codes and multiple apps can display health codes, it is necessary to first display the application icons of multiple apps for users to choose from, and then jump to the graphic code display interface corresponding to the app after the user selects the app.

[0054] Since there are often scenarios where a certain type of graphic code corresponds to multiple APPs, the rate at which the graphic code is displayed can be increased by allowing the user to set a default application. The electronic device directly calls the graphic code corresponding to the default application without the user having to select an application.

[0055] Figure 2 One of the interface diagrams of the method for displaying a graphic code provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the user sets a default application for a certain type of graphic code, and the first interface displays the graphic code corresponding to the default application. The user can switch the graphic codes corresponding to different applications by sliding left and right or up and down on the screen. The embodiment of the present application does not limit the sliding method.

[0056] Figure 3 The second interface diagram of the method for displaying a graphic code provided in the embodiment of the present application is as follows: Figure 3 As shown, the user has not set a default application, and the matched graphic code type corresponds to multiple applications APP1, APP2, APP3 and APP4. The user interface first displays 4 application icons. The user opens the corresponding application by manual selection, and then jumps to the corresponding graphic code display interface.

[0057] In actual operation, users will set verification passwords for many applications, and only by entering the password can the corresponding application be opened. The verification password can be a gesture password, a numeric password, a fingerprint password, a facial recognition password, etc., which is not limited in the embodiments of the present application.

[0058] After the electronic device obtains the graphic code association information and matches the corresponding type of graphic code based on the graphic code association information, it will first display the verification interface of the corresponding application before jumping to the graphic code display interface. Only after the verification is successful can it jump to the graphic code display interface.

[0059] In a scenario where a graphic code needs to be presented, the user displays the final graphic code display interface to the scanning device or verification personnel.

[0060] The graphic code display method provided in the embodiment of the present application obtains graphic code association information, matches the corresponding type of graphic code, and automatically displays the corresponding graphic code display interface without the user having to manually open different graphic codes of different applications, so as to avoid the presentation of erroneous graphic codes due to manual operation, while improving the efficiency of presenting graphic codes and enhancing the user experience.

[0061] Optionally, displaying the first interface includes:

[0062] When the number of applications indicated by the graphic code association information is 1, a first interface of a first application is displayed, wherein the first application is the application indicated by the graphic code association information, and the first interface includes a graphic code.

[0063] Specifically, after the electronic device determines the type of graphic code that ultimately needs to be displayed through the graphic code associated information, it determines the application that can display the graphic code, and when the application is uniquely determined, jumps to the graphic code display interface of the corresponding application.

[0064] The system presets the application programs and jump page paths corresponding to different types of graphic codes. After determining the type of graphic code, the system jumps to display the graphic code display interface of the corresponding application to increase the speed of graphic code display.

[0065] For example, when the voice information recognizes that a business card graphic code of a social application needs to be presented, the interface jumps to the business card graphic code display interface of the social application.

[0066] For example, when it is recognized through image data information that a travel code of a social application needs to be presented, the user is redirected to the travel code display interface corresponding to the social application.

[0067] For example, when it is determined through image data information and voice information that a bus boarding code of a certain social application needs to be presented, the page is jumped to the bus boarding code display interface of the social application.

[0068] The graphic code display method provided in the embodiment of the present application directly displays the graphic code display interface corresponding to the application when the application corresponding to the determined graphic code type is uniquely determined, without the user having to manually select the application and then open the corresponding graphic code display interface, thereby improving the efficiency of presenting the graphic code and enhancing the user experience.

[0069] Optionally, displaying the first interface includes:

[0070] When the number of applications indicated by the graphic code association information is greater than 1, displaying a second interface including a first application icon, wherein the first application icon is associated with the graphic code association information;

[0071] receiving a second input from a user on a target application icon in the first application icons;

[0072] In response to the second input, the first interface is displayed; the first interface includes a graphic code corresponding to the target application indicated by the target application icon.

[0073] Specifically, after the electronic device determines the type of graphic code that needs to be displayed, in most cases, there is more than one application that can display a certain type of graphic code. The electronic device displays a second interface including a first application icon. The first application icon is an application icon that can display a certain type of graphic code determined by graphic code association information. The user selects from multiple application icons to determine the graphic code display interface of the application that will be finally jumped to, so as to improve the user experience.

[0074] For example, multiple payment apps can be used to display payment graphic codes, multiple social apps can be used to display business card graphic codes, and multiple apps can be used to display health codes or travel codes.

[0075] The first application icon can be displayed in a tiled manner in the second interface. When the application icons are not fully displayed, the user can choose to slide up and down on the screen to scroll and display multiple application icons.

[0076] The second input may be clicking an application icon on the second interface, or selecting the application icon after confirming it in the search bar.

[0077] When the user sets the target application to open the password verification, after selecting the target application icon, it will jump to the verification interface of the application opening. The verification method can be a numeric password, gesture password, face verification, fingerprint verification, etc. Only after the verification is successful will it jump to the target graphic code display interface.

[0078] To further enhance the user experience, when multiple applications can display the same type of graphic code, the user can set a default application. After locking the type of graphic code to be presented through the graphic code associated information, the user does not need to select multiple applications. The electronic device will no longer display the second interface, but will directly jump to the graphic code display interface corresponding to the default application, so as to further enhance the user experience while ensuring the graphic code display rate.

[0079] For example, APP1, APP2, APP3 and APP4 can all display payment graphic codes. To avoid the need to select from the four APPs every time the payment graphic code is displayed, the user sets the default payment APP to APP1. When the graphic code to be displayed is locked as the payment graphic code through the graphic code association information, the electronic device will directly jump to the payment graphic code display interface corresponding to APP1 after receiving the user's first input, and will not display the second interface including APP1, APP2, APP3 and APP4.

[0080] For example, both APP1 and APP2 can display health codes. To avoid having to choose between APP1 and APP2 every time a health code is displayed, the user sets the default health code display application to APP2. When the graphic code to be displayed is locked as the health code through the graphic code association information, the electronic device will directly jump to the health code display interface corresponding to APP2 after receiving the user's first input, and will not display the second interface including the application icons of APP1 and APP2.

[0081] The graphic code display method provided in the embodiment of the present application provides multiple application icons corresponding to a determined graphic code type for the user to choose from when there are multiple applications corresponding to the type of graphic code. The user can select the application to be opened while ensuring that the presented graphic code is correct, thereby improving the user experience.

[0082] Optionally, after displaying the first interface, the method further includes:

[0083] When the image recognition result of the target image is a person, the brightness and shape of the graphic code are adjusted based on the positional relationship between the electronic device and the eyes of the target person.

[0084] Specifically, after the graphic code is displayed, due to the distance and position relationship between the electronic device screen and the line of sight of the graphic code verifier, as well as the brightness of the screen, the line of sight of the verifier cannot match the graphic code, which may lead to verification failure.

[0085] For example, when the screen of the electronic device is at a certain angle and distance to the verifier's horizontal line of sight, the verifier will see a distorted graphic code that appears larger when near and smaller when far away. At this time, the plane where the electronic device screen is located can be used as a reference plane to adjust the shape of the graphic code so that the verifier sees a graphic code that is not distorted.

[0086] For example, when the screen brightness of an electronic device is significantly lower than the ambient brightness, the verification personnel cannot clearly see the content of the electronic device interface. At this time, the brightness of the electronic device screen can be increased so that the verification personnel can see a clear graphic code.

[0087] In addition, after the target graphic code is displayed, except for the case of showing the health code, travel code, etc., the code scanning device needs to be aligned with the graphic code image displayed by the electronic device for scanning and recognition. When the center of the graphic code image and the code scanning device are not aligned, or the distance between the two is too close or too far, the code scanning will fail. The code can be scanned and recognized by the user moving the electronic device or moving the code scanning device.

[0088] Figure 4 The second flow chart of the method for displaying a graphic code provided in the embodiment of the present application is as follows: Figure 4 As shown, the method includes:

[0089] Step 401: Receive a first input from a user.

[0090] Step 402: In response to the first input, obtain graphic code associated information, wherein the graphic code associated information includes at least one of image data information, location information and voice information.

[0091] Step 403: Display the target graphic code based on the graphic code association information.

[0092] Step 404: Obtain the relative motion state information between the code scanning device and the electronic device. When the code scanning device and the electronic device are in a relative motion state, the size and display position of the target graphic code are not adjusted.

[0093] When the image data information and acceleration sensor data captured by the camera of the electronic device determine that the electronic device and the code scanning device are in a relatively static state, step 405 is executed.

[0094] Step 405: Update the graphic code display interface based on the positional relationship between the electronic device and the code scanning device. The positional relationship includes the distance and orientation relationship between the electronic device and the code scanning device.

[0095] When the distance between the electronic device and the code scanning device is too large or too small, the size of the displayed graphic code image is scaled.

[0096] For example, when the distance between the electronic device and the code scanning device is less than a first preset threshold, the displayed graphic code image is reduced so that the graphic code image on the screen falls within the code scanning angle of the code scanning device.

[0097] For example, when the distance between the electronic device and the code scanning device is greater than a second preset threshold, the graphic code image is enlarged and displayed so that the code scanning device can recognize a clearer graphic code image.

[0098] For example, when the distance between the electronic device and the code scanning device is greater than a first preset threshold and less than a second preset threshold, the graphic code image is not scaled.

[0099] When there is a large offset between the camera position of the code scanning device and the center position of the screen of the electronic device, the display position of the graphic code on the screen is adjusted so that the camera of the code scanning device can be aligned with the center area of ​​the graphic code image.

[0100] For example, when the center of the screen of the electronic device deviates to the left from the camera position of the code scanning device beyond a first preset angle, the position of the graphic code image on the screen is adjusted to the right so that the center area of ​​the graphic code image is aligned with the camera of the code scanning device.

[0101] For example, when the center of the screen of the electronic device deviates to the right from the camera position of the code scanning device beyond a second preset angle, the position of the graphic code image on the screen is adjusted to the left so that the center area of ​​the graphic code image is aligned with the camera of the code scanning device.

[0102] For example, when the center of the screen of the electronic device deviates from the camera position of the code scanning device beyond a third preset angle, the position of the graphic code image on the screen is adjusted downward so that the center area of ​​the graphic code image is aligned with the camera of the code scanning device.

[0103] For example, when the center of the screen of the electronic device deviates from the camera position of the code scanning device beyond a fourth preset angle, the position of the graphic code image on the screen is adjusted upward so that the center area of ​​the graphic code image is aligned with the camera of the code scanning device.

[0104] Step 406: Remind the user to move the electronic device.

[0105] Due to the size limit of the electronic device screen and the clarity limit of the graphic code image, the graphic code image cannot be infinitely scaled, and the movement of the graphic code display position cannot exceed the range of the screen. Therefore, if the code cannot be accurately scanned and recognized after automatically adjusting the size and display position of the graphic code, it is necessary to remind the user to manually adjust the distance and orientation relationship between the electronic device and the scanning device.

[0106] The graphic code display method provided in the embodiment of the present application automatically adjusts the display size, display position, shape, brightness, etc. of the graphic code image according to the distance and orientation relationship between the electronic device and the code scanning device or the verification personnel, so that the camera of the code scanning device or the verification personnel's line of sight can be aimed at the center area of ​​the graphic code image, thereby improving the success rate of code scanning or verification, and enhancing the user experience.

[0107] Optionally, after displaying the first interface, the method further includes:

[0108] In the case where the image recognition result of the target image is a code scanning device, if the indicator light parameters of the code scanning device meet the target conditions, the graphic code is updated.

[0109] Specifically, when the indicator light parameters of the barcode scanning device meet the target conditions, that is, when the barcode scanning device fails to scan the barcode, the graphic code needs to be updated in time.

[0110] Updating the graphic code is generally used in situations where the scanning device fails to scan the code. In situations where only the verification personnel are required to verify the graphic code, such as health codes, travel codes, etc., there is generally no need for the electronic device to judge the recognition results of the graphic code and then update the graphic code.

[0111] When a barcode scanning device is used to scan and identify a graphic code, the scanning may fail due to reasons such as the camera of the barcode scanning device not being aligned with the center area of ​​the graphic code or the scanning taking too long. Therefore, the graphic code needs to be updated.

[0112] The failure of the electronic device to scan the barcode can be determined by the camera capturing the indicator light of the electronic device flashing or changing color, etc. The target condition can be the indicator light changing color or flashing.

[0113] For example, the indicator light of the electronic device is normally green, but changes to red when the code scanning fails. When the camera of the electronic device captures the change of the indicator light of the code scanning device, the graphic code is updated.

[0114] For example, the indicator light of an electronic device normally appears green, but in the case of a code scanning failure, it appears as a continuous flashing red light. When the camera of the electronic device captures the change in the indicator light of the code scanning device, the graphic code is updated.

[0115] The electronic device can also update the graphic code regularly, for example, updating the graphic code every minute, to prevent the graphic code from becoming invalid and causing scanning failure.

[0116] The graphic code display method provided in the embodiment of the present application determines the indicator light parameters of the code scanning device and updates the graphic code when the code scanning fails without the need for manual operation by the user, thereby further improving the success rate of code scanning and further improving the user experience.

[0117] It should be noted that the execution subject of the graphic code display method provided in the embodiment of the present application may be a graphic code display device, or a control module in the graphic code display device for executing the graphic code display method. In the embodiment of the present application, the graphic code display device executing the graphic code display method is taken as an example to illustrate the graphic code display device provided in the embodiment of the present application.

[0118] Figure 5 A schematic diagram of the structure of a graphic code display device provided in an embodiment of the present application, such as Figure 5 As shown, the graphic code display device provided in the embodiment of the present application includes a receiving module 501, an acquisition module 502 and a display module 503, wherein:

[0119] The receiving module 501 is used to receive a first input from a user, where the first input is used to trigger the display of a graphic code;

[0120] The acquisition module 502 is used to acquire graphic code associated information in response to the first input, wherein the graphic code associated information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by the electronic device, and the voice information is a voice recognition result of a target voice in a current environment acquired by the electronic device;

[0121] The display module 503 is used to display a first interface; the first interface includes a graphic code associated with the graphic code association information.

[0122] Optionally, the display module includes a first display submodule.

[0123] The first display submodule is used to display a first interface of a first application when the number of applications indicated by the graphic code association information is 1, wherein the first application is the application indicated by the graphic code association information, and the first interface includes a graphic code.

[0124] Optionally, the display module includes a second display submodule, a receiving submodule and a third display submodule.

[0125] The second display submodule is used to display a second interface including a first application icon when the number of applications indicated by the graphic code association information is greater than 1, wherein the first application icon is associated with the graphic code association information. ;

[0126] The receiving submodule is used to receive a second input from a user on a target application icon in the first application icons.

[0127] The third display submodule is used to display the first interface in response to the second input; the first interface includes a graphic code corresponding to the target application indicated by the target application icon.

[0128] Optionally, the device further includes an adjustment module.

[0129] The adjustment module is used to adjust the brightness and shape of the graphic code based on the positional relationship between the electronic device and the eyes of the target person when the image recognition result of the target image is a person.

[0130] Optionally, the device further includes an updating module.

[0131] The updating module is used for updating the graphic code when the image recognition result of the target image is a code scanning device and the indicator light parameters of the code scanning device meet the target conditions.

[0132] The graphic code display device provided in the embodiment of the present application realizes automatic matching and display of the target graphic code by acquiring graphic code associated information. The user does not have to manually select the target application and then open the target graphic code, thereby avoiding the presentation of the wrong graphic code due to manual operation and improving the efficiency of presenting the graphic code.

[0133] The graphic code display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0134] The graphic code display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0135] The graphic code display device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0136] An embodiment of the present application also provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned graphic code display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0138] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 6As shown, the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610 and other components.

[0139] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0140] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.

[0141] The user input unit 607 is used to receive a first input from a user.

[0142] Processor 610 is used to obtain graphic code association information in response to the first input, wherein the graphic code association information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image obtained by the electronic device, and the voice information is a voice recognition result of a target voice in a current environment obtained by the electronic device.

[0143] The display unit 606 is used to display a first interface; the first interface includes a graphic code associated with the graphic code association information.

[0144] Optionally, the display unit 606 is used to display a first interface of a first application when the number of applications indicated by the graphic code association information is 1, wherein the first application is the application indicated by the graphic code association information, and the first interface includes a graphic code.

[0145] Optionally, the display unit 606 is configured to display a second interface including a first application icon when the number of applications indicated by the graphic code association information is greater than 1, wherein the first application icon is associated with the graphic code association information.

[0146] The user input unit 607 is further configured to receive a second input from a user on a target application icon in the first application icons.

[0147] The display unit 606 is further configured to display the first interface in response to the second input; the first interface includes a graphic code corresponding to the target application indicated by the target application icon.

[0148] Optionally, the processor 610 is used to adjust the brightness and shape of the graphic code based on the positional relationship between the electronic device and the eyes of the target person when the image recognition result of the target image is a person.

[0149] Optionally, the processor 610 is configured to update the graphic code if the image recognition result of the target image is a code scanning device and if the indicator light parameters of the code scanning device meet the target conditions.

[0150] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned graphic code display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0151] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0152] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned graphic code display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0153] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0154] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0155] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0156] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for displaying a graphic code, characterized in that: include: receiving a first input from a user, wherein the first input is used to trigger display of a graphic code; In response to the first input, graphic code association information is obtained, and when multiple graphic code association information is used to determine the type of graphic code at the same time, and different graphic code association information determines different types of graphic codes, the type of graphic code associated with the graphic code association information is determined by determining the priority between different graphic code association information; wherein the graphic code association information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by an electronic device, the target image is an image of a current scene acquired by calling a camera of the electronic device, and the image recognition result is used to determine the type of graphic code to be presented; the image data information includes at least one of the following: a code scanning device, text content, a person, and a sign; the voice information is a voice recognition result of a target voice in the current environment acquired by the electronic device; the priority of graphic code association information that determines a unique graphic code type is higher than that of graphic code association information that determines a non-unique graphic code type; A first interface is displayed; the first interface includes a graphic code associated with the graphic code association information.

2. The method for displaying a graphic code according to claim 1, characterized in that: The displaying of the first interface includes: When the number of applications indicated by the graphic code association information is 1, a first interface of a first application is displayed, wherein the first application is the application indicated by the graphic code association information, and the first interface includes a graphic code.

3. The method for displaying a graphic code according to claim 1, characterized in that: The displaying of the first interface includes: When the number of applications indicated by the graphic code association information is greater than 1, displaying a second interface including a first application icon, wherein the first application icon is associated with the graphic code association information; receiving a second input from a user on a target application icon in the first application icons; In response to the second input, the first interface is displayed; the first interface includes a graphic code corresponding to the target application indicated by the target application icon.

4. The method for displaying a graphic code according to claim 1, characterized in that: After displaying the first interface, the method further includes: When the image recognition result of the target image is a person, the brightness and shape of the graphic code are adjusted based on the positional relationship between the electronic device and the eyes of the target person.

5. The method for displaying a graphic code according to claim 1, characterized in that: After displaying the first interface, the method further includes: In the case where the image recognition result of the target image is a code scanning device, if the indicator light parameters of the code scanning device meet the target conditions, the graphic code is updated.

6. A graphic code display device, characterized in that: include: A receiving module, used for receiving a first input from a user, wherein the first input is used for triggering display of a graphic code; An acquisition module, used for acquiring graphic code associated information in response to the first input, and in the case where multiple graphic code associated information are simultaneously used to determine the type of graphic code, and different graphic code associated information determine different types of graphic codes, determining the type of graphic code associated with the graphic code associated information by determining the priority between different graphic code associated information; wherein the graphic code associated information includes at least one of image data information and voice information, the image data information is an image recognition result of a target image acquired by an electronic device, the target image is an image of a current scene acquired by calling a camera of the electronic device, and the image recognition result is used to determine the type of graphic code to be presented; the image data information includes at least one of the following: a code scanning device, text content, a person, and a sign; the voice information is a voice recognition result of a target voice in the current environment acquired by the electronic device; determining the priority of graphic code associated information of a unique graphic code type is higher than determining graphic code associated information of a non-unique graphic code type; The display module is used to display a first interface; the first interface includes a graphic code associated with the graphic code association information.

7. The graphic code display device according to claim 6, characterized in that: The display module includes a first display submodule; The first display submodule is used to display a first interface of a first application when the number of applications indicated by the graphic code association information is 1, wherein the first application is the application indicated by the graphic code association information, and the first interface includes a graphic code.

8. The graphic code display device according to claim 6, characterized in that: The display module includes a second display submodule, a receiving submodule and a third display submodule; The second display submodule is used for displaying a second interface including a first application icon when the number of applications indicated by the graphic code association information is greater than 1, wherein the first application icon is associated with the graphic code association information; The receiving submodule is used to receive a second input from a user on a target application icon in the first application icons; The third display submodule is used to display the first interface in response to the second input; the first interface includes a graphic code corresponding to the target application indicated by the target application icon.

9. The graphic code display device according to claim 6, characterized in that: The device also includes an adjustment module; The adjustment module is used to adjust the brightness and shape of the graphic code based on the positional relationship between the electronic device and the eyes of the target person when the image recognition result of the target image is a person.

10. The graphic code display device according to claim 6, characterized in that: The device also includes an update module; The updating module is used for updating the graphic code when the image recognition result of the target image is a code scanning device and the indicator light parameters of the code scanning device meet the target conditions.