QR code scanning method, device, electronic device and storage medium

By displaying and receiving controls input by the user, and performing target operations based on the interface associated with the QR code, it solves the problem of complex operations in the existing QR code scanning method and achieves a simpler and faster user operation experience.

CN113821294BActive Publication Date: 2024-08-23VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111124343.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-08-23
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

The existing QR code scanning method is complicated to operate. Users need to scan the QR code and click on interface controls in multiple steps when making payments, unfollowing public accounts, etc., resulting in inconvenient operations.

Method used

By displaying the first control, the second control and the third control, user input is received, and the target operation is performed based on the interface associated with the target control and the QR code, simplifying the operation process and avoiding the steps of scanning the QR code and clicking on the control.

Benefits of technology

It realizes the simplification and rapid completion of operations, improves the convenience of user operations, reduces the number of steps, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821294B
    Figure CN113821294B
Patent Text Reader

Abstract

The present application discloses a two-dimensional code scanning method, device, electronic device and storage medium, belonging to the field of computer technology. Among them, the two-dimensional code scanning method includes: 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, and the third control is associated with a target operation, 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 is at least one of the first control and the second control; in response to the first input, executing a target operation associated with the third control based on the two-dimensional code associated with the target control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a two-dimensional code scanning method, device, electronic device and storage medium. Background Art

[0002] Two-dimensional bar code / QR code (2-dimensional bar code) uses certain specific geometric shapes to record data symbol information in black and white distributed in a plane (two-dimensional direction) according to a certain pattern; in the compilation of the code, it cleverly uses the concept of "0" and "1" bit streams that constitute the basis of the internal logic of the computer, and uses several geometric shapes corresponding to the binary system to represent textual numerical information, which is automatically read by image input devices or photoelectric scanning devices to realize automatic information processing.

[0003] Currently, merchants often require users to scan QR codes through terminals to complete corresponding operations, but the operation method is relatively complicated and inconvenient for users.

[0004] For example, only after following a public account can one use services such as ordering and checking out provided by the public account. After the user checks out and leaves, the public account will push various messages. If the user does not want to receive the aforementioned pushed messages, he or she needs to open the corresponding application (Application, App) to cancel the public account and no longer receive various messages pushed by the public account, which is a complicated operation.

[0005] For another example, for merchants where users frequently shop, users need to scan a QR code through a terminal and enter a payment interface before completing payment each time. Summary of the invention

[0006] The purpose of the embodiments of the present application is to provide a two-dimensional code scanning method, device, electronic device and storage medium, which can solve the problem of inconvenient user operation.

[0007] In a first aspect, an embodiment of the present application provides a two-dimensional code scanning method, the method comprising:

[0008] Display a first control, a second control, and a third control, wherein the first control is associated with a first QR code, the second control is associated with a second QR code, and the third control is associated with a target operation, wherein the target operation is determined based on a first interface associated with the first QR code and a second interface associated with the second QR code;

[0009] 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;

[0010] In response to the first input, a target operation associated with the third control is performed based on the QR code associated with the target control.

[0011] In a second aspect, an embodiment of the present application provides a two-dimensional code scanning device, the device comprising:

[0012] A display module, used to display 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, and the third control is associated with a target operation, wherein 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;

[0013] An input module, configured to receive a first input to a target control and a third control, wherein the target control is at least one of the first control and the second control;

[0014] An execution module is used to execute a target operation associated with the third control based on the QR code associated with the target control in response to the first input.

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

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

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

[0018] In an embodiment of the present application, based on the association between the target control and the QR code and the association between the target operation and the third control, in response to the first input to the target control and the third control, the target operation associated with the third control is executed. There is no need to scan the QR code and click the control in the interface associated with the QR code to trigger the execution of the target operation. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a two-dimensional code scanning method provided in an embodiment of the present application;

[0020] Figure 2is a schematic diagram of an interface displaying a first control, a second control, and a third control provided in an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an interface displaying a first control, a second control, and a third control provided in an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an interface for scanning a first QR code provided in an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a fourth interface provided in an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of a display interface of target information provided in an embodiment of the present application;

[0025] Figure 7 It is a structural schematic diagram of a two-dimensional code scanning device provided in an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0027] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

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

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

[0030] The following, in conjunction with the accompanying drawings, describes in detail the two-dimensional code scanning method, device, electronic device and storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0031] Figure 1 2 is a flow chart of the two-dimensional code scanning method provided in the embodiment of the present application. Figure 1 The two-dimensional code scanning method provided by the embodiment of the present application is described. Figure 1 As shown, the method includes:

[0032] Step 101, display a first control, a second control and a third control, the first control is associated with a first QR code, the second control is associated with a second QR code, and the third control is associated with a target operation, and the target operation is determined based on a first interface associated with the first QR code and a second interface associated with the second QR code.

[0033] Optionally, the executor of the two-dimensional code scanning method provided in the embodiment of the present application is a two-dimensional code scanning device.

[0034] The two-dimensional code scanning device can be implemented in various forms. For example, the two-dimensional code scanning device described in the embodiment of the present application may include mobile terminals such as mobile phones, smart phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, smart bracelets, smart hands, digital cameras, etc., and fixed terminals such as desktop computers, etc. Below, it is assumed that the two-dimensional code scanning device is a mobile terminal. However, it will be understood by those skilled in the art that, in addition to components specifically for mobile purposes, the construction according to the embodiment of the present application can also be applied to fixed-type terminals.

[0035] The first control, the second control, and the third control may be displayed in the target interface.

[0036] Figure 2 A target interface is shown. The first control 201 is associated with a first QR code, which is the QR code of merchant A; the second control 202 is associated with a second QR code, which is the QR code of merchant B; the third control includes a payment button 204 and an input box 205. It can be understood that Figure 2 The control 203 in the figure can also serve as the first control 201 or the second control 202.

[0037] Figure 3 Another target interface is shown. Figure 3In the target interface shown, 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 "takeaway ordering". In the first group of controls, the first control and the second control can be any one of controls 301-304. The first control and the second control are different, and the third control can be control 305. The function type corresponding to the second group of controls is "recharge payment". In the second group of controls, the first control can be control 306, the second control can be control 307, and the third control can be control 308.

[0038] The first control is associated with the first QR code, and specific ways of association include at least one of the following: the first control is associated with the first QR code, the first control is associated with the first interface corresponding to the first QR code, and the first control is associated with a control in the interface corresponding to the first QR code.

[0039] The second control is associated with the second QR code, and the specific manner of association includes at least one of the following: the second control is associated with the second QR code, the second control is associated with the second interface corresponding to the second QR code, and the second control is associated with the control in the interface corresponding to the second QR code.

[0040] Both the first QR code and the second QR code can be QR codes used by the merchant to provide users with at least one of the functions of ordering, information push, information viewing and payment.

[0041] The third control is associated with a target operation. Based on an input to the third control, the target operation can be executed.

[0042] The target operation may include: at least one of: payment, unfollowing the target public account, viewing target information, and querying target information.

[0043] The target operation may be determined based on the function type of each control in the first interface associated with the first QR code and the function type of each control in the second interface associated with the second QR code.

[0044] Optionally, operations corresponding to controls with similar functional types in the first interface and the second interface may be determined as target operations.

[0045] Exemplarily, when the first interface includes controls for payment and the second interface includes controls for payment, the target operation can be determined as payment; when the first interface includes controls for querying electricity bills and the second interface includes controls for querying phone bills, the target operation can be determined as query.

[0046] Step 102: 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.

[0047] Optionally, based on the target interface, the user can select at least one of the first control and the second control as the target control and input a first input. The first input is an input to the target control and the third control.

[0048] The first input may be touch input, voice input, gesture input or key input, or may be a first operation.

[0049] For example, for Figure 2 In the target interface shown, the first input may include the operations of clicking the first control 201 , entering the payment amount “9 yuan” in the input box 205 , and clicking the payment button 204 .

[0050] It is understood that the above-listed inputs are exemplary, that is, the present application embodiment includes but is not limited to the above-listed inputs. In actual implementation, the input may also include any other possible inputs, which may be determined according to actual use requirements, and the present application embodiment does not limit this.

[0051] Step 103: In response to the first input, execute a target operation associated with a third control based on the QR code associated with the target control.

[0052] Optionally, after receiving the first input, the QR code scanning device responds to the first input, and simplifies the operation that may originally require several steps into a one-step quick processing through a "one-click trigger" method, and triggers the execution of the target operation based on the QR code associated with the target control.

[0053] Exemplarily, for a scenario where the first input includes clicking the first control 201, entering the payment amount "9 yuan" in the input box 205, and clicking the payment button 204, the target operation of paying 9 yuan to merchant A can be performed based on the first QR code.

[0054] The embodiment of the present application is based on the association between the target control and the QR code and the association between the target operation and the third control. In response to the first input to the target control and the third control, the target operation associated with the third control is executed. There is no need to scan the QR code and click the control in the interface associated with the QR code to trigger the execution of the target operation. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation.

[0055] Optionally, before displaying the first control, the second control, and the third control, the method further includes: scanning a first QR code and displaying a first interface associated with the first QR code.

[0056] Optionally, the two-dimensional code scanning device may include at least one camera. The camera may be used to scan the two-dimensional code. The user may call the camera based on a camera program installed on the two-dimensional code scanning device or a target application (Application, App) to scan the first two-dimensional code.

[0057] Optionally, the target application may be an instant messaging, payment or online shopping application.

[0058] After scanning the first QR code, the first QR code is parsed and a first interface is displayed. The first interface is associated with the first QR code.

[0059] Figure 4 is a schematic diagram of an interface for scanning a first QR code provided in an embodiment of the present application. Figure 4 As shown, the interface is the third interface, and the interface includes a control 401. The control 401 is used for the user to select whether to turn on the smart code scanning function and perform the steps of smart scanning of the QR code.

[0060] Optionally, the user can input a second input based on the control 401 to start the step of performing intelligent scanning of the QR code.

[0061] The first input may be touch input, voice input, gesture input or key input, or may be a first operation.

[0062] For example, the first input may be an operation of clicking the control 401 to set the switch to a position indicating "on" (such as the right side) to start the step of executing the smart scanning of the QR code.

[0063] It is understood that the above-listed inputs are exemplary, that is, the present application embodiment includes but is not limited to the above-listed inputs. In actual implementation, the input may also include any other possible inputs, which may be determined according to actual use requirements, and the present application embodiment does not limit this.

[0064] The control information in the first interface is obtained, the first control is determined according to the control information, and the first control is associated with the controls in the first interface.

[0065] Optionally, after the first interface is displayed, each control in the first interface may be parsed to obtain control information.

[0066] The control information in the first interface includes information about each control in the first interface. The control information may include: information such as the position of the control in the first interface.

[0067] After acquiring the control information in the first interface, the information of the merchant corresponding to the first QR code may be acquired; based on the information of the merchant corresponding to the first QR code, a first control is generated in the target interface.

[0068] After acquiring the control information in the first interface, the first control can be associated with at least one control in the first interface, so that when the target control includes the first control, the operation associated with the control in the first interface can be executed in response to the first input.

[0069] Optionally, users can Figure 4 In the control 401 in the embodiment, the third input is input, and the step of performing intelligent scanning of the QR code is not started. When the step of performing intelligent scanning of the QR code is not started, the process of the QR code scanning device scanning the target QR code in response to the third input and performing processing based on the scanning result of the target QR code is similar to the process of scanning the QR code and performing processing based on the scanning result of the QR code in the usual manner, and will not be described in detail here.

[0070] The third input may be touch input, voice input, gesture input or key input, or may be a third operation.

[0071] For example, the third input may be an operation of clicking the control 401 to set the switch to a position indicating "off" (such as the left side) without starting the step of executing the smart scanning of the QR code.

[0072] It is understood that the above-listed inputs are exemplary, that is, the present application embodiment includes but is not limited to the above-listed inputs. In actual implementation, the input may also include any other possible inputs, which may be determined according to actual use requirements, and the present application embodiment does not limit this.

[0073] It is understandable that before step 101, the following steps are also included:

[0074] Scan the second QR code to display the first interface associated with the second QR code;

[0075] The control information in the second interface is obtained, the second control is determined according to the control information, and the second control is associated with the control in the second interface.

[0076] The embodiment of the present application obtains control information in the first interface, determines the first control according to the control information, and associates the first control with the controls in the first interface, so that based on the association between the first control and the controls in the first interface, in response to the first input to the first control and the third control, the target operation associated with the third control is executed. There is no need to scan the first QR code and click the control in the first interface to trigger the execution of the target operation. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation.

[0077] Optionally, before displaying the first control, the second control and the third control, the method includes: acquiring, according to the first interface and the second interface, function types of controls in the first interface and the second interface and operations associated with the controls.

[0078] Optionally, by parsing the first interface, the function type of each control in the first interface and the operation associated with the control can also be obtained.

[0079] By parsing the second interface, the function type of each control in the second interface and the operation associated with the control can also be obtained.

[0080] Obtain controls in the first interface and the second interface whose function type similarity is greater than a preset threshold, and generate a third control associated with the target operation.

[0081] Optionally, for any control in the first interface and any control in the second interface, similarity of function types of the two controls is obtained.

[0082] Optionally, the similarity between the functional types of two controls may be represented by the similarity between the semantics of the functional types of the two controls.

[0083] After obtaining the similarity of the functional types of the two controls, the similarity of the functional types of the two controls is compared with a preset threshold.

[0084] The preset threshold value can be preset as needed. For example, the preset threshold value can be 85%. The specific value of the preset threshold value is not specifically limited in the embodiment of the present application.

[0085] When the similarity of the function types of the above two controls is greater than a preset threshold, it means that the operations associated with the above two controls are basically the same, and a third control can be generated in the target interface based on the function types of the above two controls. The operations associated with the third control are the operations associated with the above two controls.

[0086] The embodiment of the present application obtains the function types of controls in the first interface and the second interface and the operations associated with the controls, obtains the controls in the first interface and the second interface whose function types have similarities greater than a preset threshold, and generates a third control associated with the target operation, so that the target operation associated with the third control can be executed in response to the first input to the first control and the third control. The execution of the target operation can be triggered without scanning the first QR code and clicking the control in the first interface. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation.

[0087] Optionally, obtaining control information in the first interface includes: splitting the first interface by identifying content of text or pictures corresponding to each control in the first interface, and obtaining information of each control in the first interface.

[0088] Optionally, the text or image content corresponding to each control in the first interface may be identified through OCR (Optical Character Recognition) or image recognition technology, and the first interface may be split to distinguish different controls.

[0089] The above controls may include buttons, input boxes, drop-down menus, etc. at various locations in the first interface.

[0090] The information of each control may also be obtained based on the recognition result obtained by OCR or image recognition technology.

[0091] Optionally, after acquiring information of each control in the first interface, the fourth interface may be displayed based on information of the fourth control in the first interface.

[0092] like Figure 5 In the fourth interface shown, when the operation associated with a fourth control 501 is to view nearby stores, a list of stores near a restaurant can be displayed in the first sub-interface 502 of the fourth interface based on the information of the fourth control; and when the operation associated with another fourth control 503 is to view new products, information about the restaurant's new products can be displayed in the second sub-interface 504 of the fourth interface based on the information of the fourth control 503.

[0093] 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 will not be repeated here.

[0094] The embodiment of the present application splits the first interface by identifying the content of text or pictures corresponding to each control in the first interface, and obtains information of each control in the first interface, so as to obtain control information in the first interface more quickly and accurately.

[0095] Optionally, after obtaining information of the first control in the first interface and associating the first control with the first QR code, the method further includes: when the first interface is the interface of the target public account and the user completes the payment, executing an operation of unfollowing the target public account.

[0096] Optionally, when the first interface is the interface of the target public account, the user can view dish information, order food, view push information and make payments based on this interface.

[0097] After the user can order food based on the first interface, the user can make payment based on the payment interface. The operation associated with the fifth control in the first interface is the operation of unfollowing the target public account. After the payment is completed, the QR code scanning device can automatically execute the operation of unfollowing the target public account based on the information of the fifth control in the first interface through the association between the information of the fifth control and the operation associated with the fifth control; it can also initiate the process of executing the operation of unfollowing the target public account. When the user confirms the execution of the operation of unfollowing the target public account by operating the QR code scanning device, the operation of unfollowing the target public account is executed based on the information of the fifth control through the association between the information of the fifth control and the operation associated with the fifth control.

[0098] Based on the information of the fifth control, an operation of unfollowing the target public account is performed, including: displaying target information for prompting the user to confirm whether to perform the operation of unfollowing the target public account.

[0099] Optionally, the two-dimensional code scanning device can display on the display screen Figure 6 The target information 601 shown prompts the user to confirm whether to execute the target operation.

[0100] A fourth input from the user is received.

[0101] Optionally, when the user does not want to continue to follow the target public account, the user may input a fourth input into the QR code scanning device.

[0102] The fourth input is used to determine the operation of unfollowing the target public account.

[0103] The fourth input may be touch input, voice input, gesture input or key input, or may be a fourth operation.

[0104] For example, the fourth input may be a click such as Figure 6 The operation of the control 602 in the interface shown determines to execute the operation of unfollowing the target public account.

[0105] It is understood that the above-listed inputs are exemplary, that is, the present application embodiment includes but is not limited to the above-listed inputs. In actual implementation, the input may also include any other possible inputs, which may be determined according to actual use requirements, and the present application embodiment does not limit this.

[0106] In response to the fourth input, based on the information of the fifth control, an operation of unfollowing the target public account is performed.

[0107] Optionally, after receiving the fourth input, the QR code scanning device responds to the fourth input, and based on the information of the fifth control, performs an operation of unfollowing the target public account by associating the information of the fifth control with the operation associated with the fifth control.

[0108] Optionally, if the user wishes to continue to follow the target public account, the user may input a fifth input into the QR code scanning device.

[0109] The fifth input is used to determine the target operation to be executed.

[0110] The fifth input may be touch input, voice input, gesture input or key input, or may be a fifth operation.

[0111] For example, the fifth input may be a click such as Figure 6 The operation of the control 603 in the interface shown cancels the execution of the target operation.

[0112] It is understood that the above-listed inputs are exemplary, that is, the present application embodiment includes but is not limited to the above-listed inputs. In actual implementation, the input may also include any other possible inputs, which may be determined according to actual use requirements, and the present application embodiment does not limit this.

[0113] In the embodiment of the present application, when the first interface is the interface of the target public account and the user completes the payment, the operation of unfollowing the target public account is performed based on the information of the fifth control, so that the public account can be unfollowed more conveniently and efficiently.

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

[0115] Figure 7 is a schematic diagram of the structure of a two-dimensional code scanning device provided in an embodiment of the present application. Figure 7 As shown, the device includes a display module 701, an input module 702 and an execution module 703, wherein:

[0116] Display module 701, used to display a first control, a second control and a third control, the first control is associated with a first QR code, the second control is associated with a second QR 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 QR code and a second interface associated with the second QR code;

[0117] An input module 702, configured to receive a first input to a target control and a third control, wherein the target control is at least one of the first control and the second control;

[0118] The execution module 703 is used to execute the target operation associated with the third control based on the QR code associated with the target control in response to the first input.

[0119] Optionally, the display module 701, the input module 702 and the execution module 703 are electrically connected in sequence.

[0120] The display module 701 is used to display the target interface. The target interface includes a first control, a second control and a third control.

[0121] The input module 702 is used to receive a first input. The first input may be an input of a user to a target control and a third control. The user may select at least one of the first control and the second control as a target control.

[0122] After the input module 702 receives the first input, the execution module 703 is used to respond to the first input, and simplifies the operation that may originally require several steps into a one-step quick processing through a "one-click trigger" method, and triggers the execution of the target operation based on the QR code associated with the target control.

[0123] Optionally, the two-dimensional code scanning device may further include:

[0124] A scanning module, used for scanning the first QR code and displaying a first interface associated with the first QR code;

[0125] The association module is used to obtain control information in the first interface, determine the first control according to the control information, and associate the first control with the controls in the first interface.

[0126] Optionally, the two-dimensional code scanning device may further include:

[0127] An acquisition module, used for acquiring, according to the first interface and the second interface, function types of controls in the first interface and the second interface and operations associated with the controls;

[0128] A generation module is used to obtain controls in the first interface and the second interface whose function type similarity is greater than a preset threshold, and generate a third control associated with the target operation.

[0129] Optionally, the association module is specifically used to split the first interface by identifying the content of text or pictures corresponding to each control in the first interface, and obtain information of each control in the first interface.

[0130] Optionally, the two-dimensional code scanning device may further include:

[0131] The unfollow module is used to execute the operation of unfollowing the target public account when the first interface is the interface of the target public account and the user completes the payment.

[0132] The embodiment of the present application is based on the association between the target control and the QR code and the association between the target operation and the third control. In response to the first input to the target control and the third control, the target operation associated with the third control is executed. There is no need to scan the QR code and click the control in the interface associated with the QR code to trigger the execution of the target operation. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation.

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

[0134] The 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, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

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

[0136] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned two-dimensional code scanning method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0138] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.

[0139] 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 and other components.

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

[0141] Among them, the display unit 906 is used to display the first control, the second control and the third control, the first control is associated with the first QR code, the second control is associated with the second QR code, and the third control is associated with the target operation, and the target operation is determined based on the first interface associated with the first QR code and the second interface associated with the second QR code.

[0142] The user input unit 907 is used 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 processor 910 is used to execute a target operation associated with the third control based on a QR code associated with the target control in response to the first input.

[0143] The embodiment of the present application is based on the association between the target control and the QR code and the association between the target operation and the third control. In response to the first input to the target control and the third control, the target operation associated with the third control is executed. There is no need to scan the QR code and click the control in the interface associated with the QR code to trigger the execution of the target operation. The execution of the target operation is simpler, faster, and more convenient, which can improve the convenience of user operation.

[0144] Optionally, the processor 910 is further configured to scan the first QR code and display a first interface associated with the first QR code;

[0145] The processor 910 is further configured to obtain control information in the first interface, determine a first control according to the control information, and associate the first control with controls in the first interface.

[0146] Optionally, the processor 910 is further configured to obtain, according to the first interface and the second interface, function types of controls in the first interface and the second interface and operations associated with the controls;

[0147] The processor 910 is further configured to obtain controls in the first interface and the second interface whose function type similarity is greater than a preset threshold, and generate a third control associated with the target operation.

[0148] Optionally, the processor 910 is further configured to split the first interface by identifying the contents of text or pictures corresponding to each control in the first interface, and obtain information of each control in the first interface.

[0149] Optionally, the processor 910 is further configured to, when the first interface is the interface of the target public account and the user completes the payment, execute an operation of unfollowing the target public account.

[0150] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 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, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called 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, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to target applications and operating systems. The processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and target applications, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 910.

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

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

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

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

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

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

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

Claims

1. A two-dimensional code scanning method, characterized in that: include: Display a first control, a second control, and a third control, wherein the first control is associated with a first QR code, the second control is associated with a second QR code, and the third control is associated with a target operation, wherein the target operation is determined based on a first interface associated with the first QR code and a second interface associated with the second QR 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, executing a target operation associated with the third control based on the QR code associated with the target control; Before displaying the first control, the second control, and the third control, the method includes: According to the first interface and the second interface, acquiring function types of controls in the first interface and the second interface and operations associated with the controls; Obtain controls in the first interface and the second interface whose function type similarity is greater than a preset threshold, and generate the third control associated with the target operation.

2. The two-dimensional code scanning method according to claim 1, characterized in that: Before displaying the first control, the second control, and the third control, the method further includes: Scanning a first QR code to display a first interface associated with the first QR code; The control information in the first interface is obtained, the first control is determined according to the control information, and the first control is associated with the controls in the first interface.

3. The two-dimensional code scanning method according to claim 2, characterized in that: The acquiring control information in the first interface includes: By identifying the contents of text or pictures corresponding to each control in the first interface, the first interface is split to obtain information of each control in the first interface.

4. The two-dimensional code scanning method according to claim 2, characterized in that: After acquiring information of the first control in the first interface and associating the first control with the first QR code, the method further includes: When the first interface is the interface of the target public account and the user completes the payment, an operation of unfollowing the target public account is performed.

5. A two-dimensional code scanning device, characterized in that: include: A display module, used to display 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, and the third control is associated with a target operation, wherein 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, configured to receive a first input to a target control and a third control, wherein the target control is at least one of the first control and the second control; an execution module, configured to execute, in response to the first input, a target operation associated with the third control based on the QR code associated with the target control; The device also includes: An acquisition module, used for acquiring, according to the first interface and the second interface, function types of controls in the first interface and the second interface and operations associated with the controls; A generation module is used to obtain controls whose function type similarity between the first interface and the second interface is greater than a preset threshold, and generate the third control associated with the target operation.

6. The two-dimensional code scanning device according to claim 5, characterized in that: The device also includes: A scanning module, used for scanning a first two-dimensional code and displaying a first interface associated with the first two-dimensional code; An associating module is used to obtain control information in the first interface, determine the first control according to the control information, and associate the first control with controls in the first interface.

7. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the two-dimensional code scanning method as described in any one of claims 1 to 4.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the two-dimensional code scanning method as described in any one of claims 1-4 are implemented.