CN113298212A - Graphic code display method and device - Google Patents

Graphic code display method and device Download PDF

Info

Publication number
CN113298212A
CN113298212A CN202110574349.6A CN202110574349A CN113298212A CN 113298212 A CN113298212 A CN 113298212A CN 202110574349 A CN202110574349 A CN 202110574349A CN 113298212 A CN113298212 A CN 113298212A
Authority
CN
China
Prior art keywords
graphic code
display
interface
code
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110574349.6A
Other languages
Chinese (zh)
Inventor
刘少玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aiku Software Technology Shanghai Co ltd
Original Assignee
Aiku Software Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aiku Software Technology Shanghai Co ltd filed Critical Aiku Software Technology Shanghai Co ltd
Priority to CN202110574349.6A priority Critical patent/CN113298212A/en
Publication of CN113298212A publication Critical patent/CN113298212A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device

Abstract

The application discloses a graphic code display method and device, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of a user, wherein the first input is used for triggering display of a graphic code; acquiring graphic code associated information in response to the first input, wherein the graphic code associated information comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment; displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.

Description

Graphic code display method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to a graphic code display method and device.
Background
At present, two methods for using the graphic code of the electronic equipment are available, one is active code scanning, and the other is passive code scanning.
For the passive code scanning mode, a user opens various application programs through the electronic equipment and then opens the corresponding graphic codes.
However, the operation steps in this way are complicated, and a user may open a graphic code incorrectly, or the screen of the electronic device may be too close or too far away from the line of sight of the code scanning device or the verification person and not aligned with the screen of the electronic device, resulting in code scanning failure or verification error.
Disclosure of Invention
The embodiment of the application aims to provide a graphic code display method and a graphic code display device, which can automatically display a matched type graphic code.
In a first aspect, an embodiment of the present application provides a method for displaying a graphic code, where the method includes:
receiving a first input of a user, wherein the first input is used for triggering display of a graphic code;
acquiring graphic code associated information in response to the first input, wherein the graphic code associated information comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment;
displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
In a second aspect, an embodiment of the present application provides a graphic code display device, including:
the receiving module is used for receiving a first input of a user, wherein the first input is used for triggering display of a graphic code;
the acquisition module is used for responding to the first input and acquiring graphic code associated information, wherein the graphic code associated information comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment;
the display module is used for displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the automatic matching display of the target graphic code is realized by acquiring the graphic code associated information such as the image data information, the voice information and the like, and a user does not need to manually select the target application and then open the target graphic code, so that the wrong graphic code is prevented from being displayed, and the graphic code displaying efficiency is improved.
Drawings
Fig. 1 is a schematic flow chart of a graphic code display method according to an embodiment of the present disclosure;
fig. 2 is one of interface schematic diagrams of a graphic code display method provided in an embodiment of the present application;
fig. 3 is a second schematic interface diagram of a graphic code display method according to an embodiment of the present application;
fig. 4 is a second schematic flowchart of a graphic code display method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a graphic code display device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The graphic code display method and apparatus provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a graphic code display method according to an embodiment of the present application, and as shown in fig. 1, an embodiment of the present application provides a graphic code display method, an execution main body of which is an electronic device, and the method includes:
step 101, receiving a first input of a user, wherein the first input is used for triggering display of a graphic code.
Specifically, in the process of using the electronic device, in a scene where the graphic code needs to be presented, for example, presenting a payment two-dimensional code, presenting a health code, a travel code, presenting a personal social software business card two-dimensional code, and the like, a graphic code display mode can be triggered through the first input, and the graphic code display mode is used for enabling the user to quickly and accurately display the graphic code.
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-click operation on the screen, a tapping operation for the screen, and a preset gesture spaced-apart operation in front of the screen, etc. The blanking operation may be hovering or sliding in a preset direction, etc.
For example, the first input is an operation of opening an Application (APP) for displaying a graphic code in the electronic device, the APP provides a uniform entry for displaying the graphic code subsequently, and the opening of the APP triggers a graphic code display event.
For example, the first input is double-finger tapping on the screen of the electronic equipment twice, and the user triggers a graphic code display event after double-finger continuous tapping on the screen twice.
After the user performs the first input, the electronic device receives the first input of the user.
Step 102, responding to the first input, acquiring associated information of a graphic code, wherein the associated information of the graphic code comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment.
Specifically, after receiving a first input of a user, the electronic device, in response to the first input, acquires associated information of a graphic code, where the associated information of the graphic code is used to determine a type of the graphic code that needs to be displayed, and the associated information of the graphic code is used to quickly determine the type of the graphic code that needs to be presented and a corresponding application program.
The graphic code associated information includes at least one of image data information and voice information, where the image data information is an image recognition result of a target image acquired by the electronic device, the target image may be an image of a current scene acquired by calling a camera of the electronic device, the electronic device performs image recognition on the target image to acquire an image recognition result, and the image recognition result is used to determine a type of a graphic code that needs to be presented.
The image data information mainly refers to information such as code scanning equipment, character content, characters, labels and the like in an image collected by a camera of the electronic equipment. The code scanning equipment can comprise a subway gate, a bus code scanning machine, a shop code scanning gun, a graphic code payment box and the like; the text content can comprise a 'show health code', 'show travel code', 'show payment code', 'show riding code', 'out please scan code' and the like; the characters can comprise subway duty personnel, epidemic prevention staff, shop cashiers, parking lot security personnel and the like; the label can be a trademark of a supermarket or a convenience store, a station plate of a bus station, an arrival label of a subway station and the like.
For example, before passing through a subway gate, a subway bus number needs to be displayed, after a user triggers a graphic code display event, the electronic device is close to the subway gate, a target image including the subway gate can be acquired through a front camera of the electronic device, and when the electronic device identifies that the target image includes the subway gate, the graphic code needing to be displayed is determined to be the subway bus number.
For example, when a supermarket or a convenience store pays, a payment code needs to be displayed, after a graphic code display event is triggered, a user brings an electronic device close to a cash register, a front-facing camera of the electronic device can acquire a target image including the cash register, a code scanning gun or a self-service cash register, and when the electronic device identifies that the target image includes the cash register, the code scanning gun or the self-service cash register, the two-dimensional code needing to be displayed is determined to be the payment code.
The voice information refers to a voice recognition result of target voice in the current environment where the electronic equipment is located, and is different from voice input of displaying xx two-dimensional codes and the like which is actively input by a user.
The voice information mainly refers to a voice recognition result in the current environment acquired by the electronic device after the user triggers the graphic code display event, such as a subway arrival broadcast, a bus arrival broadcast, a voice of a convenience store such as 'welcome to a certain convenience store', a voice of a code scanning device such as 'please display a two-dimensional code', a 'station entering/exiting please scan a health code' broadcast of a high-speed rail, and the like.
For example, before passing through a subway gate, a subway bus number needs to be presented, after a user triggers a graphic code display event, the electronic device is close to the subway gate, a broadcast message of arrival of a subway at a subway station can be acquired through a microphone of the electronic device, and the electronic device identifies the information of arrival of the subway, and then determines that the graphic code needing to be presented is the subway bus number or a subway ticket payment code.
For example, under the condition that the payment two-dimensional code is displayed on the code scanning box, after a graphic code display event is triggered, the user brings the electronic device close to the code scanning box, voices such as "please display the two-dimensional code" played by the code scanning box can be acquired through a microphone of the electronic device, the electronic device recognizes the voices as broadcast voices of the code scanning box, and determines that the graphic code required to be displayed is the payment two-dimensional code.
The associated information of the graphic code may be position information, besides image data information and voice information, and the current geographic position of the electronic device may also be used to determine the type of the graphic code that needs to be presented, for example, the positioning information shows that the current position of the electronic device is a certain convenience store, a certain subway station, a certain bus station, a certain airport, a certain hospital, a certain parking lot, and the like.
When multiple kinds of associated information of the graphic code are acquired at the same time for determining the type of the graphic code, the types of the graphic code determined by different associated information of the graphic code may be different. At this time, the priority between the associated information of different graphic codes needs to be determined to determine the final graphic code type. Generally, the method can determine the unique graphic code type of the graphic code associated information prior to the determined non-unique graphic code associated information; the image data information is prioritized over the voice information, and the voice information is prioritized over the position information.
For example, when the position information shows that the current position is located at a certain subway station, the voice information acquires arrival broadcasting of the subway, the image data information identifies ticket purchasing equipment of the subway, the type of the graphic code is determined to be a bus code or a payment code through the position information and the voice information, the type of the graphic code is determined to be the payment code through the image data information, and therefore the finally determined type of the graphic code is the payment code.
For example, when the position information shows that the mobile phone is currently positioned in a certain hospital, the voice information acquires broadcast information of 'please show health code', the image data information identifies code scanning equipment of a charging window, the type of the graphic code is determined to be the health code or the payment code through the position information, the type of the graphic code is determined to be the health code through the voice information, the type of the graphic code is determined to be the payment code through the image data information, and therefore the finally determined type of the graphic code is the payment code.
The associated information of the graphic code is used for quickly locking the type of the graphic code required to be displayed.
Step 103, displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
Specifically, after determining the type of the displayed graphic code, the electronic device displays the graphic code on a first interface, where the graphic code is determined by the graphic code association information, and the first interface is a graphic code display interface.
After the final graphic code type is determined through the graphic code associated information, the system presets application programs corresponding to different types of graphic codes and paths of jump pages, and calls corresponding applications to jump to corresponding graphic code display interfaces.
And under the condition that the application displaying the type of graphic code is uniquely determined, the electronic equipment calls the application to directly jump to a graphic code display interface corresponding to the application.
Under the condition that the applications displaying the type of graphic codes are not uniquely determined, for example, a plurality of APPs can all display payment codes and a plurality of applications can all display health codes, the application icons of the plurality of APPs need to be displayed for a user to select, and after the user selects an APP, the user jumps to a graphic code display interface corresponding to the APP.
Because some type of graphic code occurs when corresponding to a scene with a plurality of APPs, the speed of graphic code display can be improved by setting default application by a user. The electronic equipment directly calls the graphic code corresponding to the default application without the operation of selecting the application by the user.
Fig. 2 is one of interface schematic diagrams of a graphic code display method provided in an embodiment of the present application, and as shown in fig. 2, a user sets a default application of a certain type of graphic code, a first interface displays a graphic code corresponding to the default application, and the user can switch graphic codes corresponding to different applications by sliding left and right or up and down in a screen.
Fig. 3 is a second interface schematic diagram of the graphic code display method provided in the embodiment of the present application, as shown in fig. 3, a user does not set a default application, and the matched graphic code type corresponds to multiple application programs APP1, APP2, APP3, and APP4, the user interface displays 4 application icons first, and the user opens the corresponding application program through manual selection, and then jumps to the corresponding graphic code display interface.
In actual operation, a user sets an authentication password for a plurality of application programs, and the corresponding application program can be opened only by inputting the password. The verification password may be a gesture password, a digital password, a fingerprint password, a face recognition, and the like, and the embodiment of the present application is not limited.
The electronic equipment acquires the associated information of the graphic code, matches the graphic code of the corresponding type based on the associated information of the graphic code, displays a verification interface opened by the corresponding application before jumping to the graphic code display interface, and can jump to the graphic code display interface only after the verification is successful.
And under the scene that the graphic code needs to be presented, the user displays a final graphic code display interface to code scanning equipment or a verification person.
According to the graphic code display method provided by the embodiment of the application, the corresponding graphic code display interface is automatically displayed by acquiring the associated information of the graphic code and matching the graphic code of the corresponding type, and a user does not need to manually open different graphic codes of different applications, so that the graphic code with a wrong display caused by manual operation is avoided, meanwhile, the graphic code display efficiency is improved, and the user experience is improved.
Optionally, the displaying the first interface includes:
and displaying a first interface of a first application under the condition that the number of the applications indicated by the associated information of the graphic code is 1, wherein the first application is the application indicated by the associated information of the graphic code, and the first interface comprises the graphic code.
Specifically, after the electronic device determines the type of the graphic code which needs to be displayed finally through the graphic code associated information, an application program which can display the graphic code is determined, and under the condition that the application program is uniquely determined, the electronic device jumps to a graphic code display interface of the corresponding application.
The system presets application programs corresponding to different types of graphic codes and paths of jump pages, and jumps to display a graphic code display interface corresponding to application after the type of the graphic code is determined so as to improve the speed of graphic code display.
For example, when the business card graphic code of a certain social application program needs to be presented through voice information recognition, the user jumps to a business card graphic code display interface of the social application program.
For example, when the travel code of a certain social application program needs to be presented is identified through the image data information, the user jumps to a travel code display interface corresponding to the social application program.
For example, when the bus taking code of a certain social application program needs to be shown according to the image data information and the voice information, the bus taking code display interface of the social application program is skipped to.
According to the graphic code display method provided by the embodiment of the application, under the condition that the application program corresponding to the determined graphic code type is uniquely determined, the graphic code display interface corresponding to the application program is directly displayed, and a user does not need to manually select the application and open the corresponding graphic code display interface, so that the graphic code display efficiency is improved, and the user experience is improved.
Optionally, the displaying the first interface includes:
displaying a second interface comprising a first application icon under the condition that the number of applications indicated by the associated information of the graphic code is greater than 1, wherein the first application icon is associated with the associated information of the graphic code;
receiving a second input of a user to a target application icon in the first application icons;
displaying the first interface in response to the second input; the first interface comprises a graphic code corresponding to the target application indicated by the target application icon.
Specifically, after the electronic device determines the type of the graphic code to be displayed, in most cases, more than one application program capable of displaying a certain type of graphic code is displayed, the electronic device displays a second interface including a first application icon, the first application icon is an application icon capable of displaying a certain type of graphic code determined by the graphic code association information, and a user selects a graphic code display interface of the application program determining the final jump from a plurality of application icons, so as to improve user experience.
For example, multiple payment APPs may be used to display a payment graphic code, multiple social APPs may be used to display a business card graphic code, and multiple APPs may be used to display a health code or a travel code.
The first application icon may be displayed in a tiled manner in the second interface. When the application icons are not fully displayed, the user can select a manner of sliding up and down in the screen to scroll through the plurality of application icons.
The second input may be clicking on the application icon on the second interface or selecting the application icon after the search field determines the application icon.
When a user sets open password authentication for a target application, the user can jump to an authentication interface opened by the application after selecting a target application icon, and the authentication mode can be digital password, gesture password, face authentication, fingerprint authentication and the like. And jumping to a target graphic code display interface after the verification is successful.
In order to further improve the user experience, a user can set a default application under the condition that a plurality of application programs can display the same type of graphic codes, after the type of the graphic codes needing to be displayed is locked through the graphic code associated information, the user does not need to select the plurality of application programs, the electronic equipment does not display a second interface any more, but directly jumps to a graphic code display interface corresponding to the default application, so that the user experience is further improved, and the graphic code display rate is guaranteed.
For example, APP1, APP2, APP3, and APP4 may all display a payment graphic code, in order to avoid that a selection needs to be made from four APPs each time a payment graphic code is displayed, a user sets a default payment APP to be APP1, and when the graphic code that needs to be displayed is locked by the graphic code association information to be the payment graphic code, the electronic device will directly jump to a payment graphic code display interface corresponding to APP1 after receiving a first input of the user, and will not display a second interface including APP1, APP2, APP3, and APP 4.
For example, both APP1 and APP2 may display health codes, and to avoid that a selection needs to be made from APP1 and APP2 each time a health code is displayed, a user sets a default health code display application as APP2, and when a graphic code to be displayed is locked as a health code through graphic code associated information, the electronic device will directly jump to a health code display interface corresponding to APP2 after receiving a first input of the user, and will not display a second interface including application icons of APP1 and APP 2.
According to the graphic code display method provided by the embodiment of the application, under the condition that a plurality of application programs corresponding to the determined graphic code types exist, a plurality of application program icons corresponding to the type of graphic codes are provided and selected by a user, the application needing to be opened is selected by the user on the premise that the displayed graphic codes are correct, and the user experience is improved.
Optionally, after the displaying the first interface, the method further includes:
and when the image recognition result of the target image is a person, adjusting the brightness and the shape of the graphic code based on the position relation between the electronic equipment and the eyes of the target person.
Specifically, after the graphic code is displayed, the distance, the position relationship, the brightness of the screen, and the like between the screen of the electronic device and the sight of the person verifying the graphic code may cause that the sight of the person verifying the graphic code cannot be matched with the graphic code, thereby possibly causing the verification failure.
For example, under the condition that the screen of the electronic device and the horizontal sight line of the verifier form a certain included angle and a certain distance, the shape of the graphic code can be adjusted by taking the plane of the screen of the electronic device as a reference surface so that the verifier sees the graphic code without distortion.
For example, when the screen brightness of the electronic device is significantly lower than the ambient brightness, the verifier cannot clearly see the contents of the interface of the electronic device, and at this time, the brightness of the screen of the electronic device can be adjusted to make the verifier see a clear graphic code.
In addition, after the target graphic code is displayed, except for the situations of showing a health code, a travel code and the like, the code scanning device is required to scan and identify the graphic code picture displayed by the electronic device. When the center of the graphic code picture is not aligned with the code scanning device, or the two are too close to each other and too far away, the code scanning fails. The code scanning identification can be carried out by the mode that a user moves the electronic equipment or moves the code scanning equipment.
Fig. 4 is a second schematic flowchart of a graphic code display method according to an embodiment of the present application, and as shown in fig. 4, the method includes:
step 401, receiving a first input of a user.
Step 402, responding to the first input, acquiring associated information of the graphic code, wherein the associated information of the graphic code comprises at least one of image data information, position information and voice information.
And 403, displaying the target graphic code based on the graphic code correlation information.
And step 404, acquiring 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 the display position of the target graphic code are not adjusted.
When the relative static state between the electronic device and the code scanning device is determined by the image data information and the acceleration sensor data captured by the camera of the electronic device, step 405 is executed.
And step 405, updating the graphic code display interface based on the position relation between the electronic equipment and the code scanning equipment. The position relation comprises the distance and the orientation relation between the electronic equipment and the code scanning equipment.
And when the distance between the electronic equipment and the code scanning equipment is too large or too small, the size of the displayed graphic code picture is zoomed.
For example, when the distance between the electronic device and the code scanning device is smaller than a first preset threshold, the graphic code picture is displayed in a reduced size, so that the graphic code picture on the screen falls within the code scanning angle of the code scanning device.
For example, when the distance between the electronic device and the code scanning device is greater than a second preset threshold, the graphic code picture is displayed in an enlarged manner, so that the code scanning device can recognize the clearer graphic code picture.
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 picture is not scaled.
When the position of the camera of the code scanning device is greatly deviated from the central 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 to the central area of the graphic code picture.
For example, when the center of the screen of the electronic device deviates from the position of the camera of the code scanning device to the left by more than a first preset angle, the position of the graphic code picture on the screen is adjusted to move to the right, so that the central area of the graphic code picture is aligned with the camera of the code scanning device.
For example, when the center of the screen of the electronic device deviates from the position of the camera of the code scanning device to the right beyond a second preset angle, the position of the graphic code picture on the screen is adjusted to move to the left, so that the central area of the graphic code picture is aligned with the camera of the code scanning device.
For example, when the position of the camera deviated from the code scanning device on the center of the screen of the electronic device exceeds a third preset angle, the position of the graphic code picture on the screen is adjusted to move downwards, so that the center area of the graphic code picture is aligned with the camera of the code scanning device.
For example, when the position of the screen center of the electronic device, which is deviated from the camera of the code scanning device, exceeds a fourth preset angle, the position of the graphic code picture on the screen is adjusted to move upwards, so that the center area of the graphic code picture is aligned with the camera of the code scanning device.
Step 406, the user is prompted to move the location of the electronic device.
Due to the size limitation of the screen of the electronic equipment and the definition limitation of the graphic code picture, the graphic code picture cannot be infinitely zoomed, and the movement of the display position of the graphic code cannot exceed the range of the screen. Therefore, when the size and the display position of the graphic code cannot be accurately scanned and identified after being automatically adjusted, a user needs to be reminded to manually adjust the distance and the orientation relation between the electronic device and the code scanning device.
According to the graphic code display method provided by the embodiment of the application, the display size, the display position, the display shape, the brightness and the like of the graphic code picture are automatically adjusted according to the distance and the orientation relation between the electronic equipment and the code scanning equipment or between verification personnel, so that the visual line of the camera of the code scanning equipment or the verification personnel can be aligned to the central area of the graphic code picture, the success rate of code scanning or the success rate of verification is improved, and the user experience is improved.
Optionally, after the displaying the first interface, the method further includes:
and under the condition that the image recognition result of the target image is code scanning equipment, if the indicator lamp parameters of the code scanning equipment meet target conditions, updating the graphic code.
Specifically, in the case that the indicator light parameter of the code scanning device meets the target condition, that is, the code scanning device fails to scan the code, the graphic code needs to be updated in time.
Generally, updating a graphic code aims at the situation that code scanning of code scanning equipment fails, and generally does not need electronic equipment to judge the identification result of the graphic code and further update the graphic code under the situation that only verification personnel need to verify the graphic code, such as a health code, a travel code and the like.
Under the condition that the code scanning device is used for scanning and identifying the graphic code, the code scanning failure can be caused due to the facts that a camera of the code scanning device is not aligned to the central area of the graphic code, the code scanning time is too long and the like, and therefore the graphic code needs to be updated.
The failure of the electronic equipment to recognize the code scanning device can be judged by capturing the flash of an indicator lamp of the electronic equipment or changing the color of the indicator lamp through a camera. The target condition may be a color change or blinking of the indicator light.
For example, the indicator light of the electronic device normally appears green, changes to red when code scanning fails, and updates the graphic code when the camera of the electronic device captures the change of the indicator light of the code scanning device.
For example, the indicator light of the electronic device normally appears green, and appears to continuously flash in red when the code scanning fails, and the graphic code is updated when the camera of the electronic device captures the change of the indicator light of the code scanning device.
The electronic device can also update the graphic code at regular time, for example, update the graphic code every minute, so as to prevent failure of the graphic code to cause code scanning failure.
According to the graphic code display method provided by the embodiment of the application, the graphic code is updated under the condition of code scanning failure by judging the parameters of the indicator lamp of the code scanning device, manual operation of a user is not needed, the code scanning success rate is further improved, and the user experience is further improved.
It should be noted that, in the graphic code display method provided in the embodiment of the present application, the execution main body may be a graphic code display device, or a control module used for executing the graphic code display method in the graphic code display device. The embodiment of the present application takes the example of a graphic code display device executing a graphic code display method as an example, and describes a graphic code display device provided in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a graphic code display device according to an embodiment of the present application, and as shown in fig. 5, the graphic code display device according to the embodiment of the present application includes a receiving module 501, an obtaining module 502, and a display module 503, where:
the receiving module 501 is configured to receive a first input of a user, where the first input is used to trigger display of a graphic code;
the obtaining module 502 is configured to obtain, in response to the first input, associated information of a graphic code, where the associated information of the graphic code 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 an electronic device, and the voice information is a voice recognition result of a target voice in a current environment where the electronic device is obtained;
the display module 503 is configured to display a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
Optionally, the display module comprises a first display sub-module.
The first display sub-module is configured to display a first interface of a first application when the number of applications indicated by the graphic code associated information is 1, where the first application is the application indicated by the graphic code associated information, and the first interface includes a graphic code.
Optionally, the display module includes a second display sub-module, a receiving sub-module, and a third display sub-module.
The second display sub-module is used for displaying a second interface comprising a first application icon under the condition that the number of applications indicated by the graphic code associated information is greater than 1, wherein the first application icon is associated with the graphic code associated information. (ii) a
The receiving submodule is used for receiving second input of a user to a target application icon in the first application icons.
The third display submodule is used for responding to the second input and displaying the first interface; the first interface comprises a graphic code corresponding to the target application indicated by the target application icon.
Optionally, the apparatus further comprises an adjustment module.
The adjusting module is used for adjusting the brightness and the shape of the graphic code based on the position relation between the electronic equipment and the eyes of the target person under the condition that the image recognition result of the target image is the person.
Optionally, the apparatus further comprises an update module.
And the updating module is used for updating the graphic code if the indicator lamp parameter of the code scanning device meets a target condition under the condition that the image recognition result of the target image is the code scanning device.
According to the graphic code display device provided by the embodiment of the application, the automatic matching display of the target graphic code is realized by acquiring the associated information of the graphic code, a user does not need to manually select the target application and then open the target graphic code, the graphic code which is mistakenly displayed due to manual operation is avoided, and meanwhile the graphic code display efficiency is improved.
The graphic code display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The graphic code display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
An electronic device according to an embodiment of the present application further includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction is executed by the processor to implement the processes of the foregoing graphic code display method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 6, 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, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The user input unit 607 is configured to receive a first input from a user.
The processor 610 is configured to, in response to the first input, acquire graphics code related information, where the graphics code related 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 a current environment where the electronic device is acquired.
A display unit 606 for displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
Optionally, the display unit 606 is configured to display a first interface of a first application when the number of applications indicated by the graphic code related information is 1, where the first application is the application indicated by the graphic code related information, and the first interface includes a graphic code.
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 related information is greater than 1, where the first application icon is associated with the graphic code related information.
The user input unit 607 is further configured to receive a second input of the target application icon in the first application icon from the user.
A display unit 606, further configured to display the first interface in response to the second input; the first interface comprises a graphic code corresponding to the target application indicated by the target application icon.
Optionally, the processor 610 is configured to adjust the brightness and the shape of the graphic code based on a position relationship between the electronic device and the eyes of the target person in a case that the image recognition result of the target image is a person.
Optionally, the processor 610 is configured to, when the image recognition result of the target image is a code scanning device, update the graphic code if an indicator light parameter of the code scanning device meets a target condition.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing graphic code display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing graphic code display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A graphic code display method is characterized by comprising the following steps:
receiving a first input of a user, wherein the first input is used for triggering display of a graphic code;
acquiring graphic code associated information in response to the first input, wherein the graphic code associated information comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment;
displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
2. The graphic code display method according to claim 1, wherein the displaying the first interface comprises:
and displaying a first interface of a first application under the condition that the number of the applications indicated by the associated information of the graphic code is 1, wherein the first application is the application indicated by the associated information of the graphic code, and the first interface comprises the graphic code.
3. The graphic code display method according to claim 1, wherein the displaying the first interface comprises:
displaying a second interface comprising a first application icon under the condition that the number of applications indicated by the associated information of the graphic code is greater than 1, wherein the first application icon is associated with the associated information of the graphic code;
receiving a second input of a user to a target application icon in the first application icons;
displaying the first interface in response to the second input; the first interface comprises a graphic code corresponding to the target application indicated by the target application icon.
4. The graphic code display method according to claim 1, wherein after the displaying the first interface, further comprising:
and when the image recognition result of the target image is a person, adjusting the brightness and the shape of the graphic code based on the position relation between the electronic equipment and the eyes of the target person.
5. The graphic code display method according to claim 1, wherein after the displaying the first interface, further comprising:
and under the condition that the image recognition result of the target image is code scanning equipment, if the indicator lamp parameters of the code scanning equipment meet target conditions, updating the graphic code.
6. A graphic code display device, comprising:
the receiving module is used for receiving a first input of a user, wherein the first input is used for triggering display of a graphic code;
the acquisition module is used for responding to the first input and acquiring graphic code associated information, wherein the graphic code associated information comprises 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 equipment, and the voice information is a voice recognition result of target voice in the current environment acquired by the electronic equipment;
the display module is used for displaying a first interface; the first interface comprises a graphic code associated with the graphic code associated information.
7. The graphic code display device according to claim 6, wherein the display module comprises a first display sub-module;
the first display sub-module is configured to display a first interface of a first application when the number of applications indicated by the graphic code associated information is 1, where the first application is the application indicated by the graphic code associated information, and the first interface includes a graphic code.
8. The graphic code display device according to claim 6, wherein the display module comprises a second display sub-module, a receiving sub-module and a third display sub-module;
the second display sub-module is used for displaying a second interface comprising a first application icon under the condition that the number of applications indicated by the graphic code associated information is greater than 1, wherein the first application icon is associated with the graphic code associated information;
the receiving submodule is used for receiving a second input of a user to a target application icon in the first application icon;
the third display submodule is used for responding to the second input and displaying the first interface; the first interface comprises a graphic code corresponding to the target application indicated by the target application icon.
9. The graphic code display device according to claim 6, wherein the device further comprises an adjustment module;
the adjusting module is used for adjusting the brightness and the shape of the graphic code based on the position relation between the electronic equipment and the eyes of the target person under the condition that the image recognition result of the target image is the person.
10. The graphic code display device according to claim 6, wherein the device further comprises an update module;
and the updating module is used for updating the graphic code if the indicator lamp parameter of the code scanning device meets a target condition under the condition that the image recognition result of the target image is the code scanning device.
CN202110574349.6A 2021-05-25 2021-05-25 Graphic code display method and device Pending CN113298212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110574349.6A CN113298212A (en) 2021-05-25 2021-05-25 Graphic code display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110574349.6A CN113298212A (en) 2021-05-25 2021-05-25 Graphic code display method and device

