Code scanning jump method and device, equipment and storage medium

By supporting the parsing of various graphic codes and interface transitions through a unified scanning application, the problem of cumbersome scanning steps in existing technologies has been solved, and a fast and simplified scanning process has been achieved.

CN115455319BActive Publication Date: 2026-02-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211211997.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2026-02-06
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In existing technologies, different application software is required to scan the code, which makes the scanning process cumbersome. In particular, when faced with multiple graphic codes, it is necessary to first determine the application software corresponding to the graphic code, which increases the complexity of scanning.

Method used

This provides a unified QR code scanning application that can directly jump to the QR code result interface on the scanning interface when the image code is successfully parsed. The unified QR code scanning application can be a system-level application or a third-party application, supports the parsing of various image codes, and selects the appropriate parsing algorithm according to the image code type.

Benefits of technology

It simplifies the process of scanning graphic codes, improves the efficiency of scanning and redirecting to the display interface, and enables rapid parsing and interface redirection for different graphic codes through a unified scanning application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115455319B_ABST
    Figure CN115455319B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a code scanning jump method and device, equipment and storage medium, and belong to the technical field of computers. The method comprises the following steps: displaying a code scanning interface of a unified code scanning application; displaying a graphical code to be analyzed in the code scanning interface; in the case that the graphical code is successfully analyzed, displaying a code scanning result interface of the graphical code, the code scanning result interface belonging to the unified code scanning application or belonging to a target application different from the unified code scanning application, and the target application having the function of analyzing the graphical code. By using the scheme provided in the embodiments of the present application, various types of graphical codes can be analyzed through the unified code scanning application, and in the case that the graphical code is successfully analyzed, interface jump can be realized in the code scanning interface of the unified code scanning application, and the code scanning result interface corresponding to the graphical code is directly displayed, thereby simplifying the graphical code scanning step and improving the efficiency of the code scanning jump display interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of computer, and particularly relate to a code scanning and jumping method, device, equipment and storage medium. BACKGROUND

[0002] With the continuous development of Internet platform and mobile terminal technology, various graphic codes represented by two-dimensional codes have penetrated into people's lives, and especially with the popularization of digital payment methods, the application of two-dimensional codes has gradually been accepted by people.

[0003] In the related art, for different graphic codes, the application software capable of recognizing the graphic code needs to be specially used for code scanning, so as to successfully decode and obtain a decoding result, and to realize the display of the interface jump based on the decoding result in the application software.

[0004] However, different application software corresponds to different graphic codes, and in the case that there are a large number of graphic codes and a large number of code scanning needs in daily life, the application software corresponding to the graphic code needs to be determined first, so as to separately scan different graphic codes, thereby the code scanning process is complicated. SUMMARY

[0005] Embodiments of the present application provide a code scanning and jumping method, device, equipment and storage medium, which can analyze various graphic codes through a unified code scanning application and display a code scanning result interface. The technical solution is as follows:

[0006] On the one hand, the present application provides a code scanning and jumping method, which comprises:

[0007] displaying a code scanning interface of a unified code scanning application;

[0008] displaying a graphic code to be analyzed in the code scanning interface;

[0009] in the case that the graphic code is successfully analyzed, displaying a code scanning result interface of the graphic code, the code scanning result interface belonging to the unified code scanning application, or belonging to a target application different from the unified code scanning application, the target application having the function of analyzing the graphic code.

[0010] On the other hand, the present application provides a code scanning and jumping device, which comprises:

[0011] an interface display module configured to display a code scanning interface of a unified code scanning application;

[0012] a graphic code display module configured to display a graphic code to be analyzed in the code scanning interface;

[0013] The result display module is configured to display a scan code result interface of the graphic code in a case where the graphic code is successfully parsed, the scan code result interface belonging to the unified scan code application or belonging to a target application different from the unified scan code application, the target application having a function of parsing the graphic code.

[0014] In another aspect, an embodiment of the present application provides a computer device, which comprises a processor and a memory. The memory stores at least one instruction, which is used to be executed by the processor to implement the scan code jump method according to the above aspect.

[0015] In another aspect, an embodiment of the present application provides a computer readable storage medium, which stores at least one program code. The program code is loaded and executed by a processor to implement the scan code jump method according to the above aspect.

[0016] In another aspect, an embodiment of the present application provides a computer program product, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium. The processor executes the computer instructions, so that the computer device executes the scan code jump method provided in various optional implementation manners of the above aspect.

[0017] In an embodiment of the present application, the graphic code to be parsed is displayed in the scan code interface of the unified scan code application. In a case where the graphic code is successfully parsed, the computer device can directly jump to display the scan code result interface of the graphic code. The scan code result interface can belong to the unified scan code application or belong to a target application different from the unified scan code application. The target application has a function of parsing the graphic code. According to the scheme provided in the embodiment of the present application, various types of graphic codes can be parsed by the unified scan code application. In a case where the graphic code is successfully parsed, the scan code interface of the unified scan code application can be directly jumped to display the scan code result interface corresponding to the graphic code. The scan code step of the graphic code is simplified, and the efficiency of the scan code jump display interface is improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application. Other drawings can be obtained by those skilled in the art without creative effort.

[0019] Figure 1 A flowchart of a scan code jump method provided by an exemplary embodiment of the present application is shown;

[0020] Figure 2 FIG. 1 is a schematic diagram of a code scanning and jumping process according to an example embodiment of the present application;

[0021] Figure 3 FIG. 2 is a flowchart of a code scanning and jumping method according to another example embodiment of the present application;

[0022] Figure 4 FIG. 3 is a flowchart of a graphic code recognition and correction process according to an example embodiment of the present application;

[0023] Figure 5 FIG. 4 is a schematic diagram of determining a maximum zooming factor according to an example embodiment of the present application;

[0024] Figure 6 FIG. 5 is a flowchart of controlling a camera zooming process according to an example embodiment of the present application;

[0025] Figure 7 FIG. 6 is a flowchart of a code scanning and jumping method according to another example embodiment of the present application;

[0026] Figure 8 FIG. 7 is a flowchart of a code scanning and jumping method according to another example embodiment of the present application;

[0027] Figure 9 FIG. 8 is a schematic diagram of an interface jumping process when the analysis result belongs to a direct display type according to an example embodiment of the present application;

[0028] Figure 10 FIG. 9 is a schematic diagram of an interface jumping process when the analysis result belongs to a first type of link according to an example embodiment of the present application;

[0029] Figure 11 FIG. 10 is a schematic diagram of an interface jumping process when the analysis result belongs to a second type of link according to an example embodiment of the present application;

[0030] Figure 12 FIG. 11 is a schematic diagram of an interface jumping process when the analysis result belongs to a third type of link according to an example embodiment of the present application;

[0031] Figure 13 FIG. 12 is a schematic diagram of an analysis result classification according to an example embodiment of the present application;

[0032] Figure 14 FIG. 13 is a flowchart of a code scanning and jumping method according to another example embodiment of the present application;

[0033] Figure 15 FIG. 14 is a schematic diagram of an interface jumping process when the graphic code is a private code according to an example embodiment of the present application;

[0034] Figure 16A flowchart of interface jump using barrier-free service is shown in an example embodiment of the present application.

[0035] Figure 17 FIG. 1 is a schematic diagram of interface jump using a graphic code as an aggregate code according to an example embodiment of the present application.

[0036] Figure 18 A flowchart of code scanning jump is shown in another example embodiment of the present application.

[0037] Figure 19 FIG. 6 is a structural block diagram of a code scanning jump device according to an example embodiment of the present application.

[0038] Figure 20 FIG. 7 is a structural schematic diagram of a computer device according to an example embodiment of the present application. DETAILED DESCRIPTION

[0039] To make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the drawings.

[0040] In the related art, because different application software can recognize different graphic codes, for different types of graphic codes, only the corresponding application software can successfully scan the code, so that in the case of a large number of code scanning needs, the user needs to first determine the type of the graphic code, and then select and switch the application software for different types of graphic codes, resulting in a cumbersome code scanning step and increasing the complexity of the code scanning process.

[0041] In the embodiments of the present application, by providing a unified code scanning application for different graphic codes, interface jump can be realized in the code scanning interface of the unified code scanning application to display the code scanning result interface in the case of successful graphic code analysis.

[0042] Please refer to Figure 1 which shows a flowchart of a code scanning jump method according to an example embodiment of the present application, which can include the following steps:

[0043] Step 101, display the code scanning interface of the unified code scanning application.

[0044] Optionally, the unified code scanning application can scan different types of graphic codes, which can be a system-level application, a third-party application software downloaded by the user, or a function entry in the application, and the embodiments of the present application do not limit this.

[0045] In one possible implementation, in response to the triggering operation of the corresponding control of the unified code scanning application, the computer device displays the code scanning interface of the unified code scanning application, wherein the code scanning interface can include a code scanning box, a picture selection control, etc.

[0046] Optionally, the computer device displays the code scanning interface in response to a triggering operation on a corresponding control of the unified code scanning application, or through a gesture operation, such as a shake operation, or through voice, and the like. The embodiments of the present application do not limit the manner.

[0047] As shown in FIG. 2, in response to a triggering operation on the unified code scanning application control in the drop-down menu interface 201, the computer device displays a code scanning interface 202 of the unified code scanning application. Figure 2

[0048] Step 102, display the to-be-analyzed graphical code in the code scanning interface.

[0049] In a possible implementation, the computer device controls the camera to capture an image, and displays the real-time captured image in the code scanning interface.

[0050] In a possible implementation, in a case where the graphical code does not exist in the image captured by the camera, the computer device controls the camera to capture an image again until the graphical code exists in the captured image, so that the computer device displays the image containing the to-be-analyzed graphical code in the code scanning interface.

