CN113821294A - Two-dimensional code scanning method and device, electronic equipment and storage medium - Google Patents

Two-dimensional code scanning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113821294A
CN113821294A CN202111124343.5A CN202111124343A CN113821294A CN 113821294 A CN113821294 A CN 113821294A CN 202111124343 A CN202111124343 A CN 202111124343A CN 113821294 A CN113821294 A CN 113821294A
Authority
CN
China
Prior art keywords
control
interface
dimensional code
target
input
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
CN202111124343.5A
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202111124343.5A priority Critical patent/CN113821294A/en
Publication of CN113821294A publication Critical patent/CN113821294A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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/326Payment applications installed on the mobile devices
    • G06Q20/3267In-app payments

Abstract

The application discloses a two-dimensional code scanning method and device, electronic equipment and a storage medium, and belongs to the technical field of computers. The two-dimensional code scanning method comprises the following steps: displaying a first control, a second control and a third control, wherein the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code; receiving a first input to a target control and a third control, the target control being at least one of the first control and the second control; in response to the first input, performing a target operation associated with the third control based on the two-dimensional code associated with the target control.

Description

Two-dimensional code scanning method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a two-dimensional code scanning method and device, electronic equipment and a storage medium.
Background
The two-dimensional bar code/two-dimensional code (2-dimensional bar code) records data symbol information by using black and white alternate graphs which are distributed on a plane (two-dimensional direction) according to a certain rule by using a certain specific geometric figure; the concept of '0' and '1' bit stream forming the internal logic basis of computer is skillfully utilized in code making, a plurality of geometric shapes corresponding to binary system are used for representing character numerical value information, and the information is automatically read through an image input device or an optoelectronic scanning device so as to realize automatic information processing.
At present, a merchant often requires a user to scan a two-dimensional code through a terminal to complete corresponding operations. But the operation mode is more complicated and is inconvenient for users to use.
For example: services such as ordering and checkout provided through the public number can be used after the public number is paid attention. After the user checks out, the public number pushes various messages. If the user does not want to receive the pushed messages, the user needs to open a corresponding Application program (App) to cancel the attention to the public number, and various messages pushed by the public number are not received any more, so that the operation is complex.
For another example: for a merchant who frequently goes to shop, before each payment, the user needs to scan the two-dimensional code through the terminal and enter a payment interface to complete the payment.
Disclosure of Invention
An embodiment of the application aims to provide a two-dimensional code scanning method, a two-dimensional code scanning device, electronic equipment and a storage medium, and the problem that operation of a user is inconvenient can be solved.
In a first aspect, an embodiment of the present application provides a two-dimensional code scanning method, where the method includes:
displaying a first control, a second control and a third control, wherein the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code;
receiving a first input to a target control and a third control, the target control being at least one of the first control and the second control;
in response to the first input, performing a target operation associated with the third control based on the two-dimensional code associated with the target control.
In a second aspect, an embodiment of the present application provides a two-dimensional code scanning device, where the device includes:
the display module is used for displaying a first control, a second control and a third control, the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code;
the input module is used for receiving first input of a target control and a third control, wherein the target control is at least one of the first control and the second control;
and the execution module is used for responding to the first input and executing the target operation associated with the third control piece based on the two-dimensional code associated with the target control piece.
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, based on the association between the target control and the two-dimensional code and the association between the target operation and the third control, the target operation associated with the third control is executed in response to the first input to the target control and the third control, the execution of the target operation can be triggered without scanning the two-dimensional code and clicking the control in an interface associated with the two-dimensional code, the execution of the target operation is simpler, quicker and more convenient, and the convenience of the user operation can be improved.
Drawings
Fig. 1 is a schematic flowchart of a two-dimensional code scanning method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface displaying a first control, a second control, and a third control provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface displaying a first control, a second control, and a third control provided by an embodiment of the present application;
fig. 4 is a schematic view of an interface for scanning a first two-dimensional code according to an embodiment of the present application;
FIG. 5 is a schematic view of a fourth interface provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a display interface of target information provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a two-dimensional code scanning device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram 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 two-dimensional code scanning method, the two-dimensional code scanning device, the electronic device, and the storage medium according to the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a two-dimensional code scanning method provided in an embodiment of the present application. The two-dimensional code scanning method provided by the embodiment of the application is described below with reference to fig. 1. As shown in fig. 1, the method includes:
step 101, displaying a first control, a second control and a third control, wherein the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code.
Optionally, an execution main body of the two-dimensional code scanning method provided by the embodiment of the application is a two-dimensional code scanning device.
The two-dimensional code scanning apparatus may be implemented in various forms. For example, the two-dimensional code scanning device described in the embodiments of the present application may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a navigation device, a smart band, a smart hand, a digital camera, and the like, and a stationary terminal such as a desktop computer and the like. In the following, it is assumed that the two-dimensional code scanning apparatus is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
A first control, a second control, and a third control may be displayed in the target interface.
FIG. 2 illustrates a target interface. The first control 201 is associated with a first two-dimensional code, and the first two-dimensional code is a two-dimensional code of the merchant A; the second control 202 is associated with a second two-dimensional code, and the second two-dimensional code is the two-dimensional code of the merchant B; the third control includes a payment button 204 and an input box 205. It is understood that the control 203 in fig. 2 can also be used as the first control 201 or the second control 202.
FIG. 3 illustrates another target interface. In the target interface shown in fig. 3, two groups of controls are displayed according to different function types, and each group of controls includes a first control, a second control, and a third control. The function type corresponding to the first group of controls is "take away and order", in the first group of controls, the first control and the second control can be any one of the controls 301 and 304, the first control and the second control are different, and the third control can be the control 305. The function type corresponding to the second group of controls is "recharge and pay", in the second group of controls, the first control may be the control 306, the second control is the control 307, and the third control is the control 308.
The first control is associated with the first two-dimensional code in a specific way including at least one of the following: the first control is associated with the first two-dimensional code, the first control is associated with the first interface corresponding to the first two-dimensional code, and the first control is associated with the control in the interface corresponding to the first two-dimensional code.
The second control is associated with the second two-dimensional code, and the specific way of association includes at least one of the following: the second control is associated with the second two-dimensional code, the second control is associated with a second interface corresponding to the second two-dimensional code, and the second control is associated with a control in the interface corresponding to the second two-dimensional code.
The first two-dimensional code and the second two-dimensional code can be two-dimensional codes which are used for providing at least one function of ordering, information pushing, information checking, payment and the like for the merchant.
The third control is associated with the target operation. Based on the input to the third control, a target operation may be performed.
The target operation may include: at least one of paying, canceling the target public number of interest, viewing target information, and querying target information.
The target operation can be determined according to the function type of each control in the first interface associated with the first two-dimensional code and the function type of each control in the second interface associated with the second two-dimensional code.
Optionally, the operation corresponding to the control with the similar function type in the first interface and the second interface may be determined as the target operation.
For example, where the first interface includes a control for payment and the second interface includes a control for payment, the target operation may be determined to be payment; in the case where the first interface includes a control for inquiring the electricity charge and the second interface includes a control for inquiring the charge, it may be determined that the target operation is the inquiry.
Step 102, receiving first input of a target control and a third control, wherein the target control is at least one of the first control and the second control.
Optionally, based on the target interface, the user may select at least one of the first control and the second control as a target control to input the first input. The first input is an input to the target control and the third control.
The first input may be touch input, voice input, gesture input, or key input, or may be a first operation.
For example, for the target interface shown in fig. 2, the first input may include an operation of clicking the first control 201, an operation of inputting a payment amount of "9 dollars" in the input box 205, and an operation of clicking the payment button 204.
It is to be understood that the above listed inputs are exemplary lists, i.e., embodiments of the present application include, but are not limited to, the above listed inputs. In practical implementation, the input may also include any other possible input, which may be specifically determined according to practical use requirements, and the embodiment of the present application is not limited.
And 103, responding to the first input, and executing target operation associated with the third control based on the two-dimensional code associated with the target control.
Optionally, after receiving the first input, the two-dimensional code scanning device responds to the first input, simplifies operations that may need several steps originally into one-step fast processing in a "one-key triggering" manner, and triggers execution of target-based operations based on the two-dimensional code associated with the target control.
For a scenario where the first input includes an operation of clicking the first control 201, an operation of inputting a payment amount of "9 yuan" in the input box 205, and an operation of clicking the payment button 204, a target operation of paying merchant a for 9 yuan may be performed based on the first two-dimensional code, for example.
According to the embodiment of the application, based on the association between the target control and the two-dimensional code and the association between the target operation and the third control, the target operation associated with the third control is executed in response to the first input to the target control and the third control, the execution of the target operation can be triggered without scanning the two-dimensional code and clicking the control in the interface associated with the two-dimensional code, the execution of the target operation is simpler, quicker and more convenient, and the convenience of user operation can be improved.
Optionally, before displaying the first control, the second control, and the third control, the method further includes: and scanning the first two-dimensional code, and displaying a first interface associated with the first two-dimensional code.
Optionally, the two-dimensional code scanning device may include at least one camera. The camera can be used for scanning two-dimensional codes. The user may invoke a camera based on a camera program or a target Application (App) installed on the two-dimensional code scanning device to scan the first two-dimensional code.
Alternatively, the target application may be an instant messaging, payment, or web shopping type application.
After the first two-dimensional code is scanned, the first two-dimensional code is analyzed, and a first interface is displayed. The first interface is associated with a first two-dimensional code.
Fig. 4 is a schematic view of an interface for scanning a first two-dimensional code according to an embodiment of the present application. As shown in fig. 4, the interface is a third interface, and the interface includes a control 401. The control 401 is used for the user to select whether to start the intelligent code scanning function, and execute the step of intelligently scanning the two-dimensional code.
Optionally, the user may input a second input based on the control 401 to start executing the step of intelligently scanning the two-dimensional code.
The first input may be touch input, voice input, gesture input, or key input, or may be a first operation.
For example, the first input may be an operation of clicking the control 401, setting a switch to a position indicating "on" (e.g., right side), and starting to perform the step of intelligently scanning the two-dimensional code.
It is to be understood that the above listed inputs are exemplary lists, i.e., embodiments of the present application include, but are not limited to, the above listed inputs. In practical implementation, the input may also include any other possible input, which may be specifically determined according to practical use requirements, and the embodiment of the present application is not limited.
And acquiring control information in the first interface, determining a first control according to the control information, and associating the first control with the control in the first interface.
Optionally, after the first interface is displayed, each control in the first interface may be parsed to obtain control information.
And the control information in the first interface comprises information of each control in the first interface. The information of the control can include: the position of the control in the first interface and the like.
After the control information in the first interface is obtained, the information of the merchant corresponding to the first two-dimensional code can be obtained; and generating a first control in the target interface based on the information of the merchant corresponding to the first two-dimensional code.
After the control information in the first interface is acquired, the first control may be associated with at least one control in the first interface, so that the operation associated with the control in the first interface may be executed in response to the first input when the target control includes the first control.
Alternatively, the user may input a third input based on the control 401 in fig. 4, without starting the step of performing the smart scan of the two-dimensional code. Under the condition that the step of executing the intelligent two-dimensional code scanning is not started, the process of scanning the target two-dimensional code and processing the scanning result based on the target two-dimensional code by the two-dimensional code scanning device in response to the third input is similar to the process of processing the scanning result based on the common two-dimensional code and the scanning result based on the two-dimensional code, and the process is not repeated here.
The third input may be touch input, voice input, gesture input, or key input, or may be a third operation.
For example, the third input may be an operation of clicking the control 401, and setting a switch to a position (e.g., left side) indicating "off", without turning on the step of performing the smart scan of the two-dimensional code.
It is to be understood that the above listed inputs are exemplary lists, i.e., embodiments of the present application include, but are not limited to, the above listed inputs. In practical implementation, the input may also include any other possible input, which may be specifically determined according to practical use requirements, and the embodiment of the present application is not limited.
It is understood that step 101 further includes, before:
scanning the second two-dimensional code, and displaying a first interface associated with the second two-dimensional code;
and acquiring control information in the second interface, determining a second control according to the control information, and associating the second control with the control in the second interface.
According to the embodiment of the application, the control information in the first interface is obtained, the first control is determined according to the control information, and the first control and the control in the first interface are associated, so that the target operation associated with the third control can be executed in response to the first input of the first control and the third control based on the association between the first control and the control in the first interface, the execution of the target operation can be triggered without scanning the first two-dimensional code and clicking the control in the first interface, the execution of the target operation is simpler, quicker and more convenient, and the convenience of user operation can be improved.
Optionally, before displaying the first control, the second control, and the third control, the method includes: and acquiring the function types of the controls in the first interface and the second interface and the operation related to the controls according to the first interface and the second interface.
Optionally, the function type of each control in the first interface and the operation associated with the control may also be obtained by analyzing the first interface.
And analyzing the second interface, and acquiring the function type of each control in the second interface and the operation associated with the control.
And acquiring a control with the similarity of the function types in the first interface and the second interface larger than a preset threshold value, and generating a third control associated with the target operation.
Optionally, for any control in the first interface and any control in the second interface, the similarity of the function types of the two controls is obtained.
Alternatively, the similarity between the function types of the two controls can be represented by the similarity between the semantics of the function types of the two controls.
And after the similarity of the function types of the two controls is obtained, comparing the similarity of the function types of the two controls with a preset threshold value.
The preset threshold may be preset as needed. Illustratively, the preset threshold may be 85%. The embodiment of the present application is not particularly limited to a specific value of the preset threshold.
And under the condition that the similarity of the function types of the two controls is greater than a preset threshold, the operation associated with the two controls is basically the same, and a third control can be generated in the target interface based on the function types of the two controls. And the operation associated with the third control is the operation associated with the two controls.
According to the method and the device for executing the target operation, the control with the similarity between the function types in the first interface and the second interface larger than the preset threshold value is obtained by obtaining the function types of the controls in the first interface and the second interface and the operation related to the controls, the third control related to the target operation is generated, the target operation related to the third control can be executed in response to the first input of the first control and the third control, the execution of the target operation can be triggered without scanning the first two-dimensional code and clicking the controls in the first interface, the execution of the target operation is simpler, quicker and more convenient, and the convenience of user operation can be improved.
Optionally, acquiring control information in the first interface includes: the method comprises the steps of splitting a first interface by identifying the content of characters or pictures corresponding to each control in the first interface, and obtaining the information of each control in the first interface.
Optionally, the content of the text or the picture corresponding to each control in the first interface may be recognized through an OCR (Optical Character Recognition) or an image Recognition technology, the first interface is split, and different controls are distinguished.
The control can comprise a button, an input box, a pull-down menu and the like at each position in the first interface.
The information of each control can also be acquired based on the recognition result obtained by OCR or image recognition technology.
Optionally, after the information of each control in the first interface is acquired, the fourth interface may be displayed based on the information of the fourth control in the first interface.
In the fourth interface shown in fig. 5, in the case that the operation associated with one fourth control 501 is an operation of viewing nearby stores, a list of stores nearby a restaurant may be displayed at the first sub-interface 502 of the fourth interface based on the information of the fourth control; in the case that the operation associated with the other fourth control 503 is an operation of viewing a new product, information of the new product of the restaurant may be displayed on the second sub-interface 504 of the fourth interface based on the information of the fourth control 503.
It can be understood that the step of obtaining the control information in the second interface is similar to the step of obtaining the control information in the first interface, and is not described herein again.
According to the method and the device, the content of the characters or pictures corresponding to the controls in the first interface is identified, the first interface is split, the information of the controls in the first interface is obtained, and the control information in the first interface can be obtained more quickly and accurately.
Optionally, after the information of the first control in the first interface is acquired and the first control and the first two-dimensional code are associated, the method further includes: in the case where the first interface is an interface of the target public number and the user completes the payment, an operation of canceling the focus on the target public number is performed.
Optionally, in a case that the first interface is an interface of a target public number, the user may perform operations such as checking dish information, ordering, checking push information, and paying based on the interface.
After the user can order based on the first interface, the user can make a payment based on the payment interface. And the operation associated with the fifth control in the first interface is an operation of canceling the concerned target public number. After the payment is completed, the two-dimensional code scanning device can automatically execute an operation of canceling the concerned target public number through the association between the information of the fifth control and the associated operation of the fifth control based on the information of the fifth control in the first interface; the process of executing the operation of canceling the attention target public number may be initiated, and in a case where the user confirms that the operation of canceling the attention target public number is executed by operating the two-dimensional code scanning apparatus, the operation of canceling the attention target public number is executed by association between the information of the fifth control and the associated operation of the fifth control based on the information of the fifth control.
Based on the information of the fifth control, the operation of canceling the attention target public number is executed, and the operation comprises the following steps: target information for prompting the user to confirm whether to perform an operation of canceling the attention target public number is displayed.
Alternatively, the two-dimensional code scanning apparatus may display target information 601 as shown in fig. 6 on the display screen, prompting the user to confirm whether to perform the target operation.
A fourth input by the user is received.
Alternatively, in a case where the user does not wish to continue paying attention to the target public number, the user may input a fourth input to the two-dimensional code scanning apparatus.
And a fourth input for determining to perform an operation of canceling the attention target public number.
The fourth input may be touch input, voice input, gesture input, or key input, or may be a fourth operation.
For example, the fourth input may be an operation of clicking on a control 602 in the interface shown in fig. 6, and determining to perform an operation of canceling the attention target public account.
It is to be understood that the above listed inputs are exemplary lists, i.e., embodiments of the present application include, but are not limited to, the above listed inputs. In practical implementation, the input may also include any other possible input, which may be specifically determined according to practical use requirements, and the embodiment of the present application is not limited.
And in response to the fourth input, based on the information of the fifth control, executing the operation of canceling the attention target public number.
Optionally, after receiving the fourth input, the two-dimensional code scanning device responds to the fourth input, and based on the information of the fifth control, performs an operation of canceling the attention target public account through association between the information of the fifth control and the associated operation of the fifth control.
Alternatively, in a case where the user wishes to continue focusing on the target public number, the user may input a fifth input to the two-dimensional code scanning apparatus.
A fifth input for determining to perform a target operation.
The fifth input may be touch input, voice input, gesture input, or key input, or may be a fifth operation.
For example, the fifth input may be an operation of clicking a control 603 in the interface shown in fig. 6, and canceling the execution of the target operation.
It is to be understood that the above listed inputs are exemplary lists, i.e., embodiments of the present application include, but are not limited to, the above listed inputs. In practical implementation, the input may also include any other possible input, which may be specifically determined according to practical use requirements, and the embodiment of the present application is not limited.
According to the embodiment of the application, the concerned public number can be cancelled more conveniently and efficiently by executing the operation of cancelling the concerned public number based on the information of the fifth control under the condition that the first interface is the interface of the target public number and the user completes payment.
It should be noted that, in the two-dimensional code scanning method provided in the embodiment of the present application, the execution main body may be a two-dimensional code scanning apparatus, or the execution main body is a control module used for executing the two-dimensional code scanning method in the two-dimensional code scanning apparatus. The two-dimensional code scanning device provided by the embodiment of the present application is described by taking a two-dimensional code scanning method executed by a two-dimensional code scanning device as an example.
Fig. 7 is a schematic structural diagram of a two-dimensional code scanning device according to an embodiment of the present application. Optionally, as shown in fig. 7, the apparatus includes a display module 701, an input module 702, and an execution module 703, wherein:
the display module 701 is used for displaying a first control, a second control and a third control, wherein the first control is associated with the first two-dimensional code, the second control is associated with the second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code;
an input module 702, configured to receive a first input to a target control and a third control, where the target control is at least one of the first control and the second control;
the executing module 703 is configured to, in response to the first input, execute a target operation associated with the third control based on the two-dimensional code associated with the target control.
Alternatively, the display module 701, the input module 702, and the execution module 703 are electrically connected in sequence.
The display module 701 is used for displaying a target interface. The target interface includes a first control, a second control, and a third control.
The input module 702 is configured to receive a first input. The first input may be user input to the target control and the third control. The user may select at least one of the first control and the second control as a target control.
After the input module 702 receives the first input, the execution module 703 is configured to respond to the first input, simplify operations that may originally require several steps into one-step fast processing in a "one-key triggering" manner, and trigger execution of a target-based operation based on a two-dimensional code associated with a target control.
Optionally, the two-dimensional code scanning device may further include:
the scanning module is used for scanning the first two-dimensional code and displaying a first interface associated with the first two-dimensional code;
and the association module is used for acquiring the control information in the first interface, determining the first control according to the control information, and associating the first control with the control in the first interface.
Optionally, the two-dimensional code scanning device may further include:
the acquisition module is used for acquiring the function types of the controls in the first interface and the second interface and the operation related to the controls according to the first interface and the second interface;
and the generating module is used for acquiring a control with the similarity of the function types in the first interface and the second interface larger than a preset threshold value and generating a third control associated with the target operation.
Optionally, the association module is specifically configured to split the first interface by identifying content of a text or a picture corresponding to each control in the first interface, and acquire information of each control in the first interface.
Optionally, the two-dimensional code scanning device may further include:
and the attention canceling module is used for executing the operation of canceling the attention target public number under the condition that the first interface is the interface of the target public number and the user completes payment.
According to the embodiment of the application, based on the association between the target control and the two-dimensional code and the association between the target operation and the third control, the target operation associated with the third control is executed in response to the first input to the target control and the third control, the execution of the target operation can be triggered without scanning the two-dimensional code and clicking the control in the interface associated with the two-dimensional code, the execution of the target operation is simpler, quicker and more convenient, and the convenience of user operation can be improved.
The two-dimensional code scanning 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 two-dimensional code scanning 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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The two-dimensional code scanning device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the two-dimensional code scanning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 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 not repeated here.
The display unit 906 is configured to display a first control, a second control, and a third control, where the first control is associated with the first two-dimensional code, the second control is associated with the second two-dimensional code, and the third control is associated with a target operation, where the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code
A user input unit 907 for receiving a first input to a target control and a third control, where the target control is at least one of the first control and the second control; and the processor 910 is configured to execute a target operation associated with the third control based on the two-dimensional code associated with the target control in response to the first input.
According to the embodiment of the application, based on the association between the target control and the two-dimensional code and the association between the target operation and the third control, the target operation associated with the third control is executed in response to the first input to the target control and the third control, the execution of the target operation can be triggered without scanning the two-dimensional code and clicking the control in the interface associated with the two-dimensional code, the execution of the target operation is simpler, quicker and more convenient, and the convenience of user operation can be improved.
Optionally, the processor 910 is further configured to scan the first two-dimensional code, and display a first interface associated with the first two-dimensional code;
the processor 910 is further configured to obtain control information in the first interface, determine the first control according to the control information, and associate the first control with the control in the first interface.
Optionally, the processor 910 is further configured to obtain, according to the first interface and the second interface, a function type of a control in the first interface and a function type of an operation associated with the control in the second interface;
the processor 910 is further configured to obtain a control, in the first interface and the second interface, of which the similarity of the function types is greater than a preset threshold, and generate a third control associated with the target operation.
Optionally, the processor 910 is further configured to split the first interface by identifying content of text or pictures corresponding to each control in the first interface, so as to obtain information of each control in the first interface.
Optionally, the processor 910 is further configured to perform an operation of canceling the attention to the target public number if the first interface is an interface of the target public number and the user completes the payment.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 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. Memory 909 can be used to store software programs as well as various data including, but not limited to, target application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating system, user interface, and target applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
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 two-dimensional code scanning 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 run a program or an instruction to implement each process of the foregoing two-dimensional code scanning method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated 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 two-dimensional code scanning method is characterized by comprising the following steps:
displaying a first control, a second control and a third control, wherein the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code;
receiving a first input to a target control and a third control, the target control being at least one of the first control and the second control;
in response to the first input, performing a target operation associated with the third control based on the two-dimensional code associated with the target control.
2. The two-dimensional code scanning method according to claim 1, wherein before the displaying the first control, the second control, and the third control, the method further comprises:
scanning a first two-dimensional code, and displaying a first interface associated with the first two-dimensional code;
and acquiring control information in the first interface, determining the first control according to the control information, and associating the first control with the control in the first interface.
3. The two-dimensional code scanning method according to claim 1, wherein before the displaying the first control, the second control, and the third control, the method comprises:
acquiring the function types of the controls in the first interface and the second interface and the operation associated with the controls according to the first interface and the second interface;
and acquiring a control with the similarity of the function types in the first interface and the second interface larger than a preset threshold value, and generating the third control associated with the target operation.
4. The two-dimensional code scanning method according to claim 2, wherein the acquiring control information in the first interface includes:
and splitting the first interface by identifying the content of the characters or pictures corresponding to the controls in the first interface to acquire the information of the controls in the first interface.
5. The two-dimensional code scanning method according to claim 2, wherein after the obtaining of the information of the first control in the first interface and the associating of the first control with the first two-dimensional code, the method further comprises:
and in the case that the first interface is an interface of a target public number and the user completes payment, performing an operation of canceling attention to the target public number.
6. A two-dimensional code scanning device, characterized by comprising:
the display module is used for displaying a first control, a second control and a third control, the first control is associated with a first two-dimensional code, the second control is associated with a second two-dimensional code, the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first two-dimensional code and a second interface associated with the second two-dimensional code;
the input module is used for receiving first input of a target control and a third control, wherein the target control is at least one of the first control and the second control;
and the execution module is used for responding to the first input and executing the target operation associated with the third control piece based on the two-dimensional code associated with the target control piece.
7. The two-dimensional code scanning device according to claim 6, characterized in that the device further comprises:
the scanning module is used for scanning a first two-dimensional code and displaying a first interface associated with the first two-dimensional code;
and the association module is used for acquiring control information in the first interface, determining the first control according to the control information, and associating the first control with the control in the first interface.
8. The two-dimensional code scanning device according to claim 6, characterized in that the device further comprises:
the obtaining module is used for obtaining the function types of the controls in the first interface and the second interface and the operation related to the controls according to the first interface and the second interface;
and the generating module is used for acquiring a control with the similarity between the function types in the first interface and the second interface larger than a preset threshold value, and generating the third control associated with the target operation.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the two-dimensional code scanning method according to any one of claims 1-5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the two-dimensional code scanning method according to any one of claims 1 to 5.
CN202111124343.5A 2021-09-24 2021-09-24 Two-dimensional code scanning method and device, electronic equipment and storage medium Pending CN113821294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111124343.5A CN113821294A (en) 2021-09-24 2021-09-24 Two-dimensional code scanning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111124343.5A CN113821294A (en) 2021-09-24 2021-09-24 Two-dimensional code scanning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113821294A true CN113821294A (en) 2021-12-21