Publications (1)

Publication Number Publication Date
CN113298212A true CN113298212A (en) 2021-08-24

Family

ID=77325016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110574349.6A Pending CN113298212A (en) 2021-05-25 2021-05-25 Graphic code display method and device

Country Status (1)

Country Link
CN (1) CN113298212A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867585A (en) * 2021-09-24 2021-12-31 维沃移动通信有限公司 Interface display method and device, electronic equipment and storage medium
WO2023040242A1 (en) * 2021-09-17 2023-03-23 北京百度网讯科技有限公司 Information display device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014157519A (en) * 2013-02-18 2014-08-28 Keyence Corp Optical code reading system and reading control method of optical code
CN106327185A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Starting method for payment application and mobile terminal
CN107204194A (en) * 2017-05-27 2017-09-26 冯小平 Determine user's local environment and infer the method and apparatus of user view
CN107633164A (en) * 2017-09-28 2018-01-26 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN107977434A (en) * 2017-12-01 2018-05-01 珠海市魅族科技有限公司 Method for pushing, terminal device, computer installation and the readable storage medium storing program for executing of bar code
CN108154058A (en) * 2016-12-05 2018-06-12 北京小米移动软件有限公司 Graphic code displaying, the band of position determine method and device
CN109242471A (en) * 2018-08-20 2019-01-18 阿里巴巴集团控股有限公司 Page jump, bar code method of payment, device and equipment in
CN110163319A (en) * 2019-04-10 2019-08-23 阿里巴巴集团控股有限公司 Bar code display method, device and equipment
CN110738066A (en) * 2018-07-20 2020-01-31 中兴通讯股份有限公司 code scanning method, device and computer storage medium
CN111475072A (en) * 2020-04-08 2020-07-31 维沃移动通信有限公司 Payment information display method and electronic equipment
CN111599085A (en) * 2020-04-10 2020-08-28 支付宝(杭州)信息技术有限公司 Identity verification processing method and device and mobile terminal
CN112613475A (en) * 2020-12-31 2021-04-06 Oppo广东移动通信有限公司 Code scanning interface display method and device, mobile terminal and storage medium
WO2021072775A1 (en) * 2019-10-18 2021-04-22 深圳市欢太科技有限公司 Method and apparatus for terminal payment, terminal device and computer-readable storage medium
CN112733566A (en) * 2021-01-14 2021-04-30 广州乐摇摇信息科技有限公司 Two-dimensional code reading method and device based on position guidance

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014157519A (en) * 2013-02-18 2014-08-28 Keyence Corp Optical code reading system and reading control method of optical code
CN106327185A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Starting method for payment application and mobile terminal
CN108154058A (en) * 2016-12-05 2018-06-12 北京小米移动软件有限公司 Graphic code displaying, the band of position determine method and device
CN107204194A (en) * 2017-05-27 2017-09-26 冯小平 Determine user's local environment and infer the method and apparatus of user view
CN107633164A (en) * 2017-09-28 2018-01-26 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN107977434A (en) * 2017-12-01 2018-05-01 珠海市魅族科技有限公司 Method for pushing, terminal device, computer installation and the readable storage medium storing program for executing of bar code
CN110738066A (en) * 2018-07-20 2020-01-31 中兴通讯股份有限公司 code scanning method, device and computer storage medium
CN109242471A (en) * 2018-08-20 2019-01-18 阿里巴巴集团控股有限公司 Page jump, bar code method of payment, device and equipment in
CN110163319A (en) * 2019-04-10 2019-08-23 阿里巴巴集团控股有限公司 Bar code display method, device and equipment
WO2021072775A1 (en) * 2019-10-18 2021-04-22 深圳市欢太科技有限公司 Method and apparatus for terminal payment, terminal device and computer-readable storage medium
CN111475072A (en) * 2020-04-08 2020-07-31 维沃移动通信有限公司 Payment information display method and electronic equipment
CN111599085A (en) * 2020-04-10 2020-08-28 支付宝(杭州)信息技术有限公司 Identity verification processing method and device and mobile terminal
CN112613475A (en) * 2020-12-31 2021-04-06 Oppo广东移动通信有限公司 Code scanning interface display method and device, mobile terminal and storage medium
CN112733566A (en) * 2021-01-14 2021-04-30 广州乐摇摇信息科技有限公司 Two-dimensional code reading method and device based on position guidance

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023040242A1 (en) * 2021-09-17 2023-03-23 北京百度网讯科技有限公司 Information display device
CN113867585A (en) * 2021-09-24 2021-12-31 维沃移动通信有限公司 Interface display method and device, electronic equipment and storage medium
CN113867585B (en) * 2021-09-24 2023-07-28 维沃移动通信有限公司 Interface display method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9883397B2 (en) Mobile device, and method for releasing lock of the mobile device via handwriting recognition
US20170053149A1 (en) Method and apparatus for fingerprint identification
US10095949B2 (en) Method, apparatus, and computer-readable storage medium for area identification
CN107977659B (en) Character recognition method and device and electronic equipment
CN113298212A (en) Graphic code display method and device
CN111813309B (en) Display method, display device, electronic equipment and readable storage medium
CN112417421A (en) Scanning method, scanning device, electronic equipment and readable storage medium
EP4206912A1 (en) Interface displaying method, device, and electronic device
JP2015090569A (en) Information processing device and information processing method
CN112433693B (en) Split screen display method and device and electronic equipment
CN112613475A (en) Code scanning interface display method and device, mobile terminal and storage medium
CN104572654A (en) User searching method and device
CN111539269A (en) Text region identification method and device, electronic equipment and storage medium
EP3579137A1 (en) Touch response method and device
CN112596609A (en) Display processing method, display processing device and wearable equipment
CN111881703A (en) Graphic code identification method and device and electronic equipment
CN113641638A (en) Application management method and device, electronic equipment and storage medium
CN112437231B (en) Image shooting method and device, electronic equipment and storage medium
CN113709307A (en) Message display method and device and electronic equipment
CN109756621A (en) A kind of two-dimensional code display method and terminal device
CN112147964A (en) Device management method, device, electronic device and medium
CN113486738A (en) Fingerprint identification method and device, electronic equipment and readable storage medium
CN113128244A (en) Scanning method and device and electronic equipment
CN112465497A (en) Payment method, payment device, electronic equipment and medium
CN112486387A (en) Application program control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination