Image code recognition method and device

The first electronic device receives and identifies the image code sent by the second electronic device, and generates feedback information to switch the image code when the identification fails. This solves the problem of complex image code recognition in the existing technology, achieves fast and successful image code recognition, and improves the user experience.

CN113822090BActive Publication Date: 2025-09-19VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111139399.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2025-09-19
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

In the prior art, image code recognition operations are complex and cannot be completed automatically and quickly, resulting in a poor user experience.

Method used

The first electronic device receives the image code sent by the second electronic device, and generates feedback information when recognition fails, triggering the second electronic device to switch the image code until recognition is successful.

Benefits of technology

It simplifies the image code recognition operation between different electronic devices, improves the recognition success rate, realizes fast image code recognition, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113822090B_ABST
    Figure CN113822090B_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for image code recognition, belonging to the field of communications technology. The method comprises: receiving a first image code sent by a second electronic device; if recognition of the first image code fails, sending first feedback information to the second electronic device; wherein the first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, where the second image code and the first image code include the same target information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to an image code recognition method and device. Background Art

[0002] When using certain applications on a computer, users need to use their mobile phones for verification. If the verification method is an image code, the user needs to pick up the phone and select the corresponding application, and then use the scanning function of the application to complete the image code recognition. For example, if a user logs in to a ticket purchase website through a computer to purchase a ticket, when the payment page appears, the user needs to scan the payment image code on the computer display interface with the mobile phone to complete the payment account login and payment. The image code recognition operation in the existing technical solutions is complicated and cannot automatically and quickly complete the image code recognition, resulting in a poor user experience. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a method and device for image code recognition, which can solve the problem of complex image code recognition operations.

[0004] In a first aspect, an embodiment of the present application provides an image code recognition method, the method comprising:

[0005] receiving a first image code sent by a second electronic device;

[0006] If recognition of the first image code fails, sending first feedback information to the second electronic device;

[0007] The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information.

[0008] In a second aspect, an embodiment of the present application provides an image code recognition method, the method comprising:

[0009] When the first image code is displayed, sending the first image code to the first electronic device;

[0010] upon receiving first feedback information sent by the first electronic device, switching the first image code to a second image code;

[0011] sending the second image code to the first electronic device;

[0012] The second image code and the first image code include the same target information.

[0013] In a third aspect, an embodiment of the present application provides an image code recognition device, the device comprising:

[0014] A first receiving module, configured to receive a first image code sent by a second electronic device;

[0015] a first sending module, configured to send first feedback information to the second electronic device when recognition of the first image code fails;

[0016] The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information.

[0017] In a fourth aspect, an embodiment of the present application provides an image code recognition device, the device comprising:

[0018] a third sending module, configured to send the first image code to the first electronic device when the first image code is displayed;

[0019] a first switching module, configured to switch the first image code to a second image code upon receiving first feedback information sent by the first electronic device;

[0020] a fourth sending module, configured to send the second image code to the first electronic device;

[0021] The second image code and the first image code include the same target information.

[0022] In a fifth aspect, an embodiment of the present application provides an electronic device comprising 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 or the second aspect.

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

[0024] In a seventh aspect, an embodiment of the present application 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 method described in the first aspect.

[0025] In an embodiment of the present application, a first image code sent by a second electronic device is received by a first electronic device, so that a user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and in the event that the first image code recognition fails, the first electronic device generates first feedback information and sends the first feedback information to the second electronic device, so that the second electronic device can switch the image code according to the first feedback information and send it to the first electronic device, thereby improving the recognition success rate; in addition, the image code recognition operation between different electronic devices can be simplified, thereby realizing rapid recognition of image codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is one of the flow charts of the image code recognition method provided in the embodiment of the present application;

[0027] Figure 2 This is the second flow chart of the image code recognition method provided in the embodiment of the present application;

[0028] Figure 3 This is the third flow chart of the image code recognition method provided by the embodiment of the present application;