[0051] In a possible implementation, in response to a triggering operation on the picture selection control in the code scanning interface, the computer device directly reads the stored image containing the to-be-analyzed graphical code from the storage location, and displays the image in the code scanning interface.

[0052] Optionally, the graphical code can be a public code or a private code, and can be a bar code or a two-dimensional code. The embodiments of the present application do not limit the graphical code.

[0053] In a possible implementation, in a case where multiple graphical codes exist in the captured image, the computer device displays the image in the code scanning interface, and displays selection controls at positions corresponding to the multiple graphical codes in the image. In response to a triggering operation on the selection control corresponding to one of the graphical codes, the computer device displays the graphical code as the to-be-analyzed graphical code in the code scanning interface.

[0054] As shown in FIG. 2, in a case where the graphical code exists in the image captured by the camera, the computer device displays the graphical code 203 in the code scanning interface 202. Figure 2

[0055] Step 103, in a case where the graphical code is successfully analyzed, display a code scanning result interface of the graphical code. The code scanning result interface belongs to the unified code scanning application, or belongs to a target application different from the unified code scanning application, and the target application has a function of analyzing the graphical code. ​​

[0056] In a possible implementation, in the case that the graphic code is successfully parsed, the computer device displays a scan code result interface corresponding to the graphic code, and the scan code result interface displays content corresponding to the graphic code parsing result, which can be text information, a picture, a video, a webpage, or the like.

[0057] In a possible implementation, according to the scan code result corresponding to different graphic codes, the scan code result interface can belong to a unified scan code application, and the content corresponding to the scan code result is directly displayed in the unified scan code application, without cross-application jumping.

[0058] In a possible implementation, the scan code result interface can also belong to a target application different from the unified scan code application, where the target application has a function of parsing graphic codes. Based on the scan code result corresponding to the graphic code, the computer device starts the target application and displays the scan code result interface corresponding to the graphic code in the target application.

[0059] As shown in FIG. 3, the graphic code 203 stores a video link, and in the case that the graphic code 203 is successfully parsed, the computer device displays a scan code result interface 204 of the graphic code 203. Figure 2

[0060] In summary, in the embodiments of the present application, the graphic code to be parsed is displayed in the scan code interface of the unified scan code application, and in the case that the graphic code is successfully parsed, the computer device directly jumps to display the scan code result interface of the graphic code, where the scan code result interface can belong to the unified scan code application or a target application different from the unified scan code application, and the target application has a function of parsing graphic codes. By using the scheme provided in the embodiments of the present application, various graphic codes can be parsed by the unified scan code application, and in the case that the graphic code is successfully parsed, the scan code interface of the unified scan code application is jumped to display the scan code result interface corresponding to the graphic code, thereby simplifying the graphic code scanning step and improving the efficiency of the scan code jump display interface.

[0061] Since different types of graphic codes usually use different encoding and decoding rules, in order to improve the success rate of parsing, the computer device needs to identify the graphic code type of the graphic code, so as to adopt different parsing manners for different types of graphic codes. For details, please refer to FIG. 4, which shows a flowchart of a scan code jump method provided in another example embodiment of the present application, and the method includes the following steps: Figure 3

[0062] Step 301: Display a scan code interface of a unified scan code application.

[0063] Step 302: Display a graphic code to be parsed in the scan code interface.

[0064] ​​The implementation of steps 301 and 302 can refer to steps 101 and 102 described above, and this embodiment will not be repeated here.

[0065] In step 303, the image displayed in the code scanning interface is subjected to graphic code recognition to obtain a graphic code recognition result, which includes the graphic code type of the graphic code.

[0066] In a possible implementation, the computer device can perform graphic code recognition on the image displayed in the code scanning interface through a deep learning model. First, the computer device inputs a large number of images into the deep learning model, which can include images without graphic codes and images containing graphic codes of various types. Through training of the deep learning model, the deep learning model can more accurately recognize the graphic codes contained in the images, thereby outputting a graphic code recognition result.

[0067] Optionally, the graphic code recognition result can include the graphic code type of the graphic code, the actual position information of the graphic code in the image, the number of graphic codes contained in the image, and the like, which are not limited in this embodiment.

[0068] In a possible implementation, in order to adopt different analysis methods for different types of graphic codes, the computer device identifies the graphic code type of the graphic code in the image by establishing a deep learning model, inputs a large number of sample graphic codes and corresponding graphic code type labels into the deep learning model, thereby training the deep learning model, so that the deep learning model can output the probability of different graphic code types corresponding to different graphic codes, thereby determining the graphic code type corresponding to the graphic code.

[0069] In step 304, in the case where the graphic code type belongs to a public code, the graphic code is analyzed through a graphic code analysis function provided by a unified code scanning application, and the public code adopts a public analysis algorithm.

[0070] The public code refers to a graphic code generated based on a public graphic code generation standard, which conforms to a public and unified encoding and decoding rule, and based on which any public code can be decoded.

[0071] In a possible implementation, in order to reduce the steps in the decoding process, in the case where the graphic code type belongs to a public code, the computer device can directly analyze the graphic code through a graphic code analysis function provided by a unified code scanning application.

[0072] In step 305, in the case where the graphic code type belongs to a private code, a target application is determined based on the graphic code type, and the private code adopts a private analysis algorithm.

[0073] The private code refers to a graphic code generated based on a separately set encoding and decoding rule. Only when the corresponding encoding and decoding rule is mastered can the private code be successfully parsed. The private code can be used by a single application or jointly agreed by multiple applications.

[0074] In a possible implementation, since an identifier is usually set in the private code for the purpose of improving the distinguishability of the graphic code between applications, in the case where the graphic code type belongs to the private code, the computer device can determine the corresponding target application based on the identifier in the private code.

[0075] Step 306, performing graphic code parsing by the target application.

[0076] Further, the computer device performs graphic code parsing on the private code by starting the target application corresponding to the private code.

[0077] Step 307, in the case where the graphic code parsing is successful, displaying a scanning result interface of the graphic code.

[0078] The implementation of the present step can refer to the above-described step 103, and the present embodiment will not be described here again.

[0079] In the above-described embodiments, the computer device divides the graphic code into public codes and private codes based on the graphic code type. For the public codes, the graphic code is directly parsed by using the graphic code parsing function provided by the unified scanning application. For the private codes, the graphic code is parsed by the graphic code parsing function of the target application under the premise of determining the target application. By adopting different parsing manners for different types of graphic codes, the success rate and the parsing speed of the graphic code parsing are improved.

[0080] In a possible implementation, the graphic code recognition result further includes actual position information of the graphic code, and the length, the width, the radius and the like of the graphic code in the image are determined based on the actual position information, so as to determine whether the form of the graphic code is standard.

[0081] Since there may be problems such as angle and light when the image is collected by the camera, the shape and the contour line of the graphic code in the image may be deviated or unclear. Therefore, the computer device can correct the graphic code based on the actual position information of the graphic code in the image, so as to improve the success rate of the graphic code parsing. The process can include the following steps.

[0082] 1. Determining standard form information of the graphic code based on the graphic code type, the standard form information being used to represent the appearance form of the standard graphic code corresponding to the graphic code type.

[0083] In a possible implementation, since the graphic code generated according to the same coding rule generally has the same appearance form, when the type of the graphic code is determined, the computer device can determine the standard form information corresponding to the type of the graphic code, the standard form information being used to represent the appearance form of the standard graphic code corresponding to the type of the graphic code, and having certain normativity, for example, the appearance form of the standard graphic code can be a square or a circle.

[0084] 2. Correct the graphic code based on the standard form information and the actual position information.

[0085] Further, the computer device corrects the graphic code based on the standard form information and the actual position information, where the correction method can include adaptive binarization (used to solve the problem of uneven light and shade), morphological processing (used to process problems such as corrosion and swelling), contour detection (based on the contour hierarchy relationship for detection), code positioning (positioning according to the feature points of different graphic code types), and the like.

[0086] In a possible implementation, the computer device first determines the actual form of the graphic code based on the actual position information of the graphic code, and then corrects the graphic code based on the actual form information of the graphic code and the corresponding standard form information, to obtain a graphic code with a standard form by using multiple correction algorithms for different problems corresponding to the actual form information of the graphic code.

[0087] In the above embodiments, the computer device corrects the graphic code based on the standard form information and the actual position information corresponding to the graphic code by using a correction algorithm, to obtain a graphic code with a standard form, thereby improving the success rate of subsequent graphic code analysis.

[0088] Please refer to Figure 4 which shows a flowchart of graphic code recognition and correction provided by an example embodiment of the present application.

[0089] Step 401: Display the image captured by the camera in the code scanning interface.

[0090] The computer device captures an image by using the camera, and displays the captured image in the code scanning interface of a unified code scanning application.

[0091] Step 402: Input the image into a deep learning model for graphic code recognition, and identify whether the graphic code exists.

[0092] The computer device inputs the collected image into the deep learning model, performs graphic code recognition on the image through the deep learning model, determines whether the graphic code exists based on the probability of different graphic code types corresponding to the graphic code output by the deep learning model, and in the case that the graphic code exists, enters step 403; in the case that the graphic code does not exist, returns to step 401 and controls the camera to re-collect the image.

[0093] Step 403, determining the graphic code type of the graphic code.

[0094] The computer device determines the graphic code type of the graphic code based on the graphic code recognition result of the image.

[0095] Step 404, determining the actual position information of the graphic code.

[0096] Further, the computer device determines the actual position information of the graphic code based on the graphic code recognition result.

[0097] Step 405, determining whether the graphic code is standard based on the actual position information of the graphic code.

[0098] The computer device determines whether the graphic code is standard based on the actual position information of the graphic code and the graphic code standard form information corresponding to the graphic code type, in the case that the graphic code is standard, enters step 407; in the case that the graphic code does not conform to the standard form information, enters step 406.

[0099] Step 406, performing graphic code correction.

[0100] In the case that the graphic code does not conform to the standard form information, the computer device performs graphic code correction on the graphic code.

[0101] Step 407, obtaining the graphic code with the standard form.

[0102] Finally, the computer device obtains the graphic code with the standard form.

[0103] In a possible implementation, since the computer device is often in a moving state during actual code scanning, and the image collected during the moving process is often blurred and difficult to recognize, in order to improve the clarity of the collected image, the computer device performs data monitoring on the stability of the sensor corresponding to the camera, and in the case that the sensor data indicates that the sensor is in a stable state, the computer device performs graphic code recognition on the image displayed in the code scanning interface to obtain a graphic code recognition result.

[0104] In a possible implementation, the computer device determines the stability of the sensor corresponding to the sensor based on the fluctuation distance of the sensor within a period of time, for example, if the fluctuation distance of the sensor is less than 5 millimeters every 2 seconds, it is determined that the sensor is in a stable state.

[0105] In a possible implementation, the graphical code recognition result further includes actual position information of the graphical code, and the graphical code displayed in the code scanning interface is obtained by real-time shooting of the camera.

[0106] Since there are problems such as small size, blur, reflection, shadow, and similar background color of the graphical code in the process of real-time shooting and image collection by the camera, the computer device can adjust the size and clarity of the graphical code by focusing before analyzing the graphical code, thereby improving the success rate of graphical code analysis. The process can include the following steps:

[0107] 1. Determine the graphical code size of the graphical code.

[0108] Since it is difficult for the computer device to obtain the encoding and decoding rules of the graphical code when the size of the graphical code in the image is small, there is a problem of being unable to recognize the graphical code. Therefore, the computer device needs to determine the graphical code size of the graphical code before analyzing the graphical code.

[0109] 2. In the case where the graphical code size does not meet the analysis condition, control the camera to perform zooming operation based on the actual position information of the graphical code, wherein the graphical code size of the graphical code after zooming meets the analysis condition.

[0110] In a possible implementation, the computer device sets different graphical code size thresholds as analysis conditions based on different types of graphical codes. In the case where the graphical code size meets the set graphical code size threshold, the graphical code can be successfully analyzed, so that the computer device directly analyzes the graphical code in the case where the graphical code size meets the analysis condition. In the case where the graphical code size does not meet the analysis condition, the computer device needs to control the camera to perform zooming operation to adjust the graphical code size.

[0111] In a possible implementation, in the case where the graphical code size does not meet the analysis condition, the computer device controls the camera to perform zooming operation based on the actual position information of the graphical code, so that the graphical code size of the graphical code after zooming meets the analysis condition. The process can include the following sub-steps:

[0112] a. Determine the maximum zooming multiple based on the actual position information of the graphical code, wherein the maximum zooming multiple is negatively correlated with the distance of the graphical code from the center of the picture.

[0113] In one possible implementation, in order to ensure that the graphic code remains fully displayed on the interface after zooming, the computer device determines the maximum zoom level based on the actual position information of the graphic code. The maximum zoom level is negatively correlated with the distance of the graphic code from the center of the screen; the closer the graphic code is to the center of the screen, the greater the maximum zoom level; the farther the graphic code is from the center of the screen, the smaller the maximum zoom level.

[0114] In one possible implementation, the computer device determines the maximum zoom level by the shortest distance between the graphic code boundary and the screen boundary, wherein the larger the maximum zoom level, the smaller the shortest distance between the graphic code and the screen boundary.

[0115] Indicative, such as Figure 5 As shown, the computer device obtains the distances of each boundary of the graphic code 502 from the boundary of the screen 501. The distance of the graphic code 502 from the upper boundary of the screen 501 is ΔY, and the distance from the left boundary of the screen 501 is ΔX. When the shortest distance between the boundary of the graphic code 502 and the boundary of the screen 501 is ΔY, the computer device determines the maximum zoom magnification as Y / (Y-ΔY). When the shortest distance between the boundary of the graphic code 502 and the boundary of the screen 501 is ΔX, the computer device determines the maximum zoom magnification as X / (X-ΔX).

[0116] b. Determine the actual zoom level based on the graphic code size and the maximum zoom level. The actual zoom level is less than the maximum zoom level.

[0117] In one possible implementation, the computer device determines the actual zoom level based on the graphic code size and the maximum zoom level, wherein the actual zoom level is less than the maximum zoom level in order to ensure that the graphic code can be fully displayed on the screen.

[0118] In one possible implementation, when the maximum zoom magnification is large, the closer the graphic code is to the center of the image, the larger the actual zoom magnification can be. When the maximum zoom magnification is small, the closer the graphic code is to the edge of the image, the smaller the actual zoom magnification should be.

[0119] In one possible implementation, the computer device determines a candidate zoom magnification based on the actual size of the graphic code and the size of the graphic code corresponding to the parsing conditions. If the candidate zoom magnification is greater than the maximum zoom magnification, the maximum zoom magnification is used as the actual zoom magnification; if the candidate zoom magnification is less than the maximum zoom magnification, the candidate zoom magnification is used as the actual zoom magnification.

[0120] c. Control the camera to perform zoom operations based on the actual zoom magnification.

[0121] Further, the computer device controls the camera to zoom based on the actual zoom factor, and adjusts the position of the graphical code in the picture.

[0122] In a possible implementation, in order to ensure that the graphical code is in the sharpest focus position in the image after zooming, the computer device determines the focus position of the zoomed image based on the actual zoom factor and the actual position information, thereby determining the target focus position of the graphical code in the zoomed image, and controls the camera to zoom based on the target focus position and the actual zoom factor.

[0123] Please refer to Figure 6 which shows a flowchart of controlling the zoom of the camera according to an example embodiment of the present application.

[0124] Step 601: Obtain a graphical code that has been recognized and corrected.

[0125] First, the computer device obtains a graphical code that has been recognized and corrected, which has a standard form and a determined graphical code type.

[0126] Step 602: Determine whether the sensor is in a stable state.

[0127] In order to improve the clarity of the collected image, the computer device determines whether the sensor is in a stable state, and in the case that the sensor is in a stable state, proceeds to step 604; in the case that the sensor is in an unstable state, proceeds to step 603.

[0128] Step 603: Wait for the graphical code in the next frame of image.

[0129] In the case that the sensor is in an unstable state, the computer device waits for the graphical code in the next frame of image, and re-performs the recognition and correction of the graphical code.

[0130] Step 604: Determine whether the size of the graphical code meets the resolution condition.

[0131] Further, the computer device determines whether the size of the graphical code meets the resolution condition, and in the case that the size of the graphical code meets the resolution condition, proceeds to step 607; in the case that the size of the graphical code does not meet the condition, proceeds to step 605.

[0132] Step 605: Control the camera to perform zooming.

[0133] In the case that the size of the graphical code does not meet the resolution condition, the computer device controls the camera to perform zooming, while ensuring that the graphical code is completely displayed in the code scanning interface.

[0134] Step 606: Control the camera to perform automatic focusing.

[0135] In the case that the target focal point position of the graphic code is determined through the camera zooming operation, the computer device controls the camera to perform automatic focusing.

[0136] At step 607, the graphic code is subjected to image enhancement processing.

[0137] Further, in order to sufficiently obtain the encoding information of the graphic code in the image and weaken unnecessary information in the image, the computer device subjects the graphic code to image enhancement processing to improve the definition of the graphic code in the image.

[0138] At step 608, the graphic code is subjected to analysis.

[0139] Further, the computer device subjects the graphic code to graphic code analysis to obtain a corresponding analysis result.

[0140] Due to different code scanning scenarios, there is still a problem of failed graphic code analysis in the case of graphic code correction and zooming. Therefore, in order to further improve the graphic code analysis efficiency, the computer device can subject the graphic code to optimization processing through an optimization algorithm. Please refer to Figure 7 FIG. 7 shows a flowchart of a code scanning and jumping method according to another example embodiment of the present application. The method includes the following steps:

[0141] At step 701, a code scanning interface of a unified code scanning application is displayed.

[0142] At step 702, a graphic code to be analyzed is displayed in the code scanning interface.

[0143] At step 703, graphic code recognition is performed on the image displayed in the code scanning interface to obtain a graphic code recognition result, and the graphic code recognition result includes a graphic code type of the graphic code.

[0144] The implementation of steps 701-703 can refer to steps 301-303 described above, and this embodiment will not be described here.

[0145] At step 704, the graphic code is subjected to optimization processing based on an optimization sequence to generate at least one optimized graphic code corresponding to the graphic code. The optimization sequence includes at least one graphic code optimization algorithm, and the order of the graphic code optimization algorithm in the optimization sequence is related to the analysis success rate of the graphic code after being optimized by the graphic code optimization algorithm.

[0146] In a possible implementation, the computer device is provided with a plurality of different graphic code optimization algorithms for different graphic code analysis problems. In the case of optimization processing of the graphic code, the computer device can generate different optimized graphic codes corresponding to the graphic code based on different graphic code optimization algorithms.

[0147] Optionally, the graphic code optimization algorithm can include a de-glare algorithm, a de-stripe algorithm, a de-blur algorithm, a super-resolution algorithm, an adaptive histogram equalization algorithm, a rotation scaling, a binarization algorithm, a repair algorithm, etc., and the embodiments of the present application are not limited thereto.

[0148] In a possible implementation, since the computer device has different success rates of parsing and different lengths of time for parsing the graphic codes optimized by different optimization algorithms, in order to reduce memory consumption, reduce the parsing of invalid optimization graphic codes, and improve the speed of graphic code parsing, the computer device sorts the graphic code optimization algorithms, optimizes the graphic code based on the optimization sequence, and generates at least one optimization graphic code corresponding to the graphic code, wherein the optimization sequence includes at least one graphic code optimization algorithm, and the order of the graphic code optimization algorithm in the optimization sequence is related to the success rate of parsing the graphic code after being optimized by the graphic code optimization algorithm, and the success rate of parsing the graphic code corresponding to the graphic code optimization algorithm in the optimization sequence is arranged in descending order.

[0149] In a possible implementation, in the case that the success rates of parsing the graphic codes after being optimized by the graphic code optimization algorithms are the same, the computer device sorts the graphic code optimization algorithms in ascending order of the length of time for parsing the graphic codes after being optimized by the graphic code optimization algorithms, wherein the length of time for parsing refers to the length of time for obtaining the parsing result by parsing the graphic code after being optimized by the graphic code optimization algorithm.

[0150] In a possible implementation, the computer device can train the deep learning model by inputting a large number of graphic code optimization algorithms into the deep learning model in a random order, sort the graphic code optimization algorithms in ascending order according to the length of time for parsing the graphic codes corresponding to the graphic code optimization algorithms, and generate an optimization sequence, so that the computer device directly obtains the pre-set optimization sequence, optimizes the graphic code according to the fixed optimization sequence, and generates at least one optimization graphic code corresponding to the graphic code.

[0151] In a possible implementation, since different graphic codes actually require different optimization processing methods, the same order of optimization processing methods cannot be adopted for different graphic codes by using the pre-set optimization sequence, and the optimization processing method actually existing in the graphic code cannot be prioritized, therefore, in order to reduce the generation of a large number of unnecessary optimization graphic codes, the computer device trains the optimization algorithm prediction model by inputting a large number of graphic code optimization algorithms and to-be-optimized graphic codes into the optimization algorithm prediction model, and outputs the algorithm probability of different graphic code optimization algorithms corresponding to different to-be-optimized graphic codes, wherein the algorithm probability is used to represent the success rate of parsing the graphic code after the graphic code is optimized by the graphic code optimization algorithm.

[0152] In a possible implementation, in the case of optimization processing on the graphic code, the computer device performs optimization algorithm prediction on the graphic code by an optimization algorithm prediction model, obtains algorithm probabilities of at least one graphic code optimization algorithm corresponding to the current graphic code output by the optimization algorithm prediction model, and generates an optimization sequence based on the algorithm probabilities in descending order, so that the computer device can preferentially perform optimization processing on actual problems of the graphic code based on the optimization sequence, and the efficiency of the optimization processing and the speed of the graphic code analysis are improved. Further, the computer device generates at least one optimization graphic code corresponding to the graphic code in sequence based on the generated optimization sequence.

[0153] In an illustrative example, the computer device performs optimization algorithm prediction on the graphic code by an optimization algorithm prediction model, the optimization algorithm prediction model outputs algorithm probabilities of three graphic code optimization algorithms corresponding to the current graphic code, which are 0.8 for the anti-glare algorithm, 0.9 for the deblurring algorithm, and 0.6 for the adaptive histogram equalization algorithm, so that the optimization sequence is the deblurring algorithm, the anti-glare algorithm, and the adaptive histogram equalization algorithm.

[0154] In step 705, in the case where the graphic code type belongs to a public code, at least one optimization graphic code is subjected to graphic code analysis by a graphic code analysis function provided by a unified code scanning application based on the generation order of the optimization graphic code, until an analysis result is obtained.

[0155] In a possible implementation, in the case where the graphic code type belongs to a public code, the computer device directly subjects at least one optimization graphic code to graphic code analysis in sequence by a graphic code analysis function provided by a unified code scanning application based on the generation order of the optimization graphic code, until an analysis result is obtained.

[0156] In a possible implementation, the computer device subjects the first optimization graphic code generated based on the optimization sequence to analysis by a graphic code analysis function provided by a unified code scanning application, in the case where the analysis is successful and an analysis result is obtained, the computer device takes the analysis result as the analysis result of the graphic code and stops generating the optimization graphic code, and in the case where the analysis fails, the computer device generates the second optimization graphic code based on the optimization sequence and subjects the optimization graphic code to analysis, until an analysis result is obtained.

[0157] In an illustrative example, the optimization sequence is the deblurring algorithm, the anti-glare algorithm, and the adaptive histogram equalization algorithm, the computer device first subjects the first optimization graphic code generated based on the deblurring algorithm to analysis, in the case where the analysis is successful, the optimization graphic code generation is stopped, and in the case where the analysis fails, the computer device continues to generate the second optimization graphic code based on the anti-glare algorithm and performs graphic code analysis, in the case where the analysis is successful, an analysis result is obtained and the optimization graphic code generation is stopped.

[0158] In a possible implementation, the parsing result can include version information of the graphic code, position of the locator in the graphic code, graphic code content area information, and the like, and the embodiments of the present application are not limited thereto.

[0159] In step 706, if the graphic code type belongs to a private code, the target application is determined based on the graphic code type.

[0160] The implementation of the present step can refer to step 305 described above, and the embodiments of the present application are not described here again.

[0161] In step 707, the at least one optimized graphic code is parsed by the target application based on the generation order of the optimized graphic code, until a parsing result is obtained.

[0162] In a possible implementation, the computer device sequentially parses the at least one optimized graphic code by the target application based on the generation order of the optimized graphic code, until a parsing result is obtained.

[0163] In a possible implementation, the computer device parses the first optimized graphic code in the optimized sequence by the target application, and in a case that the parsing is successful and a parsing result is obtained, the computer device takes the parsing result as the parsing result of the graphic code and stops generating the optimized graphic code; in a case that the parsing fails, the computer device sequentially parses the second optimized graphic code by the target application until a parsing result is obtained.

[0164] In step 708, in a case that the graphic code is parsed successfully, a scan code result interface of the graphic code is displayed.

[0165] The implementation of the present step can refer to step 103 described above, and the embodiments of the present application are not described here again.

[0166] In the above embodiments, the computer device generates at least one optimized graphic code corresponding to the graphic code by the graphic code optimization algorithm, so as to parse the optimized graphic code and obtain a parsing result, thereby improving the efficiency of the graphic code parsing.

[0167] In a possible implementation, since the public code is generated based on the public parsing algorithm of the disclosed standard, the parsing result corresponding to the public code is also diverse, and therefore for different parsing results corresponding to different public codes, the scan code result interface displayed by the computer device may also be different. Please refer to Figure 8 FIG. 8 shows a flowchart of a scan code jump method provided by another example embodiment of the present application, which includes the following steps:

[0168] In step 801, a scan code interface of a unified scan code application is displayed.

[0169] Step 802, display the to-be-analyzed graphical code in the code scanning interface.

[0170] Step 803, perform graphical code recognition on the image displayed in the code scanning interface to obtain a graphical code recognition result, the graphical code recognition result including a graphical code type of the graphical code.

[0171] Step 804, in the case where the graphical code type belongs to a public code, perform graphical code analysis by using a graphical code analysis function provided by the unified code scanning application, and the public code uses a public analysis algorithm.

[0172] The implementation of steps 801-804 can refer to steps 301-304 described above, and will not be repeated here.

[0173] Step 805, in the case where the graphical code analysis is successful and the analysis result belongs to a direct display type, display a first code scanning result interface of the unified code scanning application, and the first code scanning result interface displays the analysis result.

[0174] In a possible implementation, the analysis result of the graphical code is of a direct display type, that is, the text information in the analysis result does not conform to a link specification and only includes content to be directly displayed, and cannot be further displayed in another interface.

[0175] In a possible implementation, in the case where the graphical code analysis is successful, the computer device determines that the analysis result is of a direct display type, and then directly displays the first code scanning result interface in the unified code scanning application, and displays the analysis result in the first code scanning result interface.

[0176] For example, as shown in FIG. 9, Figure 9 the computer device displays a public code in a code scanning interface 901 of the unified code scanning application, and performs analysis on the public code by using a graphical code analysis function provided by the unified code scanning application. In the case where the analysis is successful and the analysis result is of a direct display type, the computer device displays a first code scanning interface 902 of the unified code scanning application, and displays text information 903 corresponding to the public code in the first code scanning interface 902.

[0177] Step 806, in the case where the graphical code analysis is successful and the analysis result is of a link type, display a second code scanning result interface based on the analysis result and a link jump rule, and the second code scanning result interface displays display content corresponding to the link, and the link jump rule is used to indicate a jump display rule of different links.

[0178] In a possible implementation, the analysis result corresponding to the graphical code is of a link type, and the analysis result includes a link in addition to display content. Further interface jump can be implemented based on the code scanning result.

[0179] In a possible implementation, in a case where the graphic code analysis result belongs to the link type, in order to jump safely, the computer device performs security detection on the analysis result, and in a case where it is determined that the link is safe, the computer device displays a second scan code result interface based on the analysis result.

[0180] In a possible implementation, since different links correspond to different link jump display rules, some links can only support intra-application jump, and some links can support cross-application jump, therefore, the computer device is provided with corresponding link jump rules based on different link types, and the link jump rules are used to indicate the link jump display rules of different links.

[0181] In a possible implementation, in a case where the graphic code analysis is successful and the analysis result belongs to the link type, the computer device displays a second scan code result interface based on the analysis result and the link jump rule, and the second scan code result interface displays the display content corresponding to the link.

[0182] In a possible implementation, according to the processing method of the uniform scan code application for different analysis results, the analysis result can correspond to three different link types, namely a first link type, a second link type and a third link type, wherein the first link type is a link that can be opened through a browser and can support intra-uniform scan code application interface jump; the second link type is a link that supports direct jump and can directly jump to a corresponding interface in a target application based on the analysis result of the uniform scan code application; and the third link type is a link that does not support direct jump and cannot directly jump to a corresponding interface in a target application based on the analysis result of the uniform scan code application, and only when the analysis result is obtained again in the target application corresponding to the graphic code, the corresponding interface can be displayed.

[0183] In a possible implementation, in a case where the analysis result belongs to the first link type, the computer device displays a second scan code result interface of the uniform scan code application based on the first link jump rule, and the first link jump rule is that the link that can be opened through the browser directly jumps to the interface in the uniform scan code application.

[0184] As shown in FIG. 10A, Figure 10 in a case where the analysis result belongs to the first link type, the computer device directly jumps to the interface in the uniform scan code application from the scan code interface 1001 of the uniform scan code application to display the corresponding second scan code result interface 1002.

[0185] In a possible implementation, in a case where the analysis result belongs to the second link type, the interface jump process includes the following sub-steps:

[0186] 1. In the case where the parsing result belongs to the second type of link, determine the target application corresponding to the parsing result.

[0187] Since the second type of link is a link supporting direct jump, i.e., directly jumping to display the specific interface of the target application based on the parsing result of the unified scan code application, in the case where the parsing result belongs to the second type of link, the computer device first needs to determine the target application corresponding to the parsing result, and then perform interface jump display based on the determined target application.

[0188] 2. Display the second scan code result interface of the target application based on the second link jump rule and the parsing result.

[0189] Further, the computer device displays the second scan code result interface of the target application based on the second link jump rule and the parsing result, wherein the second link jump rule is to directly jump to the scan code result interface of the corresponding target application based on the parsing result of the unified scan code application for the link supporting direct jump.

[0190] In one possible implementation, the computer device generates an interface jump instruction corresponding to the parsing result based on the parsing result of the unified scan code application and the corresponding target application, so that the target application directly jumps to display the corresponding second scan code result interface based on the interface jump instruction.

[0191] Illustratively, as shown in Figure 11 In the case where the parsing result belongs to the second type of link, the computer device directly jumps from the scan code interface 1101 of the unified scan code application to display the second scan code result interface 1102 of the target application after determining the target application.

[0192] In one possible implementation, in the case where the parsing result belongs to the third type of link, the interface jump process includes the following sub-steps:

[0193] 1. In the case where the parsing result belongs to the third type of link, determine the target application corresponding to the parsing result.

[0194] Since the third type of link is a link that does not support direct jump, it cannot directly jump to the corresponding interface in the target application based on the parsing result of the unified scan code application. Only by re-acquiring the parsing result in the target application corresponding to the graphic code can the corresponding interface be displayed. Therefore, the computer device first needs to determine the corresponding target application based on the parsing result of the unified scan code application.

[0195] 2. Perform graphic code analysis through the target application.

[0196] Further, the computer device re-performs graphic code analysis on the graphic code through the target application to obtain the parsing result.

[0197] In one possible implementation, to avoid the target application re-parses the image code acquired by the camera and to improve the target application's parsing efficiency, the computer device reconstructs the image code based on the parsing result of a unified scanning application, obtaining a reconstructed image code that possesses the morphological characteristics of a standard image code. Furthermore, the computer device utilizes accessibility services to parse the reconstructed image code through the target application. Here, accessibility services refer to the computer device's ability to automatically launch the target application and enable its image code parsing function to parse the image code stored within the computer device.

[0198] In one possible implementation, since the reconstructed graphic code needs to be stored in the corresponding storage location before the computer device can utilize the accessibility service, the computer device needs to perform a security check on the reconstructed graphic code to ensure that the reconstructed graphic code corresponding to the graphic code can be retrieved through the graphic code parsing function of the target application. The security check is used to verify whether the content stored in the target storage location has been tampered with.

[0199] In one possible implementation, the computer device obtains the MD5 corresponding to the reconstructed graphic code during the storage process and obtains the MD5 corresponding to the reconstructed graphic code again when reading the reconstructed graphic code. The computer device compares the MD5 at the time of storage and the time of reading the reconstructed graphic code. If they match, the security check is passed.

[0200] First, the computer device uses accessibility services to read the reconstructed graphic code from the target storage location via the target application. Next, the computer device performs a security check on the reconstructed graphic code to verify that it still exists in the corresponding storage location. If the security check passes, the computer device uses the target application's graphic code parsing function to parse the reconstructed graphic code, obtaining the parsing result generated by the target application.

[0201] Indicative, such as Figure 12 As shown, when the parsing result obtained based on the unified scanning application belongs to the third type of link, the computer device determines the target application corresponding to the graphic code, and uses accessibility services to jump from the first scanning interface 1201 of the unified scanning application to the second scanning interface 1202 of the target application, thereby parsing the reconstructed graphic code through the target application.

[0202] It should be noted that in the embodiments of this application, the process of the computer device using accessibility services to switch interfaces is completed in the background. Figure 12 The second QR code scanning interface 1202 of the target application shown will not be displayed.

[0203] 3. Display a second scan code result interface of the target application based on the third link jump rule and the analysis result of the target application.

[0204] Further, the computer device jumps to display the second scan code result interface of the target application based on the third link jump rule and the analysis result of the target application, where the third link jump rule is that, for a link that does not support direct jump, the computer device jumps to the scan code result interface of the corresponding target application based on the analysis result of the target application.

[0205] As shown in FIG. 12, the computer device displays the second scan code result interface 1203 of the target application based on the third link jump rule and the analysis result of the target application. Figure 12

[0206] In a possible implementation, the computer device configures link jump rules corresponding to different links through the cloud, and adjusts the link jump rules corresponding to different links according to actual link jump needs in actual application, so as to realize jump of different links based on the adjusted link jump rules, and improve flexibility and accuracy of the jump.

[0207] In the above embodiments, the computer device sets different jump rules based on different types of analysis results, so as to realize jump from the scan code interface of the unified scan code application to the scan code result interface, increase diversity of interface jump modes, and analyze the graphical code that needs to be analyzed again by the graphical code analysis function of the target application by the method of reconstructing the graphical code and the way of accessibility services, improve efficiency of graphical code analysis, and enhance user experience of directly jumping to display the scan code result interface based on the unified scan code application.

[0208] Please refer to FIG. 11, which shows a schematic diagram of analysis result classification provided by an example embodiment of the present application. Figure 13

[0209] First, based on the analysis result of the graphical code, the computer device divides the graphical code type into a direct display type and a link type. Further, the computer device divides the link type into a first type of link (a link that supports opening through a browser), a second type of link (a link that supports direct jump), and a third type of link (a link that does not support direct jump) according to different jump modes of the link type.

[0210] In a possible implementation, since the private code is generated based on the encoding and decoding rules inside each application, only the graphical code analysis function corresponding to each application can obtain the corresponding analysis result. Therefore, in the case of the graphical code being a private code, the computer device needs to realize interface jump by using accessibility services. Please refer to FIG. 11. Figure 14 ​​FIG. 1 shows a flowchart of a code scanning and jumping method according to another example embodiment of the present application, which comprises the following steps:

[0211] In step 1401, a code scanning interface of a unified code scanning application is displayed.

[0212] In step 1402, a graphical code to be parsed is displayed in the code scanning interface.

[0213] In step 1403, graphical code recognition is performed on the image displayed in the code scanning interface, and a graphical code recognition result is obtained, which contains a graphical code type of the graphical code.

[0214] The implementation of steps 1401-1403 can refer to steps 301-303 described above, and will not be repeated here.

[0215] In step 1404, if the graphical code type belongs to a private code, a target application is determined based on the graphical code type, and a private parsing algorithm is used for the private code.

[0216] The implementation of step 1404 can refer to step 305 described above, and will not be repeated here.

[0217] In step 1405, the graphical code is parsed by the target application using the accessibility service.

[0218] In one possible implementation, the computer device parses the graphical code by the graphical code parsing function of the target application using the accessibility service, and obtains a parsing result.

[0219] In one possible implementation, the computer device stores the graphical code obtained by the camera in a corresponding storage location, obtains the graphical code from the storage location by the accessibility service, and parses the graphical code by the graphical code parsing function of the target application.

[0220] In one possible implementation, in order to improve the parsing efficiency of the target application, the computer device performs image correction, image zooming, graphical code optimization, etc. on the graphical code obtained by the camera, and stores the optimized graphical code in a corresponding storage location, so as to parse the optimized graphical code by the graphical code parsing function of the target application using the accessibility service, and obtain a parsing result.

[0221] In one possible implementation, in order to ensure that the corresponding graphical code can be called by the graphical code parsing function of the target application, the computer device performs security verification on the graphical code read by the target application, and verifies whether the graphical code stored in the corresponding storage location is tampered with, which comprises the following sub-steps:

[0222] 1. Using the accessibility service, the computer device reads the saved graphical code from the target storage location through the target application. The graphical code can be directly obtained by the camera or can be optimized by an algorithm.

[0223] First, the computer device uses the accessibility service to read the saved graphical code from the target storage location through the target application. The graphical code can be directly obtained by the camera or can be optimized by an algorithm.

[0224] 2. In the case that the graphical code passes the security check, the target application performs graphical code analysis on the graphical code. The security check is used to check whether the content stored in the target storage location has been tampered with.

[0225] Further, the computer device performs security check on the read graphical code to determine whether the graphical code is the graphical code stored in the target storage location. In the case that the graphical code passes the security check, the computer device performs graphical code analysis on the graphical code through the target application to obtain an analysis result.