Family

ID=78915440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111124343.5A Pending CN113821294A (en) 2021-09-24 2021-09-24 Two-dimensional code scanning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113821294A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080273A (en) * 2019-12-02 2020-04-28 广州伊的家网络科技有限公司 Aggregated payment method, server and merchant terminal thereof
CN112148198A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Display method and device of payment interface and electronic equipment
CN112162665A (en) * 2020-09-21 2021-01-01 维沃移动通信有限公司 Operation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080273A (en) * 2019-12-02 2020-04-28 广州伊的家网络科技有限公司 Aggregated payment method, server and merchant terminal thereof
CN112162665A (en) * 2020-09-21 2021-01-01 维沃移动通信有限公司 Operation method and device
CN112148198A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Display method and device of payment interface and electronic equipment

Similar Documents

Publication Publication Date Title
CN108564359B (en) Data processing method, terminal equipment and data processing system
US20200012701A1 (en) Method and apparatus for recommending associated user based on interactions with multimedia processes
CN104281372A (en) Information processing method and device
WO2022022566A1 (en) Graphic code identification method and apparatus and electronic device
CN112612391B (en) Message processing method and device and electronic equipment
CN109656444B (en) List positioning method, device, equipment and storage medium
CN104778621A (en) Realizing method of photo taking-and-sell business, client side and server side
WO2021017853A1 (en) Method for recommending operation sequence, terminal, and computer readable medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN111884908A (en) Contact person identification display method and device and electronic equipment
CN112699363A (en) Graphic code identification method and device and electronic equipment
CN113220178A (en) Application program control method and device
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN114827068A (en) Message sending method and device, electronic equipment and readable storage medium
CN113836089A (en) Application program display method and device, electronic equipment and readable storage medium
CN114489418A (en) Message processing method, message processing device and electronic equipment
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113010248A (en) Operation guiding method and device and electronic equipment
CN112486387A (en) Application program control method and device
CN112269504A (en) Information display method and device and electronic equipment
WO2022237877A1 (en) Information processing method and apparatus, and electronic device
CN114090883A (en) Service account processing method and device, electronic equipment and storage medium
CN113821294A (en) Two-dimensional code scanning method and device, electronic equipment and storage medium
US20210042716A1 (en) Data processing methods, apparatuses, and terminal devices
CN113807831A (en) Payment 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