[0029] Figure 4 This is one of the structural diagrams of the image code recognition device provided in the embodiment of the present application;

[0030] Figure 5 This is the second structural diagram of the image code recognition device provided in the embodiment of the present application;

[0031] Figure 6 A schematic diagram of the structure of an electronic device for implementing an embodiment of the present application;

[0032] Figure 7 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0034] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0035] The image code recognition method and device provided by the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0036] Figure 1 This is one of the flow charts of the image code recognition method provided in the embodiment of the present application. Figure 1 , an embodiment of the present application provides an image code recognition method, which is applied to a first electronic device and may include:

[0037] Step 110: Receive a first image code sent by a second electronic device;

[0038] Step 120: If the first image code recognition fails, send first feedback information to the second electronic device;

[0039] The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information.

[0040] The execution subject of the image code recognition method provided in the embodiment of the present application can be an electronic device, such as a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic equipment, wearable device, personal computer (PC), television, etc.

[0041] The following uses a mobile phone as an example to implement the image code recognition method provided in the embodiment of the present application, and describes the technical solution of the present application in detail.

[0042] Optionally, in step 110, the first electronic device is a mobile phone, and the second electronic device is a computer. The first electronic device and the second electronic device are first connected in communication. The communication connection may be via a local area network, a universal serial bus (USB), a wireless network, or a peer-to-peer (P2P) network, and is not specifically limited in this application. When the mobile phone and the computer establish a communication connection, the mobile phone receives the first image code sent by the computer.

[0043] Optionally, the current state of the mobile phone can be determined first. If it is in the unlocked state, the image code recognition operation is performed directly. If it is in the locked screen state, the state of waiting for the user to unlock is entered, and the image code recognition operation is performed after the user unlocks. The first image code can be a coded image used to log in to the application of the second electronic device, a coded image used by the application in the second electronic device to verify the user's identity information, or a coded image used for wireless payment, which is not specifically limited in this application.

[0044] Optionally, in step 120, the mobile phone starts the image code recognition software to automatically recognize the first image code. The image code recognition software can be a scanning control that comes with the mobile phone, or any application in the mobile phone that has the function of scanning image codes, and this application does not make specific limitations. Since the mobile phone cannot pre-set the method, type or format for generating the first image code, the mobile phone may fail to recognize the first image code when receiving it. That is, when the mobile phone cannot recognize the first image code, the mobile phone will record the recognition failure event, generate a first feedback message, and send the first feedback message to the computer. The first feedback message may include: the current status information that the mobile phone cannot recognize the first image code, the target information type corresponding to the first image code, and the application information that the current mobile phone can recognize the target information type, etc. The computer will regenerate a second image code based on the first feedback information, and switch the first image code on the display interface to the second image code.

[0045] Optionally, the first image code and the second image code correspond to the same target information. It can be understood that the first image code and the second image code are different coded images. When the above two image codes are successfully recognized, the recognition results of the two can correspond to the same target operation, that is, the operations indicated by the two image codes are the same. The terminal can successfully recognize the first image code and the second image code through the same or different applications. The target operations corresponding to the obtained target information can all be operations with the same payment amount and payment object, or operations with logging into the same application, or operations with verifying the same user identity information. This application does not make specific limitations on target information or target operations. For example: the first image code and the second image code both indicate a payment of X yuan to Merchant A. The first image code further indicates that the payment operation is performed through Application 1, and the second image code further indicates that the payment operation is performed through Application 2.

[0046] The image code recognition method provided in the embodiment of the present application receives the first image code sent by the second electronic device through the first electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and in the event that the first image code recognition fails, the first electronic device generates first feedback information and sends the first feedback information to the second electronic device, so that the second electronic device can switch the image code according to the first feedback information and send it to the first electronic device, thereby improving the recognition success rate; in addition, it can also simplify the image code recognition operation between different electronic devices, and realize rapid recognition of image codes.

[0047] In one embodiment, the first feedback information includes: target recognition application information;

[0048] The target recognition application is associated with the second image code.

[0049] Optionally, if the first image code fails to be recognized, the mobile phone generates first feedback information and sends the first feedback information to the computer. The first feedback information allows the computer to obtain the following information: status information corresponding to the current mobile phone's inability to recognize the first image code, the target information type corresponding to the first image code, and application information that the current mobile phone can use to recognize the target information type. It is understandable that the application information that the current mobile phone can use to recognize the target information type here is the target recognition application information. For example, if the target information type corresponding to the first image code is a payment type, the target recognition application information may include application information that the mobile phone can use to perform payment operations. The target recognition application information may include the type of the target recognition application, the operation information of the target recognition application, or the identification information of the target recognition application.

[0050] Optionally, there are two situations in which the first electronic device cannot recognize the first image code:

[0051] 1. The first image code times out or the format of the first image code is not compatible with the recognition operation of the first electronic device;

[0052] 2. The first electronic device recognizes that the application type of the first image code does not match.

[0053] According to the above two situations, the first feedback information may include identification information of the same target recognition application or different target recognition applications.

[0054] For example, if the first image code is a payment image code, payment application A can directly recognize the first image code. However, if the first image code times out and the first electronic device cannot recognize the first image code through payment application A, the first feedback information generated by the first electronic device may include the identification information of payment application A, so that the second electronic device can regenerate the corresponding second image code based on the identification information of payment application A.

[0055] Alternatively, the first image code is a payment image code, and the current recognition application used by the first electronic device cannot recognize the payment image code. That is, if the application type that recognizes the first image code does not match, the application that can recognize the payment image code is determined to be payment application B or payment application C. The first feedback information generated by the first electronic device may include the identification information of payment application B or the identification information of payment application C, so that the second electronic device generates a corresponding second image code based on the identification information of payment application B or the identification information of payment application C.

[0056] Optionally, the second image code may be an image code corresponding to the target recognition application, or may be an image code that can be successfully recognized by the target recognition application.

[0057] The image code recognition method provided in the embodiment of the present application generates first feedback information through a first electronic device and sends it to a second electronic device so that the second electronic device can switch the image code; and the first feedback information includes target recognition application information, so that the target recognition application in the first electronic device can successfully recognize the second image code, thereby improving the image code recognition accuracy and improving the user experience.

[0058] In one embodiment, after sending the first feedback information to the second electronic device, the method further includes:

[0059] Upon receiving the second image code sent by the second electronic device, identifying the second image code and sending second feedback information to the second electronic device;

[0060] The second feedback information is used to indicate that the second image code is successfully recognized.

[0061] Optionally, the mobile phone receives the second image code sent by the computer and scans the second image code. Specifically, the mobile phone re-activates the image code recognition application to automatically recognize the second image code. The image code recognition application may be a built-in scanning application on the mobile phone or any other application with a scanning function on the mobile phone, and this application does not specifically limit this.

[0062] Optionally, based on the recognition of the second image code, second feedback information is generated and sent to the computer. Since the second image code is generated by the computer based on the first feedback information, i.e., determined based on the target recognition application information of the mobile phone, the second image code is an image code that the current mobile phone can recognize. The second feedback information is used to indicate that the mobile phone has successfully recognized the second image code.

[0063] The image code recognition method provided in the embodiment of the present application receives a second image code sent by a second electronic device and is able to recognize the second image code, thereby achieving rapid image code recognition and improving the success rate of image code recognition.

[0064] In one embodiment, after receiving the first image code sent by the second electronic device, the method further includes:

[0065] If the first image code recognition fails, displaying a first interface;

[0066] The first interface is an installation interface of a first application, and the first application is an application that can recognize a first image code.

[0067] Optionally, if the first image code fails to be recognized, the mobile phone will determine a target recognition application that supports recognition based on the acquired target information. If the target recognition application is currently available on the mobile phone, the mobile phone will directly access the target recognition application and open the target information corresponding to the first image code. If the target recognition application is not currently available on the mobile phone, a prompt will pop up to download the target application, or the mobile phone will directly access the download page of the mobile app store. After the user confirms the download of the target application, the target operation corresponding to the first image code can be executed based on the target information acquired by the first image code recognition.

[0068] The image code recognition method provided in the embodiment of the present application automatically recognizes the target recognition application of the first image code through the first electronic device, and downloads the target recognition application according to the application management status of the first electronic device, which can ensure that the first image code is quickly recognized and the target operation can be successfully executed, thereby improving the efficiency of image code recognition.

[0069] In one embodiment, the image code recognition method further includes:

[0070] When the distance between the first electronic device and the second electronic device exceeds a preset distance threshold, the first electronic device receives the first image code sent by the second electronic device.

[0071] Optionally, when a communication connection is established between a mobile phone and a computer, within a preset range, the user can either manually select a recognition application on the mobile phone to recognize the image code on the computer display interface, or directly allow the mobile phone and computer to automatically transmit information through the communication connection. When the distance between the mobile phone and the computer exceeds a preset threshold, it is understandable that the mobile phone and the computer are far apart, and it is more troublesome to recognize the image code by scanning the code with the mobile phone. Therefore, the mobile phone and the computer can directly transmit information through the communication connection, thereby realizing the recognition of the image code on the computer without having to use the mobile phone. The preset distance threshold can be a distance value pre-set according to device parameters, and this application does not specifically limit it.

[0072] The image code recognition method provided in the embodiment of the present application can ensure long-distance transmission of image codes between terminals by enabling the first electronic device to receive the first image code sent by the second electronic device when the distance between the first electronic device and the second electronic device exceeds a preset distance threshold, thereby improving the success rate of image code recognition.

[0073] Figure 2 This is the second flow chart of the image code recognition method provided in the embodiment of the present application. Figure 2 , an embodiment of the present application provides an image code recognition method, which is applied to a second electronic device and may include:

[0074] Step 210: When the first image code is displayed, the first image code is sent to the first electronic device;

[0075] Step 220: upon receiving first feedback information sent by the first electronic device, switch the first image code to a second image code;

[0076] Step 230: Send the second image code to the first electronic device;

[0077] The second image code and the first image code include the same target information.

[0078] The execution subject of the image code recognition method provided in the embodiment of the present application can be an electronic device, such as a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic equipment, wearable device, personal computer (PC), television, etc.

[0079] The following describes the technical solution of the present application in detail by taking a computer as the execution subject to implement the image code recognition method provided in the embodiment of the present application as an example.

[0080] Optionally, in step 210, the second electronic device is a computer and the first electronic device is a mobile phone. The second electronic device is first communicatively connected to the first electronic device. The communication connection may be established through a local area network, a universal serial bus (USB), a wireless network, or a peer-to-peer network (P2P), etc., which is not specifically limited in this application. The computer and the mobile phone establish a communication connection, and when the first image code is displayed on the display interface of the computer, the first image code is sent to the mobile phone. The computer may send a screenshot of the page of the first image code to the mobile phone, or may send the first image code in a preset format to the mobile phone, which is not specifically limited in this application.

[0081] Among them, the first image code can be a coded image generated by the second electronic device based on application login, or a coded image generated by the second electronic device based on verification of user identity information, or a payment coded image generated by the second electronic device based on transaction software. This application does not make specific limitations.

[0082] Optionally, in step 220, the mobile phone may be unable to recognize the first image code because the generation method, type, or format of the first image code sent by the computer may not match the default recognition application of the mobile phone. If the first image code recognition fails, the computer will receive first feedback information sent by the mobile phone. The computer can obtain the following information through the first feedback information: status information indicating that the mobile phone cannot recognize the first image code, target information type corresponding to the first image code, or target recognition application information.

[0083] Optionally, in step 230, the computer will regenerate a second image code based on the first feedback information. That is, the computer can switch to a different second image code based on the received first feedback information. The target information included in the second image code is the same as that of the first image code. It can be understood that the first image code and the second image code are different coding graphics, and when the above two image codes are successfully identified, the identification results of the two can correspond to the same target operation. For example, the terminal can successfully identify the first image code and the second image code through the same or different applications, and the target operations corresponding to the obtained target information can all be operations for paying the same amount and the same payment object, or they can all be operations for logging into the same application, or they can all be operations for verifying the same user identity information. This application does not specifically limit the target information or target operation.

[0084] Optionally, the computer generates a second image code based on the target recognition application information in the first feedback information. The second image code may be a different image code generated by the same target recognition application or an image code generated by a different target application.

[0085] For example, if the first image code is a payment image code and the target recognition application that can directly recognize the first image code is payment application A, and if the first image code times out, the first electronic device cannot recognize the second image code through payment application A. The mobile phone will generate feedback information and send it to the computer. The first feedback information may include the identification information of payment application A, and the computer can then regenerate the second image code based on the identification information of payment application A.

[0086] The first image code is a payment image code, and the current recognition application used by the first electronic device cannot recognize the payment image code. In other words, if the application type that recognizes the first image code does not match, the feedback information may include the identification information of payment application B and payment application C, which can recognize the payment image code. The computer can then generate a second image code based on the identification information of payment application B or payment application C.

[0087] Optionally, when the computer and the mobile phone establish a communication connection, the computer sends the second image code to the mobile phone. The computer can send a screenshot of the page that generates the image code to the mobile phone, or send the image code in a preset format to the mobile phone, which is not specifically limited in this application.

[0088] The image code recognition method provided in the embodiment of the present application sends the first image code to the first electronic device through the second electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and when it is determined that the first image code recognition fails, the second electronic device receives the first feedback information sent by the first electronic device, so that the second electronic device can switch the image code according to the first feedback information and send it to the first electronic device, which can improve the flexibility of the image code recognition operation and thus improve the efficiency of image code recognition.

[0089] In one embodiment, the sending the first image code to the first electronic device includes:

[0090] When the distance between the second electronic device and the first electronic device exceeds a preset distance threshold, the first image code is sent to the first electronic device.

[0091] Optionally, when a communication connection is established between the computer and the mobile phone, within a preset range, the user can either manually select a recognition application on the mobile phone to recognize the image code on the computer display interface, or directly allow the computer and the mobile phone to automatically transmit information through communication. When the distance between the computer and the mobile phone exceeds a preset threshold, it is understandable that the mobile phone and the computer are far apart, and it is more troublesome to recognize the image code by scanning the code with the mobile phone. Therefore, the computer and the mobile phone can directly transmit information through the communication connection, thereby realizing the recognition of the image code on the computer without the need to take the mobile phone. Among them, the preset threshold can be a distance value pre-set according to the device parameters, and this application does not make any specific limitations.

[0092] The image code recognition method provided in the embodiment of the present application can ensure long-distance transmission of image codes between devices when the distance between the first electronic device and the second electronic device exceeds a preset distance threshold, thereby improving the success rate of image code recognition.

[0093] Figure 3 This is a flow chart of the third method for image code recognition provided by the embodiment of the present application; Figure 3 , an embodiment of the present application provides an image code recognition method, which may include:

[0094] Step 301: The mobile phone and the computer establish a communication connection. After the connection is established, the mobile phone and the computer can communicate.

[0095] Step 302: Generate an image code page on the computer webpage that requires mobile payment, or an image code page that requires mobile application to scan and log in.

[0096] Step 303: The computer takes a screenshot of the current page and sends the screenshot to the mobile phone via the communication connection established in step 301.

[0097] Step 304: The mobile phone receives a screenshot of the image code and determines whether the mobile phone is in a locked state. If it is unlocked, the process proceeds directly to step 305. If it is not unlocked, the process enters a waiting state for the user to unlock the phone. After the user unlocks the phone, the process proceeds directly to step 305.

[0098] Step 305: The mobile phone receives the screenshot with the image code sent by the computer and recognizes the image code.

[0099] Step 306: If the mobile phone cannot successfully recognize the image code, the process proceeds to step 307 or 308. If the mobile phone can successfully recognize the image code, the process proceeds to step 311.

[0100] Step 307: If the target recognition application is not installed on the mobile phone, a target recognition application download prompt pops up and the target recognition application is downloaded.

[0101] Step 308: If the mobile phone cannot successfully identify the image code, feedback information is generated and sent to the computer so that the computer can switch the image code.

[0102] Step 309: The computer receives the feedback information, analyzes the feedback information, and switches the image code according to the feedback information.

[0103] Step 310: Take a screenshot of the image code regenerated by the computer in step 309, and then go to step 303, where the computer sends the image code to the mobile phone again.

[0104] Step 311: If the target recognition application has been installed on the mobile phone, directly open the corresponding recognition application to log in or pay.

[0105] In one embodiment, the second electronic device can send text instructions, icon instructions or other types of image instructions to the first electronic device as needed, so that the first electronic device executes the corresponding operation instructions. For example: the user can select T shopping software in the second electronic device and generate an operation instruction of "selecting the first electronic device to open the T shopping software". The second electronic device sends the above operation instruction to the first electronic device. After receiving the operation instruction, the first electronic device determines whether there is T shopping software. If so, the first electronic device directly opens the T shopping software; if not, a prompt message is generated in the first electronic device to prompt the first electronic device to download the T shopping software.

[0106] It should be noted that the image code recognition method provided in the embodiments of the present application can be executed by an image code recognition device or a control module in the image code recognition device for executing the image code recognition method. In the embodiments of the present application, the image code recognition device provided in the embodiments of the present application is described by taking the image code recognition device executing the image code recognition method as an example.

[0107] Figure 4 This is one of the structural diagrams of the image code recognition device provided in the embodiment of the present application; Figure 4 , an embodiment of the present application provides an image code recognition device, which is applied to a first electronic device and may include:

[0108] The first receiving module 410 is configured to receive a first image code sent by a second electronic device;

[0109] A first sending module 420 is configured to send first feedback information to the second electronic device when recognition of the first image code fails;

[0110] The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information.

[0111] The image code recognition device provided in the embodiment of the present application receives the first image code sent by the second electronic device through the first electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and in the event that the first image code recognition fails, the first electronic device generates first feedback information and sends the first feedback information to the second electronic device, so that the second electronic device can switch the image code according to the first feedback information and send it to the first electronic device, thereby improving the recognition success rate; in addition, it can also simplify the image code recognition operation between different electronic devices, and realize rapid recognition of image codes.

[0112] In one embodiment, the first feedback information includes: target recognition application information;

[0113] The target recognition application is associated with the second image code.

[0114] In one embodiment, the image code recognition device further includes:

[0115] a second sending module (not shown in the figure), configured to, upon receiving a second image code sent by the second electronic device, identify the second image code and send second feedback information to the second electronic device;

[0116] The second feedback information is used to indicate that the second image code is successfully recognized.

[0117] In one embodiment, the image code recognition device further includes:

[0118] A first display module (not shown in the figure), configured to display a first interface when recognition of the first image code fails;

[0119] The first interface is an installation interface of a first application, and the first application is an application that can recognize a first image code.

[0120] Figure 5 This is the second structural diagram of the image code recognition device provided in the embodiment of the present application; Figure 5 , an embodiment of the present application provides an image code recognition device, which is applied to a second electronic device and may include:

[0121] The third sending module 510 is configured to send the first image code to the first electronic device when the first image code is displayed;

[0122] A first switching module 520 is configured to switch the first image code to a second image code upon receiving first feedback information sent by the first electronic device;

[0123] A fourth sending module 530 is configured to send the second image code to the first electronic device;

[0124] The second image code and the first image code include the same target information.

[0125] The image code recognition device provided in the embodiment of the present application sends the first image code to the first electronic device through the second electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and when the first electronic device determines that the recognition of the first image code fails, the second electronic device receives feedback information sent by the first electronic device, so that the second electronic device can switch the image code according to the feedback information and send it to the first electronic device, which can improve the flexibility of the image code recognition operation and thus improve the efficiency of image code recognition.

[0126] In one embodiment, the third sending module 510 is specifically configured to:

[0127] When the distance between the second electronic device and the first electronic device exceeds a preset distance threshold, the first image code is sent to the first electronic device.

[0128] The image code recognition device in the embodiments 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. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.

[0129] The image code recognition device in the embodiment of the present application can be a device having an operating system. The operating system can 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.

[0130] The image code recognition device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0131] Alternatively, as Figure 6 As shown, the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned image code recognition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0132] 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.

[0133] Figure 7 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0134] The electronic device 700 includes but is not limited to components such as a radio frequency unit 701 , a network module 702 , an audio output unit 703 , an input unit 704 , a sensor 705 , a display unit 706 , a user input unit 707 , an interface unit 708 , a memory 709 , and a processor 710 .

[0135] Those skilled in the art will understand that the electronic device 700 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 7 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 repeated here.

[0136] The processor 710 is configured to receive a first image code sent by a second electronic device;

[0137] If recognition of the first image code fails, sending first feedback information to the second electronic device;

[0138] The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information.

[0139] The electronic device provided in the embodiment of the present application receives the first image code sent by the second electronic device through the first electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and in the event that the first image code recognition fails, the first electronic device generates first feedback information and sends the first feedback information to the second electronic device, so that the second electronic device can switch the image code according to the first feedback information and send it to the first electronic device, thereby improving the recognition success rate; in addition, it can also simplify the image code recognition operation between different electronic devices, and realize rapid recognition of image codes.

[0140] Optionally, the first feedback information includes: target recognition application information;

[0141] The target recognition application is associated with the second image code.

[0142] Optionally, the processor 710 is configured to, upon receiving a second image code sent by the second electronic device, identify the second image code and send second feedback information to the second electronic device;

[0143] The second feedback information is used to indicate that the second image code is successfully recognized.

[0144] Optionally, the processor 710 is configured to display a first interface when recognition of the first image code fails;

[0145] The first interface is an installation interface of a first application, and the first application is an application that can recognize a first image code.

[0146] or the processor 710 is configured to send the first image code to the first electronic device when displaying the first image code;

[0147] upon receiving first feedback information sent by the first electronic device, switching the first image code to a second image code;

[0148] sending the second image code to the first electronic device;

[0149] The second image code and the first image code include the same target information.

[0150] The electronic device provided in the embodiment of the present application sends the first image code to the first electronic device through the second electronic device, so that the user does not need to hold the first electronic device to scan the image code, and the first electronic device can directly recognize the first image code; and when the first electronic device determines that the recognition of the first image code fails, the second electronic device receives feedback information sent by the first electronic device, so that the second electronic device can switch the image code according to the feedback information and send it to the first electronic device, which can improve the flexibility of the image code recognition operation and thus improve the efficiency of image code recognition.

[0151] Optionally, the processor 710 is configured to send the first image code to the first electronic device when the distance between the second electronic device and the first electronic device exceeds a preset distance threshold.

[0152] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.

[0153] An embodiment of the present application further 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 image code recognition method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0154] 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 computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.

[0155] 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 image code recognition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0156] 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.

[0157] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite 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.

[0158] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially 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, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0159] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for image code recognition, applied to a first electronic device, characterized in that: include: receiving a first image code sent by a second electronic device; If recognition of the first image code fails, sending first feedback information to the second electronic device; The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information; The first feedback information includes at least one of the following: The first electronic device is currently unable to recognize status information corresponding to the first image code; the target information type corresponding to the first image code; Information about an application program on which the first electronic device can currently identify a target information type; The first image code recognition failure includes any of the following: The first image code times out or the format of the first image code is not compatible with the recognition operation of the first electronic device; The first electronic device recognizes that the application type of the first image code does not match.

2. The image code recognition method according to claim 1, characterized in that: After sending the first feedback information to the second electronic device, the method further includes: Upon receiving the second image code sent by the second electronic device, identifying the second image code and sending second feedback information to the second electronic device; The second feedback information is used to indicate that the second image code is successfully recognized.

3. The image code recognition method according to claim 1, wherein: After receiving the first image code sent by the second electronic device, the method further includes: If the first image code recognition fails, displaying a first interface; The first interface is an installation interface of a first application, and the first application is an application that can recognize a first image code.

4. A method for image code recognition, characterized in that: Applicable to a second electronic device, comprising: When the first image code is displayed, sending the first image code to the first electronic device; upon receiving first feedback information sent by the first electronic device, switching the first image code to a second image code; sending the second image code to the first electronic device; wherein the second image code and the first image code include the same target information; The first feedback information includes at least one of the following: The first electronic device is currently unable to recognize status information corresponding to the first image code; the target information type corresponding to the first image code; Information about an application program on which the first electronic device can currently identify a target information type; The first feedback information is sent when the first image code recognition fails. The first image code recognition failure includes any of the following: The first image code times out or the format of the first image code is not compatible with the recognition operation of the first electronic device; The first electronic device recognizes that the application type of the first image code does not match.

5. The image code recognition method according to claim 4, characterized in that: The sending the first image code to the first electronic device includes: When the distance between the second electronic device and the first electronic device exceeds a preset distance threshold, the first image code is sent to the first electronic device.

6. An image code recognition device, characterized in that: Applicable to a first electronic device, comprising: A first receiving module, configured to receive a first image code sent by a second electronic device; a first sending module, configured to send first feedback information to the second electronic device when recognition of the first image code fails; The first feedback information is used to trigger the second electronic device to switch the first image code to a second image code, and the second image code and the first image code include the same target information; The first feedback information includes at least one of the following: The first electronic device is currently unable to recognize status information corresponding to the first image code; the target information type corresponding to the first image code; Information about an application program on which the first electronic device can currently identify a target information type; The first image code recognition failure includes any of the following: The first image code times out or the format of the first image code is not compatible with the recognition operation of the first electronic device; The first electronic device recognizes that the application type of the first image code does not match.

7. The image code recognition device according to claim 6, characterized in that: Also includes: a second sending module, configured to, upon receiving a second image code sent by the second electronic device, identify the second image code and send second feedback information to the second electronic device; The second feedback information is used to indicate that the second image code is successfully recognized.

8. The image code recognition device according to claim 6, wherein: Also includes: A first display module, configured to display a first interface when recognition of the first image code fails; The first interface is an installation interface of a first application, and the first application is an application that can recognize a first image code.

9. An image code recognition device, characterized in that: Applicable to a second electronic device, comprising: a third sending module, configured to send the first image code to the first electronic device when the first image code is displayed; a first switching module, configured to switch the first image code to a second image code upon receiving first feedback information sent by the first electronic device; a fourth sending module, configured to send the second image code to the first electronic device; wherein the second image code and the first image code include the same target information; The first feedback information includes at least one of the following: The first electronic device is currently unable to recognize status information corresponding to the first image code; the target information type corresponding to the first image code; Information about an application program on which the first electronic device can currently identify a target information type; The first feedback information is sent when the first image code recognition fails. The first image code recognition failure includes any of the following: The first image code times out or the format of the first image code is not compatible with the recognition operation of the first electronic device; The first electronic device recognizes that the application type of the first image code does not match.

10. The image code recognition device according to claim 9, wherein: The third sending module is further configured to: When the distance between the second electronic device and the first electronic device exceeds a preset distance threshold, the first image code is sent to the first electronic device.

Citation Information

Patent Citations

  • Payment method and electronic equipment

    CN110992014A

  • Data transmission platform and method thereof

    CN111064739A