[0226] Step 1406, in the case that the graphical code analysis is successful, a third scan code result interface of the target application is displayed, and the third scan code interface displays the display content corresponding to the analysis result.

[0227] In one possible implementation, in the case that the graphical code analysis is successful, the computer device displays the third scan code result interface of the target application based on the analysis result obtained by the target application, and displays the display content corresponding to the analysis result in the third scan code result interface.

[0228] As shown in Figure 15 , in the case that the graphical code is identified as a private code by the unified scan code application, the computer device uses the accessibility service to start the graphical code analysis function of the target application, jumps from the scan code interface 1501 of the unified scan code application to the scan code interface 1502 of the target application, and performs graphical code analysis on the private code. In the case that the private code analysis is successful, the computer device jumps to display the third scan code result interface 1503 of the target application.

[0229] In the above embodiment, in the case that the graphical code is a private code, the computer device uses the accessibility service to directly use the graphical code analysis function of the target application to analyze the graphical code, which increases the type of graphical code that can be analyzed through the unified scan code application to jump to the scan code interface, and improves the user experience of jumping to the scan code interface through the unified scan code application.

[0230] Please refer to Figure 16 , which shows a flowchart of using the accessibility service to implement interface jumping according to an example embodiment of the present application.

[0231] Step 1601, obtaining an analysis result of a graphical code.

[0232] First, the computer device obtains the analysis result of the graphic code.

[0233] Step 1602, determine whether it is a private code.

[0234] The computer device determines whether the graphic code is a private code based on the analysis result of the graphic code. If the graphic code is a private code, go to step 1604; if the graphic code is not a private code but a public code, go to step 1603.

[0235] Step 1603, generate a reconstructed graphic code based on the analysis result and store it in the target storage location.

[0236] If the graphic code is not a private code but a public code, the computer device generates a reconstructed graphic code based on the analysis result and stores it in the target storage location.

[0237] Step 1604, store the corrected graphic code in the target storage location.

[0238] If the graphic code is a private code, the computer device stores the corrected graphic code in the target storage location.

[0239] Step 1605, based on the jump rule, jump to the scan code interface of the target application.

[0240] The computer device determines the target application based on the jump rule and jumps to the scan code interface of the target application.

[0241] Step 1606, in the scan code interface, use the accessibility service to trigger the album selection control.

[0242] In the scan code interface of the target application, the computer device uses the accessibility service to trigger the album selection control and performs graphic code reading.

[0243] Step 1607, read the graphic code in the target storage location.

[0244] The computer device reads the corresponding graphic code in the target storage location.

[0245] Step 1608, perform security verification on the graphic code.

[0246] In order to determine that the graphic code in the target storage location has not been tampered with, the computer device performs security verification on the graphic code.

[0247] Step 1609, display the scan code result interface.

[0248] Further, the computer device jumps to display the corresponding scan code result interface.

[0249] In one possible implementation, when the graphic code is an aggregate code, at least two applications are capable of parsing the aggregate code, and the aggregate code is surrounded by corresponding application icons for indication. To redirect to the target application corresponding to the aggregate code, the computer device provides the user with candidate application options and determines the target application based on the user's selection, thereby achieving interface redirection. This process includes the following steps:

[0250] 1. When the graphic code type is an aggregate code, determine at least two candidate applications corresponding to the graphic code, and the candidate applications support parsing the graphic code.

[0251] In one possible implementation, when the graphic code type is an aggregate code, at least two applications are capable of parsing the graphic code and obtaining the parsing results. To determine the target application for the jump display, the computer device needs to prioritize identifying at least two candidate applications corresponding to the graphic code, where both candidate applications support parsing the aggregate code.

[0252] In one possible implementation, if the image displayed in the scanning interface shows application icons of candidate applications around the graphic code, the computer device directly determines at least two candidate applications corresponding to the graphic code based on the graphic code recognition result.

[0253] In one possible implementation, if no application icons for candidate applications are displayed around the graphic code in the image displayed on the scanning interface, the computer device performs graphic code parsing based on the graphic code parsing function provided by the unified scanning application, and determines at least two candidate applications corresponding to the graphic code based on the parsing results.

[0254] Optionally, if the graphic code type is an aggregate code, the graphic code may be a public code or a private code, and this application embodiment does not limit this.

[0255] 2. Display at least two candidate application options on the QR code scanning interface.

[0256] In one possible implementation, the computer device displays candidate application options corresponding to at least two candidate applications on the scanning interface, based on at least two identified candidate applications.

[0257] Indicative, such as Figure 17 As shown, the computer device directly identifies three candidate applications, namely application A, application B and application C, based on the application icons of the candidate applications displayed around the graphic code in the image displayed in the scanning interface 1701. Furthermore, the computer device displays the candidate application options 1702 corresponding to the three candidate applications in the scanning interface 1701.

[0258] 3. In response to the selection operation on the candidate application option, the computer device determines a target application from the at least two candidate applications.

[0259] Further, in response to the selection operation on the candidate application option, the computer device determines a target application from the at least two candidate applications, and jumps to display a scan code result interface corresponding to the target application.

[0260] In a possible implementation, in a case where the graphic code type belongs to an aggregate code, the aggregate code belongs to a public code, and the aggregate code corresponds to a second type of link, in response to the selection operation on the candidate application option, the computer device sends an interface jump instruction to the determined target application, so as to jump to display a corresponding scan code result interface.

[0261] As shown in FIG. 17A, in a case where the graphic code type belongs to an aggregate code, the computer device displays a candidate application option A and a candidate application option B. Figure 17 In response to the selection operation on the candidate application option A, the computer device determines the target application as the application A, and jumps to display a scan code result interface 1703.

[0262] In a possible implementation, in a case where the graphic code type belongs to an aggregate code, the aggregate code belongs to a public code, and the aggregate code corresponds to a third type of link, in response to the selection operation on the candidate application option, the computer device uses the accessibility service to read a reconstructed graphic code from a target storage location in a scan code interface of the determined target application, uses the graphic code analysis function of the target application to analyze the reconstructed graphic code to obtain an analysis result, and jumps to display a corresponding scan code result interface based on the analysis result.

[0263] In a possible implementation, in a case where the graphic code type belongs to an aggregate code, and the aggregate code belongs to a private code, in response to the selection operation on the candidate application option, the computer device uses the accessibility service to read a graphic code from a target storage location in a scan code interface of the determined target application, uses the graphic code analysis function of the target application to analyze the graphic code to obtain an analysis result, and jumps to display a corresponding scan code result interface based on the analysis result.

[0264] In a possible implementation, in order to improve the efficiency in the scan code process and make the design more humanized, the computer device directly determines a target application based on a candidate application option corresponding to an aggregate code and a selection operation of a same type of candidate application option by a user last time, and jumps to display a corresponding scan code result interface.

[0265] In the above embodiments, in a case where the graphic code type belongs to an aggregate code, the computer device can display a candidate application option corresponding to the aggregate code to the user, and in response to a corresponding selection operation, jump to display a scan code result interface of a target application, thereby improving the user experience of jumping to display a scan code interface through a unified scan code application.

[0266] It should be noted that the order between the above embodiments and the order of each step in the embodiments can be adjusted according to the actual application process of the graphic code analysis process, and the embodiments of the present application do not limit this.

[0267] Please refer to Figure 18 , which shows the code scanning jump flowchart provided by another exemplary embodiment of the present application.

[0268] Step 1801, obtaining the image captured by the camera displayed in the code scanning interface.

[0269] The computer device obtains the image captured by the camera displayed in the code scanning interface of the unified code scanning application.

[0270] Step 1802, performing graphic code recognition.

[0271] The computer device performs graphic code recognition on the image captured by the camera.

[0272] Step 1803, determining whether the graphic code is recognized.

[0273] The computer device determines whether the graphic code exists in the image, and in the case of recognizing the graphic code, obtains the graphic code recognition result, which includes the graphic code type and the actual position information of the graphic code, and enters step 1804; in the case of not recognizing the graphic code, returns to step 1801 to reacquire the image captured by the camera.

[0274] Step 1804, performing graphic code correction.

[0275] The computer device performs graphic code correction on the graphic code based on the determined graphic code type and the graphic code standard form information corresponding to the graphic code type.

[0276] Step 1805, controlling the zoom of the camera.

[0277] Further, the computer device controls the zoom of the camera based on the actual position information of the graphic code to adjust the size of the graphic code in the picture.

[0278] Step 1806, performing graphic code analysis.

[0279] The computer device analyzes the graphic code through the graphic code analysis function provided by the unified code scanning application.

[0280] Step 1807, determining whether the analysis is successful.

[0281] The computer device determines whether the graphic code is successfully parsed. In a case where the graphic code is successfully parsed, the computer device determines an interface jump manner based on different types corresponding to the parsing result and a jump rule, and enters step 1809. In a case where the graphic code is not successfully parsed, the computer device enters step 1807.

[0282] Step 1808, performing graphic code optimization.

[0283] In a case where the graphic code is not successfully parsed, the computer device performs graphic code optimization on the graphic code by using a graphic code optimization algorithm, obtains at least one optimized graphic code, and returns to step 1806 to continue to perform graphic code parsing.

[0284] Step 1809, performing link security detection.

[0285] In a case where the parsing result is a link type, the computer device performs security detection based on the parsing result to determine link security.

[0286] Step 1810, performing link jump.

[0287] The computer device performs corresponding interface jump based on a link jump rule.

[0288] Step 1811, displaying a scan code result interface.

[0289] The computer device displays a scan code result interface corresponding to the parsing result.

[0290] Please refer to Figure 19 which shows a structural block diagram of a scan code jump device provided by an example embodiment of the present application. The device can include the following structures:

