Graphic code identification method and related equipment
By detecting and verifying QR codes in videos in multimedia content, displaying recognition controls and responding to trigger operations, it solves the problem of cumbersome QR code recognition operations in videos and achieves efficient recognition and security identification in a single device environment. Tips, improved user experience and QR code security.
Patent Information
- Application Number
- CN202310375443.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology is cumbersome to operate when identifying QR codes in videos. It requires pausing the video or using multiple devices. It cannot handle the situation where the user only has a single device and the device does not have the scanning capability, which affects the user experience.
By detecting graphic codes and performing security identification verification during the multimedia content display process, displaying graphic code recognition controls, and responding to control trigger operations to display graphic code content, the identification steps are simplified and efficiency is improved, and it is suitable for a single device environment.
There is no need to pause the video or use multiple devices to identify the QR code, which simplifies the operation process and improves the user experience. It also reminds users of the security of the QR code through logos of different security levels, enhancing the safety of using the QR code.
Smart Images

Figure CN118734876A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a graphic code recognition method and related equipment. Background Art
[0002] Graphic codes are graphic identifiers that use certain coding rules to express information. Graphic codes can include QR codes, barcodes, and other types. Graphic codes are widely used in daily life because they have a wide coding range, can hold a large amount of information, have high decoding reliability, are easy to make at low cost, and are durable. However, for QR codes carried in videos, the current method of identifying QR codes is usually to pause the video screenshot to scan, or to use dual devices to scan the QR code. However, the above methods are cumbersome to operate, and do not take into account situations where the user only has a single device or the user's current device does not have scanning capabilities, which will affect the user experience. Summary of the invention
[0003] The embodiments of the present application provide a graphic code recognition method and related equipment. The related equipment may include a graphic code recognition device, an electronic device, a computer-readable storage medium and a computer program product, which can simplify the graphic code recognition steps, improve the graphic code recognition efficiency, and thus improve the user experience.
[0004] The present application provides a method for identifying a graphic code, including:
[0005] Display multimedia content;
[0006] If a graphic code is detected in the multimedia content during the display of the multimedia content, a security identification check is performed on the graphic code;
[0007] If the security identification verification passes, a graphic code recognition control is displayed, and the graphic code recognition control is used to indicate that the graphic code is safe;
[0008] In response to a triggering operation on the graphic code recognition control, a graphic code content corresponding to the graphic code is displayed.
[0009] Accordingly, an embodiment of the present application provides a graphic code recognition device, comprising:
[0010] A first display unit, used for displaying multimedia content;
[0011] A security identification verification unit, configured to perform security identification verification on the graphic code if a graphic code is detected in the multimedia content during the display of the multimedia content;
[0012] A second display unit is used to display a graphic code recognition control if the security identification verification is passed, and the graphic code recognition control is used to indicate that the graphic code is safe;
[0013] The third display unit is used to display the graphic code content corresponding to the graphic code in response to the triggering operation on the graphic code recognition control.
[0014] Optionally, in some embodiments of the present application, the graphic code recognition method further includes a fourth display unit, and the fourth display unit can be specifically used to stop displaying the graphic code recognition control if no triggering operation for the graphic code recognition control is detected within a preset time period.
[0015] Optionally, in some embodiments of the present application, the fourth display unit can also be used to add the graphic code recognition control to a function menu; in response to a function selection operation on the function menu, display the function menu; in response to a selection operation on the graphic code recognition control in the function menu, read and display the graphic code content corresponding to the graphic code that has passed the security identification verification in the multimedia content.
[0016] Optionally, in some embodiments of the present application, the second display unit can be specifically used to read the graphic code content corresponding to the graphic code; if the graphic code content includes a security identifier, and the security identifier can be matched with the initial security identifier stored in the audit platform, it is determined that the graphic code passes the security identifier verification.
[0017] Optionally, in some embodiments of the present application, the second display unit can also be used to read the graphic code content corresponding to the graphic code if the security identification verification fails; perform content security verification on the graphic code content; if the content security verification passes, display a warning logo for the graphic code.
[0018] Optionally, in some embodiments of the present application, the second display unit may also be configured to display graphic code content corresponding to the graphic code in response to a graphic code recognition operation on the graphic code.
[0019] Optionally, in some embodiments of the present application, the second display unit can also be used to display warning information in response to a first graphic code recognition operation on the graphic code, wherein the warning information is used to prompt that there is a security risk with the graphic code; and to display the graphic code content corresponding to the graphic code in response to a second graphic code recognition operation on the graphic code.
[0020] Optionally, in some embodiments of the present application, the second display unit may also be used to display a prohibition mark for the graphic code if the content security check fails, and the prohibition mark at least partially covers the coding area of the graphic code.
[0021] Optionally, in some embodiments of the present application, the second display unit may be specifically configured to display the graphic code recognition control on a control layer of the multimedia content, where the control layer is located above the display layer of the multimedia content.
[0022] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the graphic code recognition method provided in the embodiment of the present application.
[0023] The embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in the graphic code recognition method provided in the embodiment of the present application are implemented.
[0024] In addition, an embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in the graphic code recognition method provided in the embodiment of the present application.
[0025] The embodiment of the present application provides a method for identifying a graphic code and related devices, which can display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, the graphic code is checked for security identification; if the security identification is verified, a graphic code identification control is displayed, and the graphic code identification control is used to indicate that the graphic code is safe; in response to the trigger operation of the graphic code identification control, the graphic code content corresponding to the graphic code is displayed. The present application can complete the identification of the graphic code during the display of the multimedia content, without pausing the multimedia content to take a screenshot to identify the graphic code, or multiple devices to identify the graphic code, simplifying the steps of graphic code identification, improving the efficiency of graphic code identification, and improving the user experience. In addition, since the present application identifies different QR codes of different security levels differently, the user can intuitively understand whether the QR code is safe, whether it has risks, or whether it contains illegal information, and directly identify the QR code of the security level; there will be a warning mark and a warning information prompt for the warning level QR code. Since the warning level QR code does not contain dangerous information, it is still allowed if the user insists on identifying it; for the prohibited level QR code, since it may contain dangerous information or illegal information, it is absolutely prohibited to identify it, which greatly improves the safety of the QR code. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 is a schematic diagram of a scenario of a graphic code recognition method provided in an embodiment of the present application;
[0028] Figure 2 is a first flow chart of the graphic code recognition method provided by an embodiment of the present application;
[0029] Figure 3 is a second flow chart of the graphic code recognition method provided in an embodiment of the present application;
[0030] Figure 4 is a third flow chart of the graphic code recognition method provided in an embodiment of the present application;
[0031] Figure 5 It is a schematic diagram of the classification of QR codes provided in the embodiment of the present application;
[0032] Figure 6 This is a schematic diagram of the first identification of a security level QR code provided in an embodiment of the present application;
[0033] Figure 7 This is a second identification schematic diagram of a security level two-dimensional code provided in an embodiment of the present application;
[0034] Figure 8 This is a first identification schematic diagram of a warning level QR code provided in an embodiment of the present application;
[0035] Fig. 9 This is a second identification schematic diagram of a warning level QR code provided in an embodiment of the present application;
[0036] Fig.10 This is a first identification schematic diagram of a prohibited level QR code provided in an embodiment of the present application;
[0037] Fig.11 This is a second identification schematic diagram of a prohibited level two-dimensional code provided in an embodiment of the present application;
[0038] Fig.12 It is a first schematic diagram of a QR code provided in an embodiment of the present application;
[0039] Fig.13 It is a second schematic diagram of a QR code provided in an embodiment of the present application;
[0040] Fig.14 It is a schematic diagram of the display layer and the control layer provided in the embodiment of the present application;
[0041] Fig.15 is a structural diagram of a graphic code recognition device provided in an embodiment of the present application;
[0042] Fig.16 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0044] The embodiment of the present application provides a method for identifying a graphic code and related equipment, and the related equipment may include a graphic code recognition device, an electronic device, a computer-readable storage medium, and a computer program product. The graphic code recognition device may be integrated in an electronic device, and the electronic device may be a terminal or a server.
[0045] like Figure 1 As shown, a terminal and a server jointly execute a graphic code recognition method as an example. The graphic code recognition system provided in the embodiment of the present application includes a terminal and a server, etc. The terminal and the server are connected via a network, such as a wired or wireless network connection, etc., wherein the graphic code recognition device can be integrated in the terminal.
[0046] The terminal can be used to: display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, perform a security identification check on the graphic code; if the security identification check passes, display a graphic code recognition control, which is used to indicate that the graphic code is safe; in response to a trigger operation on the graphic code recognition control, display the graphic code content corresponding to the graphic code. The terminal can include a mobile phone, a smart TV, a tablet computer, a laptop, a smart car terminal, or a personal computer (PC). A client can also be set on the terminal, which can be an application client or a browser client, etc.
[0047] The server can be used to: determine the graphic code content corresponding to the graphic code to be displayed based on the graphic code in the multimedia content, and send the graphic code content to be displayed to the terminal so that the terminal displays the graphic code content. The server can be a single server, or a server cluster or cloud server composed of multiple servers.
[0048] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0049] This embodiment will be described from the perspective of a graphic code recognition device, which can be integrated into an electronic device, such as a server or a terminal. This embodiment can be applied to various scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving.
[0050] It is understandable that in the specific implementation of the present application, related data such as user information (such as user's geographic location information) is involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0051] like Figure 2 As shown, the specific process of the graphic code recognition method can be as follows:
[0052] 201. Display multimedia content.
[0053] Multimedia is a form of communication that combines different content forms such as text, audio, images, animation, or video into a single presentation, as distinguished from mass media such as printed materials or recordings. Examples of multimedia can include video blogs, audio slideshows, animated programs, and movies. Multimedia can be recorded for playback on computers, laptops, smartphones, and other electronic devices on demand or in real time.
[0054] In one embodiment, multimedia content may be displayed. For example, the multimedia content may be a video, an image, etc., and is not limited to a single form.
[0055] In the prior art, the method of identifying the QR code in the video is usually to pause the video, take a screenshot of the current video content, and then scan the QR code in the screenshot, or use other devices to scan the QR code in the video. This method is cumbersome and does not consider whether the current device has scanning capabilities, or the scenario where the user only has a single device, which will affect the user experience.
[0056] The technical solution of this application comprehensively considers the scanning contradictions that users encounter when obtaining information in the current information flow context. The QR code in the dynamic video can be extracted and scanned to help users quickly jump to the new business page. The technical solution of this application does not require multiple devices, nor does it require pausing the video to take screenshots. It is not only simple to operate, but also ensures the page jump function required by users.
[0057] 202. If a graphic code is detected in the multimedia content during the display of the multimedia content, a security identification check is performed on the graphic code.
[0058] Among them, the graphic code is a graphic identifier that uses certain coding rules to express information. The graphic code can include multiple types such as QR code and barcode.
[0059] Among them, a QR code is a matrix barcode, which is a machine-readable visual identification that contains information related to the item to which it is attached. In fact, a QR code usually contains data that points to a locator or identifier of a website or application. A QR code consists of black squares arranged in a certain order in a square grid on a white background, which can be read by an imaging device such as a camera, and then the required data is extracted from the pattern of the horizontal and vertical components of the image.
[0060] In one embodiment, if Fig.12 As shown in the figure, the basic structure of the QR code includes a position detection pattern and a position detection pattern separator, so it is possible to determine whether the current multimedia content contains a QR code by identifying the position detection pattern. If three position detection patterns exist, and the three points connected by the centers of the three position detection patterns can form an isosceles right triangle, it can be determined that the current multimedia content contains a QR code. In addition, there are position detection patterns in the upper left, lower left, and upper right of the QR code, such as Fig.13 As shown, a horizontal line AH is drawn with the center point of the position detection pattern as the reference. On the horizontal line AH, there are points B, C, D, E, F, and G, where the length of BG represents the side length of the outermost square, the length of CF represents the side length of the middle square, and DE represents the side length of the innermost square. The black-and-white ratio of the position detection pattern from left to right and from top to bottom is 1:1:3:1:1, that is, BC:CD:DE:EF:FG=1:1:3:1:1. This feature can also be used to further determine whether there is a QR code. If a QR code is detected in the multimedia content, the subsequent QR code recognition step is performed; if no QR code is detected, the video continues to play normally.
[0061] Since some QR code publishing platforms do not conduct sufficient audits before and after the release of QR codes, it is difficult to find the source of production, which creates conditions for mobile phone viruses, fee-charging software, phishing websites, etc. to spread through QR codes. Criminals embed malicious software links into QR codes to induce others to scan, causing users to be maliciously consumed or their online banking accounts to be stolen, etc., seriously damaging the interests of users. Moreover, since the information is contained in the QR code, users cannot directly read the information contained in the QR code and cannot identify whether the QR code will cause user losses. Therefore, when scanning the QR code, it is likely to be connected to a malicious website, which directly endangers the user's information security and destroys the Internet ecology. Therefore, in a fast-paced information flow life, it is more necessary to extract the QR code in a safe way. In one embodiment, if a graphic code is detected during the display of multimedia content, the graphic code is checked for security identification.
[0062] The technical solution of the present application can review the QR codes in multimedia content and mark QR codes of different security levels differently. For example, QR codes can be divided into three categories: security level, warning level, and prohibited level. For example, a QR code that has passed the security identification verification can be defined as a security level QR code. Therefore, for a security level QR code, a graphic code recognition control can be directly displayed. When it is detected that a user clicks on the graphic code recognition control, the QR code can be recognized. This allows users to read QR code information during normal video viewing without the need for multiple devices or pausing screenshots, thereby solving the problem of cumbersome operations for users to read QR codes, and the behavior of QR code information extraction itself is more in line with the design and user expectations.
[0063] Optionally, in one embodiment, considering security issues, the technical solution of the present application can add a platform review mechanism to the QR code to ensure the security of user information. The step of "checking the security identification of the graphic code" can include:
[0064] Read the graphic code content corresponding to the graphic code;
[0065] If the graphic code content includes a security identifier, and the security identifier can match the initial security identifier stored in the audit platform, the graphic code is determined to have passed the security identifier verification.
[0066] Among them, the QR code review platform can review the QR codes with application permissions. The credibility of the QR codes that have been reviewed and approved by the QR code review platform is greatly improved. The QR code review platform can issue a security mark to the QR codes that have been reviewed and approved, and directly determine the QR codes that have not been reviewed and approved as prohibited level QR codes. For example, since an applicant has only one unique identification ID, the QR code review platform can enter a special encoding ID into the approved QR code, generate a hash value for the identification ID when issuing it, and encode it together with the approved QR code information into the issued QR code. At this time, the QR code is a QR code that includes a security mark. Since the QR code includes the identification ID corresponding to the applicant, if there is a problem with the QR code later, the source can be traced.
[0067] like Figure 5As shown, QR codes can be divided into personal QR codes and platform-sourced QR codes, among which personal QR codes can be further divided into QR codes generated by individuals and QR codes generated based on business activities with application authority; platform-sourced QR codes can be further divided into QR codes generated autonomously by business parties and QR codes generated by business platforms with application authority. That is, QR codes with application authority include QR codes generated based on business activities with application authority in personal QR codes and QR codes generated by business platforms with application authority in platform-sourced QR codes. These two types of QR codes can be reviewed using the QR code review platform. However, QR codes generated by individuals in personal QR codes and QR codes generated autonomously by business parties in platform-sourced QR codes cannot be reviewed using the QR code review platform because they do not have application authority.
[0068] For example, after the QR code review platform reviews the QR code, it will store the security identifier of the QR code that has passed the review, which is the initial security identifier. Then, when reading the QR code content corresponding to the QR code, if the QR code content includes a security identifier, the scanned QR code content can be generated into a hash value during code recognition and parsing, and matched with the initial security identifier stored in the QR code review platform. If it is consistent with the hash value stored in the QR code review platform, it means that the QR code has not been tampered with, and it can be determined that the QR code has passed the security identifier verification.
[0069] Therefore, for the security-level QR code in the video, users do not need to use multiple devices or pause the video to take screenshots and scan. They can identify the QR code by clicking during the normal video viewing process, which solves the problem of cumbersome operations for users to identify QR codes and makes the QR code recognition behavior itself more in line with the design and user expectations.
[0070] 203. If the security identification verification passes, display a graphic code recognition control, which is used to indicate that the graphic code is safe.
[0071] Among them, a graphic control is an interactive element that can be presented in the form of a button or scroll bar. A control is a software component that a computer user interacts with through direct operation to read or edit information about an application. For example, a user can recognize a QR code through the graphic code recognition control in this application.
[0072] For example, if the security mark verification passes, the graphic code recognition control can be displayed. Figure 6 As shown, the graphic code recognition control can be displayed in the form of a bubble, and the user can recognize the QR code in the multimedia content by clicking the graphic code recognition control.
[0073] Optionally, in one embodiment, the step of “displaying a graphic code recognition control” may include:
[0074] The graphic code recognition control is displayed in the control layer of the multimedia content, and the control layer is located above the display layer of the multimedia content.
[0075] In the prior art, the method of identifying the QR code in the video is usually to pause the video, take a screenshot of the current video content, and then scan the QR code in the screenshot. However, the video playback interface usually has interactive content such as likes, comments, and shares. In the screenshot, these interactive contents may block the QR code, resulting in unsuccessful recognition.
[0076] Therefore, the present application can place multimedia content and interactive content at different levels, so that the existence of interactive content will not affect the recognition of the QR code. Fig.14 As shown, multimedia content can be displayed on the display layer, and the QR code is also located on the display layer, while interactive content such as graphic code recognition controls are displayed on the control layer, where the interactive content can also include video copy, user avatars, interactive operation buttons, etc., and the control layer is located above the display layer. Through this solution, the QR code can be directly recognized and read on the display layer, and the graphic code recognition control is displayed on the control layer, so that it will not affect the recognition of the QR code.
[0077] In one embodiment, in order to prevent the display of the graphic code recognition control from affecting the recognition of the graphic code, the graphic code recognition control can also be displayed around the graphic code, or displayed in a floating layer manner on the multimedia content, or displayed on the toolbar of the multimedia content playback interface, etc.
[0078] 204. In response to a triggering operation on the graphic code recognition control, display graphic code content corresponding to the graphic code.
[0079] In one embodiment, for example, Figure 6 As shown, the graphic code recognition control is displayed as an "Identify Code" button, which can be in the form of a green bubble. If it is detected that the user clicks on the graphic code recognition control, the QR code content corresponding to the QR code can be displayed.
[0080] Optionally, in one embodiment, after the step of “displaying the graphic code recognition control”, the following steps may also be included:
[0081] If no triggering operation on the graphic code recognition control is detected within the preset time, the graphic code recognition control is stopped from being displayed.
[0082] For example, Figure 7 As shown, the preset time length can be set to 2s, that is, if it is not detected within 2s that the user clicks on the graphic code recognition control displayed in the form of a bubble, then the graphic code recognition control stops being displayed.
[0083] Optionally, in one embodiment, after the step of “stop displaying the graphic code recognition control”, the following steps may also be included:
[0084] Added graphic code recognition control to the function menu;
[0085] In response to a function selection operation on the function menu, displaying the function menu;
[0086] In response to a selection operation on the graphic code recognition control in the function menu, graphic code content corresponding to the graphic code that has passed the security identification verification in the multimedia content is read and displayed.
[0087] Among them, the function menu is a graphical control element that contains a pull-down menu. The purpose of the menu bar is to provide a common shell for window- or application-specific menus that provide access to functions such as opening files, interacting with applications, or displaying help documents or manuals.
[0088] For example, Figure 7 As shown, if no user click on the graphic code recognition control is detected within 2 seconds and the display of the graphic code recognition control stops, the graphic code recognition control can be added to the function menu, wherein the entrance to the function menu can be displayed as a "more" button, and the user clicks the "more" button to display the function menu. The user can select the graphic code recognition control in the function menu and can still read the QR code and display the page corresponding to the QR code, eliminating the operation of adjusting the video progress bar to locate the QR code.
[0089] Optionally, in one embodiment, after the step of “checking the security mark of the graphic code”, the following steps may also be included:
[0090] If the security mark verification fails, read the graphic code content corresponding to the graphic code;
[0091] Perform content security verification on the graphic code content;
[0092] If the content security check passes, a warning sign for the graphic code will be displayed.
[0093] There are two situations in which the security mark verification fails: the first situation is that the graphic code does not include a security mark; the second situation is that the security mark included in the graphic code cannot match the initial security mark stored in the audit platform. When the security mark verification fails, it means that the QR code has not been audited by the QR code audit platform, or although it passed the audit at the time, the QR code was tampered with afterwards. The credibility of such a QR code is greatly reduced. Therefore, it is necessary to perform content security verification again on the QR code that failed the security mark verification. Among them, the content security verification is a security analysis of the graphic code content.
[0094] For example, if the security identification verification fails, the QR code content corresponding to the QR code can be read and the QR code content can be subjected to content security verification. If the content security verification passes, the QR code can be determined to be a warning level QR code and displayed as follows: Figure 8 Warning sign for QR code shown.
[0095] Optionally, in one embodiment, after the step of “displaying a warning sign for the graphic code”, the following may also be included:
[0096] In response to the graphic code recognition operation on the graphic code, the graphic code content corresponding to the graphic code is displayed.
[0097] Although the warning-level QR code has security risks, it is not completely prohibited to be recognized. When the user chooses to continue the graphic code recognition operation for the QR code with security risks, the QR code content corresponding to the QR code can still be displayed. For example, while displaying the warning sign, the embodiment of the present invention can display a "QR code recognition" option, such as an arrow, on the QR code.
[0098] Optionally, in one embodiment, the step of “displaying graphic code content corresponding to the graphic code in response to a graphic code recognition operation on the graphic code” may include:
[0099] In response to the first graphic code recognition operation on the graphic code, a warning message is displayed, where the warning message is used to indicate that the graphic code has a security risk;
[0100] In response to the second graphic code recognition operation on the graphic code, the graphic code content corresponding to the graphic code is displayed.
[0101] For example, if the QR code is judged to be a warning level QR code, the following will be displayed: Figure 8 The warning sign for the QR code is shown. Clicking the QR code will display the following Fig. 9 The yellow pop-up bubble shown includes a warning message "This is a QR code without a code identification source. Please pay attention to information security when identifying it" to remind users that the QR code poses a security risk. If the user ignores the warning message and still decides to identify the QR code and clicks on the QR code again, the QR code content corresponding to the QR code will be displayed to the user.
[0102] Optionally, in one embodiment, after the step of “performing content security verification on the graphic code content”, the following steps may also be included:
[0103] If the content security check fails, a prohibition mark for the graphic code is displayed, and the prohibition mark at least partially covers the coding area of the graphic code.
[0104] Among them, the prohibition sign is used to mark the prohibition level QR code, and the prohibition level QR code is absolutely not allowed to be recognized because it includes dangerous information or illegal information. Therefore, the prohibition sign in this application at least partially blocks the coding area of the graphic code, so that the graphic code cannot be recognized. For example, the prohibition sign can be pre-set to block the area of three position detection graphics in the QR code, so that the QR code cannot be recognized, or the prohibition sign can be pre-set to at least block one-third of the QR code coding area, so that the QR code cannot be recognized.
[0105] For example, if the security identification verification fails, the QR code content corresponding to the QR code can be read and the content security verification can be performed on the QR code content. If the content security verification also fails, it can be determined that the QR code is a prohibited level QR code and displayed as follows: Fig.10 The prohibition sign for the QR code is shown in the figure, wherein the prohibition sign at least partially covers the coding area of the graphic code to prevent the QR code from being recognized. In other words, when the content corresponding to the QR code is recognized as dangerous or unhealthy, the prohibition sign should be covered on the QR code to remind the user to pay attention to information security. If the user still clicks on the QR code and hopes to recognize the QR code, the following will be displayed: Fig.11 The prohibition information displayed on the “Danger QR Code” is shown.
[0106] In one embodiment, if the multimedia content includes multiple QR codes, each QR code can be displayed on its corresponding screen. For example, if the video frame corresponding to the first minute of the video playback includes a security level QR code 1, the video frame corresponding to the second minute of the video playback includes a warning level QR code 2, and the video frame corresponding to the third minute of the video playback includes a prohibition level QR code 3, then when the user plays the video, when the security level QR code 1 is detected in the video frame at the first minute of the video playback, the security level of the QR code 1 can be verified and displayed as follows. Figure 6 The graphic code recognition control shown in the figure; when the warning level QR code 2 is detected in the video frame at the 2nd minute of the video playback, the security level of the QR code 2 is verified and displayed as follows Figure 8 When the prohibited level QR code 3 is detected in the video frame at the 3rd minute of the video playback, the safety level of the QR code 3 is verified and displayed as follows: Fig.10 Prohibition sign shown.
[0107] In addition, the embodiments of the present application can also centrally display multiple QR codes existing in multimedia. If a video includes multiple QR codes, in order to allow users to conveniently select the QR code they need to identify from multiple QR codes, these QR codes can also be centrally displayed on a specific video frame in the video, and the identification of the security level corresponding to each QR code can be displayed. For example, the video includes QR code 4, QR code 5, and QR code 6, where QR code 4 is a security level QR code, QR code 5 is a warning level QR code, and QR code 6 is a prohibition level QR code. The three QR codes can also be displayed simultaneously in the last frame of the video, and displayed in the area near QR code 4. Figure 6 The graphic code recognition control shown in FIG. 5 is displayed on the QR code 5 as follows Figure 8 The warning sign shown is displayed on the QR code 6 as follows Fig.10 The prohibition signs shown in the figure allow users to see at a glance the safety level of each QR code. The specific name of each QR code can also be marked near it so that users can quickly select the required QR code based on the text description.
[0108] In one embodiment, if there is a specific frame of image in the multimedia, and the image includes multiple QR codes, for example, the video frame 1 of the video includes QR code 1', QR code 2', and QR code 3', wherein after verification, it is determined that QR code 1' is a security level QR code, QR code 2' is a warning level QR code, and QR code 3' is a prohibition level QR code, then the area near the QR code 1' can be displayed as follows Figure 6 The graphic code recognition control shown in the figure is displayed on the QR code 2' as shown in the figure Figure 8 The warning sign shown is displayed on the QR code 3' as follows Fig.10 The prohibition signs shown in the figure allow users to see at a glance the safety level of each QR code. The specific name of each QR code can also be marked near it so that users can quickly select the required QR code based on the text description.
[0109] If the user clicks on the graphic code recognition control, the trigger operation indicates that the user wishes to recognize the QR code 1', and the QR code content corresponding to the QR code 1' can be displayed; if the user clicks on the QR code 2' including the warning mark, the first graphic code recognition operation indicates that the user wishes to recognize the QR code 2', and the QR code content corresponding to the QR code 1' can be displayed. Fig. 9 The warning information shown in the figure reminds the user that the QR code 2' has a security risk. If the user continues to click on the QR code 2' including the warning mark, the second graphic code recognition operation indicates that the user still wants to recognize the QR code 2', and the QR code content corresponding to the QR code 2' can be displayed; if the user clicks on the QR code 3' including the prohibition mark, it indicates that the user wants to recognize the QR code 3', and the QR code content corresponding to the QR code 2' can be displayed. Fig.11The prohibition message “Dangerous QR code!” is shown, prompting the user that the QR code 3 ′ is a dangerous QR code and will not be recognized.
[0110] For another example, the video frame 1 of the video includes QR code 4', QR code 5', and QR code 6'. After verification, it is determined that QR code 4' is a security-level QR code, QR code 5' is a safety-level QR code, and QR code 6' is a warning-level QR code. Then, the area near QR code 4' can be displayed as follows: Figure 6 The graphic code recognition control 1 shown in FIG. 5 is displayed on the QR code 5' as shown in FIG. Figure 6 The graphic code recognition control 2 shown in the figure is displayed on the QR code 6' as follows Figure 8 If the user clicks on the graphic code recognition control 1, the QR code content corresponding to the QR code 4' will be displayed; if the user clicks on the graphic code recognition control 2, the QR code content corresponding to the QR code 5' will be displayed; if the user clicks on the QR code 6' including the warning sign, the first graphic code recognition operation indicates that the user wants to recognize the QR code 6', and the QR code content corresponding to the QR code 5' will be displayed. Fig. 9 The warning information shown reminds the user that the QR code 6' has a security risk. If the user continues to click on the QR code 6' including the warning mark, the second graphic code recognition operation indicates that the user still wants to recognize the QR code 6', and the QR code content corresponding to the QR code 6' can be displayed.
[0111] With the continuous development of informatization and networking, many business sharing channels will choose the QR code method, such as sharing posters generated by new channels to the publisher platform. Users often choose to convert pictures to videos, but the QR code in the video cannot be directly scanned and read. The complicated reading steps will cause troubles for users. At the same time, the complicated QR code information reading operation has a certain learning cost for the elderly. The technical solution of this application can simplify the QR code recognition steps to avoid affecting the video viewing experience.
[0112] In addition, there is a proliferation of QR codes at present, and there is no perfect mechanism to conduct security audits on QR codes in information flows, especially for QR codes carried in videos, which makes it impossible for users to ensure information security. The technical solution of this application can be used to audit QR codes. When users swipe pictures or videos with QR codes during use, they can visually judge whether the QR codes are safe or not: for safety-level QR codes, there will be a green "identify code" bubble display; for warning-level QR codes, there will be a warning mark display. When users manually click on the QR code, a warning message "Currently, there is no identification mark source for the QR code. Please pay attention to information security when identifying" will appear. Manually clicking on the QR code again will identify the QR code; for prohibited-level QR codes, there will be a prohibition mark display. The prohibition mark covers the QR code, and no identification link is provided. When users manually click on the QR code, a prohibition message of "dangerous QR code" will appear.
[0113] In addition, as people pay more attention to the aging problem, the current complex QR code information reading operation has a certain learning cost for the elderly, and compared with the traditional screenshot recognition or multi-device recognition method, the click operation is easier for the elderly to accept. At the same time, the elderly have a reduced ability to grasp information, so their ability to distinguish whether the information is safe is greatly weakened. In the current society, information is redundant, so for the elderly, they need a safe information identification mechanism to help them get rid of unhealthy information, so as to pull the elderly from the other side of the information gap.
[0114] In addition, due to the limited coverage of information in the traditional sharing model, for well-known activities, although a large number of users participate, new users often need to spend a lot of time to find and learn how to participate in the activities, which is too costly for new users. Excessive learning costs will undoubtedly increase the user flow rate, thus losing the original intention of the activity to attract new users. The technical solution of this application can simplify the QR code recognition steps, thereby greatly reducing the time and energy costs of participating in activities.
[0115] As can be seen from the above, this embodiment can display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, the graphic code is checked for security identification; if the security identification is verified, the graphic code recognition control is displayed, and the graphic code recognition control is used to indicate that the graphic code is safe; in response to the trigger operation of the graphic code recognition control, the graphic code content corresponding to the graphic code is displayed. This application can complete the recognition of the graphic code during the display of the multimedia content, without pausing the multimedia content to take a screenshot to identify the graphic code, or multiple devices to identify the graphic code, which simplifies the steps of graphic code recognition, improves the efficiency of graphic code recognition, and improves the user experience. In addition, since this application identifies different QR codes of different security levels, users can intuitively understand whether the QR code is safe, whether it has risks, or whether it contains illegal information, and directly identify the security level QR code; for the warning level QR code, there will be a warning mark and a warning information prompt. Since the warning level QR code does not contain dangerous information, it is still allowed if the user insists on identifying it; for the prohibited level QR code, since it may contain dangerous information or illegal information, it is absolutely prohibited to identify it, which greatly improves the safety of the QR code.
[0116] According to the method described in the previous embodiment, the graphic code recognition device will be further described in detail below by taking the example of being specifically integrated in a terminal.
[0117] The present application embodiment provides a method for identifying a graphic code. Figure 3 As shown, the specific process of the graphic code recognition method can be as follows:
[0118] 301. The QR code review platform reviews the QR code submitted for application for security identification.
[0119] like Figure 5 As shown, QR codes can be divided into personal QR codes and platform-sourced QR codes, among which personal QR codes can be further divided into QR codes generated by individuals and QR codes generated based on business activities with application authority; platform-sourced QR codes can be further divided into QR codes generated autonomously by business parties and QR codes generated by business platforms with application authority. That is, QR codes with application authority include QR codes generated based on business activities with application authority in personal QR codes and QR codes generated by business platforms with application authority in platform-sourced QR codes. These two types of QR codes can be reviewed using the QR code review platform. However, QR codes generated by individuals in personal QR codes and QR codes generated autonomously by business parties in platform-sourced QR codes cannot be reviewed using the QR code review platform because they do not have application authority.
[0120] Among them, the QR code review platform can review the QR codes that have application permissions, and the QR code review platform can issue security labels to the QR codes that have passed the review, and directly determine the QR codes that have not passed the review as prohibited level QR codes. For example, since an applicant has only one unique identification ID, the QR code review platform can enter a special encoding ID into the QR code that has passed the review, and generate a hash value for the identification ID when issuing it, and encode it together with the QR code information that has passed the review into the issued QR code. At this time, the QR code is a QR code that includes a security label.
[0121] After the QR code review platform reviews the QR code, it will store the security identification of the QR code that has passed the review, which is the initial security identification. Since the QR code includes the identification ID corresponding to the applicant, if there is a problem with the QR code in the future, the source can be traced.
[0122] 302. The terminal plays the video.
[0123] 303. If a QR code is detected during video playback, the terminal displays a QR code recognition control.
[0124] like Fig.12 As shown in the figure, since the basic structure of the QR code must include a position detection pattern and a position detection pattern separator, the position detection pattern can be used to determine whether the current video frame contains a QR code. If three position detection patterns exist, and the three points of the position detection pattern centers can form an isosceles right triangle, it can be determined that the current video frame contains a QR code. In addition, Fig.13As shown, a horizontal line AH is made based on the center point of the position detection pattern. On the horizontal line AH, there are points B, C, D, E, F, and G. The length of BG represents the side length of the outermost square, the length of CF represents the side length of the middle square, and DE represents the side length of the innermost square. The black and white ratio of the position detection pattern from left to right and from top to bottom is 1:1:3:1:1, that is, BC:CD:DE:EF:FG=1:1:3:1:1. This feature can also be used to further determine whether a QR code exists.
[0125] Among them, the QR code can be divided into a security level QR code, a warning level QR code, and a prohibition level QR code according to the security level. Each QR code corresponds to a different recognition method.
[0126] (1) Security level QR code
[0127] like Figure 4 As shown, if a QR code is detected during video playback, the QR code can be read and the QR code content can be checked to see if it includes a security identifier. If the QR code content includes a security identifier, the QR code content is converted into a hash value. If it is consistent with the hash value of the initial security identifier stored in the QR code review platform, it means that the QR code has not been tampered with, and the security identifier verification passes, and the QR code can be directly determined as a security-level QR code.
[0128] For security level QR codes, the terminal can Figure 6 The QR code recognition control is shown as a green bubble with "Recognize Code" written on it. When the user clicks the green bubble, the QR code is recognized and the QR code content corresponding to the QR code is displayed on the terminal.
[0129] If the user does not click on the green bubble within 2 seconds, the green bubble will stop being displayed. Figure 7 As shown, the user can click the "More" button in the interactive area of the video interface. After clicking, a function menu will pop up. The function menu includes a "QR code recognition" option. The user can also recognize the QR code by clicking the "QR code recognition" option.
[0130] (2) Warning level QR code
[0131] like Figure 4 As shown, there are two types of warning level QR codes:
[0132] The first scenario: If a QR code is detected during video playback, the QR code can be read and checked to see if the QR code content includes a safety mark. If the QR code content includes a safety mark, the QR code content is converted into a hash value. If it is inconsistent with the hash value of the initial safety mark stored in the QR code review platform, it means that the QR code has been tampered with, and the safety mark verification fails. Further content security verification of the QR code is required. Among them, the content security verification is for the QR code content. If the content security verification passes, that is, there is no dangerous information or illegal information in the QR code content that is absolutely not allowed to be identified, then the QR code can be determined to be a warning level QR code.
[0133] The second scenario: If a QR code is detected during video playback, the QR code can be read and the QR code content can be checked to see if it contains a safety mark. If the QR code content does not contain a safety mark, the safety mark check fails and the QR code needs to be further checked for content safety. The content safety check is for the QR code content. If the content safety check passes, that is, there is no dangerous or illegal information in the QR code content that is absolutely not allowed to be identified, then the QR code can be determined to be a warning-level QR code.
[0134] For the warning level QR code, the following information can be displayed on the QR code: Figure 8 The warning icon shown in the figure is displayed to remind the user that the QR code may pose a security risk. If the user ignores the warning icon and still clicks on the QR code in the hope of identifying it, a pop-up window will appear as shown below: Fig. 9 The yellow bubble shown includes the warning message "This is a QR code without a code identification source. Please pay attention to information security when identifying it" to remind the user again. If the user still ignores the warning message and continues to click on the QR code in the hope of identifying it, the QR code content will be read and displayed on the terminal.
[0135] (3) Prohibition level QR code
[0136] There are three types of warning level QR codes:
[0137] The first case: Figure 4 As shown, if a QR code is detected during the video playback process, the QR code can be read and the QR code content can be checked to see if it includes a security identifier. If the QR code content includes a security identifier, the QR code content is converted into a hash value. If it is inconsistent with the hash value of the initial security identifier stored in the QR code review platform, it means that the QR code has been tampered with, and the security identifier verification fails. The QR code needs to be further verified for content security. Among them, the content security verification is for the QR code content. If the content security verification fails, that is, there is dangerous information or illegal information in the QR code content that is absolutely not allowed to be identified, then the QR code can be determined to be a prohibited level QR code.
[0138] The second situation: Figure 4 As shown, if a QR code is detected during video playback, the QR code can be read and the QR code content can be checked to see if it includes a safety mark. If the QR code content does not include a safety mark, the safety mark check fails and the QR code needs to be further checked for content safety. The content safety check is for the QR code content. If the content safety check fails, that is, there is dangerous information or illegal information in the QR code content that is absolutely not allowed to be identified, then the QR code can be determined to be a prohibited level QR code.
[0139] The third situation: When the QR code is reviewed on the QR code review platform, the QR code that has not passed the review will be directly judged as a prohibited level QR code.
[0140] For prohibited level QR codes, the following can be displayed on the QR code: Fig.10 The prohibition icon is displayed to remind the user that the QR code contains dangerous information or illegal information that must not be recognized. The prohibition icon covers the QR code to prevent the user from using other means to recognize it. If the user ignores the prohibition icon and still clicks on the QR code, the following pop-up window will appear: Fig.11 The bubble shown includes the prohibition message "Danger QR code!", which means that the prohibited level QR code cannot be recognized at all and the system will not provide any link related to the QR code.
[0141] In addition, if Fig.14 As shown, in order to facilitate the recognition of the QR code, the QR code and the video can be placed in the display layer of the video, and the video interactive parts such as the QR code recognition control can be placed in the control layer of the video to prevent the video interactive part from blocking the QR code and affecting the recognition of the QR code.
[0142] 304. In response to the triggering operation on the QR code recognition control, the terminal displays the QR code content corresponding to the QR code.
[0143] Technical architecture process:
[0144] like Figure 5 As shown, QR codes can be divided into QR codes of personal origin and QR codes of platform origin. Among them, QR codes of personal origin can be further divided into QR codes generated by individuals and QR codes generated based on business activities for which application authority has been applied for; QR codes of platform origin can be further divided into QR codes generated independently by the business party and QR codes generated by the business platform for which application authority has been applied for.
[0145] (1) QR code that has been reviewed by the QR code review platform
[0146] For QR codes generated based on business activities for which application authority has been granted, and QR codes generated by business platforms for which application authority has been granted, they can be audited through the QR code audit platform. For QR codes that pass the audit, security labels will be issued, and for QR codes that fail the audit, they will be directly identified as prohibited-level QR codes.
[0147] For QR codes with security identifiers, in order to prevent security risks caused by QR codes being tampered with, the security identifier can be matched with the initial security identifier stored in the QR code review platform. If it is consistent with the initial security identifier, it means that the QR code has not been tampered with and can be trusted. Therefore, the QR code is judged as a security-level QR code.
[0148] If it is inconsistent with the initial security mark, it means that the QR code has been tampered with and there is a certain security risk, so the QR code needs to be further audited. Perform a security audit on the QR code content. If the security audit passes, it means that there is no dangerous or illegal information in the QR code that is absolutely not allowed to be identified, and the QR code is judged as a warning level QR code. If the security audit fails, it means that there is dangerous or illegal information in the QR code that is absolutely not allowed to be identified, and the QR code is judged as a prohibited level QR code.
[0149] (2) QR codes that have not been reviewed by the QR code review platform
[0150] For QR codes generated by individuals and QR codes generated independently by business parties, since they have not applied for permission, they will not be reviewed by the QR code review platform. In other words, these QR codes are QR codes without security logos.
[0151] If the QR code has not been reviewed by the QR code review platform, there is a certain security risk, so the QR code needs to be further reviewed. Perform a security review on the QR code content. If the security review passes, it means that there is no dangerous information or illegal information in the QR code that is absolutely not allowed to be recognized, and the QR code is judged as a warning level QR code. If the security review fails, it means that there is dangerous information or illegal information in the QR code that is absolutely not allowed to be recognized, and the QR code is judged as a prohibited level QR code.
[0152] As can be seen from the above, this embodiment can review the QR code submitted for the security identification through the QR code review platform; display multimedia content through the terminal; if a graphic code is detected during the display of the multimedia content, display the graphic code recognition control; in response to the selection operation of the graphic code recognition control, read and display the graphic code content corresponding to the graphic code. This application can complete the recognition of the graphic code during the display of the multimedia content, without pausing the multimedia content to take a screenshot to identify the graphic code, or multiple devices to identify the graphic code, simplifying the steps of graphic code recognition, improving the efficiency of graphic code recognition, and improving the user experience. In addition, since this application identifies different QR codes with different security levels, users can intuitively understand whether the QR code is safe, whether it has risks, or whether it contains illegal information, and directly identify the security level QR code; for the warning level QR code, there will be a warning mark and a warning information prompt. Since the warning level QR code does not contain dangerous information, it is still allowed if the user insists on identifying it; for the prohibition level QR code, since it may contain dangerous information or illegal information, it is absolutely prohibited to identify it, which greatly improves the safety of the QR code.
[0153] In order to better implement the above method, the present application embodiment also provides a graphic code recognition device, such as Fig.15 As shown, the graphic code recognition device may include a first display unit 1501, a safety mark verification unit 1502, a second display unit 1503, and a third display unit 1504, as follows:
[0154] The first display unit 1501 is used to display multimedia content;
[0155] The security identification verification unit 1502 is used to perform security identification verification on the graphic code if a graphic code is detected in the multimedia content during the display of the multimedia content;
[0156] The second display unit 1503 is used to display a graphic code recognition control if the security identification verification passes, and the graphic code recognition control is used to indicate that the graphic code is safe;
[0157] The third display unit 1504 is used to display the graphic code content corresponding to the graphic code in response to the triggering operation on the graphic code recognition control.
[0158] Optionally, in some embodiments of the present application, the graphic code recognition method further includes a fourth display unit, and the fourth display unit can be specifically used to stop displaying the graphic code recognition control if no triggering operation for the graphic code recognition control is detected within a preset time period.
[0159] Optionally, in some embodiments of the present application, the fourth display unit can also be used to add the graphic code recognition control to a function menu; in response to a function selection operation on the function menu, display the function menu; in response to a selection operation on the graphic code recognition control in the function menu, read and display the graphic code content corresponding to the graphic code that has passed the security identification verification in the multimedia content.
[0160] Optionally, in some embodiments of the present application, the second display unit can be specifically used to read the graphic code content corresponding to the graphic code; if the graphic code content includes a security identifier, and the security identifier can be matched with the initial security identifier stored in the audit platform, it is determined that the graphic code passes the security identifier verification.
[0161] Optionally, in some embodiments of the present application, the second display unit can also be used to read the graphic code content corresponding to the graphic code if the security identification verification fails; perform content security verification on the graphic code content; if the content security verification passes, display a warning logo for the graphic code.
[0162] Optionally, in some embodiments of the present application, the second display unit may also be configured to display graphic code content corresponding to the graphic code in response to a graphic code recognition operation on the graphic code.
[0163] Optionally, in some embodiments of the present application, the second display unit can also be used to display warning information in response to a first graphic code recognition operation on the graphic code, wherein the warning information is used to prompt that there is a security risk with the graphic code; and to display the graphic code content corresponding to the graphic code in response to a second graphic code recognition operation on the graphic code.
[0164] Optionally, in some embodiments of the present application, the second display unit may also be used to display a prohibition mark for the graphic code if the content security check fails, and the prohibition mark at least partially covers the coding area of the graphic code.
[0165] Optionally, in some embodiments of the present application, the second display unit may be specifically configured to display the graphic code recognition control on a control layer of the multimedia content, where the control layer is located above the display layer of the multimedia content.
[0166] As can be seen from the above, in this embodiment, multimedia content can be displayed through the first display unit 1501; if a graphic code is detected in the multimedia content during the display of the multimedia content, the graphic code is checked for security identification through the security identification verification unit 1502; if the security identification verification passes, the graphic code recognition control is displayed through the second display unit 1503, and the graphic code recognition control is used to indicate that the graphic code is safe; the graphic code content corresponding to the graphic code is displayed through the third display unit 1504 in response to the triggering operation on the graphic code recognition control. The present application can complete the recognition of the graphic code during the display of the multimedia content, without pausing the multimedia content to take a screenshot to identify the graphic code, or multiple devices to identify the graphic code, which simplifies the steps of graphic code recognition, improves the efficiency of graphic code recognition, and improves the user experience. In addition, since the present application identifies QR codes of different security levels differently, users can intuitively understand whether the QR code is safe, whether it poses risks, or whether it contains illegal information, and can directly identify the security-level QR code; for warning-level QR codes, there will be warning signs and warning information prompts. Since warning-level QR codes do not contain dangerous information, if the user insists on identifying them, it is still allowed; for prohibited-level QR codes, since they may contain dangerous information or illegal information, identification is absolutely prohibited, which greatly improves the safety of QR code use.
[0167] The present application also provides an electronic device, such as Fig.16 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal or a server, etc. Specifically:
[0168] The electronic device may include components such as a processor 1601 with one or more processing cores, a memory 1602 with one or more computer-readable storage media, a power supply 1603, and an input unit 1604. Those skilled in the art will appreciate that Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0169] The processor 1601 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 1602, and calling data stored in the memory 1602. Optionally, the processor 1601 may include one or more processing cores; preferably, the processor 1601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1601.
[0170] The memory 1602 can be used to store software programs and modules. The processor 1601 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602. The memory 1602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1602 may also include a memory controller to provide the processor 1601 with access to the memory 1602.
[0171] The electronic device also includes a power supply 1603 for supplying power to various components. Preferably, the power supply 1603 can be logically connected to the processor 1601 through a power supply system, so as to realize functions such as charging, discharging, and power consumption through the power supply system. The power supply 1603 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0172] The electronic device may further include an input unit 1604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0173] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 1601 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 1602 according to the following instructions, and the processor 1601 will run the application programs stored in the memory 1602, thereby realizing various functions, as follows:
[0174] Display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, perform a security identification check on the graphic code; if the security identification check passes, display a graphic code recognition control, which is used to indicate that the graphic code is safe; in response to a trigger operation on the graphic code recognition control, display graphic code content corresponding to the graphic code.
[0175] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0176] As can be seen from the above, this embodiment can display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, the graphic code is checked for security identification; if the security identification is verified, the graphic code recognition control is displayed, and the graphic code recognition control is used to indicate that the graphic code is safe; in response to the trigger operation of the graphic code recognition control, the graphic code content corresponding to the graphic code is displayed. This application can complete the recognition of the graphic code during the display of the multimedia content, without pausing the multimedia content to take a screenshot to identify the graphic code, or multiple devices to identify the graphic code, which simplifies the steps of graphic code recognition, improves the efficiency of graphic code recognition, and improves the user experience. In addition, since this application identifies different QR codes of different security levels, users can intuitively understand whether the QR code is safe, whether it has risks, or whether it contains illegal information, and directly identify the security level QR code; for the warning level QR code, there will be a warning mark and a warning information prompt. Since the warning level QR code does not contain dangerous information, it is still allowed if the user insists on identifying it; for the prohibited level QR code, since it may contain dangerous information or illegal information, it is absolutely prohibited to identify it, which greatly improves the safety of the QR code.
[0177] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0178] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the graphic code recognition methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0179] Display multimedia content; if a graphic code is detected in the multimedia content during the display of the multimedia content, perform a security identification check on the graphic code; if the security identification check passes, display a graphic code recognition control, which is used to indicate that the graphic code is safe; in response to a trigger operation on the graphic code recognition control, display graphic code content corresponding to the graphic code.
[0180] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0181] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0182] Since the instructions stored in the computer-readable storage medium can execute the steps in any one of the graphic code recognition methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the graphic code recognition methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0183] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned graphic code recognition aspect.
[0184] The above is a detailed introduction to a graphic code recognition method and related equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for identifying a graphic code, characterized in that: include: Display multimedia content; If a graphic code is detected in the multimedia content during the display of the multimedia content, a security identification check is performed on the graphic code; If the security identification verification passes, a graphic code recognition control is displayed, and the graphic code recognition control is used to indicate that the graphic code is safe; In response to a triggering operation on the graphic code recognition control, a graphic code content corresponding to the graphic code is displayed.
2. The method according to claim 1, characterized in that: After the display of the graphic code recognition control, the method further includes: If no triggering operation on the graphic code recognition control is detected within a preset time period, the graphic code recognition control is stopped from being displayed.
3. The method according to claim 2, characterized in that After the display of the graphic code recognition control is stopped, the method further includes: Adding the graphic code recognition control to the function menu; In response to a function selection operation on the function menu, displaying the function menu; In response to a selection operation on the graphic code recognition control in the function menu, graphic code content corresponding to the graphic code that has passed the security identification verification in the multimedia content is read and displayed.
4. The method according to claim 1, characterized in that: The step of performing security identification verification on the graphic code includes: Reading the graphic code content corresponding to the graphic code; If the graphic code content includes a security identifier, and the security identifier can match the initial security identifier stored in the audit platform, it is determined that the graphic code passes the security identifier verification.
5. The method according to claim 1, characterized in that After the graphic code is verified for security identification, the method further includes: If the security identification verification fails, read the graphic code content corresponding to the graphic code; Performing content security verification on the graphic code content; If the content security check passes, a warning sign for the graphic code is displayed.
6. The method according to claim 5, characterized in that After displaying the warning mark for the graphic code, the method further includes: In response to a graphic code recognition operation on the graphic code, a graphic code content corresponding to the graphic code is displayed.
7. The method according to claim 6, characterized in that In response to the graphic code recognition operation for the graphic code, displaying the graphic code content corresponding to the graphic code includes: In response to the first graphic code recognition operation for the graphic code, displaying warning information, the warning information is used to prompt that the graphic code has a security risk; In response to the second graphic code recognition operation for the graphic code, the graphic code content corresponding to the graphic code is displayed.
8. The method according to claim 5, characterized in that After the content security check of the graphic code content is performed, the method further includes: If the content security check fails, a prohibition mark for the graphic code is displayed, and the prohibition mark at least partially covers the coding area of the graphic code.
9. The method according to claim 1, characterized in that: The display graphic code recognition control includes: The graphic code recognition control is displayed in a control layer of the multimedia content, and the control layer is located above the display layer of the multimedia content.
10. A graphic code recognition device, characterized in that: include: A first display unit, used for displaying multimedia content; A security identification verification unit, configured to perform security identification verification on the graphic code if a graphic code is detected in the multimedia content during the display of the multimedia content; A second display unit is used to display a graphic code recognition control if the security identification verification is passed, and the graphic code recognition control is used to indicate that the graphic code is safe; The third display unit is used to display the graphic code content corresponding to the graphic code in response to the triggering operation on the graphic code recognition control.
11. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the operations in the graphic code recognition method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the graphic code recognition method according to any one of claims 1 to 9.
13. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the graphic code recognition method described in any one of claims 1 to 9 are implemented.