[0291] An interface display module 1901 is configured to display a scan code interface of a unified scan code application.

[0292] A graphic code display module 1902 is configured to display a graphic code to be parsed in the scan code interface.

[0293] A result display module 1903 is configured to display a scan code result interface of the graphic code in a case where the graphic code is successfully parsed. The scan code result interface belongs to the unified scan code application or a target application different from the unified scan code application. The target application has a function of parsing the graphic code.

[0294] Optionally, before the scan code result interface of the graphic code is displayed, the device includes:

[0295] A graphic code identification module is configured to perform graphic code identification on an image displayed in the scan code interface to obtain a graphic code identification result. The graphic code identification result includes a graphic code type of the graphic code.

[0296] The graphic code analysis module is configured to, in a case where the graphic code type belongs to a public code, perform graphic code analysis by using a graphic code analysis function provided by the unified code scanning application, and the public code uses a public analysis algorithm.

[0297] The graphic code analysis module is further configured to, in a case where the graphic code type belongs to a private code, determine the target application based on the graphic code type, the private code uses a private analysis algorithm, and perform graphic code analysis by using the target application.

[0298] Optionally, the graphic code recognition result further includes actual position information of the graphic code.

[0299] The apparatus further includes:

[0300] An information determination module is configured to determine standard form information of the graphic code based on the graphic code type, and the standard form information is used to represent an appearance form of a standard graphic code corresponding to the graphic code type.

[0301] A graphic code correction module is configured to correct the graphic code based on the standard form information and the actual position information.

[0302] Optionally, the graphic code recognition result further includes actual position information of the graphic code, and an image displayed in the code scanning interface is obtained by real-time shooting of a camera.

[0303] The apparatus further includes:

[0304] A size determination module is configured to determine a graphic code size of the graphic code.

[0305] A control module is configured to, in a case where the graphic code size does not satisfy an analysis condition, control the camera to perform a zooming operation based on the actual position information of the graphic code, and the graphic code size of the graphic code after zooming satisfies the analysis condition.

[0306] Optionally, the control module includes:

[0307] A zooming multiple determination unit is configured to determine a maximum zooming multiple based on the actual position information of the graphic code, and the maximum zooming multiple is in a negative correlation relationship with a distance of the graphic code from a picture center.

[0308] The zooming multiple determination unit is further configured to determine an actual zooming multiple based on the graphic code size and the maximum zooming multiple, and the actual zooming multiple is less than the maximum zooming multiple.

[0309] A control unit is configured to control the camera to perform a zooming operation based on the actual zooming multiple.

[0310] Optionally, the control unit is configured to:

[0311] determine a target focal point position of the graphic code after zooming based on the actual zooming multiple and the actual position information;

[0312] control the camera to perform zooming operation based on the target focal point position and the actual zooming multiple.

[0313] Optionally, the graphic code recognition module is configured to:

[0314] perform graphic code recognition on the image displayed in the code scanning interface to obtain the graphic code recognition result when the sensor data indicates that the state is stable.

[0315] Optionally, the apparatus further comprises:

[0316] an optimization processing module configured to perform optimization processing on the graphic code based on an optimization sequence to generate at least one optimized graphic code corresponding to the graphic code, the optimization sequence comprising at least one graphic code optimization algorithm, and the order of the graphic code optimization algorithm in the optimization sequence being related to the success rate of graphic code analysis after optimization by the graphic code optimization algorithm;

[0317] the graphic code analysis module is configured to:

[0318] perform graphic code analysis on at least one of the optimized graphic codes based on the generation order of the optimized graphic codes through the graphic code analysis function provided by the unified code scanning application until the analysis result is obtained;

[0319] the graphic code analysis module is further configured to:

[0320] perform graphic code analysis on at least one of the optimized graphic codes based on the generation order of the optimized graphic codes through the target application until the analysis result is obtained.

[0321] Optionally, the apparatus further comprises:

[0322] a sequence acquisition module configured to acquire the optimization sequence set in advance;

[0323] or,

[0324] a sequence generation module configured to perform optimization algorithm prediction on the graphic code through an optimization algorithm prediction model to obtain an algorithm probability of at least one of the graphic code optimization algorithms output by the optimization algorithm prediction model, the algorithm probability being used to represent the success rate of graphic code analysis after optimization processing on the graphic code by the graphic code optimization algorithm, and the optimization sequence being generated in descending order based on the algorithm probability.

[0325] Optionally, the graphic code type belongs to the public code.

[0326] The result display module 1903 comprises:

[0327] The first result display unit is configured to display a first scan code result interface of the unified scan code application in a case where the graphic code is successfully parsed and the parsing result belongs to a direct display type, and the first scan code result interface displays the parsing result.

[0328] The second result display unit is configured to display a second scan code result interface in a case where the graphic code is successfully parsed and the parsing result belongs to a link type, based on the parsing result and a link jump rule, and the second scan code result interface displays display content corresponding to the link, and the link jump rule is used to indicate a jump display rule of different links.

[0329] Optionally, the second result display unit is configured to:

[0330] In a case where the parsing result belongs to a first type of link, the second scan code result interface of the unified scan code application is displayed based on a first link jump rule, and the first type of link is a link that supports opening through a browser.

[0331] In a case where the parsing result belongs to a second type of link, the target application corresponding to the parsing result is determined, and the second scan code result interface of the target application is displayed based on a second link jump rule and the parsing result, and the second type of link is a link that supports direct jump.

[0332] In a case where the parsing result belongs to a third type of link, the target application corresponding to the parsing result is determined, graphic code parsing is performed through the target application, and the second scan code result interface of the target application is displayed based on a third link jump rule and a parsing result of the target application, and the third type of link is a link that does not support direct jump.

[0333] Optionally, the second result display unit is further configured to:

[0334] Graphic code is reconstructed based on the parsing result of the unified scan code application to obtain a reconstructed graphic code.

[0335] The reconstructed graphic code is parsed through the target application by using an accessibility service.

[0336] Optionally, the second result display unit is further configured to:

[0337] The reconstructed graphic code is read from a target storage location through the target application by using the accessibility service.

[0338] In a case where the reconstructed graphic code passes the security check, the graphic code is parsed by the target application, wherein the security check is used to check whether the content stored in the target storage location is tampered.

[0339] Optionally, the graphic code type belongs to the private code.

[0340] The graphic code parsing module is configured to parse the graphic code by the target application using the accessibility service.

[0341] The result display module 1903 is configured to:

[0342] In a case where the graphic code parsing is successful, a third scan code result interface of the target application is displayed, and the third scan code interface displays the display content corresponding to the parsing result.

[0343] Optionally, the graphic code parsing module is further configured to:

[0344] The graphic code is read from the target storage location by the target application using the accessibility service.

[0345] In a case where the graphic code passes the security check, the graphic code is parsed by the target application, wherein the security check is used to check whether the content stored in the target storage location is tampered.

[0346] Optionally, the apparatus further includes:

[0347] The application determination module is configured to, in a case where the graphic code type belongs to an aggregated code, determine at least two candidate applications corresponding to the graphic code, and the candidate applications support parsing the graphic code.

[0348] The option display module is configured to display candidate application options corresponding to the at least two candidate applications in the scan code interface.

[0349] The application determination module is further configured to, in response to a selection operation on the candidate application options, determine the target application from the at least two candidate applications.

[0350] To sum up, in the embodiment of the present application, the graphical code to be parsed is displayed in the scanning code interface of the unified scanning code application, and in the case that the graphical code is successfully parsed, the computer device can directly jump to display the scanning code result interface of the graphical code, wherein the scanning code result interface can belong to the unified scanning code application, or belong to a target application different from the unified scanning code application, and the target application has the function of parsing the graphical code. By using the scheme provided in the embodiment of the present application, various types of graphical codes can be parsed by the unified scanning code application, and in the case that the graphical code is successfully parsed, the interface can be jumped in the scanning code interface of the unified scanning code application, and the scanning code result interface corresponding to the graphical code is directly jumped to display, which simplifies the graphical code scanning step and improves the efficiency of the scanning interface.

[0351] It should be noted that: the device provided in the above embodiment is only exemplified by the division of the above functional modules, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be described here.

[0352] Please refer to Figure 20 which shows the structure block diagram of the computer device provided in an example embodiment of the present application. The computer device 2000 can include one or more of the following components: a processor 2010, a memory 2020 and a display screen 2030.

[0353] The processor 2010 can include one or more processing cores. The processor 2010 connects various parts within the entire computer device 2000 by various interfaces and lines, and performs various functions and processes data of the computer device 2000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 2020, and calling data stored in the memory 2020. Optionally, the processor 2010 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 2010 can integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU is mainly used to process operating systems, user interfaces, and application programs, etc.; the GPU is used to be responsible for rendering and drawing of content to be displayed on the touch display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 2010, but be implemented by a separate chip.

[0354] The memory 2020 can include a random access memory (RAM) and can also include a read-only memory (ROM). Optionally, the memory 2020 includes a non-transitory computer-readable storage medium. The memory 2020 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 2020 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the following method embodiments, etc.; and the data storage area can store data (such as audio data, a phone book) created according to the use of the computer device 2000, etc.

[0355] The display screen 2030 is a component for displaying pictures. Optionally, the display screen 2030 also has a touch function, and a user can control the display content by performing a touch operation on the display screen 2030. For example, the display screen 2030 is a touch display screen of a smart phone, or the display screen 2030 is a non-touch display screen of a television terminal.

[0356] In addition, those skilled in the art can understand that the structure of the computer device 2000 shown in the above-mentioned drawings does not constitute a limitation on the computer device, and the computer device can include more or fewer components than the drawings, or combine certain components, or different component arrangements. For example, the computer device 2000 also includes a camera, a microphone, a speaker, a radio frequency circuit, an input unit, a sensor (such as an acceleration sensor, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a Bluetooth module, and the like, which are not described here.

[0357] The embodiment of the present application also provides a computer readable storage medium, which stores at least one program code, the program code is loaded and executed by a processor to implement the code scanning jump method in each of the above embodiments.

[0358] The embodiment of the present application provides a computer program product, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the computer device execute the code scanning jump method provided in various optional implementation manners of the above aspects.

[0359] It should be understood that "multiple" referred to herein means two or more. "And / or", which describes the association relationship of associated objects, means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. In addition, the step numbers described herein only exemplarily show a possible execution order between steps, and in some other embodiments, the above steps can also be executed in a different order from the numbering order, such as simultaneously executing two steps with different numbers, or executing two steps with different numbers in an order opposite to the illustration, and the embodiments of the present application do not limit this.

[0360] The above only describes optional embodiments of the present application, and does not limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for redirecting users via QR code scanning, characterized in that, The method includes: Displays the QR code scanning interface of the unified QR code scanning application; The graphic code to be parsed is displayed on the scanning interface; The graphic code is optimized by using an optimization algorithm prediction model to predict the algorithm probability of at least one graphic code optimization algorithm output by the optimization algorithm prediction model. The algorithm probability is used to characterize the parsing success rate of the graphic code after optimization by the graphic code optimization algorithm. An optimization sequence is generated in descending order based on the algorithm probability. Based on the optimization sequence, the graphic code is optimized to generate at least one optimized graphic code corresponding to the graphic code. When the graphic code type of the graphic code belongs to the public code, based on the generation order of the optimized graphic code, the graphic code parsing function provided by the unified scanning application is used to parse at least one of the optimized graphic codes until the parsing result is obtained. The public code adopts the public parsing algorithm. If the graphic code is successfully parsed, the scanning result interface of the graphic code is displayed. The scanning result interface belongs to the unified scanning application, or belongs to a target application different from the unified scanning application. The target application has the function of parsing the graphic code. Wherein, if the parsing result is of the link type, the interface for displaying the scanning result of the graphic code includes: If the parsing result belongs to the first type of link, the scanning result interface of the unified scanning application is displayed based on the first link redirection rule. The first type of link is a link that can be opened through a browser. If the parsing result belongs to the second type of link, the target application corresponding to the parsing result is determined; based on the second link jump rule and the parsing result, the scanning result interface of the target application is displayed, where the second type of link is a link that supports direct jump; If the parsing result belongs to the third type of link, the target application corresponding to the parsing result is determined; the image code is reconstructed based on the parsing result of the unified scanning application to obtain the reconstructed image code; using accessibility services, the reconstructed image code is parsed through the target application; based on the third link jump rules and the parsing result of the target application, the scanning result interface of the target application is displayed, where the third type of link is a link that does not support direct jump.

2. The method according to claim 1, characterized in that, Before displaying the scanning result interface of the graphic code, the method includes: The image displayed in the scanning interface is subjected to graphic code recognition to obtain graphic code recognition result, and the graphic code recognition result contains the graphic code type of the graphic code; If the graphic code type is a private code, the target application is determined based on the graphic code type, and the private code uses a private parsing algorithm; the graphic code is parsed through the target application.

3. The method according to claim 2, characterized in that, The graphic code recognition result also includes the actual location information of the graphic code; The method further includes: Based on the graphic code type, the standard morphological information of the graphic code is determined, and the standard morphological information is used to characterize the appearance of the standard graphic code corresponding to the graphic code type. The graphic code is corrected based on the standard morphological information and the actual position information.

4. The method according to claim 2, characterized in that, The graphic code recognition result also includes the actual location information of the graphic code, and the image displayed in the scanning interface is captured by the camera in real time; The method further includes: Determine the graphic code size; If the size of the graphic code does not meet the resolution conditions, the camera is controlled to perform a zoom operation based on the actual position information of the graphic code, wherein the size of the graphic code after zooming meets the resolution conditions.

5. The method according to claim 4, characterized in that, The control of the camera to perform zoom operation based on the actual location information of the graphic code includes: Based on the actual position information of the graphic code, the maximum zoom magnification is determined, wherein the maximum zoom magnification is negatively correlated with the distance of the graphic code from the center of the image; The actual zoom ratio is determined based on the graphic code size and the maximum zoom ratio, wherein the actual zoom ratio is less than the maximum zoom ratio; The camera is controlled to perform zoom operations based on the actual zoom magnification.

6. The method according to claim 5, characterized in that, The method of controlling the camera to perform zoom operation based on the actual zoom magnification includes: Based on the actual zoom level and the actual position information, determine the target focal position of the graphic code after zooming; The camera is controlled to perform zoom operation based on the target focus position and the actual zoom magnification.

7. The method according to claim 2, characterized in that, The step of performing graphic code recognition on the image displayed in the scanning interface to obtain the graphic code recognition result includes: When the sensor data indicates that the image is in a stable state, the image displayed in the scanning interface is subjected to graphic code recognition to obtain the graphic code recognition result.

8. The method according to claim 2, characterized in that, The step of parsing the image code through the target application includes: Based on the generation order of the optimized graphic codes, the target application performs graphic code parsing on at least one of the optimized graphic codes until the parsing result is obtained.

9. The method according to claim 2, characterized in that, The graphic code type belongs to the public code; If the graphic code is successfully parsed, the interface displaying the scanning result of the graphic code includes: If the graphic code is successfully parsed and the parsing result is of the direct display type, the first scanning result interface of the unified scanning application is displayed, and the parsing result is displayed in the first scanning result interface.

10. The method according to claim 1, characterized in that, The step of using accessibility services to parse the reconstructed graphic code through the target application includes: Using the accessibility service, the reconstructed graphic code is read from the target storage location via the target application; If the reconstructed graphic code passes the security verification, the target application performs graphic code parsing on the reconstructed graphic code, wherein the security verification is used to verify whether the content stored in the target storage location has been tampered with.

11. The method according to claim 2, characterized in that, The graphic code type belongs to the private code; The method further includes: Using accessibility services, the target application parses the graphic code; If the graphic code is successfully parsed, the interface displaying the scanning result of the graphic code includes: If the graphic code is successfully parsed, the third scanning result interface of the target application is displayed, which shows the content corresponding to the parsing result.

12. The method according to claim 11, characterized in that, The step of using accessibility services to parse the graphic code through the target application includes: Using the accessibility service, the target application reads the saved graphic code from the target storage location. If the graphic code passes the security verification, the target application performs graphic code parsing on the graphic code, wherein the security verification is used to verify whether the content stored in the target storage location has been tampered with.

13. The method according to claim 2, characterized in that, The method further includes: If the graphic code type is an aggregate code, at least two candidate applications corresponding to the graphic code are determined, and the candidate applications support parsing the graphic code. The scanning interface displays at least two candidate application options corresponding to the candidate applications; In response to the selection operation of the candidate application options, the target application is determined from at least two of the candidate applications.

14. A QR code scanning redirection device, characterized in that, The device includes: The interface display module is used to display the scanning interface of the unified scanning application; A graphic code display module is used to display the graphic code to be parsed in the scanning interface; The sequence generation module is used to perform optimization algorithm prediction on the graphic code through an optimization algorithm prediction model, and obtain the algorithm probability of at least one graphic code optimization algorithm output by the optimization algorithm prediction model. The algorithm probability is used to characterize the parsing success rate of the graphic code after optimization processing by the graphic code optimization algorithm; and to generate an optimized sequence in descending order based on the algorithm probability. An optimization processing module is used to optimize the graphic code based on the optimization sequence to generate at least one optimized graphic code corresponding to the graphic code. The image code parsing module is used to parse at least one of the optimized image codes based on the generation order of the optimized image codes and the image code parsing function provided by the unified scanning application, when the image code type of the image code belongs to the public code, until the parsing result is obtained. The public code adopts the public parsing algorithm. The result display module is used to display the scanning result interface of the graphic code when the graphic code is successfully parsed. The scanning result interface belongs to the unified scanning application, or belongs to a target application different from the unified scanning application. The target application has the function of parsing the graphic code. The result display module includes a second result display unit. When the parsing result is a link type, the second result display unit is used to: If the parsing result belongs to the first type of link, the scanning result interface of the unified scanning application is displayed based on the first link redirection rule. The first type of link is a link that can be opened through a browser. If the parsing result belongs to the second type of link, the target application corresponding to the parsing result is determined; based on the second link jump rule and the parsing result, the scanning result interface of the target application is displayed, where the second type of link is a link that supports direct jump; If the parsing result belongs to the third type of link, the target application corresponding to the parsing result is determined; the image code is reconstructed based on the parsing result of the unified scanning application to obtain the reconstructed image code; using accessibility services, the reconstructed image code is parsed through the target application; based on the third link jump rules and the parsing result of the target application, the scanning result interface of the target application is displayed, where the third type of link is a link that does not support direct jump.

15. A computer device, characterized in that, The computer device includes a processor and a memory; the memory stores at least one instruction, which is executed by the processor to implement the barcode scanning jump method as described in any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the QR code scanning and redirection method as described in any one of claims 1 to 13.

17. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to implement the barcode scanning jump method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Graphic code recognition method and device, and graphic code generation method and device

    CN105279466A

  • Graph coding code scanning method and device, and mobile terminal

    CN107423794A

  • A method and apparatus for analyzing two-dimensional codes

    CN109255277A

  • Two-dimensional code recognition method and device, electronic equipment and storage medium

    CN113496133A